@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', 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: 184px;
    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;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 800;
    background: rgba(234, 179, 8, 0.16);
    border: 1px solid rgba(234, 179, 8, 0.5);

}

.sidebar-smart-sub-link {

    margin-top: 0.3rem;
    margin-left: 0.6rem;
    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);

}

.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.04em;
    text-transform: uppercase;
    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-section-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    margin: 18px 0 8px;
}

.sidebar-item,
.sidebar-link,
.sidebar-group-link,
.sidebar .cat-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 4px;
}

.sidebar-link.active,
.sidebar-group-link.active,
.sidebar-brand-link.active,
.sidebar-category-link.active,
.sidebar .cat-tab.active,
.sidebar-item.active {
    background: #1e3a5f;
    border-left: 3px solid #4da3ff;
    font-weight: 600;
}
.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%);

}

/* ── Sidebar Feature Request Form ───────────────────────────────────────── */
.sidebar-feature-request {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px 14px;
    margin-bottom: 1.25rem;
}

.sidebar-feature-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.sidebar-feature-check-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 0;
    font-size: 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
    line-height: 1.35;
    min-height: 36px;
}

.sidebar-feature-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: #4da3ff;
    cursor: pointer;
}

.sidebar-feature-writein {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    font-size: 0.8rem;
    box-sizing: border-box;
    outline: none;
}

.sidebar-feature-writein::placeholder {
    color: #64748b;
}

.sidebar-feature-writein:focus {
    border-color: rgba(77, 163, 255, 0.6);
    background: rgba(255, 255, 255, 0.09);
}

.sidebar-feature-submit {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(77, 163, 255, 0.5);
    background: rgba(49, 130, 206, 0.2);
    color: #cfe4ff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.sidebar-feature-submit:hover:not(:disabled) {
    background: rgba(49, 130, 206, 0.35);
    color: #ffffff;
}

.sidebar-feature-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.sidebar-feature-error {
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 6px;
}

.sidebar-feature-thanks {
    font-size: 0.82rem;
    color: #86efac;
    margin: 4px 0 0;
    text-align: center;
}

.ad-zone {

    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 160px;
    padding: 1rem;
    border-left: 1px dashed var(--border);
    background: rgba(248, 250, 252, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 50;

}

.ad-label {

    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px dashed var(--border);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;

}

.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: 184px;
    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;
}

.decode-panel {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.panel-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.decode-panel select,
.decode-panel input,
.decode-panel button {
    margin-bottom: 16px;
}

.decode-panel .form-group {
    margin-bottom: 0;
}

.decode-panel button:last-child,
.decode-panel #decodeBtn {
    margin-bottom: 0;
}

button.decode-button {
    height: 48px;
    font-weight: 600;
    font-size: 16px;
}
.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);

}

/* ── 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;

}

.loading-emoji {
 font-size: 2.75rem; line-height: 1; display: block;
}

.loading-emoji.lightning {
 animation: flicker 0.75s infinite;
}

.loading-emoji.sun {
 animation: sunPop 0.5s ease forwards;
}

@keyframes flicker {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    25%       { opacity: 0.4; transform: scale(0.93); }
    50%       { opacity: 1;   transform: scale(1.07); }
    75%       { opacity: 0.6; transform: scale(1);    }
}

@keyframes sunPop {
    0%   { transform: scale(0.4) rotate(-15deg); opacity: 0; }
    65%  { transform: scale(1.2) rotate(5deg);   opacity: 1; }
    100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

.loading-text {

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

}

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

    margin-top: 1.5rem; background: #ffffff;
    border: 1px solid #e2e8f0;
    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;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;

}

.results-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    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: #ffffff;
}

.results-body {
 padding: 1.5rem;
}

.results-card,
.results-body,
.results-body p,
.results-body li,
.results-body dd,
.results-body dt,
.results-body span,
.results-body strong {
 color: #1a202c;
}

.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: #334155;
}

.result-value {
 font-size: 1.05rem; font-weight: 700; color: #1d4ed8;
}

.info-block {

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

}

.info-block p,
.info-block li,
.result-query {
    color: #4a5568;
}

.info-block h4 {
    color: #1a202c;
}

.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;
}

/* ── 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;
    justify-content: center;
    min-height: 52px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.75rem;
    font-size: 0.98rem; font-weight: 800;
    color: #081321;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s;
    width: 100%;
    box-shadow: 0 12px 28px rgba(249,115,22,0.28);

}

.decode-again-btn:hover {

    color: #081321;
    box-shadow: 0 16px 34px rgba(249,115,22,0.36);
    transform: translateY(-2px) scale(1.01);

}

/* ── 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; }
    .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; }

}

@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; }
    .ad-zone {
        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; }
    .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;
    }
    /* On small screens hide nav text labels to save space */
    .ia-hw-right .ia-header-nav-link { font-size: 0.68rem; padding: 0.3rem 0.45rem; }
    .ia-header-logo-top { height: 32px; width: 32px; }
}

/* ── 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-mid);
    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-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.88);
    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: #334155;
    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 {
font-size:1rem;font-weight:700;color:var(--text-dark);margin-bottom:0.6rem;padding-bottom:0.4rem;border-bottom:2px solid #e2e8f0
}

.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 {

            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 h2 {

            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);
}

.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);
}

/*  */
.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-section {
 margin-bottom: 1.75rem;
}

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

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

.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;
}

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

.static-section h3 {

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

}

.static-section p {

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

}

.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);
}

.note-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;

}

.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;
}

.static-section p + p {
 margin-top: 0.65rem;
}

.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;
}

.note-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: 1rem;

}

.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-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;
}

.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-block p {
font-size:0.875rem;color:#475569;margin-bottom:0.75rem
}

.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;margin:0.25rem
}

.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)
}

.static-card-header h2 {

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

}

.static-card-body {

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

}

.static-section h3 {

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

}

.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;

}

.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);

}

/*  */
.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;

}

/*  */
.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;

}

/* ---- Standardized static page typography ---- */
.static-card-header h2 {

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

}

.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:last-child {

    margin-bottom: 0;

}

.static-section h3 {

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

}

.static-section p {

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

}

.static-section p + p {

    margin-top: 0.65rem;

}

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

    width: 150px;
    height: 150px;

}

/* ================================================================
   LKQ SERIAL ENTRY SECTION
   (inside the serial results card, at the bottom)
   ================================================================ */

.lkq-entry-section {
  border-top: 1px solid #e2e8f0;
  padding: 1rem 1.25rem 1.1rem;
  background: #f8fafc;
  border-radius: 0 0 16px 16px; /* match results-card radius */
}

.lkq-entry-hd {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.lkq-entry-icon {
  font-size: 14px;
  color: var(--accent, #00b4d8);
}

.lkq-entry-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a202c;
}

.lkq-entry-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.lkq-entry-input-row .search-input {
  flex: 1;
  min-width: 0;
}

.lkq-entry-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================================
   LKQ SMART LOOKUP — RESULTS OUTPUT
   ================================================================ */

/* Section wrapper */
.lkq-section {
  margin-bottom: 1.25rem;
}

/* Section header (numbered) */
.lkq-section-hd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.lkq-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #00b4d8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.lkq-step-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

/* ── Section 1: Item Summary ───────────────────────────────────── */
.lkq-summary-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.lkq-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.3rem;
}

.lkq-item-desc {
  font-size: 0.855rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.lkq-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.75rem;
}

.lkq-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.lkq-chip-label {
  font-weight: 600;
  color: #475569;
}

.lkq-chip-val {
  color: #1e293b;
}

.lkq-age-line {
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* ── LKQ Rating Badges ─────────────────────────────────────────── */
.lkq-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.lkq-badge.match {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.lkq-badge.close-match {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
}

.lkq-badge.not-lkq {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ── Section 2: Replacement Option Cards ──────────────────────── */
.lkq-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lkq-option-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.2s;
}

.lkq-option-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Staggered entry animation */
@keyframes lkq-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lkq-row-hidden {
  opacity: 0;
}

.lkq-row-enter {
  animation: lkq-row-in 0.28s ease-out forwards;
}

.lkq-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.lkq-option-nameblock {
  min-width: 0;
}

.lkq-option-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
}

.lkq-option-model {
  font-size: 0.75rem;
  color: #64748b;
  font-family: 'Courier New', Courier, monospace;
  margin-top: 0.1rem;
}

.lkq-option-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.5rem;
}

.lkq-mini-spec {
  font-size: 0.75rem;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.lkq-mini-spec b {
  color: #334155;
  font-weight: 600;
}

.lkq-option-rationale {
  font-size: 0.8rem;
  color: #4a5568;
  line-height: 1.55;
  margin: 0 0 0.55rem;
  font-style: italic;
}

.lkq-option-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.lkq-option-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a202c;
}

.lkq-buy-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent, #00b4d8);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--accent, #00b4d8);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.lkq-buy-link:hover {
  background: var(--accent, #00b4d8);
  color: #fff;
}

/* ── Section 3: Compare Your Recommendation ───────────────────── */
.lkq-compare-section {
  margin-bottom: 0;
}

.lkq-compare-desc {
  font-size: 0.83rem;
  color: #4a5568;
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.lkq-compare-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.lkq-compare-row .search-input {
  flex: 1;
  min-width: 0;
}

.lkq-compare-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Compare verdict */
.lkq-compare-verdict {
  margin-top: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.lkq-compare-loading {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #64748b;
  padding: 0.5rem 0;
}

.lkq-compare-verdict-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.lkq-verdict-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lkq-verdict-query {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a202c;
}

.lkq-verdict-explanation {
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}

/* Compare loading dots */
@keyframes lkq-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.lkq-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #00b4d8);
  animation: lkq-dot-pulse 1.2s ease-in-out infinite;
}
.lkq-dot:nth-child(2) { animation-delay: 0.2s; }
.lkq-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── Phase 4: Full-width results card ─────────────────────────── */
.results-card.lkq-results-full {
  max-width: none !important;
  margin: 24px 0 !important;
  border-radius: 12px;
}

.results-card.lkq-results-full .results-body {
  padding: 0;
}

/* ── Phase 4: Section padding wrapper ─────────────────────────── */
.lkq-section-pad {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.lkq-section-pad:last-child {
  border-bottom: none;
}

/* ── Phase 4: Item ID Card (Section 1) ────────────────────────── */
.lkq-id-body {
  margin-top: 10px;
}

.lkq-id-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
  margin-bottom: 4px;
}

.lkq-id-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lkq-id-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #334155;
  border-radius: 5px;
  padding: 2px 9px;
  letter-spacing: 0.2px;
}

.lkq-id-model {
  font-size: 0.78rem;
  color: #64748b;
  font-family: 'Courier New', Courier, monospace;
}

.lkq-id-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.lkq-id-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.lkq-id-pill-age {
  color: #92400e;
  background: #fffbeb;
  border-color: #fcd34d;
}

.lkq-id-desc {
  font-size: 0.83rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* "Original" badge in rating row */
.lkq-badge.lkq-badge-original {
  background: #e8f4fd;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ── Phase 4: Successor Row (Section 2) ───────────────────────── */
.lkq-successor-section {
  background: #f8fafc;
}

.lkq-successor-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lkq-successor-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 3px 10px;
  flex-shrink: 0;
}

.lkq-successor-tag--direct {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.lkq-successor-tag--equiv {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
}

.lkq-successor-item {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a202c;
}

.lkq-successor-expl {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  flex-basis: 100%;
  margin-top: 2px;
}

.lkq-successor-none-text {
  font-size: 0.85rem;
  color: #64748b;
  font-style: italic;
}

/* ── Phase 4: Comparison Table (Section 3) ────────────────────── */
.lkq-table-section {
  padding-bottom: 0;
}

.lkq-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

.lkq-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #1a202c;
}

/* Column header cells */
.lkq-comparison-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.lkq-th-label {
  width: 120px;
  min-width: 100px;
  color: #94a3b8;
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 1;
}

.lkq-th-original {
  background: #f8fafc;
  color: #475569;
  min-width: 160px;
}

.lkq-th-best {
  background: #fffbeb;
  color: #92400e;
  border-left: 2px solid #fcd34d;
  min-width: 160px;
}

.lkq-th {
  background: #f8fafc;
  color: #475569;
  min-width: 150px;
}

.lkq-th-yourpick {
  background: #f0fdf4;
  color: #065f46;
  border-left: 2px solid #6ee7b7;
  min-width: 150px;
}

/* Row label cells */
.lkq-td-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  background: #fff;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}

/* Data cells */
.lkq-td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  line-height: 1.45;
}

.lkq-td-original {
  background: #f8fafc;
  color: #475569;
}

.lkq-td-best {
  background: #fffdf0;
  border-left: 2px solid #fcd34d;
}

.lkq-td-yourpick {
  background: #f0fdf4;
  border-left: 2px solid #6ee7b7;
}

/* Striped rows */
.lkq-comparison-table tbody tr:nth-child(even) .lkq-td-original { background: #f0f4f8; }
.lkq-comparison-table tbody tr:nth-child(even) .lkq-td-best      { background: #fef9e0; }
.lkq-comparison-table tbody tr:nth-child(even) .lkq-td           { background: #fafafa; }

.lkq-td-name {
  font-weight: 700;
  color: #1a202c;
  line-height: 1.35;
}

.lkq-td-model {
  font-size: 0.73rem;
  color: #64748b;
  font-family: 'Courier New', Courier, monospace;
  margin-top: 2px;
}

.lkq-notes-text {
  font-size: 0.78rem;
  color: #4a5568;
  font-style: italic;
  line-height: 1.5;
}

.lkq-no-val {
  color: #94a3b8;
}

.lkq-no-options {
  font-size: 0.83rem;
  color: #64748b;
  padding: 0.5rem 0;
  margin: 0;
}

/* Table footnotes */
.lkq-table-footnotes {
  padding: 8px 14px 12px;
  border-top: 1px solid #f1f5f9;
}

.lkq-table-footnotes p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ── Phase 4: Compare Section (Section 4) ─────────────────────── */
.lkq-compare-err {
  font-size: 0.83rem;
  color: #991b1b;
  margin: 8px 0 0;
}

.lkq-compare-status {
  min-height: 0;
}

/* LKQ text visibility fixes */
.lkq-output,
.lkq-id-card,
.lkq-successor-card,
.lkq-id-name,
.lkq-id-model,
.lkq-id-specs,
.lkq-id-desc,
.lkq-section-title,
.lkq-section-num {
  color: #1a1a2e !important;
}

.lkq-comparison-table th,
.lkq-comparison-table td {
  color: #1a1a2e !important;
}

.lkq-pill {
  color: #1a1a2e !important;
  background: #e8ecf4 !important;
}

/* Smart Lookup structured age breakdown rows */
.sl-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #e8ecf0;
  background: #ffffff;
  border-left: 3px solid #2563eb;
  margin-bottom: 2px;
}
.sl-result-label {
  color: #5a6a7a;
  font-size: 0.875rem;
  font-weight: 500;
}
.sl-result-value {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 1rem;
}
.sl-result-highlight {
  color: #2563eb;
}

#smart-lookup-results,
#ageResults {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.lkq-output {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ── LKQ text visibility fixes ── */
.lkq-output,
.lkq-id-card,
.lkq-successor-card,
.lkq-id-name,
.lkq-id-model,
.lkq-id-specs,
.lkq-id-desc,
.lkq-section-title,
.lkq-section-num,
.lkq-id-header {
  color: #1a1a2e !important;
}

.lkq-comparison-table th,
.lkq-comparison-table td {
  color: #1a1a2e !important;
}

.lkq-pill {
  color: #1a1a2e !important;
  background: #e8ecf4 !important;
}

.lkq-successor-label,
.lkq-successor-name,
.lkq-successor-model,
.lkq-successor-desc {
  color: #1a1a2e !important;
}

/* =================================================================
   LKQ RESULTS LAYOUT REBUILD (display-only)
   ================================================================= */
.lkq-id-card {
  background: #ffffff !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 12px !important;
}

.lkq-id-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.lkq-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
}

.lkq-id-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lkq-id-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.52rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.lkq-id-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lkq-id-value {
  font-size: 0.86rem;
  color: #1e293b;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lkq-id-row-desc .lkq-id-value {
  font-style: normal;
}

.lkq-successor-card {
  background: #f8fafc;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
}

.lkq-successor-rowline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  background: #ffffff;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.lkq-successor-tag--none {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.lkq-successor-name {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.lkq-successor-model,
.lkq-successor-desc {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lkq-table-wrap {
  margin-top: 0.7rem;
  overflow: visible;
}

.lkq-comparison-table {
  table-layout: fixed;
  width: 100%;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  overflow: hidden;
}

.lkq-comparison-table th,
.lkq-comparison-table td {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lkq-th-label {
  width: 170px;
  min-width: 170px;
}

.lkq-col-label { width: 16%; }
.lkq-col-original,
.lkq-col-best,
.lkq-col-alt1,
.lkq-col-alt2,
.lkq-col-yourpick { width: 16.8%; }

.lkq-th-best {
  border-top: 3px solid #f59e0b !important;
}

.lkq-th-yourpick {
  border-top: 3px solid #14b8a6 !important;
}

.lkq-td-label {
  font-weight: 800 !important;
  color: #334155 !important;
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  border-right: 1px solid #e2e8f0;
}

.lkq-comparison-table tbody tr:nth-child(odd) .lkq-td {
  background: #fbfdff;
}

.lkq-comparison-table tbody tr:nth-child(even) .lkq-td {
  background: #f4f8fc;
}

.lkq-comparison-table tbody tr:nth-child(odd) .lkq-td-best {
  background: #fff8eb;
}

.lkq-comparison-table tbody tr:nth-child(even) .lkq-td-best {
  background: #fef1d6;
}

.lkq-comparison-table th,
.lkq-comparison-table td {
  vertical-align: top;
  border-right: 1px solid #e2e8f0;
}

.lkq-comparison-table th:last-child,
.lkq-comparison-table td:last-child {
  border-right: none;
}

.lkq-yourpick-empty {
  color: #94a3b8 !important;
  background: #edf2f7 !important;
}

.lkq-yourpick-editor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: start;
}

.lkq-yourpick-editor .lkq-compare-input {
  margin: 0;
  min-width: 0;
}

.lkq-yourpick-editor .lkq-compare-btn {
  margin: 0;
  white-space: nowrap;
  padding: 0.52rem 0.72rem;
}

.lkq-yourpick-loaded {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #cbd5e1;
}

.lkq-compare-status {
  grid-column: 1 / -1;
  min-height: 0;
}

.lkq-buy-link {
  text-decoration: underline;
}

.lkq-table-footnotes {
  margin-top: 0.45rem;
  padding: 0.7rem 0.15rem 0.2rem;
  border-top: 1px dashed #d1dbe6;
}

.lkq-table-footnotes p {
  font-size: 0.77rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

@media (max-width: 1100px) {
  .lkq-table-wrap {
    overflow-x: auto;
  }
}

/* ── LKQ Output Container ── */
.lkq-output {
  font-family: 'Inter', sans-serif;
  color: #1a202c;
  width: 100%;
}

/* ── Section headers (e.g. "1 Item Identification") ── */
.lkq-id-header,
.lkq-successor-header,
.lkq-replace-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #1a202c;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

.lkq-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3182ce;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lkq-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Item ID Card body ── */
.lkq-id-card,
.lkq-successor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.07);
}

.lkq-id-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0.85rem 1rem 0.2rem;
}

.lkq-id-model {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3182ce;
  padding: 0 1rem 0.2rem;
}

.lkq-id-specs {
  font-size: 0.85rem;
  color: #475569;
  padding: 0 1rem 0.2rem;
}

.lkq-id-desc {
  font-size: 0.875rem;
  color: #334155;
  padding: 0.5rem 1rem 1rem;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.5rem;
}

.lkq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
}

.lkq-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e8ecf4;
  color: #1a202c !important;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Structured age rows ── */
.sl-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.sl-result-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.sl-result-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a202c;
}

.sl-result-highlight {
  color: #3182ce;
}

/* ── Successor Card ── */
.lkq-successor-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 0.75rem 1rem 0.15rem;
}

.lkq-successor-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0 1rem 0.15rem;
}

.lkq-successor-model {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3182ce;
  padding: 0 1rem 0.2rem;
}

.lkq-successor-desc {
  font-size: 0.85rem;
  color: #475569;
  padding: 0.35rem 1rem 0.85rem;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.4rem;
}

/* ── Comparison Table ── */
.lkq-replace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.07);
}

.lkq-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.lkq-comparison-table thead tr {
  background: #ebf8ff;
}

.lkq-comparison-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1a202c !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid #bfdbfe;
  white-space: nowrap;
}

.lkq-comparison-table thead th:last-child {
  border-right: none;
}

.lkq-comparison-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.lkq-comparison-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.lkq-comparison-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.lkq-comparison-table tbody tr:hover {
  background: #eff6ff;
}

.lkq-comparison-table td {
  padding: 0.65rem 1rem;
  color: #1a202c !important;
  vertical-align: middle;
  border-right: 1px solid #e2e8f0;
}

.lkq-comparison-table td:last-child {
  border-right: none;
}

/* Row label (first column) */
.lkq-comparison-table td:first-child,
.lkq-th-label {
  font-weight: 700;
  color: #334155 !important;
  background: #f1f5f9 !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── LKQ Rating badges ── */
.lkq-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.lkq-rating-badge.match {
  background: #dcfce7;
  color: #166534;
}

.lkq-rating-badge.close-match {
  background: #fef9c3;
  color: #854d0e;
}

.lkq-rating-badge.not-lkq {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Your Pick column ── */
.lkq-th-yourpick {
  background: #1e3a5f !important;
  color: #ffffff !important;
  border-left: 2px solid #f59e0b !important;
}

.lkq-td-yourpick {
  border-left: 2px solid #f59e0b !important;
}

/* ── Compare Your Own form ── */
.lkq-compare-form {
  padding: 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.lkq-compare-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1a202c;
  background: #ffffff;
  outline: none;
}

.lkq-compare-form input:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}

.lkq-compare-btn {
  padding: 0.5rem 1.1rem;
  background: #f59e0b;
  color: #1a202c;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.18s;
}

.lkq-compare-btn:hover {
  background: #d97706;
  color: #ffffff;
}

/* =================================================================
   LKQ RENDERING FIX OVERRIDES (display only)
   ================================================================= */
.lkq-output {
  width: 100%;
  color: #1a202c;
}

.lkq-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.lkq-top-grid .lkq-id-card,
.lkq-top-grid .lkq-successor-card {
  margin-bottom: 0;
  height: 100%;
}

/* Hide section numbers per requirements; keep headings */
.lkq-section-num,
.lkq-step-num {
  display: none !important;
}

.lkq-id-header,
.lkq-successor-header,
.lkq-replace-header,
.lkq-section-hd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #1a202c;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

.lkq-section-title,
.lkq-step-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lkq-id-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.07);
}

@media (max-width: 980px) {
  .lkq-top-grid {
    grid-template-columns: 1fr;
  }
}

.lkq-id-rows {
  display: block;
}

.lkq-id-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.lkq-id-row:first-child {
  border-top: none;
}

.lkq-id-label {
  font-weight: 700;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lkq-id-value {
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lkq-id-desc-block {
  border-top: 1px solid #f1f5f9;
  padding: 0.75rem 1rem 1rem;
  background: #f8fafc;
}

.lkq-id-desc-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.lkq-id-desc-value {
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lkq-successor-card {
  background: #f1f7ff;
  border: 1px solid #cfe3f8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.lkq-successor-rowline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.35rem;
  background: transparent;
  border: 0;
}

.lkq-successor-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lkq-successor-tag {
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lkq-successor-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0 1rem 0.2rem;
}

.lkq-successor-model {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3182ce;
  padding: 0 1rem 0.2rem;
}

.lkq-successor-desc {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
  padding: 0.45rem 1rem 0.95rem;
  border-top: 1px solid rgba(226,232,240,0.9);
  margin-top: 0.35rem;
}

.lkq-table-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.07);
}

.lkq-table-wrap {
  width: 100%;
}

.lkq-comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  table-layout: fixed;
}

.lkq-comparison-table thead tr {
  background: #ebf8ff;
}

.lkq-comparison-table thead th {
  color: #1a202c !important;
  font-weight: 800;
  border: 1px solid #bfdbfe;
  padding: 10px;
}

.lkq-th-best {
  border-top: 3px solid #f59e0b !important;
}

.lkq-comparison-table th,
.lkq-comparison-table td {
  border: 1px solid #e2e8f0 !important;
  padding: 10px !important;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.lkq-comparison-table td:first-child,
.lkq-th-label {
  width: 170px;
  font-weight: 700;
  color: #334155 !important;
  background: #f1f5f9 !important;
}

.lkq-comparison-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.lkq-comparison-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.lkq-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.lkq-rating-badge.match {
  background: #22c55e;
  color: #ffffff;
}

.lkq-rating-badge.above-lkq {
  background: #eab308;
  color: #3b2f05;
}

.lkq-rating-badge.close-match {
  background: #facc15;
  color: #1f2937;
}

.lkq-rating-badge.not-lkq {
  background: #ef4444;
  color: #ffffff;
}

.lkq-rating-badge.lkq-rating-original {
  background: #e2e8f0;
  color: #334155;
}

.lkq-buy-link {
  text-decoration: underline;
  font-weight: 700;
}

.lkq-yourpick-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.lkq-yourpick-editor .lkq-compare-input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #1a202c;
  background: #ffffff;
}

.lkq-yourpick-editor .lkq-compare-btn {
  justify-self: start;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #f59e0b;
  color: #1a202c;
}

.lkq-table-footnotes {
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  padding: 0.65rem 1rem 0.85rem;
}

.lkq-table-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
}

.lkq-table-legend-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.lkq-table-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #475569;
  white-space: nowrap;
}

.lkq-table-footnotes p {
  margin: 0.2rem 0;
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

.lkq-spec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.lkq-spec-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 9px;
}

.lkq-spec-dot-green { background: #16a34a; }
.lkq-spec-dot-orange { background: #f97316; }
.lkq-spec-dot-red { background: #dc2626; }
.lkq-spec-dot-gold { background: #eab308; }

.lkq-spec-value {
  overflow-wrap: anywhere;
}

.smart-lookup-assist {

    margin-top: 0.85rem;
    animation: lkq-row-in 0.18s ease;

}

.smart-lookup-assist.hidden {

    display: none;

}

.smart-lookup-assist-card {

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);

}

.smart-lookup-assist-card-info {

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

}

.smart-lookup-assist-title {

    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.55rem;

}

.smart-lookup-assist-note,
.smart-lookup-assist-single {

    font-size: 0.9rem;
    color: var(--text-main);

}

.smart-lookup-assist-list {

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

}

.smart-lookup-assist-actions {

    display: flex;
    gap: 0.55rem;
    margin-top: 0.8rem;

}

.smart-lookup-suggestion-pill {

    appearance: none;
    border: 1px solid rgba(49, 130, 206, 0.24);
    background: rgba(49, 130, 206, 0.08);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;

}

.smart-lookup-suggestion-pill:hover {

    transform: translateY(-1px);
    border-color: rgba(49, 130, 206, 0.45);
    background: rgba(49, 130, 206, 0.14);

}

.smart-lookup-suggestion-pill-secondary {

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

}

.smart-lookup-search-as-entered {

    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    padding: 0;
    cursor: pointer;
    text-align: left;

}

.smart-lookup-search-as-entered:hover {

    color: var(--primary);

}

.smart-general-card {

    display: grid;
    gap: 1rem;

}

.smart-general-section {

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);

}

.smart-general-refine {

    border-color: rgba(245, 158, 11, 0.35);
    background: #fffaf0;

}

.smart-general-section-title {

    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.45rem;

}

.category-page-head p,
.popular-brands-section p,
.static-card-header p,
.static-section p,
.static-section li,
.search-hint,
.search-link {
    color: #334155;
}

.smart-general-subtitle,
.smart-general-overview-text,
.smart-general-meta,
.smart-general-overview-note {

    color: var(--text-muted);
    font-size: 0.9rem;

}

.smart-general-meta {

    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;

}

.smart-general-refine-list,
.smart-general-lkq-actions {

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

}

.smart-general-refine-pill,
.smart-general-primary,
.smart-general-secondary {

    appearance: none;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;

}

.smart-general-refine-pill,
.smart-general-primary {

    border: 1px solid rgba(49, 130, 206, 0.28);
    background: rgba(49, 130, 206, 0.1);
    color: var(--text-main);

}

.smart-general-secondary {

    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: var(--text-muted);

}

.smart-general-refine-pill:hover,
.smart-general-primary:hover,
.smart-general-secondary:hover {

    transform: translateY(-1px);

}

.smart-general-lkq-note {

    margin-top: 0.75rem;
    font-size: 0.84rem;
    color: var(--text-muted);

}

.smart-general-lkq-target {

    margin-top: 0.85rem;

}

.smart-general-inline-loading,
.smart-general-inline-error {

    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;

}

.smart-general-inline-loading {

    background: #f8fbff;
    border: 1px solid rgba(49, 130, 206, 0.2);
    color: var(--text-main);

}

.smart-general-inline-error {

    background: #fff5f5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;

}

.smart-unrecognized-card {

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);

}

.smart-unrecognized-title,
.smart-unrecognized-subtitle,
.smart-unrecognized-tips-title {

    color: var(--text-main);
    font-weight: 800;

}

.smart-unrecognized-subtitle,
.smart-unrecognized-tips-title {

    margin-top: 0.85rem;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;

}

.smart-unrecognized-suggestions {

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

}

.smart-unrecognized-empty {

    margin-top: 0.65rem;
    color: var(--text-muted);

}

.smart-unrecognized-pill,
.smart-unrecognized-submit {

    appearance: none;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;

}

.smart-unrecognized-pill {

    border: 1px solid rgba(49, 130, 206, 0.28);
    background: rgba(49, 130, 206, 0.1);
    color: var(--text-main);

}

.smart-unrecognized-tips {

    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);

}

.smart-unrecognized-form {

    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;

}

.smart-unrecognized-input {

    flex: 1 1 280px;

}

.smart-unrecognized-submit {

    border: 1px solid rgba(49, 130, 206, 0.28);
    background: rgba(49, 130, 206, 0.1);
    color: var(--text-main);

}

/* ================================================================
   SMART LOOKUP COMPACT RESULTS OVERRIDES
   ================================================================ */
.sl-summary-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sl-hero-tier-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .sl-hero-tier-row {
    flex-direction: column;
  }
}

.sl-summary-card {
  padding: 12px 14px;
}

.sl-summary-card h4 {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.sl-summary-row {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

.lkq-top-grid {
  margin-bottom: 12px;
}

.lkq-table-section {
  padding-top: 12px;
}

.lkq-options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin-top: 10px;
}

.lkq-option-card {
  background: #ffffff;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.lkq-option-card-best {
  border-color: #f3c96a;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.lkq-option-card-yourpick {
  border-color: #9fd7cc;
}

.lkq-option-card-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #dbe5ef;
  background: #f8fbff;
}

.lkq-option-card-best .lkq-option-card-head {
  background: #fff9eb;
}

.lkq-option-card-yourpick .lkq-option-card-head {
  background: #f2fbf8;
}

.lkq-option-card-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 5px;
}

.lkq-option-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.lkq-option-card-model {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lkq-option-card-body {
  padding: 0;
  display: grid;
}

.lkq-option-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.lkq-option-row:nth-child(even) {
  background: #f8fafc;
}

.lkq-option-row:first-child {
  border-top: none;
}

.lkq-option-row-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0;
  padding-top: 2px;
}

.lkq-option-row-value,
.lkq-card-value {
  font-size: 0.77rem;
  line-height: 1.4;
  color: #1f2937;
  overflow-wrap: anywhere;
  min-width: 0;
}

.lkq-option-row-value .lkq-rating-badge {
  font-size: 0.64rem;
  padding: 0.18rem 0.5rem;
}

.lkq-option-row-value .lkq-buy-link {
  font-size: 0.72rem;
}

.lkq-inline-details {
  display: block;
}

.lkq-inline-details summary {
  cursor: pointer;
  color: #334155;
  font-size: 0.77rem;
  line-height: 1.4;
  list-style: none;
}

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

.lkq-inline-details summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 6px;
  color: #64748b;
  font-size: 0.62rem;
}

.lkq-inline-details[open] summary::before {
  content: '▼';
}

.lkq-inline-details-body {
  margin-top: 6px;
  font-size: 0.77rem;
  color: #475569;
  line-height: 1.45;
}

.lkq-yourpick-editor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.lkq-yourpick-editor .lkq-compare-status {
  grid-column: 1 / -1;
}

.lkq-yourpick-editor .lkq-compare-input {
  font-size: 0.8rem;
  min-width: 0;
}

.lkq-yourpick-editor .lkq-compare-btn {
  align-self: stretch;
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 0.5rem 0.8rem;
}

.lkq-yourpick-loaded {
  border-top: 1px solid #eef2f7;
  padding-top: 8px;
}

.lkq-table-legend,
.lkq-table-footnotes {
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .lkq-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lkq-option-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .sl-summary-band,
  .lkq-options-grid,
  .lkq-top-grid {
    grid-template-columns: 1fr;
  }

  .lkq-option-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* --- SEO GUIDE / LOCATION PAGE MODULES --- */
.location-guide-intro,
.seo-bridge-card {
    margin-bottom: 1.25rem;
}

.location-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.guide-card,
.flow-card,
.seo-bridge-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.15rem 1.15rem 1.05rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.guide-card h2,
.flow-card h2,
.seo-bridge-card h2 {
    margin-bottom: 0.45rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.guide-card p,
.flow-card p,
.seo-bridge-card p {
    color: var(--text-mid);
}

.guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.guide-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.guide-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    opacity: 1;
}

.flow-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.flow-card .decode-btn {
    display: inline-block;
    width: auto;
    min-width: 200px;
    text-align: center;
}

.guide-faq {
    margin: 1.5rem 0 2rem;
}

.faq-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.seo-bridge-card .bridge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.95rem;
}

.seo-bridge-card .decode-btn {
    width: auto;
    margin-top: 0;
    min-width: 180px;
}


.sidebar-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-top: 0.5rem;
}

.sidebar-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.sidebar-brand-sub {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

/* ── Back to top button: bottom-left position ───────────────────────────── */
.back-to-top-fab {
    right: auto !important;
    left: 18px !important;
}
