:root {
    color-scheme: light;
    --ink: #132935;
    --muted: #516570;
    --navy: #0b2636;
    --teal: #00675e;
    --aqua: #a3e7d2;
    --line: #dbe6e8;
    --tint: #edf5f4;
    --white: #fff;
    --radius: 14px;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: #f8faf9;
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
a, button, input, textarea, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #138479; outline-offset: 3px; }
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.13; letter-spacing: -.036em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2.05rem); }
h1 + p, h2 + p { margin-top: .65rem; }
small { font-size: .875rem; }
p, td, th, dd { overflow-wrap: anywhere; }
.wrap { width: min(1170px, calc(100% - 3rem)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: 3.8rem; }
.section-heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; }
.section-heading { justify-content: space-between; margin-bottom: 1.35rem; }
.eyebrow { color: var(--teal); font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.muted { color: var(--muted); }
.tint { background: var(--tint); }
.wide { grid-column: 1 / -1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; left: 1rem; top: 1rem; z-index: 5; background: white; padding: .75rem; }

.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 1.32rem; letter-spacing: .075em; }
.brand small { color: var(--muted); }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); display: flex; gap: 4px; align-items: flex-end; justify-content: center; padding: 10px; }
.brand-mark i { width: 4px; height: 10px; background: var(--aqua); border-radius: 2px; transform: skewX(-16deg); }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 22px; }
.site-links { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.65rem); }
.site-links a { font-weight: 650; font-size: .94rem; color: var(--muted); white-space: nowrap; }
.site-links a:hover, .site-links a.active { color: var(--teal); }
.site-links .nav-ppid { background: var(--teal); color: var(--white); padding: .65rem .9rem; border-radius: 8px; }
.site-links .nav-ppid:hover { background: var(--navy); color: var(--white); }
.menu-toggle { display: none; background: white; color: var(--teal); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .75rem; cursor: pointer; }

.hero { background: radial-gradient(ellipse at 90% 15%, #184b50 0%, var(--navy) 61%); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; min-height: 515px; padding-block: 3.65rem 4.5rem; }
.hero .eyebrow, .page-banner .eyebrow { color: var(--aqua); }
.hero h1 { font-size: clamp(2.65rem, 5.75vw, 5rem); line-height: .99; letter-spacing: -.06em; overflow-wrap: anywhere; }
.lead { color: #d4e7e6; font-size: clamp(1.05rem, 2vw, 1.19rem); max-width: 40ch; margin-block: 1.3rem 1.8rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(265px, 31vw, 412px); object-fit: cover; border-radius: 18px; box-shadow: 0 16px 46px #06192066; border: 1px solid #ffffff35; }
.hero-media figcaption { position: absolute; bottom: 13px; left: 13px; border-radius: 6px; padding: .28rem .55rem; font-size: .8125rem; background: #0b2636dd; color: #fff; }
.shortcuts { position: relative; margin-top: -1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.shortcut { display: flex; align-items: center; gap: .85rem; padding: 1.15rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px #0b26360b; }
.shortcut:hover, .stat-card:is(a):hover { border-color: var(--teal); }
.shortcut-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: var(--tint); color: var(--teal); font-weight: 700; font-size: 1.3rem; }
.shortcut strong, .shortcut small { display: block; }
.shortcut small { color: var(--muted); }
.about, .split, .ppid-grid, .manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.about { grid-template-columns: .8fr 1.2fr; scroll-margin-top: 1.5rem; }
.split { gap: clamp(2rem, 7vw, 6rem); }
.entry { display: grid; gap: .2rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.entry:hover strong, .panel h2 a:hover { color: var(--teal); text-decoration: underline; }
.entry time, .entry span { color: var(--muted); font-size: .9rem; }
.about-entry:first-child { padding-top: 0; }

.page-banner { background: var(--navy); color: var(--white); padding-block: 3.25rem; }
.page-banner p:not(.eyebrow), .page-banner time { color: #d4e7e6; max-width: 65ch; margin-top: .9rem; }
.page-banner time { display: block; }
.prose { white-space: pre-wrap; line-height: 1.75; overflow-wrap: anywhere; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-grid h2 { margin-top: .55rem; font-size: 1.35rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.stat-card { display: grid; align-content: start; gap: .35rem; border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 1.15rem; overflow-wrap: anywhere; }
.stat-card strong { font-size: 1.9rem; line-height: 1.2; color: var(--teal); }
.stat-card strong.card-label { font-size: 1.18rem; }
.stat-card small, .stat-card span { color: var(--muted); }
.document-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem; border: 1px solid var(--line); background: white; border-radius: var(--radius); margin-bottom: .75rem; }
.document-row h2 { font-size: 1.3rem; margin-bottom: .4rem; overflow-wrap: anywhere; }
.document-row .btn { flex: none; }
.footer { background: var(--navy); color: white; padding-block: 2rem; margin-top: auto; }
.footer-inner, .footer nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.footer p, .footer a { color: #d4e7e6; }
.footer a:hover { color: white; text-decoration: underline; }

.btn, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; cursor: pointer; }
.btn { padding: .62rem .94rem; border: 1px solid transparent; border-radius: 8px; color: white; background: var(--teal); line-height: 1.3; min-height: 42px; }
.btn:hover { background: #004f48; }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-light { color: #102e32; background: var(--aqua); }
.btn-light:hover { background: #c6f2e5; }
.btn-outline { background: transparent; color: white; border-color: #ffffff70; }
.btn-outline:hover { background: #ffffff18; }
.btn-secondary { background: white; color: var(--teal); border-color: var(--line); }
.btn-secondary:hover { background: var(--tint); border-color: var(--teal); }
.text-link { background: none; border: 0; padding: 0; color: var(--teal); text-align: left; }
.text-link:hover { text-decoration: underline; }
.danger { color: #a32236; }
.panel, .empty { padding: clamp(1rem, 2.5vw, 1.55rem); background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.empty { color: var(--muted); }
.stacked { margin-top: 1rem; }
.login { max-width: 530px; }
.form-stack { display: grid; gap: 1rem; margin-top: 1rem; }
.form-stack .btn { justify-self: start; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-bottom: 1rem; }
.filters label { min-width: 170px; }
label { display: grid; gap: .3rem; font-size: .95rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 42px; padding: .55rem .7rem; background: white; color: var(--ink); border: 1px solid #aebfc6; border-radius: 7px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
legend { font-weight: 700; }
.check { display: flex; align-items: center; gap: .5rem; min-height: 35px; }
.check input { min-height: auto; width: 1.12rem; height: 1.12rem; accent-color: var(--teal); }
.form-result, .error { white-space: pre-wrap; overflow-wrap: anywhere; padding: .75rem; border-radius: 8px; font-size: .95rem; }
.form-result { background: #e6f6ee; color: #164e3d; }
.error, .form-result[data-error] { background: #fcedef; color: #8b2031; }
ul.error { padding-left: 2rem; }
.form-stack .error { margin-top: -.6rem; }
[data-status]:empty, [hidden] { display: none !important; }
[data-status] { margin-bottom: .65rem; color: var(--muted); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem .85rem; vertical-align: top; }
thead { color: var(--muted); background: var(--tint); }
tr + tr, tbody { border-top: 1px solid var(--line); }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: .2rem .55rem; background: var(--tint); color: #344f59; font-size: .875rem; white-space: nowrap; }
.pill.published { background: #dcf3e9; color: #135744; }
dl dt { font-weight: 700; }
dl dd { margin: 0 0 1rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
summary { cursor: pointer; }

.cms-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); flex: 1; }
.sidebar { background: var(--navy); color: white; display: flex; flex-direction: column; gap: 1.55rem; padding: 1.15rem; }
.sidebar .brand small, .sidebar-public { color: #c6dce1; }
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a { color: #dae9ec; font-weight: 650; border-radius: 8px; padding: .65rem .7rem; }
.sidebar nav a:hover, .sidebar nav a.active { background: #204455; color: white; }
.cms-nav-group { color: #dae9ec; padding-inline: .35rem; }
.cms-nav-group summary { padding: .6rem .4rem; font-weight: 650; }
.cms-nav-group a { display: block; margin-left: .3rem; }
.sidebar-public { font-size: .9rem; padding-inline: .7rem; }
.sidebar-public:hover { text-decoration: underline; }
.cms-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: .85rem clamp(1rem, 3vw, 2rem); background: white; border-bottom: 1px solid var(--line); }
.cms-topbar small { color: var(--muted); display: block; }
.cms-main { padding: clamp(1rem, 3vw, 2rem); }
.cms-main h1 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); margin-block: .4rem 1rem; overflow-wrap: anywhere; }
.cms-main > .muted, .cms-main > .form-result { margin-bottom: 1rem; }
.cms-main h2 { font-size: 1.3rem; }
.manage-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.editor-panel { max-width: 650px; }
.search-label { margin-block: .8rem; }
.cms-media-preview { max-height: 170px; max-width: 100%; object-fit: contain; object-position: left; }

@media (max-width: 900px) {
    .nav { flex-wrap: wrap; padding-block: .8rem; }
    .site-links { gap: .95rem; flex-wrap: wrap; }
    .hero-grid { min-height: 0; }
    .shortcuts { gap: .65rem; }
    .shortcut { padding: .75rem; }
    .cms-shell { grid-template-columns: 175px minmax(0, 1fr); }
    .manage-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .section { padding-block: 2.4rem; }
    .nav { min-height: 66px; }
    .site-links { flex-basis: 100%; align-items: stretch; }
    .site-links a:not(.nav-ppid) { padding: .55rem .25rem; }
    .nav.menu-ready .menu-toggle { display: block; }
    .nav.menu-ready:not(.menu-open) .site-links { display: none; }
    .hero-grid, .shortcuts, .about, .split, .ppid-grid, .article-grid { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 2.2rem; gap: 1.5rem; }
    .hero-media img { height: 252px; }
    .shortcuts { margin-top: 1rem; }
    .document-row { align-items: flex-start; flex-direction: column; }
    .filters label { flex: 1 1 100%; }
    .cms-shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { gap: .7rem; padding: .8rem; }
    .sidebar nav { display: flex; gap: .15rem; flex-wrap: wrap; }
    .sidebar nav a { padding: .35rem .55rem; }
    .sidebar-public { padding-inline: 0; }
}
