/* ============================================================
   Crime Watch Canada — application layer (v3).
   White ground · near-black structure · ONE red accent. Tokens only.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--kds-bg); color: var(--kds-fg); font-family: var(--kds-font-sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.wrap { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .wrap, .wrap--narrow { width: calc(100% - 32px); } }
.sec { padding-block: clamp(36px, 6vw, 72px); }
.sec--tight { padding-block: clamp(22px, 4vw, 40px); }
.sec--alt { background: var(--kds-surface-2); }
.sec--ink { background: var(--cw-ink); color: #fff; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--ink p { color: rgba(255,255,255,.76); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--cw-red); color: #fff; padding: 10px 14px; }
.skip-link:focus { left: 12px; }
.muted { color: var(--kds-fg-muted); } .faint { color: var(--kds-fg-faint); }
.small { font-size: .875rem; } .tiny { font-size: .78rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }

h1, h2, h3, h4 { font-family: var(--kds-font-display); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; margin: 0 0 .45em; text-wrap: balance; color: var(--kds-fg); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -.012em; }
h4 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--kds-link); }

/* section heading: a red rule above a black heading — the only recurring ornament */
.sec-head { margin-bottom: clamp(20px, 3vw, 32px); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.eyebrow { display: block; font-family: var(--kds-font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cw-red); margin-bottom: .7rem; }
.eyebrow::before { content: ""; display: block; width: 34px; height: 3px; background: var(--cw-red); margin-bottom: .7rem; }
.sec--ink .eyebrow { color: #ff8a8a; }
.lede { font-size: 1.0625rem; color: var(--kds-fg-muted); max-width: 62ch; }
.morelink { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--cw-red); padding-bottom: 2px; color: var(--kds-fg); }
.morelink:hover { color: var(--cw-red); }

/* ---------- tier 1: utility bar ---------- */
.utility { background: var(--cw-ink); color: rgba(255,255,255,.72); font-size: .78rem; }
.utility__in { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--cw-red); }
.utility__emg a { font-weight: 700; }
.utility__acts { display: none; gap: 20px; }
@media (min-width: 1100px) { .utility__acts { display: flex; } }
@media (max-width: 640px) { .utility__in { justify-content: center; min-height: 32px; } .utility { font-size: .72rem; } }

/* ---------- tier 2: masthead ----------
   Black, like the brand. The official logo is white-on-transparent 3-D artwork: on a light
   masthead it greys out, on black it renders at full strength. Utility bar + masthead + nav
   therefore form one solid black block, the way a newspaper masthead does. */
.masthead { background: var(--cw-ink); border-bottom: 1px solid rgba(255,255,255,.1); }
.masthead__in { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding-block: 16px; }
.masthead__logo { display: block; line-height: 0; }
.masthead__logo img { height: 62px; width: auto; }
.masthead__tag { display: none; font-size: .82rem; color: rgba(255,255,255,.62); border-left: 1px solid rgba(255,255,255,.16); padding-left: 18px; line-height: 1.4; }
.masthead__tag span { display: block; font-size: .7rem; color: rgba(255,255,255,.42); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.masthead .masthead__cta { display: none; }
@media (min-width: 1100px) {
  .masthead__in { padding-block: 20px; }
  .masthead__logo img { height: 78px; }
  .masthead__tag { display: block; }
  .masthead .masthead__cta { display: inline-flex; }
}
@media (max-width: 1099px) {
  .masthead__in { grid-template-columns: 44px 1fr 44px; justify-items: center; gap: 8px; }
  .masthead__logo { grid-column: 2; }
  .masthead__logo img { height: 50px; }
  .navtoggle span { background: #fff; }
}

/* ---------- tier 3: main nav ---------- */
.mainnav { background: var(--cw-ink); border-top: 1px solid rgba(255,255,255,.1); position: sticky; top: 0; z-index: 60; }
.mainnav__in { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; display: none; align-items: center; gap: 2px; }
@media (min-width: 1100px) { .mainnav__in { display: flex; } }
.mainnav a { color: rgba(255,255,255,.86); text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .005em; padding: 14px 15px; border-bottom: 3px solid transparent; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.mainnav a.is-active { color: #fff; border-bottom-color: var(--cw-red); }
.mainnav .mainnav__search { margin-left: auto; padding-inline: 12px; }
.mainnav__search svg { width: 18px; height: 18px; display: block; }
@media (max-width: 1099px) { .mainnav { display: none; } }

.navtoggle { background: none; border: 0; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
@media (min-width: 1100px) { .navtoggle { display: none; } }
.navtoggle span { display: block; width: 22px; height: 2px; background: var(--cw-ink); }
.navtoggle--close { display: grid; position: relative; }
.navtoggle--close span:first-child { transform: rotate(45deg) translate(2px,2px); }
.navtoggle--close span:last-child { transform: rotate(-45deg) translate(2px,-2px); }

.menu-panel { position: fixed; inset: 0; z-index: 90; background: rgba(17,20,23,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.menu-panel.is-open { opacity: 1; pointer-events: auto; }
.menu-panel__sheet { position: absolute; inset: 0 auto 0 0; width: min(330px, 86%); background: #fff; padding: 18px; overflow: auto; transform: translateX(-100%); transition: transform .24s cubic-bezier(.22,1,.36,1); display: flex; flex-direction: column; }
.menu-panel.is-open .menu-panel__sheet { transform: none; }
.menu-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--cw-line); }
.menu-panel__head img { height: 44px; width: auto; }
.menu-panel__nav { display: flex; flex-direction: column; padding-block: 8px; }
.menu-panel__nav a { padding: 13px 4px; text-decoration: none; color: var(--kds-fg); font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--cw-line); }
.menu-panel__nav a:hover { color: var(--cw-red); }
.menu-panel__cta { display: grid; gap: 10px; padding-top: 16px; margin-top: auto; }

/* ---------- buttons ---------- */
.kds-btn { min-height: 46px; border-radius: var(--kds-radius-md); font-weight: 600; letter-spacing: .005em; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.kds-btn--lg { min-height: 54px; font-size: 1.0125rem; padding-inline: 26px; }
.kds-btn svg { width: 17px; height: 17px; flex: none; }
.kds-btn--brand { background: var(--cw-red); border-color: var(--cw-red); color: #fff; }
.kds-btn--brand:hover { background: #b3211f; border-color: #b3211f; }
.kds-btn--ink { background: var(--cw-ink); border: 1px solid var(--cw-ink); color: #fff; }
.kds-btn--ink:hover { background: #000; }
.kds-btn--onink { background: #fff; border: 1px solid #fff; color: var(--cw-ink); }
.kds-btn--onink:hover { background: rgba(255,255,255,.88); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ----------
   Light. The black presence is the masthead above and the footer below; the content area
   stays white so the page reads as a light, current publication rather than a dark one. */
.hero { background: #fff; border-bottom: 1px solid var(--cw-line); }
.hero__in { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; padding-block: clamp(34px, 5vw, 60px); display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.02fr .98fr; gap: 52px; padding-block: clamp(44px, 5vw, 72px); } }
.hero__copy { max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); margin-bottom: .38em; color: var(--kds-fg); }
.hero__lede { color: var(--kds-fg-muted); font-size: clamp(1rem, 1.5vw, 1.1rem); max-width: 52ch; margin-bottom: 26px; }
.hero__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--cw-line); }
.hero__caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(17,20,23,.86)); color: #fff; padding: 34px 18px 14px; font-size: .78rem; letter-spacing: .02em; }
.hero__bg, .hero__scrim { display: none; }

/* ---------- trust strip ---------- */
.trust { background: var(--kds-surface-2); border-block: 1px solid var(--cw-line); }
.trust__in { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .trust__in { grid-template-columns: repeat(4, 1fr); } }
.trust__i { padding: 18px 16px; border-right: 1px solid var(--cw-line); }
.trust__i:nth-child(2n) { border-right: 0; }
@media (min-width: 860px) { .trust__i { border-right: 1px solid var(--cw-line); } .trust__i:nth-child(2n) { border-right: 1px solid var(--cw-line); } .trust__i:last-child { border-right: 0; } }
.trust__i b { display: block; font-family: var(--kds-font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.trust__i span { font-size: .8rem; color: var(--kds-fg-muted); }
@media (max-width: 859px) { .trust__i:nth-child(-n+2) { border-bottom: 1px solid var(--cw-line); } }

/* ---------- alert cards: no category colours, one red rail for priority ---------- */
.alist { display: grid; gap: 0; border-top: 1px solid var(--cw-line); }
.alist--grid { gap: 20px; border-top: 0; }
@media (min-width: 720px) { .alist--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .alist--grid { grid-template-columns: repeat(3, 1fr); } }
.acard { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--cw-line); padding: 20px; transition: border-color .12s, box-shadow .12s; }
.acard:hover { border-color: var(--kds-border-strong); box-shadow: var(--kds-shadow-2); }
.acard__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.acard__cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kds-fg-muted); }
.acard__when { margin-left: auto; font-size: .75rem; color: var(--kds-fg-faint); white-space: nowrap; }
.acard h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 8px; line-height: 1.32; }
.acard p { font-size: .9rem; color: var(--kds-fg-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard__foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--cw-line); font-size: .78rem; color: var(--kds-fg-faint); display: flex; gap: 8px; flex-wrap: wrap; }
.acard__place { font-weight: 600; color: var(--kds-fg); }
.acard--urgent { border-left: 3px solid var(--cw-red); }

/* province filter links */
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--cw-line); background: #fff; color: var(--kds-fg-muted); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 40px; border-radius: var(--kds-radius-md); }
.pill:hover { border-color: var(--kds-border-strong); color: var(--kds-fg); }
.pill.is-active { background: var(--cw-ink); color: #fff; border-color: var(--cw-ink); }
.pill b { font-weight: 700; opacity: .7; }

/* ---------- BOLO ---------- */
.bolo-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .bolo-grid { grid-template-columns: repeat(4, 1fr); } }
.bolo { display: block; text-decoration: none; color: inherit; border: 1px solid var(--cw-line); background: #fff; transition: border-color .12s, box-shadow .12s; }
.bolo:hover { border-color: var(--kds-border-strong); box-shadow: var(--kds-shadow-2); }
.bolo__img { aspect-ratio: 5/6; overflow: hidden; background: var(--kds-surface-2); }
.bolo__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.bolo__body { padding: 12px 14px 14px; }
.bolo__name { font-weight: 600; font-size: .92rem; margin: 0 0 3px; line-height: 1.25; }
.bolo__charge { font-size: .8rem; color: var(--kds-fg-muted); margin: 0; }
.bolo__agency { font-size: .73rem; color: var(--kds-fg-faint); margin: 6px 0 0; }

/* ---------- notice ---------- */
.notice { border: 1px solid var(--cw-line); border-left: 3px solid var(--cw-red); background: var(--kds-surface-2); padding: 16px 18px; font-size: .9rem; }
.notice strong { display: block; margin-bottom: 3px; color: var(--kds-fg); }
.sec--ink .notice { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); border-left-color: var(--cw-red); color: rgba(255,255,255,.8); }
.sec--ink .notice strong { color: #fff; }

/* ---------- generic cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border: 1px solid var(--cw-line); padding: 22px; text-decoration: none; color: inherit; display: block; }
a.tile { transition: border-color .12s, box-shadow .12s; }
a.tile:hover { border-color: var(--kds-border-strong); box-shadow: var(--kds-shadow-2); }
.tile h3 { margin-bottom: .4em; }
.tile p:last-child { margin-bottom: 0; }

/* ---------- supporters logo wall ----------
   Real logos in their own colours on uniform white tiles; the tile, not the logo, carries the
   consistency. Four across on desktop so each logo is readable. */
.splogos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--cw-line); border: 1px solid var(--cw-line); }
@media (min-width: 760px) { .splogos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .splogos { grid-template-columns: repeat(4, 1fr); } }
.splogo { background: #fff; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 10px; text-decoration: none; padding: 22px 18px 14px; min-height: 150px; transition: background .12s; }
.splogo:hover { background: var(--kds-surface-2); }
.splogo__art { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; }
.splogo__art img { max-width: 88%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 759px) { .splogo { min-height: 118px; padding: 16px 10px 10px; } .splogo__art { height: 52px; } .splogo__art img { max-height: 52px; max-width: 94%; } }
.splogo__name { font-family: var(--kds-font-display); font-weight: 700; font-size: .95rem; color: var(--cw-ink); text-align: center; line-height: 1.2; }
.splogo__city { font-size: .7rem; color: var(--kds-fg-faint); text-transform: uppercase; letter-spacing: .08em; text-align: center; }

/* ---------- advertising formats ---------- */
.fmt { display: grid; gap: 18px; }
@media (min-width: 720px) { .fmt { grid-template-columns: repeat(3, 1fr); } }
.fmt__i { border: 1px solid var(--cw-line); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fmt__page { border: 1px solid var(--kds-border-strong); background: var(--kds-surface-2); aspect-ratio: 3/4; position: relative; max-width: 96px; }
.fmt__page i { position: absolute; background: var(--cw-red); opacity: .85; display: block; }
.fmt__page--full i { inset: 6px; }
.fmt__page--half i { inset: auto 6px 6px 6px; height: calc(50% - 8px); }
.fmt__page--quarter i { inset: auto 6px 6px 6px; height: calc(25% - 8px); }
.fmt__page--digital { border-style: dashed; }
.fmt__page--digital i { inset: 6px; background: var(--cw-ink); opacity: .1; }
.fmt__i h3 { margin: 0; font-size: 1rem; }
.fmt__i p { margin: 0; font-size: .875rem; color: var(--kds-fg-muted); }
.fmt__i .tiny { margin-top: auto; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.kds-input, .kds-select, .kds-textarea { font-size: 16px; width: 100%; border-radius: var(--kds-radius-md); }
.kds-textarea { min-height: 130px; }
.checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .checkgrid { grid-template-columns: repeat(4, 1fr); } }
.checkgrid label { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--cw-line); font-size: .875rem; cursor: pointer; min-height: 44px; }
.checkgrid label:has(input:checked) { border-color: var(--cw-red); }

/* ---------- footer ---------- */
.foot { background: var(--cw-ink); color: rgba(255,255,255,.7); margin-top: 0; font-size: .875rem; }
.foot__grid { display: grid; gap: 34px; padding-block: clamp(40px, 6vw, 60px) 34px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 40px; } }
.foot h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--kds-font-sans); }
.foot nav { display: grid; gap: 9px; align-content: start; }
.foot nav a { color: rgba(255,255,255,.7); text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot__brand img { height: 58px; width: auto; margin-bottom: 16px; }
.foot__brand p { max-width: 42ch; }
.foot__addr { font-size: .8rem; color: rgba(255,255,255,.55); }
.foot__addr a { color: rgba(255,255,255,.8); }
.foot__legal { border-top: 1px solid rgba(255,255,255,.12); }
.foot__legal-in { display: grid; gap: 6px; padding-block: 18px 24px; font-size: .76rem; color: rgba(255,255,255,.5); }
@media (min-width: 860px) { .foot__legal-in { grid-template-columns: auto auto; justify-content: space-between; } }

/* ---------- flash ---------- */
.flash-region { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 95; width: min(560px, calc(100% - 24px)); display: grid; gap: 8px; }
.flash { padding: 13px 16px; background: #fff; border: 1px solid var(--kds-border-strong); border-left: 3px solid var(--cw-ink); box-shadow: var(--kds-shadow-3); font-size: .9rem; font-weight: 500; }
.flash--error { border-left-color: var(--cw-red); } .flash--success { border-left-color: #1f7a4d; }
.flash.is-leaving { opacity: 0; transition: opacity .3s; }

/* ---------- reveal (guarded: only hides when JS is confirmed) ---------- */
html.js [data-kds-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(10px); }
html.js [data-kds-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
@media (prefers-reduced-motion: reduce) { html.js [data-kds-reveal]:not(.is-revealed) { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- prose / tables ---------- */
.kds-prose { max-width: 68ch; }
.table-wrap, .kds-table-wrap { overflow-x: auto; border: 1px solid var(--cw-line); background: #fff; }
.mapbox { border: 1px solid var(--cw-line); overflow: hidden; background: var(--kds-surface-2); }
.mapbox--page { height: min(62vh, 560px); }
#cwmap, .leaflet-container { height: 100%; width: 100%; font: inherit; }

/* ---------- admin (Ledger) ---------- */
.admin-main { width: min(1440px, 100% - 40px); margin-inline: auto; padding-block: 22px 70px; }
.admin-nav { position: sticky; top: 0; z-index: 40; background: var(--cw-ink); }
.admin-nav__scroll { display: flex; gap: 2px; overflow-x: auto; padding: 5px 20px; scrollbar-width: none; width: min(1440px, 100%); margin-inline: auto; }
.admin-nav__scroll::-webkit-scrollbar { display: none; }
.admin-nav a { white-space: nowrap; text-decoration: none; padding: 8px 12px; font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.72); border-radius: var(--kds-radius-sm); }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav a.is-active { background: #fff; color: var(--cw-ink); }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 1.6rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--cw-line); padding: 16px; }
.kpi b { display: block; font-family: var(--kds-font-display); font-size: 1.7rem; font-weight: 700; }
.kpi span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kds-fg-muted); }

/* Numbered points: the editorial replacement for icon tiles. A red number and a hairline,
   no pictograms. */
.points { display: grid; gap: 0; border-top: 1px solid var(--cw-line); }
@media (min-width: 720px) { .points { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1020px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { padding: 22px 0 24px; border-bottom: 1px solid var(--cw-line); }
.point__n { display: block; font-family: var(--kds-font-display); font-weight: 700; font-size: .85rem; color: var(--cw-red); letter-spacing: .04em; margin-bottom: 10px; }
.point h3 { font-size: 1.05rem; margin: 0 0 6px; }
.point p { font-size: .9rem; color: var(--kds-fg-muted); margin: 0; }
.point code { font-size: .85em; background: var(--kds-surface-2); padding: 1px 5px; }

/* Safety net: any icon wrapper left in other views stays icon-sized, never card-sized. */
.tile__ico { width: 36px; height: 36px; display: grid; place-content: center; color: var(--cw-red); margin-bottom: 12px; }
.tile__ico svg { width: 22px; height: 22px; }

/* The menu button sits on the black masthead: its bars must be white. (The generic
   .navtoggle span rule is declared later and was painting them near-black — invisible.) */
.masthead .navtoggle span { background: #fff; }
.masthead .navtoggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu-panel__head img { background: var(--cw-ink); padding: 6px 10px; height: 52px; box-sizing: content-box; }

/* Flash messages: errors persist with a close button, and sit at the top of the content where
   they are read, not at the bottom edge. */
.flash-region { top: auto; bottom: 20px; }
.flash { position: relative; padding-right: 44px; }
.flash--error { border-left-width: 4px; font-weight: 600; }
.flash__x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--kds-fg-muted); }
.flash__x:hover { color: var(--kds-fg); }

/* ---------- commissioned photography ---------- */
/* Homepage photo hero: headline on the calm left side of the picture (desktop), photo then copy on phones. */
.phero { position: relative; background: var(--cw-ink); overflow: hidden; }
.phero__img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.phero__scrim { display: none; }
.phero__in { width: min(var(--cw-wrap), 100% - 40px); margin-inline: auto; padding-block: 28px 34px; }
.phero__copy { max-width: 36rem; }
.phero .eyebrow { color: #ff8a8a; }
.phero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); margin-bottom: .35em; }
.phero__lede { color: rgba(255,255,255,.84); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 50ch; margin-bottom: 24px; }
.phero__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.phero .kds-btn--ink { background: #fff; border-color: #fff; color: var(--cw-ink); }
@media (min-width: 900px) {
  .phero { min-height: clamp(480px, 46vw, 660px); display: flex; align-items: center; }
  .phero__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .phero__scrim { display: block; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,20,23,.9) 0%, rgba(17,20,23,.72) 32%, rgba(17,20,23,.2) 62%, rgba(17,20,23,0) 80%); }
  .phero__in { position: relative; padding-block: 64px; }
}
/* Generic wide photo band and product photos */
.photoband img { display: block; width: 100%; aspect-ratio: 21/9; object-fit: cover; border: 1px solid var(--cw-line); }
.photoband--short img { aspect-ratio: 3/1; }
@media (max-width: 700px) { .photoband img, .photoband--short img { aspect-ratio: 16/10; } }
.magphoto { display: block; width: 100%; max-width: 380px; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.adv-hero__photo img, .sub-photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--cw-line); }

/* photo layouts */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split--solo { grid-template-columns: 1fr; } }
.split h2 { margin-top: 0; }
.photo32, .photo43 { margin: 0; }
.photo32 img, .photo43 img { display: block; width: 100%; object-fit: cover; border: 1px solid var(--cw-line); }
.photo32 img { aspect-ratio: 3/2; }
.photo43 img { aspect-ratio: 4/3; }
.tile--photo { padding-top: 0; overflow: hidden; }
.tile__photo { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 20px; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--cw-line); }

/* Page-top photo bands must not push the page's actual content below the fold. */
.photoband img { aspect-ratio: auto; height: clamp(180px, 26vw, 340px); }
.photoband--short img { height: clamp(160px, 22vw, 280px); }
@media (max-width: 700px) { .photoband img, .photoband--short img { height: 200px; aspect-ratio: auto; } }

/* ============================================================
   Mobile homepage plan (phones, <=640px). Desktop unchanged.
   1 hero = one screen, copy over the photo
   2 trust strip compact
   3 alerts, wanted, ad formats, help cards = swipe rails (next card peeks)
   4 supporters = two-row swipe wall
   5 one button style: full width, stacked, equal
   6 footer links in two columns
   ============================================================ */
@media (max-width: 640px) {
  body.home .sec { padding-block: 40px; }
  body.home .sec-head { margin-bottom: 18px; }
  body.home h2 { font-size: 1.6rem; }

  /* 1. hero */
  body.home .phero { min-height: min(calc(100svh - 104px), 640px); display: flex; align-items: flex-end; }
  body.home .phero__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 58% 48% !important; }
  body.home .phero__scrim { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,20,23,.05) 0%, rgba(17,20,23,.35) 32%, rgba(17,20,23,.9) 62%, rgba(17,20,23,.97) 100%); }
  body.home .phero__in { position: relative; padding-block: 0 26px; }
  body.home .phero h1 { font-size: 1.95rem; line-height: 1.12; }
  body.home .phero__lede { font-size: .95rem; margin-bottom: 20px; }
  body.home .phero__acts { display: grid; grid-template-columns: 1fr; gap: 10px; }

  /* 5. buttons */
  body.home .btn-row, body.home .phero__acts { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  body.home .btn-row .kds-btn, body.home .phero__acts .kds-btn { width: 100%; min-height: 50px; }

  /* 2. trust strip */
  body.home .trust__i { padding: 14px 12px; }
  body.home .trust__i b { font-size: 1.15rem; }
  body.home .trust__i span { font-size: .72rem; line-height: 1.35; display: block; }

  /* 3. swipe rails */
  body.home .alist--grid, body.home .bolo-grid, body.home .fmt, body.home .sec--alt > .wrap.cards--2 {
    display: grid; grid-auto-flow: column; grid-template-columns: none; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px;
  }
  body.home .alist--grid::-webkit-scrollbar, body.home .bolo-grid::-webkit-scrollbar, body.home .fmt::-webkit-scrollbar, body.home .sec--alt > .wrap.cards--2::-webkit-scrollbar { display: none; }
  body.home .alist--grid { grid-auto-columns: 84%; }
  body.home .bolo-grid { grid-auto-columns: 46%; }
  body.home .fmt { grid-auto-columns: 78%; }
  body.home .sec--alt > .wrap.cards--2 { grid-auto-columns: 86%; width: auto; align-items: stretch !important; gap: 12px !important; }
  body.home :is(.acard, .bolo, .fmt__i, .tile) { scroll-snap-align: start; }
  body.home .acard { display: flex; flex-direction: column; }
  body.home .acard__foot { margin-top: auto; }
  body.home .fmt__page { max-width: 64px; }
  body.home .tile--photo .tile__photo { aspect-ratio: 2/1; }
  body.home .tile .btn-row { margin-top: 14px; }

  /* magazine band: cover first and smaller */
  body.home .sec--ink .cards--2 > .row { order: -1; }
  body.home .sec--ink .cards--2 { gap: 22px !important; }
  body.home .sec--ink img { max-width: 62% !important; margin-inline: auto; }

  /* photo splits: shorter pictures */
  body.home .split { gap: 18px; }
  body.home .photo32 img { aspect-ratio: 16/9; }
  body.home .split--wide > .photo32 { order: -1; }

  /* 4. supporters: two-row swipe wall */
  body.home .splogos { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 44%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; border-inline: 0; }
  body.home .splogos::-webkit-scrollbar { display: none; }
  body.home .splogo { scroll-snap-align: start; min-height: 110px; }
  body.home .splogos > .splogo:first-child, body.home .splogos > .splogo:nth-child(2) { padding-left: 16px; }

  /* swipe hint under each rail */
  body.home .rail-hint { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .75rem; color: var(--kds-fg-faint); }
  body.home .rail-hint::after { content: "→"; }
  body.home .sec--ink .rail-hint { color: rgba(255,255,255,.5); }

  /* 6. footer */
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot nav a { font-size: .85rem; }
}
.rail-hint { display: none; }
@media (max-width: 640px) {
  /* this rail is itself the .wrap, so it spans the full screen directly instead of bleeding past it */
  body.home .sec--alt > .wrap.cards--2 { width: 100%; margin-inline: 0; }
}

/* ============================================================
   Phone + tablet header (<=1099px). Desktop keeps the three-tier masthead.
   Common: one sticky black bar (the menu is always reachable), no utility bar,
   emergency numbers in a slim strip under the bar and at the top of the menu.
   Variant a (default): logo left, Subscribe + search + menu right.
   Variant b: menu left, logo centred, search right.
   Variant c: newspaper — large centred logo row, then a Menu / Subscribe row.
   ============================================================ */
.mstrip, .mhead-acts, .navtoggle__label { display: none; }
.menu-panel__emg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.menu-panel__emg a { display: block; padding: 10px 12px; background: var(--kds-surface-2); border-left: 3px solid var(--cw-red); text-decoration: none; color: var(--cw-ink); font-weight: 700; font-size: .95rem; }
.menu-panel__emg b { display: block; font-size: .68rem; font-weight: 600; color: var(--kds-fg-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

@media (max-width: 1099px) {
  .utility { display: none; }
  .masthead { position: sticky; top: 0; z-index: 70; border-bottom: 1px solid rgba(255,255,255,.08); }
  .masthead .masthead__in { width: calc(100% - 28px); padding-block: 10px; gap: 10px; transition: padding .2s ease; }
  .masthead__tag { display: none; }
  .masthead__logo img { transition: height .2s ease; }
  .navtoggle { width: 44px; height: 44px; }
  .masthead .navtoggle span { width: 22px; }

  .mhead-acts { display: flex; align-items: center; gap: 6px; }
  .mhead-sub { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; background: var(--cw-red); color: #fff; font-weight: 700; font-size: .82rem; text-decoration: none; border-radius: var(--kds-radius-md); }
  .mhead-search { display: grid; place-content: center; width: 40px; height: 40px; color: #fff; }
  .mhead-search svg { width: 20px; height: 20px; }

  .mstrip { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; background: #1d2125; color: rgba(255,255,255,.7); font-size: .76rem; padding: 7px 14px; text-align: center; }
  .mstrip a { color: #fff; font-weight: 700; text-decoration: none; }
  .mstrip__sep { width: 1px; height: 12px; background: rgba(255,255,255,.25); }

  /* ---- a: logo left, actions right, menu at the thumb ---- */
  body.hdr-a .masthead__in { grid-template-columns: auto 1fr auto auto; justify-items: stretch; }
  body.hdr-a .masthead__logo { grid-column: 1; grid-row: 1; }
  body.hdr-a .masthead__logo img { height: 58px; }
  body.hdr-a .mhead-acts { grid-column: 3; grid-row: 1; }
  body.hdr-a .navtoggle { grid-column: 4; grid-row: 1; margin-right: -8px; }
  html.is-scrolled body.hdr-a .masthead__in { padding-block: 6px; }
  html.is-scrolled body.hdr-a .masthead__logo img { height: 44px; }
  body.hdr-a .menu-panel__sheet { inset: 0 0 0 auto; transform: translateX(100%); }
  body.hdr-a .menu-panel.is-open .menu-panel__sheet { transform: none; }

  /* ---- b: centred logo ---- */
  body.hdr-b .masthead__in { grid-template-columns: 44px 1fr 44px; justify-items: center; }
  body.hdr-b .navtoggle { grid-column: 1; grid-row: 1; }
  body.hdr-b .masthead__logo { grid-column: 2; grid-row: 1; }
  body.hdr-b .masthead__logo img { height: 56px; }
  body.hdr-b .mhead-acts { grid-column: 3; grid-row: 1; }
  body.hdr-b .mhead-sub { display: none; }
  html.is-scrolled body.hdr-b .masthead__in { padding-block: 6px; }
  html.is-scrolled body.hdr-b .masthead__logo img { height: 40px; }

  /* ---- c: newspaper masthead ---- */
  body.hdr-c .masthead__in { grid-template-columns: 1fr auto; row-gap: 6px; padding-block: 12px 8px; }
  body.hdr-c .masthead__logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  body.hdr-c .masthead__logo img { height: 72px; }
  body.hdr-c .navtoggle { grid-column: 1; grid-row: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 4px; grid-auto-flow: column; }
  body.hdr-c .navtoggle { display: grid; grid-template-columns: 22px auto; grid-template-rows: repeat(3, 2px); column-gap: 10px; row-gap: 5px; align-content: center; }
  body.hdr-c .navtoggle span { grid-column: 1; }
  body.hdr-c .navtoggle__label { display: block; grid-column: 2; grid-row: 1 / 4; align-self: center; color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  body.hdr-c .mhead-acts { grid-column: 2; grid-row: 2; }
  html.is-scrolled body.hdr-c .masthead__logo img { height: 44px; }
  html.is-scrolled body.hdr-c .masthead__in { padding-block: 6px 4px; }
}
.menu-panel__emg { grid-template-columns: auto 1fr; }
.menu-panel__emg a { white-space: nowrap; font-size: .9rem; }
