@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {

    --primary: #3182ce;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #173756;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --bg: var(--bg-main);
    --bg2: #eef2f7;
    --accent: var(--primary);
    --accent2: #1a202c;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-glow2: rgba(37, 99, 235, 0.08);
    --text-white: #ffffff;
    --card-border: var(--border);
    --text-dark: var(--text-main);
    --text-mid: #475569;
    --text-light: #94a3b8;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 16px;

}

body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;

}

/* Circuit Background */
.circuit-bg {

    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(160deg, rgba(14, 116, 144, 0.02) 0%, rgba(11, 55, 96, 0.03) 100%);
    background-size: 28px 28px, auto;

}

.circuit-nodes {
 display: none;
}

/* ── App Container ── */
.page-shell {

    padding-left: 270px;
    padding-right: 12px;
    padding-top: 86px;

}

.app-container {

    position: relative; z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;

}

.sidebar {

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 250px;
    background: #1a202c;
    border-right: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.25rem 1rem;
    overflow-y: auto;
    z-index: 100;

}

.sidebar-header {

    margin-bottom: 1.6rem;
    display: flex;
    justify-content: center;

}

.sidebar-logo {

    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;

}

.sidebar-section {

    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;

}

.sidebar-smart-top {

    margin-top: 0.1rem;
    margin-bottom: 0.95rem;

}

.sidebar-smart-top-link {

    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;

}

.sidebar-smart-sub-link {

    margin-top: 0.3rem;
    margin-bottom: 0;
    padding: 0.3rem 0.45rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #cfe4ff;
    border-radius: 6px;
    background: transparent;

}

.sidebar-smart-sub-link:hover {

    background: rgba(49, 130, 206, 0.2);
    color: #ffffff;

}

.new-badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

}

.sidebar-brand-groups {

    display: flex;
    flex-direction: column;
    gap: 0.35rem;

}

.sidebar-brand-group {

    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;

}

.sidebar-group-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(148, 163, 184, 0.14);
    cursor: pointer;
    user-select: none;

}

.sidebar-group-link {

    flex: 1;
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 10px 0.6rem;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;

}

.sidebar-category-link.active,
.sidebar-brand-link.active {

    background: rgba(49, 130, 206, 0.28);
    color: #ffffff;
    border-color: rgba(49, 130, 206, 0.7);

}

.sidebar-group-link:hover {

    color: #93c5fd;
    text-decoration: underline;

}

.sidebar-group-link.active {

    color: #ffffff;
    background: rgba(49, 130, 206, 0.28);

}

.sidebar-group-toggle {

    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;

}

.sidebar-group-arrow {

    font-size: 0.65rem;
    color: #cbd5e1;
    transition: transform 0.18s ease;

}

.sidebar-brand-group.open .sidebar-group-arrow {

    transform: rotate(90deg);

}

.sidebar-group-links {

    display: flex;
    flex-direction: column;
    padding: 0.35rem;

}

.sidebar-group-links[hidden] {

    display: none !important;

}

.sidebar-group-links .sidebar-link {

    margin: 0 0 10px;

}

.sidebar-more-brands {

    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    margin-top: 0.2rem;
    padding: 0.2rem 0.35rem 0.35rem;

}

.sidebar-more-toggle {

    width: 100%;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    display: block;
    gap: 0.35rem;
    padding: 10px 0.2rem;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;

}

.more-brands-icon {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    font-size: 0.8rem;
    line-height: 1;

}

.sidebar-more-brands.open .more-brands-icon {

    transform: rotate(180deg);

}

.sidebar-more-brands.open .more-brands-icon::after {

    content: '-';

}

.sidebar-more-brands:not(.open) .more-brands-icon::after {

    content: '+';

}

.sidebar-more-brands .more-brands-icon {

    color: #93c5fd;

}

.sidebar-more-list {

    display: flex;
    flex-direction: column;
    margin-top: 0.15rem;

}

.sidebar-more-list[hidden] {

    display: none !important;

}

.sidebar-link-secondary {

    font-size: 0.8rem;
    opacity: 0.95;

}

.sidebar-title {

    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.5rem;

}

.sidebar-link {

    display: block;
    width: 100%;
    padding: 10px 0.5rem;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;

}

.sidebar-link:hover {

    background: rgba(49, 130, 206, 0.2);
    color: #ffffff;

}

.sidebar-link.active,
.cat-tab-link.active {

    background: rgba(49, 130, 206, 0.3);
    color: #ffffff;
    border-color: rgba(49, 130, 206, 0.7);

}

.sidebar .cat-tab {

    width: 100%;
    display: block;
    text-align: left;
    border-radius: 8px;
    background: transparent;
    color: #e2e8f0;
    padding: 10px 0.6rem;
    border: 1px solid transparent;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;

}

.sidebar .cat-tab.active {

    background: #3182ce;
    color: #ffffff;
    border-color: #3182ce;

}

.sidebar-overlay {

    display: none;

}

.sidebar-toggle {

    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

}

.brand-intro {

    margin: 0.75rem 0 1rem;
    padding: 0.5rem 0;
    max-width: 800px;

}

.brand-intro .eyebrow {

    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.35rem;

}

.brand-intro p {

    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;

}

.embedded-brand-decoder {

    margin: 0.75rem 0 0;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.75rem;

}

.brand-page .embedded-brand-decoder {

    margin: 0.65rem 0 0;
    border: none;
    background: transparent;
    padding: 0;

}

.brand-page .embedded-brand-decoder .main-card {

    box-shadow: none;
    margin-bottom: 0.6rem;

}

.brand-page .embedded-brand-decoder .smart-lookup-standalone {

    margin-bottom: 0;

}

.brand-page .cta-block {

    text-align: left;

}

.embedded-brand-decoder .form-input,
.embedded-brand-decoder .form-select,
.embedded-brand-decoder .decode-btn {

    min-height: 48px;

}

.embedded-brand-decoder .decode-btn {

    background: #3182ce;
    color: #ffffff;

}

.embedded-brand-decoder-head {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;

}

.embedded-brand-decoder-title {

    font-size: 0.84rem;
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.04em;

}

.embedded-brand-decoder-close {

    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    cursor: pointer;

}

.embedded-brand-decoder-close:hover {

    background: #eef2f7;

}

.methodology-page .static-card {

    margin-top: 1rem;

}

.methodology-page .static-card-body {

    padding: 1.75rem 2rem;

}

.methodology-page .static-section {

    margin-bottom: 1.5rem;

}

.methodology-page .static-section h3 {

    margin-bottom: 0.5rem;

}

.methodology-page .static-section p {

    margin: 0 0 0.65rem;

}

.methodology-page .static-section p:last-child {

    margin-bottom: 0;

}

.methodology-page .step-list {

    margin-top: 0.75rem;
    gap: 0.6rem;

}

.methodology-page .caveat-block {

    margin-top: 1.5rem;

}

.category-page-head {

    margin: 0.25rem 0 0.8rem;

}

.category-page-head h1 {

    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.65rem;

}

.category-tab-bar {

    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid #dbe4ee;
    padding-bottom: 0.15rem;

}

.category-tab-link {

    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;

}

.category-tab-link:hover {

    color: #1e293b;

}

.category-tab-link.active {

    color: #ffffff;
    background: #3182ce;
    border-bottom-color: #3182ce;

}

.global-category-tabs {

    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.35rem 0 0.75rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #dbe4ee;

}

.global-category-tab {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;

}

.global-category-tab:hover {

    background: #e8edf5;
    color: #1e293b;

}

.global-category-tab.active {

    background: #3182ce;
    border-color: #3182ce;
    color: #ffffff;

}

.technical-methodology-card {

    margin-top: 1rem;
    background: #f1f5f9;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 1rem 1.1rem;

}

.technical-methodology-card h2 {

    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;

}

.technical-methodology-subhead {

    font-style: italic;
    font-size: 0.92rem;
    color: #334155;
    margin-bottom: 0.6rem;

}

.technical-methodology-copy {

    font-size: 0.9rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 0.55rem;

}

.technical-methodology-list {

    margin: 0 0 0.55rem 1.05rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;

}

.technical-methodology-note {

    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;

}

.narrow-date-panel {

    margin-top: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.85rem;

}

.narrow-date-panel h4 {

    font-size: 0.96rem;
    color: #1a202c;
    margin-bottom: 0.35rem;

}

.narrow-date-note {

    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.6rem;

}

.narrow-date-fields {

    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;

}

.narrow-date-fields .decode-btn {

    margin-top: 0;
    min-height: 44px;
    padding: 0.6rem 0.9rem;

}

.narrow-date-output {

    margin-top: 0.65rem;

}

/* ── Header ── */
.header {

    position: fixed;
    top: 0;
    left: 270px;
    right: 0;
    z-index: 120;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 0.7rem 1.25rem;
    border-radius: 0;
    background: #1a202c;
    border-bottom: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: 0 3px 14px rgba(12, 36, 65, 0.2);
    color: #ffffff;

}

.header-brand {
 display: none;
}

.header h1 {

    font-size: 1.75rem; font-weight: 800; color: #ffffff;
    letter-spacing: -0.02em; text-shadow: 0 0 20px rgba(37, 99, 235, 0.15);

}

.header h1 .accent {
 color: var(--accent);
}

.header .header-logo {
 color: #ffffff;
}

.header .subtitle {

    font-size: 0.85rem; color: #e2e8f0; margin-top: 0.2rem;

}

.header .header-tagline {

    color: #cbd5e1;

}

.header .header-brand h1,
.header .header-brand .subtitle,
.header .header-brand .header-tagline,
.header .header-brand .header-logo {

    display: none;

}

.header-center-tagline {

    display: none;

}

.header-attribution {

    display: block; font-size: 0.72rem; color: #cbd5e1;
    margin-top: 0.25rem; opacity: 0.8;

}

.header-attribution strong {
 color: var(--accent); font-weight: 600;
}

/* ── Header Nav ── */
.header-nav {
 display: none; align-items: center; gap: 0.5rem; flex-shrink: 0;
}

.header-nav-link {

    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8rem; font-weight: 600; font-family: inherit;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;

}

.header-nav-link:hover {

    background: rgba(49, 130, 206, 0.2);
    border-color: rgba(147, 197, 253, 0.55);
    color: #ffffff;

}

.nav-dropdown {
 position: relative;
}

.nav-dropdown-toggle {
 cursor: pointer;
}

.nav-dropdown-menu {

    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0s linear 0.2s;
    transition-delay: 0.2s;
    z-index: 20;

}

.nav-dropdown:hover .nav-dropdown-menu {

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;

}

.nav-dropdown-menu::before {

    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
    background: transparent;

}

.nav-dropdown-menu a {

    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;

}

.nav-dropdown-menu a:hover {

    background: #e0f2fe;
    color: var(--accent2);

}

/* ── Main Card ── */
.main-card {

    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 42, 74, 0.08);
    overflow: hidden;

}

/* ── Category Tabs ── */
.category-tabs {
 display: flex; background: #f1f5f9; border-bottom: 1px solid var(--card-border);
}

.cat-tab {

    flex: 1; padding: 0.65rem 1rem; background: none; border: none;
    font-size: 0.9rem; font-weight: 700; color: var(--text-light); cursor: pointer;
    transition: all 0.2s; font-family: inherit;
    border-bottom: 3px solid transparent;
    text-transform: uppercase; letter-spacing: 0.04em;

}

.cat-tab:hover {
 color: var(--text-mid); background: #e8edf5;
}

.cat-tab.active {
 color: var(--accent2); background: var(--card-bg); border-bottom-color: var(--accent);
}

.decoder-card {

    margin-bottom: 0.65rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);

}

.smart-lookup-standalone {

    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;

}

.smart-lookup-standalone-header {

    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;

}

.smart-lookup-standalone .alt-inner {

    background: #ffffff;
    border: 1px solid var(--card-border);

}

.smart-lookup-standalone .alt-divider::before,
.smart-lookup-standalone .alt-divider::after {

    background: var(--card-border);

}

.smart-lookup-standalone .alt-scope-note {

    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-mid);

}

.cat-tab-locked {

    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;

}

.brand-locked {

    background: #f1f5f9;
    color: var(--text-light);
    cursor: not-allowed;

}

/* ── Form Area ── */
.form-area {
 padding: 1rem 1.25rem 1.1rem;
}

.step-label {

    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.3rem;
    display: flex; align-items: center; gap: 0.4rem;

}

.form-group {
 margin-bottom: 0.875rem;
}

.form-select, .form-input {

    width: 100%; padding: 0.6rem 0.875rem;
    border: 2px solid var(--card-border); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: var(--text-dark);
    background: var(--card-bg); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;

}

.form-select:focus, .form-input:focus {

    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);

}

.form-select:disabled, .form-input:disabled {

    background: #f1f5f9; color: var(--text-light); cursor: not-allowed;

}

.helper-text {
 font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem;
}

/* ── Era Dropdown & Note ── */
.info-icon {

    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 0.62rem; font-weight: 700; cursor: help;
    font-style: normal; flex-shrink: 0;

}

.era-note {

    font-size: 0.78rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.5;
    font-style: italic;

}

/* ── Decode Button ── */
.decode-btn {

    width: 100%; padding: 0.7rem;
    background: #3182ce;
    color: #fff; border: 1px solid #1a202c; border-radius: 10px;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(26, 32, 44, 0.28); margin-top: 0.5rem;

}

.decode-btn:hover:not(:disabled) {

    transform: translateY(-1px); box-shadow: 0 10px 24px rgba(26, 32, 44, 0.38);
    border-color: #3182ce;
    background: #2b6cb0;

}

.decode-btn:disabled {
 background: #cbd5e1; cursor: not-allowed; box-shadow: none;
}

.guided-search-btn {

    width: 100%;
    margin-top: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #3182ce;
    background: linear-gradient(135deg, #3182ce, #1a202c);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;

}

.guided-search-btn:hover {

    filter: brightness(1.06);

}

.guided-search-btn.pulse {

    animation: guidedPulse 0.8s ease 2;

}

@keyframes guidedPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(49, 130, 206, 0); }
    50% { transform: scale(1.015); box-shadow: 0 0 0 6px rgba(49, 130, 206, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(49, 130, 206, 0); }
}

.guided-search-note {

    margin-top: 0.35rem;
    font-size: 0.76rem;
    color: var(--text-mid);

}

/* ── Smart Lookup redirect prompt (decoder pages) ── */
.sl-redirect-prompt {
    margin-top: 1.1rem;
    font-size: 0.82rem;
    color: var(--text-mid);
}
.sl-redirect-prompt a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.sl-redirect-prompt a:hover {
    text-decoration: underline;
}

/* ── Alt Lookup Toggle ── */
.smart-lookup-container {

    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    color: var(--text-main);

}

.smart-lookup-header {

    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;

}

.ai-icon {

    color: var(--primary);
    font-size: 0.95rem;

}

.smart-lookup-container .step-label,
.smart-lookup-container .helper-text {

    color: var(--text-muted);

}

.smart-lookup-container .alt-toggle {

    color: var(--primary);

}

.smart-lookup-container .alt-toggle:hover {

    color: var(--accent2);

}

.smart-lookup-container .alt-inner {

    background: var(--card-bg);
    border: 1px solid var(--border);

}

.smart-lookup-container .form-input,
.smart-lookup-container .form-select {

    background: #ffffff;
    color: var(--text-dark);

}

.smart-lookup-container .alt-divider::before,
.smart-lookup-container .alt-divider::after {

    background: var(--border);

}

.smart-lookup-container .alt-divider span {

    color: var(--text-muted);

}

.smart-lookup-container .alt-scope-note {

    color: var(--text-main);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);

}

.smart-lookup-container .alt-scope-note strong {

    color: var(--primary);

}

.smart-lookup-container .alt-disclaimer {

    color: var(--text-muted);
    background: #f8fafc;
    border-color: var(--border);
    border-left-color: var(--primary);

}

.alt-toggle {

    display: inline-flex; align-items: center; gap: 0.35rem;
    color: var(--accent); font-size: 0.8rem; font-weight: 600;
    cursor: pointer; user-select: none; margin-top: 0.5rem; transition: color 0.2s;

}

.alt-toggle:hover {
 color: var(--accent2);
}

.alt-toggle .arrow {
 display: inline-block; transition: transform 0.3s ease; font-size: 0.55rem;
}

.alt-toggle.open .arrow {
 transform: rotate(90deg);
}

.alt-section {
 max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.35s ease;
}

.alt-section.open {
 max-height: 700px; opacity: 1;
}

.alt-inner {

    background: #f4f4f4; border-radius: 12px;
    padding: 0.875rem 1rem; margin-top: 0.25rem;

}

.alt-divider {

    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;

}

.alt-divider::before, .alt-divider::after {

    content: ''; flex: 1; height: 1px; background: var(--card-border);

}

.alt-divider span {

    font-size: 0.7rem; font-weight: 600; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.08em;

}

/* ── Alt Scope Note (electronics coverage) ── */
.alt-scope-note {

    font-size: 0.78rem; color: var(--accent);
    background: rgba(0,180,216,0.07);
    border: 1px solid rgba(0,180,216,0.2);
    border-radius: 6px; padding: 0.45rem 0.7rem;
    margin-bottom: 0.6rem; line-height: 1.5;

}

.alt-scope-note strong {
 color: var(--accent);
}

/* ── Alt Disclaimer (dark text for readability) ── */
.alt-disclaimer {

    font-size: 0.8rem;
    color: #333333;
    background: #fff;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.875rem;
    line-height: 1.55;

}

/* ── Loading Animation ── */
.loading-inner {

    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 2rem 1.5rem; gap: 0.75rem;

}

.zeus-loader {
    width: min(520px, 92%);
    color: var(--primary);
}

.zeus-loader-lane {
    position: relative;
    height: 82px;
    border-radius: 10px;
    border: 1px solid rgba(29, 78, 216, 0.15);
    background: linear-gradient(90deg, rgba(29, 78, 216, 0.08) 0%, rgba(29, 78, 216, 0.02) 55%, rgba(29, 78, 216, 0.08) 100%);
    overflow: hidden;
    --bolt-start: 72px;
    --bolt-size: 22px;
    --bolt-travel: calc(100% - var(--bolt-start) - var(--bolt-size) - 10px);
}

.zeus-silhouette {
    position: absolute;
    left: 12px;
    bottom: 6px;
    width: 58px;
    height: 58px;
    opacity: 0.92;
}

.zeus-bolt {
    position: absolute;
    left: var(--bolt-start);
    bottom: 30px;
    width: var(--bolt-size);
    height: var(--bolt-size);
    opacity: 0;
    transform: translateX(0);
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

.zeus-hand-glow {
    position: absolute;
    left: 59px;
    bottom: 38px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(59, 130, 246, 0) 70%);
}

#ageLoading.zeus-active .zeus-bolt {
    opacity: 1;
    animation: zeusBoltPingPong 1.25s linear infinite;
}

#ageLoading.zeus-active .zeus-hand-glow {
    animation: zeusThrowPulse 1.25s ease-out infinite;
}

#ageLoading.zeus-fade {
    opacity: 0;
    transition: opacity 280ms ease;
}

@keyframes zeusBoltPingPong {
    0% { transform: translateX(0); }
    50% { transform: translateX(var(--bolt-travel)); }
    100% { transform: translateX(0); }
}

@keyframes zeusThrowPulse {
    0% { opacity: 0.85; transform: scale(0.9); }
    15% { opacity: 0; transform: scale(2.2); }
    100% { opacity: 0; transform: scale(2.2); }
}

.loading-text {

    text-align: center; color: var(--text-light);
    font-style: italic; font-size: 0.9rem;

}

/* ── Results Cards ── */
.results-card {

    margin-top: 1.5rem; background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;

}

.results-header {

    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;

}

.results-header h3 {
 font-size: 1rem; font-weight: 700; color: var(--text-white);
}

.results-body {
 padding: 1.5rem;
}

.header .sidebar-toggle {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.result-query {

    margin-bottom: 0.85rem; padding: 0.75rem 1rem;
    background: #f1f5f9; border-radius: 10px; border-left: 4px solid var(--accent);
    font-size: 0.9rem; font-weight: 600; color: var(--text-mid);

}

.result-row {

    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 1rem; margin-bottom: 0.5rem;
    background: #f8fafc; border-radius: 10px; border-left: 4px solid var(--accent);

}

.result-label {
 font-size: 0.85rem; font-weight: 600; color: var(--text-mid);
}

.result-value {
 font-size: 1.05rem; font-weight: 700; color: var(--accent2);
}

.info-block {

    margin-top: 1rem; padding: 1rem; background: #f8fafc;
    border-radius: 10px; border-left: 4px solid var(--card-border);

}

.info-block.method {
 border-left-color: var(--amber); background: #fffbeb;
}

.info-block.notes {
 border-left-color: var(--red);   background: #fef2f2;
}

.info-block.sources {
 border-left-color: var(--green);  background: #f0fdf4;
}

.info-block.serial-loc {
 border-left-color: #6366f1; background: #f5f3ff;
}

.info-block.serial-rule {
 border-left-color: var(--accent); background: #ecfeff;
}

.info-block.warning {
 border-left-color: var(--red); background: #fff1f2;
}

.info-block h4 {

    font-size: 0.78rem; font-weight: 700; color: var(--text-mid);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;

}

.info-block p {
 font-size: 0.85rem; color: var(--text-mid); line-height: 1.6;
}

/* ── Brand Logo ── */
.brand-logo-wrap {

    display: none; align-items: center; justify-content: flex-end; min-width: 44px;

}

.brand-logo {

    height: 32px; max-width: 80px; object-fit: contain;
    filter: brightness(0) invert(1); opacity: 0.88;

}

.brand-badge {

    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,0.18); color: #fff;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;

}

/* ── Confidence Badge & Bar ── */
.confidence-badge {

    display: inline-block; padding: 0.15rem 0.5rem;
    border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;

}

.confidence-badge.high {
 background: #dcfce7; color: #166534;
}

.confidence-badge.medium {
 background: #fef9c3; color: #854d0e;
}

.confidence-badge.low {
 background: #fef2f2; color: #991b1b;
}

.confidence-bar-wrap {
 margin: 0.875rem 0 0.25rem;
}

.confidence-bar-label {

    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.4rem;

}

.confidence-bar {
 display: flex; gap: 4px;
}

.conf-seg {

    flex: 1; padding: 0.42rem 0; text-align: center;
    font-size: 0.72rem; font-weight: 700;
    background: #e2e8f0; color: var(--text-light);
    border-radius: 5px; transition: background 0.25s, color 0.25s;

}

.conf-seg.active.low {
 background: #fee2e2; color: #991b1b;
}

.conf-seg.active.medium {
 background: #fef9c3; color: #854d0e;
}

.conf-seg.active.high {
 background: #dcfce7; color: #166534;
}

/* ── Dual-Era Result Display ── */
#dualEraDisplay { display: none; }

/* Hide all standard result rows/blocks when dual mode is active */
.results-body--dual > *:not(#dualEraDisplay) { display: none !important; }

/* Hide Copy button in dual mode (no single result to copy) */
.results-body--dual ~ .results-footer .copy-btn { display: none; }

.era-split-notice h4 { margin-bottom: 0.35rem; }

.era-dual-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin: 1rem 0;
}

@media (max-width: 600px) {
  .era-dual-results { grid-template-columns: 1fr; }
}

.era-result-block {
  border-radius: 10px;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light, #e2e8f0);
}

.era-result-block.era-result-post { border-left: 3px solid #2563eb; }
.era-result-block.era-result-pre  { border-left: 3px solid #7c3aed; }
.era-result-block.era-result-uncertain { opacity: 0.65; }

.era-result-heading {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.era-method-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: var(--text-mid);
}
.era-result-post .era-method-tag { background: #dbeafe; color: #1d4ed8; }
.era-result-pre  .era-method-tag { background: #ede9fe; color: #6d28d9; }

.era-result-block .result-row {
  padding: 0.3rem 0;
  border-bottom: 1px solid #e9edf2;
  font-size: 0.82rem;
}
.era-result-block .result-row:last-of-type { border-bottom: none; }

.era-method-note {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.4;
}

.era-unknown-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-mid);
  font-style: italic;
}

details.era-determine-guide { margin-top: 0.5rem; }

/* ── Sources Checked (collapsible) ── */
details.sources-checked {
  margin-top: 1rem;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
details.sources-checked summary {
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
details.sources-checked summary::before {
  content: '\25B6';
  font-size: 0.6rem;
  transition: transform 0.2s;
}
details.sources-checked[open] summary::before {
  transform: rotate(90deg);
}
.sources-checked-body {
  padding: 0 0.75rem 0.75rem;
}
.sources-checked-body .evidence-list {
  margin-top: 0.5rem;
}

/* ── Evidence List ── */
.evidence-list {
 margin-top: 1rem;
}

.evidence-item {

    padding: 0.6rem 0.75rem; margin-bottom: 0.35rem;
    background: #f8fafc; border-radius: 8px;
    font-size: 0.82rem; color: var(--text-mid); display: flex; gap: 0.5rem;

}

.evidence-item .ev-source {
 font-weight: 700; color: var(--text-dark); white-space: nowrap;
}

.evidence-item .ev-date {
 color: var(--accent2); font-weight: 600; white-space: nowrap;
}

/* ── "Possible Error?" Button ── */
.results-footer {

    padding: 0.75rem 1.5rem 1.25rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    justify-content: center;

}

.error-btn {

    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #fff7ed;
    border: 2px solid #fb923c;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem; font-weight: 700;
    color: #c2410c;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s;
    width: 100%; justify-content: center;
    box-shadow: 0 2px 6px rgba(249,115,22,0.15);

}

.error-btn:hover {

    background: #ffedd5; border-color: #ea580c; color: #9a3412;
    box-shadow: 0 4px 12px rgba(249,115,22,0.25);
    transform: translateY(-1px);

}

.copy-btn {

    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem; font-weight: 700;
    color: #1d4ed8;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s;
    width: 100%; justify-content: center;
    box-shadow: 0 2px 6px rgba(59,130,246,0.18);

}

.copy-btn:hover {

    background: #dbeafe; border-color: #2563eb; color: #1e40af;
    box-shadow: 0 4px 12px rgba(59,130,246,0.28);
    transform: translateY(-1px);

}

.decode-again-btn {

    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #f8fafc;
    border: 2px solid #94a3b8;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem; font-weight: 700;
    color: #334155;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s;
    width: 100%; justify-content: center;
    box-shadow: 0 2px 6px rgba(148,163,184,0.2);

}

.decode-again-btn:hover {

    background: #e2e8f0; border-color: #64748b; color: #1f2937;
    box-shadow: 0 4px 12px rgba(148,163,184,0.3);
    transform: translateY(-1px);

}

/* ── Footer ── */
.footer {

    margin-top: 1.5rem;
    text-align: center; padding: 2rem 1rem;
    background: linear-gradient(180deg, #0a2f55 0%, #082445 100%);
    color: #c3d6ea; font-size: 0.75rem; line-height: 1.6;
    border-radius: 14px;
    border: 1px solid rgba(118, 173, 213, 0.22);

}

.footer a {
 color: #93c8ee; text-decoration: none;
}

.hidden {
 display: none !important;
}

.sr-only {

    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;

}

/* ── Guide Drawer ── */
.guide-overlay {

    position: fixed; inset: 0; z-index: 900;
    background: rgba(0,0,0,0.45);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);

}

.guide-overlay.open {
 opacity: 1; pointer-events: all;
}

.guide-drawer {

    position: fixed; top: 0; left: -110%; bottom: 0;
    width: min(380px, 92vw); z-index: 910;
    background: #fff; overflow-y: auto;
    box-shadow: 6px 0 32px rgba(0,0,0,0.25);
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;

}

.guide-drawer.open {
 left: 0;
}

.guide-drawer-header {

    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #0d2847 0%, #1a3a5c 100%);
    padding: 1.1rem 1.25rem;
    position: sticky; top: 0; z-index: 1;

}

.guide-drawer-header h3 {
 font-size: 1rem; font-weight: 700; color: var(--text-white);
}

.guide-drawer-close {

    background: none; border: none; color: rgba(255,255,255,0.7);
    font-size: 1.1rem; cursor: pointer; padding: 0.2rem 0.45rem;
    border-radius: 4px; transition: background 0.2s; line-height: 1;

}

.guide-drawer-close:hover {
 background: rgba(255,255,255,0.12); color: #fff;
}

.guide-drawer-body {

    padding: 1.5rem;
    color: var(--text-mid); font-size: 0.875rem; line-height: 1.7;

}

.guide-drawer-body h4 {

    color: var(--text-dark); font-size: 0.95rem;
    margin: 1.25rem 0 0.5rem;

}

.guide-drawer-body h4:first-child {
 margin-top: 0;
}

.guide-drawer-body ol,
.guide-drawer-body ul {
 margin-left: 1.25rem; margin-bottom: 0.75rem;
}

.guide-drawer-body li {
 margin-bottom: 0.35rem;
}

.guide-drawer-body strong {
 color: var(--text-dark);
}

.guide-drawer-body p {
 margin-bottom: 0.75rem;
}

.warning-note {

    background: #fffbeb; border-left: 3px solid var(--amber);
    padding: 0.75rem 1rem; border-radius: 8px;
    margin: 0.75rem 0; color: #92400e; font-size: 0.82rem;

}

/* ── Feedback Modal ── */
.modal-overlay {

    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.58);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; backdrop-filter: blur(4px);

}

.modal-overlay.hidden {
 display: none !important;
}

.modal-card {

    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%; max-width: 440px; overflow: hidden;
    animation: modalIn 0.22s ease;

}

@keyframes modalIn {
    from { transform: translateY(14px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal-header {

    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #0d2847 0%, #1a3a5c 100%);
    padding: 1rem 1.25rem;

}

.modal-header h3 {
 font-size: 1rem; font-weight: 700; color: var(--text-white);
}

.modal-close {

    background: none; border: none; color: rgba(255,255,255,0.65);
    font-size: 1.1rem; cursor: pointer; padding: 0.2rem 0.45rem;
    border-radius: 4px; transition: background 0.2s, color 0.2s; line-height: 1;

}

.modal-close:hover {
 background: rgba(255,255,255,0.12); color: #fff;
}

.modal-body {
 padding: 1.25rem;
}

.modal-field {
 margin-bottom: 0.875rem;
}

.modal-field label {

    display: block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-light); margin-bottom: 0.3rem;

}

.modal-field input[readonly] {
 background: #f8fafc; color: var(--text-mid);
}

.modal-field textarea.form-input {
 resize: vertical; min-height: 72px;
}

.modal-actions {
 display: flex; gap: 0.75rem; margin-top: 1rem;
}

.modal-actions .decode-btn {
 flex: 1; margin-top: 0;
}

.cancel-btn {

    flex: 0 0 auto; padding: 0.85rem 1.25rem;
    background: #f1f5f9; border: none; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; font-family: inherit;
    color: var(--text-mid); cursor: pointer; transition: background 0.2s;

}

.cancel-btn:hover {
 background: #e2e8f0;
}

.fb-thanks {

    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
    padding: 0.75rem 1rem; color: #166534; font-size: 0.85rem;
    font-weight: 600; margin-bottom: 0.875rem; text-align: center;

}

/* ── Responsive ── */

@media (max-width: 768px) {

    .app-container { padding: 0.75rem 0.75rem 0.75rem; }
    .header { min-height: 70px; padding: 0.65rem 0.8rem; }
    .header h1 { font-size: 1.4rem; }
    .header-nav { gap: 0.35rem; }
    .header-nav-link { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
    .form-area { padding: 1rem; }
    .results-body { padding: 1rem; }
    .result-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .static-card-body { padding: 1.5rem; }
    .static-card-header { padding: 1.1rem 1.5rem; }
    .ia-header-wrap { gap: 0.55rem; }
    .ia-header-title { font-size: 1.02rem; }
    .ia-header-subtitle { font-size: 0.66rem; }
    .ia-header-right { gap: 0.45rem; justify-content: flex-end; }
    .ia-header-nav { gap: 0.4rem; flex-wrap: wrap; }
    .ia-header-nav a { font-size: 0.72rem; min-height: 36px; padding: 0.35rem 0.6rem; }
    .ia-hw-right { gap: 0.35rem; }
    .ia-hw-right .ia-header-nav-link { font-size: 0.72rem; padding: 0.35rem 0.6rem; min-height: 36px; }
    .ia-header-logo-top { height: 36px; width: 36px; }
    .global-category-tabs { padding: 0.25rem 0 0.55rem; gap: 0.35rem; }
    .global-category-tab { min-height: 34px; font-size: 0.78rem; padding: 0.34rem 0.58rem; }
    .narrow-date-fields {
        grid-template-columns: 1fr;
    }
    .ia-hero-inner { padding: 0.9rem; min-height: 148px; }
    .ia-hero-mark { width: 84px; }
    .ia-hero-copy h2 { font-size: 1.2rem; }
    .ia-hero-copy p { font-size: 0.88rem; }
    .ia-hero-btn { min-width: 108px; font-size: 0.76rem; padding: 0.55rem 0.75rem; }

    /* ── Info & tip blocks at tablet ── */
    .info-block { padding: 0.8rem; }
    .info-block p { font-size: 0.82rem; }
    .tip-block { padding: 0.7rem 0.85rem; }
    .tip-text { font-size: 0.76rem; }
    .result-query,
    .smart-search-query { font-size: 0.85rem; padding: 0.65rem 0.85rem; }

}

@media (max-width: 1024px) {
    .header {
        top: 0;
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
    }
    .page-shell {
        padding-left: 270px;
        padding-right: 12px;
        padding-top: 84px;
    }
    .sidebar {
        transform: none;
        display: block;
    }
    .sidebar-toggle {
        display: none;
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 150;
        display: none;
    }
    .sidebar-open .sidebar-overlay { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .app-container { padding: 0.75rem; }
    .decode-btn    { padding: 1rem; font-size: 1.05rem; min-height: 52px; }
    .cat-tab       { padding: 0.9rem 0.5rem; font-size: 0.8rem; }
    .form-select,
    .form-input    { padding: 0.875rem 1rem; font-size: 1rem; min-height: 50px; }
    .modal-card    { max-width: 100%; }
    .modal-body    { padding: 1rem; }
    .brand-logo    { height: 28px; }
    .error-btn     { font-size: 0.9rem; padding: 0.75rem 1rem; }
    .header-nav-secondary { display: none; }
    .page-shell {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 84px;
    }
    .main-card,
    .results-card,
    .popular-brands-section,
    .smart-lookup-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .form-area { padding: 0.875rem; }
    .results-body { padding: 0.875rem; }
    .static-card-body { padding: 1rem 0.875rem; }
    .static-card-header { padding: 0.875rem 1rem; }
    .results-footer { padding: 0.75rem 0.875rem 1rem; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 1.25rem 0.875rem; border-radius: 10px; }
    .sidebar {
        width: 250px;
        transform: translateX(-104%);
        transition: transform 0.22s ease;
    }
    .sidebar-toggle {
        display: inline-flex;
    }
    .sidebar-overlay {
        display: none;
    }
    .sidebar-open .sidebar {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-overlay {
        display: block;
    }
    .header {
        position: fixed;
        left: 0;
        right: 0;
    }
    .ia-header-subtitle {
        display: none;
    }
    .ia-sidebar-logo {
        width: 150px;
        height: 150px;
    }
    /* ── Header: clear space for the sidebar toggle button ── */
    /* toggle is position:absolute at left:12px within .header;
       adding left padding stops the nav from sitting behind it */
    .header { padding-left: 54px; }
    .sidebar-toggle { z-index: 5; }

    /* ── Header nav: compact, right-aligned, no text wrapping ── */
    .ia-header-wrap { justify-content: flex-end; padding-right: 0; }
    .ia-header-nav.ia-header-nav-center {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.2rem;
        width: auto;
    }
    .ia-header-nav .ia-header-nav-link,
    .ia-header-nav a {
        font-size: 0.62rem;
        padding: 0.25rem 0.38rem;
        min-height: 30px;
        white-space: nowrap;
        letter-spacing: 0;
    }
    .ia-hw-right .ia-header-nav-link { font-size: 0.62rem; padding: 0.25rem 0.38rem; min-height: 30px; }
    .ia-header-logo-top { height: 32px; width: 32px; }

    /* ── Results body & rows ── */
    .results-body { padding: 0.75rem; }
    .result-row { padding: 0.6rem 0.75rem; margin-bottom: 0.4rem; }
    .result-label { font-size: 0.76rem; }
    .result-value { font-size: 0.92rem; }
    .result-row--primary .result-value { font-size: 1.08rem; }
    .result-query,
    .smart-search-query {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
        word-break: break-word;
        margin-bottom: 0.65rem;
    }

    /* ── Info blocks ── */
    .info-block { padding: 0.65rem 0.75rem; margin-top: 0.65rem; }
    .info-block h4 { font-size: 0.7rem; }
    .info-block p { font-size: 0.78rem; line-height: 1.55; }

    /* ── Evidence list ── */
    .evidence-item { font-size: 0.76rem; }

    /* ── Tip block & suggestion chips ── */
    .tip-block { padding: 0.6rem 0.75rem; margin-top: 0.6rem; }
    .tip-label { font-size: 0.68rem; }
    .tip-text { font-size: 0.73rem; }
    .suggestion-chip { font-size: 0.7rem; padding: 0.22rem 0.55rem; }

    /* ── Decode detail (monospace sub-row) ── */
    .decode-detail { font-size: 0.68rem; }

    /* ── Smart Lookup standalone card ── */
    .smart-lookup-standalone { padding: 0.65rem 0.75rem; }

    /* ── Sidebar: ensure it slides fully over page on very small screens ── */
    .sidebar { width: 270px; }
}

/* ── Primary result row — larger year display ── */
.result-row--primary .result-value {

    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;

}

/* ── "How this was determined" disclosure ── */
.determination-details {

    margin-top: 0.875rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;

}

.determination-details summary {

    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    background: #f8fafc;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    user-select: none;
    transition: background 0.15s;

}

.determination-details summary::-webkit-details-marker {
 display: none;
}

.determination-details summary::before {

    content: '▶';
    font-size: 0.55rem;
    color: var(--accent);
    transition: transform 0.2s;
    flex-shrink: 0;

}

.determination-details[open] summary::before {
 transform: rotate(90deg);
}

.determination-details summary:hover {
 background: #f1f5f9;
}

.determination-body {

    padding: 0.875rem 1rem;
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.65;
    border-top: 1px solid var(--card-border);
    background: #fff;

}

/* ── More Options progressive disclosure ── */
.more-options-section {

    border-top: 1px solid var(--card-border);
    padding: 0.6rem 1.5rem 1rem;

}

.more-options-toggle {

    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    letter-spacing: 0.01em;

}

.more-options-toggle:hover {
 color: var(--accent);
}

.more-options-arrow {

    font-size: 0.5rem;
    display: inline-block;
    transition: transform 0.22s;

}

.more-options-arrow.open {
 transform: rotate(90deg);
}

.more-options-body {

    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;

}

/* ── Options drawer (nested accordion) ── */
.options-drawer {

    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;

}

.options-drawer summary {

    padding: 0.55rem 0.875rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-mid);
    background: #fafbfc;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s;

}

.options-drawer summary::-webkit-details-marker {
 display: none;
}

.options-drawer summary::before {

    content: '▶';
    font-size: 0.5rem;
    color: var(--text-light);
    transition: transform 0.2s;
    flex-shrink: 0;

}

.options-drawer[open] summary::before {
 transform: rotate(90deg);
}

.options-drawer summary:hover {
 background: #f1f5f9;
}

.options-drawer-body {

    padding: 0.75rem 0.875rem;
    border-top: 1px solid var(--card-border);
    background: #fff;

}

.placeholder-note {

    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.25rem;

}

.placeholder-hint {

    font-size: 0.78rem;
    color: var(--text-mid);
    margin-bottom: 0.65rem;
    line-height: 1.5;

}

.ai-generate-btn {

    background: none;
    border: 1px dashed var(--accent);
    border-radius: 8px;
    padding: 0.45rem 0.875rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent2);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

}

.ai-generate-btn:hover:not(:disabled) {

    background: rgba(0,180,216,0.06);
    border-style: solid;

}

.ai-generate-btn:disabled {

    color: var(--text-light);
    border-color: var(--card-border);
    cursor: not-allowed;

}

.ai-generate-result {

    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.65;
    padding: 0.75rem 0.875rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    white-space: pre-wrap;

}

/* ── Footer update ── */
.footer-tagline {

    font-size: 0.8rem;
    font-weight: 600;
    color: #d8e7f5;
    margin-bottom: 0.45rem;

}

.footer-links {

    margin-bottom: 0.5rem;

}

.footer-verify {

    color: #bdd2e8;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;

}

.footer-links a {

    color: #d0e7f8;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s;

}

.footer-links a:hover {
 color: #7fc1ef; text-decoration: underline;
}

.footer-sep {

    color: #8eacc8;
    margin: 0 0.45rem;
    font-size: 0.75rem;

}

.footer-db {
 opacity: 0.65; font-size: 0.72rem;
}

.ia-sidebar-brand {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;

}

.ia-sidebar-logo {

    width: 150px;
    height: 150px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;

}

.ia-sidebar-text {

    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;

}

.ia-header-wrap {

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

}

/* Task 7: 3-column header: spacer | centered logo | right nav */
.ia-hw-left {
    flex: 1;
}

.ia-hw-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header .ia-hw-center,
.header .ia-header-logo-link,
.header .ia-header-logo-top,
.header .header-logo {
    display: none !important;
}

.ia-hw-right {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.ia-header-left {

    display: flex;
    align-items: center;
    min-width: 0;

}

.ia-header-right {

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;

}

.ia-header-brand-link {

    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;

}

.ia-wordmark {

    font-family: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;

}

.ia-header-title {

    font-size: 1.25rem;

}

.ia-header-subtitle {

    margin-top: 0.15rem;
    font-size: 0.76rem;
    color: #a7bdd3;
    font-weight: 500;
    line-height: 1.15;

}

.ia-header-nav {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-left: 0;

}

.ia-header-nav-center {

    width: 100%;
    justify-content: center;

}

.ia-header-nav a {

    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;

}

.ia-header-nav a {

    background: transparent;
    border-color: rgba(148, 163, 184, 0.55);
    color: #e2e8f0;

}

.ia-header-nav a.active {

    background: #3182ce;
    border-color: #3182ce;
    color: #ffffff;

}

.ia-header-nav a:hover {

    transform: translateY(-1px);
    background: rgba(49, 130, 206, 0.18);
    border-color: rgba(49, 130, 206, 0.7);
    color: #ffffff;

}

.ia-header-nav-security {
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #86efac !important;
}

.ia-header-nav-security:hover {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    color: #ffffff !important;
}

.ia-header-logo-link {

    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;

}

.ia-header-logo-top {

    height: 45px;
    width: auto;
    object-fit: contain;

}

.ia-top-banner,
.ia-inline-banner,
.ia-hero-banner {

    display: none !important;

}

.ia-hero-inner {

    display: none;

}

.ia-hero-mark {

    width: 120px;
    height: auto;

}

.ia-hero-copy h2 {

    margin: 0;
    font-size: 2.05rem;
    letter-spacing: 0.02em;
    color: #0b3760;

}

.ia-hero-copy p {

    margin-top: 0.35rem;
    color: #667185;
    font-size: 1.02rem;

}

.ia-hero-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    padding: 0.7rem 1rem;
    background: #3182ce;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;

}

/* ── Header tagline (who it's for) ── */
.header-tagline {

    font-size: 0.78rem; color: rgba(232,237,245,0.65);
    margin-top: 0.3rem; line-height: 1.5;

}

.header-tagline strong {
 color: var(--accent); font-weight: 600;
}

/* ── Popular Brands section ── */
.popular-brands-section {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.brands-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.brands-section-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
}

.brand-tile {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.brand-tile:hover {
    background: #eef6ff;
    border-color: rgba(49, 130, 206, 0.35);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.brand-tile-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent2);
}

.brand-tile-desc {
    font-size: 0.72rem;
    color: var(--text-mid);
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .popular-brands-section {
        padding: 1rem;
    }
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* ── Decode detail (year/month code breakdown) ── */
.decode-detail {

    display: block;
    font-size: 0.76rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-light);
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid #e2e8f0;
    letter-spacing: 0.01em;

}

/* ── Smart Lookup tip block + suggestion chips ── */
.tip-block {

    margin-top: 0.875rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 0.75rem 1rem;

}

.tip-row {

    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;

}

.tip-label {

    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent2);
    white-space: nowrap;
    flex-shrink: 0;

}

.tip-text {

    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.5;

}

.tip-chips {

    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;

}

.suggestion-chip {

    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 2px 6px rgba(0,180,216,0.2);

}

.suggestion-chip:hover {

    background: var(--accent2);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,119,182,0.3);

}

.suggestion-chip:focus-visible {

    outline: 2px solid var(--accent2);
    outline-offset: 2px;

}

/* No cursor changes on touch devices */
@media (hover: none) {

    .suggestion-chip:hover { transform: none; }

}

/* ── Brand Page: Did You Know ── */
.did-you-know-block {

    background: #f0f9ff;
    border: 1px solid rgba(0,180,216,0.18);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;

}

.did-you-know-block h2 {

    font-size: 0.95rem;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 0.875rem;
    border-bottom: none;
    padding-bottom: 0;

}

.fact-grid {

    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1rem;
    margin-bottom: 0.875rem;

}

.fact-label {

    font-size: 0.82rem;
    font-weight: 700;
    color: #0c4a6e;
    white-space: nowrap;

}

.fact-value {

    font-size: 0.82rem;
    color: #1e3a5f;

}

.fact-summary {

    font-size: 0.84rem;
    color: #1e3a5f;
    line-height: 1.65;
    margin: 0;

}

/* ---- Shared layout ---- */
.content-wrapper,
.container {

    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    background-color: var(--bg-main);

}

/* ---- Extracted inline styles ---- */
.about-card {

            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,180,216,0.08);
            overflow: hidden;
            margin-top: 1.5rem;

}

.about-card-header {

            background: linear-gradient(135deg, #0d2847 0%, #1a3a5c 100%);
            padding: 1.5rem 2rem;

}

.about-card-header h2 {

            font-size: 1.35rem; font-weight: 800; color: var(--text-white);
            letter-spacing: -0.01em;

}

.about-card-header p {

            font-size: 0.9rem; color: rgba(232,237,245,0.7); margin-top: 0.3rem;

}

.about-card-body {

            padding: 2rem;
            color: var(--text-dark);

}

.about-section {
 margin-bottom: 2rem;
}

.about-section:last-child {
 margin-bottom: 0;
}

.about-section h3 {

            font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.07em; color: var(--accent2);
            margin-bottom: 0.6rem;

}

.about-section p {

            font-size: 0.92rem; color: var(--text-mid); line-height: 1.75;

}

.about-pillars {

            display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.875rem; margin-top: 1rem;

}

.pillar {

            background: #f8fafc; border-radius: 10px;
            padding: 1rem 1.1rem;
            border-left: 4px solid var(--accent);

}

.pillar-icon {
 font-size: 1.35rem; display: block; margin-bottom: 0.4rem;
}

.pillar-title {

            font-size: 0.82rem; font-weight: 700; color: var(--text-dark);
            margin-bottom: 0.2rem;

}

.pillar-desc {
 font-size: 0.78rem; color: var(--text-mid); line-height: 1.5;
}

.about-disclaimer {

            background: #fffbeb; border-left: 3px solid var(--amber);
            border-radius: 8px; padding: 0.875rem 1rem;
            font-size: 0.84rem; color: #92400e; line-height: 1.6;
            margin-top: 1.5rem;

}

.header-logo {
font-size:1.5rem;font-weight:800;color:var(--text-white);letter-spacing:-0.02em;text-shadow:0 0 30px rgba(0,180,216,0.3);margin:0
}

.header-logo .accent {
color:var(--accent)
}

.header-logo a {
color:inherit;text-decoration:none
}

.static-card {
background:var(--card-bg);border-radius:var(--radius);box-shadow:0 4px 24px rgba(0,0,0,0.3),0 0 0 1px rgba(0,180,216,0.08);overflow:hidden;margin-top:1.5rem
}

.static-card-header {
background:linear-gradient(135deg,#0d2847 0%,#1a3a5c 100%);padding:1.5rem 2rem
}

.static-card-header h1 {
font-size:1.25rem;font-weight:800;color:var(--text-white)
}

.static-card-header p {
font-size:0.88rem;color:rgba(232,237,245,0.7);margin-top:0.3rem
}

.static-card-body {
padding:2rem;color:var(--text-dark)
}

.static-section {
margin-bottom:1.75rem
}

.static-section h2,
.static-section h3 {
font-size:1rem;font-weight:700;color:var(--text-dark);margin-bottom:0.6rem;padding-bottom:0.4rem;border-bottom:2px solid #e2e8f0
}

.table-scroll {
overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0.75rem 0 1rem
}
.table-scroll .policy-table {
margin:0;min-width:480px
}

.static-section p {
font-size:0.9rem;color:var(--text-mid);line-height:1.75;margin-bottom:0.6rem
}

.static-section ul {
margin:0.4rem 0 0.6rem 1.35rem
}

.static-section li {
font-size:0.9rem;color:var(--text-mid);line-height:1.7;margin-bottom:0.25rem
}

.static-section strong {
color:var(--text-dark);font-weight:600
}

.cta-block {
background:linear-gradient(135deg,#ecfeff 0%,#f0f9ff 100%);border:1px solid rgba(0,180,216,0.25);border-radius:12px;padding:1.5rem;text-align:center;margin-bottom:1.75rem
}

.cta-block h2 {
font-size:1.05rem;font-weight:700;color:#1e293b;margin-bottom:0.4rem;border:none;padding:0
}

.cta-block p {
font-size:0.875rem;color:#475569;margin-bottom:1rem
}

.cta-btn {
display:inline-flex;align-items:center;gap:0.5rem;background:linear-gradient(135deg,#00b4d8 0%,#0077b6 100%);color:#fff;text-decoration:none;padding:0.75rem 1.75rem;border-radius:10px;font-size:0.95rem;font-weight:700;box-shadow:0 4px 12px rgba(0,180,216,0.3);transition:all 0.2s
}

.cta-btn:hover {
transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,180,216,0.4)
}

.related-brands {
display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.6rem
}

.related-brand-link {
display:inline-flex;align-items:center;padding:0.35rem 0.875rem;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;font-size:0.8rem;font-weight:600;color:#0077b6;text-decoration:none;transition:all 0.18s
}

.related-brand-link:hover {
background:rgba(0,180,216,0.08);border-color:rgba(0,180,216,0.3);color:#00b4d8
}

.note-block {
background:#fffbeb;border-left:3px solid #f59e0b;border-radius:8px;padding:0.875rem 1rem;font-size:0.84rem;color:#92400e;line-height:1.6;margin-top:0.5rem
}

.static-card-header h2 {
            font-size: 1.25rem; font-weight: 800; color: var(--text-white);
            letter-spacing: -0.01em;
}

.brands-intro {
            font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem;
}

.brands-category {
 margin-bottom: 2rem;
}

.brands-category:last-child {
 margin-bottom: 0;
}

.brands-category h3 {
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.08em; color: var(--accent2);
            margin-bottom: 0.75rem; padding-bottom: 0.4rem;
            border-bottom: 1px solid var(--card-border);
}

.brand-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
            gap: 0.5rem;
}

.brand-pill {
            background: #f8fafc; border: 1px solid var(--card-border);
            border-left: 3px solid var(--accent);
            border-radius: 8px; padding: 0.55rem 0.875rem;
            font-size: 0.84rem; font-weight: 600; color: var(--text-dark);
            display: flex; align-items: center; gap: 0.5rem;
}

.brand-pill .brand-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--green); flex-shrink: 0;
}

.brand-pill .brand-dot.note {
 background: var(--amber);
}

.brands-note {
            background: #fffbeb; border-left: 3px solid var(--amber);
            border-radius: 8px; padding: 0.875rem 1rem;
            font-size: 0.82rem; color: #92400e; line-height: 1.6;
            margin-top: 1.5rem;
}

.coverage-note {
            background: #eff6ff; border-left: 3px solid #3b82f6;
            border-radius: 8px; padding: 0.875rem 1rem;
            font-size: 0.82rem; color: #1e40af; line-height: 1.6;
            margin-top: 0.75rem;
}

.legend {
 display: flex; gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}

.legend-item {
            display: flex; align-items: center; gap: 0.4rem;
            font-size: 0.75rem; color: var(--text-mid); font-weight: 500;
}

.legend-dot {
 width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.legend-dot.green {
 background: var(--green);
}

.legend-dot.amber {
 background: var(--amber);
}

a.brand-pill {
 text-decoration: none; color: var(--text-dark);
}

a.brand-pill:hover {
 background: #e0f2fe; border-left-color: var(--accent2); color: var(--accent2);
}

.prefix-table {
width:100%;border-collapse:collapse;margin:0.75rem 0;font-size:0.85rem
}

.prefix-table th {
background:#f1f5f9;font-weight:700;color:#1e293b;padding:0.5rem 0.75rem;text-align:left;border-bottom:2px solid #e2e8f0
}

.prefix-table td {
padding:0.45rem 0.75rem;border-bottom:1px solid #f1f5f9;color:#475569
}

.prefix-table tr:last-child td {
border-bottom:none
}

.cta-btn.secondary {
background:none;border:2px solid #00b4d8;color:#0077b6;box-shadow:none
}

.cta-btn.secondary:hover {
background:rgba(0,180,216,0.08)
}

.contact-option {
            display: flex; align-items: flex-start; gap: 1rem;
            background: #f8fafc; border: 1px solid var(--card-border);
            border-left: 4px solid var(--accent);
            border-radius: 10px; padding: 1rem 1.1rem;
            margin-bottom: 0.75rem;
}

.contact-option-icon {
 font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem;
}

.contact-option-label {
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.2rem;
}

.contact-option-value {
            font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
}

.contact-option-value a {
            color: var(--accent2); text-decoration: none;
}

.contact-option-value a:hover {
 text-decoration: underline;
}

.contact-option-desc {
            font-size: 0.78rem; color: var(--text-mid); margin-top: 0.2rem; line-height: 1.5;
}

.feedback-link {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: var(--accent); color: #fff; text-decoration: none;
            padding: 0.65rem 1.25rem; border-radius: 10px;
            font-size: 0.88rem; font-weight: 700;
            transition: background 0.2s; margin-top: 0.5rem;
}

.feedback-link:hover {
 background: var(--accent2);
}

.cf-field {
 margin-bottom: 0.875rem;
}

.cf-field label {
            display: block; font-size: 0.7rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.06em;
            color: var(--text-light); margin-bottom: 0.3rem;
}

.cf-field textarea.form-input {
 resize: vertical; min-height: 110px;
}

.cf-required {
 color: var(--red);
}

.cf-status {
            padding: 0.75rem 1rem; border-radius: 8px;
            font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem;
}

.cf-status.success {
 background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
}

.cf-status.error {
 background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}

.disclaimer-block {
            background: #fef2f2; border-left: 3px solid var(--red);
            border-radius: 8px; padding: 1rem 1.1rem;
            font-size: 0.88rem; color: #7f1d1d; line-height: 1.65;
            margin-bottom: 1.25rem;
}

.disclaimer-block strong {
 color: #991b1b;
}

.step-list {
            list-style: none; padding: 0; margin: 0.5rem 0 0;
            display: flex; flex-direction: column; gap: 0.5rem;
}

.step-list li {
            display: flex; gap: 0.75rem; align-items: flex-start;
            font-size: 0.88rem; color: var(--text-mid); line-height: 1.6;
}

.bullet-list {
            margin: 0.5rem 0 0 1.25rem;
            color: var(--text-mid);
            line-height: 1.7;
}

.bullet-list li {
            margin-bottom: 0.45rem;
}

.step-num {
            flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
            background: var(--accent); color: #fff;
            font-size: 0.7rem; font-weight: 800;
            display: inline-flex; align-items: center; justify-content: center;
            margin-top: 0.1rem;
}

.caveat-block {
            background: #fffbeb; border-left: 3px solid var(--amber);
            border-radius: 8px; padding: 0.875rem 1rem;
            font-size: 0.84rem; color: #92400e; line-height: 1.6;
            margin-top: 1.25rem;
}

.source-chips {
            display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem;
}

.source-chip {
            background: #f1f5f9; border: 1px solid var(--card-border);
            border-radius: 999px; padding: 0.25rem 0.7rem;
            font-size: 0.76rem; font-weight: 600; color: var(--text-mid);
}

.universal-wrap {
            max-width: 760px;
            margin: 2.5rem auto;
            padding: 0 1rem;
}

.universal-card {
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
            padding: 1.25rem 1.2rem 1.35rem;
}

.universal-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.35rem;
}

.universal-sub {
            font-size: 0.9rem;
            color: #475569;
            margin-bottom: 0.95rem;
}

.universal-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
}

.universal-actions {
            margin-top: 0.8rem;
            display: flex;
            gap: 0.55rem;
            flex-wrap: wrap;
}

.universal-btn {
            border: 1px solid #94a3b8;
            background: #0f172a;
            color: #ffffff;
            border-radius: 10px;
            padding: 0.62rem 0.9rem;
            font-weight: 700;
            cursor: pointer;
}

/* ---- Branding ---- */
img.ia-sidebar-logo {

    width: 150px;
    height: 150px;

}

/* ---- Homepage Explanation Strip ---- */
.explain-strip {

    margin: 0.5rem 0 0.75rem;
    border: 1px solid #d4dee9;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(241, 245, 249, 0.95) 55%, rgba(226, 232, 240, 0.9) 100%);
    padding: 0.65rem 0.75rem 0.7rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);

}

.explain-tool-cards {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.5rem;

}

.explain-tool-card {

    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    padding: 0.55rem 0.6rem;

}

.explain-tool-head {

    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;

}

.explain-tool-icon {

    font-size: 0.95rem;
    line-height: 1;

}

.explain-tool-head h2 {

    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;

}

.explain-tool-card p {

    font-size: 0.76rem;
    color: var(--text-mid);
    line-height: 1.4;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.explain-tool-tag {

    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.12rem 0.48rem;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;

}

.explain-use-cases {

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 0.45rem;

}

.explain-use-case {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 32px;
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
    border-right: 1px solid #e2e8f0;

}

.explain-use-case:last-child {

    border-right: none;

}

.explain-handoff {

    border-top: 1px solid #dbe4ee;
    padding-top: 0.35rem;

}

.explain-handoff p {

    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    line-height: 1.35;

}

@media (max-width: 700px) {

    .explain-tool-cards {

        grid-template-columns: 1fr;

    }

    .explain-use-cases {

        grid-template-columns: 1fr;

    }

    .explain-use-case {

        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        justify-content: flex-start;
        text-align: left;
        padding: 0.4rem 0.55rem;

    }

    .explain-use-case:last-child {

        border-bottom: none;

    }

}

.report-action-btn.report-btn--active {
    background: #f59e0b !important;
    color: #000 !important;
    border-color: #f59e0b !important;
    opacity: 1;
    font-weight: 800;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.report-action-btn.report-btn--inactive {
    opacity: 0.56;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

.report-action-btn.report-btn--inactive:hover {
    opacity: 0.72;
}

.retailer-link-muted {
    color: var(--text-muted);
    font-size: 0.8rem;
}
