:root {
    --navy: #142b3c;
    --teal: #146e69;
    --teal-dark: #0c514d;
    --teal-light: #eaf4f1;
    --text: #243746;
    --muted: #596b77;
    --border: #dce5e7;
    --background: #f8faf9;
    --white: #ffffff;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

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

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: var(--teal-dark);
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid #267eaa;
    outline-offset: 4px;
}

.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-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--navy);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px 14px 14px 4px;
    background: var(--teal);
    color: white;
    font-size: 25px;
    font-weight: 700;
}

.brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.brand strong span {
    font-weight: 400;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.portal-link:hover {
    background: var(--teal-light);
    border-color: var(--teal);
}

/* Introduction and search */

.hero {
    padding: 64px 0 44px;
    background:
        radial-gradient(ellipse at 88% 15%,
            rgba(172, 209, 189, 0.28),
            transparent 48%),
        #f2f6f2;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.06;
    letter-spacing: -2.5px;
}

h1 span {
    color: var(--teal);
}

.hero-description {
    max-width: 540px;
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 17px;
}

.search-form {
    max-width: 780px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 20px;
    border: 1px solid #c8d5d3;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(20, 43, 60, 0.04);
}

.search-box:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 110, 105, 0.12);
}

.search-icon {
    flex-shrink: 0;
    color: var(--teal);
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--navy);
    font-size: 16px;
}

.search-box input::placeholder {
    color: #63747d;
    opacity: 1;
}

.search-box input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-submit,
.empty-state button {
    padding: 12px 23px;
    border: 0;
    border-radius: 9px;
    background: var(--teal);
    color: white;
    font-weight: 700;
}

.search-submit:hover,
.empty-state button:hover {
    background: var(--teal-dark);
}

.clear-search {
    width: 36px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 26px;
}

.clear-search:hover {
    background: var(--teal-light);
}

.search-help {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* Two-column content */

.faq-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
}

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

.topic-panel {
    padding: 22px 14px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.topic-panel h2 {
    margin: 0 12px 16px;
    color: var(--navy);
    font-size: 15px;
}

.topic-list {
    display: grid;
    gap: 5px;
}

.topic-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 47px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

.topic-button:hover {
    background: #f4f7f6;
    color: var(--navy);
}

.topic-button[aria-pressed="true"] {
    background: var(--teal-light);
    border-color: #d0e6de;
    color: var(--teal-dark);
    font-weight: 700;
}

.topic-count {
    min-width: 25px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f0f3f4;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.topic-button[aria-pressed="true"] .topic-count {
    background: var(--white);
    color: var(--teal-dark);
}

.help-card {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #edf2ef;
}

.help-symbol {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid #b9ccc3;
    border-radius: 50%;
    color: var(--teal-dark);
    font-size: 19px;
    font-weight: 700;
}

.help-card h2 {
    margin: 15px 0 8px;
    color: var(--navy);
    font-size: 17px;
}

.help-card p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 13px;
}

.help-card a {
    font-size: 13px;
    font-weight: 700;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.results-header .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
}

.results-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.result-count {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 13px;
}

/* Expandable questions */

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
}

.faq-item[open] {
    border-color: #b6d5c9;
}

.faq-item>summary {
    position: relative;
    padding: 18px 58px 22px 24px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.faq-item>summary::-webkit-details-marker {
    display: none;
}

.faq-item>summary::after {
    content: "+";
    position: absolute;
    top: 18px;
    right: 22px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open]>summary::after {
    content: "−";
    background: var(--teal);
    color: white;
}

.faq-item>summary:hover {
    background: #f8fbf9;
}

.faq-item>summary:focus-visible {
    outline-offset: -4px;
    border-radius: 12px;
}

.faq-answer {
    padding: 0 8px 8px 24px;
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.faq-answer p {
    margin: 0 0 1px;
}

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

.empty-state {
    padding: 50px 24px;
    border: 1px dashed #c6d5d0;
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
}

.empty-symbol {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 26px;
}

.empty-state h3 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
}

.empty-state p {
    margin: 10px 0 22px;
    color: var(--muted);
}

.notice {
    padding: 16px;
    border-radius: 10px;
    background: var(--teal-light);
}

/* Footer */

.site-footer {
    padding: 25px 0;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-inner a {
    color: var(--muted);
}

/* Tablet and mobile */

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 26px;
    }
}

@media (max-width: 720px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 82px;
        gap: 12px;
    }

    .brand small {
        display: none;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .portal-link {
        padding: 8px 11px;
        gap: 8px;
        font-size: 12px;
    }

    .hero {
        padding: 42px 0 30px;
    }

    h1 {
        letter-spacing: -1.6px;
    }

    .hero-description {
        font-size: 15px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .sidebar {
        position: static;
    }

    .topic-panel {
        padding: 18px 12px 12px;
    }

    .topic-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .help-card {
        padding: 18px;
    }

    .help-symbol {
        display: none;
    }

    .help-card h2 {
        margin-top: 0;
    }

    .faq-item>summary {
        padding: 7px 50px 19px 18px;
        font-size: 15px;
    }

    .faq-item>summary::after {
        top: 10px;
        right: 16px;
    }

    .faq-answer {
        padding: 0 18px 20px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        flex-wrap: wrap;
        padding-block: 15px;
    }

    .search-box {
        gap: 7px;
        padding-left: 12px;
    }

    .search-submit {
        padding: 12px;
        font-size: 13px;
    }

    .search-icon {
        width: 18px;
    }

    .topic-list {
        grid-template-columns: 1fr;
    }
}

/* Subtopics reuse the original accordion design. */
.topic-group {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.topic-group-heading {
    margin: 16px 0 2px;
    color: var(--teal-dark);
    font-size: 17px;
}

.topic-group:first-child .topic-group-heading {
    margin-top: 0;
}

.subtopic-content {
    padding: 0 24px 23px;
    display: grid;
    gap: 5px;
}

.subtopic-placeholder {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.topic-button>span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.topic-count {
    flex-shrink: 0;
}

/* The longer topic menu must remain reachable on shorter screens. */
.sidebar {
    position: static;
}

@media (max-width: 720px) {
    .subtopic-content {
        padding: 0 18px 20px;
    }
}