:root {
    --color-bg: #f6f5f1;
    --color-surface: #ffffff;
    --color-text: #1c1f1d;
    --color-muted: #666b66;
    --color-border: #e3e0d8;
    --color-primary: #14532d;
    --color-primary-dark: #0d3b20;
    --color-primary-light: #1f6e3d;
    --color-accent: #b8863f;
    --color-accent-light: #f4e8d3;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(20, 30, 20, 0.08);
    --shadow-md: 0 8px 24px rgba(20, 30, 20, 0.10);
    --shadow-lg: 0 20px 50px rgba(13, 59, 32, 0.16);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-hover: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}
.brand:hover { text-decoration: none; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    margin-left: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.94rem;
    transition: background 0.15s var(--ease-hover), color 0.15s var(--ease-hover);
}
.main-nav a:hover { background: var(--color-bg); text-decoration: none; }

.main-nav a.nav-cta {
    background: var(--color-primary);
    color: #fff;
    margin-left: 12px;
}
.main-nav a.nav-cta:hover { background: var(--color-primary-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    border-radius: 2px;
}

.page-main {
    padding: 40px 24px 64px;
    min-height: 38vh;
}

/* Footer */

.site-footer {
    background: var(--color-primary-dark);
    color: #d9e6dd;
    padding: 48px 0 0;
    margin-top: 56px;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand { display: flex; gap: 12px; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.12); }
.footer-brand p { margin: 0; color: #b9ccbf; max-width: 320px; }

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0 14px;
}
.footer-col a {
    display: block;
    color: #cfe0d5;
    margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 24px;
    color: #9db9a6;
    font-size: 0.85rem;
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary-dark); font-weight: 700; }

/* Hero */

.hero-section {
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(255,255,255,0.08), transparent),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    color: #fff;
    padding: 72px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.hero-grid {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 24px;
}

.hero-content { position: relative; text-align: left; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; overflow: visible; }
.hero-illustration {
    width: 100%;
    height: auto;
    max-width: 420px;
    flex-shrink: 0;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,0.28));
}
.hero-illustration-card { transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
    .hero-float { animation: hero-float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
    .hero-float-a { animation-duration: 4.2s; }
    .hero-float-b { animation-duration: 5.4s; animation-delay: .4s; }
    .hero-float-c { animation-duration: 4.8s; animation-delay: .8s; }
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
    .hero-section { padding: 40px 20px 56px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; }
    .hero-visual { order: -1; margin-bottom: 8px; }
    .hero-illustration { max-width: 150px; }
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    color: #eaf3ec;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

.hero-content p.hero-sub {
    color: #d7e8dc;
    font-size: 1.12rem;
    max-width: 520px;
    margin: 0 0 34px;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .hero-eyebrow { margin-bottom: 14px; }
    .hero-content h1 { font-size: 1.55rem; line-height: 1.25; margin-bottom: 10px; }
    .hero-content p.hero-sub { font-size: 0.98rem; margin: 0 auto 22px; }
    .hero-actions { justify-content: center; }
}

/* Quick-search card, its own section directly below the hero — deliberately
   not overlapping the hero/page-background seam. */

.search-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    max-width: 820px;
    margin: 36px auto 0;
    position: relative;
}

.search-card form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.search-card .field { flex: 1; min-width: 160px; margin-bottom: 0; text-align: left; }
.search-card label { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 6px; }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    font-size: 0.98rem;
    transition: transform 0.16s var(--ease-hover), box-shadow 0.16s var(--ease-hover), background 0.15s var(--ease-hover);
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #a06f2e);
    color: #fff;
    box-shadow: 0 8px 20px rgba(184, 134, 63, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(184, 134, 63, 0.42); }

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* Secondary button used on light backgrounds (dashboards, forms) needs dark text */
.page-main .btn-secondary, .card .btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.page-main .btn-secondary:hover, .card .btn-secondary:hover { background: var(--color-bg); }

.btn-small { padding: 7px 16px; font-size: 0.85rem; }
.btn-danger { background: #a33333; color: #fff; }
.btn-danger:hover { background: #822929; }

/* Sections on homepage */

.section {
    padding: 72px 0 8px;
}
.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.section-head p { color: var(--color-muted); margin: 0; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--color-text);
    transition: transform 0.18s var(--ease-hover), box-shadow 0.18s var(--ease-hover), border-color 0.18s var(--ease-hover);
}
.category-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.category-card .icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card .icon-badge svg { width: 22px; height: 22px; }
.category-card span.name { font-weight: 700; font-family: var(--font-heading); font-size: 0.95rem; }
.category-card .icon-badge { transition: transform 0.22s var(--ease-hover); }
.category-card:hover .icon-badge { transform: scale(1.12) rotate(-4deg); }

/* Trust strip */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 4;
}
.trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
}
.trust-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 3px; }
.trust-item p { margin: 0; color: var(--color-muted); font-size: 0.87rem; }

@media (max-width: 860px) {
    .trust-strip { grid-template-columns: 1fr; margin-top: 16px; }
}

/* How it works */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.steps-grid-connected { position: relative; }
.steps-grid-connected::before {
    content: "";
    position: absolute;
    top: 39px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--color-border) 0 8px, transparent 8px 16px);
    z-index: 0;
}
@media (max-width: 860px) { .steps-grid-connected::before { display: none; } }

.step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 26px 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.18s var(--ease-hover), box-shadow 0.18s var(--ease-hover);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.step-card p { color: var(--color-muted); margin: 0; font-size: 0.93rem; }

.callout-band {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 72px 0 0;
}
.callout-band h3 { margin: 0 0 6px; font-size: 1.2rem; }
.callout-band p { margin: 0; color: var(--color-muted); }

/* Secondary callout (e.g. homepage lawyer-recruitment band) — deliberately
   toned down so it doesn't compete with the page's primary conversion CTA. */
.callout-band-secondary .btn-primary {
    box-shadow: none;
    background: var(--color-primary);
}
.callout-band-secondary .btn-primary:hover { background: var(--color-primary-dark); }

/* Cards / forms (dashboards, intake forms etc.) */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

form .field { margin-bottom: 18px; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=file], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s var(--ease-hover), box-shadow 0.15s var(--ease-hover);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(31, 110, 61, 0.14);
}

textarea { min-height: 120px; resize: vertical; }

input[type=radio], input[type=checkbox] { accent-color: var(--color-primary); }

.field-hint { color: var(--color-muted); font-size: 0.85rem; margin-top: 4px; }

.notice {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.notice-info { background: #eef4ff; border: 1px solid #b7cdf5; }
.notice-warning { background: #fff7e6; border: 1px solid #ecd08a; }
.notice-error { background: #fdecec; border: 1px solid #f0b6b6; color: #7a1f1f; }
.notice-success { background: #eaf7ee; border: 1px solid #a9d9b8; color: #1f5c34; }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}
.checkbox-group label {
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.checkbox-group input { width: auto; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}
.badge-red { background: #b23b3b; }
.badge-yellow { background: #b8863f; }
.badge-green { background: #2f7a4a; }
.badge-gray { background: #888888; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

th { background: #eef1ea; font-family: var(--font-heading); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-muted); }

.filters {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: flex-end;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
}

.filters .field { margin-bottom: 0; min-width: 160px; }

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.lawyer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.2s var(--ease-hover), box-shadow 0.2s var(--ease-hover), border-color 0.2s var(--ease-hover);
}
.lawyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
    text-decoration: none;
}

.lawyer-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(145deg, #dfe6e1, #cdd8d0);
    margin: 0 auto 14px;
    border: 3px solid var(--color-accent-light);
    overflow: hidden;
}
.lawyer-photo-placeholder { display: block; }
.lawyer-photo-placeholder svg { width: 100%; height: 100%; display: block; }

.lawyer-card h3 { margin: 6px 0 2px; font-size: 1.05rem; }
.lawyer-card .muted { color: var(--color-muted); font-size: 0.88rem; }

.muted { color: var(--color-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.tag {
    background: var(--color-accent-light);
    color: #8a6221;
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 600;
}

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }

.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 860px) {
    .main-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
        box-shadow: var(--shadow-md);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.28s var(--ease-out), opacity 0.18s var(--ease-out), padding 0.28s var(--ease-out);
    }
    .main-nav.open {
        max-height: 420px;
        opacity: 1;
        padding: 10px 20px 18px;
        pointer-events: auto;
    }
    .main-nav a { margin: 4px 0; text-align: center; }
    .main-nav a.nav-cta { margin: 10px 0 0; }
    .nav-toggle { display: flex; }
    .site-header { position: sticky; }
    .header-inner { position: relative; }

    .steps-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .search-card form { flex-direction: column; align-items: stretch; }
    .search-card { margin-top: 20px; padding: 18px; }
    .checkbox-group { flex-direction: column; gap: 12px; }
}

.compliance-checklist { background: #fff7e6; border: 1px solid #ecd08a; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.compliance-checklist ul { margin: 8px 0 0 20px; padding: 0; }

/* Auth pages (login, lawyer signup) — a compact brand band instead of a bare card */

.auth-hero {
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(255,255,255,0.08), transparent),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    color: #fff;
    padding: 48px 24px 44px;
    text-align: center;
}
.auth-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    color: #fff;
}
.auth-hero-icon svg { width: 28px; height: 28px; }
.auth-hero h1 { color: #fff; margin: 0 0 8px; }
.auth-hero p { color: #d7e8dc; margin: 0 auto; max-width: 460px; }

.auth-card-wrap { max-width: 440px; margin: 0 auto; }
.auth-card-wrap.wide { max-width: 640px; }

.page-eyebrow {
    display: inline-block;
    background: var(--color-accent-light);
    color: #8a6221;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.empty-state {
    background: var(--color-accent-light);
    border: 1px solid #e3c896;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.empty-state p { margin: 0 0 16px; color: #6b5427; max-width: 460px; margin-left: auto; margin-right: auto; }

/* Honeypot (never visible to people) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--color-muted); }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 6px; color: #a8ada8; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span[aria-current] { color: var(--color-text); font-weight: 600; }

/* Content-page hero row */
.page-hero-row { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-hero-row h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-hero-row .page-eyebrow { margin-bottom: 8px; }
.page-icon-badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.page-icon-badge svg { width: 36px; height: 36px; }

/* Two-column content layout with sticky CTA */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.content-main { min-width: 0; }
.cta-aside { position: sticky; top: 88px; }
.cta-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.cta-card-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.cta-card-icon svg { width: 22px; height: 22px; }
.cta-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.cta-card p { margin: 0 0 16px; color: var(--color-muted); font-size: 0.93rem; }
.cta-card .btn { width: 100%; }
.cta-points { list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.85rem; color: var(--color-muted); }
.cta-points li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.cta-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--color-primary); font-weight: 700; }

/* Key facts callout */
.key-facts {
    background: linear-gradient(135deg, #eef4ef, #f6f5f1);
    border: 1px solid #d8e2da;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 26px;
}
.key-facts h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin: 0 0 12px; }
.key-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.key-facts li { padding-left: 28px; position: relative; font-size: 0.95rem; line-height: 1.5; }
.key-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Article prose */
.content-prose {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
    font-size: 1.02rem;
    line-height: 1.7;
}
.content-prose p { margin: 0 0 18px; }
.content-prose p:last-child { margin-bottom: 0; }
.content-prose h2, .content-prose h3 { margin: 26px 0 10px; }
.content-prose ul { padding-left: 22px; }

.content-section { margin-top: 40px; }
.content-section > h2 { font-size: 1.35rem; margin: 0 0 16px; }

/* FAQ accordion (native details/summary) */
.faq-list { display: grid; gap: 10px; }
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.18s var(--ease-hover), box-shadow 0.18s var(--ease-hover);
}
.faq-item[open] { border-color: #cfdccf; box-shadow: var(--shadow-sm); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    color: var(--color-primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--color-accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6221' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/12px no-repeat;
    transition: transform 0.2s var(--ease-hover);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: #fbfaf7; }
.faq-answer { padding: 0 20px 18px; color: #3a3f3b; line-height: 1.65; }
.faq-answer p { margin: 0; }

/* Related pages grid */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.related-card .desc { font-size: 0.82rem; color: var(--color-muted); line-height: 1.45; }

/* Mobile sticky CTA bar */
.sticky-cta-bar { display: none; }

@media (max-width: 960px) {
    .content-layout { grid-template-columns: 1fr; }
    .cta-aside { position: static; }
    .sticky-cta-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        background: rgba(255,255,255,0.97);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -6px 20px rgba(20,30,20,0.08);
        font-weight: 600;
        font-size: 0.9rem;
    }
    body.has-sticky-cta { padding-bottom: 68px; }
    .page-hero-row { gap: 14px; }
    .page-icon-badge { width: 56px; height: 56px; border-radius: 16px; }
    .page-icon-badge svg { width: 28px; height: 28px; }
    .content-prose { padding: 20px; }
}

/* Admin panel */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.admin-toolbar-spacer { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    color: inherit;
}
a.stat-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); font-weight: 600; }
.stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-primary-dark); line-height: 1.1; }
.stat-sub { font-size: 0.82rem; color: var(--color-muted); }
.stat-accent { background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark)); border-color: transparent; }
.stat-accent .stat-label, .stat-accent .stat-sub { color: #cfe0d5; }
.stat-accent .stat-value { color: #fff; }
.stat-alert { border-color: var(--color-accent); background: #fff9ef; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .admin-grid-2 { grid-template-columns: 1fr; } }
.today-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.today-list li { padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.today-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding-left: 28px; margin-bottom: 14px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--color-border); background: #888; }
.dot-blue { background: #2c5f74; }
.dot-yellow { background: var(--color-accent); }
.dot-green { background: #2f7a4a; }
.dot-red { background: #b23b3b; }
.dot-gray { background: #888; }
.timeline-body { font-size: 0.93rem; line-height: 1.5; }
.timeline-time { display: block; font-size: 0.8rem; color: var(--color-muted); margin-top: 2px; }
.timeline-compact .timeline-item { margin-bottom: 10px; }
.timeline-day { margin: 26px 0 10px; font-size: 0.85rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sort-link { color: inherit; }
.sort-link:hover { color: var(--color-primary); text-decoration: none; }
.sort-active { color: var(--color-primary); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-surface); }
.table-wrap table { border-radius: 0; }
.badge-stale { margin-left: 6px; }
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 0.95rem; }
.detail-list dt { color: var(--color-muted); font-weight: 600; }
.detail-list dd { margin: 0; }
.note-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.note-item { background: #fffdf7; border: 1px solid #efe4c8; border-radius: var(--radius-sm); padding: 12px 14px; }
.page-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 404, legal pages, cookie banner */
.notfound { text-align: center; max-width: 560px; margin: 30px auto; }
.notfound .page-icon-badge { margin-bottom: 18px; }
.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-doc p, .legal-doc li { line-height: 1.7; }
.cookie-banner {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 18px;
    z-index: 60;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; }

/* Scroll-reveal */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}
