/* =====================================================================
   WorldMilestone design system  (wm.css)
   Atlas ink chrome, white reading surface, brass for actions,
   map-legend colours for regions. Replaces plugins.css + style.css +
   color.css + premium-override.css on redesigned pages.
   ===================================================================== */

:root {
  --ink: #14213D;
  --ink-2: #22335B;
  --ink-soft: #3A4A6B;
  --paper: #FFFFFF;
  --mist: #EEF1F5;
  --mist-2: #E2E7EE;
  --rule: #D7DDE6;
  --text: #1B2130;
  --muted: #586274;
  --brass: #B8892E;
  --brass-hi: #CFA14A;
  --brass-deep: #87631A;
  --brass-soft: #F5ECD8;
  --ok: #1F7A4D;
  --err: #B4312B;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
  --fs-hero: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --r-sm: 3px;
  --r-md: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body.wm {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
/* Base element rules use :where() so any component class can override them. */
:where(.wm) :where(img, svg, video) { max-width: 100%; height: auto; }
:where(.wm) img { display: block; }
:where(.wm) a { color: inherit; text-decoration: none; }
:where(.wm) button { font: inherit; color: inherit; }
:where(.wm) :where(h1, h2, h3, h4) { margin: 0; font-weight: 600; color: var(--ink); }
:where(.wm) p { margin: 0 0 1em; }
.wm :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.wm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wm-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brass); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--r-md); }
.wm-skip:focus { top: 12px; }
.wm-icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wm-main { display: block; min-height: 50vh; }

/* ---------- buttons, fields ---------- */
.wm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--ink); color: #fff;
  font: 600 var(--fs-sm)/1 var(--sans); letter-spacing: .01em;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.wm-btn:hover { background: var(--ink-2); }
.wm-btn--brass { background: var(--brass); color: var(--ink); }
.wm-btn--brass:hover { background: var(--brass-hi); }
.wm-btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.wm-btn--ghost:hover { background: var(--mist); border-color: var(--mist-2); }
.wm-btn--on-ink { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.wm-btn--on-ink:hover { background: rgba(255,255,255,.08); }
.wm-btn[disabled] { opacity: .6; cursor: progress; }
.wm-link { color: var(--brass-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wm-link:hover { color: var(--ink); }

.wm-field { display: grid; gap: 6px; margin-bottom: 18px; }
.wm-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.wm-field .wm-hint { font-size: var(--fs-xs); color: var(--muted); }
.wm-input, .wm-textarea, .wm-select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: #fff; color: var(--text); font: 400 var(--fs-base)/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.wm-textarea { min-height: 150px; resize: vertical; }
.wm-input:hover, .wm-textarea:hover { border-color: #B9C3D1; }
.wm-input:focus, .wm-textarea:focus, .wm-select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(184,137,46,.28); }
.wm-row2 { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .wm-row2 { grid-template-columns: 1fr; } }

.wm-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: var(--fs-sm); margin-bottom: 20px; border: 1px solid; }
.wm-note--ok { background: #EAF5EF; border-color: #BFE0CD; color: #145A38; }
.wm-note--err { background: #FBECEB; border-color: #F0C6C3; color: #8D241F; }
.wm-note .wm-icon { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- region marker (map legend) ---------- */
.wm-region {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .02em; color: var(--ink-soft);
}
.wm-region::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--rc, var(--ink)); flex: none; }
a.wm-region:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: var(--fs-xs); color: var(--muted); }
.wm-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.wm-meta .wm-icon { width: 14px; height: 14px; }
.wm-coords { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- header ---------- */
.wm-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; transition: box-shadow .2s; }
.wm-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(10,18,40,.18); }
.wm-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.wm-logo { display: inline-flex; align-items: center; flex: none; }
.wm-logo svg { height: 40px; width: auto; display: block; }
.wm-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.wm-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.wm-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border: 0; background: none; border-radius: var(--r-md);
  color: rgba(255,255,255,.84); font: 500 .9375rem/1 var(--sans); cursor: pointer;
}
.wm-nav__link:hover, .wm-nav__link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.07); }
.wm-nav__link[aria-current="page"] { color: #fff; }
.wm-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--brass); }
.wm-nav__link .wm-icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.wm-nav__link[aria-expanded="true"] .wm-icon { transform: rotate(180deg); }
.wm-dd { position: relative; }
.wm-dd__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 260px; padding: 8px; background: #fff; color: var(--text);
  border-radius: 10px; box-shadow: 0 18px 50px rgba(10,18,40,.22), 0 0 0 1px rgba(20,33,61,.06);
  display: none;
}
.wm-dd__panel--regions { width: 520px; padding: 20px; }
.wm-dd.is-open .wm-dd__panel { display: block; animation: wm-pop .16s var(--ease); }
@keyframes wm-pop { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.wm-dd__panel--right { left: auto; right: 0; transform: none; }
.wm-dd.is-open .wm-dd__panel--right { animation: none; }
.wm-dd__title { font: 600 var(--fs-xs)/1.2 var(--sans); color: var(--muted); margin: 0 0 12px 8px; }
.wm-dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.wm-dd__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px; border-radius: var(--r-md); font-size: .9375rem; font-weight: 500; color: var(--ink); }
.wm-dd__item:hover { background: var(--mist); }
.wm-dd__item .wm-region { font-size: .9375rem; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.wm-dd__count { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.wm-dd__foot { margin-top: 12px; padding: 14px 10px 2px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); }
.wm-dd__list { list-style: none; margin: 0; padding: 0; }
.wm-dd__list a, .wm-dd__list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-md); font-size: .9375rem; color: var(--ink); cursor: pointer; }
.wm-dd__list a:hover, .wm-dd__list button:hover { background: var(--mist); }
.wm-dd__list form { margin: 0; }
.wm-dd__sep { height: 1px; background: var(--rule); margin: 6px 4px; }
.wm-header__actions { display: flex; align-items: center; gap: 6px; }
.wm-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: var(--r-md); background: none; color: rgba(255,255,255,.88); cursor: pointer; }
.wm-iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.wm-kbd { margin-left: 2px; font: 500 11px/1 var(--sans); padding: 3px 5px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: rgba(255,255,255,.6); }
.wm-search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; min-width: 200px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); background: rgba(255,255,255,.05); color: rgba(255,255,255,.66); font-size: var(--fs-sm); cursor: pointer; }
.wm-search-trigger:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.wm-search-trigger .wm-kbd { margin-left: auto; }
.wm-menu-btn { display: none; }
.wm-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--ink-2); }

/* mobile drawer */
.wm-drawer { display: none; }
@media (max-width: 1023px) {
  .wm-nav, .wm-search-trigger { display: none; }
  .wm-menu-btn { display: inline-grid; }
  .wm-header__actions { margin-left: auto; }
  .wm-drawer {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--ink); color: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 40px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  html.wm-menu-open { overflow: hidden; }
  html.wm-menu-open .wm-drawer { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .wm-drawer__group { border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
  .wm-drawer__label { font-size: var(--fs-xs); color: rgba(255,255,255,.55); margin: 0 0 6px; font-weight: 600; }
  .wm-drawer a, .wm-drawer button.wm-drawer__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; font-size: 1.0625rem; color: #fff; background: none; border: 0; text-align: left; cursor: pointer; }
  .wm-drawer .wm-region { color: #fff; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; }
  .wm-drawer .wm-dd__count { color: rgba(255,255,255,.55); }
  .wm-drawer form.wm-drawer__search { display: flex; gap: 8px; padding: 8px 0 16px; }
  .wm-drawer form.wm-drawer__search .wm-input { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
}

/* search dialog */
.wm-search { width: min(680px, calc(100% - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(10,18,40,.35); }
.wm-search::backdrop { background: rgba(14,22,42,.55); backdrop-filter: blur(3px); }
.wm-search form { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--rule); }
.wm-search input { flex: 1; min-width: 0; height: 56px; border: 0; outline: none; font: 400 1.25rem/1 var(--sans); color: var(--ink); background: none; }
.wm-search .wm-icon { color: var(--muted); }
.wm-search__body { padding: 16px 20px 20px; }
.wm-search__label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.wm-search__regions { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-search__foot { display: flex; justify-content: space-between; padding: 12px 20px; background: var(--mist); border-radius: 0 0 12px 12px; font-size: var(--fs-xs); color: var(--muted); }

/* chips */
.wm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font: 500 var(--fs-sm)/1 var(--sans); color: var(--ink); }
.wm-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rc, var(--ink)); }
.wm-chip--plain::before { display: none; }
.wm-chip:hover { border-color: #B9C3D1; background: var(--mist); }
.wm-chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.wm-chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.wm-chip[aria-current="page"] span { color: rgba(255,255,255,.65); }

/* progress (article reading) */
.wm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.wm-progress span { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- sections ---------- */
.wm-section { padding: clamp(48px, 6vw, 88px) 0; }
.wm-section--mist { background: var(--mist); }
.wm-section--tight { padding-top: 0; }
.wm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.wm-section-head h2 { font: 600 var(--fs-2xl)/1.1 var(--serif); letter-spacing: -.01em; }
.wm-section-head p { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }
.wm-section-head .wm-link { flex: none; }
@media (max-width: 640px) { .wm-section-head { flex-direction: column; align-items: flex-start; } .wm-section-head h2 { font-size: var(--fs-xl); } }

/* ---------- media ---------- */
.wm-media { position: relative; overflow: hidden; background: var(--mist-2); border-radius: var(--r-sm); aspect-ratio: 3 / 2; }
.wm-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.wm-media--wide { aspect-ratio: 16 / 10; }
.wm-media--sq { aspect-ratio: 4 / 3; }

/* ---------- cards ---------- */
.wm-card { position: relative; display: grid; gap: 14px; align-content: start; }
.wm-card__title { font: 600 var(--fs-lg)/1.22 var(--serif); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.wm-card__title a::after { content: ""; position: absolute; inset: 0; }
.wm-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.wm-card:hover .wm-card__title a { background-size: 100% 1px; }
.wm-card:hover .wm-media img { transform: scale(1.03); }
.wm-card__excerpt { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wm-card .wm-region, .wm-card .wm-meta a { position: relative; z-index: 1; }
.wm-card--row { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.wm-card--row .wm-media { aspect-ratio: 1 / 1; }
.wm-card--row .wm-card__title { font-size: 1.0625rem; line-height: 1.3; }
.wm-card--row .wm-card__body { display: grid; gap: 8px; }
.wm-card--feature .wm-card__title { font-size: var(--fs-xl); }

.wm-grid { display: grid; gap: 44px 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.wm-grid--4 .wm-card__title { font-size: 1.1875rem; }
@media (max-width: 1100px) { .wm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .wm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wm-grid, .wm-grid--4 { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- home: lead story ---------- */
.wm-lead { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); }
.wm-lead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.wm-lead__media { aspect-ratio: 16 / 11; border-radius: var(--r-md); }
.wm-lead__body { display: grid; gap: 18px; align-content: center; }
.wm-lead__title { font: 600 clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.wm-lead__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--brass); }
.wm-lead__dek { margin: 0; font: 400 var(--fs-md)/1.6 var(--sans); color: var(--muted); max-width: 52ch; }
.wm-lead__more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }
.wm-lead__more .wm-card--row { grid-template-columns: 96px 1fr; }
@media (max-width: 960px) { .wm-lead__grid { grid-template-columns: 1fr; } .wm-lead__more { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- home: region atlas (the signature element) ---------- */
.wm-atlas { background: var(--ink); color: #fff; padding: clamp(40px, 5vw, 64px) 0; position: relative; overflow: hidden; }
.wm-atlas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
}
.wm-atlas__grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wm-atlas h2 { color: #fff; font: 500 clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem)/1.1 var(--serif); letter-spacing: -.015em; }
.wm-atlas p { color: rgba(255,255,255,.66); margin: 14px 0 0; max-width: 40ch; }
.wm-atlas__total { font-variant-numeric: tabular-nums; }
.wm-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.wm-legend a { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.wm-legend__name { font: 500 1.0625rem/1.2 var(--sans); color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.wm-legend__name::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--rc); }
.wm-legend__count { font: 500 var(--fs-sm)/1 var(--sans); color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
.wm-legend__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.wm-legend__bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--rc); border-radius: 2px; transform-origin: 0 50%; }
.wm-atlas.is-pending .wm-legend__bar span { transform: scaleX(0); }
.wm-atlas.is-ready .wm-legend__bar span { transform: scaleX(1); transition: transform .9s var(--ease); }
.wm-atlas.is-ready .wm-legend li:nth-child(2) span { transition-delay: .06s; }
.wm-atlas.is-ready .wm-legend li:nth-child(3) span { transition-delay: .12s; }
.wm-atlas.is-ready .wm-legend li:nth-child(4) span { transition-delay: .18s; }
.wm-atlas.is-ready .wm-legend li:nth-child(5) span { transition-delay: .24s; }
.wm-atlas.is-ready .wm-legend li:nth-child(6) span { transition-delay: .3s; }
.wm-legend a:hover .wm-legend__name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) { .wm-atlas__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wm-legend { grid-template-columns: 1fr; } }

/* ---------- tabs ---------- */
.wm-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.wm-tabs::-webkit-scrollbar { display: none; }
.wm-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 0; background: none; cursor: pointer; font: 500 .9375rem/1 var(--sans); color: var(--muted); }
.wm-tab::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rc, var(--ink)); opacity: .9; }
.wm-tab:hover { color: var(--ink); }
.wm-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.wm-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); }
.wm-tabpanel { transition: opacity .2s; min-height: 240px; }
.wm-tabpanel[aria-busy="true"] { opacity: .45; pointer-events: none; }

/* ---------- split: list + aside ---------- */
.wm-split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); }
@media (max-width: 960px) { .wm-split { grid-template-columns: 1fr; } }
.wm-stack { display: grid; gap: 28px; }
.wm-stack > .wm-card--row + .wm-card--row { padding-top: 28px; border-top: 1px solid var(--rule); }
.wm-aside-block { padding: 28px; background: var(--mist); border-radius: var(--r-md); }
.wm-aside-block h3 { font: 600 var(--fs-lg)/1.2 var(--serif); margin-bottom: 18px; }
.wm-numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 18px; }
.wm-numbered li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.wm-numbered li::before { content: counter(n); font: 600 var(--fs-lg)/1.15 var(--serif); color: var(--brass-deep); }
.wm-numbered a { font: 600 1.0625rem/1.3 var(--serif); color: var(--ink); }
.wm-numbered a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wm-numbered .wm-meta { margin-top: 6px; }

/* ---------- newsletter ---------- */
.wm-signup { background: var(--brass-soft); }
.wm-signup__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.wm-signup h2 { font: 600 clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem)/1.12 var(--serif); letter-spacing: -.01em; }
.wm-signup p { color: #5C4B2A; margin: 12px 0 0; max-width: 48ch; }
.wm-signup-form { display: grid; gap: 10px; }
.wm-signup-form__row { display: flex; gap: 10px; }
.wm-signup-form .wm-input { border-color: #DCCBA4; }
.wm-signup-form__msg { min-height: 1.4em; font-size: var(--fs-sm); margin: 0; }
.wm-signup-form__msg.is-ok { color: var(--ok); }
.wm-signup-form__msg.is-err { color: var(--err); }
.wm-signup-form small { color: #6E5D3A; font-size: var(--fs-xs); }
@media (max-width: 860px) { .wm-signup__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .wm-signup-form__row { flex-direction: column; } }

/* ---------- page head (listings, static pages) ---------- */
.wm-pagehead { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 4vw, 48px); }
.wm-pagehead--mist { background: var(--mist); border-bottom: 0; }
.wm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 16px; list-style: none; padding: 0; }
.wm-crumbs li + li::before { content: "/"; margin-right: 8px; color: #A3ACBA; }
.wm-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.wm-pagehead h1 { font: 600 var(--fs-3xl)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.wm-pagehead h1 .wm-swatch { display: inline-block; width: .42em; height: .42em; border-radius: 3px; background: var(--rc); margin-right: .3em; vertical-align: .12em; }
.wm-pagehead__lede { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-md); max-width: 62ch; }
.wm-pagehead .wm-chips { margin-top: 24px; }

.wm-empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--rule); border-radius: var(--r-md); }
.wm-empty h2 { font: 600 var(--fs-xl)/1.2 var(--serif); margin-bottom: 10px; }
.wm-empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }

/* pager */
.wm-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
.wm-pager a, .wm-pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.wm-pager a { border: 1px solid var(--rule); }
.wm-pager a:hover { background: var(--mist); }
.wm-pager [aria-current="page"] { background: var(--ink); color: #fff; }
.wm-pager .wm-pager__gap { color: var(--muted); min-width: 20px; padding: 0; }
.wm-pager .is-disabled { color: #A3ACBA; border: 1px solid var(--mist-2); }
.wm-pager__step { display: inline-flex !important; gap: 6px; }
.wm-pager__step .wm-icon { width: 16px; height: 16px; }

/* ---------- article ---------- */
.wm-article-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.wm-article-head__inner { max-width: 860px; }
.wm-article-head h1 { font: 600 clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem)/1.06 var(--serif); letter-spacing: -.02em; margin: 16px 0 0; text-wrap: balance; }
.wm-article-dek { margin: 20px 0 0; font: 400 clamp(1.125rem, 1rem + .4vw, 1.3125rem)/1.55 var(--serif); color: var(--ink-soft); max-width: 62ch; }
.wm-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.wm-byline__who { display: flex; align-items: center; gap: 12px; }
.wm-byline__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.wm-byline__mark svg { width: 24px; height: 24px; }
.wm-byline__name { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); line-height: 1.3; }
.wm-byline__role { font-size: var(--fs-xs); color: var(--muted); }
.wm-byline .wm-meta { margin-left: auto; }
@media (max-width: 640px) { .wm-byline .wm-meta { margin-left: 0; } }

.wm-article-hero { margin: 0 0 clamp(32px, 4vw, 56px); }
.wm-article-hero .wm-media { aspect-ratio: 16 / 9; max-height: min(560px, 70vh); width: 100%; border-radius: var(--r-md); }
.wm-article-hero figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }

.wm-article-layout { display: grid; grid-template-columns: 72px minmax(0, 720px) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.wm-article-layout > .wm-prose, .wm-article-layout > .wm-article-foot { grid-column: 2; }
.wm-share { grid-column: 1; grid-row: 1 / span 3; }
.wm-share__inner { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 8px; justify-items: center; }
.wm-share__label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.wm-share a, .wm-share button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r-md);
  background: #fff; color: var(--ink); font: 600 var(--fs-xs)/1 var(--sans); cursor: pointer;
}
.wm-share a:hover, .wm-share button:hover { background: var(--mist); border-color: #B9C3D1; }
.wm-share .wm-icon { width: 18px; height: 18px; }
.wm-share [data-wm-native-share] { display: none; }
.wm-share.has-native [data-wm-native-share] { display: inline-flex; }
@media (max-width: 1023px) {
  .wm-article-layout { grid-template-columns: minmax(0, 1fr); }
  .wm-article-layout > .wm-prose, .wm-article-layout > .wm-article-foot { grid-column: 1; }
  .wm-share { grid-column: 1; grid-row: auto; order: 2; margin-top: 32px; }
  .wm-share__inner { position: static; display: flex; flex-wrap: wrap; justify-items: start; justify-content: flex-start; }
  .wm-share__label { width: 100%; }
}

.wm-prose { font: 400 1.1875rem/1.72 var(--serif); color: #20263A; max-width: 68ch; overflow-wrap: break-word; }
.wm-prose [style*="font-family"] { font-family: inherit !important; }
.wm-prose [style*="line-height"] { line-height: inherit !important; }
.wm-prose > :first-child { margin-top: 0; }
.wm-prose p, .wm-prose ul, .wm-prose ol, .wm-prose blockquote, .wm-prose figure, .wm-prose table { margin: 0 0 1.15em; }
.wm-prose h1, .wm-prose h2 { font: 600 1.75rem/1.2 var(--serif); margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.wm-prose h3 { font: 600 1.375rem/1.25 var(--serif); margin: 1.6em 0 .5em; }
.wm-prose h4, .wm-prose h5, .wm-prose h6 { font: 700 1rem/1.3 var(--sans); margin: 1.6em 0 .5em; color: var(--ink); }
.wm-prose a { color: var(--brass-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wm-prose a:hover { color: var(--ink); }
.wm-prose strong, .wm-prose b { font-weight: 650; color: var(--ink); }
.wm-prose ul, .wm-prose ol { padding-left: 1.3em; }
.wm-prose li { margin: .35em 0; }
.wm-prose li::marker { color: var(--brass-deep); }
.wm-prose blockquote { padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--brass); font-style: italic; color: var(--ink-soft); }
.wm-prose img { height: auto !important; max-width: 100% !important; border-radius: var(--r-sm); margin: 1.4em 0; }
.wm-prose figure figcaption { font: 400 var(--fs-xs)/1.4 var(--sans); color: var(--muted); margin-top: 8px; }
.wm-prose table { width: 100%; border-collapse: collapse; font: 400 var(--fs-sm)/1.5 var(--sans); display: block; overflow-x: auto; }
.wm-prose th, .wm-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.wm-prose th { font-weight: 600; color: var(--ink); background: var(--mist); }
.wm-prose hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.wm-prose iframe { max-width: 100%; }

.wm-article-foot { margin-top: 48px; display: grid; gap: 32px; }
.wm-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wm-tags__label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-right: 4px; }
.wm-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--mist); font-size: var(--fs-sm); color: var(--ink); }
.wm-tag:hover { background: var(--mist-2); }
.wm-about-box { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px; background: var(--mist); border-radius: var(--r-md); }
.wm-about-box .wm-byline__mark { width: 56px; height: 56px; }
.wm-about-box .wm-byline__mark svg { width: 32px; height: 32px; }
.wm-about-box h2 { font: 600 var(--fs-md)/1.3 var(--sans); }
.wm-about-box p { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }

/* gallery + lightbox */
.wm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 8px 0 0; }
.wm-gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist-2); }
.wm-gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.wm-gallery a:hover img { opacity: .86; }
.wm-gallery-title { font: 600 var(--fs-sm)/1 var(--sans); color: var(--ink); margin: 0 0 12px; }
.wm-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9,14,28,.94); color: #fff; }
.wm-lightbox::backdrop { background: rgba(9,14,28,.94); }
.wm-lightbox__stage { position: absolute; inset: 56px 72px; display: grid; place-items: center; }
.wm-lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.wm-lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.wm-lightbox__btn:hover { background: rgba(255,255,255,.2); }
.wm-lightbox__close { top: 12px; right: 12px; }
.wm-lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.wm-lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
.wm-lightbox__count { position: absolute; top: 24px; left: 24px; font-size: var(--fs-sm); color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .wm-lightbox__stage { inset: 64px 8px; } .wm-lightbox__prev, .wm-lightbox__next { top: auto; bottom: 12px; translate: none; } }

/* comments */
.wm-comments { border-top: 1px solid var(--rule); padding-top: 40px; }
.wm-comments h2 { font: 600 var(--fs-xl)/1.2 var(--serif); margin-bottom: 8px; }
.wm-comments > p { color: var(--muted); margin-bottom: 24px; }

/* ---------- static pages (about, contact, donate) ---------- */
.wm-prose-sans { font-size: var(--fs-md); line-height: 1.7; color: var(--text); max-width: 64ch; }
.wm-prose-sans p { margin: 0 0 1.1em; }
.wm-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.wm-two--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .wm-two, .wm-two--even { grid-template-columns: 1fr; } }
.wm-kicker-h { font: 600 var(--fs-2xl)/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.wm-pullquote { margin: 0; padding: clamp(28px, 4vw, 48px) 0; font: 400 italic clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1.3 var(--serif); color: var(--ink); max-width: 30ch; }
.wm-pullquote cite { display: block; margin-top: 18px; font: 500 var(--fs-sm)/1.4 var(--sans); font-style: normal; color: var(--muted); }
.wm-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.wm-principles li { padding: 24px 0; border-top: 1px solid var(--rule); }
.wm-principles h3 { font: 600 var(--fs-lg)/1.25 var(--serif); margin-bottom: 8px; }
.wm-principles p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .wm-principles { grid-template-columns: 1fr; } }
.wm-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0 0; padding: 0; list-style: none; }
.wm-facts strong { display: block; font: 600 var(--fs-2xl)/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.wm-facts span { font-size: var(--fs-sm); color: var(--muted); }
.wm-panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.wm-panel h2 { font: 600 var(--fs-xl)/1.2 var(--serif); margin-bottom: 6px; }
.wm-panel > p { color: var(--muted); }
.wm-contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.wm-contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.wm-contact-list .wm-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--ink); }
.wm-contact-list .wm-ic .wm-icon { width: 18px; height: 18px; }
.wm-contact-list b { display: block; color: var(--ink); font-size: var(--fs-sm); }
.wm-contact-list span, .wm-contact-list a { color: var(--muted); }
.wm-contact-list a:hover { color: var(--ink); text-decoration: underline; }
.wm-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.wm-amount input { position: absolute; opacity: 0; pointer-events: none; }
.wm-amount span { display: grid; place-items: center; height: 56px; border: 1px solid var(--rule); border-radius: var(--r-md); font: 600 var(--fs-md)/1 var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.wm-amount span:hover { background: var(--mist); }
.wm-amount input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.wm-amount input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (max-width: 480px) { .wm-amounts { grid-template-columns: repeat(2, 1fr); } }
.wm-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.wm-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text); }
.wm-checks .wm-icon { color: var(--brass-deep); width: 20px; height: 20px; margin-top: 2px; }

.wm-errorpage { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.wm-errorpage__code { font: 500 clamp(4.5rem, 3rem + 6vw, 8rem)/1 var(--serif); color: var(--mist-2); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.wm-errorpage h1 { font: 600 var(--fs-3xl)/1.1 var(--serif); margin: 8px 0 14px; }
.wm-errorpage p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.wm-errorpage form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 24px; }

/* ---------- footer ---------- */
.wm-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: clamp(56px, 8vw, 96px); font-size: var(--fs-sm); }
.wm-signup + .wm-footer, .wm-section--mist + .wm-footer, .wm-atlas + .wm-footer { margin-top: 0; }
.wm-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px; padding: clamp(48px, 6vw, 72px) 0 48px; }
.wm-footer h2 { font: 600 var(--fs-sm)/1.2 var(--sans); color: #fff; margin-bottom: 16px; }
.wm-footer p { margin: 16px 0 0; max-width: 40ch; line-height: 1.7; }
.wm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wm-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wm-footer .wm-region { color: rgba(255,255,255,.78); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; }
.wm-footer .wm-signup-form .wm-input { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.wm-footer .wm-signup-form .wm-input::placeholder { color: rgba(255,255,255,.45); }
.wm-footer .wm-signup-form small { color: rgba(255,255,255,.5); }
.wm-footer .wm-signup-form__msg.is-ok { color: #8FD3B0; }
.wm-footer .wm-signup-form__msg.is-err { color: #F2A7A1; }
.wm-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
@media (max-width: 1023px) { .wm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wm-footer__grid { grid-template-columns: 1fr; } }

.wm-totop { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(10,18,40,.25); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.wm-totop.is-visible { opacity: 1; visibility: visible; transition: opacity .2s; }
.wm-totop:hover { background: var(--ink-2); }

/* legacy pages get the new chrome; keep their content area clear of the sticky header */
.wm-legacy-body #wrapper { padding-top: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .wm-header, .wm-footer, .wm-share, .wm-signup, .wm-totop, .wm-progress, .wm-comments, .wm-related { display: none !important; }
  .wm-prose { font-size: 12pt; max-width: none; }
  .wm-article-layout { display: block; }
}

.wm-card__body { display: grid; gap: 10px; align-content: start; }
.wm-search-icon { display: none; }
@media (max-width: 1023px) { .wm-search-icon { display: inline-grid; } }
@media (max-width: 520px) { .wm-header__donate { display: none; } }
.wm-main:focus { outline: none; }
.wm-account .wm-dd__panel { top: calc(100% + 13px); }
@media (max-width: 1023px) { .wm-signin, .wm-account { display: none; } }
.wm-empty .wm-chips { justify-content: center; }
.wm-main { padding-bottom: clamp(56px, 8vw, 96px); }
.wm-main:has(> .wm-signup:last-child), .wm-main:has(> .wm-atlas:last-child), .wm-main:has(> .wm-section--mist:last-child) { padding-bottom: 0; }
.wm-footer { margin-top: 0; }
.wm-errorpage .wm-chips { justify-content: center; }
.wm-checks b { color: var(--ink); font-weight: 600; }
.wm-footer .wm-signup-form__row { flex-direction: column; }
.wm-footer .wm-signup-form__row .wm-btn { align-self: flex-start; }
.wm-byline__mark svg { width: 26px; height: 26px; }

/* =====================================================================
   Focus mode + account pages (sign in, sign up, password)
   ===================================================================== */
.wm-focus .wm-main { padding-bottom: 0; }
.wm-focus-back { margin-left: auto; color: rgba(255,255,255,.78); }
.wm-focus-back .wm-icon { width: 16px; height: 16px; }

.wm-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
.wm-auth--single { grid-template-columns: minmax(0, 1fr); }
.wm-auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.wm-auth__card { width: 100%; max-width: 420px; }
.wm-auth--single .wm-auth__card { max-width: 480px; }
.wm-auth__card h1 { font: 600 clamp(2rem, 1.6rem + 1.4vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.015em; }
.wm-auth__lede { margin: 12px 0 28px; color: var(--muted); }
.wm-auth__lede a, .wm-auth__foot a, .wm-auth__inline-link { color: var(--brass-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wm-auth__lede a:hover, .wm-auth__foot a:hover, .wm-auth__inline-link:hover { color: var(--ink); }
.wm-auth__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); margin-bottom: 20px; }
.wm-auth__icon .wm-icon { width: 24px; height: 24px; }
.wm-auth__icon--ok { background: #EAF5EF; color: var(--ok); }
.wm-auth__icon--err { background: #FBECEB; color: var(--err); }

.wm-auth form { margin: 0; }
.wm-auth .wm-field { margin-bottom: 20px; }
.wm-auth .wm-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wm-auth .wm-field__row a { font-size: var(--fs-sm); font-weight: 500; color: var(--brass-deep); }
.wm-auth .wm-field__row a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wm-auth .wm-input { height: 50px; }
.wm-auth .wm-btn { width: 100%; min-height: 50px; font-size: .9375rem; }
.wm-auth .wm-btn + .wm-btn { margin-top: 10px; }

/* server + client validation */
.wm-auth .validation-summary-valid { display: none; }
.wm-auth .validation-summary-errors { display: flex; gap: 10px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid #F0C6C3; border-radius: var(--r-md); background: #FBECEB; color: #8D241F; font-size: var(--fs-sm); }
.wm-auth .validation-summary-errors::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.wm-auth .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wm-auth .field-validation-error { font-size: var(--fs-sm); color: var(--err); }
.wm-auth .field-validation-valid { display: none; }
.wm-auth .input-validation-error, .wm-auth .input-validation-error:hover { border-color: var(--err); }
.wm-auth .input-validation-error:focus { box-shadow: 0 0 0 3px rgba(180,49,43,.2); border-color: var(--err); }

/* password field */
.wm-pw { position: relative; }
.wm-pw .wm-input { padding-right: 76px; }
.wm-pw__toggle { position: absolute; top: 50%; right: 6px; translate: 0 -50%; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-soft); font: 600 var(--fs-sm)/1 var(--sans); cursor: pointer; }
.wm-pw__toggle:hover { background: var(--mist); color: var(--ink); }
.wm-pw__caps { font-size: var(--fs-xs); color: var(--brass-deep); }
.wm-rules { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: var(--fs-sm); color: var(--muted); }
.wm-rules li { display: flex; align-items: center; gap: 8px; transition: color .15s; }
.wm-rules li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #B9C3D1; transition: background-color .15s, border-color .15s; }
.wm-rules li.is-met { color: var(--ok); }
.wm-rules li.is-met::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.wm-match { font-size: var(--fs-sm); }
.wm-match.is-ok { color: var(--ok); }
.wm-match.is-err { color: var(--err); }
@media (max-width: 420px) { .wm-rules { grid-template-columns: 1fr; } }

/* checkbox */
.wm-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 24px; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.wm-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #B9C3D1; border-radius: 4px; background: #fff; cursor: pointer; transition: background-color .15s, border-color .15s; }
.wm-check input:checked { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.wm-check input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.wm-check span { padding-top: 1px; }

.wm-auth__divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--muted); font-size: var(--fs-sm); }
.wm-auth__divider::before, .wm-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.wm-auth__foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--muted); display: grid; gap: 8px; }
.wm-auth__fine { margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); }
.wm-auth__code { letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; font-size: 1.375rem !important; }

/* aside: the region atlas, in miniature */
.wm-auth__aside { position: relative; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px); }
.wm-auth__aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
}
.wm-auth__aside > * { position: relative; max-width: 520px; }
.wm-auth__aside h2 { color: #fff; font: 500 clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.wm-auth__aside p { margin: 14px 0 32px; color: rgba(255,255,255,.66); max-width: 44ch; }
.wm-auth__aside .wm-legend { grid-template-columns: 1fr; gap: 0; }
.wm-auth__aside .wm-legend a { padding: 12px 0; }
.wm-auth__aside .wm-legend li:last-child a { border-bottom: 0; }
.wm-auth__aside-foot { margin-top: 28px; font-size: var(--fs-sm); color: rgba(255,255,255,.55); }
@media (max-width: 960px) {
  .wm-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wm-auth__aside { display: none; }
  .wm-auth__main { padding-top: 40px; padding-bottom: 56px; align-items: flex-start; }
}
.wm-auth form + .wm-btn { margin-top: 10px; }
.wm-auth .wm-note a { color: inherit; }

/* ---------- brand lockup (logo concept C: six regions) ---------- */
.wm-brand { display: inline-flex; align-items: center; gap: 10px; }
.wm-logo .wm-brand__mark, .wm-brand__mark { width: 34px; height: 34px; flex: none; }
.wm-brand__name { font: 600 1.4375rem/1 var(--serif); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.wm-footer .wm-brand__mark { width: 38px; height: 38px; }
.wm-footer .wm-brand__name { font-size: 1.5625rem; }
@media (max-width: 380px) { .wm-brand__name { font-size: 1.25rem; } .wm-logo .wm-brand__mark { width: 30px; height: 30px; } }

/* =====================================================================
   Site forms (contact, donate) — shares the account-page validation look
   ===================================================================== */
.wm-form .validation-summary-valid { display: none; }
.wm-form .validation-summary-errors { padding: 14px 16px; margin-bottom: 22px; border: 1px solid #F0C6C3; border-radius: var(--r-md); background: #FBECEB; color: #8D241F; font-size: var(--fs-sm); }
.wm-form .validation-summary-errors ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; }
.wm-form .field-validation-error { font-size: var(--fs-sm); color: var(--err); }
.wm-form .field-validation-valid { display: none; }
.wm-form .input-validation-error, .wm-form .input-validation-error:hover { border-color: var(--err); }
.wm-form .input-validation-error:focus { box-shadow: 0 0 0 3px rgba(180,49,43,.2); border-color: var(--err); }
.wm-form .wm-btn[type=submit] { min-height: 50px; padding: 0 28px; font-size: .9375rem; }
.wm-form .wm-check { margin-bottom: 22px; }
.wm-form .wm-hint { font-weight: 400; }
.wm-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.wm-select:hover { border-color: #B9C3D1; }
.wm-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wm-counter { font-size: var(--fs-xs); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.wm-counter.is-over { color: var(--err); }

.wm-done { text-align: left; }
.wm-done .wm-auth__icon { margin-bottom: 18px; }
.wm-done h2 { font: 600 var(--fs-xl)/1.2 var(--serif); margin-bottom: 8px; }
.wm-done p { color: var(--muted); }

/* segmented control (one-time / monthly) */
.wm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 8px; background: var(--mist); border: 0; }
.wm-seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wm-seg label { position: relative; }
.wm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wm-seg span { display: grid; place-items: center; height: 44px; border-radius: 6px; font: 600 var(--fs-sm)/1 var(--sans); color: var(--ink-soft); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.wm-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,61,.12), 0 0 0 1px rgba(20,33,61,.06); }
.wm-seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.wm-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-amount-input { position: relative; }
.wm-amount-input::before { content: "$"; position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-weight: 600; pointer-events: none; }
.wm-amount-input .wm-input { padding-left: 30px; font-variant-numeric: tabular-nums; font-weight: 600; }
.wm-amount-input__suffix { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.wm-secure { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.wm-secure .wm-icon { width: 15px; height: 15px; }
.wm-testmode { display: flex; gap: 10px; padding: 12px 14px; margin-bottom: 20px; border: 1px dashed #DCCBA4; border-radius: var(--r-md); background: var(--brass-soft); color: #5C4B2A; font-size: var(--fs-sm); }
.wm-testmode code { font: 600 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255,255,255,.6); padding: 1px 5px; border-radius: 3px; }

/* about page */
.wm-about-index .wm-legend a { color: var(--ink); border-bottom-color: var(--rule); }
.wm-about-index .wm-legend__name { color: var(--ink); }
.wm-about-index .wm-legend__count { color: var(--muted); }
.wm-about-index .wm-legend__bar { background: var(--mist-2); }
.wm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.wm-steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink); }
.wm-steps li::before { content: counter(step); display: block; font: 600 var(--fs-2xl)/1 var(--serif); color: var(--brass-deep); margin-bottom: 14px; }
.wm-steps h3 { font: 600 var(--fs-lg)/1.25 var(--serif); margin-bottom: 8px; }
.wm-steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .wm-steps { grid-template-columns: 1fr; gap: 24px; } }
.wm-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wm-cta-row .wm-btn { min-height: 48px; }
@media (max-width: 420px) { .wm-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- article photo viewer ---------- */
.wm-viewer { display: grid; gap: 10px; }
.wm-viewer__stage { position: relative; aspect-ratio: 16 / 9; max-height: min(600px, 72vh); width: 100%; overflow: hidden; border-radius: var(--r-md); background: #0E1730; touch-action: pan-y; }
.wm-viewer__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.wm-viewer__zoom[disabled] { cursor: default; }
.wm-viewer__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease); }
.wm-viewer__img.is-swapping { opacity: .35; }
.wm-viewer__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 4px 16px rgba(10,18,40,.25); opacity: .92; transition: opacity .15s, background-color .15s; }
.wm-viewer__nav:hover { background: #fff; opacity: 1; }
.wm-viewer__nav--prev { left: 14px; }
.wm-viewer__nav--next { right: 14px; }
.wm-viewer__badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(14,23,48,.78); color: #fff; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .04em; pointer-events: none; }
.wm-viewer__count { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(14,23,48,.78); color: #fff; font: 600 var(--fs-xs)/1 var(--sans); font-variant-numeric: tabular-nums; pointer-events: none; }
.wm-viewer__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.wm-viewer__thumb { flex: none; width: 112px; height: 72px; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--mist-2); cursor: pointer; opacity: .55; outline-offset: 2px; transition: opacity .15s; }
.wm-viewer__thumb:hover { opacity: .85; }
.wm-viewer__thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--brass); }
.wm-viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .wm-viewer__nav { width: 40px; height: 40px; }
  .wm-viewer__nav--prev { left: 8px; } .wm-viewer__nav--next { right: 8px; }
  .wm-viewer__thumb { width: 84px; height: 56px; }
}
.wm-article-hero .wm-viewer + figcaption { margin-top: 8px; }

/* header fit at mid widths */
.wm-nav__link, .wm-signin { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1024px) {
  .wm-header__bar { gap: 16px; }
  .wm-search-trigger { min-width: 0; }
  .wm-search-trigger .wm-kbd { display: none; }
  .wm-nav__link { padding: 0 9px; }
}
@media (max-width: 1120px) and (min-width: 1024px) {
  .wm-search-trigger { font-size: 0; gap: 0; width: 42px; padding: 0; justify-content: center; }
}
.wm-contact-list span a { color: var(--brass-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.wm-contact-list span a:hover { color: var(--ink); }
