:root {
    color-scheme: light;

    /*
     * Candy hues. Each hue ships five tones:
     *   base — the vivid candy color (dots, markers, borders)
     *   mid  — flat pastel for heading text: readable, still candy, never
     *          as dark as deep or as neon as base
     *   deep — dark enough for text on tint/chip backgrounds
     *   chip — pill background
     *   tint — card surface background
     * plus a glow for hue-tinted shadows.
     */
    --pink-base: #ff64ab;
    --pink-mid: #d94088;
    --pink-deep: #b31c66;
    --pink-chip: #ffc9e1;
    --pink-tint: #ffedf5;
    --pink-glow: rgba(255, 100, 171, 0.38);

    --tangerine-base: #ff9440;
    --tangerine-mid: #e0954f;
    --tangerine-deep: #a34a00;
    --tangerine-chip: #ffd6ae;
    --tangerine-tint: #fff0e1;
    --tangerine-glow: rgba(255, 148, 64, 0.38);

    --lemon-base: #f0748a;
    --lemon-mid: #eb6e82;
    --lemon-deep: #a83752;
    --lemon-chip: #ffd6de;
    --lemon-tint: #fff0f3;
    --lemon-glow: rgba(240, 116, 138, 0.38);

    --mint-base: #22b573;
    --mint-mid: #15803d;
    --mint-deep: #0f6b34;
    --mint-chip: #b2efd0;
    --mint-tint: #e6fbef;
    --mint-glow: rgba(34, 181, 115, 0.38);

    --teal-base: #1abc9c;
    --teal-mid: #0aa88c;
    --teal-deep: #0a6b58;
    --teal-chip: #abeee7;
    --teal-tint: #e2faf8;
    --teal-glow: rgba(26, 188, 156, 0.38);

    --sky-base: #009fe3;
    --sky-mid: #4fa8d8;
    --sky-deep: #0071b2;
    --sky-chip: #bfe3ff;
    --sky-tint: #e9f5ff;
    --sky-glow: rgba(0, 159, 227, 0.38);

    --grape-base: #9d64f5;
    --grape-mid: #8a5ad0;
    --grape-deep: #5b17bd;
    --grape-chip: #e0cdfc;
    --grape-tint: #f3edfe;
    --grape-glow: rgba(157, 100, 245, 0.38);

    --gold-base: #f0b429;
    --gold-mid: #c98a1a;
    --gold-deep: #8a5a00;
    --gold-chip: #ffe7ad;
    --gold-tint: #fff6e0;
    --gold-glow: rgba(240, 180, 41, 0.4);

    /* Legacy accent names still used by inline highlights across pages. */
    --purple: #7a2fd6;
    --cyan: #1fc9c0;
    --teal: #1fc9c0;
    --blue: #1d7cd6;
    --green: #14a05a;
    --amber: #e8a41f;
    --coral: #e84e2e;
    --lavender: #8b3bf0;
    --sky: #1d7cd6;
    --lime: #14a05a;
    --pink: #ff64ab;
    --gold: #e2a01a;

    --bg: #f0eff1;
    --bg-soft: #e6e5e9;
    --panel: #fffbfc;
    --panel-strong: #fffefe;
    --line: rgba(190, 120, 210, 0.26);
    --line-strong: rgba(190, 120, 210, 0.45);
    --text: #331f40;
    --muted: #6a4478;
    --dim: #9878a4;
    --shadow: rgba(60, 40, 80, 0.14);
    --max: 1180px;
    --term-bg: #1d1133;
    --term-text: #e6d9f2;
    --term-prompt: #3ee6a8;
    --term-cmd: #6fc3ff;
    --term-comment: #8f7aa8;
    --grid-color: rgba(200, 110, 220, 0.07);
    --header-bg: rgba(255, 254, 254, 0.92);
    --header-border: rgba(40, 20, 55, 0.1);
    --card-hover-border: rgba(255, 255, 255, 1);
    --card-hover-shadow: rgba(190, 90, 220, 0.2);
    --bird-label-bg: rgba(255, 250, 251, 0.88);
    --proof-bg: rgba(255, 240, 250, 0.85);
    --status-table-bg: #fdf3f8;
    --link-bg: rgba(255, 250, 252, 0.8);
    --audience-bg: rgba(255, 240, 250, 0.85);
    --btn-bg: rgba(255, 250, 252, 0.8);
    --body-bg-1: #fffbfb;
    --body-bg-2: #f1e5fc;

    /*
     * The clay shadow: a crisp inset top highlight (studio light) plus a
     * tight, low-blur drop shadow. Pair with a 2px white border.
     */
    --clay: inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(40, 20, 55, 0.06),
        0 0.4rem 0.9rem rgba(40, 20, 55, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Lato,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--bg);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.72),
        transparent 78%
    );
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--header-border);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    transition: transform 220ms ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.85rem 0;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand img {
    width: 2rem;
    height: 2rem;
}

.brand span {
    font-size: 1.12rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.nav-links a:hover {
    color: var(--sky-deep);
    background: var(--sky-tint);
}

.nav-badge {
    display: inline-flex;
    align-items: stretch;
    padding: 0 !important;
    border: 1px solid var(--header-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--panel-strong);
    color: var(--text) !important;
    font-size: 0.85rem;
    transition: background 160ms ease;
}

.nav-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.55rem;
    background: var(--sky-tint);
    color: var(--sky-deep);
    transition: background 160ms ease;
}

.nav-badge-icon svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.nav-badge-count {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-left: 1px solid var(--header-border);
    font-weight: 400;
}

.nav-badge:hover .nav-badge-icon {
    background: var(--sky-chip);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.nav-dropdown-trigger svg {
    width: 0.65rem;
    height: 0.65rem;
    transition: transform 160ms ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
    color: var(--sky-deep);
    background: var(--sky-tint);
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

/*
 * CSS-only hover/focus dropdown -- no JS state to fall out of sync with a
 * mouseenter/mouseleave/click-toggle race. The panel sits flush against the
 * trigger (no gap) so there's no dead zone to lose :hover crossing into it.
 */
.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    display: none;
    gap: 2rem;
    width: max-content;
    max-width: 46rem;
    padding: 1.1rem;
    transform: translateX(-50%);
    border: 1px solid var(--header-border);
    border-radius: 0.75rem;
    background: #fffefe;
    box-shadow:
        0 1px 2px rgba(40, 20, 55, 0.06),
        0 1.2rem 2.6rem rgba(40, 20, 55, 0.16);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    display: flex;
}

.nav-dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 13rem;
}

.nav-dropdown-label {
    margin: 0.2rem 0 0.4rem;
    color: var(--dim);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.55rem;
    color: inherit;
    text-decoration: none;
    transition: background 140ms ease;
}

.nav-dropdown-item:hover {
    background: var(--sky-tint);
}

.nav-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background: var(--bg);
    font-size: 1rem;
}

.nav-dropdown-item strong {
    display: block;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.nav-dropdown-item small {
    display: block;
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

/* Dropdown items are rounded cards, not pills: .nav-links a's 999px pill
 * radius (for the top-level nav links) would otherwise shape every item's
 * hover highlight as a pill. The .nav-dropdown-panel prefix out-ranks it so
 * every item, and the feature card below, share one corner radius. */
.nav-dropdown-panel .nav-dropdown-item {
    border-radius: 0.6rem;
}

/* A prominent hub item that sits alone in the first dropdown column
 * (e.g. Docs -> Documentation): a filled card, icon-over-text. The
 * .nav-dropdown-item.<x> double-class beats .nav-links a's 999px pill
 * radius, which would otherwise turn this tall card into an oval. */
.nav-dropdown-item.nav-dropdown-feature {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--sky-chip);
    border-radius: 0.6rem;
    background: var(--sky-tint);
}

.nav-dropdown-item.nav-dropdown-feature:hover {
    background: var(--sky-chip);
}

.nav-dropdown-feature .nav-dropdown-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.35rem;
    background: var(--panel-strong);
    font-size: 1.4rem;
}

.nav-dropdown-feature strong {
    font-size: 1rem;
}

/* Search is an icon-only badge (no count), alongside Discord/GitHub. */
.nav-badge-search .nav-badge-icon {
    padding: 0.45rem 0.55rem;
}

@media (max-width: 900px) {
    .nav-dropdown-panel {
        left: 0;
        transform: none;
        max-width: 90vw;
        flex-wrap: wrap;
    }
}

main {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem clamp(1rem, 4vw, 2.4rem) 3rem;
    border-radius: 1rem;
    background: var(--panel-strong);
    box-shadow:
        0 1px 2px rgba(40, 20, 55, 0.05),
        0 1.5rem 3rem rgba(40, 20, 55, 0.09);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: auto;
    padding: clamp(1rem, 2.5vw, 1.8rem) 0 1.5rem;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-mascot {
    flex-shrink: 0;
    filter: drop-shadow(0 0.4rem 0.6rem rgba(31, 20, 41, 0.18));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin: 0 0 1.4rem;
    padding: 0.42rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(
        105deg,
        var(--grape-base),
        var(--pink-base) 55%,
        var(--tangerine-base)
    );
    box-shadow: var(--clay);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0.8rem rgba(255, 255, 255, 0.85);
    content: "";
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 1.1rem rgba(255, 255, 255, 0.95);
    }
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
}

h1 {
    max-width: 18ch;
    margin-bottom: 1.35rem;
    color: var(--text);
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

/*
 * Topic color convention: a heading inherits its section's category color
 * so a reader can tell what a section is about at a glance, reusing the
 * same seven hues as the Features category legend (cat-operate, cat-routing,
 * cat-automate, cat-observe, cat-secure, cat-services, cat-platform). Mixed-
 * topic or umbrella headings (e.g. "Every feature Ze ships") stay the
 * default flat color below by simply not carrying a cat-* class.
 */
.section-head[class*="cat-"] h2,
.md-content[class*="cat-"] > h1:first-child {
    color: var(--acc-mid, var(--text));
}

#hero-title {
    color: #111;
}

/* Performance reads as speed, not as the generic observe/mint category. */
#perf-title {
    color: #dc2626;
}

/*
 * Category-mid tones are tuned for small in-grid headings (Features cards);
 * a full-page lab title needs a richer, more saturated version of the same
 * hue to not read as dull/muddy.
 */
.accent-routing-strong {
    color: #c2410c;
}

.accent-services-strong {
    color: #0f766e;
}

h3 {
    margin-bottom: 0.65rem;
    color: #46265c;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.hl {
    font-weight: 700;
}
.hl.blue {
    color: var(--blue);
}
.hl.coral {
    color: var(--coral);
}
.hl.green {
    color: var(--green);
}
.hl.purple {
    color: var(--lavender);
}

a.hl {
    text-decoration: none;
}
a.hl:hover {
    text-decoration: underline;
}

.lead {
    max-width: 46rem;
    margin-bottom: 1.6rem;
    color: var(--text);
    font-size: clamp(1.12rem, 2vw, 1.48rem);
    line-height: 1.65;
}

.sublead {
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.6rem;
    color: var(--text);
    background: #fffafc;
    box-shadow: var(--clay);
    font-weight: 750;
    text-decoration: none;
    transition:
        border-color 200ms ease,
        transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
        background 200ms ease,
        box-shadow 200ms ease;
}

.button.primary {
    border-color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        105deg,
        var(--grape-base),
        var(--pink-base) 55%,
        var(--tangerine-base)
    );
    color: #fff;
    box-shadow: var(--clay), 0 0.6rem 1.4rem -0.4rem var(--grape-glow);
}

.button:hover {
    border-color: #fff;
    background: linear-gradient(
        105deg,
        var(--sky-base),
        var(--teal-base) 55%,
        var(--mint-base)
    );
    color: #fff;
    box-shadow: var(--clay);
}

.button:active {
    transform: translateY(0) scale(0.97);
}

.button.primary:hover {
    background: linear-gradient(
        105deg,
        var(--grape-deep),
        var(--pink-deep) 55%,
        var(--tangerine-deep)
    );
    box-shadow: var(--clay), 0 0.6rem 1.4rem -0.4rem var(--grape-glow);
}

.bird-card {
    position: relative;
    display: grid;
    min-height: 34rem;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.9rem;
    overflow: hidden;
    background: var(--panel-strong);
    box-shadow: var(--clay), 0 2rem 5rem var(--shadow);
    transition:
        transform 400ms ease,
        box-shadow 400ms ease;
}

.bird-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--clay), 0 2.4rem 6rem var(--shadow);
}

.bird-card::before {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(190, 120, 210, 0.18);
    border-radius: 0.7rem;
    content: "";
}

.bird-card img {
    position: relative;
    z-index: 1;
    width: min(80%, 24rem);
    filter: drop-shadow(0 1.6rem 2.2rem rgba(139, 54, 234, 0.2));
    transition: transform 400ms ease;
}

.bird-card:hover img {
    transform: scale(1.03) translateY(-4px);
}

.bird-label {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(190, 120, 210, 0.22);
    border-radius: 0.55rem;
    color: var(--muted);
    background: var(--bird-label-bg);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    line-height: 1.4;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.proof {
    --acc: var(--sky-base);
    --acc-deep: var(--sky-deep);
    --acc-tint: var(--sky-tint);
    --acc-glow: var(--sky-glow);
    padding: 1.1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-left: 6px solid var(--acc);
    border-radius: 0.65rem;
    background: #fffafc;
    box-shadow: var(--clay), 0 0.9rem 2rem -0.9rem var(--acc-glow);
    transition:
        transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 200ms ease;
}

.proof:hover {
    transform: translateY(-3px);
    box-shadow: var(--clay), 0 1.2rem 2.4rem -0.8rem var(--acc-glow);
}

.proof strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--sky-deep);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.proof strong .label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.proof span {
    font-size: 0.9rem;
    line-height: 1.45;
}

.proof ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    list-style-type: disc;
    list-style-position: outside;
}

.proof li::marker {
    color: var(--acc);
}

section {
    padding: 0.7rem 0;
}

.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition:
        opacity 600ms ease,
        transform 600ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 0.9rem;
}

.section-head h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.75;
}

/*
 * Longer supporting prose goes here, under the section head, never in
 * its right column. The head's side text stays to a sentence or two so
 * a tall paragraph can never push the section's content down.
 */
.section-note {
    max-width: 56rem;
    margin: -0.5rem 0 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-note p {
    margin: 0 0 0.6rem;
}

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

.status-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.85rem;
    background: var(--panel);
    box-shadow: var(--clay);
    overflow: hidden;
}

.status-copy {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.status-copy p {
    color: var(--muted);
    line-height: 1.75;
}

.status-copy p:last-child {
    margin-bottom: 0;
}

.status-table {
    display: grid;
    background: var(--status-table-bg);
}

.status-row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    transition: background 160ms ease;
}

.status-row:first-child {
    border-top: 0;
}

.status-row:hover {
    background: rgba(255, 100, 171, 0.07);
}

.status-row strong {
    color: var(--text);
    font-size: 0.92rem;
}

.status-row span {
    font-weight: 400;
}

.tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.35rem 0.62rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    color: var(--sky-deep);
    background: var(--sky-chip);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -2px 3px rgba(0, 0, 0, 0.06);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

/*
 * Cards. Each card carries one accent hue for everything on it:
 * category chip, title, tech chips, bullet markers, bold words, glow.
 * On the features page the hue is set by a cat-* class and encodes
 * the feature's category; cards without a cat-* class stay cream.
 */
.card {
    --acc: var(--grape-base);
    --acc-deep: var(--grape-deep);
    --acc-chip: var(--grape-chip);
    --acc-tint: #fdf6f8;
    --acc-glow: rgba(160, 110, 220, 0.25);
    position: relative;
    min-height: 12rem;
    padding: 1.25rem 1.25rem 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-top: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    background: #fffafc;
    box-shadow: var(--clay), 0 1rem 2.2rem -1rem var(--acc-glow);
    transition:
        border-color 200ms ease,
        transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 220ms ease;
}

/*
 * Hover affordance rule: a card lifts on hover ONLY if it links somewhere
 * (has an <a> -- a title/primary link that leads to a page). Purely
 * informational cards with no link get a flat accent-border cue and stay
 * put. Motion is reserved for "this tile leads somewhere", the same reason
 * the action buttons no longer lift. (Only the title is the click target
 * today; a stretched-link would make the whole tile clickable to match.)
 */
.card:hover {
    border-color: var(--card-hover-border);
}

.card[class*="cat-"]:hover {
    border-color: var(--acc);
}

.card:has(a):hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--clay), 0 1.5rem 2.8rem -0.8rem var(--acc-glow);
}

/*
 * Blog "Ze weekly updates" cards (blog index + homepage teaser). Same base
 * card, but dressed as posts: the rotating category hue shows as a top
 * accent bar and a faint tinted wash, the date headline takes the accent
 * colour, and a "Read the update ->" affordance slides on hover. Re-enables
 * the hover lift that .card:has(a):hover cancels, since the whole tile reads
 * as one clickable post.
 */
.card-post {
    position: relative;
    display: flex;
    flex-direction: column;
    border-top-color: var(--acc);
    background: #fffafc;
    overflow: hidden;
}

/*
 * Coloured "week" header, cleanly cut from a plain white body by an accent
 * divider: the date carries the category hue on a tinted band, the excerpt
 * stays on white so title and text read as two zones instead of blending.
 */
.card-post h3 {
    margin: 0 -1.25rem 0.95rem;
    padding: 0.8rem 1.25rem;
    background: linear-gradient(180deg, var(--acc-tint), #fff);
    border-bottom: 2px solid var(--acc);
}

.card-post > h3:first-child {
    margin-top: -1.25rem;
}

.card-post h3 a {
    color: var(--acc-deep);
}

/* Whole-card click target: stretch a card's title link over the entire
   tile so a click anywhere on the card follows it. Every linked card grid
   (features, labs, performance, blog posts) puts its single link in the
   <h3>, so this makes those cards clickable to match their hover lift. */
.card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-post > p {
    flex: 1 1 auto;
}

.card-post .post-more {
    align-self: flex-start;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--acc-deep);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.card-post .post-more::after {
    content: "\2192";
    transition: transform 200ms ease;
}

.card-post:hover .post-more {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.card-post:hover .post-more::after {
    transform: translateX(0.35rem);
}

/*
 * Category hues. Generic classes: they set the accent custom
 * properties on any element (cards, legend buttons).
 */
.cat-operate {
    --acc: var(--sky-base);
    --acc-mid: var(--sky-mid);
    --acc-deep: var(--sky-deep);
    --acc-chip: var(--sky-chip);
    --acc-tint: var(--sky-tint);
    --acc-glow: var(--sky-glow);
}
.cat-routing {
    --acc: var(--tangerine-base);
    --acc-mid: var(--tangerine-mid);
    --acc-deep: var(--tangerine-deep);
    --acc-chip: var(--tangerine-chip);
    --acc-tint: var(--tangerine-tint);
    --acc-glow: var(--tangerine-glow);
}
.cat-automate {
    --acc: var(--grape-base);
    --acc-mid: var(--grape-mid);
    --acc-deep: var(--grape-deep);
    --acc-chip: var(--grape-chip);
    --acc-tint: var(--grape-tint);
    --acc-glow: var(--grape-glow);
}
.cat-observe {
    --acc: var(--mint-base);
    --acc-mid: var(--mint-mid);
    --acc-deep: var(--mint-deep);
    --acc-chip: var(--mint-chip);
    --acc-tint: var(--mint-tint);
    --acc-glow: var(--mint-glow);
}
.cat-secure {
    --acc: var(--pink-base);
    --acc-mid: var(--pink-mid);
    --acc-deep: var(--pink-deep);
    --acc-chip: var(--pink-chip);
    --acc-tint: var(--pink-tint);
    --acc-glow: var(--pink-glow);
}
.cat-services {
    --acc: var(--gold-base);
    --acc-mid: var(--gold-mid);
    --acc-deep: var(--gold-deep);
    --acc-chip: var(--gold-chip);
    --acc-tint: var(--gold-tint);
    --acc-glow: var(--gold-glow);
}
.cat-platform {
    --acc: var(--teal-base);
    --acc-mid: var(--teal-mid);
    --acc-deep: var(--teal-deep);
    --acc-chip: var(--teal-chip);
    --acc-tint: var(--teal-tint);
    --acc-glow: var(--teal-glow);
}

.card h3 {
    color: var(--acc-deep);
}

.card .cat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.6rem;
    background: var(--acc-deep);
    color: #fff;
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -2px 3px rgba(0, 0, 0, 0.06);
}

.card .cat::before {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--acc);
    box-shadow:
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    content: "";
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.8rem;
}

.chip {
    padding: 0.24rem 0.55rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--acc-deep);
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 3px rgba(80, 30, 110, 0.08);
}

.chip.mode {
    background: var(--acc-deep);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/*
 * Maturity tiers. Shipped cards are solid clay. Experimental cards keep
 * their tint but wear a dashed border and a status chip. Aspiration
 * cards are blueprints -- dashed outline, no tint, no clay -- for
 * features that exist only as pending specs in the main repo's plan/.
 */
.card .status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    margin-left: 0.3rem;
    padding: 0.3rem 0.65rem;
    border: 2px dashed var(--acc);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--acc-deep);
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.card.experimental {
    border-style: dotted;
    border-color: var(--acc);
}

.card.experimental:hover {
    border-color: var(--acc);
}

.card.aspiration {
    border: 2px dashed var(--acc);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.card.aspiration:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
    box-shadow: 0 0.6rem 1.4rem -0.8rem var(--acc-glow);
}

.card.aspiration .cat {
    border: 2px dashed var(--acc);
    background: transparent;
    color: var(--acc-deep);
    box-shadow: none;
}

.card.aspiration .chip {
    background: rgba(255, 255, 255, 0.5);
}

.card.aspiration li::marker {
    content: "\25E6  ";
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.card ul {
    margin: 0 0 0.5rem;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.75;
    list-style-type: disc;
    list-style-position: outside;
}

.card ul:last-child {
    margin-bottom: 0;
}

.card li {
    margin-bottom: 0.15rem;
    display: list-item;
}

.card li::marker {
    content: "\2022  ";
    color: var(--acc);
}

.card ul strong {
    color: var(--acc-deep);
}

.card ul code {
    padding: 0.05rem 0.3rem;
    border-radius: 0.3rem;
    background: var(--bg-soft);
    color: var(--acc-deep);
    font-size: 0.85em;
}

.card-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.6rem;
    margin-right: 0.3rem;
    padding: 0.32rem 0.56rem;
    border: 0;
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -2px 3px rgba(0, 0, 0, 0.06);
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-label.blue {
    color: #fff;
    background: var(--sky-deep);
}
.card-label.coral {
    color: #fff;
    background: #a83a14;
}
.card-label.green {
    color: #fff;
    background: var(--mint-deep);
}
.card-label.purple {
    color: #fff;
    background: var(--grape-deep);
}
.card-label.teal {
    color: #fff;
    background: var(--teal-deep);
}
.card-label.gold {
    color: #fff;
    background: var(--lemon-deep);
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}
.card h3 a:hover {
    text-decoration: underline;
}

/*
 * Category legend / filter (features page). Buttons carry the same
 * cat-* classes as the cards they filter.
 */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.legend button,
.legend a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border: 2px solid transparent;
    border-radius: 0.6rem;
    /* Subtle vertical sheen over the vibrant base: a gradient, but gentle,
       and symmetric so the left and right edges stay identical. */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.14)),
        var(--acc);
    color: #fff;
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition:
        filter 200ms ease,
        border-color 200ms ease;
}

/* Gold's vivid base is too light for legible white text; use the richer
   amber so the Services chip reads as clearly as the others. */
.legend .cat-services {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.14)),
        var(--acc-mid);
}

.legend button:hover,
.legend a:hover {
    filter: brightness(1.08);
    color: #fff;
}

.legend button:active {
    filter: brightness(0.96);
}

.legend button[aria-pressed="true"] {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--acc-deep);
}

.card.filtered-out {
    display: none;
}

.terminal-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.terminal {
    position: relative;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.7rem;
    background: var(--term-bg);
    box-shadow:
        0 1rem 3rem rgba(60, 20, 90, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title {
    margin-left: 0.5rem;
    overflow: hidden;
    color: var(--term-comment);
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.terminal-dots span:not(.terminal-title) {
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #ff6f9d;
    box-shadow:
        inset 0 -2px 3px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.terminal-dots span:nth-child(2) {
    background: #ffc93c;
}

.terminal-dots span:nth-child(3) {
    background: #33cd85;
}

.terminal-body {
    padding: 1.1rem 1.35rem 1.35rem;
}

pre {
    margin: 0;
    color: var(--term-text);
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.85;
    white-space: pre-wrap;
}

.term-prompt {
    color: var(--term-prompt);
}
.term-cmd {
    color: var(--term-cmd);
}
.term-comment {
    color: var(--term-comment);
    font-style: italic;
}

.terminal-note {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.7rem;
    background: var(--panel-strong);
    box-shadow: var(--clay);
}

.terminal-note p {
    color: var(--muted);
    line-height: 1.75;
}

.link-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.terminal-note .link-list {
    margin-top: auto;
    padding-top: 1.4rem;
}

.link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.88rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.55rem;
    color: var(--text);
    background: #fffafc;
    box-shadow: var(--clay);
    text-decoration: none;
    transition:
        border-color 200ms ease,
        transform 160ms ease,
        padding 200ms ease;
}

.link-list a span {
    color: var(--muted);
    transition: color 200ms ease;
}

.link-list a::after {
    content: "\2192";
    color: var(--muted);
    opacity: 0;
    transform: translateX(-0.4rem);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.link-list a:hover {
    border-color: var(--pink-chip);
    padding-right: 0.7rem;
    transform: translateY(-1px);
}

.link-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--pink-deep);
}

.link-list a:hover span {
    color: var(--pink-deep);
}

.audience {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.audience-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-card {
    padding: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-left: 6px solid var(--lemon-mid);
    border-radius: 0.75rem;
    background: #fffafc;
    box-shadow: var(--clay);
    transition:
        border-color 200ms ease,
        transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 220ms ease;
}

.audience-card:hover {
    border-color: var(--card-hover-border);
}

.audience-card:has(a):hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--clay), 0 1.2rem 2.6rem -0.8rem var(--card-hover-shadow);
}

.audience-card:nth-child(1) {
    border-left-color: var(--lemon-mid);
}
.audience-card:nth-child(1) h3 {
    color: #8f2740;
}
.audience-card:nth-child(2) {
    border-left-color: var(--sky-base);
}
.audience-card:nth-child(2) h3 {
    color: var(--sky-deep);
}
.audience-card:nth-child(3) {
    border-left-color: var(--grape-base);
}
.audience-card:nth-child(3) h3 {
    color: var(--grape-deep);
}

.audience-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.talk-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.talk-date {
    margin-top: 0.5em;
    font-size: 0.85em;
    opacity: 0.7;
}

.talk-alt {
    margin-top: 0.3em;
    font-size: 0.8em;
}

.talk-alt a {
    opacity: 0.6;
}

.closing {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.85rem;
    background: var(--panel);
    box-shadow: var(--clay), 0 1.5rem 4rem var(--shadow);
}

.closing p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.75;
}

footer {
    color: var(--dim);
}

.footer-inner {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0 1.5rem;
    font-size: 0.9rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-bottom: 1.6rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col h3 {
    margin: 0 0 0.2rem;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-col a:hover {
    color: var(--pink-deep);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--header-border);
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-bottom a:hover {
    color: var(--pink-deep);
}

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

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero,
    .section-head,
    .status-panel,
    .terminal-panel,
    .closing {
        grid-template-columns: 1fr;
    }

    .proof-strip,
    .cards,
    .blog-grid,
    .audience {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bird-card {
        min-height: 28rem;
    }
}

@media (max-width: 700px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        -webkit-overflow-scrolling: touch;
    }

    .hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .proof-strip,
    .cards,
    .blog-grid,
    .audience {
        grid-template-columns: 1fr;
    }

    .status-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    section {
        padding: 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    h1 {
        animation: none;
    }
    .eyebrow::before {
        animation: none;
    }
    .bird-card,
    .bird-card img,
    .card,
    .proof,
    .audience-card,
    .button,
    .legend button {
        transition: none;
    }
}

.md-content {
    max-width: none;
    margin: 0;
    padding: 1rem 0 3rem;
}

.md-content > :not(table):not(pre):not(.cards):not(.audience):not(.config-explorer) {
    max-width: 62rem;
}

/*
 * Blog posts: tight vertical rhythm between weekly sections, and a
 * two-column grid for the topic blocks so short entries don't leave the
 * page mostly empty.
 */
.blog-post {
    padding: 0.5rem 0;
}

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

.blog-block {
    padding: 1.1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    background: #fffafc;
    box-shadow: var(--clay);
}

.blog-block .md-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

.blog-block h3 {
    margin-bottom: 0.4rem;
}

.md-content h1 {
    margin-bottom: 0.6rem;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.md-content h2 {
    margin-top: 2.6rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.md-content h3 {
    margin-top: 1.8rem;
    color: var(--purple);
}

.md-content p,
.md-content li {
    color: var(--muted);
    line-height: 1.75;
}

.md-content ul,
.md-content ol {
    padding-left: 1.4rem;
}

.md-content li {
    margin-bottom: 0.3rem;
}

.md-content a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--grape-chip);
}

.md-content strong {
    color: var(--text);
}

.md-content blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.3rem;
    border-left: 4px solid var(--grape-base);
    border-radius: 0.5rem;
    background: var(--panel);
    box-shadow: var(--clay);
    color: var(--muted);
}

.md-content blockquote p:last-child {
    margin-bottom: 0;
}

.md-content code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    background: var(--proof-bg);
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 0.88em;
}

.md-content pre {
    padding: 1rem 1.2rem;
    border-radius: 0.55rem;
    background: var(--term-bg);
    color: var(--term-text);
    overflow-x: auto;
    box-shadow: var(--clay);
}

.md-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.md-content table {
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 1.2rem 0 1.8rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--clay);
    font-size: 0.92rem;
}

.md-content th,
.md-content td {
    padding: 0.6rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.md-content th {
    color: #fff;
    background: var(--sky-deep);
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.md-content td {
    background: #fffafc;
    color: var(--muted);
    overflow-wrap: break-word;
}

.md-content td.cell-yes {
    color: var(--mint-deep);
    font-weight: 700;
    text-align: center;
}

.md-content td.cell-no {
    color: var(--muted);
    text-align: center;
    opacity: 0.7;
}

.md-content td.cell-partial {
    color: var(--lemon-deep);
    font-weight: 700;
    text-align: center;
}

.md-content td.cell-na {
    color: var(--muted);
    background: var(--bg-soft);
    text-align: center;
    font-style: italic;
}

.md-content tr:last-child td {
    border-bottom: none;
}

.md-content td:first-child,
.md-content th:first-child {
    position: sticky;
    left: 0;
    color: var(--text);
    font-weight: 700;
    background: var(--bg-soft);
}

.md-content th:first-child {
    background: var(--sky-deep);
    color: #fff;
}

@media (max-width: 700px) {
    .md-content table {
        display: block;
        overflow-x: auto;
    }
}

#cli-search {
    display: block;
    width: 100%;
    margin: 1rem 0 1.6rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--header-border);
    border-radius: 0.6rem;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 1rem;
    box-shadow: var(--clay);
}

.cli-group {
    margin-bottom: 1rem;
    border: 1px solid var(--header-border);
    border-radius: 0.6rem;
    background: var(--panel-strong);
    overflow: hidden;
}

.cli-group summary {
    padding: 0.7rem 1rem;
    background: var(--bg-soft);
    color: var(--text);
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    cursor: pointer;
    list-style: revert;
}

.cli-group-count {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85em;
}

.cli-group table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.cli-mode {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.cli-mode-daemon {
    background: var(--sky-tint);
    color: var(--sky-deep);
}

.cli-mode-read-only {
    background: var(--mint-tint);
    color: var(--mint-deep);
}

.cli-mode-offline {
    background: var(--bg-soft);
    color: var(--muted);
}

.cli-search-wrap {
    position: relative;
}

/* Site-wide search page (search/) */
#site-search {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    font-family: inherit;
    font-size: 1.05rem;
    box-shadow: inset 0 1px 3px rgba(80, 30, 110, 0.06);
}

#site-search:focus {
    outline: none;
    border-color: var(--acc-deep, var(--line-strong));
    box-shadow: 0 0 0 3px var(--line);
}

.search-status {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
}

.search-results {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.search-result {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.6);
}

.search-result > a {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    text-decoration: none;
}

.search-result-title {
    font-weight: 700;
    color: var(--text);
}

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

.search-result-snippet {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.search-result-snippet mark {
    background: var(--tangerine-chip);
    color: inherit;
    border-radius: 0.2rem;
    padding: 0 0.1rem;
}

/* Search overlay: the same index/results as the /search/ page, shown as an
 * in-page modal opened from the nav search icon (site.js) on any page. */
body.search-open {
    overflow: hidden;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8vh 1rem 1rem;
}

.search-overlay[hidden] {
    display: none;
}

.search-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 17, 45, 0.45);
    backdrop-filter: blur(3px);
}

.search-overlay-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(40rem, 100%);
    max-height: 80vh;
    padding: 1rem;
    border: 1px solid var(--header-border);
    border-radius: 0.9rem;
    background: var(--panel-strong);
    box-shadow: 0 1.5rem 3.5rem rgba(40, 20, 55, 0.28);
}

.search-overlay-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    font-family: inherit;
    font-size: 1.05rem;
}

.search-overlay-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--line);
}

.search-overlay-status {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.search-overlay-results {
    display: grid;
    gap: 0.6rem;
    margin: 0.75rem 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.cli-suggestions {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: -1rem;
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid var(--header-border);
    border-radius: 0.6rem;
    background: var(--panel-strong);
    box-shadow: var(--clay);
}

.cli-suggestions[hidden] {
    display: none;
}

.cli-suggestions button {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.9rem;
    border: none;
    border-bottom: 1px solid var(--header-border);
    background: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.cli-suggestions button:last-child {
    border-bottom: none;
}

.cli-suggestions button:hover,
.cli-suggestions button:focus-visible {
    background: var(--bg-soft);
}

.cli-suggestion-group {
    flex: none;
    color: var(--muted);
    font-size: 0.8em;
    white-space: nowrap;
}

.cli-group tbody tr {
    transition: background-color 0.4s ease;
}

.cli-row-highlight {
    background: var(--sky-tint);
}

#dep-search {
    display: block;
    width: 100%;
    margin: 1rem 0 1.6rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--header-border);
    border-radius: 0.6rem;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 1rem;
    box-shadow: var(--clay);
}

.dep-group {
    margin-bottom: 1rem;
    border: 1px solid var(--header-border);
    border-radius: 0.6rem;
    background: var(--panel-strong);
    overflow: hidden;
}

.dep-group summary {
    padding: 0.7rem 1rem;
    background: var(--bg-soft);
    color: var(--text);
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    cursor: pointer;
    list-style: revert;
}

.dep-group-count {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85em;
}

.dep-group table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ============================================================
 * Configuration Reference
 *
 * A breadcrumb-navigated browser: every level -- the top-level
 * sections and every container inside them -- is the same table
 * of children (setting / provided-by / description). A child
 * with children is a link that steps in; the breadcrumb steps
 * back. The whole tree is embedded as JSON and each level is
 * rendered on demand by the browser script; without JS the
 * <noscript> points at the plain-text index.md.
 * Ordered: search, breadcrumb, level table, header, ownership,
 * hints, no-JS fallback.
 * ============================================================ */

/* -- Search -- */
#config-search {
    display: block;
    width: 100%;
    margin: 1rem 0 1.4rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--header-border);
    border-radius: 0.6rem;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 1rem;
    box-shadow: var(--clay);
}

.config-explorer {
    margin-top: 0.5rem;
}

/* -- Breadcrumb -- */
.config-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

.config-crumbs a {
    color: var(--blue);
}

.config-crumb-sep {
    color: var(--muted);
}

.config-crumb-current code {
    color: var(--text);
    font-weight: 600;
}

/* -- Level table (the same presentation at every level) -- */
.config-index {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

/* The table lives inside .md-content, whose comparison-table rules
 * (.md-content th, .md-content th:first-child) would paint it blue. The
 * .md-content prefix here out-ranks those so it keeps its own light look,
 * with <th scope="row"> for the setting-name column. */
.md-content .config-index thead th {
    padding: 0.5rem 0.7rem;
    border-bottom: 2px solid var(--line-strong);
    background: none;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.md-content .config-index tbody th,
.md-content .config-index tbody td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--line);
    background: none;
    color: inherit;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
}

.config-index tbody tr.is-drillable {
    cursor: pointer;
}

.config-index tbody tr.is-drillable:hover {
    background: var(--bg-soft);
}

.config-index a {
    color: var(--blue);
}

.config-index-nodesc {
    color: var(--muted);
    font-style: italic;
}

/* -- Ownership annotations -- */
.config-owner-tag {
    display: inline-block;
    padding: 0.05rem 0.55rem;
    border-radius: 1rem;
    background: rgba(29, 124, 214, 0.12);
    color: var(--blue);
    font-size: 0.78rem;
    white-space: nowrap;
}

.config-owner-detail {
    margin: 0.35rem 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.config-owners {
    font-size: 0.82rem;
}

.config-owners > summary {
    color: var(--muted);
    cursor: pointer;
    list-style: revert;
}

.config-owners ul {
    margin: 0.3rem 0 0.3rem 1.1rem;
    padding: 0;
}

.config-owner-detail a,
.config-owners a {
    text-decoration: underline;
}

/* -- Current-node header -- */
.config-detail-head {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.config-detail-head h2 {
    margin: 0 0 0.3rem;
}

.config-detail-desc {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.yang-type {
    color: var(--muted);
    font-size: 0.75em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* -- Hints, empty and no-JS states -- */
.config-index-hint,
.config-noscript {
    color: var(--muted);
}

.config-index-count {
    min-height: 1.2em;
    margin: 0.2rem 0 1rem;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.config-empty {
    margin: 0.5rem 0;
    color: var(--muted);
    font-style: italic;
}

/* Without JS the browser can't render; show only the noscript pointer.
 * #config-search needs its own ID-specificity rule to beat #config-search. */
html:not(.config-js) .config-explorer > :not(noscript) {
    display: none;
}

html:not(.config-js) #config-search {
    display: none;
}
