:root {
    --ink: #102d3d;
    --ink-soft: #526a74;
    --green: #71c943;
    --green-dark: #4b9b29;
    --green-pale: #edf7e8;
    --green-mist: #f5faf2;
    --line: #dce6dd;
    --surface: #ffffff;
    --off-white: #f8faf7;
    --danger: #b42318;
    --danger-pale: #fff0ee;
    --success: #2e7d32;
    --shadow: 0 24px 60px rgba(16, 45, 61, .11);
    --shadow-soft: 0 12px 34px rgba(16, 45, 61, .07);
    --radius: 22px;
    --font: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { line-height: 1.32; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.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;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
}
.skip-link:focus { top: 16px; }

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(113, 201, 67, .34);
    outline-offset: 3px;
}
.button-primary { color: var(--ink); background: var(--green); box-shadow: 0 9px 22px rgba(113, 201, 67, .24); }
.button-primary:hover { background: #7fd750; }
.button-outline { border-color: #b8cabc; background: transparent; }
.button-outline:hover { border-color: var(--green); background: var(--green-pale); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #183d50; }
.button-large { min-height: 54px; padding-inline: 28px; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button-row-center { justify-content: center; }
.text-link { color: var(--ink); font-weight: 750; }
.text-link span { display: inline-block; margin-left: 4px; color: var(--green-dark); transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.muted { color: var(--ink-soft); }

/* Navigation */
.site-header {
    position: relative;
    z-index: 100;
    min-height: 94px;
    border-bottom: 1px solid rgba(220, 230, 221, .7);
    background: rgba(255, 255, 255, .96);
}
.nav-shell { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #64be38, #89da55);
    box-shadow: 0 11px 24px rgba(113, 201, 67, .22);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 1.45rem; letter-spacing: -.04em; }
.brand-copy small { margin-top: 1px; color: #71848c; font-size: .72rem; font-weight: 650; }
.site-menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 43px); font-weight: 720; }
.site-menu > a:not(.button), .nav-dropdown > summary { position: relative; padding-block: 34px; }
.site-menu > a:not(.button)::after, .nav-dropdown > summary::after {
    position: absolute;
    right: 0;
    bottom: 25px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--green);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.site-menu > a:not(.button):hover::after,
.site-menu > a.is-active::after,
.nav-dropdown > summary:hover::after,
.nav-dropdown.is-active > summary::after,
.nav-dropdown[open] > summary::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown-chevron { display: inline-block; color: var(--green-dark); font-size: 1rem; line-height: 1; transition: transform .18s ease; }
.nav-dropdown[open] .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
    position: absolute;
    z-index: 130;
    top: calc(100% - 15px);
    left: -18px;
    min-width: 235px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(16, 45, 61, .16);
}
.nav-dropdown-panel a { display: block; padding: 11px 13px; border-radius: 9px; white-space: nowrap; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel a.is-active { color: var(--ink); background: var(--green-pale); }
.nav-cta { min-height: 49px; padding-inline: 25px; }
.nav-logout { margin: 0; }
.nav-logout button { padding: 8px 0; border: 0; color: #6a7d84; background: none; font-weight: 700; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); }

.flash-stack { position: fixed; z-index: 1000; top: 112px; right: 18px; display: grid; width: min(420px, calc(100vw - 36px)); gap: 10px; pointer-events: none; }
.auth-page .flash-stack { top: 18px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 13px 13px 13px 17px; border: 1px solid #c8e8ba; border-radius: 12px; color: var(--success); background: #f2faee; box-shadow: 0 14px 38px rgba(16, 45, 61, .18); font-weight: 650; pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
.flash.is-leaving { opacity: 0; transform: translateY(-8px); }
.flash-error { border-color: #f4c7c2; color: var(--danger); background: var(--danger-pale); }
.flash button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 0; border-radius: 9px; color: inherit; background: transparent; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.flash button:hover { background: rgba(16, 45, 61, .07); }
.flash button:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.button.is-disabled { cursor: not-allowed; opacity: .55; }
.selected-plan-note { display: grid; grid-template-columns: 1fr auto; gap: 3px 18px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #c8e8ba; border-radius: 12px; background: #f2faee; }
.selected-plan-note span { grid-column: 1 / -1; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.selected-plan-note strong { color: var(--ink); }
.selected-plan-note small { color: var(--green-dark); font-weight: 800; }

/* Homepage hero */
.hero { position: relative; overflow: hidden; min-height: 650px; background: linear-gradient(118deg, #f7fbf5 0%, #eef7e9 65%, #e8f3e2 100%); }
.hero-orbit {
    position: absolute;
    top: -300px;
    right: -185px;
    width: 620px;
    height: 620px;
    border: 88px solid rgba(255, 255, 255, .56);
    border-radius: 50%;
}
.hero-grid { position: relative; display: grid; min-height: 650px; align-items: center; grid-template-columns: .82fr 1.18fr; gap: clamp(42px, 6vw, 82px); padding-block: 64px 84px; }
.eyebrow { margin-bottom: 25px; color: #47765c; font-size: .81rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 30px; height: 4px; margin-right: 9px; border-radius: 4px; vertical-align: middle; background: var(--green); }
.eyebrow-center { text-align: center; }
.hero h1 { max-width: 660px; margin-bottom: 28px; font-size: clamp(3rem, 5.2vw, 5.25rem); letter-spacing: -.045em; line-height: 1.25; }
.hero-lead { max-width: 680px; margin-bottom: 32px; color: var(--ink-soft); font-size: 1.13rem; line-height: 1.85; }
.hero-visual {
    position: relative;
    min-height: 520px;
    overflow: visible;
    border-radius: 34px 90px 34px 34px;
    background: #dcebd6;
    box-shadow: 0 34px 75px rgba(16, 45, 61, .16);
}
.hero-visual > img {
    width: 100%;
    height: 520px;
    border-radius: inherit;
    object-fit: cover;
    object-position: 58% center;
}
.hero-visual::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 36, 50, .02) 42%, rgba(10, 36, 50, .36) 100%);
}
.hero-search-card {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: -42px;
    left: -55px;
    padding: 22px;
    border: 1px solid rgba(216, 226, 216, .92);
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 56px rgba(16, 45, 61, .18);
}
.hero-search-card .preview-head { margin-bottom: 13px; }
.hero-search-card .preview-search { margin-bottom: 0; }
.hero-search-card .preview-search button {
    min-height: 38px;
    padding: 7px 16px;
    border: 0;
    border-radius: 9px;
    color: var(--ink);
    background: var(--green);
    font-size: .78rem;
    font-weight: 850;
}
.library-preview {
    position: relative;
    z-index: 1;
    padding: 29px;
    border: 1px solid rgba(216, 226, 216, .88);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 34px 75px rgba(16, 45, 61, .13);
    transform: rotate(.7deg);
}
.library-preview::before {
    position: absolute;
    z-index: -1;
    inset: 14px -18px -22px 18px;
    border-radius: 28px;
    content: "";
    background: rgba(255, 255, 255, .4);
}
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.preview-head strong { font-size: 1.08rem; }
.status-pill { padding: 6px 13px; border-radius: 999px; color: var(--green-dark); background: var(--green-pale); font-size: .77rem; font-weight: 800; }
.preview-search { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf8; }
.preview-search > span { color: #738b7b; font-size: 1.6rem; line-height: 1; transform: rotate(-20deg); }
.preview-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.preview-list { display: grid; }
.preview-item { display: grid; align-items: center; gap: 15px; padding: 22px 3px; border-bottom: 1px solid #e5ebe6; grid-template-columns: auto minmax(0, 1fr) auto; }
.file-badge, .mini-file { display: grid; place-items: center; color: var(--green-dark); background: var(--green-pale); font-weight: 850; }
.file-badge { width: 58px; height: 58px; border-radius: 12px; font-size: .83rem; }
.preview-item-copy { display: flex; min-width: 0; flex-direction: column; }
.preview-item-copy strong { overflow: hidden; font-size: .91rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-item-copy small { margin-top: 4px; color: #70827b; font-size: .75rem; }
.preview-item > a, .preview-label { padding: 8px 12px; border: 1px solid #b8d9aa; border-radius: 9px; color: var(--green-dark); font-size: .78rem; font-weight: 800; }
.access-note { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 15px 18px; border-radius: 13px; color: #fff; background: var(--ink); }
.check-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--ink); background: var(--green); font-size: 1.3rem; font-weight: 900; }
.access-note > span:last-child { display: flex; flex-direction: column; }
.access-note strong { font-size: .84rem; }
.access-note small { margin-top: 2px; color: #b8c8cf; font-size: .71rem; }

.stats-strip { border-block: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; min-height: 112px; align-items: center; grid-template-columns: repeat(3, 1fr) 1.5fr; }
.stat-item { display: flex; align-items: baseline; gap: 10px; padding: 12px 28px; border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item strong { font-size: 1.8rem; }
.stat-item span, .stat-message { color: var(--ink-soft); font-size: .82rem; font-weight: 650; }
.stat-message { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px var(--green-pale); }

/* Shared sections */
.section { padding-block: 95px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { max-width: 720px; margin-bottom: 13px; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--ink-soft); font-size: 1.02rem; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.split-heading .eyebrow { margin-bottom: 17px; }
.section-heading-center { text-align: center; }
.section-heading-center h2, .section-heading-center p:not(.eyebrow) { margin-inline: auto; }
.section-categories { background: #fff; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.category-card {
    display: grid;
    min-height: 115px;
    align-items: center;
    gap: 17px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    grid-template-columns: auto minmax(0, 1fr) auto;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { border-color: #b8dca9; box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.category-icon { display: grid; width: 53px; height: 53px; place-items: center; border-radius: 14px; color: var(--green-dark); background: var(--green-pale); font-size: 1.4rem; font-weight: 850; }
.category-icon-image { overflow: hidden; border: 1px solid #e8c795; background: #fff3e4; }
.category-icon-image img { width: 100%; height: 100%; object-fit: cover; }
.category-card > span:nth-child(2) { display: flex; flex-direction: column; }
.category-card strong { font-size: 1rem; }
.category-card small { margin-top: 5px; color: #70827b; font-size: .8rem; }
.card-arrow { color: #92a19a; font-size: 1.1rem; }
.category-card-placeholder { background: #fbfcfb; }

.section-documents { background: var(--off-white); }
.document-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.document-column { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.document-column > header { display: flex; align-items: center; gap: 14px; padding: 24px; border-bottom: 1px solid var(--line); }
.column-number { color: var(--green-dark); font-size: .78rem; font-weight: 850; letter-spacing: .09em; }
.document-column header > span:last-child { display: flex; flex-direction: column; }
.document-column header strong { font-size: 1.08rem; }
.document-column header small { margin-top: 2px; color: #72847c; font-size: .76rem; }
.compact-document { display: grid; min-height: 91px; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e8ede8; grid-template-columns: auto minmax(0, 1fr) auto; transition: background .18s ease; }
.compact-document:last-child { border-bottom: 0; }
.compact-document:hover { background: var(--green-mist); }
.mini-file { width: 42px; height: 42px; border-radius: 10px; font-size: .64rem; }
.compact-document > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.compact-document strong { font-size: .85rem; }
.compact-document small { margin-top: 4px; color: #73847d; font-size: .72rem; }
.compact-document > span:last-child { color: var(--green-dark); font-size: 1.4rem; }
.empty-compact { min-height: 180px; display: grid; place-content: center; justify-items: center; padding: 28px; color: #7a8b83; text-align: center; }
.empty-compact > span { font-size: 2rem; }
.empty-compact p { max-width: 210px; margin: 7px 0 0; font-size: .85rem; }
.section-action { margin-top: 34px; text-align: center; }

.section-plans { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.section-plans::after { position: absolute; right: -180px; bottom: -300px; width: 600px; height: 600px; border: 75px solid rgba(113, 201, 67, .08); border-radius: 50%; content: ""; }
.plans-home-grid { position: relative; z-index: 1; display: grid; align-items: center; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.plans-copy { margin-bottom: 0; }
.plans-copy h2 { color: #fff; }
.plans-copy p:not(.eyebrow) { color: #b8c8ce; }
.plans-copy .text-link { color: var(--green); }
.check-list { display: grid; gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.check-list li::before { display: inline-grid; width: 23px; height: 23px; margin-right: 10px; place-items: center; border-radius: 50%; color: var(--ink); content: "✓"; background: var(--green); font-size: .75rem; font-weight: 900; }
.home-plan-stack { display: grid; gap: 14px; }
.home-plan-card { display: grid; min-height: 112px; align-items: center; gap: 20px; padding: 24px 26px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 17px; background: rgba(255, 255, 255, .055); grid-template-columns: minmax(0, 1fr) auto; transition: border .18s ease, transform .18s ease, background .18s ease; }
a.home-plan-card:hover { border-color: rgba(113, 201, 67, .7); background: rgba(255, 255, 255, .09); transform: translateX(4px); }
.home-plan-card.is-featured { border-color: rgba(113, 201, 67, .5); background: rgba(113, 201, 67, .1); }
.home-plan-card > span { display: flex; flex-direction: column; }
.home-plan-card > span:first-child small { margin-top: 6px; color: #afc0c6; }
.home-plan-price { align-items: flex-end; }
.home-plan-price strong { color: var(--green); font-size: 1.55rem; }
.home-plan-price small { color: #a9bbc2; }

.section-knowledge { background: #fff; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.knowledge-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.knowledge-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.knowledge-image { display: grid; height: 210px; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e8f5e2, #f6faf4); }
.knowledge-image img { width: 100%; height: 100%; object-fit: cover; }
.knowledge-image > span { color: rgba(75, 155, 41, .2); font-size: 6rem; font-weight: 900; }
.knowledge-card > div { padding: 23px; }
.knowledge-card small { color: var(--green-dark); font-weight: 750; }
.knowledge-card h3 { margin: 9px 0; font-size: 1.1rem; }
.knowledge-card p { color: var(--ink-soft); font-size: .86rem; }
.knowledge-card .text-link { font-size: .86rem; }
.knowledge-empty { display: grid; align-items: center; gap: 23px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--green-mist); grid-template-columns: auto 1fr auto; }
.knowledge-empty-mark { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: var(--green-dark); background: #fff; font-size: 1.5rem; }
.knowledge-empty h3 { margin-bottom: 5px; }
.knowledge-empty p { margin-bottom: 0; color: var(--ink-soft); }
.final-cta { padding-block: 75px; color: #fff; background: #14394b; }
.final-cta-inner { display: grid; align-items: end; grid-template-columns: 1.1fr .9fr; gap: 80px; }
.final-cta h2 { margin: 0; font-size: clamp(2.1rem, 3.6vw, 3.4rem); letter-spacing: -.035em; }
.final-cta-inner > div:last-child p { margin-bottom: 22px; color: #bdcbd0; }
.eyebrow-light { color: #b9d7c6; }

/* Footer */
.site-footer { padding-top: 70px; color: #dbe4e7; background: #0a2432; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; padding-bottom: 55px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { width: 49px; height: 49px; border-radius: 14px; font-size: 1.6rem; }
.brand-footer .brand-copy small { color: #93a9b2; }
.footer-grid > div:first-child > p { max-width: 430px; margin: 22px 0 0; color: #92a9b2; }
.footer-grid h2 { margin-bottom: 18px; color: #fff; font-size: .95rem; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid > div:not(:first-child) a { color: #9fb1b8; font-size: .9rem; }
.footer-grid a:hover { color: var(--green); }
.footer-bottom { display: flex; min-height: 70px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); color: #78909a; font-size: .78rem; }

/* Page headers and document browser */
.page-hero { position: relative; overflow: hidden; padding-block: 75px; background: linear-gradient(125deg, var(--green-mist), #e7f3e2); }
.page-hero::after { position: absolute; top: -180px; right: -100px; width: 440px; height: 440px; border: 65px solid rgba(255,255,255,.48); border-radius: 50%; content: ""; }
.page-hero-grid { position: relative; z-index: 1; display: grid; align-items: end; grid-template-columns: 1fr auto; gap: 60px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: #768981; font-size: .78rem; }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs span:last-child { color: var(--ink); }
.page-hero .eyebrow { margin-bottom: 13px; }
.page-hero h1 { margin-bottom: 16px; font-size: clamp(2.6rem, 4.6vw, 4.4rem); letter-spacing: -.045em; }
.page-hero p:last-child { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.page-hero-fact { display: flex; min-width: 210px; flex-direction: column; padding: 25px 30px; border: 1px solid rgba(185, 210, 177, .8); border-radius: 18px; background: rgba(255, 255, 255, .72); }
.fact-number { color: var(--green-dark); font-size: 2.7rem; font-weight: 850; line-height: 1; }
.page-hero-fact span:last-child { margin-top: 8px; color: var(--ink-soft); font-size: .82rem; }
.document-browser { padding-top: 55px; }
.search-panel { display: grid; align-items: end; gap: 18px; margin-top: -88px; margin-bottom: 34px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); grid-template-columns: minmax(0, 1.7fr) minmax(180px, .7fr) auto; }
.search-panel label { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 750; }
.search-input-wrap { display: flex; min-height: 50px; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbf9; }
.search-input-wrap span { color: #708a77; font-size: 1.5rem; transform: rotate(-20deg); }
.search-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; }
.search-category select { width: 100%; min-height: 50px; padding: 0 36px 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbf9; }
.search-panel > .button { min-height: 50px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 42px; color: var(--ink-soft); font-size: .82rem; }
.filter-chip { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid transparent; border-radius: 999px; color: var(--green-dark); background: var(--green-pale); font-weight: 700; }
.active-filters a { margin-left: 5px; color: var(--danger); font-weight: 700; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.results-heading .eyebrow { margin-bottom: 7px; }
.results-heading h2 { margin: 0; font-size: 1.7rem; }
.results-heading > span { color: var(--ink-soft); font-size: .78rem; }
.document-result-list { display: grid; gap: 13px; }
.document-result { display: grid; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; grid-template-columns: auto minmax(0, 1fr) auto; transition: border-color .18s ease, box-shadow .18s ease; }
.document-result:hover { border-color: #b6d6aa; box-shadow: var(--shadow-soft); }
.result-file-icon { display: grid; width: 72px; height: 82px; place-items: center; border-radius: 12px; background: var(--green-pale); }
.result-file-icon span { color: var(--green-dark); font-size: .76rem; font-weight: 900; }
.document-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 7px; color: #778981; font-size: .73rem; }
.document-meta a { padding: 3px 8px; border-radius: 999px; color: var(--green-dark); background: var(--green-pale); font-weight: 750; }
.result-copy h3 { margin-bottom: 7px; font-size: 1.08rem; }
.result-copy h3 a:hover { color: var(--green-dark); }
.result-copy > p { margin-bottom: 9px; color: var(--ink-soft); font-size: .84rem; }
.result-file-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #7a8b84; font-size: .73rem; }
.result-file-meta span + span::before { margin-right: 12px; content: "•"; }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.empty-state { padding: 75px 30px; border: 1px dashed #bfd2c2; border-radius: var(--radius); background: #fbfdfb; text-align: center; }
.empty-state-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-pale); font-size: 2rem; }
.empty-state h2 { margin-bottom: 9px; font-size: 1.55rem; }
.empty-state p { max-width: 580px; margin: 0 auto 22px; color: var(--ink-soft); }
.pagination-wrap { margin-top: 35px; }
.safetyppe-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.pagination-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pagination-link {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font-size: .84rem;
    font-weight: 750;
    line-height: 1;
}
a.pagination-link:hover { border-color: var(--green); background: var(--green-pale); }
.pagination-link.is-current { border-color: var(--green); color: #fff; background: var(--green); }
.pagination-link.is-disabled { color: #92a19b; background: #f4f7f4; cursor: not-allowed; opacity: .7; }
.pagination-prev, .pagination-next { min-width: 104px; }
.pagination-ellipsis { display: inline-flex; width: 30px; height: 42px; align-items: center; justify-content: center; color: var(--ink-soft); }

/* Document detail */
.document-detail-hero { padding-block: 54px 64px; color: #fff; background: var(--ink); }
.breadcrumbs-light, .document-detail-hero .breadcrumbs { color: #9eb2ba; }
.breadcrumbs-light a, .document-detail-hero .breadcrumbs a { color: #c8d6da; }
.breadcrumbs-light span:last-child, .document-detail-hero .breadcrumbs span:last-child { color: #fff; }
.document-detail-heading { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 45px; }
.detail-categories a { color: var(--green); background: rgba(113, 201, 67, .12); }
.document-detail-heading h1 { max-width: 900px; margin-bottom: 14px; font-size: clamp(2.3rem, 4vw, 3.8rem); letter-spacing: -.04em; }
.document-detail-heading p { max-width: 750px; margin-bottom: 0; color: #b6c5ca; font-size: 1.02rem; }
.detail-file-mark { display: grid; width: 112px; height: 130px; place-items: center; border: 1px solid rgba(113,201,67,.4); border-radius: 18px; color: var(--green); background: rgba(113,201,67,.08); font-weight: 900; }
.document-detail-section { background: var(--off-white); }
.detail-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 28px; }
.card-surface { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.detail-content { padding: 34px; }
.detail-content > h2, .download-card h2 { margin-bottom: 22px; font-size: 1.35rem; }
.rich-content, .detail-content > p { color: #405c68; line-height: 1.9; }
.detail-facts { display: grid; margin: 34px 0 0; border-top: 1px solid var(--line); }
.detail-facts > div { display: grid; padding: 15px 0; border-bottom: 1px solid var(--line); grid-template-columns: 145px 1fr; }
.detail-facts dt { color: #7a8b83; font-size: .8rem; }
.detail-facts dd { margin: 0; font-weight: 650; }
.download-card { overflow: hidden; }
.download-card-head { display: flex; align-items: center; gap: 14px; padding: 24px; color: #fff; background: var(--ink); }
.download-card-head > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--green); font-size: 1.35rem; font-weight: 900; }
.download-card-head h2 { margin: 0; color: #fff; font-size: 1.15rem; }
.download-card-head p { margin: 2px 0 0; color: #aebfc6; font-size: .76rem; }
.download-file-list { display: grid; }
.download-file { display: grid; align-items: center; gap: 11px; padding: 17px 20px; border-bottom: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr) auto; }
.download-file > div { display: flex; min-width: 0; flex-direction: column; }
.download-file strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.download-file small { margin-top: 3px; color: #7a8b83; font-size: .7rem; }
.download-empty { display: flex; align-items: center; gap: 12px; padding: 24px; color: var(--ink-soft); }
.download-empty > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #916a00; background: #fff4d2; font-weight: 850; }
.download-empty p { margin: 0; font-size: .82rem; }
.member-note { margin: 20px; padding: 18px; border-radius: 13px; background: var(--green-pale); }
.member-note strong { font-size: .86rem; }
.member-note p { margin: 5px 0; color: var(--ink-soft); font-size: .77rem; }
.member-note a { color: var(--green-dark); font-size: .8rem; font-weight: 800; }
.member-note-success { border-left: 4px solid var(--green); }
.detail-bottom-cta { padding-block: 40px; border-top: 1px solid var(--line); }
.detail-bottom-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.detail-bottom-cta h2 { margin-bottom: 4px; font-size: 1.35rem; }
.detail-bottom-cta p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

/* Pricing */
.centered-page-hero { position: relative; z-index: 1; text-align: center; }
.breadcrumbs-center { justify-content: center; }
.centered-page-hero h1, .centered-page-hero p:last-child { margin-inline: auto; }
.plans-hero { padding-bottom: 130px; }
.pricing-section { padding-top: 0; background: var(--off-white); }
.pricing-grid { display: grid; align-items: stretch; gap: 20px; margin-top: -70px; }
.pricing-grid-1 { max-width: 470px; margin-inline: auto; grid-template-columns: 1fr; }
.pricing-grid-2 { max-width: 850px; margin-inline: auto; grid-template-columns: repeat(2, 1fr); }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pricing-card { position: relative; display: flex; min-height: 555px; flex-direction: column; padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.pricing-card.is-recommended { border: 2px solid var(--green); transform: translateY(-10px); }
.recommended-ribbon { position: absolute; top: 0; right: 25px; padding: 7px 14px; border-radius: 0 0 10px 10px; color: var(--ink); background: var(--green); font-size: .74rem; font-weight: 850; }
.plan-kicker { color: var(--green-dark); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.pricing-card h2 { margin: 12px 0 10px; font-size: 1.45rem; }
.pricing-card-head p { min-height: 54px; margin-bottom: 0; color: var(--ink-soft); font-size: .86rem; }
.price-line { display: flex; min-height: 102px; align-items: baseline; gap: 5px; padding-block: 27px 23px; }
.price-line > span { font-size: 1.1rem; font-weight: 800; }
.price-line strong { font-size: 2.8rem; letter-spacing: -.04em; }
.price-line small { color: var(--ink-soft); }
.plan-feature-list { display: grid; gap: 13px; margin: 26px 0 0; padding: 25px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan-feature-list li { display: flex; align-items: flex-start; gap: 10px; color: #425e69; font-size: .82rem; }
.plan-feature-list li span { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-pale); font-size: .7rem; font-weight: 900; }
.plan-empty { margin-top: -70px; background: #fff; box-shadow: var(--shadow); }
.pricing-assurance { display: grid; margin-top: 55px; padding: 26px 0; border-block: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
.pricing-assurance > div { display: flex; align-items: flex-start; gap: 12px; padding: 0 28px; border-right: 1px solid var(--line); }
.pricing-assurance > div:first-child { padding-left: 0; }
.pricing-assurance > div:last-child { padding-right: 0; border-right: 0; }
.pricing-assurance > div > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-pale); font-weight: 900; }
.pricing-assurance p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.pricing-assurance strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: .86rem; }
.faq-section { background: #fff; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.faq-list { display: grid; align-self: start; }
.faq-list details { padding: 23px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 780; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--green-dark); font-size: 1.3rem; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 13px 30px 0 0; color: var(--ink-soft); font-size: .88rem; }

/* Authentication */
.auth-page .site-header, .auth-page .site-footer { display: none; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, .85fr) minmax(540px, 1.15fr); }
.auth-visual { position: relative; display: grid; overflow: hidden; place-items: center; padding: 70px; color: #fff; background: var(--ink); }
.auth-visual::before, .auth-visual::after { position: absolute; border: 70px solid rgba(113,201,67,.08); border-radius: 50%; content: ""; }
.auth-visual::before { top: -190px; left: -200px; width: 510px; height: 510px; }
.auth-visual::after { right: -230px; bottom: -260px; width: 620px; height: 620px; }
.auth-visual > div { position: relative; z-index: 1; max-width: 510px; }
.brand-inverse { margin-bottom: 90px; color: #fff; }
.brand-inverse .brand-copy small { color: #9eb3bc; }
.auth-visual .eyebrow { margin-bottom: 17px; }
.auth-visual h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 4.5vw, 4.2rem); letter-spacing: -.045em; }
.auth-visual > div > p:not(.eyebrow) { color: #b2c3ca; font-size: 1.02rem; }
.auth-benefits { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 11px; color: #cfdbdf; }
.auth-benefits span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--green); font-size: .7rem; font-weight: 900; }
.auth-form-side { display: grid; place-items: center; padding: 60px; background: #f7faf7; }
.auth-card { width: min(100%, 560px); padding: 45px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.auth-card .breadcrumbs { margin-bottom: 25px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { margin-bottom: 7px; font-size: 2rem; letter-spacing: -.035em; }
.auth-heading p { margin: 0; color: var(--ink-soft); }
.form-alert { margin-bottom: 22px; padding: 14px 17px; border: 1px solid #f2c2be; border-radius: 11px; color: var(--danger); background: var(--danger-pale); font-size: .8rem; }
.form-alert strong { display: block; margin-bottom: 4px; }
.form-alert ul { margin: 0; padding-left: 20px; }
.auth-form { display: grid; gap: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 750; }
.form-field input { width: 100%; min-height: 52px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; outline: 0; }
.form-field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(113,201,67,.1); }
.field-help-link { margin-top: 7px; text-align: right; }
.field-help-link a { color: var(--green-dark); font-size: .78rem; font-weight: 800; }
.form-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: .82rem; cursor: pointer; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--green-dark); }
.auth-switch { margin: 23px 0 0; text-align: center; color: var(--ink-soft); font-size: .86rem; }
.auth-switch a { color: var(--green-dark); font-weight: 800; }
.legacy-login-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 23px; padding: 15px; border-radius: 11px; background: var(--green-pale); }
.legacy-login-note > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--green-dark); font-size: .72rem; font-weight: 900; }
.legacy-login-note p { margin: 0; color: #506861; font-size: .75rem; }
.form-legal { margin: 17px 10px 0; color: #7d8e87; font-size: .7rem; text-align: center; }

/* Account */
.verification-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; padding: 18px 20px; border: 1px solid #efd59a; border-radius: 15px; background: #fff8e6; }
.verification-banner strong { color: #694b05; }
.verification-banner p { margin: 4px 0 0; color: #806826; font-size: .82rem; }
.verification-banner form { flex: 0 0 auto; }
.account-hero { padding-block: 53px; color: #fff; background: var(--ink); }
.account-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.account-hero .breadcrumbs { margin-bottom: 23px; }
.account-hero .eyebrow { margin-bottom: 10px; }
.account-hero h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -.04em; }
.account-hero p:last-child { margin: 0; color: #b3c4ca; }
.account-avatar { display: grid; width: 96px; height: 96px; flex: 0 0 auto; place-items: center; border: 3px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--ink); background: var(--green); font-size: 2.4rem; font-weight: 900; }
.account-section { background: var(--off-white); }
.account-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 26px; }
.account-main, .account-sidebar { display: grid; gap: 22px; }
.membership-card, .account-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.membership-card { overflow: hidden; padding: 31px; }
.membership-card.has-plan { border-top: 5px solid var(--green); }
.membership-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.membership-head h2 { margin: 8px 0 0; font-size: 1.65rem; }
.membership-status { padding: 7px 12px; border-radius: 999px; color: var(--green-dark); background: var(--green-pale); font-size: .76rem; font-weight: 800; }
.membership-details { display: grid; margin-top: 30px; padding: 24px; border-radius: 14px; background: var(--green-mist); grid-template-columns: repeat(3, 1fr); }
.membership-details > div { display: flex; flex-direction: column; padding: 0 20px; border-right: 1px solid #dbe8da; }
.membership-details > div:first-child { padding-left: 0; }
.membership-details > div:last-child { padding-right: 0; border-right: 0; }
.membership-details small { margin-bottom: 5px; color: #788b82; }
.membership-progress { margin-top: 24px; }
.membership-progress > div { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-soft); font-size: .75rem; }
.progress-track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #e1e9e1; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.membership-empty-copy { max-width: 660px; margin: 18px 0 24px; color: var(--ink-soft); }
.account-panel { overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin-bottom: 4px; font-size: 1.15rem; }
.panel-heading p { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.panel-heading .text-link { font-size: .78rem; }
.account-download-item { display: grid; align-items: center; gap: 13px; padding: 16px 24px; border-bottom: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr) auto; }
.account-download-item:last-child { border-bottom: 0; }
.account-download-item > div { display: flex; min-width: 0; flex-direction: column; }
.account-download-item a, .account-download-item strong { overflow: hidden; font-size: .84rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.account-download-item a:hover { color: var(--green-dark); }
.account-download-item small { margin-top: 3px; color: #7a8c84; font-size: .7rem; }
.download-result { padding: 4px 8px; border-radius: 999px; color: #986a00; background: #fff4d5; font-size: .67rem; font-weight: 800; }
.download-result.is-success { color: var(--success); background: var(--green-pale); }
.download-result.is-warning { color: #986a00; background: #fff4d5; }
.download-result.is-danger { color: #a12b2b; background: #fde8e8; }
.account-download-item .account-order-resume { width: fit-content; margin-top: 7px; font-size: .73rem; }
.panel-empty { display: flex; min-height: 190px; align-items: center; justify-content: center; gap: 15px; padding: 30px; text-align: left; }
.panel-empty > span { display: grid; width: 55px; height: 55px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-pale); font-size: 1.4rem; }
.panel-empty p { max-width: 310px; margin: 0; color: var(--ink-soft); font-size: .8rem; }
.panel-empty strong { display: block; margin-bottom: 4px; color: var(--ink); }
.profile-list { margin: 0; padding: 8px 25px; }
.profile-list > div { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); grid-template-columns: 105px minmax(0, 1fr); gap: 10px; }
.profile-list > div:last-child { border-bottom: 0; }
.profile-list dt { color: #7b8c85; font-size: .75rem; }
.profile-list dd { overflow-wrap: anywhere; margin: 0; font-size: .8rem; font-weight: 650; }
.text-success { color: var(--success); }
.account-help { padding: 25px; border-radius: var(--radius); color: #fff; background: var(--ink); }
.account-help > span { display: grid; width: 39px; height: 39px; margin-bottom: 17px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--green); font-weight: 900; }
.account-help h2 { margin-bottom: 7px; font-size: 1.08rem; }
.account-help p { margin-bottom: 12px; color: #b3c4ca; font-size: .78rem; }
.account-help a { color: var(--green); font-size: .82rem; font-weight: 750; }

/* Category and law archive */
.category-hero-logo {
    min-width: 170px;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.category-hero-logo img { width: 132px; height: 132px; object-fit: contain; }
.law-archive-browser, .law-month-browser { background: var(--off-white); }
.archive-year-selector {
    display: grid;
    align-items: start;
    gap: 17px;
    margin-bottom: 46px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    grid-template-columns: auto minmax(0, 1fr);
}
.archive-year-selector > span { padding-top: 7px; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.archive-year-chips, .archive-month-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.archive-year-chips .filter-chip, .archive-month-chips .filter-chip { margin: 0; }
.filter-chip.is-active { border-color: var(--green); color: var(--ink); background: var(--green-pale); }
.filter-chip small { margin-left: 4px; color: var(--green-dark); }
.archive-heading { margin-bottom: 28px; }
.archive-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.archive-month-card {
    display: grid;
    min-height: 130px;
    align-items: center;
    gap: 15px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.archive-month-card:hover { border-color: #b8dca9; box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.archive-month-number { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; color: var(--green-dark); background: var(--green-pale); font-weight: 900; }
.archive-month-card > span:nth-child(2), .archive-month-count { display: flex; flex-direction: column; }
.archive-month-card > span:nth-child(2) small, .archive-month-count small { color: var(--ink-soft); font-size: .72rem; }
.archive-month-count { align-items: flex-end; font-size: 1.25rem; font-weight: 850; }
.archive-month-count small { font-weight: 650; }
.archive-year-selector.compact { margin-bottom: 18px; box-shadow: none; }
.archive-month-chips { margin-bottom: 38px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }

/* Error */
.error-page { display: grid; min-height: 67vh; place-items: center; padding-block: 80px; background: linear-gradient(145deg, #f7fbf5, #ebf6e7); }
.error-inner { text-align: center; }
.error-code { height: 160px; overflow: hidden; color: rgba(113,201,67,.17); font-size: 12rem; font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.error-inner h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.error-inner > p:not(.eyebrow) { max-width: 580px; margin: 0 auto 26px; color: var(--ink-soft); }

@media (max-width: 1050px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
    .hero h1 { font-size: clamp(2.8rem, 5.7vw, 4.4rem); }
    .library-preview { padding: 23px; }
    .hero-visual, .hero-visual > img { min-height: 480px; height: 480px; }
    .hero-search-card { left: -28px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-message { display: none; }
    .plans-home-grid { gap: 50px; }
    .auth-shell { grid-template-columns: .8fr 1.2fr; }
    .auth-visual { padding: 50px; }
    .auth-form-side { padding: 40px; }
    .auth-card { padding: 35px; }
}

@media (max-width: 900px) {
    .container { width: min(100% - 36px, 760px); }
    .site-header, .nav-shell { min-height: 78px; }
    .flash-stack, .auth-page .flash-stack { top: 90px; right: 14px; width: calc(100vw - 28px); }
    .brand-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 1.6rem; }
    .brand-copy strong { font-size: 1.25rem; }
    .menu-toggle { display: block; }
    .site-menu {
        position: fixed;
        z-index: 110;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 78px);
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        padding: 14px 18px 28px;
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 25px 45px rgba(16,45,61,.13);
    }
    .site-menu.is-open { display: flex; }
    .site-menu > a:not(.button), .nav-dropdown > summary, .nav-logout button { display: block; width: 100%; padding: 14px 5px; text-align: left; }
    .site-menu > a:not(.button)::after, .nav-dropdown > summary::after { display: none; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown > summary { display: flex; justify-content: space-between; }
    .nav-dropdown-panel {
        position: static;
        min-width: 0;
        margin: 0 0 8px;
        padding: 4px 0 6px 14px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .nav-dropdown-panel a { padding: 11px 13px; white-space: normal; }
    .nav-logout { order: 10; }
    .nav-cta { margin-top: 9px; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 70px 85px; }
    .hero { min-height: 0; }
    .hero-copy { max-width: 760px; }
    .library-preview { width: min(100%, 650px); margin-inline: auto; transform: rotate(.3deg); }
    .hero-visual { width: min(100%, 720px); margin-inline: auto; }
    .hero-search-card { right: 24px; bottom: -36px; left: 24px; }
    .stats-grid { min-height: 100px; }
    .stat-item { flex-direction: column; gap: 0; padding-inline: 20px; }
    .category-grid, .document-columns { grid-template-columns: repeat(2, 1fr); }
    .plans-home-grid { grid-template-columns: 1fr; }
    .plans-copy { max-width: 700px; }
    .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
    .knowledge-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .final-cta-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 35px; }
    .search-panel { grid-template-columns: 1fr 1fr; }
    .search-panel > .button { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1fr; }
    .download-card { max-width: none; }
    .pricing-grid-3 { grid-template-columns: 1fr 1fr; }
    .pricing-grid-3.has-odd-card .pricing-card:last-child { grid-column: 1 / -1; width: min(100%, 470px); justify-self: center; }
    .pricing-card.is-recommended { transform: none; }
    .pricing-assurance { grid-template-columns: 1fr; }
    .pricing-assurance > div { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .pricing-assurance > div:last-child { border-bottom: 0; }
    .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .auth-page .site-header, .auth-page .site-footer { display: block; }
    .auth-shell { min-height: auto; grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-side { min-height: calc(100vh - 78px); padding: 55px 24px; }
    .account-grid { grid-template-columns: 1fr; }
    .account-sidebar { grid-template-columns: 1fr 1fr; }
    .account-sidebar > form { grid-column: 1 / -1; }
    .archive-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 560px); }
    .section { padding-block: 68px; }
    .brand-copy small { display: none; }
    .hero-grid { padding-block: 55px 70px; }
    .hero h1 { font-size: clamp(2.4rem, 11vw, 3.7rem); }
    .hero-lead { font-size: .98rem; }
    .button-row .button { width: 100%; }
    .library-preview { padding: 19px; border-radius: 20px; }
    .hero-visual { min-height: 400px; margin-bottom: 46px; border-radius: 25px 55px 25px 25px; }
    .hero-visual > img { height: 400px; min-height: 400px; }
    .hero-search-card { right: 12px; bottom: -65px; left: 12px; padding: 16px; }
    .hero-search-card .preview-head { align-items: flex-start; }
    .hero-search-card .status-pill { display: none; }
    .hero-search-card .preview-search { padding: 8px 10px; }
    .hero-search-card .preview-search button { padding-inline: 12px; }
    .preview-item { gap: 10px; }
    .file-badge { width: 47px; height: 47px; }
    .preview-item-copy strong { font-size: .78rem; }
    .preview-item > a, .preview-label { display: none; }
    .preview-item { grid-template-columns: auto minmax(0, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-item { padding: 13px 8px; text-align: center; }
    .stat-item:first-child { padding-left: 8px; }
    .stat-item strong { font-size: 1.35rem; }
    .stat-item span { font-size: .67rem; }
    .split-heading { align-items: flex-start; flex-direction: column; }
    .section-heading h2 { font-size: 2rem; }
    .category-grid, .document-columns, .knowledge-grid { grid-template-columns: 1fr; }
    .knowledge-card:last-child:nth-child(odd) { grid-column: auto; }
    .category-card { min-height: 98px; padding: 17px; }
    .knowledge-empty { grid-template-columns: auto 1fr; }
    .knowledge-empty .button { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
    .page-hero { padding-block: 55px 105px; }
    .page-hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .page-hero h1 { font-size: 2.75rem; }
    .page-hero-fact { display: none; }
    .search-panel { margin-top: -110px; padding: 18px; grid-template-columns: 1fr; }
    .search-panel > .button { grid-column: auto; }
    .document-result { align-items: start; padding: 18px; grid-template-columns: auto minmax(0, 1fr); }
    .result-file-icon { width: 52px; height: 62px; }
    .result-actions { flex-direction: row; grid-column: 1 / -1; }
    .result-actions .button { flex: 1; }
    .results-heading > span { display: none; }
    .pagination-pages { order: 3; width: 100%; }
    .pagination-prev, .pagination-next { flex: 1; max-width: 145px; }
    .pagination-link { min-width: 38px; height: 38px; padding-inline: 9px; }
    .document-detail-heading { grid-template-columns: 1fr; }
    .detail-file-mark { display: none; }
    .detail-content { padding: 24px; }
    .detail-facts > div { grid-template-columns: 1fr; gap: 5px; }
    .download-file { grid-template-columns: auto minmax(0, 1fr); }
    .download-file .button { grid-column: 1 / -1; }
    .detail-bottom-cta .container { align-items: flex-start; flex-direction: column; }
    .pricing-grid, .pricing-grid-2, .pricing-grid-3 { grid-template-columns: 1fr; }
    .pricing-grid-3.has-odd-card .pricing-card:last-child { width: 100%; grid-column: auto; }
    .pricing-card { min-height: 0; padding: 25px; }
    .pricing-card-head p { min-height: 0; }
    .plans-hero { padding-bottom: 120px; }
    .auth-form-side { padding: 36px 14px; }
    .auth-card { padding: 27px 20px; border-radius: 18px; }
    .form-field-grid { grid-template-columns: 1fr; }
    .account-avatar { width: 70px; height: 70px; font-size: 1.8rem; }
    .verification-banner { align-items: flex-start; flex-direction: column; }
    .membership-card { padding: 22px; }
    .membership-head { flex-direction: column; gap: 12px; }
    .membership-details { grid-template-columns: 1fr; }
    .membership-details > div { padding: 11px 0; border-right: 0; border-bottom: 1px solid #dbe8da; }
    .membership-details > div:last-child { border-bottom: 0; }
    .account-sidebar { grid-template-columns: 1fr; }
    .account-sidebar > form { grid-column: auto; }
    .account-download-item { padding: 15px 18px; }
    .download-result { display: none; }
    .profile-list > div { grid-template-columns: 90px 1fr; }
    .error-code { height: 105px; font-size: 8rem; }
    .archive-year-selector { grid-template-columns: 1fr; }
    .archive-month-grid { grid-template-columns: 1fr; }
    .archive-month-card { min-height: 110px; padding: 18px; }
    .archive-month-count { display: none; }
    .category-hero-logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
