/* ==========================================================================
   BOGEY BOYS — styles
   Cream/white theme. Dark green (#2b5446) from the logo is the accent colour,
   the logo cream (#fffadf) warms the background.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:        #f6f2e4;   /* page — warm cream, off the logo */
  --bg-warm:   #efe9d6;   /* subtle gradient partner */
  --card:      #ffffff;
  --card-alt:  #fbf8ee;   /* inset panels, table stripes */

  /* greens */
  --green-900: #0d2a20;
  --green-700: #17402f;
  --green-600: #1d4d39;
  --green-500: #2b5446;   /* logo green — primary */
  --green-400: #4a7d64;
  --green-200: #b9cdc2;

  /* ink */
  --ink:       #143126;   /* body text */
  --ink-soft:  #3f5a4e;
  --ink-mut:   #5c6f66;   /* labels, captions — darkened to clear 4.5:1 on cream */

  /* accents */
  --gold:      #846412;   /* points / leader — dark enough to read on cream */
  --gold-soft: #fdf4dc;
  --rust:      #b0552a;   /* warnings, TBC */
  --rust-soft: #fbeee5;
  --good:      #2f8f5b;

  --line:      rgba(13,42,32,0.12);
  --line-2:    rgba(13,42,32,0.07);
  --shadow:    0 1px 2px rgba(13,42,32,0.05), 0 6px 18px rgba(13,42,32,0.07);
  --radius:    16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -12%, #ffffff, transparent 70%),
    radial-gradient(700px 460px at 100% 100%, var(--bg-warm), transparent 72%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { width: 34px; height: 34px; object-fit: contain; }
.topbar-text { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-title { font-weight: 800; letter-spacing: 0.02em; font-size: 15px; color: var(--green-500); }
.topbar-sub { font-size: 11px; color: var(--ink-mut); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 18px 16px 32px; }
section + section { margin-top: 28px; }

.page-title { font-size: 26px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.01em; color: var(--green-600); }
.page-intro { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mut); font-weight: 700; margin: 26px 0 12px;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-eyebrow {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-400); font-weight: 800; margin-bottom: 6px;
}
.card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--green-600); }
.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--green-600); }
.card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--green-600); }
.card p  { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 8px 0 22px; }
.hero-logo { width: 200px; max-width: 64%; height: auto; }
.hero h1 { font-size: 34px; font-weight: 900; margin: 6px 0 0; letter-spacing: -0.02em; color: var(--green-500); }
.hero-sub {
  margin: 2px 0 12px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); font-weight: 800;
}
.hero-blurb { color: var(--ink-soft); font-size: 14px; max-width: 46ch; margin: 0 auto 18px; }

.progress { max-width: 320px; margin: 0 auto; }
.progress-bar { height: 6px; background: rgba(13,42,32,0.10); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--gold)); border-radius: 99px; }
.progress-label { font-size: 11px; color: var(--ink-mut); margin-top: 7px; letter-spacing: 0.04em; }

/* ---------- leader ---------- */
.leader-card { text-align: center; border-color: rgba(154,116,21,0.32); background: linear-gradient(180deg, var(--gold-soft), var(--card) 62%); }
.leader-name { font-size: 22px; font-weight: 800; color: var(--green-600); }
.leader-points { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.leader-points span { font-size: 15px; font-weight: 700; color: var(--ink-mut); }

/* ---------- definition list ---------- */
.deflist { margin: 12px 0 0; display: grid; gap: 1px; background: var(--line-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.deflist > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--card-alt); }
.deflist dt { font-size: 13px; color: var(--ink-mut); margin: 0; }
.deflist dd { font-size: 13px; margin: 0; font-weight: 700; text-align: right; color: var(--ink); }
.tbc { color: var(--rust); font-weight: 700; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; margin-bottom: 8px; }
.pill-warn { background: var(--rust-soft); color: var(--rust); border: 1px solid rgba(176,85,42,0.28); }

.note { font-size: 12px; color: var(--ink-mut); font-style: italic; margin-top: 10px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mut); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .pos { font-weight: 800; color: var(--ink-mut); width: 26px; }
.tbl .pts { font-weight: 800; color: var(--gold); }
.tbl .strong { font-weight: 800; color: var(--green-600); }
.tbl tr.is-leader { background: var(--gold-soft); }
.tbl tr.is-leader .pos { color: var(--gold); }
.tbl tr.is-pending { opacity: 0.55; }
.p-name { display: block; font-weight: 700; color: var(--ink); }
.p-hcp { display: block; font-size: 11px; color: var(--ink-mut); white-space: nowrap; font-weight: 500; }
.topar { display: block; font-size: 10px; color: var(--ink-mut); font-weight: 600; }

/* The round table carries five columns; give the name cell the slack and
   keep the numbers tight so nothing spills off a 375px screen. */
.tbl-round td, .tbl-round th { padding-left: 5px; padding-right: 5px; }
.tbl-round th:first-child, .tbl-round td:first-child { padding-left: 8px; }
.tbl-round td:first-child { min-width: 132px; }
.tbl-round .p-name { font-size: 13px; letter-spacing: -0.01em; }

/* standings table sits in its own framed panel */
section > .table-wrap {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 10px; margin: 0; box-shadow: var(--shadow);
}

/* ---------- players ---------- */
.player-grid { display: grid; gap: 14px; }

/* `contain` not `cover`: these are group photos, so cropping risks framing
   the wrong bloke. Letterbox onto a neutral panel instead. */
.player-photo {
  display: block; width: 100%; height: 240px; object-fit: contain;
  background: var(--card-alt); border: 1px solid var(--line-2);
  border-radius: 12px; margin-bottom: 14px;
}

/* Top-aligned: the chip makes the right column taller, and centring drags
   the photo down away from the name it belongs to. */
.player-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.player-head h3 { margin: 0; font-size: 17px; }
.tagline { margin: 2px 0 0; font-size: 12px; color: var(--green-400); font-weight: 600; }
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1px; background: var(--line-2); border-radius: 10px; overflow: hidden;
  margin-bottom: 12px; border: 1px solid var(--line-2);
}
.stat { background: var(--card-alt); padding: 9px 6px; text-align: center; }
.stat-v { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-600); }
.stat-k { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-mut); margin-top: 1px; }
.summary { font-size: 14px; color: var(--ink-soft); }

.mini-rounds { margin: 12px 0; display: grid; gap: 6px; }
.mini-round {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 12px; padding: 8px 10px; background: var(--card-alt);
  border: 1px solid var(--line-2); border-radius: 8px;
}
.mr-label { color: var(--ink-mut); font-weight: 700; }
.mr-score { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-soft); }
.mr-score strong { color: var(--green-600); }
.mr-pending { color: var(--rust); font-weight: 700; }

.eg-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.eg-head { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mut); font-weight: 700; margin-bottom: 6px; }
.eg-link { color: var(--gold); font-size: 13px; font-weight: 800; text-decoration: none; display: inline-block; margin-top: 10px; }
.eg-link:active { opacity: 0.7; }
.eg-note { font-size: 11px; color: var(--ink-mut); margin: 6px 0 0; font-style: italic; }

/* England Golf record block */
.eg-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2);
  border-radius: 10px; overflow: hidden; margin-bottom: 10px;
}
.eg-grid > div { background: var(--card-alt); padding: 8px 4px; text-align: center; }
.eg-v { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-600); }
.eg-v.good { color: var(--good); }
.eg-v.bad  { color: var(--rust); }
.eg-k { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mut); margin-top: 1px; }

.eg-flag {
  font-size: 11px; line-height: 1.45; color: var(--rust); background: var(--rust-soft);
  border: 1px solid rgba(176,85,42,0.25); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}

.eg-facts { display: grid; gap: 5px; margin-bottom: 10px; }
.eg-facts > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.eg-facts span { color: var(--ink-mut); white-space: nowrap; }
.eg-facts strong { color: var(--ink); font-weight: 700; text-align: right; }
.eg-facts em { font-style: normal; font-weight: 500; color: var(--ink-mut); font-size: 11px; }

.spark { margin: 4px 0 2px; }
.spark svg { width: 100%; height: 52px; display: block; }
.spark-line { fill: none; stroke: var(--green-500); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-area { fill: rgba(43,84,70,0.10); stroke: none; }
.spark-dot  { fill: var(--gold); }
.spark-ends {
  display: flex; justify-content: space-between; font-size: 9.5px;
  color: var(--ink-mut); letter-spacing: 0.03em; margin-top: 2px;
}

/* ---------- rounds ---------- */
.round-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.round-meta { margin: 3px 0 0; font-size: 12px; color: var(--ink-soft); }
.round-meta.subtle { color: var(--ink-mut); font-size: 11px; }
.winner-badge {
  flex: 0 0 auto; text-align: center; padding: 8px 12px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid rgba(154,116,21,0.28);
}
.wb-k { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mut); font-weight: 700; }
.wb-v { display: block; font-size: 16px; font-weight: 800; color: var(--gold); }
.wb-s { display: block; font-size: 10px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.round-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-2); border-radius: 10px; overflow: hidden;
  margin-top: 14px; border: 1px solid var(--line-2);
}
.rs { background: var(--card-alt); padding: 10px 4px; text-align: center; }
.rs span { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-600); }
.rs small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mut); margin-top: 2px; }

/* ---------- analysis ---------- */
.warn-card { border-color: rgba(176,85,42,0.30); background: linear-gradient(180deg, var(--rust-soft), var(--card) 55%); }
.warn-card h3 { color: var(--rust); }
.warn-card ul { margin: 8px 0 10px; padding-left: 20px; font-size: 14px; color: var(--ink-soft); }
.warn-card li { margin-bottom: 5px; }
.fix { font-size: 13px; color: var(--ink) !important; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; }
code { background: var(--card-alt); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; color: var(--green-600); }

.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; }
.bar-name { font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 20px; background: var(--card-alt); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.bar-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(13,42,32,0.22); }
.bar-fill { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.bar-fill.under { background: linear-gradient(90deg, rgba(47,143,91,0.55), var(--good)); }
.bar-fill.over  { background: linear-gradient(90deg, rgba(176,85,42,0.55), var(--rust)); }
.bar-fill.flat  { position: relative; top: 0; bottom: 0; height: 100%; background: linear-gradient(90deg, var(--green-400), var(--green-500)); }
.bar-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.bar-val.good { color: var(--good); }

.insights { display: grid; gap: 12px; }
.insight { margin-bottom: 0; }

/* ---------- rules ---------- */
.points-card { text-align: center; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rung { background: var(--card-alt); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 4px; }
.rung.gold { border-color: rgba(154,116,21,0.35); background: var(--gold-soft); }
.rung-pos { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mut); font-weight: 700; }
.rung-pts { display: block; font-size: 20px; font-weight: 900; color: var(--green-600); }
.rung.gold .rung-pts { color: var(--gold); }
.rule p { margin-bottom: 9px; }

.empty { color: var(--ink-mut); text-align: center; padding: 40px 0; }

/* ---------- player detail page ---------- */
.name-link { color: inherit; text-decoration: none; }
.name-link:active { opacity: 0.6; }

.detail-cta {
  display: block; margin-top: 14px; padding: 11px 14px;
  background: var(--green-500); color: #fffadf;
  border-radius: 10px; text-align: center;
  font-size: 13px; font-weight: 800; text-decoration: none;
  letter-spacing: 0.01em;
}
.detail-cta:active { background: var(--green-700); }

.back {
  display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700;
  color: var(--green-500); text-decoration: none;
}
.back:active { opacity: 0.6; }

.detail-head { text-align: center; margin-bottom: 16px; }
.detail-photo {
  display: block; width: 100%; max-width: 340px; margin: 0 auto 12px;
  height: 260px; object-fit: contain;
  background: var(--card-alt); border: 1px solid var(--line-2); border-radius: 14px;
}
.detail-name { font-size: 26px; font-weight: 800; margin: 0; color: var(--green-600); letter-spacing: -0.01em; }
.detail-tagline { margin: 4px 0 0; font-size: 13px; color: var(--green-400); font-weight: 600; }
.detail-strip { margin: 16px 0 14px; }
.detail-summary { margin: 0 0 4px; }

.good-text { color: var(--good); font-weight: 700; }

/* Scoring record table — keep it readable on a phone */
.tbl-scores { font-size: 12.5px; }
.tbl-scores td, .tbl-scores th { padding-left: 5px; padding-right: 5px; }
.tbl-scores th:first-child, .tbl-scores td:first-child { padding-left: 8px; }
.tbl-scores .nowrap { white-space: nowrap; color: var(--ink-mut); }
.tbl-scores .course { font-size: 11.5px; line-height: 1.3; }

/* ---------- majors / hall of fame ---------- */
.major-chip {
  display: inline-block; margin-top: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(154,116,21,0.30);
  padding: 3px 8px; border-radius: 99px;
}
.detail-head .major-chip { margin-top: 10px; font-size: 11px; padding: 4px 11px; }

/* Shared circular player photo */
.face {
  display: block; border-radius: 50%; object-fit: cover;
  width: 64px; height: 64px; flex: 0 0 64px;
  background: var(--card-alt); border: 1px solid var(--line);
}
.face-md { width: 46px; height: 46px; flex-basis: 46px; }
.face-sm { width: 38px; height: 38px; flex-basis: 38px; }
.face-initials {
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: linear-gradient(145deg, var(--green-500), var(--green-700));
  color: #fffadf; border-color: rgba(13,42,32,0.10);
}
.face-sm.face-initials { font-size: 12px; }

/* Hall of Fame hero */
.hof-hero {
  text-align: center; padding: 22px 16px 20px; margin-bottom: 6px;
  background: linear-gradient(180deg, var(--gold-soft), var(--card));
  border: 1px solid rgba(154,116,21,0.28); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hof-crown { font-size: 34px; line-height: 1; }
.hof-hero h1 {
  margin: 6px 0 0; font-size: 30px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--green-600);
}
.hof-sub {
  margin: 3px 0 16px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.hof-tally {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(154,116,21,0.20); border: 1px solid rgba(154,116,21,0.20);
  border-radius: 10px; overflow: hidden;
}
.hof-tally > div { background: rgba(255,255,255,0.75); padding: 9px 4px; }
.hof-tally span { display: block; font-size: 20px; font-weight: 900; color: var(--gold); line-height: 1.15; }
.hof-tally small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-mut); font-weight: 700; }

/* Roll of honour timeline */
.roll { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roll-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px 8px 10px; box-shadow: var(--shadow);
}
.roll-year {
  flex: 0 0 auto; font-size: 13px; font-weight: 900; color: var(--gold);
  font-variant-numeric: tabular-nums; min-width: 38px;
}
.roll-link { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; text-decoration: none; }
.roll-who { display: flex; flex-direction: column; min-width: 0; }
.roll-who strong { font-size: 14px; color: var(--ink); font-weight: 700; }
.roll-who em {
  font-style: normal; font-size: 11.5px; color: var(--ink-mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.roll-jacket { flex: 0 0 auto; font-size: 15px; }

/* Champion cards */
.major-card { border-color: rgba(154,116,21,0.22); }
.major-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.major-head h2 { margin: 0; font-size: 18px; }
.major-who { min-width: 0; }
.major-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-mut); font-weight: 600; }
.major-portrait { position: relative; flex: 0 0 64px; }
.major-portrait .face { border: 3px solid var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.major-count {
  position: absolute; right: -4px; bottom: -3px;
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 900; line-height: 1;
  padding: 3px 6px; border-radius: 99px; border: 2px solid var(--card);
}

.major-entry {
  display: flex; gap: 12px;
  border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 14px;
}
.major-entry:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.major-year {
  flex: 0 0 auto; font-size: 15px; font-weight: 900; color: var(--gold);
  font-variant-numeric: tabular-nums; padding-top: 1px; min-width: 42px;
}
.major-body { min-width: 0; }
.major-entry-solo { margin-bottom: 12px; }
.major-entry-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px;
}
.major-headline { font-size: 15px; font-weight: 800; color: var(--green-600); }

.chasing { text-align: center; }
.chasing-faces { display: flex; justify-content: center; margin-bottom: 10px; }
.chasing-faces .face { margin-left: -10px; border: 2px solid var(--card); }
.chasing-faces .face:first-child { margin-left: 0; }
.jacket {
  font-size: 10px; font-weight: 800; color: var(--green-600);
  background: rgba(43,84,70,0.10); border: 1px solid rgba(43,84,70,0.22);
  padding: 3px 8px; border-radius: 99px;
}
.major-venue { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.major-venue .muted { color: var(--ink-mut); font-weight: 500; }
.major-entry p, .major-entry-solo p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.honours { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.honour { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; margin-top: 4px; }
.honour strong { color: var(--green-600); }
.honour span { color: var(--ink-mut); font-size: 12px; }

/* ---------- sponsor footer ----------
   A stylised nod to a certain bookmaker, not a copy of their mark. */
.sponsor {
  text-align: center;
  padding: 6px 16px 30px;
  margin-top: -6px;
}
.sponsor-label {
  display: block;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 8px;
}
.kurt365 {
  display: inline-flex; align-items: baseline;
  background: #026b4f;
  padding: 8px 15px; border-radius: 7px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(13,42,32,0.18);
}
.kurt365-word { color: #ffffff; }
.kurt365-num  { color: #ffe500; }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  /* minmax(0,1fr) not 1fr — plain 1fr refuses to shrink below the content's
     min width, which pushed the sixth tab onto a second row. */
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  appearance: none; background: none; border: 0; cursor: pointer;
  min-width: 0; overflow: hidden;
  padding: 8px 1px 9px; color: var(--ink-mut);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: inherit; transition: color 0.15s;
  position: relative;
}
.nav-icon { font-size: 17px; line-height: 1; filter: grayscale(1) opacity(0.5); transition: filter 0.15s, transform 0.15s; }
.nav-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.01em;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.nav-item.active { color: var(--green-500); }
.nav-item.active .nav-label { font-weight: 800; }
.nav-item.active .nav-icon { filter: none; transform: translateY(-1px) scale(1.06); }
/* Lit bar above the active tab */
.nav-item.active::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2.5px;
  background: var(--green-500); border-radius: 0 0 3px 3px;
}
@media (min-width: 420px) {
  .nav-label { font-size: 10.5px; }
  .nav-icon { font-size: 19px; }
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .player-grid { grid-template-columns: 1fr 1fr; }
  .insights { grid-template-columns: 1fr 1fr; }
  .ladder { grid-template-columns: repeat(8, 1fr); }
  .hero h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
