*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:  #1a5c2e;
    --green2: #2a7a42;
    --accent: #4caf72;
    --light:  #f4f8f5;
    --text:   #1e2b22;
    --muted:  #5a6b60;
    --border: #d0ddd4;
    --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    font-size: 15px;
}

/* ── HEADER ── */
header {
    background: var(--green);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-text { line-height: 1.2; }
.logo-text span:first-child {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
}
.logo-text span:last-child {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.6);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.back-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    letter-spacing: .5px;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
    transition: color .2s;
}
.back-link:hover { color: var(--white); }
.back-link::before { content: '←'; font-size: 14px; }

/* ── HERO BAND ── */
.hero-band {
    background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-band::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-band .label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
}

.hero-band h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    position: relative;
    margin-bottom: .75rem;
}

.hero-band p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

/* ── LAYOUT ── */
.page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── SIDEBAR NAV ── */
.toc {
    position: sticky;
    top: 84px;
}

.toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.toc ul { list-style: none; }

.toc ul li { margin-bottom: 2px; }

.toc ul li a {
    display: block;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all .18s;
    line-height: 1.4;
}

.toc ul li a:hover,
.toc ul li a.active {
    color: var(--green);
    background: var(--light);
    border-left-color: var(--accent);
}

.toc-updated {
    margin-top: 1.5rem;
    padding: 10px 12px;
    background: var(--light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.toc-updated strong {
    display: block;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 2px;
}

/* ── CONTENT ── */
.content section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.content section:last-of-type { border-bottom: none; }

.section-num {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .4rem;
}

.content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.content p {
    color: var(--text);
    margin-bottom: .85rem;
    font-size: 15px;
}

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

.content ul {
    padding-left: 1.2rem;
    margin-bottom: .85rem;
}

.content ul li {
    margin-bottom: .4rem;
    font-size: 15px;
    color: var(--text);
}

.content ul li::marker { color: var(--accent); }

.highlight-box {
    background: var(--light);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 14px;
    color: var(--muted);
}

/* ── FOOTER ── */
.page-footer {
    background: var(--green);
    text-align: center;
    padding: 2rem;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    font-family: 'Montserrat', sans-serif;
}

.page-footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    .page-wrap {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 4rem;
    }
    .toc { display: none; }
}