/* Running HUB™ athlete app — matches the "Running HUB™ Athlete App" design */
:root {
  --blue: #1B3044;
  --gold: #99825E;
  --gold-deep: #7A6646;
  --gold-light: #C9B48E;
  --ink: #1B3044;
  --ink-body: #2B3A52;
  --muted: #5F6672;
  --hair: #E6E2DA;
  --done: #2E6B4F;
  --missed: #9A4A22;
  --navy-muted: #B9C2D0;
  --serif: "Sainte Colombe", "Cormorant Garamond", Georgia, serif;
  --sans: Gotham, Montserrat, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; font-variant-numeric: lining-nums; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-deep); }
button, input { font: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; }
.topline { height: 3px; background: var(--gold); flex-shrink: 0; }
.loading { margin: auto; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* Header */
header.bar { height: 68px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--hair); background: #FFFFFF; position: sticky; top: 0; z-index: 10; }
header.bar .logo { width: 150px; height: auto; }
.hbtn { min-width: 44px; min-height: 44px; background: none; border: none; padding: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; display: flex; align-items: center; cursor: pointer; }
.hbtn.right { justify-content: flex-end; }

main { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Type */
.eyebrow { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.cap { font-family: var(--sans); font-size: 12px; color: var(--muted); }
h1 { margin: 0; font-size: 46px; font-weight: 300; line-height: 1.05; }
h2 { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.1; }
.lead { margin: 0; font-size: 19px; line-height: 1.45; color: var(--ink-body); }
.text { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--ink-body); white-space: pre-line; }
.link { margin-top: 6px; align-self: flex-start; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold); padding: 0 0 3px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.link.light { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.done { color: var(--done); }
.missed { color: var(--missed); }
.next { color: var(--gold-deep); }

/* Blocks */
.sec { padding: 36px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.sec.tight { padding-top: 24px; gap: 6px; }
.list { padding: 32px 24px 0; display: flex; flex-direction: column; }
.list > .eyebrow { margin-bottom: 4px; }
.ruled { margin: 24px 24px 0; padding: 20px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.photo { margin: 24px 24px 0; width: calc(100% - 48px); height: 200px; object-fit: cover; }
.navy-card { margin: 28px 24px 0; padding: 22px 20px; background: var(--blue); color: #FFFFFF; text-decoration: none; display: flex; flex-direction: column; gap: 6px; border: none; text-align: left; cursor: pointer; }
.navy-card .eyebrow { color: var(--navy-muted); }
.navy-card .t { font-size: 28px; line-height: 1.15; }
.navy-card .d { font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--navy-muted); }

/* Rows */
.row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--ink); text-decoration: none; text-align: left; width: 100%; cursor: pointer; }
.row .day { width: 34px; flex-shrink: 0; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.row .name { flex: 1; font-size: 18px; line-height: 1.25; }
.row .st { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.row.today .day { color: var(--gold-deep); font-weight: 600; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.kv .k { font-size: 19px; }
.kv .v { font-family: var(--sans); font-size: 13px; color: var(--muted); text-align: right; }
.kv .v b { color: var(--ink); font-weight: 500; }
.kv.small .k { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.kv.small .v { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--ink); text-decoration: none; text-align: left; width: 100%; cursor: pointer; }
.item .col { display: flex; flex-direction: column; gap: 3px; }
.item .t { font-size: 21px; line-height: 1.2; }
.item .d { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); }
.item svg { flex-shrink: 0; }

/* CP */
.cp { margin: 28px 24px 0; padding: 18px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: flex-end; }
.cp .n { font-size: 56px; line-height: 1; font-weight: 300; }

/* Filters / choices */
.chips { padding: 28px 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid #D8D8D8; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--blue); color: #FFFFFF; border-color: var(--blue); }

/* Session */
.bullet { display: flex; gap: 10px; font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink-body); }
.bullet::before { content: ""; flex-shrink: 0; width: 12px; height: 1px; margin-top: 11px; background: var(--gold); }
.step { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.step .l { display: flex; flex-direction: column; gap: 2px; }
.step .l span:first-child { font-size: 19px; }
.btns { padding: 28px 24px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.btn { min-height: 48px; border: none; background: var(--gold-deep); color: #FFFFFF; font-family: var(--sans); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; width: 100%; }
.btn.outline { border: 1px solid var(--blue); background: #FFFFFF; color: var(--blue); }
.btn[disabled] { opacity: 0.6; }

/* Navy band + tabs */
.band { flex: 1; min-height: 96px; margin-top: 36px; background: var(--blue); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; }
.band span { flex: 1; height: 1px; background: #34495E; }
.band img { width: 120px; height: auto; }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--blue); border-top: 1px solid #2E4459; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(14px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
nav.tabs button { background: none; border: none; color: #9FAABB; font-family: var(--serif); font-size: 18px; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
nav.tabs button[aria-current=page] { color: #FFFFFF; }
nav.tabs button[aria-current=page]::after { content: ""; width: 22px; height: 1px; background: var(--gold-light); }

/* Sign in */
.login-hero { height: 300px; position: relative; background: var(--blue); flex-shrink: 0; }
.login-hero .bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.login-hero .logo { position: absolute; left: 24px; bottom: 24px; width: 170px; height: auto; }
.login { flex: 1; padding: 32px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.login form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.login label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.login input { min-height: 48px; padding: 0 14px; border: 1px solid #C2C2C2; border-radius: 2px; font-family: var(--sans); font-size: 16px; color: var(--ink); width: 100%; }
.login input.code { letter-spacing: 0.3em; font-size: 22px; text-align: center; }
.login .btn { min-height: 52px; font-size: 14px; }
.login .sent { margin-top: 18px; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.err { margin: 0; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--missed); }
.login .foot { margin-top: auto; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* Menu sheet */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(27,48,68,0.45); display: flex; }
.sheet .panel { width: 82%; max-width: 360px; background: #FFFFFF; height: 100%; padding: 24px; display: flex; flex-direction: column; gap: 0; border-left: 3px solid var(--gold); }
.sheet .panel .logo { width: 150px; margin-bottom: 28px; }

/* ---------- Tracksmith-style refinement ---------- */
/* Small spaced sans labels, serif reading text, quiet underlined links. Sentence case, never all caps. */
.eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; color: #6B7280; }
.cap { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: #6B7280; }
.lead { font-size: 19px; line-height: 1.5; font-weight: 400; color: #2B3A52; }
.text { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: #2B3A52; }
.bullet { font-family: var(--serif); font-size: 17.5px; line-height: 1.5; }
.bullet::before { margin-top: 13px; }
.link { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; padding-bottom: 2px; }
h1 { letter-spacing: -0.005em; }
h2 { font-weight: 400; }
.row { padding: 15px 0; }
.row .day { font-size: 11px; letter-spacing: 0.1em; }
.row .name { font-size: 19px; }
.row .st { font-size: 11px; letter-spacing: 0.08em; }
.item .t { font-size: 22px; }
.item .d { font-family: var(--serif); font-size: 16.5px; color: #4A5568; }
.kv .v, .step .eyebrow { letter-spacing: 0.04em; }
.btn { font-size: 12px; letter-spacing: 0.12em; font-weight: 500; }
.chip { font-size: 12px; letter-spacing: 0.08em; }
header.bar .hbtn { font-size: 11.5px; letter-spacing: 0.12em; font-weight: 500; }
.sec { gap: 12px; }
.navy-card .d { font-family: var(--serif); font-size: 17px; }
.login .foot { font-size: 11px; letter-spacing: 0.08em; }

/* Footer, Tracksmith style */
.foot-nav { margin-top: 48px; background: #0F2233; color: #FFFFFF; padding: 0 24px 40px; }
.foot-nav .cols { border-top: 1px solid #2A3E52; padding-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.foot-nav .col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-nav .h { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: #C8D0DA; margin-bottom: 4px; }
.foot-nav a, .foot-nav button { background: none; border: 0; padding: 0; font-family: var(--serif); font-size: 18px; line-height: 1.3; color: #B9C2D0; text-decoration: none; text-align: left; cursor: pointer; }
.foot-nav a:hover, .foot-nav button:hover { color: #FFFFFF; }
.foot-nav .mark { margin-top: 40px; padding-top: 28px; border-top: 1px solid #2A3E52; display: flex; justify-content: center; align-items: center; gap: 12px; }
.foot-nav .mark img { width: 120px; height: auto; }
.foot-nav .mark span { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold-light); }
main { padding-bottom: 0; }
.foot-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Calmer letter spacing on phones */
.eyebrow { letter-spacing: 0.05em; }
.cap { letter-spacing: 0.05em; }
.link { letter-spacing: 0.06em; }
.row .day, .row .st { letter-spacing: 0.04em; }
.foot-nav .h { letter-spacing: 0.08em; }
header.bar .hbtn { letter-spacing: 0.06em; }
.btn { letter-spacing: 0.06em; }

/* No photography for now: the sign-in block is solid Blue HUB */
.login-hero { height: 240px; }

/* ---------- Brand book alignment (Running HUB™ Brand Identity) ---------- */
/* Serif never below 18px on screens; lining, tabular figures for numbers; ink-muted #5A6270 for metadata. */
* { font-variant-numeric: lining-nums tabular-nums; }
.eyebrow, .cap { color: #5A6270; }
.item .d, .navy-card .d { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: #5A6270; }
.bullet { font-family: var(--serif); font-size: 18px; }
.text { font-size: 18px; }
.row .name { font-size: 19px; }

/* Gotham, licensed, same files as running-hub.com */
@font-face { font-family: "Gotham"; src: url("/fonts/gotham-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("/fonts/gotham-book.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("/fonts/gotham-medium.woff") format("woff"); font-weight: 500 600; font-display: swap; }
