/* Sinclair NA — Base Stylesheet (Warm Lifestyle) */
@import url('brand-tokens.css');

/* ── Reset ── */

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 0.4em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

a { color: var(--color-primary-light); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main { flex: 1 0 auto; }

.product-tool-header {
    margin-bottom: 1rem;
}

.product-tool-header h1 {
    margin: 0.2rem 0 0.35rem;
    color: var(--color-primary);
    font-size: 1.6rem;
}

.product-tool-header p,
.product-tool-header .system-builder-intro {
    max-width: 72ch;
    margin: 0;
    color: var(--color-text-muted);
}

.product-tool-breadcrumbs {
    margin-bottom: 0.35rem;
}

.product-tool-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
}

.product-tool-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.product-tool-breadcrumbs li + li::before {
    content: "/";
    color: color-mix(in srgb, var(--color-text-muted) 45%, transparent);
}

.product-tool-breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.product-tool-breadcrumbs a:hover {
    color: var(--color-primary-dark);
}

/* ── Navigation ── */

.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--color-border), 0 2px 12px rgba(60, 45, 30, 0.07);
    text-transform: uppercase;
    font-weight:800;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    height: 2.25rem;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--color-accent); }

.nav-links a.active { color: var(--color-primary); }

/* ── Hamburger toggle (hidden on desktop) ── */

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-toggle:hover { background: var(--color-surface-2); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav dropdown ── */

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 4rem;
        padding: 0 1rem;
        align-items: center;
    }

    .nav-brand {
        height: 4rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
        border-top: 1px solid var(--color-border);
    }

    .nav-links.is-open {
        max-height: 480px;
    }

    .nav-links li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 0.5rem;
        font-size: 1rem;
        color: #000000;
    }

    .nav-links a:hover { color: var(--color-accent); }
    .nav-links a.active { color: var(--color-primary); }
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ── Hero ── */

.hero { position: relative; overflow: hidden; }

.hero-bg {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    background-color: #fff;
    
}

.hero-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hero-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 2rem;
}

.hero-label {
    display: inline-block;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 0.25em 0.45em;
}

.hero-label--blue { background: var(--color-primary); }
.hero-label--red  { background: var(--color-accent); }

@media (max-width: 640px) {
    .hero-bg { min-height: 280px; }
    .hero-content { padding: 2.5rem 1rem; }
    .hero-label { font-size: clamp(1.2rem, 7vw, 1.8rem); }
}

/* ── Shared page intro (below hero, above main content) ── */

.page-intro {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Feature Cards Row sits flush under the hero — keep its top padding at zero */
.site-main > * + .feature-cards-section {
    padding-top: 0;
}

/* Alternate content-section backgrounds so stacked blocks read as distinct sections */
.site-main > section:not(.hero):not(.locator-section):not(.registration-section) {
    background: var(--color-bg);
}

.site-main > section:not(.hero):not(.locator-section):not(.registration-section):nth-of-type(odd) {
    background: var(--color-surface);
}

/* ── Rich Text ── */

.rich-text-section { padding: 3rem 0; }

.rich-text-section h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.rich-text-section h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.rich-text-section p { margin-bottom: 1.25rem; max-width: 72ch; }

.rich-text-section ul,
.rich-text-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.rich-text-section li { margin-bottom: 0.4rem; }

.rich-text-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ── Cards ── */

.cards-section {
    padding: 5rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card img { width: 100%; height: 210px; object-fit: cover; }

.card-body { padding: 1.5rem; }

.card-body h3 {
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

/* ── Feature Cards ── */

.feature-cards-section {
    background: var(--color-primary) !important;
}

.feature-cards-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary-dark);
}

.feature-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    background: var(--color-primary);
    padding-bottom: 2rem;
}

.feature-card {
    background: transparent;
    padding: 0;
    padding-top: .5em;
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: var(--color-surface);
    padding: 0.9rem 1.1rem;
    padding-top: 3rem;
    margin: 0 0 0.9rem;
    box-shadow: var(--shadow-sm);
}

.feature-card-body {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 0.15rem;
}

.feature-card-body p:last-child { margin-bottom: 0; }

/* ── CTA Link Panel ── */

.cta-link-section { padding: 3rem 0; }


.cta-link-heading {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2em 0em;
    margin-bottom: 1.25rem;
}

.cta-link-body {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

.cta-link-body p:last-child { margin-bottom: 0; }

.cta-link-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.cta-link-link:hover { color: var(--color-primary-dark); }

.cta-link-arrow {
    transition: transform 0.15s;
}

.cta-link-link:hover .cta-link-arrow {
    transform: translateX(4px);
}

/* ── Search ── */

.search-page { padding: 4rem 0; }

.search-page h1 { margin-bottom: 2rem; }

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    max-width: 640px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--color-primary); }

.search-results { display: flex; flex-direction: column; gap: 0.25rem; }

.search-result {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.search-result:last-child { border-bottom: none; }

.search-result h2 { margin-bottom: 0.4rem; }

.search-result a {
    color: var(--color-primary);
    text-decoration: none;
}

.search-result a:hover { text-decoration: underline; }

.search-result p { color: var(--color-text-muted); font-size: 0.95rem; }

.no-results { color: var(--color-text-muted); font-size: 1.05rem; }

/* ── Error pages ── */

.error-page { padding: 8rem 1.5rem; text-align: center; }
.error-page p { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ── Document list ── */

.document-list { padding: 3rem 0; }

.document-list__heading {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.document-list__description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 72ch;
}

.document-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.document-link:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}

.document-icon { font-size: 1.2rem; flex-shrink: 0; }

.document-name {
    flex: 1;
    font-weight: 600;
    color: var(--color-primary);
}

.document-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ── Footer ── */

.site-footer {
    position: relative;
    background: #000000;
    color: rgba(255, 255, 255, 0.75);
    padding: 2rem 0 2rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary) 50%, var(--color-accent) 50%);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 250, 243, 0.15);
}

.footer-col h4 {
    color: #fffaf3;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-col a:hover { color: #ffffff; }

.footer-col address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-col-image {
    display: block;
    max-width: 160px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-col-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-col-body p { margin-bottom: 0.75rem; }
.footer-col-body p:last-child { margin-bottom: 0; }

.footer-social {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: rgba(255, 250, 243, 0.65);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.15s;
}

.footer-social a:hover { color: var(--color-accent); }

/* ── Product Registration ─────────────────────────────────────────────────── */

.registration-section {
    background: var(--color-bg);
    min-height: 80vh;
}

.registration-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.registration-header h1 { margin-bottom: 0.5rem; }

.registration-intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 0;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 2.25rem;
    flex-shrink: 0;
}

.step-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.step-dot.active .step-num {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.step-dot.done .step-num {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.step-dot.active .step-label { color: var(--color-primary); font-weight: 600; }
.step-dot.done .step-label { color: var(--color-accent); }

.step-line {
    width: 5rem;
    height: 2px;
    background: var(--color-border);
    margin-bottom: 1.25rem;
    transition: background 0.2s;
}

.step-line.done { background: var(--color-accent); }

/* Form card */
.registration-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.step-title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1.75rem;
}

/* Form fields */
.field { margin-bottom: 1.25rem; }

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.required { color: var(--color-accent); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 51, 95, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-accent); }

.field-error {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.field-help {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 2fr 1.5fr 1fr; }

@media (max-width: 560px) {
    .form-grid-2,
    .form-grid-3 { grid-template-columns: 1fr; }
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Product line repeater (step 3) — a real table so columns line up exactly,
   whether or not a given row has a remove button. */
.product-lines-title {
    color: var(--color-primary);
    font-size: 1rem;
    margin: 1.75rem 0 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-lines-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 1rem;
}

.product-lines-table {
    width: 100%;
    border-collapse: collapse;
}

.product-lines-table thead th {
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.75rem 1rem;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.product-line-cell--actions { width: 6rem; }

.product-line-cell {
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.product-line:not(:last-child) .product-line-cell {
    border-bottom: 1px solid var(--color-border);
}

.product-line-cell input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.product-line-cell input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 51, 95, 0.12);
}

.product-line.has-error { background: rgba(223, 15, 31, 0.06); }

.product-line-cell.has-error input { border-color: var(--color-accent); }

.product-line-cell--actions { text-align: right; white-space: nowrap; }

.btn-remove-line {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
}

.btn-remove-line:hover { color: var(--color-accent); }

.btn-add-line { margin-bottom: 1.75rem; }

@media (max-width: 560px) {
    .product-line { flex-direction: column; align-items: stretch; }
    .btn-remove-line { align-self: flex-end; height: auto; padding: 0.35rem 0; }
}

/* Lead form page */
.lead-form-section {
    padding: 3rem 0;
}

.lead-form-container {
    max-width: 700px;
}

.lead-form-heading {
    margin-bottom: 1.75rem;
}

.lead-form-success {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Success page */
.registration-success {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem 2.5rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.success-reg-number {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.success-summary {
    background: var(--color-surface-2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--color-text-muted); }
.summary-value { font-weight: 600; color: var(--color-text); }

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ── Warranty Lookup Modal ────────────────────────────────────────────────── */

.modal-backdrop {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(14, 31, 61, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(14, 31, 61, 0.3);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-backdrop.is-open .modal-box {
    transform: translateY(0);
    opacity: 1;
}

/* Tablet: tighten padding, keep centered */
@media (max-width: 640px) {
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box {
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 88vh;
        transform: translateY(24px);
    }

    .modal-header {
        padding: 1rem 1.25rem 0.875rem;
        position: sticky;
        top: 0;
        background: var(--color-surface);
        z-index: 1;
    }

    .modal-body {
        padding: 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .modal-backdrop {
        padding: 1.5rem;
    }

    .modal-box {
        max-width: 440px;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.modal-body { padding: 1.5rem; }

.modal-intro {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    margin-top: 0.5rem;
}

#lookupResult {
    padding-top: 1rem;
}

/* Lookup result states */
.lookup-result {
    border-radius: var(--radius);
    padding: 1.25rem;
}

.lookup-result--active   { background: #f0fdf4; border: 1px solid #86efac; }
.lookup-result--expired  { background: #fefce8; border: 1px solid #fde047; }
.lookup-result--notfound { background: var(--color-surface-2); border: 1px solid var(--color-border); }

.lookup-result h3 { margin: 0.5rem 0 0.25rem; }

.lookup-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.lookup-status--active   { color: #16a34a; }
.lookup-status--expired  { color: #ca8a04; }
.lookup-status--notfound { color: var(--color-text-muted); }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.lookup-status--active   .status-dot { background: #16a34a; }
.lookup-status--expired  .status-dot { background: #ca8a04; }
.lookup-status--notfound .status-dot { background: #9ca3af; }

/* ── Distributor Locator ──────────────────────────────────────────────────── */


.locator-section { padding: 2rem 0 4rem; }

.locator-shell {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 600px;
}

/* Left panel */
.locator-panel {
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.locator-search {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.locator-search-row {
    display: flex;
    gap: 0.5rem;
}

.locator-search-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: border-color 0.15s;
}

.locator-search-input:focus { border-color: var(--color-primary); }

.locator-search-btn {
    padding: 0.6rem 0.85rem;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
}

.locator-search-btn:hover { background: var(--color-accent-hover); }

.locator-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.locator-clear {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.locator-list {
    overflow-y: auto;
    flex: 1;
}

.loc-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.12s;
}

.loc-item:hover { background: var(--color-bg); }
.loc-item.is-selected { background: color-mix(in srgb, var(--color-accent) 8%, white); border-left: 3px solid var(--color-accent); }

.loc-company {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.loc-city {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
    margin-top: 0.1rem;
}

.loc-address {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.loc-phone { font-size: 0.82rem; margin-top: 0.15rem; }
.loc-phone a { color: var(--color-primary-light); }

.loc-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.loc-empty a { color: var(--color-accent); }

/* Map */
.locator-map { height: 600px; }

/* Leaflet's control corners (.leaflet-top/.leaflet-bottom) default to z-index 1000.
   Cap them below the sticky nav so the zoom control doesn't float over the header. */
.locator-map .leaflet-top,
.locator-map .leaflet-bottom {
    z-index: 999;
}

/* Custom map markers */
.map-marker {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.map-marker--active {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
}

.map-marker--dim {
    width: 12px;
    height: 12px;
    background: var(--color-primary-light);
    opacity: 0.5;
}

@media (max-width: 800px) {
    .locator-shell {
        grid-template-columns: 1fr;
        height: auto;
    }
    .locator-panel { max-height: 340px; }
    .locator-map { height: 380px; }
}

/* ── Documents & Resources ───────────────────────────────────────────────── */

.doc-hero {
    background: var(--color-primary);
    padding: 3rem 0 2.5rem;
}

.doc-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.doc-search-form {
    display: flex;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.doc-search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(223, 15, 31, 0.15);
}

.doc-search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: #fff;
    color: var(--color-text);
    outline: none;
}

.doc-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.doc-search-btn:hover { background: var(--color-primary-dark, #b00d1a); }

/* Layout */

.doc-library { padding: 3rem 0 5rem; }

.doc-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar */

.doc-sidebar {
    position: sticky;
    top: 5rem;
}

.doc-filter-group { margin-bottom: 2rem; }

.doc-filter-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.doc-filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-filter-link {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.13s, color 0.13s;
}

.doc-filter-link:hover { background: var(--color-surface-2); }

.doc-filter-link.is-active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.doc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.doc-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background 0.13s, color 0.13s, border-color 0.13s;
}

.doc-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.doc-tag.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.doc-clear-btn {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--color-accent);
    text-decoration: underline;
    margin-top: 0.5rem;
}

/* Results */

.doc-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
}

.doc-card:hover { box-shadow: var(--shadow); }

/* File type icon */

.doc-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--color-text-muted);
}

.doc-icon--pdf  { background: #4a5568; }
.doc-icon--doc,
.doc-icon--docx { background: #2b6cb0; }
.doc-icon--xls,
.doc-icon--xlsx { background: #276749; }
.doc-icon--ppt,
.doc-icon--pptx { background: #c05621; }
.doc-icon--zip  { background: #744210; }
.doc-icon--png,
.doc-icon--jpg,
.doc-icon--jpeg { background: #553c9a; }

/* Card body */

.doc-card-body { flex: 1; min-width: 0; }

.doc-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.doc-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.doc-badge--cat {
    background: color-mix(in srgb, var(--color-primary) 12%, white);
    color: var(--color-primary);
}

.doc-badge--tag {
    background: var(--color-surface-2);
    color: var(--color-text-muted);
}

/* Download button */

.doc-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.doc-download-btn:hover { background: var(--color-primary-dark); }

/* Empty state */

.doc-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.doc-empty-msg { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Responsive */

@media (max-width: 768px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .doc-clear-btn { grid-column: 1 / -1; }

    .doc-card { flex-wrap: wrap; }

    .doc-download-btn { width: 100%; justify-content: center; }

    .doc-search-form { flex-direction: column; }
}

/* ── Product Categories ──────────────────────────────────────────────────── */

.category-library { padding: 3rem 0 5rem; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.category-card-image {
    aspect-ratio: 4 / 3;
    background: var(--color-surface-2);
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.06);
}

.category-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.category-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.category-card-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.category-card-cta-arrow { transition: transform 0.15s; }

.category-card:hover .category-card-cta-arrow { transform: translateX(4px); }

.product-page-library {
    padding: 3rem 0 5rem;
}

.product-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.product-page-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    padding: 1.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.product-page-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.product-page-card-label {
    margin-bottom: 0.9rem;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-page-card h2 {
    margin-bottom: 0.55rem;
    font-size: 1.35rem;
}

.product-page-card p {
    max-width: 58ch;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.product-page-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 800;
}

.product-page-card-cta span {
    transition: transform 0.15s;
}

.product-page-card:hover .product-page-card-cta span {
    transform: translateX(4px);
}

/* Category detail — product spotlight */

.category-spotlight {
    padding: 3rem 0 2.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.category-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 3rem;
    align-items: center;
}

.category-spotlight-grid--text-only {
    grid-template-columns: 1fr;
}

.category-spotlight-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--color-surface-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.category-spotlight-info .hero-label { margin-bottom: 1.25rem; }

.category-spotlight-info .category-detail-desc { margin-bottom: 0; }

@media (max-width: 860px) {
    .category-spotlight-grid { grid-template-columns: 1fr; }
    .category-spotlight-image { max-width: 360px; margin: 0 auto; }
}

/* Product image carousel */

.category-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.category-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.category-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.category-carousel-btn:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.category-carousel-btn--prev { left: 1rem; }
.category-carousel-btn--next { right: 1rem; }

.category-carousel-dots {
    position: absolute;
    z-index: 2;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.category-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.category-carousel-dot.is-active {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media (max-width: 640px) {
    .category-carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* Category detail — body */

.category-detail { padding: 3rem 0 5rem; }

.category-detail-desc {
    max-width: 72ch;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.category-section-heading {
    margin: 2.5rem 0 1.25rem;
}

.category-model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.category-model-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: monospace;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.category-model-badge:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.product-category-link {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.product-category-link a {
    color: var(--color-primary);
    font-weight: 600;
}

.ahri-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.ahri-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    font-size: 0.875rem;
    white-space: nowrap;
}

.ahri-table th,
.ahri-table td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.ahri-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
}

.ahri-table tbody tr:last-child td { border-bottom: none; }

.ahri-table tbody tr:hover { background: var(--color-surface-2); }

.ahri-table-ref { font-family: monospace; }

.ahri-table td a {
    color: var(--color-primary);
    font-family: monospace;
    text-decoration: underline;
}

.ahri-table td a:hover {
    color: var(--color-primary-dark);
}

.ahri-table td.is-current a {
    font-weight: 700;
}

.ahri-table-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.ahri-table-link:hover { color: var(--color-primary-dark); }

/* Product number guide */

.product-guide {
    padding: 1.25rem 0 5rem;
}

.product-guide-note {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text-muted);
}

.product-guide-note strong {
    color: var(--color-primary);
}

.product-guide-library {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.25rem;
}

.product-guide-family {
    overflow: hidden;
    padding: 1.15rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.product-guide-family-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-guide-family-head h2 {
    margin: 0 0 0.25rem;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.product-guide-family-head p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.product-guide-part-count {
    display: inline-flex;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.45rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.product-guide-example-label {
    max-width: 100%;
    color: var(--color-primary);
    font-family: monospace;
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: right;
}

.product-guide-model-example {
    display: grid;
    grid-template-columns: repeat(var(--guide-columns, 9), minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    margin: 0 -1.15rem;
    padding: 1rem 1.15rem 1.15rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.product-guide-model-example span {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.35rem 0.35rem 0.55rem;
    background: transparent;
    border: 0;
    border-bottom: 3px solid var(--color-border);
    text-align: center;
}

.product-guide-model-example span::after {
    content: "";
    position: absolute;
    right: -0.1rem;
    bottom: 0.2rem;
    width: 1px;
    height: 2.25rem;
    background: var(--color-border);
}

.product-guide-model-example span:last-child::after {
    display: none;
}

.product-guide-model-example strong {
    color: var(--color-accent);
    font-family: monospace;
    font-size: 1.24rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.product-guide-model-example--compact strong {
    font-size: 1rem;
}

.product-guide-model-example em {
    margin-bottom: 0.18rem;
    color: var(--color-primary);
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.product-guide-model-example small {
    margin-top: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.product-guide-part-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border: 1px solid var(--color-border);
}

.product-guide-part-table th,
.product-guide-part-table td {
    padding: 0.5rem 0.65rem;
    border-top: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.product-guide-part-table th {
    background: var(--color-surface-2);
    color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-guide-part-table th:nth-child(1),
.product-guide-part-table td:nth-child(1) {
    width: 4.5rem;
}

.product-guide-part-table th:nth-child(2),
.product-guide-part-table td:nth-child(2) {
    width: 7rem;
}

.product-guide-part-table th:nth-child(3),
.product-guide-part-table td:nth-child(3) {
    width: 10rem;
}

.product-guide-part-table td {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.product-guide-part-table td:first-child {
    color: var(--color-primary);
    font-weight: 900;
}

.product-guide-part-table code {
    color: var(--color-text);
    font-family: monospace;
    font-weight: 900;
}

.product-guide-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.85rem;
}

.product-guide-values span {
    display: inline-flex;
    gap: 0.25rem;
    min-width: 0;
}

/* System builder */

.system-builder-intro {
    max-width: 72ch;
    color: var(--color-text-muted);
}

.system-builder-intro > :last-child { margin-bottom: 0; }

.system-builder {
    padding: 1.25rem 0 5rem;
}

.system-builder-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.system-builder-layout.is-loading {
    opacity: 0.68;
    pointer-events: none;
}

.system-builder-form {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.system-builder-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--color-border);
}

.system-builder-filter-heading {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.system-builder-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.system-builder-field label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.system-builder-field select {
    width: 100%;
    min-height: 36px;
    padding: 0.36rem 0.55rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    font-size: 0.88rem;
}

.system-builder-field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(223, 15, 31, 0.12);
}

.system-builder-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--color-border);
}

.system-builder-actions .doc-clear-btn {
    justify-content: center;
    margin: 0;
}

.system-builder-results {
    min-width: 0;
}

.system-builder-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.system-builder-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.system-builder-export-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.system-results-table-wrap {
    max-height: calc(100vh - 11rem);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.system-results-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.system-results-table th,
.system-results-table td {
    padding: 0.58rem 0.55rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.system-results-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--color-surface-2);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    line-height: 1.15;
}

.system-results-table tbody tr:last-child td {
    border-bottom: none;
}

.system-results-table th:nth-child(1),
.system-results-row td:nth-child(1) {
    width: 9%;
}

.system-results-table th:nth-child(2),
.system-results-row td:nth-child(2),
.system-results-table th:nth-child(3),
.system-results-row td:nth-child(3),
.system-results-table th:nth-child(4),
.system-results-row td:nth-child(4) {
    width: 21%;
}

.system-results-table th:nth-child(5),
.system-results-row td:nth-child(5),
.system-results-table th:nth-child(6),
.system-results-row td:nth-child(6),
.system-results-table th:nth-child(7),
.system-results-row td:nth-child(7) {
    width: 7%;
}

.system-results-ref {
    font-family: monospace;
    font-weight: 700;
    color: var(--color-text-muted);
}

.system-results-ref a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.system-results-ref a:hover {
    color: var(--color-primary-dark);
}

.system-results-model {
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    overflow-wrap: normal;
    white-space: nowrap;
}

.system-results-muted {
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--color-text-muted);
}

.system-builder-empty {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .category-grid { gap: 1.25rem; }
    .category-card-body { padding: 1.1rem; }

    .product-page-grid {
        grid-template-columns: 1fr;
    }

    .product-page-card {
        min-height: 0;
    }
}

@media (max-width: 980px) {
    .product-guide-model-example {
        grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    }

    .system-builder-layout {
        grid-template-columns: 1fr;
    }

    .system-builder-form {
        position: static;
    }
}

@media (max-width: 640px) {
    .product-guide {
        padding: 1.5rem 0 3rem;
    }

    .product-guide-note {
        grid-template-columns: 1fr;
    }

    .product-guide-family-head {
        flex-direction: column;
    }

    .product-guide-example-label {
        text-align: left;
    }

    .product-guide-model-example {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        padding: 0.65rem;
    }

    .product-guide-model-example strong,
    .product-guide-model-example--compact strong {
        font-size: 0.96rem;
    }

    .product-guide-part-table {
        border: 0;
        background: transparent;
    }

    .product-guide-part-table thead {
        display: none;
    }

    .product-guide-part-table tbody,
    .product-guide-part-table tr,
    .product-guide-part-table td {
        display: block;
        width: 100% !important;
    }

    .product-guide-part-table tr {
        margin-bottom: 0.65rem;
        background: #fff;
        border: 1px solid var(--color-border);
    }

    .product-guide-part-table td {
        display: grid;
        grid-template-columns: 6.8rem minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.5rem 0.6rem;
        border-top: 1px solid var(--color-border);
        font-size: 0.8rem;
    }

    .product-guide-part-table td:first-child {
        border-top: 0;
    }

    .product-guide-part-table td::before {
        content: attr(data-label);
        color: var(--color-primary);
        font-size: 0.64rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .system-builder-layout {
        grid-template-columns: 1fr;
    }

    .system-builder-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .system-builder-actions .doc-clear-btn {
        justify-content: center;
        width: 100%;
    }

}
