:root {
    --bg: #ffffff;
    --paper: #f7f8f5;
    --ink: #111827;
    --muted: #5b6472;
    --line: #e3e7df;
    --green: #0f766e;
    --amber: #b45309;
    --blue: #2563eb;
    --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(var(--max), calc(100% - 28px));
    margin: 12px auto 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(227, 231, 223, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #ffffff;
    font-weight: 900;
}

.brand span:last-child {
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover {
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-1px);
}

.nav a.nav-search {
    gap: 7px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.nav a.nav-search::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav a.nav-search:hover {
    background: #e7f1ed;
    border-color: rgba(15, 118, 110, 0.28);
}

.nav a:last-child {
    margin-left: 6px;
    background: var(--green);
    color: #ffffff;
}

.nav a:last-child:hover {
    background: #0b5f59;
    color: #ffffff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 48px;
    align-items: center;
    width: min(var(--max), calc(100% - 36px));
    min-height: 640px;
    margin: 0 auto;
    padding: 52px 0 46px;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.55rem, 5.1vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    font-weight: 750;
    line-height: 1;
}

.button.primary {
    background: var(--ink);
    color: #ffffff;
}

.button.secondary {
    background: #ffffff;
    color: var(--ink);
}

.button:hover {
    transform: translateY(-1px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: 70px 0;
}

.intro-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    gap: 32px;
    align-items: center;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #10231f;
    color: #ffffff;
}

.search-band h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.search-band p {
    margin: 14px 0 0;
    color: #c8d9d3;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    padding: 0 14px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
}

.search-form input:focus {
    outline: 3px solid rgba(246, 196, 83, 0.32);
    border-color: #f6c453;
}

.search-form-large {
    max-width: 820px;
    margin-top: 28px;
}

.search-form-large input {
    border-color: var(--line);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-suggestions a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-weight: 800;
}

.search-suggestions a:hover {
    border-color: rgba(15, 118, 110, 0.28);
    background: #e7f1ed;
}

.empty-results {
    max-width: 720px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.empty-results h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.12;
}

.empty-results p {
    color: var(--muted);
}

.intro-band h2,
.section-heading h2,
.checklist h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.intro-band p,
.section-heading p,
.checklist p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(94px, 1fr));
    gap: 12px;
    margin: 0;
}

.stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.stats dt {
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.stats dd {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

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

.article-card {
    min-height: 270px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent, var(--green)) 42%, var(--line));
    box-shadow: var(--shadow);
}

.article-card a {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 24px;
}

.card-category {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-card h3 {
    margin: 16px 0 0;
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.article-card p {
    margin: 14px 0 0;
    color: var(--muted);
}

.read-more {
    margin-top: auto;
    color: var(--ink);
    font-weight: 800;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-panel {
    min-height: 210px;
    padding: 26px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.category-panel span {
    display: block;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 850;
}

.category-panel p {
    margin: 16px 0 0;
    color: #334155;
}

.link-directory {
    border-top: 1px solid var(--line);
}

.directory-list {
    columns: 2 320px;
    column-gap: 42px;
}

.directory-list a {
    display: block;
    break-inside: avoid;
    margin-bottom: 6px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #273449;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.directory-list a:nth-child(odd) {
    background: #f4f7f2;
}

.directory-list a:nth-child(even) {
    background: #ffffff;
    border-color: var(--line);
}

.directory-list a:hover {
    background: #e7f1ed;
    border-color: rgba(15, 118, 110, 0.22);
    color: var(--ink);
    transform: translateX(2px);
}

.checklist {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
    gap: 36px;
    align-items: start;
    margin-bottom: 50px;
    padding: 42px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #ffffff;
}

.checklist p {
    color: #cbd5e1;
}

.checklist ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
}

.checklist li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent, var(--green));
}

.archive-hero,
.legal-page,
.article-hero {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding: 76px 0 42px;
}

.archive-hero h1,
.legal-page h1,
.article-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(2.45rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.archive-hero p,
.legal-page p,
.article-hero p {
    color: var(--muted);
    font-size: 1.1rem;
}

.breadcrumb {
    color: var(--accent, var(--green));
    font-size: 0.9rem;
    font-weight: 750;
}

.pagination {
    margin-top: 28px;
    text-align: center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.article-meta span,
.metric-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 10%, #ffffff);
    color: #273449;
    font-size: 0.9rem;
    font-weight: 700;
}

.content-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    gap: 52px;
    align-items: start;
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 20px 0 74px;
}

.toc {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.92rem;
}

.toc strong {
    color: var(--ink);
}

.article-content {
    font-size: 1.08rem;
}

.article-content section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.article-content h2 {
    margin: 0 0 16px;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.article-content p {
    color: #374151;
}

.answer-box {
    padding: 26px !important;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)) !important;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 8%, #ffffff);
}

.steps {
    display: grid;
    gap: 12px;
    padding-left: 1.3rem;
}

.steps li::marker {
    color: var(--accent);
    font-weight: 850;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 26px;
}

.metric-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.related {
    border-top: 1px solid var(--line);
}

.legal-page {
    min-height: 56vh;
}

.contact-hero {
    display: grid;
    gap: 14px;
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding: 76px 0 32px;
}

.contact-hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.contact-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.1rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
    gap: 36px;
    align-items: start;
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 82px;
}

.contact-note {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.contact-note h2 {
    margin: 0 0 14px;
    font-size: 1.8rem;
    line-height: 1.12;
}

.contact-note p {
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    border-color: var(--green);
}

.privacy-check {
    grid-template-columns: 18px 1fr;
    align-items: start;
    color: var(--muted) !important;
    font-size: 0.95rem;
    font-weight: 600 !important;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.privacy-check a {
    color: var(--green);
    font-weight: 800;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 750;
}

.form-alert.success {
    background: #ecfdf5;
    color: #065f46;
}

.form-alert.error {
    background: #fef2f2;
    color: #991b1b;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: 38px 0 46px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    max-width: 560px;
    margin: 8px 0 0;
}

.footer-credit {
    font-size: 0.92rem;
}

.footer-credit a {
    color: var(--green);
    font-weight: 850;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 700;
}

.cookie-banner {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    width: min(560px, calc(100% - 36px));
    padding: 18px;
    border: 1px solid rgba(134, 239, 172, 0.32);
    border-radius: var(--radius);
    background: #10231f;
    color: #ffffff;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.28);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 4px 0 0;
    color: #c8d9d3;
    font-size: 0.92rem;
}

.cookie-banner > a {
    grid-column: 1 / -1;
    color: #f6c453;
    font-size: 0.9rem;
    font-weight: 800;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
}

.cookie-actions .button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.44);
    color: #ffffff;
}

.cookie-actions .button.primary {
    background: #f6c453;
    border-color: #f6c453;
    color: #17211d;
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        top: 8px;
    }

    .nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero,
    .intro-band,
    .search-band,
    .checklist,
    .content-shell,
    .contact-layout,
    .cookie-banner {
        left: 18px;
        right: 18px;
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .hero-media {
        order: -1;
    }

    .stats,
    .article-grid,
    .category-strip {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 560px) {
    .site-header,
    .hero,
    .section,
    .archive-hero,
    .legal-page,
    .article-hero,
    .contact-hero,
    .contact-layout,
    .content-shell,
    .site-footer {
        width: min(100% - 24px, var(--max));
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-actions,
    .site-footer,
    .cookie-actions {
        flex-direction: column;
    }

    .button,
    .search-form,
    .cookie-actions .button {
        width: 100%;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .checklist {
        padding: 26px;
    }
}
