/* ═══════════════════════════════════════════════════════════
   ESOTECH MAIN STYLES — All page-level CSS, consolidated
   Loaded after design-system.css on every page. Owns the
   section-specific rules for every page in one file so we
   don't have to maintain a separate stylesheet per page.

   Tokens (colours, surfaces, borders, radii) come from
   design-system.css. Follows the rigid design language —
   flat fills, hard 1 px lines, no border-radius, no
   decorative gradients, no soft glow.

   ───────────────────────────────────────────────────────────
   TABLE OF CONTENTS
   ───────────────────────────────────────────────────────────
   1. SHARED PAGE-LEVEL  ─ .page-hero, .contact-cards/card
   2. HOMEPAGE           ─ index.html
   3. ABOUT              ─ about.html
   4. BLOG LISTING       ─ blog.html
   5. BLOG POST          ─ blog/post.html
   6. RESOURCES LISTING  ─ resources.html
   7. RESOURCE DETAIL    ─ resources/resource.html
   8. LEGAL              ─ privacy.html, terms.html
═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   1. SHARED PAGE-LEVEL RULES
   These are used by more than one inner page so they live
   above the per-page sections. .page-hero values are
   reconciled (formerly: about=10rem, blog/res=9rem).
═══════════════════════════════════════════════════════════ */

/* ── INNER PAGE HERO (text) ────────────────────
   interactive.css owns positioning, corners, canvas
   opacity and the side guide-lines. This block only
   handles the inner type scale & padding. */
.page-hero {
    padding: 9rem 0 4rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.1rem;
    color: var(--text-1);
    max-width: 680px;
    margin: 0 auto 2rem;
    font-weight: 300;
    line-height: 1.85;
}

/* ── SHARED CONTACT CARDS (homepage + about) ─── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.contact-card {
    padding: 2rem;
    background: transparent;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color .25s ease, border-color .25s ease;
}
.contact-card:hover { background: var(--surface-1); }
.contact-card svg {
    width: 36px; height: 36px;
    stroke: var(--blue-accent); stroke-width: 1.25;
    fill: none; margin-bottom: 1rem;
}
.contact-card h4 { font-size: 1.15rem; margin-bottom: .55rem; font-weight: 600; }
.contact-card p  { color: var(--text-2); margin-bottom: .9rem; font-size: .92rem; }
.contact-card a  { color: var(--blue-accent); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* ── SHARED FLOAT KEYFRAME (homepage + about visuals) ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}


/* ═══════════════════════════════════════════════════════════
   2. HOMEPAGE  (index.html)
   Hero, hero card / slideshow, products showcase, TLDNXS
   showcase, capabilities grid, about preview, contact cards.
═══════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 11rem 0 6rem;
    overflow: hidden;
}
/* Full-bleed background image layer behind the hero — desaturated
   and faded so the deep-black surface still reads as the page
   background. Sits behind .hero > .wrap. */
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    opacity: .35;
}
/* Bottom-to-top fade that anchors the hero copy on the black
   page surface — mirrors the reference's gradient-to-bg pattern. */
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        var(--bg-deep) 0%,
        rgba(5,5,5,.6) 50%,
        rgba(5,5,5,0) 100%
    );
}
.hero .wrap { position: relative; z-index: 2; }

/* Decorative bottom-right "system status" terminal block. */
.hero-status {
    position: absolute;
    right: 9vw; bottom: 3.5rem;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--text-2);
    text-align: right;
    line-height: 1.8;
    letter-spacing: .2em;
    text-transform: uppercase;
    pointer-events: none;
}
.hero-status span { display: block; }
.hero-status .ok { color: var(--blue-accent); }
@media (max-width: 1200px) { .hero-status { display: none; } }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5rem; align-items: center;
}
/* Hero eyebrow becomes a single-line terminal status indicator
   with a leading hairline tick — matches the reference's
   "Status: Initializing System_01" pattern. */
.hero-eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--font-mono);
    font-size: .72rem; letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--blue-accent);
    padding: 0;
    border: 0;
    background: transparent;
    margin-bottom: 1.6rem;
}
.hero-eyebrow::before {
    content: '';
    width: 3rem; height: 1px;
    background: var(--blue-accent);
}

/* Override the shared h1 size for the larger homepage hero. */
.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4.5vw, 5.5rem);
    font-weight: 900; line-height: .92;
    margin-bottom: 1.6rem;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.hero-desc {
    font-size: 1.15rem; color: var(--text-1);
    font-weight: 300; line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 0;
    margin-top: 2.8rem;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.stat-chip {
    padding: 1.1rem 1.3rem;
    background: transparent;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-chip strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem; color: var(--blue-accent);
    margin-bottom: .25rem;
    font-weight: 500;
}
.stat-chip span {
    font-size: .68rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--text-2);
}

/* ── Hero visual card ──────────────────────── */
.hero-visual { position: relative; }
.hero-card {
    background: #0a0a0a61;
    border: 1px solid var(--border-strong);
    padding: 1.6rem;
    position: relative;
}
.hero-card-top {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.product-logo-hero { height: 34px; width: auto; }

/* ── Screenshot Flip Slideshow ─────────────── */
.screenshot-wrap {
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
    position: relative; z-index: 1;
    perspective: 1000px;
    overflow: hidden;
}
.screenshot-wrap .slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    opacity: 0;
    transform: rotateY(-90deg);
    transition:
        opacity 0s 0.25s,
        transform 0s 0.25s;
}
/* First slide is the sizer — kept in flow */
.screenshot-wrap .slide:first-child { position: relative; }
.screenshot-wrap .slide.active {
    opacity: 1;
    transform: rotateY(0deg);
    transition:
        opacity 0.05s ease,
        transform 0.55s cubic-bezier(.25,.46,.45,.94);
}
.screenshot-wrap .slide.flip-out {
    opacity: 0;
    transform: rotateY(90deg);
    transition:
        opacity 0.05s 0.65s ease,
        transform 0.50s cubic-bezier(.55,.06,.68,.19);
}
.hero-card-bottom {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-2); font-size: .85rem;
}
.nxy-hero {
    position: absolute; right: -110px; bottom: -24px;
    width: 150px;
    animation: float 8s ease-in-out infinite;
    z-index: 2; pointer-events: none;
}

/* ── PRODUCTS / TLDNXS SHOWCASE ────────────── */
.tldnxs-showcase {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
    gap: 4rem; align-items: center;
    padding: 3rem;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    position: relative;
    margin-bottom: 4rem;
}
.tldnxs-text { position: relative; z-index: 1; }
.tldnxs-logo-wrap {
    display: flex; align-items: center; gap: 1.2rem;
    margin-bottom: 1.6rem;
}
.tldnxs-logo { height: 46px; width: auto; }
.tldnxs-text h3 {
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
    font-weight: 600; margin-bottom: 1rem;
    letter-spacing: -.005em;
}
.tldnxs-text p { color: var(--text-1); line-height: 1.8; margin-bottom: 1.6rem; }
.feature-list { list-style: none; margin-bottom: 1.8rem; }
.feature-list li {
    display: flex; align-items: center; gap: .9rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-1); font-size: .92rem;
}
.feature-list li::before { content: '▸'; color: var(--blue-accent); }
.tldnxs-media { position: relative; z-index: 1; display: grid; gap: 1rem; }
.tldnxs-media img {
    border: 1px solid var(--border);
    transition: border-color .25s ease, transform .25s ease;
}
.tldnxs-media img:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

/* Spec / product cards — adapted from the static reference's
   "SYSTEM CORE SPECS" block: pure-black surface, 1 px hairline,
   2 px brand-blue left edge, single brand-blue corner pixel
   (via .pixel-border helper in design-system.css). */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 1.5rem;
}
.product-card {
    position: relative;
    padding: 2.2rem;
    background: #000;
    border: 1px solid var(--border);
    border-left: 2px solid var(--blue-accent);
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.product-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 4px; height: 4px;
    background: var(--blue-accent);
}
/* Middle card switches accent to magenta for visual rhythm */
.product-card:nth-child(2) {
    border-left-color: var(--accent-purple);
}
.product-card:nth-child(2)::after { background: var(--accent-purple); }
.product-card:nth-child(2) .pill-blue { color: var(--accent-purple); border-color: var(--border-purple); }
.product-card:nth-child(2) .card-art { color: var(--accent-purple); }
.product-card:nth-child(2) .card-meter .bar i { background: var(--accent-purple); box-shadow: 0 0 6px var(--accent-purple); }
.product-card:hover {
    border-color: var(--blue-accent);
    border-left-color: var(--blue-accent);
    background: var(--surface-2);
    transform: translateY(-2px);
}
.product-card:nth-child(2):hover {
    border-color: var(--accent-purple);
    border-left-color: var(--accent-purple);
}
.product-card-top {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.product-card-top img { height: 32px; width: auto; }
.product-card h4 {
    font-family: var(--font-mono);
    font-size: 1.05rem; margin-bottom: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.005em;
}
.product-card p  { color: var(--text-2); margin-bottom: 1.3rem; font-size: .9rem; line-height: 1.7; }


/* ── CAPABILITIES ──────────────────────────── */
.caps-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 4rem; align-items: center;
}
.cap-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.cap-item {
    display: flex; gap: 1.4rem; align-items: flex-start;
    padding: 1.6rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid var(--blue-500);
    padding-left: 1.6rem;
    transition: border-left-color .25s ease, background-color .25s ease;
}
.cap-item:hover {
    border-left-color: var(--accent-cyan);
    background: var(--surface-1);
}
.cap-item img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.cap-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    stroke: var(--blue-accent);
    stroke-width: 1.25;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: .15rem;
}
.cap-item h4  { font-size: 1.25rem; margin-bottom: .4rem; font-weight: 600; }
.cap-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--blue-accent); opacity: .55;
    font-size: .8rem; margin-right: .4rem;
}
.cap-item p { color: var(--text-1); font-size: .92rem; line-height: 1.7; }
/* Capabilities visual — simple float animation, no parallax. */
.caps-visual {
    display: grid; place-items: center;
}
.caps-visual img {
    max-width: 460px; width: 100%;
    animation: float 10s ease-in-out infinite;
}
/* Tablet / mobile / reduced-motion: kill the float entirely. */
@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
    .caps-visual img { animation: none; display: none; }
}


/* ── ABOUT (homepage preview) ──────────────── */
.about-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5rem; align-items: center;
}
.about-body p {
    color: var(--text-1); font-size: 1.05rem; line-height: 1.8;
    margin-bottom: 1.4rem;
}
.about-stat-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.about-stat {
    padding: 1.6rem;
    background: transparent;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color .25s ease;
}
.about-stat:hover { background: var(--surface-1); }
.about-stat strong {
    display: block; font-size: 2rem;
    color: var(--blue-accent); margin-bottom: .3rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}
.about-stat span {
    font-size: .68rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--text-2);
}

/* ── HOMEPAGE RESPONSIVE ───────────────────── */
@media (max-width: 1200px) {
    .tldnxs-showcase { grid-template-columns: 1fr; padding: 2rem; }
    .hero-inner      { grid-template-columns: 1fr; }
    .caps-grid       { grid-template-columns: 1fr; }
    .about-inner     { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .hero-stats     { grid-template-columns: 1fr 1fr; }
    .product-cards { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
    .caps-visual img { width: 20%; }
}
@media (max-width: 640px) {
    .hero-stats   { grid-template-columns: 1fr; }
    .hero-cta     { flex-direction: column; }
    .btn          { width: 100%; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════
   3. ABOUT  (about.html)
   Company story, MVV cards, people, brand timeline, careers.
═══════════════════════════════════════════════════════════ */

/* ── COMPANY STORY ─────────────────────────── */
.story-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5rem; align-items: center;
}
.story-body p {
    color: var(--text-1); font-size: 1rem;
    line-height: 1.8; margin-bottom: 1.3rem;
}
.story-stat-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.story-stat {
    padding: 1.6rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color .25s ease;
}
.story-stat:hover { background: var(--surface-1); }
.story-stat strong {
    display: block; font-size: 2rem;
    color: var(--blue-accent); margin-bottom: .3rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}
.story-stat span {
    font-size: .68rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--text-2);
}

/* ── MVV CARDS ─────────────────────────────── */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.mvv-card {
    padding: 2.2rem;
    background: transparent;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color .25s ease;
}
.mvv-card:hover { background: var(--surface-1); }
.mvv-icon {
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.3rem;
}
.mvv-icon svg {
    width: 22px; height: 22px;
    stroke: var(--blue-accent); stroke-width: 1.25; fill: none;
}
.mvv-card h4 { font-size: 1.35rem; margin-bottom: .75rem; font-weight: 600; }
.mvv-card p  { color: var(--text-1); font-size: .95rem; line-height: 1.75; }

/* ── PEOPLE ────────────────────────────────── */
.people-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5rem; align-items: center;
}
.people-body p {
    color: var(--text-1); font-size: 1rem;
    line-height: 1.8; margin-bottom: 1.3rem;
}
.discipline-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    margin-top: 1.6rem;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.discipline-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1.1rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: .88rem; color: var(--text-1);
}
.discipline-item::before { content: '▸'; color: var(--blue-accent); flex-shrink: 0; }
.people-visual { display: grid; place-items: center; }
.people-visual img {
    max-width: 420px; width: 100%;
    animation: float 10s ease-in-out infinite;
}

/* ── BRAND STORY ───────────────────────────── */
.brand-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5rem; align-items: center;
}
.brand-body p {
    color: var(--text-1); font-size: 1rem;
    line-height: 1.8; margin-bottom: 1.3rem;
}
.brand-visual {
    display: flex; flex-direction: column;
    align-items: center; gap: 1.5rem;
}
.brand-logo-card {
    width: 100%;
    padding: 3rem 2rem;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
}
.brand-logo-card img { height: 80px; width: auto; }
.brand-timeline {
    display: flex; gap: 0; width: 100%;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.timeline-item {
    flex: 1; padding: 1.1rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 2px solid var(--blue-500);
    text-align: center;
}
.timeline-item strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem; color: var(--blue-accent);
    margin-bottom: .3rem;
    font-weight: 500;
}
.timeline-item span {
    font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-2);
}

/* ── CAREERS ───────────────────────────────── */
.careers-inner {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
    gap: 5rem; align-items: center;
}
.careers-body p {
    color: var(--text-1); font-size: 1rem;
    line-height: 1.8; margin-bottom: 1.3rem;
}
.careers-perks {
    display: grid; gap: 0; margin-top: 1.6rem;
    border-top: 1px solid var(--border);
}
.perk-item {
    display: flex; align-items: center; gap: .9rem;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid var(--accent-cyan);
    color: var(--text-1); font-size: .92rem;
}
.perk-item::before { content: '▸'; color: var(--accent-cyan); flex-shrink: 0; }
.careers-cta-box {
    padding: 2.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    text-align: center;
}
.careers-cta-box h4 { font-size: 1.45rem; margin-bottom: .75rem; font-weight: 600; }
.careers-cta-box p {
    color: var(--text-1); font-size: .92rem;
    line-height: 1.7; margin-bottom: 1.5rem;
}

/* ── ABOUT RESPONSIVE ──────────────────────── */
@media (max-width: 1200px) {
    .story-inner, .people-inner, .brand-inner, .careers-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .mvv-grid { grid-template-columns: 1fr; }
    .discipline-list { grid-template-columns: 1fr; }
    .brand-timeline { flex-direction: column; }
}
@media (max-width: 640px) {
    .story-stat-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   4. BLOG LISTING  (blog.html)
   Filter pills, featured post block, blog grid + cards,
   card thumb (placeholder + label + sweep), newsletter CTA.
═══════════════════════════════════════════════════════════ */

/* ── TAG FILTER BUTTONS ──────────────────────── */
.blog-tags {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}
.tag-btn {
    padding: .5rem 1.2rem;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition:
        border-color   .25s ease,
        color          .25s ease,
        background-color .25s ease;
}
.tag-btn.active,
.tag-btn:hover {
    border-color: var(--blue-accent);
    color: var(--blue-accent);
    background: rgba(106, 191, 214, .08);
}

/* ── FEATURED POST ───────────────────────────── */
.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
    gap: 3rem;
    align-items: center;
    padding: 2.5rem;
    background: #000;
    border: 1px solid var(--border-strong);
    border-left: 2px solid var(--blue-accent);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}
.featured-post::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 4px; height: 4px;
    background: var(--blue-accent);
}
.featured-badge {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--blue-accent);
    margin-bottom: 1rem;
}
.featured-badge::before { content: '★ '; opacity: .8; }
.featured-post h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    margin-bottom: 1rem;
}
.featured-post p {
    color: var(--text-1);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* ── POST META + AUTHOR AVATAR (blog listing) ── */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-2);
    font-size: .78rem;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.post-author {
    display: flex;
    align-items: center;
    gap: .6rem;
}
/* Scoped to .post-author so the single-post page (which uses
   .post-author-wrap) can keep its larger 36px avatar. */
.post-author .author-avatar {
    width: 28px;
    height: 28px;
    background: var(--blue-500);
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ── FEATURED VISUAL ─────────────────────────── */
.featured-visual { position: relative; }
.featured-visual img,
.featured-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    display: block;
}
.featured-visual img {
    object-fit: cover;
}
.featured-placeholder {
    background:
        linear-gradient(180deg, transparent, rgba(106, 191, 214, .04)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(106, 191, 214, .05) 14px 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.featured-placeholder svg {
    width: 56px; height: 56px;
    stroke: var(--blue-accent);
    stroke-width: 1.4;
    fill: none;
    opacity: .65;
}

/* ── BLOG GRID + CARDS ───────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

/* Base card — interactive.css rotates the left-bar accent
   colour every 3rd card via nth-child rules. */
.blog-card {
    background: #000;
    border: 1px solid var(--border);
    border-left: 2px solid var(--blue-accent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform        .35s ease,
        border-color     .35s ease,
        background-color .25s ease;
    position: relative;
}
.blog-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 4px; height: 4px;
    background: var(--blue-accent);
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    border-left-color: var(--blue-accent);
    background: var(--surface-2);
}

/* ── CARD THUMB (placeholder + label + sweep) ── */
.card-thumb {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(180deg, transparent, rgba(106, 191, 214, .04)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(106, 191, 214, .05) 14px 15px);
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-thumb svg {
    width: 40px;
    height: 40px;
    stroke: var(--blue-accent);
    stroke-width: 1.3;
    fill: none;
    opacity: .55;
}
.card-thumb-label {
    position: absolute;
    top: .8rem;
    left: .8rem;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-2);
    z-index: 2;
}
.card-thumb-cat {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 2;
}
/* When the post has a real Directus image, JS drops an <img>
   into .card-thumb positioned absolutely to cover the box.
   The thumb's diagonal-stripe background then sits behind it. */
.card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
/* Sweeping scan-line — moves on hover. */
.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(106, 191, 214, 0) 0%,
        rgba(106, 191, 214, .15) 50%,
        rgba(106, 191, 214, 0) 100%
    );
    height: 50%;
    transform: translateY(-100%);
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 3;
}
.blog-card:hover .card-thumb::after { transform: translateY(200%); }

/* ── CARD BODY ───────────────────────────────── */
.card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1;
}
.card-body h3 {
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 600;
}
.card-body p {
    color: var(--text-1);
    font-size: .9rem;
    line-height: 1.65;
    flex: 1;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .9rem;
    border-top: 1px solid var(--border);
}
.card-meta {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-2);
    letter-spacing: .1em;
}
.read-link {
    color: var(--blue-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: gap .2s ease;
    font-family: var(--font-mono);
}
.read-link:hover { gap: .8rem; }

/* ── NEWSLETTER CTA ──────────────────────────── */
.newsletter {
    padding: 3.5rem;
    background: #000;
    border: 1px solid var(--border-strong);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 6px; height: 6px;
    background: var(--blue-accent);
}
.newsletter h2 { margin-bottom: .8rem; }
.newsletter p {
    color: var(--text-1);
    max-width: 560px;
    margin: 0 auto 2rem;
}
.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: .9rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-0);
    font-family: var(--font-mono);
    font-size: .9rem;
    outline: none;
    transition: border-color .25s ease;
}
.newsletter-form input::placeholder { color: var(--text-2); }
.newsletter-form input:focus { border-color: var(--blue-accent); }
.newsletter-form .btn {
    white-space: nowrap;
    border-left: 0;
}

/* ── EMPTY / LOADING / ERROR STATES (blog) ───── */
.blog-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .15em;
}
.blog-state.error { color: var(--blue-accent); }

/* ── BLOG RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
    .featured-post {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}
@media (max-width: 640px) {
    .page-hero { padding: 7rem 0 3rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════
   5. BLOG POST DETAIL  (blog/post.html)
   Post hero, featured image, article body, sticky sidebar.
═══════════════════════════════════════════════════════════ */

/* ── Post hero ─────────────────────────────────────────── */
.post-hero { padding: 9rem 0 3rem; position: relative; z-index: 1; }
.post-breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem; letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 1.5rem;
}
.post-breadcrumb a { color: var(--blue-accent); text-decoration: none; transition: opacity .2s; }
.post-breadcrumb a:hover { opacity: .7; }
.post-hero-cat { margin-bottom: 1rem; }
.post-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 820px;
}
.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-2);
    font-size: .82rem;
    font-family: 'JetBrains Mono', monospace;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
/* Scoped to .post-author-wrap so the blog listing's smaller
   28px avatar (.post-author .author-avatar) is preserved. */
.post-author-wrap { display: flex; align-items: center; gap: .6rem; }
.post-author-wrap .author-avatar {
    width: 36px; height: 36px;
    border-radius: 0;
    background: var(--blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

/* ── Featured image ────────────────────────────────────── */
.post-featured-img {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 2.5rem 0;
}
.post-featured-placeholder {
    width: 100%;
    aspect-ratio: 21 / 6;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    letter-spacing: .15em;
    margin: 2.5rem 0;
}

/* ── Article body ──────────────────────────────────────── */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 4rem;
    align-items: start;
    padding: 3rem 0 6rem;
}
.post-body { max-width: 760px; }
.post-body h2 { font-size: clamp(1.3rem, 2vw, 1.9rem); margin: 2.5rem 0 1rem; line-height: 1.3; }
.post-body h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin: 2rem 0 .75rem; color: var(--text-0); }
.post-body p { color: var(--text-1); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1.05rem; }
.post-body ul,
.post-body ol { color: var(--text-1); line-height: 1.85; margin: 0 0 1.25rem 1.5rem; font-size: 1.05rem; }
.post-body li { margin-bottom: .4rem; }
.post-body a { color: var(--blue-accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 1rem 0; }
.post-body blockquote {
    border-left: 2px solid var(--blue-accent);
    padding: .75rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(106, 191, 214, .05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-1);
    font-style: italic;
}
.post-body code {
    background: rgba(106, 191, 214, .08);
    border: 1px solid rgba(106, 191, 214, .2);
    border-radius: 0;
    padding: .15em .45em;
    font-family: 'JetBrains Mono', monospace;
    font-size: .88em;
    color: var(--blue-accent);
}
.post-body pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.post-body pre code { background: none; border: none; padding: 0; font-size: .88rem; color: var(--text-0); }

/* ── Sidebar (shared with resource detail) ─────────────── */
.post-sidebar { position: sticky; top: 5rem; }
.sidebar-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-box h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 1rem;
}
.sidebar-box p {
    color: var(--text-1);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.sidebar-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.sidebar-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-2);
}

/* Ensure content sits above fixed grid vignette */
#postContent { position: relative; z-index: 1; }

/* Loading / error states (blog post) */
.post-loading {
    text-align: center;
    padding: 8rem 0;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    letter-spacing: .15em;
}
.post-error { text-align: center; padding: 8rem 0; }
.post-error h2 { margin-bottom: 1rem; color: var(--text-1); }
.post-error p  { color: var(--text-2); margin-bottom: 2rem; }

@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; display: none; }
}


/* ═══════════════════════════════════════════════════════════
   6. RESOURCES LISTING  (resources.html)
   Filter buttons, resource grid + cards, type pills,
   thumbnail, CTA banner, quick-stats strip.
═══════════════════════════════════════════════════════════ */

/* ── FILTER BUTTONS ──────────────────────────── */
.resource-filters {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}
.filter-btn {
    padding: .5rem 1.2rem;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition:
        border-color   .25s ease,
        color          .25s ease,
        background-color .25s ease;
}
.filter-btn.active,
.filter-btn:hover {
    border-color: var(--blue-accent);
    color: var(--blue-accent);
    background: rgba(106, 191, 214, .08);
}

/* ── RESOURCE GRID + CARDS ───────────────────── */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Base card shell — interactive.css rotates the left-bar
   accent colour every 3rd card via nth-child rules. */
.resource-card {
    padding: 2rem;
    background: #000;
    border: 1px solid var(--border);
    border-left: 2px solid var(--blue-accent);
    transition:
        transform        .35s ease,
        border-color     .25s ease,
        background-color .25s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
/* Corner pixel — interactive.css overrides .background colour
   on nth-child for accent rotation. */
.resource-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 4px; height: 4px;
    background: var(--blue-accent);
}
.resource-card:hover {
    transform: translateY(-6px);
    background: var(--surface-2);
}

/* Subtle hover sweep — placed on ::before so it sits below
   content but above the background. */
.resource-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(106, 191, 214, .05),
        transparent
    );
    transform: translateX(-100%);
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}
.resource-card:hover::before { transform: translateX(100%); }

/* ── RESOURCE TYPE PILLS (in-card) ───────────── */
.resource-type {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.resource-type::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
}
.resource-type.guide          { color: #4ade80; }
.resource-type.guide::before  { background: #4ade80; }
.resource-type.doc            { color: var(--blue-accent); }
.resource-type.doc::before    { background: var(--blue-accent); }
.resource-type.video          { color: #f97316; }
.resource-type.video::before  { background: #f97316; }
.resource-type.case           { color: var(--purple-400); }
.resource-type.case::before   { background: var(--purple-400); }

/* ── CARD CONTENT ────────────────────────────── */
.resource-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
}
.resource-card p {
    color: var(--text-1);
    font-size: .92rem;
    line-height: 1.7;
    flex: 1;
}
.resource-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-2);
    font-size: .72rem;
    font-family: var(--font-mono);
    letter-spacing: .12em;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
}
.resource-link {
    color: var(--blue-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    transition: gap .25s ease;
}
.resource-link:hover { gap: .8rem; }

/* ── OPTIONAL THUMBNAIL ──────────────────────── */
.resource-thumb {
    width: calc(100% + 4rem);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    margin: -2rem -2rem 0;
}

/* ── CTA BANNER ──────────────────────────────── */
.cta-banner {
    padding: 3.5rem;
    background: #000;
    border: 1px solid var(--border-strong);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}
/* Brand-blue corner pixel — matches .pixel-border helper */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 6px; height: 6px;
    background: var(--blue-accent);
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p {
    color: var(--text-1);
    max-width: 620px;
    margin: 0 auto 2rem;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── QUICK-STATS / SPECS STRIP ───────────────── */
.resource-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin: 3rem 0 4rem;
}
.resource-stats .cell {
    padding: 1.4rem 1.6rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color .25s ease;
}
.resource-stats .cell:hover { background: var(--surface-1); }
.resource-stats strong {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--blue-accent);
    display: block;
    margin-bottom: .35rem;
    font-weight: 500;
}
.resource-stats span {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-2);
}

/* ── EMPTY / LOADING / ERROR STATES (resources) ── */
.res-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .15em;
}
.res-state.error { color: var(--blue-accent); }

/* ── RESOURCES RESPONSIVE ────────────────────── */
@media (max-width: 900px) {
    .resource-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .resource-stats { grid-template-columns: 1fr; }
    .cta-buttons .btn { width: 100%; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════
   7. RESOURCE DETAIL  (resources/resource.html)
   Resource hero, body, sticky sidebar with details + CTA.
   (.sidebar-box is defined in the BLOG POST section above and
   is reused here verbatim.)
═══════════════════════════════════════════════════════════ */

/* ── Resource hero ─────────────────────────────────────── */
.resource-hero { padding: 9rem 0 4rem; position: relative; z-index: 1; }
.res-breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem; letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 1.5rem;
}
.res-breadcrumb a { color: var(--blue-accent); text-decoration: none; transition: opacity .2s; }
.res-breadcrumb a:hover { opacity: .7; }
.res-type-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.res-type-badge.guide         { color: #4ade80; }
.res-type-badge.documentation { color: var(--blue-accent); }
.res-type-badge.video         { color: #f97316; }
.res-type-badge.case-study    { color: var(--purple-400); }
.resource-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 820px;
}
.res-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-2);
    font-size: .82rem;
    font-family: 'JetBrains Mono', monospace;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

/* ── Resource layout ───────────────────────────────────── */
.res-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 4rem;
    align-items: start;
    padding: 3rem 0 6rem;
}
.res-body { max-width: 760px; }
.res-body p  { color: var(--text-1); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1.05rem; }
.res-body h2 { font-size: clamp(1.3rem, 2vw, 1.9rem); margin: 2.5rem 0 1rem; }
.res-body h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin: 2rem 0 .75rem; color: var(--text-0); }
.res-body ul,
.res-body ol { color: var(--text-1); line-height: 1.85; margin: 0 0 1.25rem 1.5rem; font-size: 1.05rem; }
.res-body li { margin-bottom: .4rem; }
.res-body a  { color: var(--blue-accent); text-decoration: underline; text-underline-offset: 3px; }
.res-body img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 1rem 0; }
.res-body code {
    background: rgba(106, 191, 214, .08);
    border: 1px solid rgba(106, 191, 214, .2);
    border-radius: 0;
    padding: .15em .45em;
    font-family: 'JetBrains Mono', monospace;
    font-size: .88em;
    color: var(--blue-accent);
}
.res-body pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.res-body pre code { background: none; border: none; padding: 0; font-size: .88rem; color: var(--text-0); }

/* ── Sidebar (resource details) ────────────────────────── */
.res-sidebar { position: sticky; top: 5rem; }
.sidebar-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(106, 191, 214, .08);
}
.sidebar-detail:last-child { border-bottom: none; }
.sidebar-detail .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-2);
}
.sidebar-detail .value { font-size: .85rem; color: var(--text-0); }

/* ── CTA card ──────────────────────────────────────────── */
.res-cta-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.res-cta-card h3 { margin-bottom: .75rem; }
.res-cta-card p  { color: var(--text-1); font-size: .95rem; margin-bottom: 1.5rem; }

/* Ensure content sits above fixed grid vignette */
#resContent { position: relative; z-index: 1; }

/* Loading / error (resource detail) */
.res-loading {
    text-align: center;
    padding: 8rem 0;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    letter-spacing: .15em;
}

@media (max-width: 900px) {
    .res-layout { grid-template-columns: 1fr; }
    .res-sidebar { position: static; }
}


/* ═══════════════════════════════════════════════════════════
   8. LEGAL  (privacy.html, terms.html)
   Simple long-form layout for legal copy.
═══════════════════════════════════════════════════════════ */
.legal-hero { padding: 9rem 0 3rem; position: relative; z-index: 1; }
.legal-layout {
    max-width: 860px;
    padding-bottom: 6rem;
    position: relative;
    z-index: 1;
}
.legal-layout h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal-layout p,
.legal-layout li {
    color: var(--text-1);
    line-height: 1.85;
    font-size: 1.03rem;
}
.legal-layout ul { margin: 0 0 1.5rem 1.4rem; }
.legal-layout h3 { font-size: 1.2rem; margin-top: 1.75rem; color: var(--text-0); }
.legal-layout h4 { font-size: 1.02rem; margin-top: 1.4rem; color: var(--text-0); }
.legal-layout strong { color: var(--text-0); font-weight: 600; }
.legal-layout a { color: var(--blue-accent); }
.legal-layout a:hover { text-decoration: underline; }
.legal-layout .legal-updated { color: var(--text-2); font-size: .95rem; margin-bottom: 2rem; }
.legal-layout table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 2rem;
    font-size: .95rem;
}
.legal-layout th,
.legal-layout td {
    border: 1px solid var(--border-strong);
    padding: .6rem .75rem;
    text-align: left;
    vertical-align: top;
    color: var(--text-1);
    line-height: 1.6;
}
.legal-layout thead th { background: var(--surface-2); color: var(--text-0); }
.legal-layout .legal-contact { margin-top: 1rem; line-height: 1.9; }
