/* Back 9ine — palette taken from the space itself:
   black wainscot, warm plaster walls, turf, sconce brass, chalkboard. */
/* Self-hosted fonts (SIL Open Font License, see /fonts) */
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-600.woff') format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/barlow-sc-500.woff') format('woff'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/barlow-sc-600.woff') format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda.woff') format('woff'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda-italic.woff') format('woff'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --wainscot: #141a16;
  --bottle: #19251e;
  --bottle-2: #223128;
  --plaster: #eeeae3;
  --paper: #fbfaf7;
  --ink: #1d221e;
  --ink-2: #434a44;
  --muted: #7b8178;
  --line: #dfd9ce;
  --line-dark: rgba(233, 228, 214, .14);
  --brass: #c49a52;
  --brass-soft: #f1e6cf;
  --fairway: #3f7a35;
  --fairway-d: #33652b;
  --live: #7db53b;
  --chalk: #ebe7dc;
  --red: #a8402f;
  --red-soft: #f6e1dc;
  --amber-soft: #f7ecd2;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cond: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--fairway-d); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; margin: 0 0 .3em; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 0 0 .4em; letter-spacing: 0; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
.eyebrow, .kicker { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--brass); margin-bottom: 6px; letter-spacing: .01em; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 62ch; margin: 0 0 26px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.num, .fig { font-family: var(--cond); font-variant-numeric: tabular-nums; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--wainscot); color: var(--chalk); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 18px; overflow-y: auto; }
.logo-card { display: block; padding: 0 10px 22px; border-bottom: 1px solid var(--line-dark); margin-bottom: 18px; }
.logo-card img { display: block; width: 100%; max-width: 168px; margin: 0 auto; }
.side-season { font-family: var(--display); font-style: italic; font-size: 15px; color: #b4ae9f; margin: 0 12px 14px; }
.side-nav a, .side-mgr { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 6px; color: #cfcabd; text-decoration: none; font-weight: 500; font-size: 15.5px; margin-bottom: 2px; border-left: 2px solid transparent; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-nav a.on { color: #fff; border-left-color: var(--brass); background: linear-gradient(90deg, rgba(196,154,82,.16), rgba(196,154,82,0)); border-radius: 0 6px 6px 0; }
.side-nav a.on svg { color: var(--brass); }
.side-foot { margin-top: auto; padding-top: 18px; }
.side-mgr { font-size: 14px; color: #9a968a; }
.side-mgr.on, .side-mgr:hover { color: #fff; }
.side-brand { border-top: 1px solid var(--line-dark); margin-top: 12px; padding: 14px 12px 0; font-size: 13px; color: #8f8b80; }
.side-brand strong { display: block; color: #d8d3c6; font-weight: 600; }
.main { min-width: 0; }
.mtop { display: flex; align-items: center; gap: 14px; padding: 14px 44px; border-bottom: 1px solid var(--line); }
.mtop-logo { display: none; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: #c3bcae; }
.crumbs b { color: var(--ink); font-weight: 500; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 38px 44px 110px; }
.narrow { max-width: 680px; }
.bottomnav { display: none; }
@media (max-width: 900px) {
  .shell { display: block; }
  .side { display: none; }
  .mtop { padding: 10px 16px; background: var(--wainscot); border: 0; position: sticky; top: 0; z-index: 20; }
  .mtop-logo { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font-family: var(--display); font-size: 19px; }
  .mtop-logo img { width: 40px; height: 40px; }
  .crumbs { display: none; }
  .wrap { padding: 22px 16px 112px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--wainscot); border-top: 1px solid var(--line-dark); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: #9d998c; font-size: 11.5px; font-weight: 500; padding: 3px 0; }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.on { color: #fff; }
  .bottomnav a.on svg { color: var(--brass); }
}

/* ---------- Photo banners ---------- */
.banner { position: relative; border-radius: 10px; overflow: hidden; color: #fff; min-height: 340px; display: flex; align-items: flex-end; margin-bottom: 0; background: var(--bottle) center/cover no-repeat; isolation: isolate; }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,20,16,.94) 0%, rgba(14,20,16,.78) 38%, rgba(14,20,16,.15) 75%), linear-gradient(0deg, rgba(14,20,16,.6), rgba(14,20,16,0) 50%); }
.banner .in { padding: 36px 40px 64px; max-width: 640px; }
.banner h1, .banner h2 { color: #fff; }
.banner h1 { font-size: clamp(36px, 5.4vw, 64px); }
.banner .kicker { color: var(--brass); }
.banner p { color: #d8d4c8; }
.banner .meta { display: flex; gap: 22px; flex-wrap: wrap; color: #d8d4c8; font-size: 15px; margin-top: 10px; }
.banner .meta span { display: inline-flex; align-items: center; gap: 7px; }
.banner .meta svg { width: 16px; height: 16px; color: var(--brass); }
.banner .status { position: absolute; top: 22px; right: 24px; }
.banner.short { min-height: 240px; }
.banner.short .in { padding-bottom: 36px; }
@media (max-width: 700px) {
  .banner { min-height: 300px; border-radius: 8px; }
  .banner::before { background: linear-gradient(0deg, rgba(14,20,16,.95) 0%, rgba(14,20,16,.7) 55%, rgba(14,20,16,.25) 100%); }
  .banner .in { padding: 24px 20px 56px; }
  .banner.short .in { padding-bottom: 24px; }
  .banner .status { position: static; margin-bottom: 14px; }
}

/* ---------- Scorecard week strip (signature) ---------- */
.scorecard { position: relative; margin: -34px 24px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 36px rgba(20,26,22,.12); overflow-x: auto; z-index: 2; }
.scorecard table { border-collapse: collapse; width: 100%; min-width: 760px; font-family: var(--cond); }
.scorecard th, .scorecard td { padding: 0; border: 0; border-right: 1px solid #ebe5da; text-align: center; background: none; font-size: 14px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.scorecard th:first-child, .scorecard td:first-child { text-align: left; padding: 0 14px; color: var(--muted); font-weight: 500; font-family: var(--sans); font-size: 13px; width: 64px; border-right: 1px solid var(--line); }
.scorecard tr + tr td { border-top: 1px solid #ebe5da; }
.scorecard a { display: block; padding: 8px 0 7px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.scorecard td.par { color: var(--muted); padding: 6px 0; font-size: 13px; }
.scorecard .done a { color: var(--fairway-d); }
.scorecard .done a::after { content: '✓'; font-size: 10px; margin-left: 2px; vertical-align: super; }
.scorecard .future a { color: #9b9a90; }
.scorecard .cur { background: var(--bottle); }
.scorecard .cur a, .scorecard td.cur.par { color: #fff; }
.scorecard .sel:not(.cur) { box-shadow: inset 0 -3px 0 var(--brass); }
.scorecard .po { background: rgba(196,154,82,.08); }
.scorecard .gap { border-right: 2px solid var(--line); }
@media (max-width: 700px) { .scorecard { margin: -30px 10px 24px; } }

/* Manager still uses the simple week strip */
.weekstrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.weekstrip a { flex: 0 0 auto; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink-2); font: 600 13px var(--cond); }
.weekstrip a.done { background: #e8efe2; border-color: #d3dfc9; }
.weekstrip a.cur { background: var(--bottle); color: #fff; border-color: var(--bottle); }
.weekstrip a.sel { box-shadow: inset 0 -3px 0 var(--brass); }

/* ---------- Figures bar (not cards) ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.figures > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.figures > div:last-child { border-right: 0; }
.figures .k { font-size: 13.5px; color: var(--muted); }
.figures .v { font-family: var(--cond); font-weight: 600; font-size: 34px; line-height: 1.15; color: var(--ink); }
.figures .v small { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.figures .v.text { font-family: var(--sans); font-size: 18px; font-weight: 600; padding-top: 8px; line-height: 1.3; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } .figures > div:nth-child(2) { border-right: 0; } .figures > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .figures .v { font-size: 28px; } }

/* ---------- Surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin-bottom: 20px; }
.card.tight { padding: 12px 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.felt { background: var(--bottle); color: var(--chalk); border-radius: 8px; padding: 26px 26px 24px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(20,26,22,.14); }
.felt h2, .felt h3 { color: #fff; }
.felt label { color: #cfcabd; }
.felt .hint, .felt small, .felt .muted { color: #a4a093; }
.felt a { color: var(--brass); }
.felt input[type=text], .felt input[type=password], .felt input[type=number], .felt select { background: #fff; color: var(--ink); border-color: transparent; }
.felt .notice, .felt .notice.lock { background: rgba(255,255,255,.06); color: var(--chalk); border-left-color: var(--brass); }
.felt .notice.lock svg { color: var(--brass); }
.felt .choice button { background: transparent; color: var(--chalk); border-color: rgba(233,228,214,.3); }
.felt .choice button.on { background: var(--brass); color: var(--wainscot); border-color: var(--brass); }
.felt .btn.ghost { background: transparent; color: var(--chalk); border-color: rgba(233,228,214,.35); }
.felt .linkbtn { color: var(--brass); }
.felt .rule-line { border-top: 1px solid var(--line-dark); margin: 18px 0; }
.felt .tee { color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head small { font-size: 14px; }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid.split { grid-template-columns: minmax(320px, 5fr) 7fr; align-items: start; }
.grid.split.wide { grid-template-columns: 7fr minmax(300px, 5fr); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.grid > *, .mgr > div { min-width: 0; }
@media (max-width: 1050px) { .grid.split, .grid.split.wide { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-family: var(--cond); font-weight: 600; font-size: 30px; line-height: 1.15; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }

/* ---------- Pills & marks ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #ece7dd; color: var(--ink-2); white-space: nowrap; }
.pill.live { background: rgba(125,181,59,.16); color: #4d7a1d; }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.banner .pill, .felt .pill { background: rgba(255,255,255,.12); color: #f2eee4; backdrop-filter: blur(4px); }
.banner .pill.live, .felt .pill.live { color: #c9e6a6; }
.pill.gray { background: #ece7dd; color: #6e7369; }
.pill.brass, .pill.green { background: var(--brass-soft); color: #7a5a1d; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: #8a5a00; }
.tee { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; text-transform: capitalize; color: var(--ink-2); }
.tee::before { content: ''; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); background: var(--c, #ccc); }
.tee.blue { --c: #2a5fc0; } .tee.white { --c: #fff; } .tee.red { --c: #c0392b; } .tee.yellow { --c: #eebd2b; }
.champ { margin-left: 6px; white-space: nowrap; font-size: 13px; }
.champ small { font-size: 11px; color: var(--brass); font-weight: 600; margin-left: 1px; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 12px; border-bottom: 1px solid #ebe6dc; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.c, th.c { text-align: center; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f4f1ea; }
.rank1 td:first-child { color: var(--fairway-d); font-weight: 700; }
.scroll { max-height: 560px; overflow-y: auto; }
.tablefoot { font-size: 13px; color: var(--muted); padding-top: 12px; }

/* Chalkboard standings (after the Hall of Fame board in the bay) */
.board { background: #1f2622; color: var(--chalk); border-radius: 8px; padding: 30px 34px 26px; box-shadow: inset 0 0 0 10px #2a312c, 0 14px 40px rgba(20,26,22,.18); margin-bottom: 22px; }
.board h2 { color: var(--chalk); text-align: center; font-weight: 400; letter-spacing: .06em; margin-bottom: 4px; }
.board .sub { text-align: center; color: #9f9c91; font-size: 14px; margin-bottom: 18px; }
.board table { font-family: var(--cond); font-size: 17px; }
.board th { color: #9f9c91; border-bottom: 1px solid rgba(235,231,220,.35); font-family: var(--sans); font-size: 13px; }
.board td { border-bottom: 1px dashed rgba(235,231,220,.12); color: var(--chalk); padding: 10px 12px; }
.board td.pl { color: #b9b5a8; width: 54px; }
.board tr.lead td { color: #fff; }
.board tr.lead td.pl { color: var(--brass); }
.board .legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: #9f9c91; margin-top: 16px; font-family: var(--sans); }
@media (max-width: 600px) { .board { padding: 22px 12px 18px; box-shadow: inset 0 0 0 6px #2a312c; } .board table { font-size: 15px; } .board td, .board th { padding: 9px 7px; } }

/* ---------- Forms ---------- */
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field .hint, .hint { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 5px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d3ccbf; border-radius: 6px; background: #fff; min-height: 48px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
textarea { min-height: 140px; resize: vertical; }
.inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; margin: 8px 0; }
.check input { width: 19px; height: 19px; accent-color: var(--fairway); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.choice button { padding: 14px 10px; border-radius: 6px; border: 1px solid #d3ccbf; background: #fff; font-weight: 600; cursor: pointer; min-height: 52px; }
.choice button.on { border-color: var(--bottle); background: var(--bottle); color: #fff; }
#slots { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); max-height: 320px; overflow-y: auto; padding: 2px 4px 2px 2px; }
#slots button { white-space: nowrap; font: 600 15px var(--cond); padding: 11px 4px; min-height: 46px; }
#slots button:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.big-input { font: 500 40px var(--display) !important; text-align: center; letter-spacing: .02em; height: 72px; }
.combo { position: relative; }
.combo input[type=text] { padding-left: 40px; padding-right: 40px; }
.combo .mag { position: absolute; left: 14px; top: 15px; color: var(--muted); pointer-events: none; }
.combo .chev { position: absolute; right: 13px; top: 15px; color: var(--muted); cursor: pointer; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: #fff; color: var(--ink); border: 1px solid #d3ccbf; border-radius: 6px; box-shadow: 0 14px 34px rgba(20,26,22,.16); max-height: 280px; overflow-y: auto; list-style: none; margin: 0; padding: 4px; }
.combo-list li { padding: 10px 12px; border-radius: 4px; cursor: pointer; font-size: 15px; }
.combo-list li:hover, .combo-list li.on { background: #f1ece2; }
.combo-list li.none { color: var(--muted); cursor: default; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 6px; border: 1px solid transparent; background: var(--fairway); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 46px; font-size: 15px; letter-spacing: .01em; }
.btn:hover { background: var(--fairway-d); }
.btn.big { padding: 15px 22px; font-size: 16px; min-height: 56px; width: 100%; }
.btn.brass { background: var(--brass); color: var(--wainscot); }
.btn.brass:hover { background: #b58b44; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #c9c1b2; }
.btn.ghost:hover { background: rgba(0,0,0,.03); }
.btn.light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn.danger { background: var(--red); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--fairway-d); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Notices ---------- */
.notice { border-radius: 6px; padding: 12px 14px; background: #f3efe6; color: var(--ink-2); margin-bottom: 16px; font-size: 15px; border-left: 3px solid var(--brass); display: flex; gap: 10px; align-items: flex-start; }
.notice svg { margin-top: 2px; color: var(--brass); }
.notice.warn { background: var(--amber-soft); color: #6b4700; border-left-color: #d8a43a; }
.notice.err { background: var(--red-soft); color: var(--red); border-left-color: var(--red); }
.notice.lock { background: #ece8df; }
.success { text-align: center; padding: 26px 10px; }
.success .tick { width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass); display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }

/* How-to */
details.howto { border-top: 1px solid var(--line-dark); margin-top: 20px; padding-top: 14px; }
details.howto summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; color: #fff; }
details.howto summary::-webkit-details-marker { display: none; }
details.howto summary svg { color: var(--brass); transition: transform .2s; }
details.howto[open] summary svg { transform: rotate(90deg); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 36px; font-size: 15px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font: 600 13px/22px var(--cond); text-align: center; }

/* Rules: a reference list, not a card grid */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.rules section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rules h3 { font-family: var(--display); font-weight: 500; font-size: 23px; margin-bottom: 8px; }
.rules p { color: var(--ink-2); max-width: 62ch; margin: 0; }
@media (max-width: 800px) { .rules { grid-template-columns: 1fr; } }

/* Session guide */
.guide td, .guide th { padding: 9px 4px; }
.aside-photo { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bottle) center/cover; margin-bottom: 20px; }

/* ---------- Toast, modal ---------- */
#toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(16px); background: var(--wainscot); color: #fff; padding: 12px 18px; border-radius: 6px; opacity: 0; transition: .2s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); font-size: 15px; border-left: 3px solid var(--brass); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { border-left-color: #e0806e; }
.modal-bg { position: fixed; inset: 0; background: rgba(14, 20, 16, .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--paper); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 12px 12px 0 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 10px; } }
.modal .x { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }

/* ---------- Footer ---------- */
.helpfoot { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.helpfoot strong { display: block; color: var(--ink); font-size: 15px; }
.helpfoot .links a { color: var(--ink); font-weight: 600; margin-right: 18px; }
.helpfoot .r { text-align: right; font-family: var(--display); font-style: italic; }

/* ---------- Manager ---------- */
.mgr { display: grid; grid-template-columns: 210px 1fr; gap: 28px; }
.mgr-nav { position: sticky; top: 24px; align-self: start; }
.mgr-nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.mgr-nav a.on { background: var(--bottle); color: #fff; }
.mgr-nav a:hover:not(.on) { background: #e5e0d6; }
.mgr-nav .grp { font-size: 13px; color: var(--brass); margin: 16px 12px 4px; font-weight: 600; }
.mgr-select, .mgr-select-label { display: none; }
.quick { margin: 4px 0 18px; }
@media (max-width: 1100px) { .mgr { grid-template-columns: 1fr; } .mgr-nav { display: none; } .mgr-tabs { display: flex; } }
.item { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: #fff; margin-bottom: 10px; }
.item .t { font-weight: 600; }
.attendee { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px solid #ebe6dc; align-items: center; }
.seg { display: inline-flex; border: 1px solid #d3ccbf; border-radius: 6px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: #fff; padding: 6px 10px; font-size: 14px; cursor: pointer; border-right: 1px solid #e6e0d5; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--bottle); color: #fff; }
.codebox { font-family: ui-monospace, Menlo, monospace; background: #f1ede5; border-radius: 6px; padding: 10px 12px; font-size: 15px; letter-spacing: .06em; word-break: break-all; color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 0 0; }
.hide { display: none !important; }
@media (max-width: 520px) {
  td .tee .tl { display: none; }
  td, th { padding-left: 8px; padding-right: 8px; }
  .card, .felt { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .side, .bottomnav, .mgr-nav, .mtop { display: none; } .shell { display: block; } }

/* ---------- Book again, calendar, install ---------- */
.rebook h3 { margin-bottom: 6px; }
.card.rebook, .felt.rebook { margin-bottom: 20px; }
.card .rebook { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.row.cal { gap: 8px; margin-top: 4px; }
.install { display: flex; gap: 16px; align-items: center; }
.install img { width: 56px; height: 56px; border-radius: 13px; flex: 0 0 auto; }
.install h3 { margin-bottom: 2px; }
.install p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- Kiosk: the score-entry iPad ---------- */
body.kiosk { background: var(--wainscot); color: var(--chalk); }
body.kiosk .side, body.kiosk .bottomnav, body.kiosk .mtop { display: none; }
body.kiosk .shell { display: block; }
body.kiosk .wrap { max-width: 1180px; padding: 26px 32px 40px; }
body.kiosk #toast { bottom: 28px; }
body.kiosk .felt { border: 1px solid var(--line-dark); }
body.kiosk .notice.lock { background: rgba(255,255,255,.06); color: var(--chalk); border-left-color: var(--brass); }
.k-top { display: flex; align-items: center; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); margin-bottom: 24px; }
.k-logo { height: 86px; width: auto; }
.k-week { flex: 1; min-width: 0; }
.k-course { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); color: #fff; line-height: 1.1; }
.k-week small { color: #a4a093; font-size: 15px; }
.k-clock { font: 600 42px var(--cond); color: #fff; white-space: nowrap; }
.k-h { color: #fff; font-size: clamp(34px, 4.4vw, 48px); margin: 4px 0 18px; }
.k-glabel { color: var(--brass); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.k-group { background: var(--bottle); border: 1px solid var(--line-dark); border-radius: 10px; padding: 18px 20px 20px; margin-bottom: 22px; }
.k-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.k-names.big { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.k-name { min-height: 64px; padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(233,228,214,.16); background: rgba(255,255,255,.04); color: #f2eee4; font: 500 18px var(--sans); text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px; -webkit-tap-highlight-color: transparent; }
.k-names.big .k-name { min-height: 86px; font-size: 23px; border-color: rgba(196,154,82,.5); background: rgba(196,154,82,.08); }
.k-name:active { background: rgba(196,154,82,.28); }
.k-name.done { opacity: .6; }
.k-name.done span { font-size: 13px; color: var(--live); }
.k-all input[type=search] { max-width: 300px; background: rgba(255,255,255,.06); border-color: rgba(233,228,214,.2); color: #fff; }
.k-all input::placeholder { color: #8f8b80; }
.k-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line-dark); color: #8f8b80; font-size: 14px; }
.k-foot .linkbtn { color: #8f8b80; font-weight: 500; }
.k-panel { max-width: 640px; margin: 0 auto; }
.k-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--chalk); font: 500 17px var(--sans); padding: 10px 0; cursor: pointer; margin-bottom: 12px; }
.k-back svg { transform: rotate(180deg); }
.k-pw { font-size: 22px !important; min-height: 60px !important; letter-spacing: .08em; }
body.kiosk .felt h1 { font-size: clamp(32px, 4vw, 44px); }
@media (max-width: 700px) { .k-top { flex-wrap: wrap; gap: 14px; } .k-logo { height: 60px; } .k-clock { font-size: 30px; } body.kiosk .wrap { padding: 18px 16px 30px; } }
.share { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ---------- My league ---------- */
.me-head { margin-bottom: 18px; }
.me-head h1 { margin: 0; }
.yourweek { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 24px 36px; align-items: center; padding: 30px 32px; background-size: cover; background-position: center; margin-bottom: 30px; }
.yourweek h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 40px); margin: 2px 0 10px; }
.yw-status { color: #ded9cc; font-size: 17px; max-width: 54ch; margin-bottom: 16px; }
.yw-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(14,20,16,.55); }
.yw-facts dt { font-size: 13px; color: #a4a093; }
.yw-facts dd { margin: 2px 0 0; font: 600 19px var(--cond); color: #fff; }
.yw-facts .tee { color: #fff; font: 600 17px var(--sans); }
@media (max-width: 760px) { .yourweek { grid-template-columns: 1fr; padding: 22px 18px; } }
.season { margin-bottom: 10px; }
.season .figures { margin-bottom: 18px; }
.sparks { margin-bottom: 28px; }
.spark { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px 12px; }
.spark .k { font-size: 14px; color: var(--muted); }
.spark-now { font: 600 24px var(--cond); }
.spark svg { display: block; width: 100%; height: 92px; margin-top: 4px; }
.spark-axis small { font-size: 12px; }
.me-split { grid-template-columns: 7fr minmax(300px, 5fr); }
@media (max-width: 1050px) { .me-split { grid-template-columns: 1fr; } }
.rounds { list-style: none; margin: 0; padding: 0; }
.rounds li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid #ebe6dc; cursor: pointer; }
.rounds li:first-child { border-top: 0; }
.rounds li:hover { background: #f4f1ea; }
.rounds .wk { font: 600 15px var(--cond); color: var(--muted); }
.rounds .rd small { font-size: 14px; }
.rounds .rd .pill { margin-top: 4px; }
.rounds .res { text-align: right; }
.place-big { font-family: var(--display); font-size: 26px; line-height: 1; }
.wallet .wallet-fig { margin: 4px 0 16px; }
.wallet .wallet-fig .k { font-size: 14px; color: #a4a093; }
.wallet .wallet-fig .v { font-family: var(--display); font-size: 48px; line-height: 1.05; color: #fff; }
.wallet .wallet-fig .v.owe { color: #f1c7a3; }
.wallet h3 { color: #fff; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-dark); font-size: 15px; }
.activity li:first-child { border-top: 0; }
.activity li small { display: block; font-size: 12.5px; }
.activity b { font: 600 16px var(--cond); white-space: nowrap; color: #e6e1d4; }
.activity b.plus { color: #b9dc8f; }
.activity li.more, .times li.more { display: none; }
.activity.all li.more, .times.all li.more { display: flex; }
.next-time { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 16px; }
.next-time .k { font-size: 14px; color: var(--brass); }
.nt-when { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.times { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.times li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 11px 0; border-bottom: 1px solid #ebe6dc; font-size: 15px; }
.times li.show { justify-content: flex-start; border-bottom: 0; }
.stackform h3 { margin-bottom: 12px; }
.linkbtn.cancel { color: var(--red); }

/* Manager tabs on phones */
.mgrnav { display: none !important; }
@media (max-width: 900px) {
  body.is-manager #bottomnav { display: none; }
  body.is-manager .mgrnav { display: flex !important; }
  body.is-manager .mgr-select, body.is-manager .mgr-select-label { display: none; }
}

/* Manager: six screens */
.mgr-tabs { display: none; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.mgr-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid #d3ccbf; background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.mgr-tabs a.on { background: var(--bottle); border-color: var(--bottle); color: #fff; }
@media (max-width: 900px) { body.is-manager .mgr-tabs { display: none; } }
.badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--brass); color: var(--wainscot); font: 700 11px/18px var(--sans, inherit); text-align: center; vertical-align: 2px; }
.badge.hide { display: none; }
.mgrnav a { position: relative; }
.mgrnav .badge { position: absolute; top: -2px; left: calc(50% + 6px); margin: 0; }
.mgrnav a { font-size: 10.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brass); }
a.stat.link { text-decoration: none; color: inherit; display: block; }
a.stat.link:hover { border-color: var(--brass); }
.stat.flat { border: 0; padding: 0; background: none; }
.small-note { font-size: 14px; margin: 0 0 12px; }
.owe-items { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.owe-items li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.item .owe-items { min-width: 0; }
.owe-total { font: 600 24px var(--cond); white-space: nowrap; }
.item.owe a.t { color: var(--ink); text-decoration: none; }
.bk-line { padding: 7px 0; border-bottom: 1px solid #ebe6dc; }
.bk-line:last-child { border-bottom: 0; }
.more-entries { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.more-entries summary { cursor: pointer; color: var(--fairway-d, var(--fairway)); font-weight: 600; font-size: 15px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ebe6dc; font-size: 15px; }
.hist li small { display: block; color: var(--muted); font-size: 13px; }
.hist .r { text-align: right; white-space: nowrap; }
.hist .r .linkbtn { display: block; margin-left: auto; font-size: 13px; }
.hist b.owes { color: var(--red); } .hist b.paid, .hist b.credit { color: var(--green-600, var(--fairway)); } .hist b.sent { color: var(--ink-2); }
.sess-details { margin-top: 10px; }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; background: #fff; }
.pick-list .check { display: flex; margin: 6px 0; }
.pick-list .check.hide { display: none; }
#pnwrap input { padding-left: 14px; }
