/* MDO help page styles - version 1.0.1 - 22 Nov 2026 - iPhone first: stacked tables, scrolling jump bar, safe areas. Club colours from assets/brand/colours.md. Prints cleanly on A4. */
@font-face { font-family: "DCFC"; src: url("/fonts/BBG_DCFC_Standard.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "DCFC Display"; src: url("/fonts/BBG_DCFC_McFarland_Standard.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Regular.ttf") format("truetype"); font-display: swap; }

:root { --green: #85B09A; --navy: #003057; --gold: #FFBF3F; --burgundy: #651D32; --pink: #E31C79; --sky: #69B3E7;
        --ink: #1d2733; --muted: #5d6b7a; --line: #d9e0e7; --bg: #f5f7f9; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Roboto", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { font-family: "DCFC", "Roboto", sans-serif; color: var(--navy); letter-spacing: 0.02em; line-height: 1.2; }

.hero { display: flex; gap: 22px; align-items: center; background: var(--navy); color: #fff; padding: 28px max(20px, calc((100% - 860px) / 2)); }
.hero h1 { color: #fff; font-family: "DCFC Display", "DCFC", sans-serif; font-size: 38px; margin: 2px 0 6px; }
.hero .crest { height: 84px; }
.kicker { margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
.lede { margin: 0; opacity: 0.9; }

.jump { display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; padding: 10px max(20px, calc((100% - 860px) / 2)); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.jump a { color: var(--navy); text-decoration: none; padding: 5px 10px; border-radius: 4px; background: #eef2f6; font-size: 14px; }
.jump a:hover { background: var(--gold); }

main { max-width: 860px; margin: 0 auto; padding: 10px 20px 40px; }
section { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 24px 18px; margin: 18px 0; }
/* Jump links land below the sticky bar, not under it. */
section { scroll-margin-top: 64px; }
section.intro { border-left: 5px solid var(--green); }
section.players { border-top: 5px solid var(--sky); }
#coaches { border-top: 5px solid var(--gold); }
h2 { font-size: 26px; margin: 18px 0 8px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
.tag { display: inline-block; font-family: "Roboto", sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 3px 8px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.players .tag { background: var(--sky); color: var(--navy); }

.steps { padding-left: 0; counter-reset: step; list-style: none; }
.steps > li { counter-increment: step; position: relative; padding: 6px 0 6px 40px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; text-align: center; font-size: 14px; line-height: 26px; }
.players .steps > li::before { background: var(--sky); color: var(--navy); }
.plain { padding-left: 20px; }
.plain li { margin: 5px 0; }
.note { background: #fff7e3; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 4px; margin: 12px 0; }
.ok { color: #2d7a52; font-weight: 700; }
.bad { color: var(--pink); font-weight: 700; }
.muted { color: var(--muted); }
/* Only Roboto Regular is installed, so bold is synthesised and faint; navy makes it stand out. */
b { font-weight: 700; color: var(--navy); }
.hero b, .tag b { color: inherit; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; }
caption { text-align: left; font-family: "DCFC", sans-serif; color: var(--navy); font-size: 17px; padding-bottom: 6px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #eef2f6; color: var(--navy); }
.scale th { width: 90px; }
.privacy { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 20px 30px; }

/* iPhone and other narrow screens */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { gap: 14px; padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left)); }
  .hero .crest { height: 56px; }
  .hero h1 { font-size: 28px; }
  .lede { font-size: 15px; }
  .jump { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px max(12px, env(safe-area-inset-left)); }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { white-space: nowrap; padding: 8px 12px; font-size: 15px; }
  main { padding: 4px max(10px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right)); }
  section { padding: 2px 16px 14px; margin: 12px 0; border-radius: 10px; }
  h2 { font-size: 23px; }
  .tag { display: table; margin: 0 0 6px; }
  .steps > li { padding-left: 36px; }
  /* Survey times: each survey becomes a small card, labels from data-label. */
  .times thead { display: none; }
  .times, .times tbody, .times tr, .times th, .times td { display: block; width: 100%; }
  .times tr { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; overflow: hidden; }
  .times th { border: 0; }
  .times td { border: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
  .times td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .scale th { width: 70px; }
  .foot { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
}
@media print {
  body { background: #fff; font-size: 11pt; }
  .jump { display: none; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  section { break-inside: avoid-page; border-color: #bbb; }
  #players { break-before: page; }
}
