:root {
    --bg-page: #0f1117;
    --bg-card: #1a1d29;
    --bg-alt: #141725;
    --bg-hero: #111321;

    --text-main: #f3f4f6;
    --text-dim: #9ca3af;

    --border-color: #2a2f3f;

    --accent: #3b82f6;
    --accent-hover: #60a5fa;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --font-main: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;

    --shadow-card: 0 20px 40px rgba(0,0,0,0.6);
}
:root {
    --bg-page: #0f1117;
    --bg-card: #1a1d29;
    --text-main: #f3f4f6;
    --text-dim: #9ca3af;
    --border-color: #2a2f3f;
    --accent: #3b82f6;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* light theme overrides */
:root.light {
    --bg-page: #ffffff;
    --bg-card: #f8fafc;
    --text-main: #0f172a;
    --text-dim: #475569;
    --border-color: #cbd5e1;
    --accent: #2563eb;
}

/* global */
body {
    margin: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}


.site-brand {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}
.site-sub {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.nav-links a {
    color: var(--text-main);
    margin-left: 1rem;
    font-size: 0.85rem;
    text-decoration: none;
}
.nav-links a:hover {
    color: var(--accent);
}

.theme-toggle-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    margin-left: 1rem;
}

.main-wrap {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
}

.card p {
    margin: 0 0 0.75rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.table-basic {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.table-basic th {
    text-align: left;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    background-color: var(--bg-card);
}
.table-basic td {
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

.status-up {
    color: #22c55e;
    font-weight: 600;
}
.status-down {
    color: #ef4444;
    font-weight: 600;
}
.status-partial {
    color: #facc15;
    font-weight: 600;
}

.footer {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}


/* ===== Status chips for UP / PARTIAL / DOWN ===== */
.status-up,
.status-partial,
.status-down {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.status-up {
    color: #22c55e;
    background-color: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.4);
}

.status-partial {
    color: #facc15;
    background-color: rgba(250,204,21,0.08);
    border-color: rgba(250,204,21,0.4);
}

.status-down {
    color: #ef4444;
    background-color: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.4);
}

/* ===== Flash messages (success / error) ===== */
.flash {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    border: 1px solid var(--border-color);
}

.flash-success {
    background-color: rgba(16,185,129,0.08); /* green-ish */
    color: #10b981;
    border-color: rgba(16,185,129,0.4);
    font-weight: 500;
}

.flash-error {
    background-color: rgba(239,68,68,0.08); /* red-ish */
    color: #ef4444;
    border-color: rgba(239,68,68,0.4);
    font-weight: 500;
}

/* OPTIONAL: tweak .footer if you want consistent look */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 2rem 1rem;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}
/* Make the site-brand text a link but keep the visual */
.site-brand-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.site-brand-link:hover {
    color: var(--accent-hover);
}

/* Back link for edit pages */
.back-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.4);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    line-height: 1.2;
}
.back-link:hover {
    color: var(--accent-hover);
    background: rgba(59,130,246,0.18);
}

/* light theme overrides */
:root.light {
    --bg-page: #ffffff;
    --bg-card: #f8fafc;
    --bg-alt: #eef2ff;
    --bg-hero: #f8fafc;

    --text-main: #0f172a;
    --text-dim: #475569;

    --border-color: #cbd5e1;

    --accent: #2563eb;
    --accent-hover: #3b82f6;

    --shadow-card: 0 16px 32px rgba(15,23,42,0.08);
}

/* global */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
}

/* HEADER */
header.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    column-gap: 1rem;
}

.brand-block {
    display: flex;
    flex-direction: column;
}

.site-brand-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}
.site-brand-link:hover {
    color: var(--accent-hover);
}

.site-sub {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 0.15rem;
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
}

.nav-link {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
}
.nav-link:hover {
    color: var(--accent-hover);
}

.btn-nav-primary {
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    display: inline-block;
    border: 1px solid var(--accent);
}
.btn-nav-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.theme-toggle-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.8rem;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

/* HERO */
.hero {
    background-color: var(--bg-hero);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem 2rem;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;
}
@media(min-width: 900px){
    .hero-inner {
        grid-template-columns: minmax(0,2fr) minmax(280px,1fr);
        align-items: flex-start;
    }
}

.hero-copy {
    max-width: 700px;
}

.hero-headline {
    color: var(--text-main);
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 1rem;
}

.hero-sub {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    border: 1px solid var(--accent);
    display: inline-block;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    display: inline-block;
}
.btn-secondary:hover {
    background-color: rgba(59,130,246,0.08);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    min-width: 150px;
}
.metric-label {
    color: var(--text-dim);
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.metric-value {
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 600;
}

/* hero trust row (RBAC / audit / no resale) */
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.trust-chip {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-dim);
    font-size: 0.7rem;
    line-height: 1.3;
    font-weight: 500;
    padding: 0.5rem 0.6rem;
    min-width: 180px;
}

/* hero alert mock */
.hero-visual {
    max-width: 360px;
}

.hero-alert-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.hero-alert-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.hero-alert-status {
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 600;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.hero-alert-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}
.hero-alert-body {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}
.hero-alert-foot {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-caption {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* status chips */
.status-up,
.status-partial,
.status-down,
.hero-alert-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.status-up {
    color: #22c55e;
    background-color: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.4);
}
.status-partial {
    color: #facc15;
    background-color: rgba(250,204,21,0.08);
    border-color: rgba(250,204,21,0.4);
}
.status-down,
.hero-alert-status {
    color: #ef4444;
    background-color: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.4);
}

/* MAIN WRAP */
.main-wrap {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

/* Sections */
.section-pad {
    margin-bottom: 3rem;
}
.section-head {
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.section-title {
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.section-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 60ch;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem 1rem;
}
@media(min-width:700px){
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media(min-width:1000px){
    .feature-grid {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1.25rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.icon-svg {
    width: 20px;
    height: 20px;
}

.feature-body {
    flex: 1;
}
.feature-title {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.feature-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Card base */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: var(--text-main);
    margin-bottom: 2rem;
}
.card-pad {
    padding: 1.5rem 1.5rem 1.25rem;
}

/* TRUST / SECURITY block */
.trust-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;
    margin-top: 1rem;
}
@media(min-width:800px){
    .trust-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.trust-col {}

.trust-head {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.trust-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}
.trust-list li {
    margin-bottom: 0.5rem;
}

.trust-footer {
    margin-top: 1.5rem;
}
.link-accent {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.link-accent:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* PRICING */
.pricing-cards-wrap {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media(min-width:800px){
    .pricing-cards-wrap {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}
@media(min-width:1100px){
    .pricing-cards-wrap {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.pricing-card-enterprise {
    border: 1px solid var(--accent);
    box-shadow: 0 24px 48px rgba(59,130,246,0.3);
}

.pricing-name {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.pricing-price-term {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 0.25rem;
}

.pricing-meta {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.pricing-meta div {
    margin-bottom: 0.25rem;
}

.pricing-note {
    color: var(--accent);
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.btn-plan {
    margin-top: auto;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    line-height: 1.2;
}
.btn-plan:hover {
    background-color: rgba(59,130,246,0.08);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* pricing table wrapper (used on Features page now) */
.pricing-table-wrap {
    overflow-x: auto;
}

/* Table */
.table-basic {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.table-basic th {
    text-align: left;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    background-color: var(--bg-card);
    font-weight: 600;
    font-size: 0.8rem;
}
.table-basic td {
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Alert examples grid on Features page */
.alert-examples-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
}
@media(min-width:900px){
    .alert-examples-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

.alert-example-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 0.75rem 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.alert-example-imgwrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.alert-example-img {
    width: 100%;
    max-width: 220px;
    border-radius: 4px;
    display: block;
    transform: scale(.95);
    transform-origin: top center;
}

.alert-example-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}
.alert-example-head {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.alert-example-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* WHY WE'RE DIFFERENT */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
@media(min-width:800px){
    .why-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.why-col {}

.why-head {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.why-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}
.why-footer {
    margin-top: 1.5rem;
}

/* FOOTER */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 2rem 1rem 4rem;
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

/* Flash messages (reused in app) */
.flash {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    border: 1px solid var(--border-color);
}
.flash-success {
    background-color: rgba(16,185,129,0.08);
    color: #10b981;
    border-color: rgba(16,185,129,0.4);
    font-weight: 500;
}
.flash-error {
    background-color: rgba(239,68,68,0.08);
    color: #ef4444;
    border-color: rgba(239,68,68,0.4);
    font-weight: 500;
}
/* The outer bar */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Inner flex row with logo on left, menu on right */
.site-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1rem;

    display: flex;
    flex-wrap: nowrap;           /* << don't allow wrapping */
    align-items: center;         /* vertically center both blocks */
    justify-content: space-between; /* left/right separation */

    column-gap: 1rem;
    row-gap: 0;                  /* no multirow gap anymore */
}

/* Left block (logo + subline) */
.brand-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 0 1 auto;              /* let it shrink if needed, but don't push nav down */
}

.site-brand-link {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text-main);
    text-decoration: none;
}

.site-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.2;
    white-space: nowrap;
}

/* Right block (nav links + theme button) */
.nav-main {
    display: flex;
    flex-wrap: nowrap;           /* keep links on one line */
    align-items: center;
    gap: 1rem;

    margin-left: auto;           /* shove nav all the way to the right */
    white-space: nowrap;         /* stop links from breaking */
}

.nav-link {
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none;
}

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

.theme-toggle-pill {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}

/* === Mobile nav toggle & menu === */

/* Hidden on desktop */
.nav-toggle {
  display: none;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

/* Mobile breakpoint */
@media (max-width: 860px) {
  .site-header-inner {
    align-items: center;
  }

  /* Show hamburger, keep brand on the left */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;          /* brand on left, button on right */
  }

  /* Nav becomes a slide-down panel beneath the header */
  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;              /* closed by default */
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }

  /* When header has .nav-open, reveal the menu */
  .site-header.nav-open .nav-main {
    display: flex;
  }

  /* Bigger tap targets on mobile */
  .nav-main .nav-link,
  .nav-main .btn-nav-primary,
  .nav-main .theme-toggle-pill {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    width: 100%;
    text-align: left;
  }

  /* Keep brand block from wrapping awkwardly */
  .brand-block {
    min-width: 0;
    flex: 1;
  }
}

/* Ensure the header is the containing block for the absolute nav */
.site-header {
  position: relative;
}
