:root {
    --ink: #1a1f24;
    --muted: #5d6670;
    --line: #d9e0e6;
    --paper: #ffffff;
    --soft: #f3f7f6;
    --brand: #087f83;
    --brand-dark: #075c61;
    --accent: #b42318;
    --gold: #9a6a00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body :where(h1, h2, h3, h4, h5, h6, p, a, span, strong, em, small, li, dt, dd, th, td, label, input, button, select, textarea, article, section, aside, nav, header, footer, div) {
    font-family: "Segoe UI", Arial, sans-serif !important;
}

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

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

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

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 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;
}

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

.header-grid::before,
.header-grid::after,
.hero-grid::before,
.hero-grid::after,
.content-layout::before,
.content-layout::after,
.footer-grid::before,
.footer-grid::after {
    content: none;
    display: none;
}

.header-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

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

.brand img {
    max-height: 52px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    max-height: none;
    flex: 0 0 auto;
}

.brand-wordmark {
    display: inline-block;
    color: var(--brand-dark);
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-shadow:
        0 0 1px rgba(255, 255, 255, .88),
        0 1px 2px rgba(255, 255, 255, .5),
        0 2px 0 rgba(7, 92, 97, .16),
        0 8px 18px rgba(8, 127, 131, .22),
        0 0 24px rgba(8, 127, 131, .16);
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.brand strong {
    display: block;
    font-size: 1.3rem;
}

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

.header-search,
.hero-search,
.wide-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.header-search {
    flex: 0 1 520px;
    max-width: 520px;
    min-width: 280px;
}

input,
button,
select,
textarea {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: inherit;
    line-height: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
}

button,
.button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button:hover {
    background: var(--brand-dark);
    color: #fff;
}

.site-nav {
    background: var(--brand-dark);
}

.nav-scroll {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-scroll a {
    flex: 0 0 auto;
    padding: 12px 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.nav-scroll a:hover {
    background: #0b7278;
}

.home-hero {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: 32px;
    align-items: stretch;
    padding: 34px 0;
}

.hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h1,
.page-header h1,
.article-header h1 {
    margin: 0;
    color: #142027;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.14;
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand strong,
button,
.button {
    font-weight: 650;
}

.hero-copy p {
    max-width: 680px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.hero-media {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 100%;
}

.hero-media img {
    aspect-ratio: 960 / 455;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .82rem;
}

.section-block {
    padding: 30px 0;
}

.section-block,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
}

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

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

.section-heading h2,
.submodule-panel h2,
.notice-box h2,
.site-footer h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

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

.article-list.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.module-card,
.article-card,
.submodule-panel,
.notice-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.module-card h3,
.article-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

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

.article-card time,
.article-meta {
    color: var(--muted);
    font-size: .92rem;
}

.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.inline-list a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    text-decoration: none;
    background: var(--soft);
}

.submodule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.submodule-card {
    display: block;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 16px 0;
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    transition: color .18s ease;
}

.submodule-card:hover {
    background: transparent;
    border-color: transparent;
    color: var(--ink);
}

.submodule-card:hover strong {
    color: var(--accent);
}

.submodule-card strong {
    display: block;
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.35;
}

.submodule-card span {
    display: block;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

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

.page-header p {
    max-width: 800px;
    margin-bottom: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
    padding: 30px 0;
}

.content-layout > :first-child {
    grid-column: 1 / 2;
    grid-row: 1;
    min-width: 0;
}

.content-layout > .sidebar {
    grid-column: 2 / 3;
    grid-row: 1;
    min-width: 0;
}

.category-layout .submodule-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.category-layout .submodule-grid {
    gap: 0;
    margin-top: 10px;
}

.category-layout .submodule-card,
.category-layout .submodule-card:first-child {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.category-layout .submodule-card::before,
.category-layout .submodule-card::after {
    display: none !important;
    content: none !important;
}

.category-layout .article-list {
    gap: 0;
}

.category-layout .article-card {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 16px 0;
}

.category-layout .article-card:first-child {
    border-top: 0 !important;
}

.category-layout .article-card::before,
.category-layout .article-card::after {
    display: none !important;
    content: none !important;
}

.category-layout .article-card h3 {
    margin: 0 0 6px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.category-layout .article-card h3 a {
    font-weight: 750;
    text-decoration: none;
}

.category-layout .article-card time {
    display: none;
}

.category-layout .article-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.article-layout {
    align-items: start;
}

.article-body {
    min-width: 0;
}

.article-header {
    float: none !important;
    clear: both !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: auto !important;
    min-height: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.article-header > * {
    float: none !important;
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    transform: none !important;
}

.article-header h1 {
    border: 0 !important;
    padding: 0 !important;
}

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

.lead {
    float: none;
    clear: both;
    position: static;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.legacy-content {
    font-size: 1.06rem;
}

.legacy-content h2,
.legacy-content h3 {
    line-height: 1.3;
    margin-top: 1.5em;
}

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

.legacy-content th,
.legacy-content td {
    border: 1px solid var(--line);
    padding: 8px;
    vertical-align: top;
}

.legacy-content img {
    height: auto;
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.wide-search {
    margin-bottom: 22px;
}

.site-footer {
    margin-top: 30px;
    background: #172026;
    color: #fff;
}

.site-footer a {
    color: #d5fffc;
}

.site-footer h2,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer strong,
.site-footer small {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0;
    align-items: start;
}

.footer-info-section {
    grid-column: 1 / -1;
}

.footer-info-content {
    column-count: 3;
    column-gap: 28px;
}

.footer-info-content p {
    break-inside: avoid;
    margin: 0 0 10px;
}

.footer-contact-section {
    grid-column: 1 / 2;
}

.footer-note-section {
    grid-column: 2 / -1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 14px 0 22px;
    color: #fff;
}

nav[role="navigation"] {
    margin-top: 18px;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 2px;
    padding: 4px 8px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .hero-grid,
    .content-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .module-grid,
    .submodule-grid,
    .article-list.three-columns,
    .article-list.two-columns {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 24px 0;
    }

    .hero-copy,
    .hero-media,
    .hero-image {
        width: 100%;
        min-width: 0;
    }

    .hero-image {
        height: auto;
        min-height: 0;
        max-height: 280px;
    }

    .content-layout > :first-child,
    .content-layout > .sidebar,
    .footer-info-section,
    .footer-contact-section,
    .footer-note-section {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-info-content {
        column-count: 1;
    }
}

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

    .header-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .brand-wordmark {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }

    .header-search {
        flex: 0 0 auto;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .header-search,
    .hero-search,
    .wide-search {
        grid-template-columns: 1fr;
    }

    .submodule-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-copy h1,
    .page-header h1,
    .article-header h1 {
        font-size: 2rem;
    }
}
