/* 50-Forward - one stylesheet, no inline CSS anywhere (the CSP forbids it).
   Design direction (handoff section 6): confident and professional, not charity-like; large readable type;
   simple navigation; works on a phone. WCAG 2.2 AA: every text/background pair below is 4.5:1 or better. */
:root {
  --brand: #2B2F36;         /* charcoal, the brand ground (scheme J, 8 Nov 2026): white text on it = 13.4:1 */
  --brand-deep: #1B1F25;
  --ink: #1B2733;
  --muted: #4F5D6B;         /* on white 7.0:1 */
  --line: #D9DEE5;
  --bg: #FFFFFF;
  --soft: #F3F5F7;
  --accent: #F26A21;        /* signal orange: the arrow, decoration and borders only (3.1:1 on white) */
  --accent-ink: #B4480A;    /* orange as TEXT on white: 5.4:1 */
  --accent-soft: #FDEEE5;
  --good: #1F6B3F;
  --good-soft: #E8F6EE;
  --bad: #A8321F;
  --bad-soft: #FBE9E7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(43, 47, 54, .06), 0 6px 20px rgba(43, 47, 54, .07);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--font); overflow-x: hidden; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.2; margin: 1.1em 0 .45em; color: var(--brand-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: .3em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .3em 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.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; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ==== header ========================================================================================= */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--brand-deep); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .55rem .8rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav .button { margin-left: .4rem; }
.menu { display: none; margin-left: auto; position: relative; }
.menu > summary { list-style: none; cursor: pointer; font-weight: 700; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 14rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; padding: .4rem 0; }
.menu nav a { padding: .7rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu nav a[aria-current="page"] { color: var(--brand); background: var(--soft); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ==== layout ========================================================================================= */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }
main { min-height: 60vh; }
.section { padding: 3rem 0; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--brand); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #fff; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44em; }
.section-navy .lead { color: rgba(255, 255, 255, .85); }
.narrow { max-width: 46em; }
.two { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.three { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .two, .three { grid-template-columns: 1fr; } }

/* ==== hero ========================================================================================== */
.hero { padding: 4rem 0 3.4rem; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0 0 .5rem; max-width: 18ch; }
.hero .lead { font-size: 1.3rem; }
.kicker { display: inline-block; font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .8rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ==== buttons ======================================================================================= */
.button, button.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; font-size: 1.05rem; padding: .85rem 1.4rem; border-radius: 10px;
  border: 2px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; line-height: 1.2; min-height: 48px; }
.button:hover, button.button:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.button-ghost, button.button-ghost { background: transparent; color: var(--brand); }
.button-ghost:hover, button.button-ghost:hover { background: var(--brand); color: #fff; }
.button-light { background: #fff; color: var(--brand); border-color: #fff; }
.button-light:hover { background: var(--soft); border-color: var(--soft); color: var(--brand-deep); }
.button-small { font-size: .95rem; padding: .5rem .9rem; min-height: 40px; }
.button-danger, button.button-danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.button-danger:hover, button.button-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.link-button { font: inherit; background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 0; }

/* ==== stats ========================================================================================= */
.stats { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2.6rem; line-height: 1; color: var(--brand); letter-spacing: -0.02em; }
.stat .what { display: block; margin: .6rem 0 .5rem; font-weight: 600; }
.stat .src { display: block; font-size: .9rem; color: var(--muted); }
.stat .src a { color: var(--muted); }
.stat-good { border-top-color: var(--good); }
.stat-good b { color: var(--good); }

/* ==== cards ======================================================================================== */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); padding: 0; margin: 1.5rem 0 0; list-style: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .meta { font-size: .95rem; color: var(--muted); margin: -0.3rem 0 .6rem; }
.pill { display: inline-block; font-size: .85rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-muted { background: var(--soft); color: var(--muted); }

/* ==== prose (content pages) ======================================================================== */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose blockquote { margin: 1em 0; padding: .6em 1.2em; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.back { display: inline-block; margin-bottom: 1rem; font-weight: 600; }

/* ==== forms ======================================================================================== */
form { margin: 0; }
.form { max-width: 40em; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
legend { font-weight: 800; font-size: 1.15rem; color: var(--brand-deep); padding: 0; margin-bottom: .6rem; }
.field { margin: 0 0 1.1rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .35rem; }
.hint { display: block; font-size: .95rem; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: .75rem .9rem; border: 2px solid #AEB7C2; border-radius: 8px; background: #fff; color: var(--ink); min-height: 50px; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(15, 61, 94, .25); outline-offset: 0; }
input[type=file] { font: inherit; }
.checks { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; padding: .4rem .2rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; flex: none; accent-color: var(--brand); }
.consent { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; background: var(--soft); }
.consent .check { padding: .5rem 0; }
.consent .check + .check { border-top: 1px solid var(--line); }
.required::after { content: " *"; color: var(--bad); font-weight: 800; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==== notices ====================================================================================== */
.notice { border-radius: 10px; padding: .9rem 1.1rem; margin: 0 0 1.2rem; border: 1px solid; font-weight: 500; }
.notice-ok { background: var(--good-soft); border-color: #B9E2C8; color: var(--good); }
.notice-bad { background: var(--bad-soft); border-color: #F1C2BB; color: var(--bad); }
.notice-info { background: var(--accent-soft); border-color: #F0D6B5; color: var(--accent-ink); }
.error { color: var(--bad); font-weight: 600; }

/* ==== tables (admin, profile) ====================================================================== */
.table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1rem 0; background: #fff; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--soft); font-weight: 700; }
.table tr:hover td { background: #FAFBFC; }
.table-wrap { overflow-x: auto; }
.kv { display: grid; grid-template-columns: minmax(10em, 14em) 1fr; gap: .5rem 1.2rem; margin: 1rem 0; }
.kv dt { font-weight: 700; color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: .1rem .5rem; } .kv dd { margin-bottom: .7rem; } }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1rem 0; }
.toolbar form { display: inline; }
.count { display: inline-block; background: var(--soft); border-radius: 999px; padding: .1rem .7rem; font-weight: 700; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.admin-nav a { text-decoration: none; font-weight: 700; padding: .5rem .9rem; border-radius: 8px; color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1rem 0; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.tile b { display: block; font-size: 2rem; color: var(--brand); line-height: 1.1; }

/* ==== steps / lists ================================================================================ */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .05rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; font-size: 1.1rem; color: var(--brand-deep); }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { padding-left: 1.8rem; position: relative; margin: .5rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .9rem; height: .5rem; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }

/* ==== footer ======================================================================================= */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, .88); padding: 3rem 0 2rem; margin-top: 3rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; margin-top: 0; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.newsletter { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.newsletter input[type=email] { flex: 1 1 14rem; border-color: transparent; }
.newsletter .check { color: rgba(255, 255, 255, .88); font-size: .95rem; width: 100%; }
.newsletter .check input { accent-color: var(--accent); }
.site-footer .small { font-size: .9rem; color: rgba(255, 255, 255, .7); margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1rem; }

/* ==== misc ========================================================================================= */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mt2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.inline { display: inline; }
.wrap-anywhere { overflow-wrap: anywhere; }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { font-size: 12pt; } }
