/* ---------- District crime-statistics ticker ---------- */
.ticker {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 3px solid var(--gold-500);
  color: #dbe6f2;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  font-size: .88rem;
}
.ticker__label {
  flex: 0 0 auto;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  white-space: nowrap;
}
.ticker__viewport { flex: 1 1 auto; overflow: hidden; position: relative; padding: .7rem 0; }
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  padding-left: 1.2rem;
  animation: ticker-scroll 42s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: .55rem; }
.ticker__item b { color: var(--white); }
.ticker__item .trend { font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.trend--down { color: #6fdc9f; }
.trend--up { color: #f0937f; }
.trend--flat { color: var(--steel-300); }
.ticker__note { color: #93a9c0; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect the user's motion preference — no scrolling, wrap instead */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; white-space: normal; flex-wrap: wrap; gap: .5rem 2rem; padding: .2rem 1.2rem; }
  .ticker__viewport { padding: .6rem 0; }
}

@media (max-width: 720px) {
  .ticker__label { font-size: .66rem; padding: 0 .7rem; }
  .ticker__track { animation-duration: 28s; font-size: .82rem; }
}

/* ==========================================================================
   OGA SECURITIES — Global Security & Crime-Intelligence Consortium
   Shared stylesheet for all 15 pages.
   Palette: deep navy (command), signal gold (alert), steel grey (support)
   ========================================================================== */

:root {
  --navy-900: #050d1a;
  --navy-800: #0a1a2f;
  --navy-700: #102a47;
  --navy-600: #17395f;
  --gold-500: #e2a418;
  --gold-400: #f5c04a;
  --steel-300: #9db2c7;
  --steel-500: #5b7793;
  --paper: #f4f7fb;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #1e8e5a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(5, 13, 26, 0.18);
  --shadow-sm: 0 2px 10px rgba(5, 13, 26, 0.10);
  --maxw: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: #1c2b3a;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-500); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.22; color: var(--navy-800); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -0.01em; }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.03rem; text-transform: uppercase; letter-spacing: .09em; color: var(--steel-500); }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }

.section { padding: 4.2rem 0; }
.section--tight { padding: 2.8rem 0; }
.section--navy { background: var(--navy-800); color: #dbe6f2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold-400); }
.section--paper { background: var(--white); }

.lede { font-size: 1.12rem; color: #3a4d61; max-width: 70ch; }
.section--navy .lede { color: #b9cbdd; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .78rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--gold-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--ghost { border-color: var(--steel-500); color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--onnavy { border-color: var(--gold-400); color: var(--gold-400); }
.btn--onnavy:hover { background: var(--gold-400); color: var(--navy-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy-900);
  color: #93a9c0;
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between; }
.topbar strong { color: var(--gold-400); }
.topbar a { color: #c9d8e8; }

.masthead {
  background: var(--navy-800);
  border-bottom: 3px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 60;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-400), var(--gold-500) 55%, #9c6f06);
  display: grid; place-items: center;
  color: var(--navy-900);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  box-shadow: 0 0 0 3px rgba(226,164,24,.22);
  flex: 0 0 auto;
}
.brand__text { line-height: 1.15; }
.brand__text b { color: var(--white); font-size: 1.24rem; letter-spacing: .01em; display: block; }
.brand__text span { color: var(--steel-300); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--steel-500);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  font-size: 1rem;
  cursor: pointer;
}

.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.menu a {
  display: block;
  color: #d7e3f0;
  padding: .55rem .72rem;
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.menu a:hover { background: var(--navy-700); color: var(--white); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--gold-400); background: rgba(226,164,24,.12); }
.menu .menu-emergency a { background: var(--danger); color: #fff; }
.menu .menu-emergency a:hover { background: #a5311f; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(5,13,26,.93) 0%, rgba(10,26,47,.86) 48%, rgba(16,42,71,.72) 100%),
    repeating-linear-gradient(45deg, #0d2137 0 12px, #102a47 12px 24px);
  color: #e6eefa;
  padding: 4.6rem 0 4rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 55%;
  height: 420px;
  background: radial-gradient(circle, rgba(226,164,24,.20), transparent 65%);
  pointer-events: none;
}
.hero h1 { color: var(--white); max-width: 22ch; }
.hero .lede { color: #c2d3e6; font-size: 1.16rem; }
.hero__grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 2.6rem; align-items: center; position: relative; z-index: 2; }
.hero__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}
.hero__panel h3 { color: var(--gold-400); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.hero__panel ul { list-style: none; padding: 0; margin: 0; }
.hero__panel li { display: flex; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .92rem; color: #d6e2f0; }
.hero__panel li:last-child { border-bottom: 0; }
.hero__panel b { color: var(--white); }

/* Page banner for interior pages */
.banner {
  background: linear-gradient(115deg, var(--navy-900), var(--navy-700));
  color: #dbe6f2;
  padding: 3.1rem 0 2.7rem;
  border-bottom: 3px solid var(--gold-500);
}
.banner h1 { color: var(--white); margin-bottom: .35rem; }
.banner .lede { color: #b6c9dd; margin-bottom: 0; }
.crumbs { font-size: .82rem; color: var(--steel-300); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-400); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid #dde4ee;
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card--flat { border-top-color: var(--navy-600); }
.card--danger { border-top-color: var(--danger); }

.icon-badge {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--navy-800);
  color: var(--gold-400);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: .9rem;
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.stat b { display: block; font-size: 1.9rem; color: var(--gold-400); line-height: 1.1; }
.stat span { font-size: .84rem; color: #b7c9dc; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.4rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .93rem; min-width: 560px; }
caption { caption-side: top; text-align: left; font-size: .84rem; color: var(--steel-500); padding-bottom: .6rem; }
th, td { padding: .75rem .85rem; border-bottom: 1px solid #e2e8f2; text-align: left; vertical-align: top; }
thead th { background: var(--navy-800); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:nth-child(even) { background: #f8fafd; }
tbody tr:hover { background: #eef4fb; }

/* ---------- Callouts ---------- */
.callout {
  border-left: 5px solid var(--gold-500);
  background: #fdf8ec;
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.callout--alert { border-left-color: var(--danger); background: #fdf1ef; }
.callout--info { border-left-color: var(--navy-600); background: #eef3fa; }
.callout h4 { margin-bottom: .35rem; color: var(--navy-800); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Media: figures & photo strips ---------- */
.figure {
  margin: 0;
  background: var(--white);
  border: 1px solid #dde4ee;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #cdd8e4;
}
.figure figcaption {
  padding: .85rem 1.1rem;
  font-size: .86rem;
  color: #46596d;
  border-top: 3px solid var(--gold-500);
}
.figure figcaption b { display: block; color: var(--navy-800); font-size: .95rem; }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-strip .figure { height: 100%; }

/* Split section: image beside copy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.split--flip .split__media { order: 2; }

/* Hero media panel */
.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(5,13,26,.45);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero__media figcaption {
  background: rgba(5,13,26,.85);
  color: #b9cbdd;
  font-size: .8rem;
  padding: .6rem .9rem;
  border-top: 3px solid var(--gold-500);
}

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .split--flip .split__media { order: 0; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ---------- Accordion (explanation blocks) ---------- */
.accordion { border: 1px solid #dde4ee; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion details { border-bottom: 1px solid #e6ecf4; }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--gold-500); font-weight: 800; }
.accordion details[open] summary::after { content: "–"; }
.accordion details[open] summary { background: #f5f8fc; }
.accordion .acc-body { padding: 0 1.2rem 1.15rem; font-size: .96rem; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .88rem; color: var(--navy-800); }
input, select, textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: .68rem .8rem;
  border: 1px solid #c9d5e4;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #1c2b3a;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .78rem; color: var(--steel-500); }
.required { color: var(--danger); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 3px solid var(--gold-500); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -11px; top: .45rem;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--gold-500);
}
.timeline b { display: block; color: var(--navy-800); }
.timeline span { font-size: .84rem; color: var(--steel-500); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Partner strip ---------- */
.partners { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; list-style: none; margin: 1.6rem 0 0; }
.partners li {
  border: 1px solid var(--steel-500);
  border-radius: 999px;
  padding: .45rem 1.05rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--steel-500);
  background: var(--white);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #8fa6bd; padding: 3.2rem 0 1.4rem; font-size: .9rem; }
.footer h4 { color: var(--gold-400); font-size: .8rem; letter-spacing: .13em; }
.footer a { color: #c2d3e6; }
.footer a:hover { color: var(--gold-400); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .82rem;
}
.disclaimer {
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.4);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .82rem;
  color: #e7b9b2;
  margin-top: 1.4rem;
}

/* ---------- Skip link & a11y ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold-500); color: var(--navy-900);
  padding: .7rem 1rem; z-index: 200; font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem;
  background: var(--navy-800); color: var(--gold-400);
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 70;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy-800);
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 1.2rem 1.1rem;
    border-bottom: 3px solid var(--gold-500);
    max-height: 70vh;
    overflow-y: auto;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: .7rem .4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .form-grid, .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES — loaded for all viewports.
   These deliberately sit last in the file so they win on equal specificity.
   Targets: phone (<=480), large phone (481-640), tablet (641-900).
   ========================================================================== */

/* --- Global safety: never allow sideways scroll from one wide element --- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
.wrap { width: min(100% - 2rem, var(--maxw)); }

/* --- Header: allow the brand to shrink instead of pushing the button off --- */
.brand { min-width: 0; }
.brand__mark { width: 40px; height: 40px; font-size: .74rem; }
.brand__text { min-width: 0; }
.brand__text b { font-size: 1.06rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__text span { font-size: .62rem; letter-spacing: .1em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { flex: 0 0 auto; padding: .55rem .75rem; }

/* --- Topbar: stack the two facts rather than squeeze them --- */
@media (max-width: 760px) {
  .topbar { font-size: .76rem; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: .2rem; padding-block: .35rem; }
  .topbar .wrap > span { display: block; }
}

/* --- Masthead becomes compact on small screens --- */
@media (max-width: 900px) {
  .masthead .wrap { min-height: 62px; gap: .6rem; }
  .menu {
    max-height: calc(100vh - 62px);
    padding: .4rem 1rem 1.2rem;
  }
  .menu a { padding: .85rem .5rem; font-size: .95rem; }
}

/* --- Hero --- */
@media (max-width: 900px) {
  .hero { padding: 2.8rem 0 2.4rem; }
  .hero h1 { max-width: none; font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero .lede { font-size: 1.02rem; }
  .hero__grid { gap: 1.8rem; }
  .hero__media img { aspect-ratio: 16 / 10; }
}

/* --- Banner (interior page headers) --- */
@media (max-width: 900px) {
  .banner { padding: 2rem 0 1.8rem; }
  .banner h1 { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .crumbs { font-size: .76rem; margin-bottom: .7rem; }
}

/* --- Sections & rhythm --- */
@media (max-width: 900px) {
  .section { padding: 3.2rem 0; }
  .section--tight { padding: 2.2rem 0; }
  .lede { font-size: 1.04rem; }
}
@media (max-width: 480px) {
  .section { padding: 2.6rem 0; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.26rem; }
  h3 { font-size: 1.1rem; }
  .card { padding: 1.15rem; }
  .callout { padding: .95rem 1.05rem; }
}

/* --- Buttons: full width on phones, easier tap targets --- */
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; gap: .6rem; }
  .btn { width: 100%; text-align: center; padding: .85rem 1.1rem; }
  .btn-row .btn { width: 100%; }
}

/* --- Stats --- */
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat { padding: .85rem .9rem; }
  .stat b { font-size: 1.45rem; }
  .stat span { font-size: .76rem; }
}

/* --- Tables: readable on a phone ---
   Wrapped tables scroll horizontally with a visible hint; unwrapped ones
   are forced to scroll too, so no table can break the layout. */
.table-scroll { -webkit-overflow-scrolling: touch; position: relative; }
.table-scroll::after {
  content: "swipe to see more →";
  display: block;
  font-size: .72rem;
  color: var(--steel-500);
  padding-top: .4rem;
  letter-spacing: .04em;
}
@media (max-width: 900px) {
  table { min-width: 520px; font-size: .86rem; }
  th, td { padding: .6rem .65rem; }
  thead th { font-size: .72rem; }
}
@media (max-width: 560px) {
  main > section > .wrap > table,
  .section > .wrap > table { display: block; overflow-x: auto; }
}

/* --- Ticker: keep the label legible and the band short on a phone --- */
@media (max-width: 720px) {
  .ticker { font-size: .8rem; }
  .ticker__label { font-size: .62rem; letter-spacing: .08em; padding: 0 .6rem; }
  .ticker__viewport { padding: .55rem 0; }
  .ticker__track { gap: 2rem; animation-duration: 26s; }
}
@media (max-width: 480px) {
  .ticker { flex-direction: column; align-items: stretch; }
  .ticker__label { justify-content: center; padding: .35rem .6rem; }
  .ticker__track { animation-duration: 22s; padding-left: .9rem; }
}

/* --- Forms: comfortable on touch --- */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; gap: .9rem; }
  input, select, textarea { font-size: 16px; padding: .75rem .8rem; } /* 16px stops iOS zoom-on-focus */
  textarea { min-height: 110px; }
  .field--full { grid-column: auto; }
}

/* --- Footer --- */
@media (max-width: 900px) {
  .footer { padding: 2.4rem 0 1.2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer__base { flex-direction: column; gap: .4rem; }
  .footer__base span { display: block; }
}

/* --- Media blocks --- */
@media (max-width: 900px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .split { gap: 1.5rem; }
  .figure figcaption { font-size: .8rem; padding: .7rem .9rem; }
}
@media (max-width: 520px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* --- Accordion: bigger tap target for the summary row --- */
@media (max-width: 900px) {
  .accordion summary { padding: 1rem; font-size: .97rem; }
  .accordion .acc-body { padding: 0 1rem 1.05rem; font-size: .93rem; }
}

/* --- Timeline --- */
@media (max-width: 560px) {
  .timeline li { padding: 0 0 1.3rem 1.3rem; }
  .timeline span { font-size: .76rem; }
}

/* --- Back to top: clear of the thumb zone, a little smaller --- */
@media (max-width: 560px) {
  .to-top { right: .8rem; bottom: .8rem; width: 42px; height: 42px; font-size: 1rem; }
}

/* --- Partner pills --- */
@media (max-width: 560px) {
  .partners li { font-size: .78rem; padding: .4rem .8rem; }
}

/* --- Very small phones (<=360px): last-resort tightening --- */
@media (max-width: 380px) {
  .wrap { width: calc(100% - 1.4rem); }
  .brand__text b { font-size: .98rem; }
  .brand__text span { display: none; }
  .card { padding: 1rem; }
  .stats { grid-template-columns: 1fr; }
}

/* --- Landscape phones: don't let the nav menu exceed the viewport --- */
@media (max-height: 520px) {
  .menu { max-height: calc(100vh - 60px); }
}

/* --- Touch devices: no hover-only reliance --- */
@media (hover: none) {
  .ticker__track { animation-play-state: running; }
  .card:hover { background: var(--white); }
  tbody tr:hover { background: inherit; }
}

/* ==========================================================================
   MOBILE NAV FIX
   Two faults this corrects:
   1. The open .menu panel had no z-index of its own, so it painted beneath
      the hero / ticker (both create their own stacking contexts). The links
      were present and clickable but invisible — which looks like a dead button.
   2. A landscape max-height rule could cap the panel to almost nothing.
   ========================================================================== */

/* The panel must sit above everything in the page body. */
.masthead { z-index: 900; }
.menu {
  z-index: 950;
  box-shadow: 0 18px 40px rgba(5, 13, 26, .5);
}

@media (max-width: 900px) {
  /* Beat the landscape cap and the late .menu rule by re-declaring here,
     and give the closed panel a real target size when open. */
  .menu.is-open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 950;
    min-height: 0;
    max-height: calc(100dvh - 62px);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--navy-800);
    border-bottom: 3px solid var(--gold-500);
    box-shadow: 0 18px 40px rgba(5, 13, 26, .55);
  }
  /* A tappable row, not a thin strip */
  .menu.is-open a { min-height: 44px; display: flex; align-items: center; }
}

/* Landscape phones: real room, and beat the later max-height rule. */
@media (max-height: 560px) and (max-width: 900px) {
  .menu.is-open { max-height: calc(100dvh - 58px); max-height: calc(100vh - 58px); }
}

/* Keep the page body from scrolling behind the open panel on small screens. */
@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
}
