/* ==========================================================================
   Sharkwise — starter stylesheet
   --------------------------------------------------------------------------
   Local file only: no webfonts, no third-party CSS, no tracking.
   Edit brand colours and spacing in the :root block; keep class names stable.
   Layout is mobile-first and uses fluid type; no build step required.
   ========================================================================== */

:root {
  /* Brand palette — editorial teal and terracotta on warm paper */
  --ink: #16242c;
  --ink-soft: #3c4e58;
  --muted: #5b6a73;
  --paper: #fbfaf7;
  --panel: #f1eee7;
  --panel-strong: #e9e4d9;
  --rule: #dcd5c7;
  --accent: #0f6b6b;
  --accent-dark: #0a4b4b;
  --accent-soft: #e2efee;
  --accent-2: #b34a2c;
  --accent-2-dark: #8f3a20;
  --accent-2-soft: #f4d8cd;
  --warn: #8a4b1c;
  --warn-soft: #f8eee2;

  /* Layout */
  --max-width: 72rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 36, 44, 0.06), 0 14px 32px -22px rgba(22, 36, 44, 0.35);
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.35rem);
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

p {
  margin: 0 0 var(--space-3);
}

ul,
ol {
  margin: 0 0 var(--space-3);
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

strong {
  font-weight: 650;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 247, 0.96);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex: none;
}

.brand-mark svg {
  width: 1.45rem;
  height: 1.45rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--accent-2-soft);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-2-dark);
  box-shadow: inset 0 -2px 0 var(--accent-2);
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(54rem 26rem at 6% 125%, var(--accent-2-soft), transparent 68%),
    radial-gradient(60rem 24rem at 85% -10%, var(--accent-soft), transparent 70%),
    var(--paper);
}

.hero-inner {
  max-width: 52rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-2);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--accent-2-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-2-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 44rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: var(--space-4);
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--rule);
}

.button.secondary:hover {
  background: #fff;
  border-color: var(--accent-2);
  color: var(--accent-2-dark);
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-3);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.card .kicker {
  margin: 0 0 0.6rem;
  color: var(--accent-2-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.card .card-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.card .card-link a {
  color: var(--accent-2-dark);
}

.split {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .split.two {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  margin: 0;
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
}

.plain-list li:first-child {
  border-top: 0;
}

.plain-list a {
  font-weight: 600;
}

.plain-list .org-note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Interior pages / articles
   -------------------------------------------------------------------------- */

.page-header {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(44rem 20rem at 100% 0%, var(--accent-2-soft), transparent 66%),
    linear-gradient(180deg, var(--panel) 0%, var(--paper) 100%);
}

.page-header .container {
  max-width: 52rem;
}

.page-header h1 {
  margin-bottom: var(--space-2);
}

.page-header .lede {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.86rem;
}

.article-meta span {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Editorial illustrations
   Decorative, locally hosted SVG only (no third-party requests). Images are
   art-directed per article: a wide lead image in the page header and a 16:9
   illustration inside the body, plus the same lead art on the article cards.
   -------------------------------------------------------------------------- */

.article-hero {
  margin-top: var(--space-4);
}

.article-hero img,
.article-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.article-illustration {
  margin: var(--space-4) 0;
}

.card-media {
  margin: -1.4rem -1.4rem var(--space-3);
  border-bottom: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--panel);
  overflow: hidden;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media print {
  .article-hero,
  .article-illustration,
  .card-media {
    display: none !important;
  }
}

.prose-wrap {
  padding-block: clamp(2rem, 4vw, 3.25rem) var(--space-5);
}

.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose h3 {
  margin-top: var(--space-3);
}

.prose .toc {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

.prose .toc p {
  margin: 0 0 0.5rem;
  font-weight: 650;
}

.prose .toc ul {
  margin: 0;
}

.callout {
  margin: var(--space-3) 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-2-soft);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout.help {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.callout h2,
.callout h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.draft-note {
  margin: var(--space-3) 0 0;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.draft-note strong {
  color: var(--warn);
}

.source-list {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.source-list li {
  margin-bottom: 0.6rem;
}

.back-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-weight: 600;
}

/* External-link marker: outbound links to third-party help are visibly marked. */
a.external::after {
  content: " ↗";
  font-size: 0.85em;
  line-height: 1;
  white-space: nowrap;
}

.ext-note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: var(--space-5);
  border-top: 1px solid var(--rule);
  background: #16242c;
  color: #d7dee2;
  padding-block: var(--space-5) var(--space-3);
}

.site-footer a {
  color: #eaf2f2;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.1fr 0.7fr 1.2fr;
  }
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  margin: 0 0 0.8rem;
  color: #9fb0b8;
  font-size: 0.9rem;
}

.footer-blurb {
  color: #b7c3c8;
  font-size: 0.92rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 0 0.45rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-legal p {
  font-size: 0.9rem;
  color: #b7c3c8;
}

.footer-legal strong {
  color: #fff;
}

.footer-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a5ad;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Newsletter / survey call-outs
   -------------------------------------------------------------------------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band-text {
  flex: 1 1 22rem;
}

.cta-kicker {
  margin: 0 0 0.5rem;
  color: #c5e7e5;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
}

.cta-band p {
  max-width: 40rem;
  margin: 0;
  color: #dbeeec;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cta-band .button {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}

.cta-band .button:hover {
  background: var(--accent-soft);
  border-color: #fff;
  color: var(--accent-dark);
}

.cta-band .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.cta-band .button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: var(--space-2) 0 var(--space-3);
}

.email-display {
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem);
  font-weight: 650;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.anchor-offset {
  scroll-margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .prose {
    max-width: none;
  }

  a {
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   Related articles rail
   -------------------------------------------------------------------------- */
.related-section {
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule);
  background: var(--panel);
}

.related-section h2 {
  margin-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.related-card {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.related-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}

.related-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem 1.1rem;
}

.related-card-kicker {
  margin: 0;
  color: var(--accent-2-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

.related-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.related-card a:hover h3 {
  text-decoration: underline;
}

.related-card:hover {
  border-color: var(--accent);
}

.faq h3 {
  margin-top: var(--space-3);
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 650;
}

@media print {
  .related-section,
  .faq {
    display: none !important;
  }
}

.section-more {
  margin: var(--space-4) 0 0;
}

/* --------------------------------------------------------------------------
   Briefing prompt (newsletter popup)
   Shown by assets/js/newsletter-popup.js; no data is collected. The only
   actions are links to the newsletter page and to an email address.
   -------------------------------------------------------------------------- */
.briefing-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 44px -24px rgba(22, 36, 44, 0.45);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.briefing-popup.is-visible {
  opacity: 1;
  transform: none;
}

.briefing-popup-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.briefing-popup-close:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.briefing-popup-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.briefing-popup-title {
  margin: 0 0 0.4rem;
  padding-right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.briefing-popup-desc {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.briefing-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.briefing-popup-actions .button {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

@media (max-width: 36rem) {
  .briefing-popup {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .briefing-popup {
    transition: none;
  }
}

@media print {
  .briefing-popup {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   People / photo figures inside articles
   -------------------------------------------------------------------------- */
.article-figure {
  margin: var(--space-4) 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.article-figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media print {
  .article-figure {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Footer: trusted help organisations
   -------------------------------------------------------------------------- */
.footer-partners {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-partners h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}

.footer-partners p {
  margin: 0 0 0.8rem;
  max-width: 48rem;
  color: #b7c3c8;
  font-size: 0.87rem;
}

.footer-partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-partner-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #eaf2f2;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-partner-links a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Facts and figures
   -------------------------------------------------------------------------- */
.stats-intro p {
  max-width: 48rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-number {
  margin: 0 0 0.25rem;
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.stat-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
}

.stat-detail {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stat-source {
  margin: auto 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Compact primary nav on small screens */
@media (max-width: 40rem) {
  .site-nav ul {
    gap: 0.1rem 0.35rem;
  }

  .site-nav a {
    padding: 0.35rem 0.45rem;
    font-size: 0.9rem;
  }
}
