/*
 * WeStorix design system - tokens and components.
 * One family (Inter), eight brand colors, flat and static.
 * Every rule is scoped to .wx-* classes so it does not fight the Salient parent theme.
 */

:root {
  --wx-navy: #253761;
  --wx-blue: #4F71BF;
  --wx-blue-100: #E1EAF6;
  --wx-blue-50: #F3F5FB;
  --wx-teal: #41889C;
  --wx-green-100: #C6EFCE;
  --wx-yellow-50: #FFF6E8;
  --wx-orange: #B86029;
  --wx-ink: #1F2A44;          /* body text: navy darkened for long reading */
  --wx-white: #FFFFFF;

  --wx-font: Inter, system-ui, Arial, sans-serif;
  --wx-h1: clamp(2.125rem, 1.35rem + 3.2vw, 3.5rem);       /* 34 → 56 px */
  --wx-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);       /* 26 → 36 px */
  --wx-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);     /* 19 → 22 px */
  --wx-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem); /* 17 → 18 px */
  --wx-ui: 1rem;
  --wx-small: 0.875rem;

  --wx-wrap: 1200px;
  --wx-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wx-section: clamp(3.5rem, 8vw, 6.5rem);
  --wx-radius: 6px;
  --wx-radius-panel: 14px;
  --wx-header-h: 72px;
}

/* ---------- Base (scoped) ---------- */
.wx, .wx * { box-sizing: border-box; }
.wx {
  font-family: var(--wx-font);
  font-size: var(--wx-body);
  line-height: 1.55;
  color: var(--wx-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.wx h1, .wx h2, .wx h3 {
  font-family: var(--wx-font);
  color: var(--wx-navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.wx h1 { font-size: var(--wx-h1); line-height: 1.08; letter-spacing: -0.025em; }
.wx h2 { font-size: var(--wx-h2); line-height: 1.15; }
.wx h3 { font-size: var(--wx-h3); line-height: 1.25; letter-spacing: -0.005em; }
.wx p { margin: 0 0 1em; padding: 0; max-width: 68ch; } /* padding: the parent theme adds space under every paragraph */
.wx a { color: var(--wx-navy); text-decoration: underline; text-decoration-color: var(--wx-blue); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.wx a:hover { text-decoration-color: var(--wx-navy); }
.wx a:focus-visible, .wx button:focus-visible, .wx input:focus-visible, .wx select:focus-visible, .wx textarea:focus-visible {
  outline: 3px solid var(--wx-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.wx-on-dark a:focus-visible, .wx-hero a:focus-visible, .wx-cta a:focus-visible, .wx-footer a:focus-visible { outline-color: #fff; }
.wx img, .wx svg { max-width: 100%; height: auto; display: block; }
.wx-statement { font-style: italic; font-weight: 400; color: var(--wx-navy); font-size: var(--wx-h3); line-height: 1.4; max-width: 40ch; }

.wx-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--wx-navy); color: #fff; padding: 0.75rem 1rem; }
.wx-skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Layout ---------- */
.wx-wrap { width: 100%; max-width: calc(var(--wx-wrap) + 2 * var(--wx-gutter)); margin-inline: auto; padding-inline: var(--wx-gutter); }
/* Full-bleed band that also works inside a centered theme container */
.wx-band { width: 100vw; margin-left: calc(50% - 50vw); }
.wx-section { padding-block: var(--wx-section); background: var(--wx-white); }
.wx-section--tint { background: var(--wx-blue-50); }
.wx-grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.wx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.wx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.wx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.wx-grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
/* WordPress inserts line breaks between items typed on separate lines; inside a grid each one
   would take up a cell and push the next item out of place. */
.wx-grid > br, .wx-grid > p:empty, .wx-actions > br, .wx-split > br, .wx-split > p:empty { display: none; }
.wx-head { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.wx-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.wx-head--row h2 { margin-bottom: 0; }

.wx-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--wx-small); font-weight: 600; letter-spacing: 0.01em;
  color: var(--wx-navy); margin: 0 0 1rem;
}
.wx-eyebrow::before { content: ""; width: 1.75rem; height: 3px; background: var(--wx-teal); flex: none; }

/* ---------- Buttons ---------- */
.wx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font-family: var(--wx-font); font-size: var(--wx-ui); font-weight: 600; line-height: 1.2;
  border-radius: var(--wx-radius); border: 2px solid var(--wx-navy);
  background: var(--wx-navy); color: #fff; text-decoration: none; cursor: pointer;
}
.wx a.wx-btn { color: #fff; text-decoration: none; }
.wx-btn:hover { background: #1b2948; border-color: #1b2948; }
/* Call to action. On the dark bands (hero, CTA band) the CTA is light green with dark blue text:
   9.3:1 for the label and 9.3:1 against the band. On light backgrounds it is the dark blue button.
   Orange is not used for buttons; it stays reserved for UPS / critical supply in illustrations. */
.wx-btn--cta, .wx a.wx-btn--cta { background: var(--wx-navy); border-color: var(--wx-navy); color: #fff; }
.wx-hero .wx-btn--cta, .wx-hero a.wx-btn--cta,
.wx-cta .wx-btn--cta, .wx-cta a.wx-btn--cta { background: var(--wx-green-100); border-color: var(--wx-green-100); color: var(--wx-navy); }
.wx-hero .wx-btn--cta:hover, .wx-cta .wx-btn--cta:hover { background: #a9e3b5; border-color: #a9e3b5; }
.wx-btn--ghost, .wx a.wx-btn--ghost { background: transparent; color: var(--wx-navy); }
.wx-btn--ghost:hover { background: var(--wx-blue-100); border-color: var(--wx-navy); }
.wx-hero .wx-btn--ghost, .wx-hero a.wx-btn--ghost { color: #fff; border-color: #fff; }
.wx-hero .wx-btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.wx-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.wx-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--wx-blue-100); height: var(--wx-header-h); }
.wx-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.wx-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.375rem; color: var(--wx-navy); letter-spacing: -0.02em; }
.wx a.wx-logo { text-decoration: none; }
.wx-logo img { width: 40px; height: 40px; }
.wx-nav ul { display: flex; gap: clamp(0.75rem, 1.6vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.wx .wx-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--wx-navy); text-decoration: none; padding: 0.5rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.wx .wx-nav a:hover, .wx .wx-nav a[aria-current="page"] { border-bottom-color: var(--wx-teal); }
.wx-header__tools { display: flex; align-items: center; gap: 0.6rem; }
.wx-header .wx-btn { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.9375rem; white-space: nowrap; }
.wx-burger { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--wx-blue-100); border-radius: var(--wx-radius); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.wx-burger span, .wx-burger span::before, .wx-burger span::after { display: block; width: 1.25rem; height: 2px; background: var(--wx-navy); content: ""; position: relative; }
.wx-burger span::before { position: absolute; top: -6px; }
.wx-burger span::after { position: absolute; top: 6px; }
@media (max-width: 1080px) {
  .wx-nav { display: none; position: absolute; top: var(--wx-header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--wx-blue-100); padding: 0.5rem var(--wx-gutter) 1.25rem; }
  .wx-nav.is-open { display: block; }
  .wx-nav ul { flex-direction: column; gap: 0; }
  .wx .wx-nav a { display: block; padding: 0.9rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--wx-blue-100); }
  .wx-burger { display: inline-flex; }
}

/* ---------- Hero (static image, flat overlay) ---------- */
.wx-hero { position: relative; background: var(--wx-navy); color: #fff; isolation: isolate; overflow: hidden; }
.wx-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
/* ".wx img { height: auto }" above would otherwise win and leave a wide picture short of the hero's bottom edge. */
.wx.wx-hero > .wx-hero__img, .wx .wx-hero > .wx-hero__img { height: 100%; max-width: none; object-fit: cover; }
.wx-hero::after { content: ""; position: absolute; inset: 0; background: var(--wx-navy); opacity: 0.8; z-index: -1; }
.wx-hero__in { padding-block: clamp(4rem, 11vw, 8.5rem); max-width: 46rem; }
/* The hero carries .wx on the same element, so both forms are needed. */
.wx.wx-hero h1, .wx.wx-hero p, .wx .wx-hero h1, .wx .wx-hero p { color: #fff; }
.wx-hero .wx-eyebrow { color: #fff; }
.wx-hero .wx-eyebrow::before { background: var(--wx-green-100); }
.wx-hero__lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem); max-width: 40rem; }
.wx-hero__claim { display: block; margin-top: 1em; font-weight: 600; }
/* Homepage only: the WeStorix sphere on the right of the hero, above the picture and its overlay.
   Decorative, so it is a background; hidden where there is no room beside the text. */
.wx-hero .wx-wrap { position: relative; z-index: 1; }
@media (min-width: 1000px) {
  body.home .wx-hero::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    top: 7%; right: max(4vw, calc((100vw - var(--wx-wrap)) / 2 - 2rem));
    width: min(34vw, 30rem); aspect-ratio: 868 / 776;
    background: url("../img/westorix-sphere.webp") no-repeat center / contain;
    opacity: 0.9;
  }
}
.wx-hero--short .wx-hero__in { padding-block: clamp(3rem, 7vw, 5.5rem); }

.wx-slimlink { background: var(--wx-blue-100); padding-block: 0.8rem; font-size: 0.9375rem; font-weight: 500; }
.wx.wx-slimlink a, .wx .wx-slimlink a { text-decoration-thickness: 1px; }

/* ---------- Challenge / answer ---------- */
.wx-pair { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.wx-pair figure { margin: 0 0 1.5rem; }
.wx-pair img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--wx-radius); }
.wx-pair__answer { border-top: 4px solid var(--wx-teal); padding-top: 1.5rem; }
.wx-pair__challenge { border-top: 4px solid var(--wx-blue-100); padding-top: 1.5rem; }

/* ---------- Illustration panel ---------- */
.wx-illus { margin: 0; }
.wx-illus__frame { background: var(--wx-blue-50); border-radius: var(--wx-radius-panel); overflow-x: auto; }
.wx-section--tint .wx-illus__frame { background: #fff; }
.wx-illus__frame svg, .wx-illus__frame img { width: 100%; min-width: 640px; max-width: none; }
.wx-illus__legend { list-style: none; counter-reset: wx-callout; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.6rem 2rem; margin: 1.5rem 0 0; padding: 0; font-size: 0.9375rem; }
.wx-illus__legend li { counter-increment: wx-callout; display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.6rem; align-items: start; }
.wx-illus__legend li::before { content: counter(wx-callout); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--wx-navy); color: #fff; font-weight: 600; font-size: 0.8125rem; display: grid; place-items: center; }
.wx-illus__desc { margin-top: 1rem; font-size: 0.9375rem; }
.wx-illus__desc summary { cursor: pointer; font-weight: 600; color: var(--wx-navy); }

/* ---------- Key figure bar ---------- */
.wx-figures { background: var(--wx-navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.wx-figures dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin: 0; }
.wx-figures dl > div { border-left: 3px solid var(--wx-teal); padding-left: 1.125rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.wx-figures dd { margin: 0; font-size: clamp(1.25rem, 0.65rem + 1.9vw, 2.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.wx-figures dt { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.4; color: var(--wx-blue-100); max-width: 22ch; font-weight: 400; }
@media (max-width: 1100px) { .wx-figures dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cards: service, project, audience, news, leadership ---------- */
.wx-card { background: #fff; border: 1px solid var(--wx-blue-100); border-radius: var(--wx-radius); display: flex; flex-direction: column; }
.wx-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.wx .wx-card h3 { margin: 0; }
.wx .wx-card p { margin: 0; font-size: 1rem; }
.wx-card__more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: 1rem; }
.wx-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--wx-radius) var(--wx-radius) 0 0; background: var(--wx-blue-100); }

.wx-service { border: 0; border-top: 4px solid var(--wx-navy); border-radius: 0; background: transparent; }
.wx-service .wx-card__body { padding: 1.25rem 0 0; }

.wx-project__place { font-size: 0.9375rem; color: var(--wx-ink); }
.wx-project__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0.75rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--wx-blue-100); }
.wx-project__figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.wx-project__figs dd { margin: 0; font-size: 1.1875rem; font-weight: 700; color: var(--wx-navy); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-project__figs dt { font-size: 0.8125rem; line-height: 1.3; margin-top: 0.2rem; font-weight: 400; }
.wx-tag { display: inline-block; align-self: flex-start; font-size: 0.8125rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: var(--wx-radius); background: var(--wx-yellow-50); color: var(--wx-navy); border: 1px solid #f0dfc0; margin-top: 0.75rem; }

.wx-tile { background: var(--wx-blue-50); border-radius: var(--wx-radius); padding: 1.375rem; display: flex; flex-direction: column; gap: 0.5rem; border: 1px solid transparent; min-height: 100%; }
.wx a.wx-tile { text-decoration: none; }
.wx-section--tint .wx-tile { background: #fff; }
.wx-tile:hover { border-color: var(--wx-blue); }
.wx-tile svg { width: 2.25rem; height: 2.25rem; color: var(--wx-teal); margin-bottom: 0.5rem; }
.wx-tile strong { font-size: 1.0625rem; color: var(--wx-navy); line-height: 1.25; }
.wx-tile span { font-size: 0.9375rem; color: var(--wx-ink); line-height: 1.4; }

.wx-news__meta { font-size: 0.8125rem; font-weight: 600; color: var(--wx-navy); display: flex; flex-wrap: wrap; gap: 0.1rem 0.75rem; }
.wx-news__meta span, .wx-news__meta time { white-space: nowrap; }
.wx-news__meta time { font-weight: 400; }

.wx-leader__img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--wx-blue-100); border-radius: var(--wx-radius) var(--wx-radius) 0 0; }
.wx-leader__title { font-size: 0.9375rem; font-weight: 500; color: var(--wx-navy); }
.wx-leader__bio { font-size: 0.9375rem; }

/* ---------- Feature band (grid-friendly data center) ---------- */
.wx-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: var(--wx-blue-100); border-radius: var(--wx-radius-panel); padding: clamp(1.5rem, 4vw, 3rem); }
.wx-feature img, .wx-feature svg { border-radius: var(--wx-radius); background: #fff; }

/* ---------- Key facts (project pages) ---------- */
.wx-facts { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.wx-facts th, .wx-facts td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--wx-blue-100); vertical-align: top; }
.wx-facts th { width: 38%; font-weight: 600; color: var(--wx-navy); padding-right: 1rem; }

/* ---------- Publications ---------- */
.wx-pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wx-blue-100); }
.wx-pubs li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1.5rem; padding: 1.125rem 0; border-bottom: 1px solid var(--wx-blue-100); align-items: center; }
.wx-pubs small { display: block; font-size: 0.8125rem; }
@media (max-width: 600px) { .wx-pubs li { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.wx-cta { background: var(--wx-navy); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.wx-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.wx.wx-cta p, .wx .wx-cta p { color: #fff; font-size: var(--wx-h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 0; max-width: 24ch; text-wrap: balance; }

/* ---------- Footer ---------- */
.wx-footer { background: #1b2948; color: var(--wx-blue-100); padding-block: 3rem 2rem; font-size: 0.9375rem; }
.wx.wx-footer a, .wx .wx-footer a { color: #fff; text-decoration-color: rgba(255,255,255,0.4); text-decoration-thickness: 1px; }
.wx-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.wx.wx-footer h2, .wx .wx-footer h2 { font-size: 0.9375rem; color: #fff; letter-spacing: 0; margin-bottom: 0.75rem; }
.wx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.wx.wx-footer p, .wx .wx-footer p { margin: 0; }
.wx.wx-footer .wx-footer__tag, .wx .wx-footer__tag { color: #fff; font-style: italic; margin-top: 0.75rem; }
.wx-footer { width: 100%; clear: both; position: relative; }
.wx.wx-footer ul, .wx.wx-footer li { list-style: none; margin: 0; padding: 0; }
.wx.wx-footer li::before { content: none; }
.wx.wx-footer p { color: var(--wx-blue-100); }
.wx.wx-footer strong { color: #fff; }
.wx-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.wx-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (max-width: 800px) { .wx-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms (Gravity Forms inherits these through .wx) ---------- */
.wx label { font-weight: 600; font-size: 1rem; color: var(--wx-navy); display: block; margin-bottom: 0.35rem; }
.wx input[type="text"], .wx input[type="email"], .wx select, .wx textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem; font: inherit; color: var(--wx-ink);
  background: #fff; border: 1px solid #6f7c9c; border-radius: var(--wx-radius);
}
.wx .wx-error { color: #8a1f11; font-weight: 600; font-size: 0.9375rem; }

/* ---------- Staging marker ---------- */
/* Fixed tag in the corner: outside the page flow, so it cannot sit under the theme's fixed header or push the page down. */
.wx-staging { position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 99999; max-width: min(26rem, calc(100vw - 1.5rem)); background: var(--wx-yellow-50); color: var(--wx-navy); font: 600 0.8125rem/1.3 var(--wx-font); padding: 0.45rem 0.8rem; border: 1px solid #f0dfc0; border-radius: var(--wx-radius); }
.wx-placeholder { outline: 2px dashed var(--wx-orange); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) { .wx * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .wx-header, .wx-cta, .wx-staging { display: none; } }

/* ---------- Inner pages ---------- */
.wx-anchors { background: #fff; border-bottom: 1px solid var(--wx-blue-100); font-size: 0.9375rem; font-weight: 500; }
.wx-anchors .wx-wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; padding-block: 0.85rem; }
.wx.wx-anchors a, .wx .wx-anchors a { text-decoration-thickness: 1px; }

.wx-section .wx-wrap > h3 { margin-top: 1.75em; }
.wx-section .wx-wrap > .wx-illus, .wx-section .wx-wrap > .wx-grid, .wx-section .wx-wrap > .wx-split { margin-top: 2rem; }
.wx-section .wx-wrap > .wx-statement { margin-block: 1.75rem; }
.wx-gap-top { margin-top: 2rem; }

.wx-list { margin: 0 0 1.25em; padding: 0; list-style: none; max-width: 68ch; display: grid; gap: 0.6rem; }
.wx-list li { position: relative; padding-left: 1.4rem; }
/* The parent theme puts a round bullet on every list item; these lists carry their own marker. */
.wx .wx-list, .wx .wx-list > li, .wx .wx-panel-dark ul, .wx .wx-panel-dark li, .wx .wx-illus__legend, .wx .wx-illus__legend > li, .wx .wx-pubs, .wx .wx-pubs > li,
.wx.wx-list, .wx.wx-pubs, .wx.wx-pubs > li { list-style: none; }
.wx-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 3px; background: var(--wx-teal); }

.wx-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.wx-split h3:not(:first-child) { margin-top: 1.5em; }

.wx-panel-dark { background: var(--wx-navy); color: #fff; border-radius: var(--wx-radius-panel); padding: clamp(1.5rem, 3vw, 2.25rem); }
.wx .wx-panel-dark h3 { color: #fff; }
.wx-panel-dark ul { list-style: none; margin: 0; padding: 0; display: grid; }
.wx-panel-dark li { padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.22); font-weight: 500; }

.wx .wx-card__for { font-size: 0.8125rem; font-weight: 600; color: var(--wx-navy); }
.wx-proof { background: var(--wx-yellow-50); border-left: 4px solid var(--wx-teal); padding: 1rem 1.25rem; border-radius: 0 var(--wx-radius) var(--wx-radius) 0; }
.wx-section--tint .wx-card { border-color: #d3def0; }

.wx-feature .wx-illus__frame { background: #fff; }
.wx-feature .wx-illus__frame svg, .wx-feature .wx-illus__frame img { min-width: 0; }

.wx-pending { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: 2px dashed var(--wx-orange); border-radius: var(--wx-radius); background: var(--wx-yellow-50); font-size: 0.9375rem; color: var(--wx-ink); max-width: 68ch; }

/* ---------- Stat row (light) ---------- */
.wx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem clamp(1rem, 2.5vw, 2rem); margin: 2rem 0; }
.wx-stats > div { background: var(--wx-blue-100); border-radius: var(--wx-radius); padding: 1.25rem 1.375rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.wx-section--tint .wx-stats > div { background: #fff; }
.wx-stats dd { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--wx-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-stats dt { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.4; }

/* ---------- Legal pages ---------- */
.wx-legal { max-width: 62rem; }
.wx .wx-legal h2 { font-size: var(--wx-h3); margin-top: 2.25em; }
.wx .wx-legal h3 { font-size: 1.0625rem; margin-top: 1.5em; }
.wx-legal ul { margin: 0 0 1.25em; padding-left: 1.25rem; max-width: 68ch; }
.wx-legal li { margin-bottom: 0.4rem; }
.wx-legal li p { margin: 0; }
.wx-table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--wx-blue-100); border-radius: var(--wx-radius); }
.wx-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; line-height: 1.45; }
.wx-table th { background: var(--wx-blue-100); color: var(--wx-navy); font-weight: 600; text-align: left; }
.wx-table th, .wx-table td { padding: 0.65rem 0.8rem; vertical-align: top; border-bottom: 1px solid var(--wx-blue-100); }
.wx-table tr:last-child td { border-bottom: 0; }
.wx .wx-table p { margin: 0; max-width: none; }

/* Portraits arrive in mixed styles (color, black and white, different backgrounds).
   Showing all of them in grayscale gives the page one consistent look. */
.wx-leader__img { filter: grayscale(1); object-position: 50% 20%; }

/* ---------- Content photo ---------- */
.wx-photo { margin: 2rem 0; }
.wx-photo img { width: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--wx-radius-panel); }
.wx-photo--contain img { max-height: none; object-fit: contain; border-radius: 0; max-width: 56rem; margin-inline: auto; }

/* ---------- News article and News paging ---------- */
.wx-article { max-width: 68ch; }
.wx .wx-article p { font-size: var(--wx-body); }
.wx .wx-article h2 { margin-top: 1.5em; }
.wx .wx-article img { border-radius: var(--wx-radius); margin-block: 1.5rem; }
.wx-pages { margin-top: 2.5rem; }
.wx-pages .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wx .wx-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.8rem; border: 1px solid var(--wx-blue-100); border-radius: var(--wx-radius); text-decoration: none; font-weight: 600; }
.wx .wx-pages .page-numbers.current { background: var(--wx-navy); border-color: var(--wx-navy); color: #fff; }
.wx-pages .screen-reader-text { position: absolute; left: -9999px; }
