/* UCG brand styles shared by the Nationals tools. Tokens match the UCG 2026 Brand
   Toolkit as used in the gymact-waiver app and unitedclubgymnastics.org.
   Contrast ratios (WCAG): navy on ice-200 11.75, navy on white 14.04, navy on coral 4.78,
   coral-text on white 5.24, ink-soft on white 5.43 / on ice-200 4.55, white on navy 14.04. */

/* Licensed brand webfonts, served from the UCG brand bucket. NEVER commit the
   woff2 files to this repo (EULA). */
@font-face {
  font-family: 'Greed Condensed';
  src: url('https://wkyerxlgricfphopocoz.supabase.co/storage/v1/object/public/brand/fonts/GreedCondensed-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('https://wkyerxlgricfphopocoz.supabase.co/storage/v1/object/public/brand/fonts/SuisseIntl-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('https://wkyerxlgricfphopocoz.supabase.co/storage/v1/object/public/brand/fonts/SuisseIntl-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --navy-900: #15212c;
  --navy-800: #1e2b38;
  --navy-600: #46535f;
  --ice-100: #eef5f7;
  --ice-200: #dbebee;
  --ice-300: #c3dadf;
  --coral-500: #f4694a;
  --coral-400: #f57b5f;   /* primary-button hover only */
  --coral-text: #bd3f27;  /* coral TEXT on white surfaces only */
  --white: #fcfcfc;
  --ink: var(--navy-800);
  --ink-soft: #5a6a78;
  --line: #c8d8db;
  --radius: 10px;
  --ok-bg: #cdebd5; --ok-ink: #123d22;
  --warn-bg: #fde0d8; --warn-ink: #7a2413;
  --neutral-bg: #e6eef0;
  --lavender-bg: #dfe4f8; --lavender-ink: #2e3a73;
  --danger: #8f2d1b;
  --font-display: 'Greed Condensed', 'Arial Black', 'Arial Narrow', sans-serif;
  --font-body: 'Suisse Intl', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--ice-200); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--navy-800); outline-offset: 2px; }
.site-header :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
h1 { font-size: 30px; margin: 0 0 10px; }

/* ---------- header ---------- */
.site-header { background: var(--navy-800); color: var(--white); }
.site-header .inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; row-gap: 8px;
}
.site-header .logo { display: flex; }
.site-header .logo img { height: 32px; width: auto; display: block; }
.site-header .title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 20px; }
.site-header .who { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ice-300); overflow-wrap: anywhere; }
.site-header .btn.secondary { background: transparent; color: var(--white); border-color: var(--white); }
.site-header .btn.secondary:hover { background: var(--white); color: var(--navy-800); }

main { max-width: 1100px; margin: 0 auto; padding: 24px; }
@media (max-width: 600px) {
  .site-header .inner { padding: 10px 16px; }
  main { padding: 16px; }
}

/* ---------- layout ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; min-width: 0; }
.section-title { font-size: 22px; margin: 0 0 14px; }
.subtle { color: var(--ink-soft); margin: 0 0 12px; }
.subheading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin: 18px 0 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.partner-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--ice-100); }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
.loading { color: var(--ink-soft); padding: 20px 0; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }

/* ---------- forms ---------- */
label { font-weight: 700; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
select, input[type=text], input[type=search], input[type=email], input[type=url], input[type=datetime-local], textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--navy-600); border-radius: var(--radius);
  background: var(--white); color: var(--navy-800);
}
input::placeholder { color: var(--ink-soft); }
select:disabled { background: var(--ice-100); color: var(--ink-soft); border-color: var(--line); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--navy-800); vertical-align: middle; }
input[type=file] { padding: 8px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius); font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--navy-800); color: var(--white); border: 2px solid var(--navy-800);
}
.btn:hover:not(:disabled) { background: var(--navy-900); border-color: var(--navy-900); }
.btn.orange { background: var(--coral-500); color: var(--navy-800); border-color: var(--coral-500); }
.btn.orange:hover:not(:disabled) { background: var(--coral-400); border-color: var(--coral-400); }
.btn.secondary { background: var(--white); color: var(--navy-800); border-color: var(--navy-800); }
.btn.secondary:hover:not(:disabled) { background: var(--ice-100); }
.btn.danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: var(--danger); color: var(--white); }
.btn.small { padding: 6px 14px; }
.btn.wide { width: 100%; }
.btn:disabled { background: var(--ice-300); color: var(--navy-600); border-color: var(--navy-600); cursor: not-allowed; }

/* ---------- notices ---------- */
.msg { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--navy-800); overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.success { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); }
.msg.error { background: var(--white); border-color: var(--coral-text); color: var(--coral-text); font-weight: 700; }
.msg.info { background: var(--ice-100); }
.msg.warn { background: var(--warn-bg); border-color: var(--warn-ink); color: var(--warn-ink); }
.info-box { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--coral-500); background: var(--ice-100); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--navy-800); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
td.wrap { white-space: pre-line; min-width: 220px; }
tbody tr:hover { background: var(--ice-100); }

/* ---------- badges ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.p-NF { background: var(--ok-bg); color: var(--ok-ink); }
.p-IF { background: var(--ice-300); color: var(--navy-800); }
.p-HF { background: var(--lavender-bg); color: var(--lavender-ink); }
.p-open { background: var(--ok-bg); color: var(--ok-ink); }
.p-closed { background: var(--warn-bg); color: var(--warn-ink); }
.p-warn { background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.tab {
  min-height: 44px; padding: 0 18px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
  font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.tab:hover { color: var(--navy-800); background: var(--ice-100); }
.tab[aria-selected='true'] { color: var(--navy-800); border-bottom-color: var(--coral-500); }

/* ---------- summary tables ---------- */
.p-yes { background: var(--ok-bg); color: var(--ok-ink); }
.p-no { background: var(--warn-bg); color: var(--warn-ink); }
.p-blank { background: var(--neutral-bg); color: var(--ink-soft); }
.updated { font-weight: 700; color: var(--ink-soft); margin: 8px 0 0; }
.empty { color: var(--ink-soft); padding: 6px 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 12px; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--warn-ink); background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; }
.alert::before { content: '!'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--warn-ink); color: var(--white); display: grid; place-items: center; font-size: 14px; }
