:root {
  color-scheme: light;
  --ink: #17221d;
  --ink-soft: #425049;
  --paper: #f7f7f3;
  --white: #ffffff;
  --green: #174d36;
  --green-dark: #103526;
  --coral: #d75e43;
  --gold: #d7a63d;
  --line: #d9ded9;
  --focus: #0b6acb;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}
h1 { font-size: 6.8rem; margin-bottom: 1.25rem; }
h2 { font-size: 3.75rem; margin-bottom: 1.25rem; }

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--white);
  color: var(--ink);
  left: 1rem;
  padding: .7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.section-shell,
.nav-shell,
.site-footer {
  margin-inline: auto;
  max-width: var(--max);
  padding-inline: 1.5rem;
  width: 100%;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(23, 34, 29, .12);
  position: relative;
  z-index: 10;
}
.nav-shell {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  min-height: 74px;
}
.wordmark {
  align-items: center;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  gap: .75rem;
  justify-self: start;
  text-decoration: none;
}
.wordmark-mark {
  align-items: center;
  background: var(--green);
  color: var(--white);
  display: inline-flex;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .7rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.nav-links { display: flex; gap: 2.25rem; }
.nav-links a {
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a { border-bottom: 3px solid transparent; padding: 1.55rem .1rem 1.35rem; }
.nav-links a[aria-current="page"] { border-color: var(--coral); }

.hero, .event-hero {
  color: var(--white);
  isolation: isolate;
  min-height: min(78vh, 760px);
  overflow: hidden;
  position: relative;
}
.hero > img, .event-hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}
.hero-shade {
  background: rgba(5, 20, 13, .58);
  inset: 0;
  position: absolute;
  z-index: -1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-inline: auto;
  max-width: var(--max);
  min-height: min(78vh, 760px);
  padding: 6rem 1.5rem 5.5rem;
}
.hero-content h1 { font-size: 10rem; margin-bottom: .5rem; }
.hero-copy { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; max-width: 680px; }
.hero-caption { bottom: 1.5rem; font-size: .76rem; margin: 0; position: absolute; right: 1.5rem; }
.eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--green); }
.primary-link, .text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: .7rem;
  text-underline-offset: .3rem;
  width: fit-content;
}
.primary-link {
  background: var(--coral);
  color: var(--white);
  margin-top: .5rem;
  padding: .85rem 1.1rem;
  text-decoration: none;
}
.primary-link:hover { background: #bd4932; }
.dark-button { background: var(--green); }
.dark-button:hover { background: var(--green-dark); }

.scoreband {
  background: var(--green);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  padding: 1.75rem max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem));
}
.scoreband div { border-right: 1px solid rgba(255,255,255,.28); display: flex; flex-direction: column; padding: 0 2rem; }
.scoreband div:first-child { padding-left: 0; }
.scoreband div:last-child { border: 0; }
.scoreband strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.1; }
.scoreband span { color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 700; text-transform: uppercase; }

.intro-grid, .story-grid {
  display: grid;
  gap: clamp(2rem, 8vw, 7rem);
  grid-template-columns: .9fr 1.1fr;
  padding-bottom: 6rem;
  padding-top: 7rem;
}
.prose { color: var(--ink-soft); font-size: 1.1rem; }
.prose p { max-width: 720px; }
.snapshot-note { border-left: 3px solid var(--gold); font-size: .91rem; margin-top: 2rem; padding-left: 1rem; }

.feature-band, .photo-band { background: var(--green-dark); color: var(--white); }
.feature-grid {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr .9fr .7fr;
  padding-bottom: 5rem;
  padding-top: 5rem;
}
.feature-photo { margin: 0; }
.feature-photo img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; width: 100%; }
.feature-photo-main img { aspect-ratio: 4 / 3; }
figcaption { font-size: .76rem; margin-top: .65rem; opacity: .76; }
.feature-copy h2 { font-size: 3.2rem; }
.feature-copy p:not(.eyebrow) { color: rgba(255,255,255,.76); }

.records-callout { display: grid; gap: 5rem; grid-template-columns: .8fr 1.2fr; padding-bottom: 7rem; padding-top: 7rem; }
.record-actions { border-top: 1px solid var(--line); }
.record-actions a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.6rem .25rem;
  text-decoration: none;
}
.record-actions a:hover strong { color: var(--coral); }
.record-actions span { color: var(--ink-soft); font-size: .9rem; text-align: right; }

.page-header { padding-bottom: 4.5rem; padding-top: 6rem; }
.page-header h1 { color: var(--green-dark); font-size: 7rem; margin-bottom: 1rem; }
.page-header > p:last-child, .page-header > div > p:last-child { color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; max-width: 660px; }
.page-header-split { align-items: end; display: flex; gap: 2rem; justify-content: space-between; }

.timeline { padding-bottom: 6rem; }
.event-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, .9fr) 80px minmax(320px, 1.1fr);
  padding: 3rem 0;
}
.event-image img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; width: 100%; }
.event-image-placeholder {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: var(--white);
  display: flex;
  justify-content: center;
  min-height: 220px;
  text-decoration: none;
}
.event-image-placeholder span { border: 1px solid rgba(255, 255, 255, .45); font-size: .75rem; font-weight: 800; letter-spacing: .12em; padding: .85rem 1rem; text-transform: uppercase; }
.event-year { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.event-copy h2 { font-size: 3rem; margin-bottom: 1rem; }
.event-copy h2 a { text-decoration-thickness: 1px; text-underline-offset: .35rem; }
.event-copy > p { color: var(--ink-soft); }
.event-copy .event-result { color: var(--ink); font-size: .76rem; font-weight: 700; margin-bottom: .65rem; text-transform: uppercase; }
.event-result span { color: var(--green); }
.event-meta { display: flex; gap: 3rem; margin-bottom: 0; margin-top: 1.5rem; }
.event-meta div { min-width: 110px; }
.event-meta dt { color: var(--ink-soft); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.event-meta dd { font-weight: 700; margin: 0; }

.archive-note { border: 1px solid var(--line); margin-bottom: 6rem; padding-bottom: 1.25rem; padding-top: 1.25rem; }
.archive-note strong { color: var(--green); }
.archive-note p { color: var(--ink-soft); display: inline; font-size: .88rem; margin: 0 0 0 .5rem; }
.archive-note.compact { margin-bottom: 3rem; }

.event-hero { min-height: min(70vh, 680px); }
.event-hero-placeholder { background: radial-gradient(circle at 75% 20%, rgba(183, 73, 52, .4), transparent 35%), linear-gradient(135deg, #173b2a, #07180f); }
.event-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-inline: auto;
  max-width: var(--max);
  min-height: min(70vh, 680px);
  padding: 6rem 1.5rem 4rem;
}
.event-hero-content h1 { margin-bottom: 1rem; }
.back-link { font-size: .82rem; font-weight: 700; margin-bottom: auto; width: fit-content; }
.back-link.dark { color: var(--green); display: block; margin-bottom: 1.5rem; }
.event-score { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.event-score strong { color: #ffd670; }
.event-score span { opacity: .8; }
.lead-prose { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.lead-prose .snapshot-note { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .88rem; }

.archive-placeholders { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); padding-bottom: 5rem; }
.archive-placeholders article { background: #f1f0e9; min-height: 300px; padding: 2rem; }
.archive-placeholders h2 { font-size: 2rem; }
.archive-placeholders p:not(.eyebrow) { color: var(--ink-soft); }
.archive-placeholders strong { color: var(--green); display: block; font-size: .72rem; margin-top: 2rem; text-transform: uppercase; }

.photo-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); padding-bottom: 5rem; padding-top: 5rem; }
.photo-grid figure { margin: 0; }
.photo-grid figure:first-child { grid-column: 1 / -1; }
.photo-grid img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; width: 100%; }
.photo-grid figure:first-child img { aspect-ratio: 16 / 8; }
.photo-band:has(.gallery-cta) .photo-grid { padding-bottom: 2.5rem; }
.gallery-cta { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding-bottom: 5rem; }
.gallery-cta p { color: rgba(255,255,255,.76); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; margin: 0; max-width: 520px; }

.round-band { padding-bottom: 5rem; }
.round-list { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.round-list li { background: #f1f0e9; display: flex; flex-direction: column; padding: 2rem; }
.round-list h3 { font-size: 1.85rem; margin-bottom: .75rem; }
.round-list p { margin-bottom: .35rem; }
.round-format { color: var(--ink-soft); font-size: .95rem; }
.round-result { color: var(--ink); font-weight: 600; }
.round-list strong { color: var(--green); display: block; font-size: .78rem; letter-spacing: .06em; margin-top: auto; padding-top: 1.5rem; text-transform: uppercase; }

.gallery-group { padding-bottom: 4.5rem; }
.gallery-group-heading { align-items: end; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding-top: 2rem; }
.gallery-group-heading h2 { font-size: 2.75rem; margin-bottom: 0; }
.gallery-group-heading > p { color: var(--ink-soft); margin: 0; max-width: 420px; }
.gallery-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); padding-top: 2.5rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid a { display: block; }
.gallery-grid img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; width: 100%; }
/* A column keeps every cell's download link on its own line: sharing a baseline
   with the caption leaves the grid ragged as soon as one caption wraps. */
.gallery-grid figcaption { align-items: flex-start; color: var(--ink-soft); display: flex; flex-direction: column; font-size: .88rem; gap: .35rem; padding-top: .6rem; }
.page-header .gallery-note { border-left: 3px solid var(--gold); color: var(--ink-soft); font-family: inherit; font-size: .95rem; margin-top: 1.5rem; max-width: 620px; padding-left: 1rem; }
.download-link { color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.download-link:hover { color: var(--coral); }

.year-nav { align-items: center; display: flex; justify-content: space-between; padding-bottom: 5rem; padding-top: 5rem; }
.year-nav > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.year-nav a { border: 1px solid var(--line); padding: .45rem .75rem; text-decoration: none; }
.year-nav a:hover { border-color: var(--coral); color: var(--coral); }

.sort-form { align-items: end; display: grid; gap: .55rem; grid-template-columns: 1fr auto; min-width: min(100%, 330px); }
.sort-form label { font-size: .75rem; font-weight: 800; grid-column: 1 / -1; }
.sort-form select, .sort-form button {
  border: 1px solid #9ca79f;
  border-radius: 0;
  font: inherit;
  min-height: 44px;
  padding: .55rem .7rem;
}
.sort-form select { background: var(--white); min-width: 210px; }
.sort-form button { background: var(--green); border-color: var(--green); color: var(--white); cursor: pointer; font-weight: 800; }

.player-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 7rem; }
.player-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.player-heading { align-items: center; display: flex; gap: 1.25rem; padding: 1.5rem; }
.player-heading img { aspect-ratio: 1; border-radius: 50%; flex: 0 0 112px; object-fit: cover; }
.player-heading h2 { font-size: 1.85rem; margin-bottom: .25rem; overflow-wrap: anywhere; }
.player-heading p { color: var(--green); margin-bottom: 0; }
.player-heading span { color: var(--ink-soft); font-size: .8rem; }
.record-table-wrap { overflow-x: auto; }
.record-table { border-collapse: collapse; font-size: .84rem; width: 100%; }
.record-table th, .record-table td { border-top: 1px solid var(--line); padding: .55rem 1rem; text-align: right; }
.record-table th:first-child { text-align: left; }
.record-table thead th { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; }
.record-total { background: #eff3ef; font-weight: 800; }

.stat-strip { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); padding-bottom: 3rem; }
.stat-strip > div { background: var(--green); color: var(--white); display: flex; flex-direction: column; min-height: 135px; padding: 1.3rem; }
.stat-strip span { color: rgba(255,255,255,.72); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.stat-strip strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.7rem; margin-top: auto; overflow-wrap: anywhere; }
.leaderboard { padding-bottom: 7rem; }
.leaderboard-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.leaderboard-heading h2 { font-size: 2.6rem; margin-bottom: 0; }
.leaderboard-heading > p { color: var(--ink-soft); font-size: .82rem; max-width: 330px; text-align: right; }
.wide-table-wrap { overflow-x: auto; }
.wide-table { border-collapse: collapse; min-width: 850px; width: 100%; }
.wide-table th, .wide-table td { border-bottom: 1px solid var(--line); padding: .9rem .75rem; text-align: right; }
.wide-table th:nth-child(2), .wide-table td:nth-child(2) { text-align: left; }
.wide-table thead th { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; }
.wide-table tbody tr:hover { background: var(--white); }
.wide-table tbody th a { text-underline-offset: .25rem; }
/* Group headings span five columns each; right-aligning them like a data cell
   parks the label at the far edge of the group it is supposed to sit over. */
.wide-table thead th[colspan] { border-bottom: 0; letter-spacing: .06em; text-align: center; }
.wide-table thead th[colspan] + th[colspan] { border-left: 1px solid var(--line); }
.wide-table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.career-table tbody th a { font-weight: 700; }
.career-table small { color: var(--ink-soft); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.career-unranked td, .career-unranked th { color: var(--ink-soft); }
.career-unranked .rank { opacity: .5; }
.table-hint { color: var(--ink-soft); font-size: .82rem; margin-top: .9rem; }
.verified-note { color: var(--ink-soft); font-size: .9rem; margin: -.4rem 0 1.1rem; max-width: 640px; }
.round-stake { color: var(--coral); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.rank { color: var(--coral); font-family: Georgia, "Times New Roman", serif; }

.not-found { min-height: 65vh; padding-bottom: 7rem; padding-top: 7rem; }
.not-found h1 { color: var(--green-dark); font-size: 6rem; max-width: 800px; }
.not-found > p:not(.eyebrow) { color: var(--ink-soft); }

.site-footer {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 3rem;
  padding-top: 3rem;
}
.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.site-footer p, .site-footer span { color: var(--ink-soft); font-size: .78rem; margin: 0; }
.footer-links { align-items: end; display: flex; flex-direction: column; gap: .25rem; }
.footer-links a { font-size: .8rem; font-weight: 700; }

@media (max-width: 900px) {
  h1 { font-size: 5rem; }
  h2 { font-size: 3rem; }
  .hero-content h1 { font-size: 7.5rem; }
  .page-header h1 { font-size: 5.5rem; }
  .event-row { grid-template-columns: 1fr 70px 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-copy { grid-column: 1 / -1; grid-row: 1; max-width: 700px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-group-heading h2 { font-size: 2.25rem; }
}

@media (max-width: 720px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.35rem; }
  .hero-content h1 { font-size: 5rem; }
  .hero-copy { font-size: 1.3rem; }
  .feature-copy h2 { font-size: 2.35rem; }
  .page-header h1 { font-size: 4rem; }
  .event-copy h2 { font-size: 2.35rem; }
  .event-score { font-size: 1.2rem; }
  .stat-strip strong { font-size: 2rem; }
  .not-found h1 { font-size: 4rem; }
  .nav-shell { grid-template-columns: 1fr auto; min-height: auto; padding-bottom: .8rem; padding-top: .8rem; }
  .nav-links { gap: 1.15rem; grid-column: 1 / -1; grid-row: 2; margin-top: .5rem; order: 3; }
  .nav-links a { padding: .45rem 0 .25rem; }
  .hero, .hero-content { min-height: min(72vh, 650px); }
  .hero-content { padding-bottom: 4rem; }
  .hero-caption { display: none; }
  .scoreband { padding: 1.25rem 1rem; }
  .scoreband div { padding: 0 .75rem; }
  .scoreband strong { font-size: 1.35rem; }
  .scoreband span { font-size: .6rem; }
  .intro-grid, .story-grid, .records-callout { gap: 1.5rem; grid-template-columns: 1fr; padding-bottom: 4rem; padding-top: 4rem; }
  .archive-placeholders { grid-template-columns: 1fr; }
  .event-row { gap: 1rem; grid-template-columns: 56px 1fr; }
  .event-image { grid-column: 1 / -1; }
  .event-year { grid-column: 1; }
  .event-copy { grid-column: 2; }
  .page-header-split { align-items: stretch; flex-direction: column; }
  .sort-form { min-width: 100%; }
  .player-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid figure:first-child { grid-column: auto; }
  .photo-grid figure:first-child img { aspect-ratio: 4 / 3; }
  .gallery-grid { gap: 1.25rem; grid-template-columns: 1fr; }
  .gallery-group-heading { align-items: flex-start; flex-direction: column; }
  .round-list { grid-template-columns: 1fr; }
  .gallery-cta { align-items: flex-start; flex-direction: column; }
  .year-nav { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .leaderboard-heading { align-items: flex-start; flex-direction: column; }
  .leaderboard-heading > p { text-align: left; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 430px) {
  .section-shell, .nav-shell, .site-footer { padding-inline: 1rem; }
  .wordmark > span:last-child { display: none; }
  .hero-content h1 { font-size: 4rem; }
  .hero-copy { font-size: 1.08rem; }
  .scoreband span { line-height: 1.25; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-photo:last-child { display: none; }
  .event-copy { grid-column: 1 / -1; }
  .event-year { grid-column: 1 / -1; }
  .event-meta { gap: 1rem; }
  .player-heading { align-items: flex-start; }
  .player-heading img { flex-basis: 82px; height: 82px; width: 82px; }
  .player-heading h2 { font-size: 1.55rem; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div { min-height: 100px; }
  .archive-note p { display: block; margin: .35rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Authenticated bookkeeping workspace */
.private-body { background: #eef0ed; color: #18201c; }
.private-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.private-sidebar {
  background: #18201c;
  color: #f6f7f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.4rem 1rem;
  position: sticky;
  top: 0;
}
.private-wordmark { align-items: center; display: flex; gap: .75rem; padding: 0 .55rem 1.6rem; text-decoration: none; }
.private-wordmark span { align-items: center; background: #d75e43; display: inline-flex; font-size: .68rem; height: 34px; justify-content: center; width: 34px; }
.private-wordmark strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.private-nav { border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; padding-top: 1rem; }
.private-nav a { border-left: 3px solid transparent; color: rgba(255,255,255,.72); font-size: .88rem; font-weight: 700; padding: .7rem .75rem; text-decoration: none; }
.private-nav a:hover { color: #fff; }
.private-nav a[aria-current="page"] { background: rgba(255,255,255,.08); border-color: #e4ad42; color: #fff; }
.private-public-link { color: rgba(255,255,255,.68); font-size: .78rem; margin-top: auto; padding: .7rem .75rem; }
.private-workspace { min-width: 0; }
.test-book-banner { align-items: center; background: #b42318; border-bottom: 3px solid #74150e; box-shadow: 0 2px 8px rgba(62, 8, 5, .24); color: #fff; display: flex; font-size: .88rem; gap: .8rem; justify-content: center; letter-spacing: .02em; min-height: 52px; padding: .65rem 1rem; position: sticky; text-align: center; top: 0; width: 100%; z-index: 10; }
.test-book-banner strong { color: #fff; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; }
.private-topbar { align-items: center; background: #fff; border-bottom: 1px solid #d8ddd8; display: flex; justify-content: space-between; min-height: 66px; padding: .8rem 2rem; }
.private-topbar > div { display: flex; flex-direction: column; }
.private-topbar strong { font-size: .88rem; }
.private-context { color: #66716b; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.private-role, .private-status { border: 1px solid #b8c1bb; border-radius: 4px; font-size: .68rem; font-weight: 800; padding: .2rem .45rem; text-transform: uppercase; }
.private-role { color: #174d36; }
.private-topbar .private-session-actions { align-items: flex-end; flex-direction: row; gap: .65rem; }
.private-session-actions form { margin: 0; }
.private-session-actions button { background: transparent; border: 0; color: #174d36; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; padding: .2rem 0; }
.private-session-actions button:hover { text-decoration: underline; }
.private-main { margin-inline: auto; max-width: 1320px; padding: 2.25rem 2rem 5rem; }
.private-page-heading { align-items: end; border-bottom: 1px solid #cfd5d0; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1.6rem; }
.private-page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; margin-bottom: 0; }
.private-page-heading > p { color: #5b6760; font-size: .88rem; margin: 0; max-width: 420px; text-align: right; }
.private-kicker { color: #b74934; font-size: .68rem; font-weight: 800; margin-bottom: .35rem; text-transform: uppercase; }
.private-section-heading { align-items: center; display: flex; justify-content: space-between; margin: 2.5rem 0 1rem; }
.private-section-heading h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1rem; margin: 0; }
.private-section-heading a { color: #174d36; font-size: .78rem; font-weight: 800; }
.balance-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.balance-card { background: #fff; border: 1px solid #d8ddd8; border-radius: 5px; display: flex; flex-direction: column; min-height: 136px; padding: 1rem 1.1rem; }
.balance-card span { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.balance-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; margin-top: auto; }
.balance-card small { color: #6c7770; font-size: .7rem; }
.private-metrics { border-bottom: 1px solid #cfd5d0; border-top: 1px solid #cfd5d0; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.private-metrics > div { border-right: 1px solid #cfd5d0; display: flex; flex-direction: column; padding: 1rem; }
.private-metrics > div:last-child { border-right: 0; }
.private-metrics span { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.private-metrics strong { font-size: 1.7rem; }
.private-table-wrap { background: #fff; border: 1px solid #d8ddd8; overflow-x: auto; }
.private-table { border-collapse: collapse; font-size: .8rem; min-width: 690px; width: 100%; }
.private-table-wide { min-width: 920px; }
.private-table th, .private-table td { border-bottom: 1px solid #e1e5e1; padding: .8rem .85rem; text-align: left; vertical-align: middle; }
.private-table thead th { background: #f7f8f6; color: #5b6760; font-size: .64rem; text-transform: uppercase; }
.private-table tbody tr:last-child th, .private-table tbody tr:last-child td { border-bottom: 0; }
.private-table tbody tr:hover { background: #fafbf9; }
.private-table tbody th { font-size: .82rem; }
.private-table tbody th small { color: #6c7770; display: block; font-size: .65rem; font-weight: 500; }
.private-table .private-money, .private-table .private-odds { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.private-table td:first-child, .private-table td:nth-child(4) { color: #5b6760; white-space: nowrap; }
.private-status { background: #f3f5f2; display: inline-block; max-width: 170px; overflow-wrap: anywhere; }
.private-empty { background: #fff; border: 1px solid #d8ddd8; color: #5b6760; grid-column: 1 / -1; margin: 0; padding: 1.5rem; }
.private-empty-cell { color: #5b6760; padding: 2rem !important; text-align: center !important; }
.reconciliation-state { border-left: 5px solid; display: grid; gap: 2rem; grid-template-columns: minmax(180px, .7fr) 1.3fr; padding: 1.5rem; }
.reconciliation-state.is-clear { background: #e4efe7; border-color: #287748; }
.reconciliation-state.is-alert { background: #f7e6e1; border-color: #bf4933; }
.reconciliation-state span { color: #536159; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.reconciliation-state h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.6rem; margin: .25rem 0 0; }
.reconciliation-state dl { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin: 0; }
.reconciliation-state dl div { border-left: 1px solid rgba(24,32,28,.18); display: flex; flex-direction: column; padding: .4rem 1rem; }
.reconciliation-state dt { color: #536159; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.reconciliation-state dd { font-size: 1.15rem; font-weight: 800; margin: auto 0 0; overflow-wrap: anywhere; }
.admin-metric-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
.admin-metric-grid article { background: #fff; border: 1px solid #d8ddd8; border-radius: 5px; display: flex; flex-direction: column; min-height: 120px; padding: 1rem; }
.admin-metric-grid span { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.admin-metric-grid strong { font-size: 2rem; margin-top: auto; }
.private-forbidden { padding: 5rem 0; }
.private-forbidden h1 { font-size: 3.8rem; margin-bottom: 1rem; }
.private-forbidden > p:not(.private-kicker) { color: #5b6760; }
.private-forbidden a { color: #174d36; font-weight: 800; }

@media (max-width: 900px) {
  .private-shell { grid-template-columns: 1fr; }
  .private-sidebar { align-items: center; display: grid; grid-template-columns: auto 1fr auto; min-height: auto; padding: .7rem 1rem; position: static; }
  .private-wordmark { padding: 0; }
  .private-wordmark strong { display: none; }
  .private-nav { border: 0; flex-direction: row; justify-content: center; padding: 0; }
  .private-nav a { border-bottom: 3px solid transparent; border-left: 0; padding: .55rem .7rem; }
  .private-nav a[aria-current="page"] { border-bottom-color: #e4ad42; }
  .private-public-link { margin: 0; padding: .4rem; }
  .private-main { padding-top: 2rem; }
}

@media (max-width: 680px) {
  .private-sidebar { align-items: start; grid-template-columns: auto 1fr; }
  .private-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin-top: .45rem; overflow-x: auto; }
  .private-public-link { grid-column: 2; grid-row: 1; justify-self: end; }
  .test-book-banner { align-items: center; flex-direction: column; gap: .05rem; }
  .private-topbar { padding-inline: 1rem; }
  .private-main { padding: 1.5rem 1rem 4rem; }
  .private-page-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .private-page-heading h1 { font-size: 2.3rem; }
  .private-page-heading > p { text-align: left; }
  .balance-grid, .admin-metric-grid { grid-template-columns: 1fr; }
  .balance-card, .admin-metric-grid article { min-height: 112px; }
  .private-metrics > div { padding: .7rem; }
  .private-metrics span { font-size: .6rem; }
  .private-metrics strong { font-size: 1.35rem; }
  .reconciliation-state { grid-template-columns: 1fr; }
  .reconciliation-state dl { grid-template-columns: 1fr; }
  .reconciliation-state dl div { border-left: 0; border-top: 1px solid rgba(24,32,28,.18); padding: .7rem 0; }
  .private-forbidden { padding-top: 3rem; }
  .private-forbidden h1 { font-size: 2.8rem; }
}

/* Betting slice */
.betting-market-card { background: var(--white); border: 1px solid #d8ddd8; margin-bottom: 1.1rem; padding: 1rem; }
.betting-market-card .private-table-wrap { border: 0; border-top: 1px solid #e1e5e1; }
/* Every market renders its own table, so auto layout sized each one to its own
   longest selection name and the columns zig-zagged down the page. Fixed widths
   line all the cards up, and the Odds header sits over its right-aligned numbers
   instead of floating to the left of them. */
.betting-market-card .private-table { min-width: 560px; table-layout: fixed; }
.betting-market-card .private-table th:nth-child(2),
.betting-market-card .private-table td:nth-child(2) { text-align: right; width: 7rem; }
.betting-market-card .private-table th:nth-child(3),
.betting-market-card .private-table td:nth-child(3) { width: 12.5rem; }
.betting-market-card .private-table tbody th { overflow-wrap: anywhere; }
.betting-market-head h2 { font-size: 1.02rem; margin: 0 0 .2rem; }
.betting-market-meta { color: #5b6760; font-size: .72rem; margin: 0 0 .8rem; }
.betting-place-form { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem; }
.betting-place-form input[name="stake"] { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; font-size: .8rem; padding: .35rem .5rem; width: 6.5rem; }
.betting-place-form button, .betting-inline-form button, .betting-form button { background: var(--green); border: 1px solid var(--green); border-radius: 4px; color: var(--white); cursor: pointer; font: inherit; font-size: .74rem; font-weight: 800; padding: .35rem .7rem; }
.betting-place-form button:hover, .betting-inline-form button:hover, .betting-form button:hover { background: var(--green-dark); }
.betting-inline-form { align-items: center; display: inline-flex; flex-wrap: wrap; gap: .4rem; margin: .1rem .35rem .1rem 0; }
.betting-inline-form input { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; font-size: .78rem; padding: .3rem .5rem; width: 9rem; }
.betting-danger-button { background: #8c2f2f; border-color: #8c2f2f; }
.betting-place-form .betting-danger-button:hover, .betting-inline-form .betting-danger-button:hover, .betting-form .betting-danger-button:hover { background: #6f2222; }
.betting-actions-cell { white-space: normal; }
.betting-action-link { color: var(--green); font-size: .76rem; font-weight: 800; }
.betting-primary-link { color: var(--green); font-weight: 800; }
.betting-selection-chip { background: #f3f5f2; border: 1px solid #d8ddd8; border-radius: 4px; display: inline-block; font-size: .7rem; margin: .1rem .25rem .1rem 0; padding: .15rem .4rem; }
.betting-reason { color: #7c2d26; display: block; font-size: .68rem; margin-top: .25rem; }
.betting-form-error { background: #f9edec; border: 1px solid #d8a7a3; color: #7c2d26; font-size: .8rem; margin-bottom: 1rem; padding: .6rem .8rem; }
.betting-action-result { background: #eef4ef; border: 1px solid #b8c1bb; border-radius: 4px; display: inline-block; font-size: .78rem; padding: .5rem .7rem; }
.betting-action-result a { color: var(--green); font-weight: 800; }
.betting-action-error { background: #f9edec; border-color: #d8a7a3; color: #7c2d26; }
.betting-form { background: var(--white); border: 1px solid #d8ddd8; display: grid; gap: .9rem; max-width: 680px; padding: 1.1rem; }
.betting-form label { display: grid; font-size: .74rem; font-weight: 700; gap: .3rem; }
.betting-form input, .betting-form select, .betting-form textarea { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; font-size: .82rem; padding: .45rem .55rem; }
.betting-form fieldset { border: 1px solid #d8ddd8; border-radius: 4px; display: grid; gap: .8rem; padding: .9rem; }
.betting-form legend { font-size: .74rem; font-weight: 800; padding: 0 .3rem; text-transform: uppercase; }
.betting-selection-slot { border-top: 1px dashed #d8ddd8; display: grid; gap: .6rem; padding-top: .8rem; }
.betting-selection-slot:first-of-type { border-top: 0; padding-top: 0; }
.betting-selection-slot p { margin: 0; }
.betting-outcome-options { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .78rem; }
.betting-outcome-options label { align-items: center; display: inline-flex; font-weight: 600; gap: .3rem; }
.betting-form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .7rem; }
.betting-line-alert { background: #f9edec; border: 1px solid #d8a7a3; border-left: 5px solid #8c2f2f; color: #7c2d26; margin-bottom: 1rem; padding: .7rem .9rem; }
.betting-line-alert strong { display: block; font-size: .78rem; text-transform: uppercase; }
.betting-line-alert p { font-size: .78rem; margin: .2rem 0 0; }
.betting-line-cell { text-align: right; white-space: normal; }
.betting-line-price { display: block; font-weight: 800; }
.betting-line-flag { color: #5b6760; display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .02em; margin-top: .15rem; text-transform: uppercase; }
.betting-line-flag.is-warning { background: #f9edec; border: 1px solid #d8a7a3; border-radius: 4px; color: #7c2d26; padding: .1rem .35rem; }
.betting-line-flag.is-ok { color: #2c6b45; }
.betting-line-cell small { color: #7c2d26; display: block; font-size: .66rem; font-weight: 500; margin-top: .2rem; }
.betting-line-cell small.betting-line-note { color: #5b6760; }
.private-table tbody tr.is-line-moved { background: #fdf6f4; }
.private-table tbody tr.is-line-moved:hover { background: #f9edec; }
@media (max-width: 700px) {
  .betting-place-form { justify-content: flex-start; }
  .betting-place-form input[name="stake"] { width: 5.5rem; }
  .betting-form { padding: .85rem; }
  .betting-inline-form input { width: 100%; }
}

/* Dynamic pricing UI */
.betting-pricing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  background: var(--accent-soft, #e6f0ff);
  color: var(--accent-strong, #1f4fd6);
  vertical-align: middle;
}
.betting-line-moved {
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
}
.betting-pricing {
  border: 1px solid var(--border, #d7dbe0);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
.betting-inline-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.betting-inline-check input { width: auto; }
.betting-hint {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  margin: 0.4rem 0 0;
}
.market-create-form { max-width: 980px; }
.market-form-grid { display: grid; gap: .85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-match-fields, [data-custom-market-fields] { display: grid; gap: .85rem; }
.match-market-preview { background: #f4f6f3; border: 1px solid #cfd6d0; border-radius: .5rem; padding: 1rem; }
.match-market-preview > h2 { font-size: 1rem; margin: 0 0 .75rem; }
.match-market-sides { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match-market-sides article { background: #fff; border: 1px solid #d8ddd8; border-radius: .4rem; padding: .85rem; }
.match-market-sides h3 { margin: 0; }
.match-market-sides p { color: #66716b; min-height: 1.25rem; }
.odds-entry { display: grid; gap: .4rem; grid-template-columns: 4.25rem minmax(7rem, 1fr); }
.odds-entry select, .odds-entry input { margin: 0; }
.outcome-entry { display: grid; gap: .75rem; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); }
[hidden] { display: none !important; }

/* Member management */
.members-section { margin: 1.5rem 0; }
.members-notice {
  background: var(--accent-soft, #e6f0ff);
  border: 1px solid var(--accent-strong, #1f4fd6);
  color: var(--accent-strong, #1f4fd6);
  padding: 0.6rem 0.9rem; border-radius: 0.5rem;
}
.members-invite-link { margin: 0.75rem 0; display: grid; gap: 0.35rem; }
.members-invite-link input {
  width: 100%; padding: 0.5rem; font-family: ui-monospace, monospace; font-size: 0.9rem;
}
.members-invite-form { max-width: 42rem; }
.members-role-form, .members-revoke-form {
  display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin: 0.2rem 0;
}
.members-role-form input, .members-revoke-form input { width: auto; flex: 1 1 8rem; }
.members-revoke-button { background: var(--danger, #b42318); color: #fff; }
.members-pending-badge {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem; border-radius: 0.4rem;
  background: var(--muted-soft, #f0f0f2); color: var(--muted, #6b7280); vertical-align: middle;
}

/* Admin help page */
.help-section { margin: 1.5rem 0; max-width: 60ch; }
.help-section h2 { margin-bottom: 0.4rem; }
.help-section ul { margin: 0.4rem 0 0.4rem 1.1rem; }
.help-section li { margin: 0.25rem 0; }

.competition-setup-list > li { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem; }
.competition-event { max-width: none; }
.competition-roster-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.competition-roster-card { background: #fff; border: 1px solid #d8ddd8; border-radius: 5px; min-width: 0; padding: .8rem; }
.competition-roster-heading { align-items: center; display: flex; gap: .6rem; justify-content: space-between; }
.competition-roster-heading h4 { margin: 0; }
.private-status-warning { background: #fff4db; border-color: #d49b2f; color: #76520d; }
.competition-roster-list { list-style: none; margin: .7rem 0 !important; padding: 0; }
.competition-roster-list > li { align-items: center; border-top: 1px solid #e5e8e5; display: flex; gap: .5rem; justify-content: space-between; margin: 0; padding: .55rem 0; }
.competition-captain-badge { color: #174d36; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.competition-roster-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.competition-roster-actions form { margin: 0; }
.private-link-button { background: transparent; border: 0; color: #174d36; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; padding: 0; }
.competition-roster-add { align-items: end; display: flex; }
.competition-roster-add label { display: grid; font-size: .68rem; font-weight: 800; gap: .2rem; }
.competition-roster-add select { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; max-width: 12rem; padding: .3rem .5rem; }
.competition-roster-add .betting-check { align-items: center; display: flex; flex-direction: row; font-weight: 700; }
.competition-delete-control { font-size: .72rem; }
.competition-delete-control summary { color: var(--danger, #b42318); cursor: pointer; font-weight: 800; }
.competition-delete-form { align-items: end; background: #fff7f6; border: 1px solid #e7b9b4; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; padding: .6rem; }
.competition-delete-form label { display: grid; flex: 1 1 14rem; font-size: .67rem; font-weight: 800; gap: .2rem; }
.competition-delete-form input { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; min-width: 12rem; padding: .35rem .5rem; }
.competition-delete-form button { border: 0; border-radius: 4px; color: #fff; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; padding: .42rem .65rem; }
.competition-event-delete { border-top: 1px solid #d8ddd8; margin-top: 1rem; padding-top: .75rem; }
.competition-event-delete p { color: #5b6760; font-size: .75rem; margin: .4rem 0; }
.competition-matchup strong, .competition-matchup small { display: block; }
.competition-matchup small { color: #69756d; font-size: .68rem; margin-top: .1rem; }
.competition-matchup span { color: #7d877f; display: block; font-size: .65rem; font-weight: 800; margin: .25rem 0; text-transform: uppercase; }
.competition-match-form { align-items: end; display: grid; gap: .6rem; grid-template-columns: repeat(3, minmax(9rem, 1fr)); }
.competition-match-form label { display: grid; gap: .2rem; }
.competition-match-form button { justify-self: start; }
.competition-player-picker { align-self: stretch; background: #fff; border: 1px solid #b8c1bb; border-radius: 4px; margin: 0; max-height: 11rem; min-width: 0; overflow-y: auto; padding: .35rem; }
.competition-player-picker[aria-invalid="true"] { border-color: var(--danger, #b42318); }
.competition-player-picker legend { font-size: .78rem; font-weight: 800; padding: 0 .2rem; }
.competition-match-form .competition-player-option { align-items: center; border-radius: 3px; cursor: pointer; display: flex; font-size: .78rem; gap: .45rem; padding: .35rem .4rem; }
.competition-player-option:hover { background: #f1f4f1; }
.competition-player-option input { accent-color: #174d36; flex: 0 0 auto; height: 1rem; margin: 0; width: 1rem; }
.competition-player-option input:focus-visible { outline: 2px solid #174d36; outline-offset: 2px; }
.competition-participant-rule { grid-column: 1 / -1; margin: 0; }
.competition-result-summary { display: grid; gap: .15rem; }
.competition-result-summary span, .competition-result-summary small { color: #69756d; }

.authoritative-seasons, .verified-records, .authoritative-career { margin-top: clamp(3rem, 7vw, 6rem); }
.authoritative-season-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.authoritative-season-grid a { background: var(--paper); border: 1px solid var(--line); color: var(--ink); display: grid; gap: .2rem; padding: 1rem; text-decoration: none; }
.authoritative-season-grid a:hover { border-color: var(--green); }
.authoritative-season-grid span { color: var(--rust); font-size: .72rem; font-weight: 800; }
.authoritative-season-grid small { color: var(--muted); }
.verified-records > h3 { margin-top: 2.5rem; }
.verified-match-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.verified-match-card { background: var(--paper); border: 1px solid var(--line); display: grid; gap: .8rem; padding: 1rem; }
.verified-match-meta { color: var(--muted); display: flex; font-size: .68rem; font-weight: 800; justify-content: space-between; text-transform: uppercase; }
.verified-match-sides { align-items: center; display: grid; gap: .5rem; grid-template-columns: 1fr auto 1fr; }
.verified-match-sides div { display: grid; }
.verified-match-sides div:last-child { text-align: right; }
.verified-match-sides small, .verified-match-card > small { color: var(--muted); }
.verified-match-result { border-top: 1px solid var(--line); margin: 0; padding-top: .7rem; }
.verified-match-result span { color: var(--muted); margin-left: .4rem; }
.verified-compact-table { min-width: 580px; }
.verified-stats-table { min-width: 1100px; }
.verified-season-links { margin-top: 1rem; }
.verified-season-links a { color: var(--green); font-weight: 800; margin-left: .5rem; }

@media (max-width: 680px) {
  .competition-match-form { grid-template-columns: 1fr; }
  .competition-roster-grid, .authoritative-season-grid, .verified-match-grid { grid-template-columns: 1fr; }
  .competition-roster-list > li { align-items: flex-start; flex-direction: column; }
  .competition-roster-actions { justify-content: flex-start; }
  .competition-delete-form { align-items: stretch; }
  .competition-delete-form input { min-width: 0; width: 100%; }
}
.help-callout {
  background: var(--accent-soft, #e6f0ff);
  border-left: 3px solid var(--accent-strong, #1f4fd6);
  padding: 0.6rem 0.9rem; border-radius: 0 0.4rem 0.4rem 0; margin: 0.6rem 0;
}

.help-settings dt { font-weight: 600; margin-top: 0.6rem; }
.help-settings dd { margin: 0.1rem 0 0.4rem 0; color: var(--muted, #444); }
.members-limit-form { display: flex; gap: 0.35rem; align-items: center; }
.members-limit-form input { width: 6rem; }

.matches-ids code { font-size: 0.75rem; display: inline-block; }

@media (max-width: 680px) {
  .market-form-grid, .match-market-sides, .outcome-entry { grid-template-columns: 1fr; }
}

/* Admin dashboard (book pulse) */
.pulse-hero { align-items: stretch; display: grid; gap: .8rem; grid-template-columns: minmax(240px, .8fr) 1.2fr; margin-bottom: 1.6rem; }
.pulse-hero-figure { background: #fff; border: 1px solid #d8ddd8; border-left: 5px solid #174d36; display: flex; flex-direction: column; padding: 1.1rem 1.2rem; }
.pulse-hero-figure.is-down { border-left-color: #b03a2e; }
.pulse-hero-figure span { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.pulse-hero-figure strong { font-size: 2.9rem; letter-spacing: -.02em; line-height: 1.05; margin-top: auto; }
.pulse-hero-figure.is-down strong { color: #b03a2e; }
.pulse-hero-figure small { color: #5b6760; font-size: .72rem; margin-top: .35rem; }
.pulse-hero-stats { background: #fff; border: 1px solid #d8ddd8; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin: 0; }
.pulse-hero-stats > div { border-left: 1px solid #e1e5e1; display: flex; flex-direction: column; padding: 1.1rem 1rem; }
.pulse-hero-stats > div:first-child { border-left: 0; }
.pulse-hero-stats dt { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.pulse-hero-stats dd { font-size: 1.55rem; font-weight: 800; margin: .3rem 0 auto; overflow-wrap: anywhere; }
.pulse-hero-stats span { color: #6c7770; font-size: .68rem; margin-top: .4rem; }
.pulse-swing { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); }
.pulse-swing article { background: #fff; border: 1px solid #d8ddd8; border-top: 3px solid #c9cfc9; display: flex; flex-direction: column; min-height: 132px; padding: .9rem 1rem; }
.pulse-swing article.is-worst { border-top-color: #b03a2e; }
.pulse-swing article.is-best { border-top-color: #0f6f96; }
.pulse-swing span { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.pulse-swing strong { font-size: 1.7rem; margin: .35rem 0 .4rem; overflow-wrap: anywhere; }
.pulse-swing article.is-worst strong { color: #b03a2e; }
.pulse-swing small { color: #5b6760; font-size: .7rem; margin-top: auto; }
.pulse-swing a { color: var(--green); font-weight: 800; }
.pulse-note { color: #5b6760; font-size: .78rem; margin: -.2rem 0 .7rem; max-width: 62ch; }
/* Tint the outcome cells only. The market name is a rowspan cell living in the
   first outcome's row, so tinting the whole row bled the highlight across every
   row of that market and made one flagged outcome look like a flagged market. */
.private-table tbody tr.is-worst-outcome > td { background: #fdf6f4; }
.private-table tbody tr.is-worst-outcome:hover > td { background: #f9edec; }
.private-table .is-behind-text { color: #b03a2e; }
.private-table .is-ahead-text { color: #0f6f96; }
.pulse-chart { margin: 0; }
.pulse-chart figcaption { align-items: center; color: #5b6760; display: flex; flex-wrap: wrap; font-size: .72rem; gap: .9rem; margin-bottom: .5rem; }
.pulse-key { align-items: center; display: inline-flex; gap: .35rem; }
.pulse-swatch { border-radius: 2px; display: inline-block; height: .7rem; width: .7rem; }
.pulse-swatch.is-ahead { background: #0f6f96; }
.pulse-swatch.is-behind { background: #b03a2e; }
.pulse-key-scale { margin-left: auto; }
.pulse-standings { min-width: 760px; }
.pulse-standings .pulse-plot { padding-block: .5rem; width: 38%; }
/* The bars are SVG because this page runs under style-src 'self': an inline
   style attribute never reaches the browser, so the width has to travel as
   SVG geometry. Colour still comes from here, which CSP allows. */
.pulse-plot-svg { display: block; height: 1.4rem; width: 100%; }
.pulse-svg-track { fill: #eef1ee; }
.pulse-svg-zero { fill: #9aa39c; }
.pulse-svg-bar.is-ahead { fill: #0f6f96; }
.pulse-svg-bar.is-behind { fill: #b03a2e; }
.pulse-standings tbody tr:hover .pulse-svg-bar.is-ahead { fill: #0c5b7c; }
.pulse-standings tbody tr:hover .pulse-svg-bar.is-behind { fill: #93301f; }
.pulse-standings tbody td small { color: #6c7770; }
.private-main section + .reconciliation-state { margin-top: 1.6rem; }

@media (max-width: 900px) {
  .pulse-hero { grid-template-columns: 1fr; }
  .pulse-swing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .pulse-hero-figure strong { font-size: 2.2rem; }
  .pulse-hero-stats { grid-template-columns: 1fr; }
  .pulse-hero-stats > div { border-left: 0; border-top: 1px solid #e1e5e1; }
  .pulse-hero-stats > div:first-child { border-top: 0; }
  .pulse-swing { grid-template-columns: 1fr; }
  .pulse-swing article { min-height: auto; }
}

/* Member overview: balances, limits, and what a member has riding */
.balance-card small { line-height: 1.35; }
.balance-card-accent { border-left: 4px solid #174d36; }
.private-metrics > div small { color: #6c7770; font-size: .7rem; margin-top: .3rem; }
.private-metrics strong { line-height: 1.2; }
.private-reference { color: #8a938c; display: block; font-size: .68rem; overflow-wrap: anywhere; }
.private-table-note { color: #5b6760; font-size: .78rem; margin: .6rem 0 0; }
.private-table-note a, .private-empty-cell a { color: #174d36; font-weight: 700; }
.pulse-owed { grid-template-columns: repeat(2, 1fr); margin-bottom: .9rem; }
.private-table tbody tr.is-reversed { color: #6c7770; }
.private-table tbody tr.is-reversed .private-money { text-decoration: line-through; }
.settle-up-form select { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; font-size: .78rem; padding: .3rem .4rem; }
.settle-up-form input[name="amount"] { width: 6rem; }

/* Stacked tables on phones.
   A table marked .private-table-stack drops its header row on a narrow screen
   and becomes one card per row, each cell labelled from data-label. Nothing on
   these pages should need a sideways swipe — placing a bet least of all. */
@media (max-width: 680px) {
  .private-table-stack { min-width: 0; width: 100%; }
  .private-table-stack thead { display: none; }
  .private-table-stack, .private-table-stack tbody, .private-table-stack tr { display: block; }
  .private-table-stack tbody tr { border-bottom: 1px solid #e1e5e1; padding: .8rem .85rem; }
  .private-table-stack tbody tr:last-child { border-bottom: 0; }
  .private-table-stack tbody th[scope="row"] { border: 0; display: block; font-size: .95rem; padding: 0 0 .4rem; }
  .private-table-stack tbody td { align-items: baseline; border: 0; display: flex; gap: 1rem; justify-content: space-between; padding: .2rem 0; text-align: right; white-space: normal; }
  .private-table-stack tbody td::before { color: #5b6760; content: attr(data-label); flex: 0 0 auto; font-size: .64rem; font-weight: 800; margin-right: auto; text-align: left; text-transform: uppercase; }
  /* A cell with several parts keeps them together on the right, beside the
     label, instead of spreading across the card. */
  .private-table-stack tbody td { column-gap: .4rem; }
  .private-table-stack tbody td:not([data-label])::before { content: none; }
  .private-table-stack tbody td.private-empty-cell { display: block; text-align: center !important; }
  .private-table-stack tbody td.is-stack-block { display: block; padding-top: .5rem; text-align: left; }
  .private-table-stack tbody td.is-stack-block::before { display: block; margin-bottom: .3rem; }
  /* Forms inside a stacked row get the full width: a thumb-sized target,
     not a field squeezed into a table cell. */
  .private-table-stack .betting-place-form, .private-table-stack .betting-inline-form { display: flex; margin: 0 0 .4rem; width: 100%; }
  .private-table-stack .betting-place-form input[name="stake"],
  .private-table-stack .betting-inline-form input:not([type="hidden"]),
  .private-table-stack .settle-up-form select { flex: 1 1 auto; min-width: 0; width: auto; }
  .private-table-stack .betting-place-form button, .private-table-stack .betting-inline-form button { flex: 0 0 auto; padding: .5rem 1rem; }
  .private-table-stack .pulse-plot { display: block; padding-top: .5rem; width: auto; }
  .private-table-stack .pulse-plot::before { display: block; margin-bottom: .3rem; }
}
.is-stack-only { display: none; }
@media (max-width: 680px) {
  .private-table-stack tbody th.is-stack-hidden { display: none; }
  .private-table-stack .is-stack-only { color: #6c7770; display: block; font-size: .68rem; font-weight: 500; }
}
@media (max-width: 680px) {
  /* Settle-up has three inputs in a row; on a phone each gets its own line
     so the note field is not a two-character slot. */
  .private-table-stack .settle-up-form { flex-wrap: wrap; gap: .45rem; }
  .private-table-stack .settle-up-form select,
  .private-table-stack .settle-up-form input[name="reason"] { flex: 1 0 100%; }
  .private-table-stack .settle-up-form input[name="amount"] { flex: 1 1 6rem; }
}

/* Wager record: three prices per row, so each cell's secondary line needs to
   sit under its value rather than run on beside it. */
.wager-record tbody td small { color: #6c7770; display: block; font-size: .68rem; font-weight: 500; margin-top: .15rem; }
.wager-record .wager-record-pick { min-width: 12rem; }
.wager-record .betting-line-cell { min-width: 9rem; }
.wager-record .betting-line-cell small { margin-left: auto; }
@media (max-width: 680px) {
  .wager-record tbody td small { text-align: right; }
  .wager-record .wager-record-pick, .wager-record .betting-line-cell { min-width: 0; }
}
.wager-record .private-status { white-space: nowrap; }
.betting-selection-line { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .35rem; }
.betting-set-line-form input[name="odds"] { width: 4.5rem; }
.betting-set-line-form input[name="reason"] { width: 8rem; }
.betting-outcome-controls { align-items: center; display: flex; flex-wrap: wrap; gap: .7rem; margin: .2rem 0 0; }
.betting-outcome-controls button { background: var(--white); border: 1px solid var(--green); border-radius: 4px; color: var(--green); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; padding: .4rem .8rem; }
.betting-outcome-controls button:hover:not(:disabled) { background: #eef4ef; }
.betting-outcome-controls button:disabled { border-color: #b8c1bb; color: #6c7770; cursor: not-allowed; }
.betting-restrict { margin-top: .4rem; }
.betting-restrict summary { color: #8c2f2f; cursor: pointer; font-size: .74rem; font-weight: 800; }
.betting-restrict-form { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.betting-restrict-form select { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; font-size: .76rem; max-width: 11rem; padding: .3rem .4rem; }

/* Two views of the same thing get tabs, not a link buried in a sentence. */
.private-tabs { border-bottom: 1px solid #d8ddd8; display: flex; flex-wrap: wrap; gap: .2rem; margin: -.6rem 0 1.4rem; }
.private-tabs a { border-bottom: 3px solid transparent; color: #5b6760; font-size: .82rem; font-weight: 800; padding: .55rem .9rem; text-decoration: none; }
.private-tabs a:hover { color: var(--ink); }
.private-tabs a[aria-current="page"] { border-bottom-color: var(--green); color: var(--ink); }
.betting-close-time-form { margin-top: .35rem; }
.betting-close-time-form input[type="datetime-local"] { border: 1px solid #b8c1bb; border-radius: 4px; font: inherit; font-size: .74rem; padding: .25rem .35rem; width: auto; }
.betting-close-time-form input[name="reason"] { width: 7rem; }
.dashboard-panel[hidden] { display: none; }
.table-filter { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.table-filter label { color: #5b6760; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.table-filter input { border: 1px solid #b8c1bb; border-radius: 4px; flex: 1 1 18rem; font: inherit; font-size: .82rem; max-width: 26rem; padding: .4rem .6rem; }
.table-filter-count { color: #6c7770; font-size: .74rem; }
.private-table tbody tr[hidden] { display: none; }
.betting-side-limit { color: #6c7770; display: inline-block; font-size: .66rem; font-weight: 700; }

/* The book's ceiling on a side, distinct from the per-member limit beside it:
   they bound different things and must not read as the same control. */
.betting-side-cap { background: #f3ece1; border: 1px solid var(--gold, #d7a63d); border-radius: 3px; color: #6b5320; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: .1rem .4rem; text-transform: uppercase; white-space: nowrap; }
.betting-no-action summary { cursor: pointer; font-size: .78rem; font-weight: 700; }
.betting-no-action[open] summary { margin-bottom: .4rem; }

.betting-limit-form input[name="max_stake"] { width: 5rem; }
.betting-limit-form input[name="reason"] { width: 6rem; }
.outcome-limit input { font-size: .82rem; }

/* Where a failed action reports itself. Empty until htmx swaps a message in,
   so it must not take up space or announce itself when there is nothing to
   say. Sticky so a failure is visible wherever the page is scrolled. */
.private-action-status:empty { display: none; }
.private-action-status { position: sticky; top: 0; z-index: 20; padding: 0 1.5rem; }
.private-action-status .betting-action-result { margin: .75rem 0; }

/* --- Parlay slip ---------------------------------------------------------
   The slip sits above the board and prices itself as legs go in, so a member
   sees what a combination is worth before committing to it. */
.parlay-builder { background: #fff; border: 1px solid #d8ddd8; border-left: 3px solid var(--coral); margin-bottom: 1.75rem; padding: 1.25rem 1.4rem; }
.parlay-builder-head h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.parlay-builder-head p { color: #5d6862; font-size: .85rem; margin: 0 0 1rem; max-width: 60ch; }
.parlay-stake-field { align-items: center; display: flex; gap: .6rem; margin-bottom: .9rem; }
.parlay-stake-field span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.parlay-stake-field input { border: 1px solid #9ca79f; padding: .45rem .55rem; width: 7rem; }
.parlay-empty { color: #5d6862; font-size: .88rem; margin: 0; }
.parlay-legs { display: grid; gap: .4rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.parlay-legs li { align-items: baseline; background: #f5f7f4; display: flex; flex-wrap: wrap; gap: .5rem; padding: .45rem .6rem; }
.parlay-legs strong { font-size: .92rem; }
.parlay-legs small { color: #6c7770; flex: 1; font-size: .74rem; }
.parlay-price { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0 0 .8rem; }
.parlay-price div { display: grid; }
.parlay-price dt { color: #6c7770; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.parlay-price dd { font-size: 1.15rem; margin: .15rem 0 0; }
.parlay-combined { color: var(--coral); font-weight: 800; }
.parlay-review-note { color: #6c7770; font-size: .76rem; margin: 0 0 .9rem; }
/* Placing a parlay is the primary action on this panel, so it gets the same
   weight as the Place button on a single wager rather than a bare default. */
.parlay-place-form button { background: var(--coral); border: 1px solid var(--coral); border-radius: 4px; color: var(--white); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 800; padding: .5rem 1.1rem; }
.parlay-place-form button:hover { background: #bd4932; border-color: #bd4932; }
.parlay-pick { align-items: center; color: #5d6862; cursor: pointer; display: flex; font-size: .72rem; font-weight: 700; gap: .35rem; margin-top: .35rem; }
.parlay-leg-list { display: grid; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.parlay-leg-list li { display: grid; }
.parlay-leg-list small { color: #6c7770; font-size: .72rem; }
.parlay-leg-loss strong { color: #a3352a; text-decoration: line-through; }
.parlay-leg-win strong { color: #1c6b45; }
.betting-parlay-queue, .betting-member-parlays { margin-top: 2.5rem; }
.betting-empty { color: #5d6862; font-size: .9rem; }

@media (max-width: 680px) {
  .parlay-price { gap: 1rem; }
  .parlay-builder { padding: 1rem; }
}
