:root {
    --ink: #1d2730;
    --muted: #6b7780;
    --faint: #f3f5f3;
    --line: #e4e8e4;
    --paper: #fbfcfa;
    --sidebar: #f5f7f4;
    --accent: #e76b45;
    --accent-dark: #c85131;
    --green: #2e8a73;
    --shadow: 0 18px 45px rgba(31, 46, 40, .08);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

:root[data-theme="dark"] { --ink: #edf1ed; --muted: #a3b0aa; --faint: #202a27; --line: #35403c; --paper: #151c1a; --sidebar: #19221f; --accent: #f4865d; --green: #75c5a7; --shadow: 0 18px 45px rgba(0, 0, 0, .2); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); transition: background .25s, color .25s; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 76px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .01em; }
.brand strong { font-weight: 400; color: var(--muted); }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 800; font-size: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.icon-button { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 22px; padding: 5px; }
.admin-link { color: var(--ink); text-decoration: none; font-size: 13px; }
.admin-link span { color: var(--accent); margin-left: 5px; }
.layout { display: grid; grid-template-columns: 255px minmax(0, 850px); gap: clamp(48px, 8vw, 140px); max-width: 1270px; margin: 0 auto; padding: 48px 5vw 100px; }
.sidebar { min-height: calc(100vh - 124px); display: flex; flex-direction: column; position: sticky; top: 32px; align-self: start; }
.sidebar-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; }
.sidebar-heading { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.sidebar-section-label { margin-top: 25px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-label { margin-top: 25px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #65b98a; box-shadow: 0 0 0 4px rgba(101,185,138,.13); }
.search-box { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--faint); color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.category-nav { display: grid; gap: 3px; margin-top: 28px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; font-size: 14px; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--faint); }
.nav-link.active { font-weight: 700; box-shadow: inset 3px 0 var(--accent); }
.nav-icon { width: 17px; color: var(--accent); text-align: center; }
.nav-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.role-nav { display: grid; gap: 3px; margin-top: 10px; }
.role-group { color: var(--muted); }
.role-link { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border-radius: 6px; cursor: pointer; list-style: none; font-size: 14px; }
.role-link::-webkit-details-marker { display: none; }
.role-link:hover, .role-link.active { color: var(--ink); background: var(--faint); }
.role-link.active { font-weight: 700; box-shadow: inset 3px 0 var(--accent); }
.role-chevron { width: 10px; color: var(--accent); font-size: 15px; transition: transform .2s; }
.role-group[open] .role-chevron { transform: rotate(180deg); }
.role-articles { display: grid; gap: 2px; padding: 3px 0 5px 39px; }
.role-article-link { padding: 6px 9px; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; text-align: left; font-size: 12px; line-height: 1.35; }
.role-article-link:hover { border-left-color: var(--accent); color: var(--ink); }
.sidebar-footer { margin-top: auto; padding-top: 40px; border-top: 1px solid var(--line); }
.tiny-label, .eyebrow, .card-kicker { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-footer a { display: flex; justify-content: space-between; margin-top: 12px; color: var(--ink); font-size: 13px; text-decoration: none; }
.content-area { min-width: 0; }
.breadcrumb { display: flex; gap: 9px; color: var(--muted); font-size: 12px; margin: 3px 0 65px; }
.intro { max-width: 650px; margin-bottom: 48px; }
.intro.compact { margin-bottom: 52px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
.lede { max-width: 580px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.featured-article { display: flex; justify-content: space-between; gap: 20px; min-height: 220px; padding: 34px 38px; margin-bottom: 66px; border-radius: 10px; color: #fff; background: var(--green); box-shadow: var(--shadow); overflow: hidden; }
.featured-article .card-kicker { color: #c1ead8; }
.featured-article h2 { max-width: 440px; margin: 13px 0 9px; font-size: 29px; }
.featured-article p { max-width: 510px; color: #d9eee5; line-height: 1.6; }
.featured-number { align-self: flex-end; color: rgba(255,255,255,.22); font-family: Georgia, serif; font-size: 76px; line-height: .8; }
.text-button, .back-button { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.text-button span { margin-left: 8px; font-size: 18px; }
.section-block { margin-bottom: 50px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 7px 0 0; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.article-card { min-height: 205px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-title, .card-description, .card-meta { display: block; }
.card-title { margin: 11px 0 9px; font-size: 17px; font-weight: 700; }
.card-description { min-height: 45px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-meta { margin-top: 20px; color: var(--muted); font-size: 11px; }
.card-meta span { margin: 0 7px; color: var(--accent); }
.article-page { max-width: 700px; }
.back-button { margin-bottom: 60px; color: var(--muted); }
.article-page h1 { max-width: 700px; margin: 14px 0; font-size: clamp(38px, 5vw, 56px); }
.article-lede { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.article-meta { padding: 18px 0 40px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-meta span { margin: 0 9px; color: var(--accent); }
.rich-content { padding-top: 38px; color: var(--ink); font-size: 16px; line-height: 1.8; }
.rich-content h2 { margin: 35px 0 10px; }
.rich-content li { margin: 7px 0; }
.rich-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--accent); color: var(--muted); background: var(--faint); }
.empty-state { color: var(--muted); }
.loading-state, .error-state { color: var(--muted); }
.error-state h1 { max-width: 650px; }
.reveal { animation: reveal .4s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) { .topbar { padding: 0 20px; } .brand strong, .admin-link { display: none; } .layout { display: block; padding: 28px 20px 70px; } .sidebar { min-height: auto; position: static; margin-bottom: 48px; } .sidebar-footer { display: none; } .role-nav { display: flex; overflow-x: auto; padding-bottom: 4px; } .role-group { flex: 0 0 auto; min-width: 180px; } .role-articles { position: absolute; z-index: 2; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); } .category-nav { display: flex; overflow-x: auto; margin-top: 15px; padding-bottom: 4px; } .nav-link { flex: 0 0 auto; white-space: nowrap; } .nav-link.active, .role-link.active { box-shadow: inset 0 -3px var(--accent); } .nav-count { display: none; } .breadcrumb { margin-bottom: 45px; } .featured-article { padding: 27px; } .featured-number { display: none; } .article-grid { grid-template-columns: 1fr; } }
