/* ============================================================================
   GridCraft - drafting-board design system
   Palette: blueprint navy, drafting white, steel gray, drafting orange.
   Typography: Inter (UI), JetBrains Mono (technical accents).
   ============================================================================ */

:root {
    --navy:        #0b2545;       /* deep blueprint navy */
    --navy-2:      #14365e;       /* mid navy */
    --navy-soft:   #23425b;       /* mid blueprint ink */
    --steel:       #6e7b8b;       /* steel grey supporting text */
    --steel-2:     #95a3b3;       /* light steel */
    --rule:        #c8d1dc;       /* hairline rules */
    --rule-soft:   #e2e7ee;       /* faint rules */
    --paper:       #f7f6f1;       /* drafting white */
    --paper-2:     #efece3;       /* warm cream second surface */
    --paper-card:  #fbfaf6;       /* card surface */
    --ink:         #0a1628;       /* near-black ink */
    --accent:      #e07a3c;       /* drafting orange (the working pencil) */
    --accent-2:    #c4602a;       /* deep accent */
    --print-blue:  #1d6fb8;       /* cyan-leaning blueprint */
    --print-cyan:  #d6e7f5;       /* faded blueprint wash */
    --max:         1240px;
    --radius:      4px;
    --shadow-card: 0 1px 0 rgba(11,37,69,0.04), 0 6px 22px -10px rgba(11,37,69,0.18);
    --shadow-hi:   0 24px 48px -16px rgba(11,37,69,0.32);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
}

img, svg { max-width: 100%; display: block; }
hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

a { color: var(--print-blue); text-decoration: none; }
a:hover { color: var(--accent-2); }

.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace; font-feature-settings: "ss01"; }

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--navy); color: var(--paper);
    padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

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

/* ===========================================================
   Header
   =========================================================== */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(247,246,241,0.92);
}
.header-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.9rem; padding-bottom: 0.9rem;
    gap: 1.5rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 36px; height: 36px;
    background: var(--navy);
    border-radius: var(--radius);
    display: grid; place-items: center;
    color: var(--paper);
    box-shadow: 0 0 0 1px rgba(11,37,69,0.2);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; color: inherit; }
.brand-sub { font-family: "JetBrains Mono", monospace; font-size: 0.65rem; color: var(--steel); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.25rem; }

.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
.nav a {
    color: var(--navy-soft); font-size: 0.92rem; font-weight: 500;
    padding: 0.5rem 0.85rem; border-radius: var(--radius);
    transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--navy); background: var(--paper-2); }
.nav .nav-cta {
    background: var(--navy); color: var(--paper);
    padding: 0.55rem 1rem; font-weight: 600;
    border-radius: var(--radius);
}
.nav .nav-cta:hover { background: var(--accent); color: var(--paper); }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
    background: var(--navy);
    color: var(--paper);
    padding: 5rem 0 4.5rem;
    position: relative; overflow: hidden;
    border-bottom: 4px solid var(--accent);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(0deg,  rgba(247,246,241,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,246,241,0.045) 1px, transparent 1px),
        linear-gradient(0deg,  rgba(247,246,241,0.09)  1px, transparent 1px),
        linear-gradient(90deg, rgba(247,246,241,0.09)  1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 30%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.3) 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent);
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(224,122,60,0.35);
    border-radius: var(--radius);
    margin-bottom: 1.4rem;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 1.2rem;
    font-weight: 800;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}
.hero p.lede {
    font-size: 1.18rem; color: rgba(247,246,241,0.78);
    margin: 0 0 1.8rem; max-width: 36em;
    line-height: 1.55;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em;
    border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
    border-radius: var(--radius); cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.primary-on-dark { background: var(--accent); border-color: var(--accent); }
.btn.primary-on-dark:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn.secondary-on-dark { background: transparent; border-color: rgba(247,246,241,0.35); color: var(--paper); }
.btn.secondary-on-dark:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

.hero-stats {
    display: flex; gap: 2.2rem; margin-top: 2.4rem;
    padding-top: 1.6rem; border-top: 1px solid rgba(247,246,241,0.12);
    font-family: "JetBrains Mono", monospace;
}
.hero-stats div { line-height: 1.1; }
.hero-stats strong { font-size: 1.7rem; color: var(--paper); display: block; font-weight: 700; }
.hero-stats span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); }

/* Mosaic of grid previews on the right of the hero */
.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 110px;
    gap: 0.6rem;
    transform: rotate(-1.5deg);
}
.hero-mosaic .tile {
    background: var(--paper-card);
    border: 1px solid rgba(247,246,241,0.18);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hi);
    position: relative;
    transition: transform 0.2s ease;
}
.hero-mosaic .tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.hero-mosaic .tile a { display: block; height: 100%; color: inherit; }
.hero-mosaic .tile svg { width: 100%; height: 100%; display: block; }
.hero-mosaic .tile .tile-label {
    position: absolute; left: 8px; bottom: 6px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--navy); background: rgba(247,246,241,0.92);
    padding: 0.15rem 0.4rem; border-radius: 2px;
}
.hero-mosaic .tile.tall { grid-row: span 2; }
.hero-mosaic .tile.wide { grid-column: span 2; }

/* ===========================================================
   Sections
   =========================================================== */
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule-soft); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--navy); color: var(--paper); border-color: var(--navy-2); }
.section.dark a { color: var(--accent); }
.section.dark .section-intro { color: rgba(247,246,241,0.7); }
.section-head { max-width: 64ch; margin-bottom: 2.4rem; }
.section .kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.section .kicker::before { content: "//"; color: var(--steel-2); }
.section h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    margin: 0 0 0.6rem; line-height: 1.15;
    letter-spacing: -0.02em; font-weight: 700;
}
.section-intro { color: var(--steel); font-size: 1.08rem; max-width: 60ch; }

/* ===========================================================
   Card grids
   =========================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--steel-2); }
.card .thumb-link { display: block; }
.card .thumb {
    aspect-ratio: 4/3; background: var(--paper);
    border-bottom: 1px solid var(--rule-soft);
    overflow: hidden; padding: 0.5rem;
}
.card .thumb svg { width: 100%; height: 100%; }
.card-body { padding: 1.1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.card h3 { font-size: 1rem; margin: 0; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent-2); }
.card p { margin: 0; font-size: 0.9rem; color: var(--steel); line-height: 1.5; }
.card .meta {
    margin-top: auto; font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--print-blue);
}

/* ===========================================================
   Listing grid (compact link tiles)
   =========================================================== */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.listing-grid a {
    display: block; padding: 0.95rem 1.1rem;
    border: 1px solid var(--rule);
    background: var(--paper-card); color: var(--ink);
    border-radius: var(--radius);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.listing-grid a:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.listing-grid a strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.listing-grid a span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--steel);
}
.listing-grid a:hover span { color: var(--accent); }

/* ===========================================================
   Breadcrumbs
   =========================================================== */
.breadcrumbs { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; }
.breadcrumbs li.sep { color: var(--steel-2); }
.breadcrumbs a { color: var(--steel); }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs span[aria-current] { color: var(--ink); }

/* ===========================================================
   Detail page (template page)
   =========================================================== */
.detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; padding: 3rem 0; }
.detail .preview-wrap { position: sticky; top: 5rem; align-self: start; }
.preview-frame {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 0.9rem;
    box-shadow: var(--shadow-card);
}
.preview-frame .preview {
    background: #fff;
    border: 1px solid var(--rule-soft);
    aspect-ratio: 3/4;
    overflow: hidden;
}
.preview-frame .preview svg { width: 100%; height: 100%; }
.preview-meta {
    margin-top: 0.85rem; padding-top: 0.85rem;
    border-top: 1px dashed var(--rule);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem; color: var(--steel); letter-spacing: 0.05em;
    display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.download-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.detail h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 0.4rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.detail .lede { font-size: 1.15rem; color: var(--steel); margin: 0 0 1.5rem; line-height: 1.5; }

.specs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem 0;
    margin: 1.6rem 0 2.2rem;
    border-top: 2px solid var(--navy);
    border-bottom: 1px solid var(--rule);
    background: var(--paper-2);
    border-radius: 0 0 var(--radius) var(--radius);
}
.specs > div {
    padding: 0.85rem 1.1rem;
    border-right: 1px solid var(--rule-soft);
}
.specs > div:last-child { border-right: none; }
.specs dt {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--steel); margin-bottom: 0.2rem;
}
.specs dd { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--navy); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--rule); color: var(--navy-soft); background: var(--paper-card);
    border-radius: 999px;
}
.tag.tag--accent { border-color: var(--accent); color: var(--accent-2); }

/* Article prose */
.prose { max-width: 66ch; }
.prose h2 {
    font-size: 1.45rem;
    margin: 2.6rem 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--rule);
    letter-spacing: -0.01em; font-weight: 700;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; font-weight: 600; }
.prose p { margin: 0 0 1.05rem; color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose ul li { margin-bottom: 0.4rem; }
.prose strong { color: var(--navy); }

.use-cases { padding-left: 0; list-style: none; }
.use-cases li {
    padding: 0.55rem 0 0.55rem 1.6rem;
    position: relative; border-bottom: 1px dashed var(--rule-soft);
}
.use-cases li::before {
    content: "→"; position: absolute; left: 0; top: 0.55rem;
    color: var(--accent); font-weight: 700;
}
.use-cases li:last-child { border-bottom: none; }

/* Inline link slot */
.inline-link-slot {
    display: inline; padding: 0.1rem 0.3rem;
    background: var(--print-cyan);
    border-radius: 2px;
    font-size: 0.95em;
}
.inline-link-slot .ils-kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7em; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--navy-soft); margin-right: 0.25rem;
}

/* ===========================================================
   Related resources (PBN editorial block)
   =========================================================== */
.related-resources {
    margin: 3rem 0 0;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
}
.related-resources h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.resource-kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent);
    background: var(--paper); padding: 0.2rem 0.5rem; border-radius: 2px;
    border: 1px solid rgba(224,122,60,0.3);
}
.resource-intro { font-size: 0.9rem; color: var(--steel); margin: 0 0 1.1rem; }
.resource-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem; }
.resource-item a {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 0.7rem 0.9rem;
    background: var(--paper-card); border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.resource-item a:hover { border-color: var(--accent); background: var(--paper); }
.resource-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--print-blue);
}
.resource-title { font-size: 0.95rem; font-weight: 500; line-height: 1.35; }

/* ===========================================================
   Featured grid-type browser (homepage)
   =========================================================== */
.family-browser {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem;
}
.family-card {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.2rem;
    color: var(--ink);
    display: flex; flex-direction: column; gap: 0.7rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}
.family-card:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: var(--shadow-card); color: var(--ink); }
.family-card .family-preview { aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--rule-soft); border-radius: 2px; background: var(--paper); }
.family-card .family-preview svg { width: 100%; height: 100%; display: block; }
.family-card .family-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.family-card .family-blurb { font-size: 0.9rem; color: var(--steel); margin: 0; line-height: 1.45; }
.family-card .family-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--print-blue); display: flex; justify-content: space-between;
}

/* ===========================================================
   Profession hub
   =========================================================== */
.profession-hub-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.profession-hub-list a {
    display: flex; flex-direction: column; gap: 0.4rem;
    padding: 1.4rem 1.2rem;
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.profession-hub-list a:hover { border-color: var(--navy); background: var(--paper); }
.profession-hub-list strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.profession-hub-list span { font-size: 0.88rem; color: var(--steel); }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
    background: var(--navy); color: var(--paper);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-mark { box-shadow: 0 0 0 1px rgba(247,246,241,0.18); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(247,246,241,0.1);
}
.footer-blurb { color: rgba(247,246,241,0.7); font-size: 0.92rem; margin: 1rem 0 1.2rem; max-width: 38ch; line-height: 1.55; }
.footer-stats { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: rgba(247,246,241,0.6); }
.footer-stats span { color: var(--accent); font-weight: 700; }
.footer-col h4 { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-col a { color: rgba(247,246,241,0.85); }
.footer-col a:hover { color: var(--accent); }
.footer-pbn li { padding-left: 0; }

.copyright {
    margin-top: 1.4rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: 0.78rem; color: rgba(247,246,241,0.55);
}
.copyright .mono { font-size: 0.72rem; }

/* AdSense placeholder visibility (kept as a marker) */
.adsense-slot {
    display: block; margin: 2rem 0; padding: 0.75rem;
    border: 1px dashed var(--rule); background: var(--paper-card);
    text-align: center; font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--steel);
}

/* ===========================================================
   Pagination
   =========================================================== */
.pagination {
    display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center;
    margin-top: 3rem; font-family: "JetBrains Mono", monospace;
}
.pagination a, .pagination span {
    display: inline-block; padding: 0.45rem 0.85rem;
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--ink); background: var(--paper-card);
    font-size: 0.85rem; min-width: 2.2rem; text-align: center;
}
.pagination a:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ===========================================================
   Comparison table
   =========================================================== */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.comparison-table th, .comparison-table td { padding: 0.95rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.comparison-table th { background: var(--navy); color: var(--paper); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; border: none; }
.comparison-table tbody tr:hover { background: var(--paper-2); }
.comparison-table .row-label { font-weight: 600; color: var(--navy); width: 22%; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-mosaic { transform: none; max-width: 540px; }
    .detail { grid-template-columns: 1fr; }
    .detail .preview-wrap { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .header-wrap { flex-direction: column; align-items: stretch; }
    .nav { gap: 0; justify-content: flex-start; overflow-x: auto; }
    .nav a { padding: 0.45rem 0.7rem; font-size: 0.85rem; white-space: nowrap; }
    .hero { padding: 3.5rem 0; }
    .section { padding: 3rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .specs { display: block; }
    .specs > div { border-right: none; border-bottom: 1px solid var(--rule-soft); }
    .specs > div:last-child { border-bottom: none; }
}
