@font-face {
  font-family: General Sans;
  src: url('/general-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: General Sans;
  src: url('/general-medium.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}
:root {
  --ink: #174e79;
  --text: #294a60;
  --muted: #536979;
  --accent: #226788;
  --focus: #bd0068;
  --rule: #dce6ec;
  font: 16px/1.55 "General Sans", system-ui, sans-serif;
  color: var(--text);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: white; }
main, .site-header, footer { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
main { flex: 1; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
a, .link { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
}
.wordmark { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-size: 27px; letter-spacing: -.055em; font-weight: 500; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; color: var(--ink); line-height: 1.14; }
h2 { font-size: 1.65rem; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; margin: 26px 0 10px; }
button, input, select, textarea { font: inherit; }
button, article a {
  min-height: 44px; padding: 9px 19px; border-radius: 99px; border: 0; cursor: pointer;
  background: #eaf3f8; color: var(--ink); font-weight: 500;
}
button:active:not(:disabled), article a:active { transform: scale(.98); }
button:disabled { cursor: default; }
.primary, article a { background: var(--accent); color: white; }
.portal-footer {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  column-gap: 18px; padding: 22px 0; color: var(--muted); font-size: .8125rem;
}
.portal-footer a { color: inherit; }
.portal-footer details { position: relative; background: none; padding: 0; margin: 0; }
.portal-footer summary, .portal-footer > a {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 400;
  text-underline-offset: .2em; text-decoration: underline;
}
.portal-footer summary::after { display: none; }
.portal-footer address {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); z-index: 1;
  padding: 12px 18px; border-radius: 12px; font-style: normal; text-align: left;
  background: var(--field,#f0f6fa); color: var(--auth-text,var(--text));
  box-shadow: 0 4px 18px #17394f16; backdrop-filter: blur(16px);
}
@media (max-width: 450px) {
  .portal-footer { gap: 0 18px; text-align: center; }
  .portal-footer > span { flex-basis: 100%; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The app places its grouped credential fields directly on its sky-and-pink surface. */
body[data-view="auth"] {
  --field: rgba(255,255,255,.74);
  --auth-text: #101820;
  --disabled: #dceefa;
  --disabled-ink: #556e7f;
  background: radial-gradient(ellipse at 0 0,#c5efff 0%,transparent 63%),
              radial-gradient(ellipse at 100% 100%,#f9dfee 0%,transparent 56%),#effaff;
}
[data-view="auth"] .site-header { display: none; }
[data-view="auth"] main { width: min(calc(100% - 48px), 366px); display: grid; align-content: center; padding: 48px 0 10px; }
[data-view="auth"] footer { text-align: center; }
#login { text-align: center; color: var(--auth-text); font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; }
#login .wordmark { color: inherit; font-size: 36px; font-weight: 600; }
.wordmark a { color: inherit; text-decoration: none; }
.programme-name { color: var(--muted); margin: 5px 0 28px; font-size: .95rem; }
.credentials { background: var(--field); border-radius: 22px; padding-inline: 19px; }
.credentials:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.credentials label { display: block; }
.credentials label + label { border-top: 1px solid var(--rule); }
.credentials input {
  display: block; border: 0; width: 100%; min-height: 55px; background: transparent;
  color: inherit; padding: 10px 0; border-radius: 0; caret-color: var(--accent);
}
.credentials input::placeholder { color: var(--muted); opacity: 1; }
.credentials input:focus-visible { outline: none; }
.credentials input:focus-visible::placeholder { color: var(--accent); }
@media (forced-colors: active) {
  .credentials input:focus-visible { outline: 2px solid Highlight; outline-offset: -3px; }
}
#authenticate { width: 100%; margin: 22px 0 4px; min-height: 50px; }
#auth-form:invalid #authenticate, #authenticate:disabled { background: var(--disabled); color: var(--disabled-ink); }
.link { background: transparent; padding-inline: 12px; }
#status:not(:empty) { padding: 12px 16px; margin-block: 14px; border-radius: 14px; background: var(--field,#eff5f9); }
#login #status { font-size: .92rem; }

/* The programme follows the website's white canvas, blue type and photo-led application cards. */
.programme-heading {
  display: flex; align-items: end; aspect-ratio: 3 / 1;
  padding: clamp(22px,5vw,44px); border-radius: 26px;
  background: linear-gradient(0deg,rgba(7,20,29,.65),transparent 55%),url('/athlete-programme.webp') center / cover;
}
.programme-heading h1 { color: white; font-size: clamp(2.25rem,5vw,3.75rem); letter-spacing: -.04em; }
@media (max-width: 560px) {
  .programme-heading { display: block; aspect-ratio: auto; padding: 0; background: none; }
  .programme-heading::before {
    content: ""; display: block; aspect-ratio: 3 / 1; border-radius: 16px;
    background: url('/athlete-programme.webp') center / cover;
  }
  .programme-heading h1 { margin-top: 18px; color: var(--ink); font-size: 2rem; }
}
#workspace section { margin: 36px 0; }
#workspace p { max-width: 68ch; overflow-wrap: anywhere; }
#feed article { padding: 22px 0 30px; }
#feed article + article { border-top: 1px solid var(--rule); }
article small { color: var(--muted); font-size: .88rem; }
article h2 { margin: 5px 0 12px; overflow-wrap: anywhere; }
article p { white-space: pre-wrap; margin-bottom: 12px; }
article a { display: inline-flex; align-items: center; text-decoration: none; margin: 4px 10px 0 0; }
#access p { margin: 12px 0 20px; }
#manage { background: #f0f6fa; padding: clamp(18px,4vw,34px); border-radius: 24px; }
#manage h2 { margin-bottom: 14px; }
details { background: white; border-radius: 16px; padding: 0 18px; margin: 9px 0; }
details[open] { padding-bottom: 16px; }
summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 8px; height: 8px; flex: none; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); }
details form { display: grid; gap: 14px; max-width: 550px; padding-block: 14px; }
details label { display: grid; gap: 5px; font-size: .94rem; }
details input, details select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #b9cbd6; background: white; color: var(--text); border-radius: 10px; font-size: 1rem; }
textarea { resize: vertical; }
.check, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.check input { width: 18px; min-height: 18px; accent-color: #ba086c; }
details button { justify-self: start; }
#people p { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-block: 6px; }
#people button { background: transparent; color: #a72051; }
#review button { margin-top: 10px; }
@media (prefers-color-scheme: dark) {
  body[data-view="auth"] {
    color-scheme: dark;
    --auth-text: #f2f7fa; --muted: #b2c5d3; --rule: #2a4151; --accent: #9bd8f5;
    --field: #192f40; --disabled: #182c3c; --disabled-ink: #a5bac8; --focus: #ff78b4;
    background: radial-gradient(ellipse at 0 0,#14374b,transparent 65%),
                radial-gradient(ellipse at 100% 100%,#382238,transparent 55%),#0a1723;
  }
  #auth-form:valid #authenticate { color: #102a3a; }
}
@media (hover:hover) and (pointer:fine) {
  button:hover:not(:disabled), article a:hover { filter: brightness(.95); }
  .link:hover, .wordmark a:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion:no-preference) {
  button, article a { transition: transform 130ms ease-out; }
  #workspace:not([hidden]) { animation: appear 180ms ease-out; }
  @keyframes appear { from { opacity: .5; transform: translateY(3px); } }
}
#signup-help { color: var(--muted); font-size: .94rem; margin: -10px 0 18px; }
