/* ============================================================
   THE PLAYER VAULT - Test Match Scorebook design system
   Bright English-cricket daylight. Precise, verified, human.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F5F8;
  --border: #D8E0E7;
  --border-hi: #AAB8C5;
  --navy: #071D49;
  --navy-2: #123363;
  --volt: #C8102E;
  --volt-dim: #A80D27;
  --volt-ink: #FFFFFF;
  --seam: #C8102E;
  --text: #10283D;
  --muted: #4E6273;
  --muted-2: #607283;
  --ok: #147B46;
  --warn: #A85A00;
  --blue: #1B5B9C;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --r: 8px;
  --r-sm: 6px;
  --shadow-pop: 0 26px 70px -34px rgba(7, 29, 73, .34);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* White daylight is the atmosphere. Keep the field clean. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 1;
}
main, header, footer, .topbar { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.04;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection { background: var(--volt); color: var(--volt-ink); }

/* ---------- crease line motif ---------- */
.crease {
  height: 2px;
  background: var(--seam);
  border: 0;
  margin: 0;
  opacity: .85;
}
.crease--left { background: var(--seam); }

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 32px -30px rgba(7, 29, 73, .5);
  position: sticky;
  top: 0;
  z-index: 50;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .015em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark .vault-glyph {
  width: 26px; height: 26px;
  border: 2px solid var(--navy);
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.wordmark em { font-style: normal; color: var(--seam); }

.topnav { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.topnav a {
  padding: 8px 14px;
  border-radius: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--navy); background: var(--surface-2); }
.topnav a.active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--seam); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

@media (max-width: 1280px) {
  .topbar { gap: 16px; padding-inline: 20px; }
  .wordmark { font-size: 18px; }
  .topnav { gap: 1px; margin-left: 0; }
  .topnav a { padding: 8px 9px; font-size: 13px; }
  .topbar-right { gap: 8px; }
  .topbar .btn--sm { padding-inline: 11px; }
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .035em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--volt {
  background: var(--volt);
  color: var(--volt-ink);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.btn--volt:hover { background: var(--volt-dim); box-shadow: 0 12px 28px -18px rgba(200,16,46,.65); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-hi);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--surface-2); }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn--lg { padding: 15px 30px; font-size: 15px; }
.btn[disabled] {
  background: var(--surface-2);
  color: var(--muted-2);
  cursor: not-allowed;
  box-shadow: none;
}
.btn[disabled]:hover { background: var(--surface-2); box-shadow: none; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.card--pad { padding: 22px; }

/* ---------- verified shield ---------- */
.shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.shield svg { width: 15px; height: 15px; flex: none; }
.shield--badge {
  background: rgba(20,123,70,.08);
  border: 1px solid rgba(20,123,70,.28);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-hi);
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.chip--volt { color: var(--navy); border-color: rgba(7,29,73,.3); background: rgba(7,29,73,.05); }
.chip--seam { color: var(--seam); border-color: rgba(200,16,46,.35); background: rgba(200,16,46,.06); }
.chip--ok   { color: var(--ok); border-color: rgba(20,123,70,.3); background: rgba(20,123,70,.06); }
.chip--warn { color: var(--warn); border-color: rgba(168,90,0,.35); background: rgba(168,90,0,.07); }
.chip--outline { background: transparent; }

/* selectable chips (role picker etc.) */
.chip--select {
  cursor: pointer;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all .15s;
  color: var(--muted);
}
.chip--select:hover { border-color: var(--muted); color: var(--text); }
.chip--select.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- video thumb (hero element) ---------- */
.vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: #E9EEF3;
  isolation: isolate;
}
.vthumb .art {
  position: absolute; inset: 0;
  background: #DDE6EE;
}
/* faint pitch lines in the art */
.vthumb .art::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(transparent 62%, rgba(7,29,73,.12) 62.5%, transparent 63%),
    linear-gradient(90deg, transparent 46%, rgba(7,29,73,.1) 46.5%, rgba(7,29,73,.1) 53.5%, transparent 54%);
}
.vthumb .art--2 { background: #E7DFDB; }
.vthumb .art--3 { background: #E1E9E4; }
.vthumb .silhouette {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  color: rgba(7,29,73,.18);
}
.vthumb .silhouette svg { width: 46%; height: auto; }
.vthumb .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.vthumb .play span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(7,29,73,.88);
  border: 1.5px solid rgba(255,255,255,.65);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  transition: all .18s;
}
.vthumb .play svg { width: 18px; height: 18px; fill: var(--text); margin-left: 3px; }
.vthumb:hover .play span { background: var(--seam); border-color: var(--seam); transform: scale(1.06); }
.vthumb:hover .play svg { fill: var(--volt-ink); }
.vthumb .dur {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(7,29,73,.9);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.vthumb .tag-tl {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 2;
}
.vthumb--sm .play span { width: 38px; height: 38px; }
.vthumb--sm .play svg { width: 13px; height: 13px; }
.vthumb--sm .dur { font-size: 10.5px; padding: 2px 6px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.field .help { font-size: 12.5px; color: var(--muted-2); }
.input, select.input, textarea.input {
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 11px 14px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(7,29,73,.12); }
.input::placeholder { color: var(--muted-2); }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2396A1AD' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* toggle */
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.toggle .tk {
  position: absolute; inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  transition: background .18s, border-color .18s;
}
.toggle .tk::after {
  content: '';
  position: absolute;
  top: 2.5px; left: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .18s, background .18s;
}
.toggle input:checked + .tk { background: rgba(7,29,73,.14); border-color: var(--navy); }
.toggle input:checked + .tk::after { transform: translateX(18px); background: var(--navy); }

/* slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--navy) var(--fill, 50%), var(--border-hi) var(--fill, 50%));
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--navy);
  cursor: grab;
}

/* ---------- data table ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.dtable td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.dtable td.num, .dtable th.num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.dtable tr:last-child td { border-bottom: 0; }

/* ---------- misc ---------- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--seam);
  font-weight: 600;
}

.answer-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(20,123,70,.24);
  background: rgba(20,123,70,.06);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--text);
}
.answer-banner strong { color: var(--ok); font-weight: 600; }

/* status dots */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--volt { background: var(--ok); box-shadow: none; }
.dot--grey { background: var(--muted-2); }
.dot--seam { background: var(--seam); }
.dot--warn { background: var(--warn); }

/* reveal animation */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; }
.d4 { animation-delay: .24s; } .d5 { animation-delay: .3s; } .d6 { animation-delay: .36s; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ============================================================
   YOUTH PLATFORM COMPONENTS (added 2026-07-18)
   Age bands, safeguarding badges, growth chart, visibility dial,
   completeness ring and the warmer parent-facing surface.
   ============================================================ */

/* ---------- age band chips ---------- */
.agechip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--border-hi);
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.agechip--on { border-color: var(--navy); color: #fff; background: var(--navy); }
.agechip--junior { border-color: rgba(27,91,156,.32); color: var(--blue); background: rgba(27,91,156,.06); }
.agechip--senior { border-color: rgba(7,29,73,.3); color: var(--navy); background: rgba(7,29,73,.05); }

.ageband-rail {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.ageband-rail .sep {
  width: 18px; height: 2px;
  background: var(--navy);
  flex: none;
}

/* ---------- safeguarding badges ---------- */
.dbs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid rgba(7,29,73,.26);
  background: #fff;
  white-space: nowrap;
}
.dbs-badge svg { width: 14px; height: 14px; flex: none; }

.guard-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--r);
  border: 1px solid rgba(27,91,156,.24);
  background: rgba(27,91,156,.05);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.guard-note svg { flex: none; margin-top: 1px; }
.guard-note strong { color: var(--blue); font-weight: 600; }

/* ---------- growth chart ---------- */
.growth {
  position: relative;
  width: 100%;
}
.growth svg { width: 100%; height: auto; display: block; overflow: visible; }
.growth .gc-grid { stroke: var(--border); stroke-width: 1; }
.growth .gc-band { fill: rgba(7,29,73,.05); }
.growth .gc-line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.growth .gc-area { fill: url(#gcFade); }
.growth .gc-dot { fill: var(--seam); stroke: var(--bg); stroke-width: 2.5; }
.growth .gc-label { fill: var(--muted-2); font-family: var(--font-mono); font-size: 10px; }
.growth .gc-value { fill: var(--text); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }

.maturation-bar {
  display: flex;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  margin: 10px 0 8px;
}
.maturation-bar span { flex: 1; }
.maturation-bar .mb-pre { background: rgba(27,91,156,.35); }
.maturation-bar .mb-circa { background: rgba(200,16,46,.36); }
.maturation-bar .mb-post { background: rgba(150,161,173,.3); }
.maturation-bar .on { box-shadow: inset 0 0 0 2px var(--navy); }
.maturation-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: .04em;
}

/* ---------- visibility dial ---------- */
.visdial { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border-hi); border-radius: var(--r); overflow: hidden; }
.visdial .vd-opt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  background: var(--surface);
}
.visdial .vd-opt:last-child { border-bottom: 0; }
.visdial .vd-opt:hover { background: var(--surface-2); }
.visdial .vd-opt.on { background: rgba(7,29,73,.05); box-shadow: inset 1px 0 0 var(--navy); }
.visdial .vd-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-hi);
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: border-color .15s;
}
.visdial .vd-opt.on .vd-radio { border-color: var(--navy); }
.visdial .vd-opt.on .vd-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy);
}
.visdial h5 { font-size: 14.5px; margin-bottom: 3px; display: flex; align-items: center; gap: 9px; }
.visdial p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- completeness ring ---------- */
.ring { position: relative; width: 46px; height: 46px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .ring-bg { fill: none; stroke: var(--border-hi); stroke-width: 4; }
.ring .ring-fg { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2,.7,.2,1); }
.ring b {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  font-weight: 600;
}

/* ---------- child player card ---------- */
.kidcard { overflow: hidden; transition: border-color .18s, transform .18s; }
.kidcard:hover { border-color: var(--navy); transform: translateY(-2px); }
.kidcard .vthumb { border-radius: 12px 12px 0 0; border: 0; border-bottom: 1px solid var(--border); }
.kidcard .kc-body { padding: 14px 16px 16px; }
.kidcard h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.kidcard .kc-meta { color: var(--muted-2); font-size: 12px; margin: 4px 0 10px; }
.kidcard .kc-attrs { display: flex; flex-wrap: wrap; gap: 6px; }
.kidcard .kc-attrs .chip { font-size: 11px; padding: 3px 9px; }
.kidcard .kc-phys {
  display: flex;
  gap: 16px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
.kidcard .kc-phys div b {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--navy);
  display: block;
  font-weight: 600;
}
.kidcard .kc-phys div span {
  font-size: 9.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- parent surface ---------- */
.parent-tone {
  --surface: #FFFFFF;
  --surface-2: #F3F6F8;
  --border: #D8E0E7;
  --border-hi: #AAB8C5;
}
.parent-tone body,
body.parent-tone { background: #FFFFFF; }
.parent-tone .card { box-shadow: 0 18px 44px -36px rgba(7,29,73,.4); }
.parent-tone h1, .parent-tone h2 { letter-spacing: -.015em; }

/* reassurance tick, volt used for confirmation not just action */
.reassure {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}
.reassure .tickcircle {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(20,123,70,.08);
  border: 1px solid rgba(20,123,70,.3);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ok);
}
.reassure .tickcircle svg { width: 11px; height: 11px; }

/* ---------- price display ---------- */
.pricetag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
}
.pricetag .amt { font-size: 42px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.pricetag .per { font-size: 14px; color: var(--muted); font-family: var(--font-body); }

/* ============================================================
   MOBILE TOPBAR (added 2026-07-18)
   The topbar was flex with no wrapping, so on a phone the nav
   links and right-hand actions forced horizontal scroll on every
   page. Parents use this at a cricket ground on a phone, so the
   nav collapses to a scrollable strip below the brand instead.
   ============================================================ */

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 12px;
    row-gap: 10px;
  }
  .wordmark { font-size: 15px; }
  .topbar-right { margin-left: auto; gap: 9px; }
  .topbar-right .muted.small { display: none; }

  /* nav becomes a horizontally scrollable strip on its own row */
  .topbar .topnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    gap: 2px;
  }
  .topbar .topnav::-webkit-scrollbar { display: none; }
  .topbar .topnav a { padding: 7px 11px; font-size: 13px; white-space: nowrap; }

  .btn { padding: 10px 16px; font-size: 13.5px; }
  .btn--sm { padding: 7px 12px; font-size: 12.5px; }
  .btn--lg { padding: 13px 22px; font-size: 14.5px; }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 14px; }
  .wordmark { font-size: 14px; }
  .wordmark .vault-glyph { width: 22px; height: 22px; font-size: 10px; }
  /* stop long single words (emails, urls) forcing the page wide */
  body { overflow-wrap: break-word; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* Wide content (tables, code, data grids) must scroll inside its own box
   on a phone rather than pushing the whole page sideways. */
@media (max-width: 820px) {
  .doc table, .atable, .dtable, .mtable {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .doc table th, .doc table td { white-space: normal; min-width: 140px; }
  .tablecard { overflow-x: auto; }
  pre, code { overflow-x: auto; max-width: 100%; }
  img, svg, video { max-width: 100%; height: auto; }
}

/* Button rows must wrap on a phone rather than running off the edge. */
@media (max-width: 820px) {
  .hero-ctas, .cta-row, .acts, .mfoot, .r-acts, .tb { flex-wrap: wrap; }
  .hero-ctas .btn, .cta-band .btn { flex: 1 1 auto; }
}
