:root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --surface-soft: #eef4f8;
    --ink: #18222f;
    --muted: #5f6c7a;
    --line: #d9e2ea;
    --brand: #116149;
    --brand-dark: #0a4233;
    --accent: #c7492d;
    --focus: #ffbf47;
    --shadow: 0 12px 30px rgba(24, 34, 47, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

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

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--focus);
    color: #111;
    z-index: 99;
}

.notice-strip {
    background: #0f2530;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-text {
    color: var(--ink);
    display: grid;
    gap: 2px;
    text-decoration: none;
}

.brand-text span {
    font-size: 22px;
    font-weight: 800;
}

.brand-text small {
    color: var(--muted);
    font-size: 13px;
}

.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: var(--ink);
    display: block;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
}

.primary-nav a:hover {
    background: var(--surface-soft);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 9px;
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
}

.mobile-nav-head,
.nav-backdrop {
    display: none;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 14px;
    padding: 18px 0 0;
}

.breadcrumbs span,
.breadcrumbs a {
    margin-right: 8px;
}

.hero {
    background: linear-gradient(135deg, #e9f3ef 0%, #f7f9fb 48%, #fff5ec 100%);
    border-bottom: 1px solid var(--line);
    padding: 44px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 32px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(34px, 7vw, 58px);
    line-height: 1.02;
    margin: 0 0 16px;
    max-width: 760px;
}

.hero p {
    color: var(--muted);
    font-size: 19px;
    max-width: 720px;
}

.portal-search,
.search-form {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.portal-search input,
.search-form input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 16px;
    padding: 13px 14px;
}

.portal-search button,
.search-form button,
.official-cta a,
.hero-panel .quick-actions a {
    border: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    padding: 12px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.portal-search button:hover,
.search-form button:hover,
.official-cta a:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.hero-panel h2 {
    font-size: 22px;
    margin: 0 0 14px;
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.hero-panel .quick-actions a {
    background: #f2f7f5;
    color: var(--brand-dark);
    justify-content: flex-start;
}

.hero-panel .quick-actions a:hover {
    background: #e1eee9;
}

.official-note {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    margin: 16px 0 0;
    padding-top: 14px;
}

.section {
    padding: 48px 0;
}

.section-muted {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

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

.section-heading h2,
.faq-preview h2,
.split-layout h2 {
    font-size: 30px;
    line-height: 1.18;
    margin: 0;
}

.guide-intro,
.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.guide-intro .article-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.trust-panel {
    background: #f2f7f5;
    border: 1px solid #c8ded5;
    border-radius: 8px;
    padding: 22px;
}

.trust-panel h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.trust-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

.service-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.service-table th,
.service-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

.service-table th {
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 14px;
    text-transform: uppercase;
}

.service-table tr:last-child td {
    border-bottom: 0;
}

.step-list {
    counter-reset: portal-step;
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-list li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    counter-increment: portal-step;
    display: grid;
    gap: 4px;
    min-height: 84px;
    padding: 16px 16px 16px 58px;
    position: relative;
}

.step-list li::before {
    align-items: center;
    background: var(--brand);
    border-radius: 50%;
    color: #fff;
    content: counter(portal-step);
    display: flex;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    left: 16px;
    position: absolute;
    top: 18px;
    width: 30px;
}

.step-list span {
    color: var(--muted);
}

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

.topic-card,
.guide-card,
.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.topic-card {
    padding: 20px;
}

.topic-card h3,
.guide-card h2 {
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.topic-card p,
.guide-card p {
    color: var(--muted);
}

.topic-card a,
.read-more {
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 36px;
    align-items: start;
}

.checklist {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.checklist label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 700;
}

.post-list {
    display: grid;
    gap: 16px;
}

.guide-card-body {
    padding: 22px;
}

.guide-card h2 a {
    color: var(--ink);
}

.card-meta {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 8px;
}

.faq-preview {
    max-width: 900px;
}

details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 12px;
    padding: 16px 18px;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

.archive-header {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
}

.archive-header h1,
.article-header h1 {
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.archive-header p,
.article-excerpt {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.content-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.single-wrap {
    padding: 32px 0 52px;
}

.article-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}

.article-header {
    margin-bottom: 20px;
}

.guide-disclaimer,
.official-cta {
    background: #fff7ed;
    border: 1px solid #f3d3b8;
    border-radius: 8px;
    margin: 22px 0;
    padding: 16px;
}

.featured-image {
    margin: 24px 0;
}

.featured-image img {
    border-radius: 8px;
    display: block;
}

.article-content {
    font-size: 18px;
}

.article-content h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-top: 34px;
}

.article-content h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-top: 26px;
}

.article-content table {
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    width: 100%;
}

.article-content th,
.article-content td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}

.article-content th {
    background: var(--surface-soft);
}

.official-cta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.official-cta h2 {
    font-size: 22px;
    margin: 0 0 4px;
}

.official-cta p {
    margin: 0;
}

.sidebar {
    position: sticky;
    top: 104px;
}

.sidebar-widget {
    margin-bottom: 16px;
    padding: 18px;
}

.sidebar-title {
    font-size: 20px;
    margin: 0 0 12px;
}

.topic-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topic-links li + li {
    border-top: 1px solid var(--line);
}

.topic-links a {
    display: block;
    font-weight: 800;
    padding: 10px 0;
}

.warning-widget {
    background: #fff7ed;
    border-color: #f3d3b8;
}

.page-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}

.site-footer {
    background: #10232d;
    color: #dce8ee;
    padding: 42px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    color: #fff;
    font-size: 19px;
    margin: 0 0 10px;
}

.site-footer a {
    color: #fff;
    font-weight: 700;
}

.site-footer .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .menu li {
    margin-bottom: 8px;
}

.footer-link {
    display: inline-block;
    margin-top: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #b8cbd4;
    font-size: 14px;
    margin-top: 28px;
    padding-top: 18px;
}

.nav-links,
.pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.nav-links a,
.page-numbers {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 11px;
}

@media (max-width: 900px) {
    body.nav-open {
        overflow: hidden;
    }

    .nav-toggle {
        display: block;
    }

    .mobile-nav-head {
        align-items: center;
        border-bottom: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        margin: -4px -4px 10px;
        padding: 2px 2px 14px;
    }

    .mobile-nav-head strong {
        font-size: 20px;
    }

    .nav-close {
        align-items: center;
        background: var(--surface-soft);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--ink);
        cursor: pointer;
        display: inline-flex;
        font-size: 28px;
        height: 40px;
        justify-content: center;
        line-height: 1;
        width: 40px;
    }

    .nav-backdrop {
        background: rgba(16, 35, 45, 0.42);
        bottom: 0;
        display: block;
        left: 0;
        opacity: 1;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 39;
    }

    .nav-backdrop[hidden] {
        display: none;
    }

    .primary-nav {
        background: var(--surface);
        border-left: 1px solid var(--line);
        box-shadow: -18px 0 40px rgba(24, 34, 47, 0.16);
        bottom: 0;
        display: block;
        max-width: 360px;
        padding: 18px;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(105%);
        transition: transform 180ms ease;
        width: min(88vw, 360px);
        z-index: 40;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }

    .primary-nav .menu {
        display: grid;
        gap: 6px;
    }

    .primary-nav a {
        background: var(--surface-soft);
        padding: 13px 14px;
    }

    .hero-grid,
    .guide-intro,
    .process-grid,
    .split-layout,
    .content-sidebar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1140px);
    }

    .hero {
        padding: 32px 0 38px;
    }

    .portal-search,
    .search-form,
    .official-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .article-main,
    .page-content {
        padding: 20px;
    }
}
