:root {
  /* Brand. The maroon and the gold are the crest's own colours; the deep and
     mid maroons are darker steps of the same hue for grounds and for text that
     has to clear contrast on white. */
  --maroon: #8f2c22;
  --maroon-deep: #5f1c15;
  --maroon-dark: #6d211a;
  --brown: #8b4a32;
  --gold: #f5c400;
  /* #f5c400 is a signage yellow: fine as a filled ground under dark text,
     unreadable as text on white. This is the same hue taken down to 5.3:1. */
  --gold-deep: #8a6208;
  --gold-tint: #fdf6e3;
  --yellow: #f5c400;

  /* Neutrals, biased a few degrees toward the maroon rather than the blue-grey
     default. Same lightness steps; the warmth is what makes them sit with the
     crest instead of beside it. */
  --ink: #1a1512;
  --ink-2: #4a423c;
  --muted: #5c534b;
  --ink-3: #7d746c;
  --line: #e7e0d9;
  --line-2: #d5cbc1;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --bg-sunk: #f4efea;

  /* Type. One family across the site, doing its own hierarchy through weight
     and width — Archivo carries a width axis, and the expanded end gives the
     headlines an athletic set that a fixed-width grotesque cannot. */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: 12.5px;
  --t-sm: 14px;
  --t-base: 16.5px;
  --t-md: 18px;
  --t-lg: 21px;
  --t-xl: 26px;
  --t-2xl: clamp(28px, 3.2vw, 34px);
  --t-hero: clamp(34px, 4.9vw, 52px);

  --radius: 10px;
  --radius-sm: 5px;
  --radius-lg: 14px;
  --wrap: 1080px;
  --wrap-wide: 1240px;

  --shadow-sm: 0 1px 2px rgba(26, 21, 18, .05);
  --shadow: 0 1px 2px rgba(26, 21, 18, .05), 0 10px 28px -14px rgba(26, 21, 18, .22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Short pages — the two still in development, and the 404 — otherwise leave
     the footer stranded mid-screen with white below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

/* Headings run at the expanded end of the width axis and a little tighter than
   default; it is the one place the type is allowed to be loud. */
h1, h2, h3 {
  font-stretch: 112%;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

/* Anything that lines up in a column reads as data, not prose. */
.stat-value, table td, table th, .page-of, .result-count { font-variant-numeric: tabular-nums; }

/* One focus treatment for everything that takes focus, rather than leaving
   links and buttons on the browser default. */
:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
  border-radius: 3px;
}
.hero :focus-visible, .stat :focus-visible { outline-color: var(--gold); }

a { color: var(--maroon); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow .18s ease;
}

/* The bar stays over the page, so anything an in-page link jumps to has to
   stop short of it or arrive hidden underneath. */
:target { scroll-margin-top: 96px; }

/* Nineteen pages of athlete table slide under this bar; without a shadow it
   reads as part of the page rather than as the layer above it. */
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px -10px rgba(26, 21, 18, .3); }

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

nav.main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* The three listings are one thing and the rest of the site is another; this
   is the whole of that grouping. */
.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--line-2);
  flex: 0 0 1px;
}
nav.main a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }

/* menu button — hidden until the script enables the collapsible menu on narrow screens */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--muted); }

/* three bars: the middle one is the element itself, the outer two its pseudo-elements */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* open: the bars fold into a cross */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { transition: none; }
}

@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-header.js-nav .nav-toggle { display: inline-flex; }

  .site-header.js-nav nav.main { display: none; }
  .site-header.js-nav nav.main.open { display: flex; }

  nav.main {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 6px;
  }
  nav.main a {
    padding: 11px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  nav.main a:last-child { border-bottom: 0; }
  .nav-sep { display: none; }
  nav.main a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* hero
 *
 * There is no photography on the site yet, so the depth here is built rather
 * than shot: a maroon ground under two radial lifts, and a fine diagonal tooth
 * so the gradient does not read as a flat sheet.
 *
 * `.hero.has-image` is the seam for a real photograph when one exists — add the
 * class and set --hero-image on .hero, and every layer below it stays put.
 */
.hero {
  /* Positioned, and above the section below it, so the search suggestions can
     hang past the bottom edge. No `overflow: hidden` here for that reason —
     both background layers are inset to the box and cannot escape it. */
  position: relative;
  isolation: isolate;
  z-index: 1;
  color: #fff;
  padding: 84px 0 76px;
  /* Three layers rather than one flat sweep: a warm lift at top-left where the
     headline sits, a torch-coloured glow behind the counters on the right, and
     the base maroon running dark into the bottom corner. */
  background:
    radial-gradient(90% 70% at 78% 18%, rgba(245, 196, 0, .16), transparent 60%),
    radial-gradient(120% 95% at 6% -10%, rgba(216, 112, 78, .34), transparent 64%),
    linear-gradient(158deg, var(--maroon-dark) 0%, var(--maroon) 44%, var(--maroon-deep) 100%);
  border-bottom: 3px solid var(--gold);
}

/* Diagonal tooth. Two degrees off the gradient so it reads as texture rather
   than as a second stripe. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(
    118deg,
    rgba(255, 255, 255, .028) 0 1px,
    transparent 1px 7px
  );
}

.hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--hero-image) center / cover no-repeat;
  opacity: .28;
  filter: grayscale(.4) contrast(1.05);
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, .82fr);
  gap: 30px 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero-eyebrow::after {
  content: "";
  flex: 0 1 56px;
  height: 1px;
  background: rgba(245, 196, 0, .45);
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.026em;
  line-height: 1.04;
  margin: 0 0 18px;
  max-width: 19ch;
}

.hero-sub {
  font-size: var(--t-md);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 52ch;
  margin: 0 0 26px;
}
.hero-sub b { color: #fff; font-weight: 600; }

/* hero search */

.hero-search { position: relative; max-width: 480px; margin: 0 0 16px; }

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 5px 5px 5px 15px;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .55);
}
.search-field svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--ink-3); }
.search-field input {
  flex: 1 1 auto;
  border: 0;
  padding: 11px 0;
  font-size: var(--t-base);
  background: transparent;
  min-width: 0;
  /* The field sits on a white card inside a hero that sets colour to #fff, so
     the text colour has to be stated here or what you type inherits the hero's
     white and disappears. -webkit-text-fill-color covers iOS, which ignores
     `color` on a search input once it has been styled. */
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.search-field input::placeholder {
  color: var(--ink-3);
  -webkit-text-fill-color: var(--ink-3);
  opacity: 1;
}
.search-field input:focus { outline: 0; }
.search-field:focus-within { box-shadow: 0 0 0 3px rgba(245, 196, 0, .55), 0 14px 34px -16px rgba(0, 0, 0, .55); }
.search-field .btn { padding: 10px 18px; border-radius: var(--radius-sm); }

/* search suggestions */

.search-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}
.search-panel:empty { display: none; }
.search-group + .search-group { border-top: 1px solid var(--line); }
.search-group h4 {
  margin: 0;
  padding: 9px 15px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.search-hit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 15px;
  text-decoration: none;
  color: inherit;
  font-size: var(--t-sm);
}
.search-hit:hover, .search-hit.on { background: var(--bg-sunk); }
.search-hit strong { font-weight: 600; }
.search-hit span { color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.search-all {
  display: block;
  padding: 8px 15px 11px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
}
.search-all:hover { text-decoration: underline; }
.search-none { padding: 16px 15px; font-size: var(--t-sm); color: var(--ink-3); }

/* the counters */

.stats { display: grid; gap: 10px; margin: 0; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 520px) {
  /* One per row again, but back on a single baseline — three stacked
     two-line cards push the whole page down on a phone. */
  .stats { grid-template-columns: 1fr; }
  .hero-eyebrow { letter-spacing: .1em; }
  .hero-eyebrow::after { display: none; }
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .17);
  text-decoration: none;
  color: #fff;
}
.stat:hover { background: rgba(0, 0, 0, .3); border-color: rgba(255, 255, 255, .4); border-left-color: var(--gold); }
.stat-value {
  font-size: 30px;
  font-weight: 700;
  font-stretch: 115%;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
}
@media (max-width: 900px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 3px; }
  .stat-value { font-size: 26px; }
}
@media (max-width: 520px) {
  .stat { flex-direction: row; align-items: baseline; gap: 10px; padding: 11px 14px; }
  .stat-value { font-size: 23px; }
}

.btn {
  display: inline-block;
  font-family: var(--font);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: var(--t-sm);
  letter-spacing: .005em;
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.95); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }

section { padding: 64px 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
h2 { font-size: var(--t-2xl); font-weight: 700; margin: 0 0 10px; line-height: 1.12; }
.lede {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 60ch;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  /* Cards size to their content. Stretching them to the tallest in the row
     leaves the sparse ones — an association with no office-bearers on record —
     as a mostly empty box. */
  align-items: start;
}

/* Association names run long ("Goa Body Building & Fitness Association of Goa"),
   so these tracks are wider than the default: three across the wide wrap rather
   than four, and the titles stop breaking over three lines. */
.assoc-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* Four cards wrap to three-and-an-orphan at the default track size; `pair`
   splits them evenly instead. */
.grid.pair { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.pair { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg);
}
.card h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.card .meta { font-size: 13px; color: var(--muted); margin-top: 10px; }

.tag {
  display: inline-block;
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* forms */
form.stack { display: grid; gap: 16px; max-width: 640px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
input, select, textarea {
  font: inherit;
  font-family: var(--font);
  font-size: var(--t-sm);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  /* Stated, not inherited: these sit on a white ground, and `inherit` makes any
     field placed inside a dark band come out white on white. */
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--maroon); outline-offset: 1px; border-color: var(--maroon); }
textarea { min-height: 120px; resize: vertical; }

.notice { padding: 12px 14px; border-radius: 8px; font-size: 14px; display: none; }
.notice.ok { background: #e7f6ec; border: 1px solid #b6e0c4; color: #14612f; display: block; }
.notice.err { background: #fdecec; border: 1px solid #f3bcbc; color: #8e1b1b; display: block; }

.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* visible only to assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* directory: the associations and athletes listings */

/* A four-column table and a card grid both want more room than a column of
   prose does. The listing pages opt into the wider measure; About and Our Story
   keep the 1080 reading width. */
.wrap.wide { max-width: var(--wrap-wide); }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 16px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.filters .field { display: grid; gap: 6px; margin: 0; min-width: 160px; }
.filters .field.grow { flex: 1 1 260px; }
.filters label { font-size: 13px; font-weight: 600; color: var(--muted); }
.filters .actions { display: flex; gap: 8px; align-items: center; }

/* Scripted searching happens as you type, so the button stops being the only
   way to run one — it stays for keyboard submits and for anyone who expects it. */
.js-filters .actions .btn { font-size: 14px; padding: 9px 16px; }

.btn.ghost-line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}
.btn.ghost-line:hover { border-color: var(--muted); color: var(--ink); }

.result-count {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  min-height: 1.6em;
}

/* association cards */
.assoc-card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 2px; }

/* The sport is what the association is, so it reads as a subtitle rather than
   as one more pill competing with the recognition status. */
.assoc-sport {
  margin: 0 0 10px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--maroon);
}

.assoc-card .tag { margin: 0 0 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tag.status-permanent { border-color: #b6e0c4; background: #e7f6ec; color: #14612f; }
.tag.status-provisional { border-color: #e8d3a0; background: var(--gold-tint); color: var(--gold-deep); }
.tag.status-not_in_compliance { border-color: #f3bcbc; background: #fdecec; color: #8e1b1b; }

.assoc-card .meta { margin: 0 0 12px; }

.bearers { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.bearer { display: grid; gap: 2px; font-size: 14px; }
.bearer-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.bearer-name { font-weight: 500; }
.bearer-contact { display: flex; flex-wrap: wrap; gap: 6px; }

/* A phone number and an address are the payload of this card, and on a phone
   they are things you tap. They get a target rather than a text link. */
.contact-link {
  display: inline-block;
  font-size: var(--t-xs);
  line-height: 1.3;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-2);
  text-decoration: none;
  word-break: break-word;
}
.contact-link:hover { border-color: var(--maroon); color: var(--maroon); }

/* athlete table */
.athlete-name { font-weight: 600; white-space: nowrap; }

.athlete-sports a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.athlete-sports a:hover { border-bottom-color: var(--maroon); }
ul.events { margin: 0; padding-left: 16px; }
ul.events li { margin: 0; }
.muted { color: var(--muted); }

/* pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  font: inherit;
  font-family: var(--font);
  font-size: var(--t-sm);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.page-btn:hover:not(:disabled) { border-color: var(--maroon); color: var(--maroon); }
.page-btn:disabled { opacity: 0.45; cursor: default; }
.page-of { font-size: 14px; color: var(--muted); }

/* sports directory */

.sports-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.sport-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
}

.sport-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: var(--maroon);
  /* The drawings are stroked at a fixed weight for a 24px box; letting them
     scale keeps every icon on the same visual weight at any card size. */
  vector-effect: non-scaling-stroke;
}

.sport-body { min-width: 0; }
.sport-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.sport-card .tag.olympic {
  border-color: #e0c98d;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 8px;
}

.sport-counts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 13px;
}
.sport-count { color: var(--maroon); }
.sport-count.muted { color: var(--muted); }

/* long-form content: About and Our Story */

.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.grid + .prose, .prose + .grid { margin-top: 26px; }

/* A single sentence given room to be read — a vision, a principle, a motto. */
.statement {
  max-width: 60ch;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.5;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}

h3.sub { font-size: 18px; margin: 30px 0 10px; }

ul.marks {
  max-width: 68ch;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
ul.marks li { position: relative; padding-left: 26px; }
ul.marks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
}

dl.values {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 0;
}
dl.values dt { font-weight: 600; margin-bottom: 2px; }
dl.values dd { margin: 0; color: var(--muted); font-size: 14px; }

/* Executive Council: a roster read office by office, so the office is the
   label the eye lands on and the person's own association is the footnote.
   Every entry carries its own role — group headings would come apart as the
   grid reflows to one column. */
.council {
  display: grid;
  gap: 18px 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.council li { border-top: 1px solid var(--line-2); padding-top: 10px; }
.council-role {
  margin: 0 0 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.council-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.council-assoc { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.council-assoc a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.council-assoc a:hover { color: var(--maroon); border-bottom-color: var(--maroon); }

/* The President heads the council, so that entry takes the full width and the
   house red rather than sitting as one card among thirteen. */
.council li.lead { grid-column: 1 / -1; border-top: 2px solid var(--maroon); }
.council li.lead .council-name { font-size: 21px; }
.council li.lead .council-assoc { font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.more { margin: 26px 0 0; font-size: 15px; }

/* cards that are themselves links */
/* A card that is itself a route into something — the heaviest of the three
   weights, because these are the page's primary actions. */
a.card.linked {
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
a.card.linked h3 { color: var(--maroon); }
a.card.linked:hover {
  border-color: var(--maroon);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  a.card.linked { transition: none; }
  a.card.linked:hover { transform: none; }
}

/* The lightest weight: a panel that is only grouping prose, with no border to
   make it look like something you can act on. */
.card.quiet {
  border: 0;
  background: var(--bg-sunk);
  border-left: 2px solid var(--line-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* the four things the Association does
 *
 * These used to be an ordered list with 01–04 set at 46px. They are not a
 * sequence — nothing follows from anything — so the numerals were encoding
 * something untrue. A rule above each one groups them without claiming an
 * order they do not have.
 */
ul.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px 44px;
  grid-template-columns: repeat(2, 1fr);
}
ul.pillars li { border-top: 2px solid var(--gold); padding-top: 15px; }
ul.pillars h3 { margin: 0 0 7px; font-size: var(--t-lg); line-height: 1.25; }
ul.pillars p { margin: 0; max-width: 44ch; color: var(--ink-2); font-size: var(--t-sm); }

@media (max-width: 720px) {
  ul.pillars { grid-template-columns: 1fr; gap: 24px; }
}

/* a figure printed on a card, and the recognition split drawn as one bar
 *
 * The associations card is the only place on the site that shows the shape of
 * the register rather than its size — 27 permanent against 32 provisional says
 * more about the state of Goan sports governance than any paragraph does.
 */
.card-figure {
  margin: 12px 0 0;
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.card-figure b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.split {
  display: flex;
  gap: 2px;
  height: 7px;
  margin: 11px 0 9px;
  border-radius: 999px;
  overflow: hidden;
}
.split-bar { display: block; border-radius: 999px; }
.split-permanent { background: #3f8a58; }
.split-provisional { background: #d9a326; }
.split-lapsed { background: #b3453c; }

.split-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.split-key span { display: inline-flex; align-items: center; gap: 5px; }
.split-key i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 8px;
}
.split-key b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* interior page titles
 *
 * Every page except the homepage used to open with an <h2> and no <h1> at all.
 * The heading is now an h1; this keeps it at the size it already read at, so
 * the fix is structural rather than visual. `.hero h1` outranks it on the
 * homepage. */
main h1 {
  font-size: var(--t-2xl);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.12;
}

/* a page that is honestly not finished yet
 *
 * Two sections of the site are still being built. An empty page with a grey
 * "coming soon" pill reads as abandoned; the point of this panel is to say what
 * is coming specifically enough that the gap looks like a plan. */
.soon {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 30px 32px;
  max-width: 760px;
}
@media (max-width: 560px) { .soon { padding: 24px 20px; } }

.soon-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid #e8d3a0;
  border-radius: 999px;
  padding: 3px 11px;
  margin: 0 0 16px;
}

.soon h1 { margin: 0 0 10px; }
.soon .lede { margin-bottom: 22px; }

.soon-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
  max-width: 60ch;
}
.soon-list li {
  position: relative;
  padding-left: 26px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
.soon-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gold);
}

.soon .more { margin: 0; }

/* page header
 *
 * Interior pages used to fall from the white site header straight onto the page
 * title, so only the homepage had any moment of arrival — and only the homepage
 * carried the brand at all. This band gives every page both. It is deliberately
 * shorter and darker than the hero: a sibling, not a rival.
 */
.page-head {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 40px 0 36px;
  background:
    radial-gradient(100% 150% at 86% 0%, rgba(245, 196, 0, .14), transparent 60%),
    linear-gradient(150deg, var(--maroon-dark) 0%, var(--maroon-deep) 100%);
  border-bottom: 3px solid var(--gold);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    118deg,
    rgba(255, 255, 255, .026) 0 1px,
    transparent 1px 7px
  );
}

.page-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.page-head h1 {
  font-size: var(--t-2xl);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 20ch;
}

.page-lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
  max-width: 62ch;
  margin: 0;
}

/* The band already separates the header from the content, so the first section
   under it does not need its full top padding as well. */
.page-head + section { padding-top: 38px; }

@media (max-width: 560px) {
  .page-head { padding: 30px 0 28px; }
  .page-lede { font-size: var(--t-base); }
}
