/* ============================================================
   F&H Golf Course — styles.css
   Refined club aesthetic: green brand, charcoal/black depth,
   crimson-red accent, warm white/cream. Fraunces + Source Sans 3.
   ============================================================ */

:root {
  /* Brand greens */
  --primary-green: #1B5E20;
  --accent-green: #2E7D32;
  --deep-green: #0F3D16;
  --light-green: #E8F5E9;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #FAF8F2;          /* warm off-white ground */
  --paper-2: #F1EEE5;        /* slightly deeper cream */
  --ink: #141414;
  --muted: #5d5c54;
  --charcoal: #17181a;       /* dark sections (gallery) */
  --black: #101113;          /* footer / stat depth */

  /* Crimson accent */
  --red: #B11E2D;
  --red-deep: #8C1622;
  --red-bright: #E0524A;     /* on dark backgrounds */

  --line: rgba(20, 30, 20, 0.12);

  /* Type */
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max-width: 1140px;
  --nav-height: 72px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 26px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 54px rgba(0,0,0,0.16);
  --radius: 14px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }

a { color: var(--accent-green); transition: color 0.2s ease; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Uppercase kicker above section titles */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-md); background: rgba(250, 248, 242, 0.98); }

.nav__inner {
  max-width: var(--max-width); margin: 0 auto; height: var(--nav-height);
  padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between;
}

/* Logo emblem chip + wordmark lockup */
.nav__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav__mark {
  width: 46px; height: 46px; flex: none;
  background: #fff; border-radius: 50%; padding: 5px;
  object-fit: contain; border: 2px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
}
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.nav__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--primary-green); letter-spacing: 0.01em; }
.nav__tagline { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--red); font-weight: 700; }

.nav__links { display: flex; gap: 1rem; align-items: center; }
.nav__links a { position: relative; color: var(--primary-green); text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.35rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav__links a:hover { color: var(--red); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; height: 2.5px; width: 100%; background: var(--primary-green); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.01em;
  border-radius: 999px; padding: 0.85rem 1.6rem; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
/* Primary CTA in crimson — pops against the green-tinted hero photo */
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-2px); }

/* Solid green button for in-content CTAs */
.btn--solid { background: var(--primary-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--accent-green); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--hero { background: #fff; color: var(--primary-green); box-shadow: var(--shadow-md); }
.btn--hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(560px, 82vh, 780px);
  display: flex; align-items: center;
  background: radial-gradient(120% 120% at 78% 18%, var(--accent-green) 0%, var(--primary-green) 48%, var(--deep-green) 100%);
  color: #fff; overflow: hidden;
}

/* HERO PHOTO: images/hero.jpg sits beneath the overlay. If absent, the
   gradient above shows through — graceful fallback, no broken state. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url("../images/hero.jpg");
  background-size: cover; background-position: center;
}

/* Cinematic dark overlay: darker at left (for text) with a warm edge at right */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(95deg, rgba(8,10,9,0.88) 0%, rgba(8,10,9,0.58) 42%, rgba(15,45,22,0.34) 74%, rgba(120,38,20,0.20) 100%),
    linear-gradient(180deg, rgba(8,10,9,0.10) 0%, rgba(8,10,9,0.58) 100%);
}

.hero__inner { max-width: var(--max-width); margin: 0 auto; width: 100%; padding: clamp(2.5rem, 7vw, 5rem) 1.5rem; }
.hero__content { max-width: 680px; }

.hero__kicker {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.82rem; font-weight: 700;
  color: var(--red-bright); margin-bottom: 1.1rem; padding-left: 0.15em;
  opacity: 0; animation: rise 0.7s ease 0.05s forwards;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 7.5vw, 5.3rem); line-height: 0.98; letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  opacity: 0; animation: rise 0.7s ease 0.16s forwards;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 40ch; margin: 1.2rem 0 2rem;
  color: rgba(255,255,255,0.94); text-shadow: 0 1px 12px rgba(0,0,0,0.3);
  opacity: 0; animation: rise 0.7s ease 0.28s forwards;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; opacity: 0; animation: rise 0.7s ease 0.4s forwards; }

/* Player Card CTA — sits directly under the hero on index.html so
   members find "Get my link" without scrolling. */
.pcard-cta { background: #fffdf6; border-top: 1px solid var(--line, #e6e2d8); border-bottom: 1px solid var(--line, #e6e2d8); }
.pcard-cta__inner { max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.pcard-cta__text { flex: 1 1 320px; }
.pcard-cta__kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass, #a37b3d); font-weight: 700; margin: 0 0 0.25rem 0; }
.pcard-cta__title { font-family: Fraunces, Georgia, serif; color: var(--primary-green); margin: 0 0 0.35rem 0; font-size: 1.5rem; }
.pcard-cta__lead { margin: 0; color: #555; font-size: 0.98rem; line-height: 1.45; max-width: 60ch; }
.pcard-cta__how { margin: 0.6rem 0 0 0; padding: 0 0 0 1.2rem; color: #555; font-size: 0.95rem; line-height: 1.5; max-width: 60ch; }
.pcard-cta__how li { padding: 0.2rem 0; }
.pcard-cta__how strong { color: var(--primary-green); }
.pcard-cta__actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.pcard-cta__actions .btn { white-space: nowrap; text-align: center; }
@media (max-width: 640px) { .pcard-cta__actions { flex-direction: row; flex-wrap: wrap; } }
.nav__player { color: var(--primary-green) !important; font-weight: 700; border: 1.5px solid var(--primary-green); padding: 4px 10px; border-radius: 999px; }
.nav__player:hover { background: var(--primary-green); color: #fff !important; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__kicker, .hero__title, .hero__subtitle, .hero__actions { animation: none; opacity: 1; }
}

/* ---------- Stat strip ---------- */
.stats { background: var(--primary-green); color: #fff; border-top: 3px solid var(--red); }
.stats__inner { max-width: var(--max-width); margin: 0 auto; padding: 1.7rem 1.5rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stat { position: relative; padding: 0.2rem 0.5rem; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 60%; width: 1px; background: rgba(255,255,255,0.22); }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 600; line-height: 1; }
.stat__label { display: block; margin-top: 0.35rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.8); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--white); }
.section--paper { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--primary-green); letter-spacing: -0.01em; }
.section__text { max-width: 720px; margin: 0 auto 1rem; font-size: 1.08rem; color: #33342e; }
.section__text--center { text-align: center; }
.section__subtitle { font-size: 1.15rem; font-style: italic; color: var(--accent-green); margin: 0.4rem 0 1.75rem; max-width: 720px; }

.rule-brass { width: 56px; height: 3px; background: var(--red); border: none; border-radius: 2px; margin: 0.9rem 0 0; }
.section-head--center .rule-brass { margin-left: auto; margin-right: auto; }

/* ---------- About: asymmetric two-column ---------- */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about__lede { font-size: 1.18rem; line-height: 1.7; color: #2c2d27; }

.factbox { background: var(--primary-green); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-md); position: relative; top: 0.25rem; border-top: 4px solid var(--red); }
.factbox h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.72); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.factbox dl { display: grid; gap: 0.85rem; }
.factbox dl > div { display: grid; gap: 0.1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.16); }
.factbox dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.factbox dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.72); }
.factbox dd { font-family: var(--font-display); font-size: 1.12rem; }

/* ---------- Amenities ---------- */
.amenities { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem 1rem; }
.amenity { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.65rem; }
.amenity svg { width: 34px; height: 34px; color: var(--primary-green); stroke: var(--primary-green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease, color 0.2s ease, stroke 0.2s ease; }
.amenity:hover svg { transform: translateY(-3px) scale(1.06); color: var(--red); stroke: var(--red); }
.amenity span { font-size: 0.9rem; font-weight: 600; color: #2c2d27; }

/* ---------- Our Story ---------- */
.story { max-width: 740px; }
.story p { margin-bottom: 1.15rem; font-size: 1.08rem; }
/* No drop cap here on purpose: the first paragraph opens with "F&H"
   (Fleming & Haxtun) and ::first-letter would split the monogram. */
.story__attribution { max-width: 740px; margin: 1.5rem 0 0; font-size: 0.92rem; font-style: italic; color: var(--muted); }
.story__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.story__listen-link { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; color: var(--primary-green); }
.story__listen-link:hover { color: var(--red); text-decoration: underline; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; max-width: 760px; margin: 3rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 11px; width: 2px; background: linear-gradient(var(--accent-green), var(--light-green)); }
.timeline__item { position: relative; padding: 0 0 1.75rem 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--primary-green); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 2px var(--accent-green); }
.section--alt .timeline__item::before { border-color: var(--white); }
.timeline__year { display: inline-block; font-family: var(--font-display); font-weight: 600; color: var(--primary-green); font-size: 1.3rem; margin-bottom: 0.25rem; }
.timeline__text { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 0.7rem 1rem; box-shadow: var(--shadow-sm); margin: 0; }

/* ---------- Cards (rates) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.cards--two { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--primary-green); margin-bottom: 0.5rem; font-size: 1.25rem; }
.card--feature { border-top: 3px solid var(--red); }
.card--feature .card__big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--primary-green); margin: 0.5rem 0 0.25rem; }
.card__note { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.rates-note { margin-top: 1.75rem; }

/* ---------- Pay for Play (QR) ---------- */
.pay {
  margin-top: 2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-md);
}
.pay__qr { text-align: center; }
.pay__qr img { width: 220px; height: 220px; display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.pay__qr-label { display: block; margin-top: 0.55rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--primary-green); }
.pay__title { color: var(--primary-green); font-size: 1.5rem; margin: 0.2rem 0 0.6rem; }
.pay__lead { color: var(--muted); margin-bottom: 0.9rem; max-width: 54ch; }
.pay__fees { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 1.1rem; }
.pay__note { margin-top: 0.85rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }

/* Price table inside the pay block */
.pricing { border-collapse: collapse; margin: 0.4rem 0 0.9rem; min-width: 280px; }
.pricing th, .pricing td { padding: 0.5rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.pricing thead th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.pricing tbody th { text-align: left; font-family: var(--font-display); font-weight: 600; color: var(--primary-green); font-size: 1.05rem; }
.pricing td { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.pricing td:last-child { color: var(--red-deep); font-weight: 700; }
.pay__note2 { font-size: 0.9rem; color: #3a3b34; margin-bottom: 1.1rem; }

/* Hours + Membership dues cards */
.rates-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; align-items: start; }
.ratecard { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.6rem 1.75rem; box-shadow: var(--shadow-sm); }
.ratecard__title { color: var(--primary-green); font-size: 1.3rem; margin-bottom: 0.9rem; }
.hours__table, .dues { width: 100%; border-collapse: collapse; }
.hours__table th, .hours__table td, .dues th, .dues td { padding: 0.42rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.hours__table th[scope="row"], .dues th[scope="row"] { text-align: left; font-weight: 600; color: #2c2d27; }
.hours__table td { text-align: right; color: #33342e; }
.dues thead th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.dues thead th:not(:first-child), .dues td { text-align: right; }
.dues td { font-family: var(--font-display); color: var(--ink); }
.dues td[colspan] { color: var(--primary-green); font-weight: 600; }
.hours__note, .dues__note { margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted); }

/* Tournament schedule */
.schedule { list-style: none; max-width: 640px; margin: 0 auto; padding: 0; }
.schedule li { display: flex; gap: 1rem; align-items: baseline; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
.schedule__date { flex: 0 0 6rem; font-family: var(--font-display); font-weight: 600; color: var(--red-deep); }
.schedule__event { color: #2c2d27; font-weight: 600; }
.schedule__note { max-width: 640px; margin: 1.5rem auto 0; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* Player Card call-to-action on tournaments.html — brass accent
   panel between the schedule and the sign-up form. Directs players
   who aren't sure if they're already signed up to look up their card. */
.pc-cta { background: #fff; border: 1px solid #e5d8ac; border-left: 4px solid #c9a04b; border-radius: 12px; padding: 1rem 1.15rem; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04)); }
.pc-cta__title { margin: 0 0 0.4rem 0; font-family: var(--font-display, Fraunces, Georgia, serif); color: var(--primary-green); font-size: 1.1rem; }
.pc-cta__body { margin: 0 0 0.75rem 0; color: #333; font-size: 0.95rem; line-height: 1.5; }
.pc-cta__btn { display: inline-block; }
.schedule li { flex-wrap: wrap; }
.schedule__meta { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; font-weight: 600; }
.schedule__tbd { color: var(--brass, #a37b3d); font-style: italic; font-weight: 500; }
.schedule li.is-past { opacity: 0.7; }
.schedule__done { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.schedule__done::before { content: "✓"; color: var(--primary-green); font-weight: 700; }
.schedule__full { flex-basis: 100%; display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.schedule__track { flex: 1 1 auto; max-width: 340px; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.schedule__fill { height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--primary-green)); border-radius: 999px; transition: width 0.5s ease; }
.schedule__full.is-full .schedule__fill { background: var(--red); }
.schedule__pct { font-size: 0.8rem; font-weight: 700; color: var(--primary-green); white-space: nowrap; }
.schedule__full.is-full .schedule__pct { color: var(--red-deep); }
.form__format { background: var(--light-green); border-radius: 8px; padding: 0.5rem 0.85rem; font-size: 0.9rem; color: var(--primary-green); font-weight: 600; }

@media (max-width: 760px) { .rates-grid { grid-template-columns: 1fr; } }

/* ---------- Share buttons (tournaments page) ---------- */
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.share__link { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--primary-green); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.share__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--primary-green); }
.share__link--primary { background: var(--red); color: #fff; border-color: var(--red); }
.share__link--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.share__msg { display: block; margin-top: 0.9rem; min-height: 1.2em; font-weight: 700; color: var(--accent-green); }

/* ---------- Add to Home Screen block ---------- */
.install { margin-top: 1.5rem; }
.install__note { color: var(--muted); margin-top: 0.5rem; }
.install__rule { border: none; border-top: 1px solid var(--line); max-width: 320px; margin: 2.25rem auto 1.75rem; }
.install__share-title { color: var(--primary-green); font-size: 1.3rem; margin-bottom: 0.4rem; }

@media (max-width: 640px) {
  .pay { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pay__lead, .pay__fees { max-width: none; }
}

/* ---------- Scorecard ---------- */
.table-wrap { overflow-x: auto; margin-top: 0.5rem; max-width: 640px; }
.scorecard { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; min-width: 320px; border: 1px solid var(--line); }
.scorecard th, .scorecard td { padding: 0.8rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line); }
.scorecard thead th { background: var(--primary-green); color: #fff; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.scorecard tbody tr:nth-child(even) { background: var(--paper); }
.scorecard tbody td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--primary-green); }
.scorecard tfoot td { background: var(--accent-green); color: #fff; font-weight: 700; }

/* ---------- Immersive photo band ---------- */
.band {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  background: #1a1a1a url("../images/band.jpg") center/cover no-repeat;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,0.62), rgba(10,10,10,0.74));
}
.band__inner { max-width: 820px; margin: 0 auto; padding: clamp(3.5rem, 9vw, 6.5rem) 1.5rem; }
.band__kicker { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem; font-weight: 700; color: var(--red-bright); margin-bottom: 1rem; }
.band__quote { font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 3rem); line-height: 1.12; font-weight: 500; text-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.band__rule { width: 60px; height: 3px; background: var(--red); border: none; border-radius: 2px; margin: 1.4rem auto; }
.band__sub { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 52ch; margin: 0 auto; }

/* ---------- "Respect the Course" creed band ---------- */
/* 2026 Board of Directors -- roster on index.html. Officers get a wider
   role column + brass accent so President / VP / Sec / Treas read as the
   leadership group; directors sit below in the same rhythm. */
.board { list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 640px; display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.board__row { display: grid; grid-template-columns: 10rem 1fr; align-items: baseline; gap: 0.85rem; padding: 0.75rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); }
.board__row--officer { border-left-color: var(--brass, #c9a24d); background: linear-gradient(180deg, #fbf6e6 0%, #f7efd7 100%); }
.board__role { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--primary-green); white-space: nowrap; }
.board__row--officer .board__role { color: #6b4d00; }
.board__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
@media (max-width: 560px) { .board__row { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.7rem 0.95rem; } }

.creed-band { background: var(--deep-green); color: #fff; border-top: 4px solid var(--red); border-bottom: 4px solid var(--red); }
.creed { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 1.5rem; text-align: center; }
.creed__eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem; font-weight: 700; color: var(--red-bright); margin-bottom: 0.8rem; }
.creed__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.1rem; }
.creed__lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); line-height: 1.7; margin: 0 auto 1.6rem; max-width: 60ch; }
.creed__list { list-style: none; padding: 0; margin: 0 auto 1.6rem; display: inline-grid; gap: 0.7rem; text-align: left; }
.creed__ask { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: 0.01em; }
.creed__list li { padding: 0.55rem 0 0.55rem 1rem; border-left: 3px solid var(--red-bright); font-family: var(--font-display); font-size: 1.12rem; }
.creed__close { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: #fff; margin: 0.4rem auto 1.3rem; max-width: 48ch; }
.creed__sign { font-style: italic; color: rgba(255, 255, 255, 0.75); }

/* ---------- Gallery (dark showcase) ---------- */
.gallery { background: var(--charcoal); color: #fff; }
.gallery .section__title { color: #fff; }
.gallery .eyebrow { color: var(--red-bright); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.4rem 1rem 0.85rem; color: #fff; font-size: 0.95rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
}
.gallery__cap::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--red-bright); margin-right: 0.5rem; vertical-align: middle; }
.gallery__note { margin-top: 1.5rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); font-style: italic; }

/* ---------- Location / map ---------- */
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { display: block; }

/* ---------- Contact ---------- */
.contact-lines { font-size: 1.1rem; }
.contact-lines a { font-weight: 600; }

/* ---------- Facebook block ---------- */
.fb { margin-top: 1.75rem; }
.fb__card { max-width: 540px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid #1877F2; border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fb__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fb__icon svg { width: 44px; height: 44px; display: block; }
.fb__title { color: var(--primary-green); font-size: 1.45rem; margin: 0.85rem 0 0.4rem; }
.fb__lead { color: var(--muted); margin-bottom: 1.35rem; }
.fb__feed { max-width: 540px; margin-top: 1.5rem; max-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.45s ease, max-height 0.45s ease; }
.fb__feed.is-ready { max-height: 720px; opacity: 1; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.82); border-top: 4px solid var(--red); }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer__brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.site-footer__mark { width: 62px; height: 62px; flex: none; background: #fff; border-radius: 50%; padding: 7px; object-fit: contain; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.site-footer__name { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.site-footer__tag { font-style: italic; color: rgba(255,255,255,0.68); margin-top: 0.3rem; max-width: 32ch; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--red-bright); margin-bottom: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__bottom { max-width: var(--max-width); margin: 0 auto; padding: 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.85rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer__link { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer { background: var(--black); color: #fff; text-align: center; padding: 1.5rem; font-size: 0.95rem; }

/* ============================================================
   story.html — full-history page components
   ============================================================ */
.hero--strip { min-height: clamp(300px, 44vh, 440px); }
.hero--strip .hero__inner { padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; }

.book { max-width: 740px; margin: 0 auto; background: transparent; color: var(--ink); font-size: 1.12rem; line-height: 1.85; }
.book p { margin-bottom: 1.4rem; }
.book p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 3.8rem; line-height: 0.78; padding: 0.06em 0.12em 0 0; color: var(--primary-green); font-weight: 600; }
.book__attribution { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--line); font-style: italic; text-align: right; color: var(--primary-green); font-weight: 600; }

.listen { max-width: 740px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 1.9rem; text-align: center; box-shadow: var(--shadow-md); }
.listen__title { color: var(--primary-green); margin-bottom: 0.4rem; font-size: 1.6rem; }
.listen__lead { margin-bottom: 1.2rem; color: var(--muted); }
.listen__player { width: 100%; max-width: 520px; }
.listen__links { margin-top: 1rem; }
.listen__links a { font-weight: 700; text-decoration: none; margin: 0 0.6rem; }
.listen__links a:hover { text-decoration: underline; }
.listen__caption { margin-top: 0.8rem; font-size: 0.85rem; font-style: italic; color: var(--muted); }

/* Vintage newspaper clippings (intentionally print-styled) */
.newspaper { max-width: 840px; margin: 0 auto; background: #fdfbf3; border: 1px solid #d8d4c2; box-shadow: var(--shadow-md); padding: 2.25rem 2.5rem; color: #1a1a1a; font-family: Georgia, "Times New Roman", Times, serif; }
.newspaper__masthead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; border-bottom: 3px double #1a1a1a; padding-bottom: 0.5rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.newspaper__paper { font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; }
.newspaper__headline { font-family: Georgia, "Times New Roman", Times, serif; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; text-align: center; line-height: 1.12; margin: 1.1rem 0 0.4rem; color: var(--primary-green); }
.newspaper__subhead { text-align: center; font-style: italic; font-size: 1.05rem; margin: 0 auto 0.75rem; max-width: 640px; }
.newspaper__rule { border: none; border-top: 1px solid #1a1a1a; margin: 0.75rem 0 1.25rem; }
.newspaper__columns { column-count: 2; column-gap: 2rem; column-rule: 1px solid #cfcab4; text-align: justify; hyphens: auto; font-size: 1rem; line-height: 1.6; }
.newspaper__columns p { margin: 0 0 0.85rem; }
.newspaper__columns p:first-child::first-letter { float: left; font-size: 3.1rem; line-height: 0.8; padding: 0.05em 0.08em 0 0; font-weight: 900; color: var(--primary-green); }
.newspaper__photo { margin: 0 0 1.25rem; text-align: center; }
.newspaper__photo img { width: 100%; height: auto; border: 1px solid #d8d4c2; filter: grayscale(100%) contrast(1.05); }
.newspaper__photo figcaption { font-size: 0.85rem; line-height: 1.45; text-align: left; padding-top: 0.5rem; border-top: 1px solid #cfcab4; margin-top: 0.4rem; }
.newspaper__sources { margin-top: 1.1rem; padding-top: 0.6rem; border-top: 1px solid #cfcab4; font-size: 0.85rem; font-style: italic; }

.clipping { max-width: 560px; margin: 2rem auto 0; text-align: center; }
.clipping img { width: 100%; height: auto; border: 1px solid #d8d4c2; box-shadow: var(--shadow-sm); border-radius: 4px; }
.clipping figcaption { margin-top: 0.6rem; font-size: 0.85rem; font-style: italic; color: var(--muted); }

.archives__divider { border: none; border-top: 2px dashed var(--red); max-width: 840px; margin: 2.75rem auto; opacity: 0.5; }

/* ---------- Hall of Fame (hall-of-fame.html) ---------- */
.hof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.hof__card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.9rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hof__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hof__avatar, .hof__photo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 1rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); }
.hof__avatar { display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: 0.02em; background: radial-gradient(circle at 32% 26%, var(--accent-green), var(--deep-green)); }
.hof__photo { object-fit: cover; display: block; }
.hof__name { font-size: 1.3rem; color: var(--primary-green); margin-bottom: 0.2rem; }
.hof__role { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red); font-weight: 700; margin-bottom: 0.7rem; }
.hof__bio { color: #33342e; font-size: 0.98rem; line-height: 1.55; }

.honor-roll { list-style: none; max-width: 880px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 2.25rem; }
.honor-roll li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: #33342e; }
.honor-roll__name { font-weight: 700; color: var(--primary-green); }

@media (max-width: 900px) { .hof__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hof__grid { grid-template-columns: 1fr; } .honor-roll { grid-template-columns: 1fr; } }

/* ---------- Nomination form (nominate.html) ---------- */
.nominate { max-width: 780px; }
.form { display: grid; gap: 1.15rem; margin-top: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.form__field { display: grid; gap: 0.4rem; min-width: 0; }
.form__label { font-size: 0.85rem; font-weight: 700; color: var(--primary-green); }
.req { color: var(--red); }
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 0.72rem 0.85rem; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.13);
}
.form textarea { resize: vertical; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.3rem; }
.form__status { font-size: 0.95rem; }
.form__status.is-error { color: var(--red); font-weight: 600; }
.form__fineprint { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.form__success { margin-top: 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary-green); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-md); }
.form__success h3 { color: var(--primary-green); font-size: 1.55rem; margin-bottom: 0.5rem; }
.form__success p { color: #33342e; margin-bottom: 1.2rem; }

@media (max-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }

/* ---------- Staff portal (admin.html) ---------- */
.admin { max-width: 1000px; }
.admin-gate { max-width: 420px; margin: 1rem auto; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); text-align: center; }
.tw-phantom { max-width: 640px; margin: 2rem auto; padding: 0 1rem; }
.tw-phantom__box { background: #fff; border: 1px solid #b11e2d; border-top: 6px solid #b11e2d; border-radius: var(--radius, 10px); padding: 1.75rem 1.75rem 1.5rem; box-shadow: 0 6px 22px rgba(177, 30, 45, 0.18); }
.tw-phantom__eyebrow { color: #b11e2d; font: 800 0.85rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.6rem; }
.tw-phantom__title { font-family: Fraunces, Georgia, serif; color: #7a0a1a; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 0.75rem; line-height: 1.2; }
.tw-phantom__body { color: var(--ink, #2a2418); margin: 0 0 0.8rem; line-height: 1.5; }
.tw-phantom__body code { background: #fdecef; color: #7a0a1a; padding: 0.15rem 0.45rem; border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; word-break: break-all; }
.tw-phantom__suggest { color: var(--ink, #2a2418); margin: 0 0 1rem; line-height: 1.5; padding: 0.7rem 0.85rem; background: #fdf6f7; border-left: 3px solid #b11e2d; border-radius: 6px; }
.tw-phantom__link { color: #b11e2d; font-weight: 800; text-decoration: underline; word-break: break-all; }
.tw-phantom__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.admin-gate h2 { color: var(--primary-green); margin-bottom: 0.3rem; }
.admin-gate p { color: var(--muted); margin-bottom: 1.2rem; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.admin-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; color: var(--ink); }
.admin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-card__tag { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--red); margin-bottom: 0.5rem; }
.admin-card h3 { color: var(--primary-green); font-size: 1.2rem; margin-bottom: 0.3rem; }
.admin-card p { color: var(--muted); font-size: 0.92rem; }
.admin-note { margin-top: 2rem; font-size: 0.92rem; color: #3a3b34; background: var(--paper-2); border-radius: 10px; padding: 1.1rem 1.3rem; line-height: 1.7; }
.admin-note code { background: rgba(0,0,0,0.06); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; }
.site-footer__marklink { display: inline-flex; flex: none; border-radius: 50%; }

/* Submitted nominations list (in the portal) */
.noms { max-width: 1000px; margin: 0 auto 2.75rem; }
/* Toolbar row that lives above each workbook tab (Check-In, Pairings,
   Scores, …). Wraps to a second line at narrow widths so a fifth or
   sixth action button doesn't spill outside the sheet's border. Title
   keeps `margin-right: auto` so on a wide screen everything after it
   still packs to the right edge — same visual as the old space-between
   layout, but wrap-safe. */
.noms__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.75rem; margin-bottom: 1rem; }
.noms__title { color: var(--primary-green); font-size: 1.35rem; margin-right: auto; }
.noms__count { color: var(--muted); font-weight: 400; font-family: var(--font-body); font-size: 1rem; }
.noms__list { display: grid; gap: 1rem; }
.noms__msg { color: var(--muted); }
.nom { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.nom__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.nom__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--primary-green); }
.nom__status { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; padding: 0.22rem 0.65rem; border-radius: 999px; background: var(--paper-2); color: #555; }
.nom__status--new { background: #fde8ea; color: var(--red-deep); }
.nom__status--reviewing { background: #fff3df; color: #8a5a00; }
.nom__status--approved, .nom__status--added { background: var(--light-green); color: var(--primary-green); }
.nom__status--declined { background: #ececec; color: #777; }
.nom__meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); font-weight: 700; margin-top: 0.25rem; }
.nom__why { margin: 0.6rem 0; color: #33342e; }
.nom__by { font-size: 0.85rem; color: var(--muted); }
.nom__by a { color: var(--accent-green); }

/* Tournament groups in the portal */
.tgroup { margin-bottom: 1.75rem; }
.tgroup__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--line); }
.tgroup__name { font-family: var(--font-display); color: var(--primary-green); font-size: 1.18rem; }
.tgroup__count { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.tgroup__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tgroup__actions .btn { padding: 0.5rem 1rem; font-size: 0.88rem; }
.tgroup .nom { margin-bottom: 0.6rem; }

/* Tournament finance calculator */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.calc__inputs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; margin-bottom: 1.25rem; }
.calc input { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; width: 100%; }
.calc input:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12); }
.calc__out { display: grid; gap: 0.4rem; max-width: 440px; }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); }
.calc__row strong { font-family: var(--font-display); font-size: 1.1rem; }
.calc__row--prize { background: var(--light-green); border-radius: 10px; border-bottom: none; }
.calc__row--prize strong { color: var(--primary-green); }
.calc__hint { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .calc__inputs { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews page (reviews.html) ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.quote { margin: 0; padding: 1.5rem 1.6rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quote blockquote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; color: #2c2d27; font-style: italic; }
.quote figcaption { margin-top: 0.7rem; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.quote__tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--red); margin-bottom: 0.55rem; }
.quote__stars { color: #E6A100; letter-spacing: 2px; margin-bottom: 0.5rem; }

.videoreview { margin-top: 2.5rem; text-align: center; }
.videoreview__sub { color: var(--muted); margin: 0 auto 1rem; max-width: 56ch; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.videoreview__title { color: var(--primary-green); font-size: 1.2rem; margin-bottom: 0.9rem; }

.reviews__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.reviews__msg { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.review__stars { color: #E6A100; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 0.5rem; }
.review__text { color: #33342e; margin-bottom: 0.7rem; }
.review__by { font-size: 0.85rem; font-weight: 700; color: var(--primary-green); }

/* Star rating input (reversed DOM order so :checked ~ label fills correctly) */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: #d7d3c4; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.stars label:hover { transform: scale(1.1); }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #E6A100; }
.stars input:focus-visible + label { outline: 2px solid var(--primary-green); outline-offset: 2px; border-radius: 4px; }
.form__hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.form__prefill { background: var(--light-green); border: 1px solid rgba(27,94,32,0.18); border-radius: 10px; padding: 0.65rem 0.95rem; margin-bottom: 1.1rem; font-size: 0.92rem; color: var(--primary-green); }
.form__prefill a { font-weight: 700; }

@media (max-width: 640px) { .reviews__list { grid-template-columns: 1fr; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .factbox { top: 0; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__tagline { display: none; }
  .nav__links {
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--paper); flex-direction: column; gap: 0; align-items: stretch;
    padding: 0.5rem 0; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
    transform: translateY(-160%); transition: transform 0.3s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat:nth-child(1)::before, .stat:nth-child(3)::before, .stat:nth-child(5)::before { display: none; }
  .stat:nth-child(5) { grid-column: 1 / -1; }

  .cards, .cards--two { grid-template-columns: 1fr; }
  .newspaper { padding: 1.25rem; }
  .newspaper__columns { column-count: 1; }
}

@media (max-width: 560px) {
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr; }
  .story__cta { flex-direction: column; align-items: flex-start; }
}

/* ===================== Site-wide under-construction notice ===================== */
.notice { background: var(--red-deep); color: #fff; }
.notice__inner { max-width: 1200px; margin: 0 auto; padding: 0.55rem 1.25rem; display: flex; gap: 0.45rem 0.85rem; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; font-size: 0.88rem; line-height: 1.45; }
.notice__tag { display: inline-block; background: #fff; color: var(--red-deep); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.notice__msg { font-weight: 600; }
.notice a { color: #fff; text-decoration: underline; font-weight: 800; white-space: nowrap; }

/* ===================== Projects of F&H ===================== */
.projects { margin-top: 2.5rem; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem 1.75rem; }
.project--feature { border-left: 5px solid var(--red); background: var(--paper); box-shadow: var(--shadow-md); padding: 2rem 2.1rem; }
.project__tag { display: inline-block; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem; }
.project__tag--done { background: var(--primary-green); }
.project__title { font-size: 1.5rem; color: var(--primary-green); margin-bottom: 0.55rem; }
.project--feature .project__title { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.project p { margin-bottom: 0.85rem; }
.project p:last-child { margin-bottom: 0; }
.project__cta { font-weight: 700; color: var(--ink); }
.project__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2rem; }

.project__figure { margin: -2rem -2.1rem 1.4rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.project__figure img { width: 100%; height: clamp(220px, 42vw, 420px); object-fit: cover; display: block; }

/* ===================== Next-Up featured tournament ===================== */
.nextup { padding-top: 2.6rem; padding-bottom: 0.5rem; }
.nextup__card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  border-top: 5px solid var(--red); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.8rem 1.9rem;
}
.nextup__tag {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.22rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.nextup__date { font-weight: 700; color: var(--red); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.15rem; }
.nextup__title { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--primary-green); line-height: 1.05; }
.nextup__detail { color: var(--muted); margin-top: 0.4rem; }
.nextup__note { color: var(--ink); margin-top: 0.2rem; font-style: italic; }
.nextup__card .schedule__full { max-width: 360px; margin: 1.1rem auto 0; }
.nextup__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.6rem; margin: 1.2rem auto 0.15rem; max-width: 520px; }
.nextup__nav-link { display: inline-flex; align-items: center; padding: 0.5rem 1.05rem; border: 1px solid var(--primary-green); border-radius: 999px; background: #fff; color: var(--primary-green); text-decoration: none; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; transition: background 0.15s, color 0.15s, transform 0.05s; }
.nextup__nav-link:hover, .nextup__nav-link:focus { background: var(--primary-green); color: #fff; }
.nextup__nav-link:active { transform: translateY(1px); }
.nextup__nav-link--primary { background: var(--red); color: #fff; border-color: var(--red); padding: 0.55rem 1.3rem; font-size: 0.98rem; box-shadow: 0 2px 6px rgba(177,30,45,0.25); }
.nextup__nav-link--primary:hover, .nextup__nav-link--primary:focus { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }
.nextup__btn { margin-top: 1.1rem; }

/* Per-row Sign Up button on the schedule */
.schedule__signup { flex-basis: 100%; align-self: flex-start; margin-top: 0.6rem; padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.schedule li.is-past .schedule__signup { display: none; }

/* ===================== Tournament entry-fee card payment ===================== */
.paycard { margin: 1.4rem 0; padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); text-align: left; }
.paycard__amount { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary-green); margin-bottom: 0.3rem; }
.paycard__lead { color: var(--ink); margin-bottom: 0.9rem; font-weight: 600; }
.paycard__row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.paycard__qr { text-align: center; }
.paycard__qr img { width: 120px; height: 120px; display: block; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }

/* ===================== Staff: Join the Website Building Team ===================== */
.buildteam { margin-top: 2rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.7rem 1.8rem; }
.buildteam__title { color: var(--primary-green); font-size: 1.5rem; margin-bottom: 0.5rem; }
.buildteam__lead { color: var(--ink); font-size: 1rem; margin-bottom: 1.2rem; }
.buildteam__sub { color: var(--primary-green); font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }
.buildteam__list, .buildteam__steps { padding-left: 1.3rem; color: #3a3b34; line-height: 1.7; }
.buildteam__list { list-style: disc; }
.buildteam__steps { list-style: decimal; }
.buildteam__list li, .buildteam__steps li { margin-bottom: 0.45rem; }
.buildteam__foot { margin-top: 1.2rem; font-style: italic; color: var(--muted); }

/* ===================== Staff: step-by-step builder guide ===================== */
.gsteps { list-style: none; counter-reset: gstep; padding: 0; max-width: 760px; }
.gstep { counter-increment: gstep; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem 1.4rem 1.3rem 3.6rem; margin-bottom: 1rem; }
.gstep::before { content: counter(gstep); position: absolute; left: 1rem; top: 1.25rem; width: 1.9rem; height: 1.9rem; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.gstep__title { color: var(--primary-green); font-size: 1.15rem; margin-bottom: 0.35rem; }
.gstep p { color: #3a3b34; line-height: 1.65; }
.gstep__examples { margin: 0.6rem 0 0.2rem; padding-left: 1.2rem; color: var(--muted); font-style: italic; line-height: 1.7; }

/* ===================== "Scroll down to learn more" cue ===================== */
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-top: 2.4rem; text-decoration: none; color: var(--primary-green); font-weight: 700; letter-spacing: 0.02em; text-align: center; transition: color 0.2s ease; }
.scroll-cue:hover { color: var(--red); }
.scroll-cue__arrow { font-size: 1.5rem; line-height: 1; animation: scrollbob 1.6s ease-in-out infinite; }
@keyframes scrollbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue__arrow { animation: none; } }

/* ===================== Tournament sign-up: per-tournament player fields ===================== */
.teamsec { gap: 0.6rem; }
.teammates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.teammates.is-disabled { opacity: 0.45; }
.form__check { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-top: 0.4rem; cursor: pointer; }
.form__check input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; flex: none; accent-color: var(--red); }
.form__warn { margin-top: 0.2rem; font-size: 0.85rem; color: var(--red-deep); background: rgba(177,30,45,0.06); border-left: 3px solid var(--red); padding: 0.6rem 0.8rem; border-radius: 8px; line-height: 1.55; }

/* ===================== Founders Tournament pairings (tournament.html) ===================== */
.founders { max-width: 900px; }
.founders__status { color: var(--muted); font-style: italic; }
.flight { margin-bottom: 2.75rem; }
.flight__title { font-family: var(--font-display); font-weight: 600; color: var(--primary-green); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.15rem; }
.flight__count { color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.pairings { width: 100%; border-collapse: collapse; font-family: var(--font-body); background: var(--white); }
.pairings th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-green); padding: 0.75rem 1.1rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.pairings td { padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.pairings tbody tr:nth-child(odd) { background: var(--paper-2); }
.pairings__num { color: var(--muted); font-variant-numeric: tabular-nums; width: 3.5rem; white-space: nowrap; }
.dagger { color: var(--muted); font-size: 0.85rem; cursor: help; }
.margin__list { list-style: none; padding-left: 0; columns: 2; column-gap: 2rem; max-width: 520px; margin-bottom: 0.6rem; }
.margin__list li { padding: 0.2rem 0; color: var(--ink); break-inside: avoid; }
.margin__note { font-style: italic; color: var(--muted); font-size: 0.9rem; }
.founders__notes { margin-top: 2.25rem; font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.founders__notes p { margin: 0.15rem 0; }
.founders__past { margin: 2.5rem 0 0; text-align: center; font-weight: 700; }
.founders__past a { color: var(--primary-green); text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(30,80,40,0.2); background: rgba(30,80,40,0.06); display: inline-block; }
.founders__past a:hover, .founders__past a:focus-visible { background: var(--primary-green); color: #fff; outline: none; }
.founders__scan { margin-top: 2.5rem; }
.founders__scan img { width: 100%; max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius); }
.founders__scan figcaption { margin-top: 0.5rem; font-size: 0.85rem; font-style: italic; color: var(--muted); }
.hero__year { font-size: 1rem; margin-top: 0.3rem; opacity: 0.92; }

/* ---------- Founders 2026 Highlights / Recap ---------------------------
   Editorial recap that sits above the pairings on tournament.html. Kept in
   a single block with a champions modifier (--champs) instead of a
   parallel template so the recap reads as one story, not a stack of tiles.
   Fraunces headings, Source Sans 3 body -- inherits the site's type via
   var(--font-display) / var(--font-body). No new fonts. */
#fHighlights { max-width: 780px; margin: 0 auto; font-family: var(--font-body); color: var(--ink); }
.founders-hl__head { text-align: center; margin-bottom: 1.5rem; }
.founders-hl__eyebrow { margin-bottom: 0.35rem; }
.founders-hl__title { margin: 0; }
.founders-hl__intro { font-size: 1.1rem; line-height: 1.65; color: var(--ink); margin: 0.4rem auto 1.4rem; max-width: 62ch; text-align: center; }

.founders-hl__block { margin: 1.6rem 0; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.founders-hl__block:first-of-type { border-top: none; padding-top: 0; }
.founders-hl__heading { font-family: var(--font-display); font-weight: 600; color: var(--primary-green); font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 0.55rem; letter-spacing: 0.005em; }
.founders-hl__body p { font-size: 1.03rem; line-height: 1.7; color: var(--ink); margin: 0 0 0.9rem; }
.founders-hl__body p:last-child { margin-bottom: 0; }
/* Inline board roster -- names on one flowing line separated by middots.
   Rendered ONLY when board.members is populated (see tournament.html
   renderer); an empty roster leaves the collective thank-you paragraph
   alone with no placeholder. Titles (e.g. President) prefix the name. */
.founders-hl__board-list { font-family: var(--font-body); font-size: 0.98rem; line-height: 1.55; color: var(--primary-green); font-weight: 600; margin: 0 0 0.9rem; padding: 0.55rem 0 0.75rem; border-top: 1px solid var(--line); }
.founders-hl__board-list strong { font-weight: 700; }

/* Champions modifier -- distinct visual weight without a separate template.
   Cream background + gold rule + display serif on names so the winners
   read like the headline of the recap, which is exactly what they are. */
.founders-hl__block--champs { border-top: none; padding-top: 0; margin: 0 0 2.2rem; background: linear-gradient(180deg, #fbf6e6 0%, #f5eccf 100%); border: 1px solid var(--brass, #c9a24d); border-radius: 14px; padding: 1.4rem 1.6rem; text-align: center; box-shadow: 0 6px 20px rgba(31, 21, 5, 0.06); }
.founders-hl__champs-lbl { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem; font-weight: 700; color: var(--primary-green); margin: 0 0 0.5rem; }
.founders-hl__champs-names { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; color: #3a2a05; margin: 0; }
.founders-hl__champs-note { font-family: var(--font-body); color: var(--muted); font-size: 0.95rem; margin: 0.65rem 0 0; font-style: italic; }

/* Recap section container -- gives the block room from the pairings below
   without any extra chrome (the section itself already has paper stock). */
.founders-hl-sect { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ===================== Staff: Site Activity stat tiles ===================== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; margin-top: 0.5rem; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary-green); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.stat-tile__t { font: 700 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted, #7a7663); }
.stat-tile__n { font-family: var(--font-display); font-weight: 800; color: var(--primary-green); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1; margin: 0.15rem 0; }
.stat-tile__s { font-size: 0.8rem; color: var(--muted, #7a7663); line-height: 1.35; }
.stat-tile__s b { color: var(--ink); font-weight: 700; }

/* ===================== Staff: Tournament Manager cards ===================== */
.tm__intro { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; max-width: 70ch; }
.noms__toolbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tm-season { display: flex; align-items: center; gap: 0.4rem; }
.tm-season__label { font: 700 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.tm-season__select { padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.9rem; background: #fff; color: var(--ink); cursor: pointer; min-width: 11rem; }
.tm-season__select:focus { outline: 2px solid var(--primary-green); outline-offset: 1px; }
.tm-year { margin-bottom: 1.6rem; }
.tm-year__label { color: var(--primary-green); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.7rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tm-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary-green); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tm-card.is-past { border-left-color: var(--muted); opacity: 0.82; }
.tm-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.tm-card__name { color: var(--primary-green); font-size: 1.08rem; margin: 0; }
.tm-card__date { color: var(--red-deep); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.tm-card__fmt { color: var(--muted); font-size: 0.85rem; }
.tm-card__count { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.tm-card__count.is-full { color: var(--red-deep); }
.tm-card__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0.5rem; }
.tm-card__chips span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--primary-green); background: var(--light-green); border-radius: 999px; padding: 0.15rem 0.55rem; }
.tm-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.tm__btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
.tm__btn--off { color: var(--muted); font-size: 0.8rem; font-style: italic; align-self: center; }

/* Season money glance — a compact per-tournament ledger strip that sits
   ABOVE the tournament cards on admin-tournaments.html. Each row is one
   event's cash-in / to-course / flight pool for the year at a glance;
   the bottom row is the season total. Renders on single-season views
   only (multi-season would be too dense). */
.tm-money { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary-green); border-radius: 12px; padding: 1rem 1.15rem 1.15rem; margin: 0 0 1.4rem; box-shadow: var(--shadow-sm); }
.tm-money__hdr { margin-bottom: 0.55rem; }
.tm-money__title { color: var(--primary-green); font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.tm-money__sub { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0; }
.tm-money__scroll { overflow-x: auto; }
.tm-money__tbl { width: 100%; border-collapse: collapse; min-width: 42rem; font-size: 0.92rem; }
.tm-money__tbl th, .tm-money__tbl td { padding: 0.5rem 0.65rem; text-align: left; border-bottom: 1px solid var(--line); }
.tm-money__tbl th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; background: var(--paper-2); }
.tm-money__name { min-width: 12rem; }
.tm-money__name a { color: var(--primary-green); font-weight: 700; text-decoration: none; }
.tm-money__name a:hover { text-decoration: underline; }
.tm-money__date { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.tm-money__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-money__num--neg { color: var(--red-deep); }
.tm-money__num--pool { color: var(--primary-green); font-weight: 700; }
.tm-money__num--dim { color: var(--muted); font-style: italic; text-align: center; }
.tm-money__total td { border-top: 2px solid var(--primary-green); border-bottom: none; padding-top: 0.7rem; font-weight: 800; color: var(--ink); background: linear-gradient(180deg, #fbfaf3 0%, #f5f2e2 100%); }
.tm-money__total .tm-money__num { font-size: 1.02rem; }
.tm-money__note { color: var(--muted); font-size: 0.8rem; margin: 0.55rem 0 0; }

/* ===================== Staff: Tournament Workspace ===================== */
.tw-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.tw-soon { opacity: 0.96; }
.tw-soon__desc { color: var(--muted); font-size: 0.92rem; max-width: 70ch; }
.tw-tag { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: #fff; background: var(--red); border-radius: 999px; padding: 0.15rem 0.55rem; vertical-align: middle; }

/* ===================== Staff: tournament check-in & money ===================== */
.checkin-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.checkin-fee { max-width: 150px; }
.checkin-summary { font-size: 1.05rem; color: var(--ink); flex: 1 1 auto; }
.checkin-summary strong { color: var(--primary-green); }
.checkin-add { margin-bottom: 1rem; background: var(--paper-2); border-radius: 10px; padding: 0.6rem 0.9rem; }
.checkin-add summary { cursor: pointer; font-weight: 700; color: var(--primary-green); }
.checkin-add__row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem; }
.checkin-add__row input { flex: 1 1 150px; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.checkin-add__msg { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; display: inline-block; }
.ci-card.is-in { border-left: 4px solid var(--primary-green); }
.ci-badge { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary-green); background: var(--light-green); border-radius: 999px; padding: 0.1rem 0.5rem; white-space: nowrap; }
.ci { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.ci__amtwrap { font-weight: 700; color: var(--ink); }
.ci__amt { width: 5rem; padding: 0.45rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ci__method { padding: 0.45rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.ci .btn { padding: 0.45rem 1rem; font-size: 0.85rem; }
.ci__status { font-size: 0.82rem; color: var(--muted); }
.ci__status.is-error { color: var(--red-deep); }

/* ===================== Staff portal: top-level section nav ===================== */
.portal-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; margin: 0 0 2rem; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary-green); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard__ic { font-size: 1.5rem; line-height: 1; }
.pcard__t { font-family: var(--font-display); font-weight: 600; color: var(--primary-green); font-size: 1.12rem; margin-top: 0.25rem; }
.pcard__s { font-size: 0.8rem; color: var(--muted); }
.pcard__soon { position: absolute; top: 0.6rem; right: 0.6rem; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--paper-2); border-radius: 999px; padding: 0.1rem 0.45rem; }
.scaffold { border-left: 4px solid var(--paper-2); }
.scaffold__desc { color: var(--muted); font-size: 0.92rem; max-width: 70ch; }

/* Remove-team button in the check-in roster */
.ci__remove { background: none; border: none; color: var(--red-deep); font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; padding: 0.45rem 0.4rem; margin-left: auto; }
.ci__remove:hover { color: var(--red); }
.ci__remove:disabled { opacity: 0.5; cursor: default; }

/* Shotgun-wave grouping in the check-in roster */
.wave { margin-bottom: 1.4rem; }
.wave__label { color: var(--primary-green); font-size: 1rem; margin-bottom: 0.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.wave__label span { color: var(--muted); font-weight: 400; }
.ci__start { padding: 0.45rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }

/* Hole-by-hole score editor */
/* Scores — day picker tabs */
.sc-tabs { display: flex; gap: 0.35rem; margin: 0.5rem 0 0.8rem; flex-wrap: wrap; }
.sc-tab { padding: 0.45rem 0.9rem; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: 8px; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.sc-tab:hover { border-color: var(--primary-green); }
.sc-tab.is-active { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

/* Scores — filter toolbar above the grid */
.sc-toolbar { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 0.6rem 0; }
.sc-filter { flex: 1; max-width: 24rem; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.92rem; background: #fff; }
.sc-filter:focus { border-color: var(--primary-green); outline: none; }

/* Scores — spreadsheet grid (sticky team column, sticky header row).
   Breaks out of the 1140px container to use the full viewport width so a
   32-team roster with 20 hole columns fits without heroic side-scrolling. */
.sc-tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-left: calc(50% - 50vw + 1rem);
  margin-right: calc(50% - 50vw + 1rem);
  width: calc(100vw - 2rem);
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
}
.sc-tbl { border-collapse: separate; border-spacing: 0; font-size: 0.88rem; width: 100%; }
.sc-tbl th, .sc-tbl td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.3rem 0.35rem; text-align: center; white-space: nowrap; background: #fff; }
.sc-tbl thead th { position: sticky; top: 0; z-index: 3; background: var(--paper-2); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary-green); padding: 0.35rem 0.25rem; }
.sc-tbl thead th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.62rem; text-transform: none; letter-spacing: 0; }
.sc-tbl th.sc-tbl__team, .sc-tbl td.sc-tbl__team { position: sticky; left: 0; z-index: 2; text-align: left; min-width: 11rem; max-width: 13rem; font-weight: 700; background: var(--paper-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tbl thead th.sc-tbl__team { z-index: 4; }
.sc-tbl__h { min-width: 2.6rem; }
.sc-tbl__loop { font-weight: 800; color: var(--primary-green); background: var(--paper-2) !important; min-width: 2.8rem; }
.sc-tbl__total { font-weight: 800; color: var(--primary-green); background: var(--paper-2) !important; min-width: 4rem; position: relative; }
.sc-tbl__c { padding: 0.1rem !important; }
.sc-cell { width: 100%; min-width: 2.2rem; max-width: 2.6rem; padding: 0.4rem 0.1rem; border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 0.95rem; text-align: center; background: transparent; color: var(--ink); }
.sc-cell:hover, .sc-cell:focus { border-color: var(--primary-green); outline: none; background: #fff; }
.sc-cell.is-under { background: rgba(43,122,61,0.18); color: #1e5c2d; font-weight: 700; }
.sc-cell.is-over { background: rgba(177,30,45,0.15); color: var(--red-deep); font-weight: 700; }
.sc-cell.is-par { color: var(--ink); }
.sc-tbl__totVal { display: inline-block; min-width: 2rem; }
.sc-tbl__save { display: inline-block; width: 0.7rem; height: 0.7rem; margin-left: 0.35rem; border-radius: 50%; vertical-align: middle; background: transparent; }
tr.is-dirty .sc-tbl__save { background: #d19a00; }
tr.is-saving .sc-tbl__save { background: #d19a00; animation: sc-pulse 0.9s infinite; }
tr.is-saved .sc-tbl__save { background: #2b7a3d; }
tr.is-error .sc-tbl__save { background: var(--red-deep); }
@keyframes sc-pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }
.sc-tbl__note { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; }

/* Scores — CSV import */
.sc-import { background: var(--paper-2); border-radius: 12px; padding: 1rem 1.2rem; }
.sc-import__lead { margin-top: 0; font-size: 0.95rem; }
.sc-import__lead code { background: #fff; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85rem; }
#scImportText { width: 100%; min-height: 10rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; background: #fff; resize: vertical; }
.sc-import__row { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.6rem; }
.sc-import__msg { font-size: 0.88rem; color: var(--muted); }
.sc-import__preview { margin-top: 1rem; padding: 0.7rem 0.9rem; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.sc-import__pTitle { margin: 0 0 0.5rem; color: var(--primary-green); font-family: var(--font-display); font-size: 1rem; }
.sc-preview { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sc-preview th, .sc-preview td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); }
.sc-preview th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sc-preview__ok { color: var(--primary-green); font-weight: 700; }
.sc-preview__bad { color: var(--red-deep); font-weight: 700; }
.sc-import__help { margin-top: 1rem; background: #fff; border-radius: 8px; padding: 0.7rem 0.9rem; border: 1px solid var(--line); }
.sc-import__help summary { cursor: pointer; font-weight: 700; color: var(--primary-green); }
.sc-import__helpNote { font-size: 0.88rem; color: var(--muted); }
.sc-import__helpDoc { background: var(--paper-2); border-radius: 6px; padding: 0.7rem 0.9rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; white-space: pre-wrap; overflow-x: auto; }
@media (max-width: 560px) { .sc__grid { grid-template-columns: repeat(6, 1fr); } }

/* Calculations tab (editable formula) */
.calcform { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 1rem; }
.calc__grp { background: var(--paper-2); border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 0.9rem; }
.calc__note--muted { color: var(--muted); font-style: italic; }
.calc__custom { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.5rem 0 0.6rem; }
.calc__custom-row { display: grid; grid-template-columns: 1fr 7rem 8.5rem 8rem 2rem; gap: 0.4rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.5rem; }
.calc__custom-row .calc__in { width: 100%; }
.calc__custom-desc { min-width: 0; }
.calc__custom-del { border: none; background: transparent; color: var(--red-deep); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0.15rem 0.35rem; border-radius: 6px; }
.calc__custom-del:hover { background: rgba(177,30,45,0.1); }
.calc__add { margin-top: 0.35rem; }
@media (max-width: 720px) { .calc__custom-row { grid-template-columns: 1fr 5.5rem 2rem; grid-template-areas: "desc del del" "amt type mode"; } }
.calc__grp h4 { color: var(--primary-green); font-size: 1rem; margin-bottom: 0.5rem; }
.calc__row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.4rem; }
.calc__in { width: 6rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; }
.calc__par { text-align: center; }
.calc__note { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 0.3rem; }
.calc__warn { font-size: 0.82rem; color: var(--red-deep); margin: 0.4rem 0 0; }

/* Live formula panels -- show the exact math (with current values plugged in)
   so the operator can see what each number came from and change any input
   above without a code edit. */
.calc__formula { background: #fff; border: 1px dashed var(--primary-green); border-radius: 8px; padding: 0.55rem 0.7rem; margin: 0.6rem 0 0.3rem; }
.calc__f-title { font-size: 0.78rem; font-weight: 700; color: var(--primary-green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.calc__f-body { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.82rem; }
.calc__f-line { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.1rem 0; }
.calc__f-line span { color: var(--muted); }
.calc__f-line b { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.calc__f-line--out b { color: var(--red-deep); }
.calc__f-line--in b { color: var(--primary-green); }
.calc__f-line--sub { border-top: 1px solid var(--line); margin-top: 0.15rem; padding-top: 0.25rem; }
.calc__f-line--sub span { color: var(--ink); font-weight: 600; }
.calc__f-line--total { border-top: 2px solid var(--primary-green); margin-top: 0.3rem; padding-top: 0.35rem; font-size: 0.95rem; }
.calc__f-line--total span { color: var(--primary-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.calc__f-line--total b { color: var(--primary-green); font-size: 1.1rem; }

/* Field summary banner at the top of the Calc tab. */
.calc__summary { background: linear-gradient(135deg, var(--primary-green) 0%, #0e4517 100%); color: #fff; border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.calc__sum-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; }
.calc__sum-cell { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.1rem; }
.calc__sum-cell b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.calc__sum-cell small { color: rgba(255,255,255,0.75); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.calc__sum-cell--good b { color: var(--gold, #f5c542); }

/* Per-section running totals block. */
.calc__totals { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; margin-bottom: 0.6rem; }
.calc__tot-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: baseline; }
.calc__tot { display: inline-flex; flex-direction: column; }
.calc__tot small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.calc__tot b { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.calc__tot--neg b { color: var(--red-deep); }
.calc__tot--pool b { color: var(--primary-green); font-size: 1.25rem; }
/* Per-player formula strip on the Money step — reads like a napkin math
   line so a first-time operator can see *why* the pool is what it is:
   "$75 entry − $30 green − $10 meal = $35 to pool × 60 players = $2,100".
   Sits directly above .calc__tot-row so the aggregate totals right below
   are the same story restated. */
.calc__ppf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.35rem; padding: 0.55rem 0.75rem; margin: 0 0 0.55rem; background: linear-gradient(180deg, #fbfaf3 0%, #f5f2e2 100%); border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; line-height: 1.4; }
.calc__ppf small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.25rem; }
.calc__ppf-num { font-family: var(--font-display); color: var(--ink); font-weight: 700; }
.calc__ppf-op { color: var(--muted); font-weight: 600; }
.calc__ppf-eq { color: var(--primary-green); font-weight: 800; }
.calc__ppf-num--pool { color: var(--primary-green); font-size: 1.1rem; }
.calc__prizes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--line); }
.calc__prize { display: inline-flex; flex-direction: column; align-items: center; background: var(--paper-2); border-radius: 8px; padding: 0.35rem 0.7rem; min-width: 4.6rem; }
.calc__prize small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.calc__prize b { font-family: var(--font-display); color: var(--primary-green); font-size: 1.05rem; }

/* Expenses & P&L */
/* Tournament P&L on the $ Summary tab — Income (top) → Expenses → P&L (bottom).
   Each section is a full-width card with generous vertical rhythm so numbers
   read like a proper ledger, not a squeezed dashboard. */
.pl { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.4rem; padding: 0; background: transparent; }
.pl__meta { color: var(--muted); font-size: 0.95rem; margin: 0; padding: 0 0.25rem; }
.pl__meta b { color: var(--ink); font-weight: 800; }

.pl__section { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem 1.2rem; box-shadow: var(--shadow-sm); }
.pl__section--in { border-left-color: var(--primary-green); }
.pl__section--exp { border-left-color: var(--red-deep); }
.pl__section--sum { border-left-color: #b48000; background: #faf7ec; }

.pl__hdr { color: var(--primary-green); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.85rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.pl__section--exp .pl__hdr { color: var(--red-deep); }
.pl__section--sum .pl__hdr { color: #8a5a00; }

.pl__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; font-size: 1rem; color: var(--ink); border-bottom: 1px dotted var(--line); }
.pl__row:last-child { border-bottom: none; }
.pl__row span { color: var(--muted); }
.pl__row strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; min-width: 7rem; text-align: right; font-weight: 700; }
.pl__row--sub { border-top: 2px solid var(--line); border-bottom: none; margin-top: 0.4rem; padding-top: 0.75rem; font-weight: 700; }
.pl__row--sub span { color: var(--ink); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pl__row--sub strong { color: var(--primary-green); font-size: 1.4rem; }
.pl__section--exp .pl__row--sub strong { color: var(--red-deep); }

/* P&L summary section — the "what the course actually keeps" breakdown. */
.pl__pl-grid { display: grid; gap: 0.35rem; margin-bottom: 0.8rem; }
.pl__pl-line { display: flex; justify-content: space-between; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px dotted var(--line); font-size: 0.95rem; }
.pl__pl-line span { color: var(--muted); }
.pl__pl-line b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.pl__pl-line--neg b { color: var(--red-deep); }

.pl__row--net { border: 3px solid var(--primary-green); background: #fff; border-radius: 12px; padding: 1rem 1.3rem; margin-top: 0.6rem; font-weight: 800; }
.pl__row--net span { color: var(--ink); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pl__row--net strong { font-size: 1.9rem; }
.pl__row--net strong.is-pos { color: var(--primary-green); }
.pl__row--net strong.is-neg { color: var(--red-deep); }

/* Paid-status banner — flight prize money only becomes real once every
   check-in is marked paid. */
.pl__paid { border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.95rem; line-height: 1.35; }
.pl__paid--wait { background: #fff6d9; border: 1px solid #d19a00; color: #6b4d00; }
.pl__paid--go { background: #e6f2e9; border: 1px solid var(--primary-green); color: #10441a; }
.pl__paid b { color: inherit; }
.pl__row--warn strong { color: #8a5a00; }
.pl__row--projected strong { color: #8a5a00; }
.pl__row--projected span::after { content: " · projected"; color: #8a5a00; font-style: italic; font-size: 0.85em; }
/* Sub-rows on the $ Summary Income / Expense tables — used for the
   per-payment-method breakdown under "Entry fees collected". Indented,
   dimmer, smaller so the parent row still reads as the total. */
.pl__row--sub { padding: 0.35rem 0 0.35rem 1.5rem; font-size: 0.9rem; color: var(--muted); border-bottom: none; }
.pl__row--sub strong { color: var(--muted); font-weight: 600; }

/* Check-to-course + tournament-ledger blocks. Two clean vertically-stacked
   line-item ledgers with a big total at the bottom so the account can cut
   ONE check to the course and verify the tournament balance nets to $0.00. */
.pl__section--course { border-left-color: #2b6fb2; background: #f2f7fc; }
.pl__section--course .pl__hdr { color: #1e4a7a; }
.pl__section--tour { border-left-color: #6a4ab5; background: #f7f4fc; }
.pl__section--tour .pl__hdr { color: #4a3181; }
.pl__note { font-size: 0.86rem; color: var(--muted); font-style: italic; margin: 0.3rem 0 0.7rem; }
.pl__check { display: flex; flex-direction: column; gap: 0.05rem; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.pl__check-line { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.45rem 0.6rem; border-bottom: 1px dotted var(--line); }
.pl__check-line span { color: var(--ink); }
.pl__check-line b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 700; min-width: 7rem; text-align: right; }
.pl__check-line--in b { color: var(--primary-green); }
.pl__check-line--out b { color: var(--red-deep); }
.pl__check-line--sub { border-top: 2px solid var(--line); border-bottom: none; margin-top: 0.35rem; padding-top: 0.6rem; background: rgba(0,0,0,0.03); font-weight: 700; }
.pl__check-line--sub span { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; }
.pl__check-line--sub b { color: var(--ink); }
.pl__check-total { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-top: 0.6rem; padding: 0.9rem 1rem; border: 2.5px solid currentColor; border-radius: 10px; background: #fff; }
.pl__check-total span { color: var(--ink); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pl__check-total strong { font-family: var(--font-display); font-size: 1.75rem; color: var(--ink); }
.pl__check-total strong.is-pos { color: var(--primary-green); }
.pl__check-total strong.is-neg { color: var(--red-deep); }
.pl__check-total strong.is-zero { color: var(--primary-green); }
.pl__proj { color: #8a5a00; font-style: italic; font-size: 0.85em; font-weight: 500; }

/* Payout-tab paid gate — same info as the P&L banner. */
.po-gate { border-radius: 10px; padding: 0.85rem 1.05rem; margin-bottom: 0.85rem; font-size: 0.95rem; line-height: 1.4; }
.po-gate--wait { background: #fff6d9; border: 1.5px solid #d19a00; color: #6b4d00; }
.po-gate--go { background: #e6f2e9; border: 1.5px solid var(--primary-green); color: #10441a; font-weight: 700; }
.po-gate b { color: #7a3f00; }
.po-gate--go b { color: inherit; }
.exp__amt { font-weight: 700; color: var(--red-deep); }
.exp__cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--primary-green); background: var(--light-green); border-radius: 999px; padding: 0.1rem 0.5rem; }
.exp__actions { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.3rem; }

/* Check-number field in the check-in row */
.ci__checkno { width: 5.5rem; padding: 0.45rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* Flights + Leaderboard */
.lb-cut { margin-bottom: 1rem; background: var(--paper-2); border-radius: 10px; padding: 0.6rem 0.9rem; }
.lb-cut summary { cursor: pointer; font-weight: 700; color: var(--primary-green); }

/* Calcutta — top strip + per-flight header + editable row inputs */
.ca-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; background: var(--primary-green); color: #fff; border-radius: 10px; padding: 0.65rem 0.9rem; margin-bottom: 1rem; font-size: 0.92rem; }
.ca-strip__flight { white-space: nowrap; }
.ca-strip__flight b { color: #fff; }
.ca-strip__pay { color: #fff; font-size: 1rem; }
.ca-strip__sep { color: rgba(255,255,255,0.55); }

.ca-flight { margin-bottom: 1.6rem; }
.ca-fl__hdr { background: var(--paper-2); border-radius: 10px 10px 0 0; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-bottom: none; }
.ca-fl__hdr .lb-flight__title { margin: 0 0 0.25rem; }
.ca-fl__totals { font-size: 0.94rem; margin-bottom: 0.25rem; }
.ca-fl__totals b { color: var(--primary-green); }
.ca-fl__pay { font-size: 1.05rem; }
.ca-fl__split { font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: baseline; }
.ca-fl__prize { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; font-weight: 700; color: var(--primary-green); }
.ca-fl__split small { color: var(--muted); }

.ca-tbl { border: 1px solid var(--line); border-radius: 0 0 10px 10px; overflow: hidden; font-size: 0.85rem; }
.ca-tbl th, .ca-tbl td { padding: 0.35rem 0.4rem; }
.ca-tbl__team { font-weight: 700; min-width: 9rem; max-width: 12rem; }
.ca-num { min-width: 3.2rem; text-align: center; }
.ca-hole { min-width: 1.9rem; max-width: 2.2rem; text-align: center; padding: 0.35rem 0.15rem !important; }
.ca-loop { min-width: 2.5rem; text-align: center; font-weight: 700; background: var(--paper-2) !important; }
.ca-d1 { min-width: 2.8rem; text-align: center; font-weight: 800; color: var(--primary-green); background: var(--paper-2) !important; }
.ca-tbl__save { width: 1.6rem; }
.ca-tbl__amt { min-width: 5rem; }
.ca-tbl__buyer { min-width: 8rem; }

/* Sticky # + Team columns — keep who-you-are-editing visible while the table
   scrolls horizontally through the hole columns. */
.ca-tbl thead th.ca-num, .ca-tbl thead th.ca-tbl__team { position: sticky; z-index: 3; background: var(--paper-2); }
.ca-tbl tbody td.ca-num, .ca-tbl tbody td.ca-tbl__team { position: sticky; z-index: 2; background: #fff; }
.ca-tbl tbody tr:nth-child(even) td.ca-num, .ca-tbl tbody tr:nth-child(even) td.ca-tbl__team { background: #fafaf7; }
.ca-tbl thead th.ca-num, .ca-tbl tbody td.ca-num { left: 0; box-shadow: 1px 0 0 var(--line); }
.ca-tbl thead th.ca-tbl__team, .ca-tbl tbody td.ca-tbl__team { left: 3.4rem; box-shadow: 1px 0 0 var(--line); }

/* Auction view — collapse hole / loop / D1 columns so the auctioneer only
   sees # / Team / $ Buy / Buyer. Save cell + delete cell stay visible. */
.ca-viewbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.6rem; }
.ca-auctionpick { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; background: rgba(139, 28, 37, 0.06); border: 1px solid rgba(139, 28, 37, 0.35); border-radius: 8px; font-weight: 700; }
.ca-auctionpick select { font: inherit; font-weight: 700; padding: 0.15rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ca-auctionpick__sub { color: var(--muted); font-weight: 400; font-style: italic; }
.ca-viewtoggle { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; cursor: pointer; user-select: none; }
.ca-viewtoggle small { color: var(--muted); font-weight: 400; }
body.is-auction-view .ca-tbl .ca-hole, body.is-auction-view .ca-tbl .ca-loop, body.is-auction-view .ca-tbl .ca-d1 { display: none !important; }
body.is-auction-view .ca-tbl__team { max-width: 18rem; }
body.is-auction-view .ca-tbl__amt input.ca-amt { width: 6rem; font-size: 1rem; padding: 0.45rem 0.55rem; }
body.is-auction-view .ca-tbl__buyer input.ca-buyer { font-size: 1rem; padding: 0.45rem 0.55rem; }
body.is-auction-view .ca-tbl th, body.is-auction-view .ca-tbl td { padding: 0.5rem 0.55rem; }
.ca-buyer { width: 100%; min-width: 7rem; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.85rem; background: #fff; }
.ca-buyer:focus, .ca-amt:focus { border-color: var(--primary-green); outline: none; }
.ca-amt { width: 4.5rem; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.85rem; text-align: right; background: #fff; }

/* Flight count +/- control (Leaderboard) */
.lb-flcount { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0.4rem; flex-wrap: wrap; }
.lb-flcount__lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--muted); }
.lb-flcount__btn { width: 2rem; height: 2rem; border: 1px solid var(--primary-green); background: #fff; color: var(--primary-green); border-radius: 50%; font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer; line-height: 1; padding: 0; }
.lb-flcount__btn:hover { background: var(--primary-green); color: #fff; }
.lb-flcount__n { min-width: 1.4rem; text-align: center; font-family: var(--font-display); font-size: 1.4rem; color: var(--primary-green); }
.lb-flcount__note { font-size: 0.82rem; color: var(--muted); margin-left: 0.4rem; }
/* Flights-tab live "Flight From" dropdown — mirrors the Format Step 2
   picker so the operator can flip Out / In / Full 18 mid-round without
   leaving the Flights tab. Two-way synced with Airtable; Flights tab
   is the boss on the fly. */
.lb-flfrom { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.6rem; flex-wrap: wrap; }
.lb-flfrom__lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--muted); }
.lb-flfrom select { padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.9rem; background: #fff; }
.lb-flfrom select:focus { border-color: var(--primary-green); outline: none; }
.lb-slider { display: flex; align-items: center; gap: 0.6rem; margin: 0.6rem 0; font-weight: 600; color: var(--ink); flex-wrap: wrap; }
.lb-range { flex: 1 1 200px; accent-color: var(--primary-green); }
.lb-cutval { min-width: 2ch; text-align: right; color: var(--primary-green); }
.lb-range__extent { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0; }
.lb-range__extent b { color: var(--primary-green); }
.lb-flight__count { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 0.5rem; }
.lb-preview-note { background: #fff6d9; border: 1px solid #d19a00; border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.9rem; color: #6b4d00; margin: 0 0 1rem; }
.lb-preview-note b { color: var(--red-deep); }

/* Leaderboard — top summary strip (count + score range per flight) */
.lb-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: center; background: var(--primary-green); color: #fff; border-radius: 10px; padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.95rem; }
.lb-strip__flight { white-space: nowrap; }
.lb-strip__flight b { color: #fff; }
.lb-strip__range { color: rgba(255,255,255,0.85); font-weight: 400; }
.lb-strip__sep { color: rgba(255,255,255,0.5); }

/* Leaderboard — inline cut arrows between flight sections (touch-friendly) */
.lb-inline-cut { display: flex; align-items: center; gap: 0.6rem; background: var(--paper-2); border: 2px dashed var(--primary-green); border-radius: 8px; padding: 0.5rem 0.85rem; margin: 0.35rem 0 0.65rem; }
.lb-inline-cut__lbl { font-size: 0.85rem; font-weight: 700; color: var(--primary-green); }
.lb-inline-cut__val { min-width: 2.5ch; text-align: center; color: var(--primary-green); font-size: 1.15rem; font-family: var(--font-display); }
.lb-inline-cut__arrow { width: 2.2rem; height: 2.2rem; border: 1px solid var(--primary-green); border-radius: 6px; background: #fff; color: var(--primary-green); font-size: 0.9rem; font-weight: 800; cursor: pointer; padding: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.lb-inline-cut__arrow:hover { background: var(--primary-green); color: #fff; }
.lb-inline-cut__arrow:active { transform: translateY(1px); }

/* Leaderboard tab — placement chips live in their own left column so
   team names stay aligned. Flat colors, no gradients, no decorative
   glyphs. One chip stacked per line. */
.lbd-place { width: 7.5rem; min-width: 7.5rem; vertical-align: middle; padding-right: 0.35rem; white-space: nowrap; }
.lbd-flags { display: inline-flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.lbd-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 5.4rem; font-size: 0.7rem; font-weight: 800; padding: 0.16rem 0.55rem; border-radius: 6px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.15; border: 1px solid transparent; }
.lbd-flag--p1 { background: #e5b32f; color: #3a2a00; border-color: #b78100; }
.lbd-flag--p2 { background: #c6cad0; color: #262b32; border-color: #808286; }
.lbd-flag--p3 { background: #c47a3a; color: #2a1300; border-color: #7a4413; }
.lbd-flag--calc { background: #1e4c2b; color: #f2efd8; border-color: #143620; }
.lbd-flag--playoff { background: #1a3a55; color: #fff; border-color: #10263a; }
.lbd-name { min-width: 12rem; }
/* Remaining-extras strip on the admin leaderboard. Small brass-tinted
   chip per trackable extra with remaining > 0. One-letter name + N
   stars so a mixed strip (mulligans + skins) stays legible at row
   scale. Hidden entirely for teams with nothing outstanding. */
.lbd-ex-wrap { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: 0.35rem; vertical-align: middle; }
.lbd-ex { display: inline-flex; align-items: center; gap: 0.1rem; padding: 0.05rem 0.35rem; border: 1px solid #b8860b; border-radius: 6px; color: #6b4d00; background: #fff7d6; font: 700 0.65rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.lbd-ex b { font-weight: 800; margin-right: 0.15rem; }
.lbd-ex__stars { font-size: 0.75rem; letter-spacing: 0.05em; line-height: 1; color: #b8860b; }

/* Payout tab */
.po-summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; background: var(--paper-2); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.po-summary > div { display: flex; flex-direction: column; }
.po-summary span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 800; }
.po-summary b { font-size: 1.1rem; color: var(--primary-green); font-family: var(--font-display); }
.po-hdr { color: var(--primary-green); font-family: var(--font-display); font-size: 1.1rem; margin: 1.2rem 0 0.5rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--primary-green); }
.po-tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.po-tbl th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary-green); padding: 0.5rem 0.7rem; border-bottom: 2px solid var(--line); }
.po-tbl td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.po-tbl tbody tr:nth-child(odd) { background: var(--paper-2); }
.po-tbl__amt { text-align: right; white-space: nowrap; color: var(--primary-green); font-size: 1rem; }
.po-tbl__total { background: var(--light-green) !important; font-weight: 800; }
.po-tbl__total td { padding: 0.6rem 0.7rem; border-top: 2px solid var(--primary-green); }
.po-tbl__total td:last-child { text-align: right; color: var(--primary-green); font-size: 1.1rem; }
.po-grand { background: var(--primary-green); color: #fff; border-radius: 10px; padding: 0.8rem 1rem; margin-top: 1rem; font-size: 1.05rem; text-align: right; }
.po-grand b { font-size: 1.4rem; font-family: var(--font-display); }

/* Recap admin tab -- textarea for freeform notes + side brief that tells
   the operator what shape to paste in from projects/talk-to-text. */
.recap-wrap { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 0.5rem; }
@media (min-width: 960px) { .recap-wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.recap__col { display: flex; flex-direction: column; gap: 0.35rem; }
.recap__lbl { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
#recapText { width: 100%; min-height: 22rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-family: "Source Code Pro", ui-monospace, monospace; font-size: 0.95rem; line-height: 1.55; background: #fff; resize: vertical; }
#recapText:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(30,80,40,0.15); }
.recap__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.recap__status { color: var(--primary-green); font-weight: 600; }
.recap__chars b { color: var(--ink); font-weight: 700; }
.recap__brief { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.85rem; }
.recap__brief h4 { margin: 0 0 0.4rem; color: var(--primary-green); font-family: var(--font-display); }
.recap__brief p { margin: 0 0 0.6rem; color: var(--muted); }
.recap__brief-code { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.75rem; font-family: "Source Code Pro", ui-monospace, monospace; font-size: 0.78rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 22rem; margin: 0 0 0.5rem; }
.recap__copybrief { width: 100%; }

/* Schedule row links -- chip row that pops up under the "Completed" tag on
   past tournaments (and above the sign-up button on live ones) so folks
   can jump straight to Rules / Flights / Calcutta / Results / Recap. */
.schedule__links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.schedule__link { display: inline-flex; align-items: center; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(30,80,40,0.08); color: var(--primary-green); font-size: 0.8rem; font-weight: 700; text-decoration: none; border: 1px solid rgba(30,80,40,0.2); }
.schedule__card { margin-top: 0.6rem; align-self: flex-start; }
.schedule__link:hover, .schedule__link:focus-visible { background: var(--primary-green); color: #fff; outline: none; }
.schedule li.is-past .schedule__link { background: rgba(30,80,40,0.05); }

/* Payout summary cards -- one per pay category. Sits at the bottom of the
   Payout tab so the operator can see per-place amounts at a glance. */
.po-cards { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .po-cards { grid-template-columns: 1fr 1fr; } }
.po-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary-green); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; }
.po-card--cal { border-left-color: #6a4ab5; }
.po-card__hdr { color: var(--primary-green); font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.35rem; }
.po-card--cal .po-card__hdr { color: #4a3181; }
.po-card__sub { font-size: 0.86rem; color: var(--muted); margin: 0 0 0.7rem; }
.po-card__grid { display: grid; grid-template-columns: auto auto 1fr 1fr; gap: 0.35rem 0.9rem; align-items: baseline; }
.po-card__hd { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.po-card__hd--num { text-align: right; }
.po-card__hd small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.po-card__lbl { font-weight: 700; color: var(--ink); }
.po-card__pct { color: var(--muted); font-size: 0.9rem; }
.po-card__amt { text-align: right; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.po-card__amt--tot { color: var(--primary-green); font-weight: 800; font-size: 1.1rem; }
.po-card__total { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-top: 0.9rem; padding: 0.7rem 0.9rem; border: 2px solid var(--primary-green); border-radius: 10px; background: rgba(30, 80, 40, 0.05); }
.po-card__total span { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; color: var(--ink); }
.po-card__total b { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary-green); }

/* Calcutta payout table -- one row per flight with pool / commission /
   per-place cut. Horizontally scrollable on narrow screens. */
.po-cal-tbl-wrap { overflow-x: auto; }
.po-cal-tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.po-cal-tbl th, .po-cal-tbl td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.po-cal-tbl th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #4a3181; text-align: left; }
.po-cal-tbl th small { display: block; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.po-cal-tbl__num { text-align: right; white-space: nowrap; }
.po-cal-tbl__neg { color: var(--red-deep); }
.po-cal-tbl tbody tr:nth-child(odd) { background: rgba(106, 74, 181, 0.05); }
.po-cal-tbl__total td { border-top: 2px solid #6a4ab5; background: rgba(106, 74, 181, 0.12) !important; }
.po-warn { color: var(--red-deep); font-size: 0.72rem; font-weight: 700; margin-left: 0.3rem; }
.po-tbl__chkH { width: 7rem; text-align: right; }
.po-tbl__chk { text-align: right; }
.po-check { width: 6.5rem; padding: 0.3rem 0.4rem; border: 1px dashed var(--line); border-radius: 4px; font: inherit; font-size: 0.9rem; background: #fff; text-align: right; }
.po-check:focus { border-color: var(--primary-green); border-style: solid; outline: none; }
/* Per-row Payout amount override: inline input with a "$" prefix and
   an optional "was $NN.NN" hint when the override differs from the
   computed value. Green border when overridden so the operator can
   scan a printed sheet and see which rows they touched. */
.po-amt { display: inline-flex; align-items: baseline; gap: 0.25rem; justify-content: flex-end; }
.po-amt__prefix { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.po-amt__input { width: 5rem; padding: 0.3rem 0.4rem; border: 1px dashed var(--line); border-radius: 4px; font: inherit; font-size: 0.95rem; font-weight: 700; background: #fff; text-align: right; color: var(--primary-green); -moz-appearance: textfield; }
.po-amt__input::-webkit-outer-spin-button, .po-amt__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.po-amt__input:focus { border-color: var(--primary-green); border-style: solid; outline: none; }
.po-amt__input.is-override { border-color: var(--primary-green); border-style: solid; background: #f4faf5; }
.po-amt__input::placeholder { color: #bbb; font-weight: 500; }
.po-amt__note { color: var(--muted); font-size: 0.72rem; font-weight: 500; white-space: nowrap; text-decoration: line-through; }

/* Per-row × delete buttons (Scores + Calcutta) */
.sc-clear, .ca-clear { border: 1px solid var(--line); background: #fff; color: var(--red-deep); border-radius: 6px; width: 1.7rem; height: 1.7rem; padding: 0; line-height: 1; font-size: 0.9rem; cursor: pointer; }
.sc-clear:hover, .ca-clear:hover { background: var(--red); color: #fff; border-color: var(--red); }
.sc-tbl__x { width: 2rem; text-align: center; }
.ca-tbl__x { width: 2rem; text-align: center; }

/* Delete-all buttons on Scores + Calcutta */
.sc-toolbar__dangerBtn { color: var(--red-deep); border-color: var(--red); background: #fff; }
.sc-toolbar__dangerBtn:hover { background: var(--red); color: #fff; }
.ca-sumcheck { display: flex; justify-content: flex-end; align-items: baseline; gap: 0.5rem; margin-top: 1rem; padding: 0.6rem 0.9rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; }
.ca-sumcheck b { font-family: var(--font-display); color: var(--primary-green); font-size: 1.25rem; letter-spacing: 0.01em; }
.ca-footer { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.ca-clear-all { color: var(--red-deep); border-color: var(--red); background: #fff; }
.ca-clear-all:hover { background: var(--red); color: #fff; }

/* Destructive confirm modal (reuses pm-modal skeleton) */
.cd-panel { max-width: 480px; }

/* Pairings import modal — big two-column: paste on the left, preview on the right. */
.pi-panel { max-width: min(72rem, 96vw); width: 96vw; }
.pi__intro { margin: 0 0 0.75rem; color: var(--muted); }
.pi__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; align-items: stretch; }
@media (max-width: 900px) { .pi__grid { grid-template-columns: 1fr; } }
.pi__col { display: flex; flex-direction: column; min-width: 0; }
.pi__lbl { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0 0 0.35rem; letter-spacing: 0.01em; }
.pi__col textarea { flex: 1; font: 0.85rem/1.45 ui-monospace, "SFMono-Regular", Menlo, monospace; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; resize: vertical; background: #fff; min-height: 22rem; }
.pi__preview { flex: 1; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem; min-height: 22rem; overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; }
.pi__hint { color: var(--muted); font-style: italic; margin: 0.4rem 0.2rem; }
.pi__error { background: rgba(139, 28, 37, 0.08); color: #7d1218; padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.9rem; margin: 0; }

/* Calcutta bulk-import preview list. Reused by other paste-preview flows. */
.pi__prevhd { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
.pi__prevlist { display: flex; flex-direction: column; gap: 0.25rem; max-height: 60vh; overflow-y: auto; }
.pi__prevrow { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 0.85rem; }
.pi__prevrow--err { background: rgba(230, 67, 57, 0.06); border-color: rgba(230, 67, 57, 0.35); }
.pi__prevraw { color: var(--muted); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi__prevright { color: var(--ink); text-align: right; }
.pi__err { color: var(--red-deep); font-weight: 600; }
.pi__status { font-size: 0.85rem; color: var(--muted); margin-left: 0.6rem; align-self: center; }

/* Check-In bulk "Mark all paid" modal. */
.cbp-row { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.6rem; }
.cbp-lbl { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.cbp-in { padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; min-width: 8rem; }
.cbp-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ink); }
.pi__summary { display: flex; gap: 0.4rem; }
.pi__preview-scroll { flex: 1; overflow: auto; }
.pi__table { width: 100%; border-collapse: collapse; font-size: 0.87rem; background: #fff; }
.pi__table th, .pi__table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; }
.pi__table th { background: var(--paper); font-family: var(--font-display); font-weight: 700; color: var(--brand); position: sticky; top: 0; }
.pi-row--unmatched td { background: rgba(230, 67, 57, 0.06); }
.pi-row--weak td { background: rgba(245, 197, 66, 0.10); }
.pi-badge { display: inline-block; padding: 0.05em 0.55em; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pi-badge--ok { background: #1B5E20; color: #fff; }
.pi-badge--weak { background: #b48000; color: #fff; }
.pi-badge--miss { background: #b11e2d; color: #fff; }
.cd-body { font-size: 0.98rem; color: var(--ink); margin: 0; }
.cd-body + .cd-body { margin-top: 0.7rem; }
/* Recap-saved info modal -- reuses the cd-panel styling with an
   informational tone. Slightly wider so the "live momentarily" note
   fits without breaking oddly. */
.rs-panel { max-width: 520px; }
.rs-note { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.rs-note code { background: var(--paper-2); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.9em; }
.rs-warn { font-size: 0.9rem; color: #8a5a00; background: rgba(180, 128, 0, 0.08); border: 1px solid rgba(180, 128, 0, 0.35); border-radius: 8px; padding: 0.55rem 0.75rem; }
.cd-confirm { background: var(--red); color: #fff; border: 1px solid var(--red); }
.cd-confirm:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* Shared "Filter teams by name…" toolbar (Check-In, Pairings, Flights, Calcutta, Leaderboard) */
.tab-toolbar { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 0.7rem 0; }
.tab-filter { flex: 1; max-width: 24rem; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.92rem; background: #fff; }
.tab-filter:focus { border-color: var(--primary-green); outline: none; }
.tab-toolbar__count { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tab-toolbar--cs { margin-top: 0.4rem; }
/* Segmented toggle — All / Unpaid / Paid on the Calcutta Buyers tab. */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 2px; gap: 2px; }
.seg__btn { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer; letter-spacing: 0.01em; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: var(--primary-green); color: #fff; }
.seg__btn:focus-visible { outline: 2px solid var(--primary-green); outline-offset: 2px; }
.lb-sizes { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.lb-flight { margin-bottom: 1.6rem; }
.lb-flight__title { color: var(--primary-green); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.lb-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-green); padding: 0.5rem 0.7rem; border-bottom: 2px solid var(--line); }
.lb-table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); }
.lb-table th:not(:first-child), .lb-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.lb-table tbody tr:nth-child(odd) { background: var(--paper-2); }
.lb-place { display: inline-block; background: var(--primary-green); color: #fff; font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 0.05rem 0.45rem; }
.lb-cal { display: inline-block; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 0.05rem 0.45rem; }

/* ===================== Tournament workspace: Excel-workbook feel ===================== */
.wb-tabs { display: flex; gap: 3px; overflow-x: auto; border-bottom: 2px solid var(--primary-green); margin-bottom: 1.1rem; position: sticky; top: var(--nav-height); background: var(--paper); z-index: 6; padding-top: 0.35rem; -webkit-overflow-scrolling: touch; }
.wb-tab { flex: 0 0 auto; border: 1px solid var(--line); border-bottom: none; background: var(--paper-2); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; padding: 0.55rem 1.05rem; border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; }
.wb-tab:hover { color: var(--primary-green); background: #fff; }
.wb-tab.is-active { background: #fff; color: var(--primary-green); border-color: var(--primary-green); box-shadow: inset 0 3px 0 var(--primary-green); margin-bottom: -2px; padding-bottom: calc(0.55rem + 2px); }
.wb-tabs__spacer { flex: 1 1 auto; min-width: 0.6rem; }
.wb-tab--disp { background: #111; color: #fff; border-color: #000; }
.wb-tab--disp:hover { background: #000; color: #fff; }
.wb-tab--disp.is-active { background: #000; color: #fff; border-color: #000; box-shadow: inset 0 3px 0 #fff; }
.wb-tab--history { background: #f0e6c4; color: #6b4d00; border-color: #b48000; }
.wb-tab--history:hover { background: #e8dcb0; color: #6b4d00; }
.wb-tab--history.is-active { background: #fff8e1; color: #6b4d00; border-color: #b48000; box-shadow: inset 0 3px 0 #b48000; }

/* Commit-to-history block on $ Summary */
.pl-commit { margin-top: 1.2rem; padding: 1rem 1.2rem; background: #fff; border: 2px dashed var(--red); border-radius: 12px; text-align: center; }
.pl-commit .btn { background: var(--red); color: #fff; border: none; font-size: 1.05rem; padding: 0.7rem 1.6rem; border-radius: 999px; font-weight: 800; cursor: pointer; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgba(177,30,45,0.25); }
.pl-commit .btn:hover { background: var(--red-deep); }
.pl-commit__hint { color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 0; }
.pl-commit__hint--muted { font-size: 0.78rem; margin-top: 0.35rem; opacity: 0.75; }
.pl-commit__hint code { background: var(--paper-2); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.95em; }

/* Rules tab (admin preview — public source of truth is founders-rules.html) */
.rules-preview { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; line-height: 1.55; }
.rules-preview h4 { font-family: var(--font-display); margin: 0.6rem 0 0.35rem; color: var(--brand); font-size: 1.05rem; letter-spacing: 0.005em; }
.rules-preview h4:first-child { margin-top: 0; }
.rules-preview ul { margin: 0 0 0.5rem 1.1rem; padding: 0; }
.rules-preview li { margin: 0.15rem 0; color: var(--ink); }
.rules-preview li b { color: #7d1218; }

/* History tab */
.hist { display: flex; flex-direction: column; gap: 0.5rem; }
.hist__row { background: #fff; border: 1px solid var(--line); border-left: 5px solid #b48000; border-radius: 10px; padding: 0; overflow: hidden; }
.hist__row[open] { box-shadow: var(--shadow-sm); }
.hist__sum { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.8rem 1rem; padding: 0.75rem 1rem; cursor: pointer; align-items: baseline; list-style: none; }
.hist__sum::-webkit-details-marker { display: none; }
.hist__sum::before { content: "▸"; color: #b48000; font-size: 0.85rem; }
.hist__row[open] .hist__sum::before { content: "▾"; }
.hist__year { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #6b4d00; }
.hist__name { font-weight: 700; color: var(--ink); }
.hist__meta { color: var(--muted); font-size: 0.9rem; }
.hist__meta b { color: var(--primary-green); }
.hist__champ { color: var(--ink); font-size: 0.9rem; }
.hist__champ b { color: var(--primary-green); }
.hist__body { padding: 0.75rem 1rem 1rem; border-top: 1px dashed var(--line); background: var(--paper-2); }
.hist__meta2 { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.hist__sub { color: var(--primary-green); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.8rem 0 0.4rem; }
.hist__tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; }
.hist__tbl th, .hist__tbl td { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--line); }
.hist__tbl th { text-align: left; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--paper-2); }
.hist__tbl th:not(:first-child), .hist__tbl td:not(:first-child) { text-align: center; }
@media (max-width: 720px) {
  .hist__sum { grid-template-columns: 1fr 1fr; }
  .hist__meta, .hist__champ { grid-column: 1 / -1; }
}

/* Current-year Founders card on history.html?name=Founder. Shown above the
   archive so the page doubles as the Founders' entry point until the 2026
   snapshot is committed. */
.hist__current { background: linear-gradient(180deg, #fbf6e6 0%, #f5eccf 100%); border: 1px solid var(--brass, #c9a24d); border-left: 5px solid var(--primary-green); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; box-shadow: 0 6px 20px rgba(31, 21, 5, 0.06); }
.hist__current-hd { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.hist__current-name { font-family: var(--font-display); font-weight: 700; color: var(--primary-green); font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 0; }
.hist__current-meta { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0 0; }
.hist__current-lede { color: var(--ink); font-size: 1rem; line-height: 1.55; margin: 0.4rem 0 0.85rem; }
.hist__current-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hist__current-link { display: inline-flex; align-items: center; padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(30,80,40,0.08); color: var(--primary-green); font-weight: 700; text-decoration: none; font-size: 0.9rem; border: 1px solid rgba(30,80,40,0.2); }
.hist__current-link:hover, .hist__current-link:focus-visible { background: var(--primary-green); color: #fff; outline: none; }
.hist__current-link--primary { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.hist__current-link--primary:hover, .hist__current-link--primary:focus-visible { background: #0e4517; }

/* Public-display tab body (Calcutta Disp / Leaderboard Disp workbooks). */
.disp-tab { display: flex; flex-direction: column; gap: 0.75rem; }
.disp-warn { background: #fff8e5; border: 2px solid #d9a422; border-radius: 10px; padding: 1rem 1.15rem; margin: 0.75rem 0 1rem; }
.disp-warn__title { font-size: 1.05rem; font-weight: 800; color: #7a5a06; letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.disp-warn p { margin: 0.35rem 0; font-size: 0.92rem; line-height: 1.5; color: #4a3806; }
.disp-warn__lede { font-weight: 600; }
.disp-warn__how b { color: #1a1a1a; }
.disp-warn a { color: #6a4a06; font-weight: 700; text-decoration: underline; }
.disp-warn a:hover { color: #000; }
.disp-warn kbd { display: inline-block; padding: 0.05rem 0.4rem; border: 1px solid #d9a422; border-radius: 4px; background: #fff; color: #1a1a1a; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.82rem; font-weight: 700; line-height: 1.2; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.disp-tab__row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.disp-tab__url { flex: 1; min-width: 14rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--paper-2); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.disp-tab__hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.disp-tab__copied { color: var(--primary-green); font-weight: 700; font-size: 0.9rem; }
.disp-tab__preview { width: 100%; height: 60vh; min-height: 24rem; border: 1px solid var(--line); border-radius: 10px; background: #0b1a10; }

/* QR block in the Calcutta / Leaderboard Display workbook tabs. */
.disp-tab__qr { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.2rem; margin-top: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.disp-tab__qr-img { width: 240px; height: 240px; max-width: 60vw; object-fit: contain; border-radius: 8px; background: #fff; flex: 0 0 auto; }
.disp-tab__qr-lbl { margin: 0; text-align: left; font-size: 1rem; color: var(--ink); max-width: 22rem; display: flex; flex-direction: column; gap: 0.5rem; }
.disp-tab__qr-lbl b { font-family: var(--font-display); font-weight: 800; color: var(--primary-green); font-size: 1.35rem; }
.disp-tab__qr-lbl small { color: var(--muted); font-size: 0.88rem; }
.disp-tab__qr-url { display: block; padding: 0.55rem 0.75rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; color: var(--primary-green); font-weight: 700; word-break: break-all; user-select: all; }
@media (max-width: 560px) { .disp-tab__qr { flex-direction: column; text-align: center; } .disp-tab__qr-lbl { text-align: center; align-items: stretch; } }
.wb-sheet.noms { border: 1px solid var(--line); background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.wb-sheet .noms__bar { border-bottom: 2px solid var(--primary-green); margin-bottom: 0.9rem; padding-bottom: 0.5rem; }
/* Gridlines + tabular numerals across workspace tables (spreadsheet feel) */
.wb-sheet, .wb-sheet input, .wb-sheet select { font-variant-numeric: tabular-nums; }
.wb-sheet .lb-table th, .wb-sheet .lb-table td { border: 1px solid var(--line); }
.wb-sheet .sc__grid .sc__cell, .wb-sheet .calc__grp { background: #fff; }

/* Pairings tee sheet — per-wave config + tees with A/B slots + drag-drop */
.pr-wave-block { margin-bottom: 2rem; }
.pr-wave-block__title { color: var(--primary-green); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.6rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--primary-green); }
.pr-wave-block__title span { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* Config row: TEES PER HOLE buttons + summary + autofill */
.pr-cfg { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; background: var(--paper-2); border-radius: 10px; padding: 0.7rem 0.9rem; margin-bottom: 0.9rem; }
.pr-cfg__lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--muted); }
.pr-hbs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.pr-hb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 2.6rem; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 0.78rem; cursor: pointer; line-height: 1.1; }
.pr-hb:hover { border-color: var(--primary-green); }
.pr-hb__n { font-weight: 800; font-size: 0.95rem; }
.pr-hb__s { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.pr-hb--a { background: var(--light-green); border-color: var(--primary-green); }
.pr-hb--a .pr-hb__s { color: var(--primary-green); }
.pr-hb--ab { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-cfg__sum { font-size: 0.9rem; color: var(--ink); margin-left: auto; }
.pr-cfg__sum strong { color: var(--primary-green); }
.pr-cfg__ok { color: var(--primary-green); font-weight: 700; }
.pr-cfg__short { color: var(--red-deep); font-weight: 700; }
.pr-autofill { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.pr-autofill:disabled { opacity: 0.5; cursor: not-allowed; }

/* Unplaced pool */
.pr-pool { border: 1px dashed var(--red); background: rgba(177,30,45,0.05); border-radius: 10px; padding: 0.6rem 0.8rem; margin-bottom: 0.9rem; }
.pr-pool.is-drop { background: rgba(177,30,45,0.15); }
.pr-pool__hd { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--red-deep); margin-bottom: 0.35rem; }
.pr-pool__hd span { color: var(--muted); font-weight: 400; }
.pr-pool__list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pr-pool .pr-team { flex: 0 1 auto; }

/* Tee sheet — Bulldog-style rows: dark left column with Hole/Tee/Thru + team cards on the right */
.pr-teegrid { display: flex; flex-direction: column; gap: 0.55rem; }
.pr-tee { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.pr-tee.is-drop { box-shadow: 0 0 0 3px var(--primary-green); }
.pr-tee__side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.7rem 0.8rem; min-width: 5.5rem; background: #1e2530; color: #fff; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* Tee A stays dark navy; Tee B gets the brand red so the two flip-flopped tees
   at the same hole read as clearly different at a glance. */
.pr-tee[data-slot="B"] .pr-tee__side { background: #b11e2d; }
.pr-tee__side-hole { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.65; font-weight: 700; }
.pr-tee__side-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; margin: 0.1rem 0; }
.pr-tee__side-slot { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.pr-tee__side-thru { font-size: 0.65rem; margin-top: 0.35rem; opacity: 0.65; letter-spacing: 0.05em; text-transform: uppercase; }
.pr-tee__cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.55rem 0.7rem; align-items: stretch; }
.pr-tee__cards--trio { grid-template-columns: 1fr 1fr 1fr; }

/* Team card — Bulldog-style (Team # header + player list). Draggable. */
.pr-team { display: flex; flex-direction: column; padding: 0.5rem 0.6rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); cursor: grab; user-select: none; text-align: left; }
.pr-team:hover { border-color: var(--primary-green); }
.pr-team.is-drag { opacity: 0.35; cursor: grabbing; }
.pr-team.is-drop-seat { box-shadow: 0 0 0 3px var(--brass, #a37b3d), 0 2px 6px rgba(0,0,0,0.08); border-color: var(--brass, #a37b3d); background: #fffdf4; }
.pr-team__hd { border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; padding-bottom: 0.25rem; display: flex; align-items: baseline; gap: 0.5rem; }
.pr-team__num { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--ink); }
/* Day 1 gross chip — only rendered in Day 2 view, sits to the right of
   the Team ## badge so the operator can compare scores at a glance
   while dragging teams around. */
.pr-team__d1 { margin-left: auto; font: 700 0.72rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--panel-bg, #f4f0e5); border: 1px solid var(--line); white-space: nowrap; }
.pr-team__d1 b { font-size: 0.95rem; color: var(--primary-green); margin-left: 0.15rem; letter-spacing: -0.01em; }
.pr-team__d1--pending b { color: var(--muted); }
.pr-team__players { display: flex; flex-direction: column; gap: 0.05rem; font-size: 0.9rem; }
.pr-team__player { color: var(--ink); font-weight: 600; }
.pr-team--empty { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-style: italic; font-size: 0.82rem; font-weight: 400; text-align: center; display: flex; align-items: center; justify-content: center; padding: 1rem 0.5rem; cursor: default; }
.pr-team--empty:hover { border-color: var(--line); }
@media (max-width: 640px) { .pr-tee__cards { grid-template-columns: 1fr; } }

/* Team-number badge used on Calcutta / Leaderboard / Flights / Payout rows */
.lb-tnum { display: inline-block; background: #1e2530; color: #fff; font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; padding: 0.12rem 0.4rem; border-radius: 4px; letter-spacing: 0.03em; margin-right: 0.35rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Per-team move-to dropdown — hidden on print, visible on screen. */
.pr-team__move { width: 100%; margin-top: 0.35rem; padding: 0.25rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.75rem; background: #fff; color: var(--ink); cursor: pointer; }
.pr-team__move:hover, .pr-team__move:focus { border-color: var(--primary-green); outline: none; }
.pr-team--empty .pr-team__move { display: none; }

/* Nine distinct hole colors so 9 groups of tees read as 9 groups, not one wall.
   Tee cards inherit the color on border + header bar. Hole buttons up top
   pick up the color when active (A or A+B). */
.pr-tee--h1 { border-color: #2b7a3d; }
.pr-tee--h1 .pr-tee__hd { background: #2b7a3d; }
.pr-tee--h2 { border-color: #1e5aa0; }
.pr-tee--h2 .pr-tee__hd { background: #1e5aa0; }
.pr-tee--h3 { border-color: #b11e2d; }
.pr-tee--h3 .pr-tee__hd { background: #b11e2d; }
.pr-tee--h4 { border-color: #6b3aa0; }
.pr-tee--h4 .pr-tee__hd { background: #6b3aa0; }
.pr-tee--h5 { border-color: #c1610f; }
.pr-tee--h5 .pr-tee__hd { background: #c1610f; }
.pr-tee--h6 { border-color: #0d7a7a; }
.pr-tee--h6 .pr-tee__hd { background: #0d7a7a; }
.pr-tee--h7 { border-color: #7a4d1e; }
.pr-tee--h7 .pr-tee__hd { background: #7a4d1e; }
.pr-tee--h8 { border-color: #8a7f10; }
.pr-tee--h8 .pr-tee__hd { background: #8a7f10; }
.pr-tee--h9 { border-color: #3d4a5a; }
.pr-tee--h9 .pr-tee__hd { background: #3d4a5a; }

/* Tinted amp between the two teams — matches the hole color. */
.pr-tee--h1 .pr-tee__amp { color: #2b7a3d; }
.pr-tee--h2 .pr-tee__amp { color: #1e5aa0; }
.pr-tee--h3 .pr-tee__amp { color: #b11e2d; }
.pr-tee--h4 .pr-tee__amp { color: #6b3aa0; }
.pr-tee--h5 .pr-tee__amp { color: #c1610f; }
.pr-tee--h6 .pr-tee__amp { color: #7a4d1e; }
.pr-tee--h7 .pr-tee__amp { color: #7a4d1e; }
.pr-tee--h8 .pr-tee__amp { color: #8a7f10; }
.pr-tee--h9 .pr-tee__amp { color: #3d4a5a; }

/* Hole buttons up top — same color palette when the hole is on (A or A+B). */
.pr-hb--h1.pr-hb--a { background: #d9f0de; border-color: #2b7a3d; }
.pr-hb--h1.pr-hb--a .pr-hb__s { color: #2b7a3d; }
.pr-hb--h1.pr-hb--ab { background: #2b7a3d; border-color: #2b7a3d; color: #fff; }
.pr-hb--h1.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h2.pr-hb--a { background: #dbe6f4; border-color: #1e5aa0; }
.pr-hb--h2.pr-hb--a .pr-hb__s { color: #1e5aa0; }
.pr-hb--h2.pr-hb--ab { background: #1e5aa0; border-color: #1e5aa0; color: #fff; }
.pr-hb--h2.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h3.pr-hb--a { background: #f4dcdf; border-color: #b11e2d; }
.pr-hb--h3.pr-hb--a .pr-hb__s { color: #b11e2d; }
.pr-hb--h3.pr-hb--ab { background: #b11e2d; border-color: #b11e2d; color: #fff; }
.pr-hb--h3.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h4.pr-hb--a { background: #e5dbf1; border-color: #6b3aa0; }
.pr-hb--h4.pr-hb--a .pr-hb__s { color: #6b3aa0; }
.pr-hb--h4.pr-hb--ab { background: #6b3aa0; border-color: #6b3aa0; color: #fff; }
.pr-hb--h4.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h5.pr-hb--a { background: #f4e2cf; border-color: #c1610f; }
.pr-hb--h5.pr-hb--a .pr-hb__s { color: #c1610f; }
.pr-hb--h5.pr-hb--ab { background: #c1610f; border-color: #c1610f; color: #fff; }
.pr-hb--h5.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h6.pr-hb--a { background: #cfe6e6; border-color: #0d7a7a; }
.pr-hb--h6.pr-hb--a .pr-hb__s { color: #0d7a7a; }
.pr-hb--h6.pr-hb--ab { background: #0d7a7a; border-color: #0d7a7a; color: #fff; }
.pr-hb--h6.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h7.pr-hb--a { background: #e6dccf; border-color: #7a4d1e; }
.pr-hb--h7.pr-hb--a .pr-hb__s { color: #7a4d1e; }
.pr-hb--h7.pr-hb--ab { background: #7a4d1e; border-color: #7a4d1e; color: #fff; }
.pr-hb--h7.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h8.pr-hb--a { background: #eeeacf; border-color: #8a7f10; }
.pr-hb--h8.pr-hb--a .pr-hb__s { color: #8a7f10; }
.pr-hb--h8.pr-hb--ab { background: #8a7f10; border-color: #8a7f10; color: #fff; }
.pr-hb--h8.pr-hb--ab .pr-hb__s { color: #fff; }
.pr-hb--h9.pr-hb--a { background: #dde1e6; border-color: #3d4a5a; }
.pr-hb--h9.pr-hb--a .pr-hb__s { color: #3d4a5a; }
.pr-hb--h9.pr-hb--ab { background: #3d4a5a; border-color: #3d4a5a; color: #fff; }
.pr-hb--h9.pr-hb--ab .pr-hb__s { color: #fff; }

/* Toolbar for the Pairings header (Print controls + Refresh) */
.noms__bar-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pr-day-tabs { display: flex; gap: 0.3rem; margin: 0.2rem 0.5rem 0.2rem 0; }
.pr-day-tab { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.pr-print-which { padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.88rem; background: #fff; }

/* Print styles — triggered by JS toggling body.is-print-both / am / pm.
   Everything outside the tee sheet is hidden. Big fonts, clean borders,
   forced page break between waves for front/back duplex printing. */
@media print {
  body.is-print-both, body.is-print-am, body.is-print-pm { background: #fff !important; }
  /* Hide site chrome + every workbook tab except Pairings + all Pairings toolbars. */
  body[class*="is-print-"] .nav,
  body[class*="is-print-"] .hero,
  body[class*="is-print-"] .site-footer,
  body[class*="is-print-"] .wb-tabs,
  body[class*="is-print-"] .noms__bar,
  body[class*="is-print-"] .checkin-add__row,
  body[class*="is-print-"] .scaffold__desc,
  body[class*="is-print-"] .pr-cfg,
  body[class*="is-print-"] .pr-pool,
  body[class*="is-print-"] .pm-modal,
  body[class*="is-print-"] .wb-sheet:not([data-sheet="pairings"]) { display: none !important; }
  body[class*="is-print-"] .wb-sheet[data-sheet="pairings"] { display: block !important; visibility: visible !important; }
  body[class*="is-print-"] .section, body[class*="is-print-"] .container.admin { padding: 0 !important; margin: 0 !important; background: #fff !important; }
  body[class*="is-print-"] #prBoard { padding: 0; margin: 0; }

  /* Hide the opposite wave when printing a single wave. */
  body.is-print-am .pr-wave-block[data-wave="1 PM"] { display: none !important; }
  body.is-print-pm .pr-wave-block[data-wave="8 AM"] { display: none !important; }

  /* Both-waves layout: AM on page 1, PM on page 2 (front/back if duplex). */
  body.is-print-both .pr-wave-block[data-wave="8 AM"] { page-break-after: always; }

  /* Big, legible print typography. */
  body[class*="is-print-"] .pr-wave-block { margin: 0 0 0.5rem 0; }
  body[class*="is-print-"] .pr-wave-block__title { font-size: 22pt; font-weight: 800; text-align: center; border-bottom: 3pt solid #000; padding-bottom: 6pt; margin-bottom: 10pt; color: #000; }
  body[class*="is-print-"] .pr-wave-block__title span { font-size: 14pt; color: #333; }
  body[class*="is-print-"] .pr-teegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8pt; }
  body[class*="is-print-"] .pr-tee { display: grid; grid-template-columns: auto 1fr; border-width: 1.5pt !important; border-style: solid !important; border-radius: 4pt !important; overflow: hidden; page-break-inside: avoid; background: #fff !important; box-shadow: none !important; }
  /* Bulldog-style dark left column: HOLE / N / SLOT. */
  body[class*="is-print-"] .pr-tee__side { color: #fff !important; padding: 6pt 8pt !important; min-width: 44pt; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  body[class*="is-print-"] .pr-tee__side-hole { font-size: 7pt; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; font-weight: 700; }
  body[class*="is-print-"] .pr-tee__side-num { font-family: "Fraunces", Georgia, serif; font-size: 22pt; font-weight: 800; line-height: 1; margin: 1pt 0; }
  body[class*="is-print-"] .pr-tee__side-slot { font-size: 8pt; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  body[class*="is-print-"] .pr-tee__side-thru { display: none !important; }
  /* Right side: two Team NN cards. */
  body[class*="is-print-"] .pr-tee__cards { display: grid; grid-template-columns: 1fr 1fr; padding: 5pt 6pt; gap: 4pt; }
  body[class*="is-print-"] .pr-team { padding: 3pt 5pt; background: #fff !important; border: 0.75pt solid #666 !important; border-radius: 3pt !important; font-size: 10pt; font-weight: 700; text-align: center; color: #000 !important; }
  body[class*="is-print-"] .pr-team__num { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 9pt; color: #1B5E20; }
  body[class*="is-print-"] .pr-team__hd { padding: 0; }
  body[class*="is-print-"] .pr-team__players { display: block; }
  body[class*="is-print-"] .pr-team__player { display: block; font-size: 9pt; }
  body[class*="is-print-"] .pr-team--empty { border: 0.75pt dashed #999 !important; color: #999 !important; font-style: italic; font-weight: 400; }
  body[class*="is-print-"] .pr-team__move { display: none !important; }

  /* Leaderboard print — one flight per page */
  body.is-print-lb .wb-sheet:not([data-sheet="flights"]) { display: none !important; }
  body.is-print-lb .wb-sheet[data-sheet="flights"] { display: block !important; }
  body.is-print-lb .lb-cut, body.is-print-lb .noms__bar, body.is-print-lb .lb-strip, body.is-print-lb .lb-preview-note, body.is-print-lb .lb-inline-cut, body.is-print-lb .lb-slider, body.is-print-lb .tab-toolbar { display: none !important; }
  body.is-print-lb .lb-flight { page-break-after: always; page-break-inside: avoid; margin: 0 0 0.4rem 0; }
  body.is-print-lb .lb-flight:last-child { page-break-after: auto; }
  body.is-print-lb .lb-flight__title { font-size: 22pt; text-align: center; border-bottom: 3pt solid #000; padding-bottom: 6pt; margin-bottom: 10pt; color: #000; font-weight: 800; }
  body.is-print-lb .lb-table { width: 100%; border-collapse: collapse; font-size: 12pt; }
  body.is-print-lb .lb-table th { text-align: left; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.04em; color: #000; padding: 4pt 6pt; border-bottom: 2pt solid #000; }
  body.is-print-lb .lb-table td { padding: 4pt 6pt; border-bottom: 1pt solid #444; }
  body.is-print-lb .lb-table th:not(:first-child), body.is-print-lb .lb-table td:not(:first-child) { text-align: center; }
  body.is-print-lb .lb-table tbody tr:nth-child(odd) { background: #f5f5f5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-lb .lb-place, body.is-print-lb .lb-cal { display: inline-block; padding: 1pt 4pt; font-size: 9pt; font-weight: 800; margin-left: 4pt; border: 1pt solid #000; border-radius: 3pt; }

  /* Calcutta print — 2 flights per landscape page, professional letterhead. */
  body.is-print-ca .wb-sheet:not([data-sheet="calcutta"]) { display: none !important; }
  body.is-print-ca .wb-sheet[data-sheet="calcutta"] { display: block !important; }
  body.is-print-ca .noms__bar, body.is-print-ca .scaffold__desc, body.is-print-ca .ca-strip, body.is-print-ca .ca-viewbar, body.is-print-ca .ca-fl__split, body.is-print-ca .ca-footer, body.is-print-ca .tab-toolbar { display: none !important; }
  /* Hand-fill sheet: hide placeholder hints ($0 / Buyer name) and give each
     empty box a light bottom rule so there's a line to write on. */
  body.is-print-ca .ca-buyer::placeholder, body.is-print-ca .ca-amt::placeholder { color: transparent !important; }
  /* Sticky columns are irrelevant on paper and confuse the print engine. */
  body.is-print-ca .ca-tbl th, body.is-print-ca .ca-tbl td { position: static !important; box-shadow: none !important; background: transparent !important; }

  /* Pairings Announcement — starter's read-aloud sheet. Everything else is
     hidden and the injected .pr-ann host takes over the page. */
  body.is-print-ann > *:not(#prAnnHost) { display: none !important; }
  body.is-print-ann .pr-ann { display: block !important; color: #000; background: #fff; font-family: "Source Sans 3", -apple-system, system-ui, sans-serif; }
  body.is-print-ann .pr-ann__head { display: flex; align-items: center; justify-content: space-between; gap: 12pt; padding: 0 0 10pt; margin: 0 0 14pt; border-bottom: 3pt double #1B5E20; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ann .pr-ann__logo { width: 60pt; height: 60pt; object-fit: contain; flex: 0 0 auto; }
  body.is-print-ann .pr-ann__title { text-align: center; flex: 1; }
  body.is-print-ann .pr-ann__eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.25em; color: #8a1c25; font-weight: 700; font-size: 9pt; margin-bottom: 3pt; }
  body.is-print-ann .pr-ann__title h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; margin: 0; font-size: 24pt; letter-spacing: 0.01em; }
  body.is-print-ann .pr-ann__sub { display: block; color: #333; font-size: 10pt; margin-top: 3pt; font-style: italic; }
  body.is-print-ann .pr-ann__wave { margin-bottom: 14pt; page-break-inside: avoid; }
  body.is-print-ann .pr-ann__wave + .pr-ann__wave { page-break-before: always; margin-top: 0; }
  body.is-print-ann .pr-ann__wave-hd { display: flex; justify-content: space-between; align-items: baseline; padding: 4pt 10pt; background: #1B5E20; color: #fff; border-radius: 4pt 4pt 0 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ann .pr-ann__wave-hd h2 { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 18pt; margin: 0; letter-spacing: 0.02em; }
  body.is-print-ann .pr-ann__wave-count { font-size: 10pt; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.85; }
  body.is-print-ann .pr-ann__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1pt solid #1B5E20; border-top: none; }
  body.is-print-ann .pr-ann__slot { padding: 5pt 10pt; border-bottom: 0.5pt solid #ccc; border-right: 0.5pt solid #ccc; page-break-inside: avoid; }
  body.is-print-ann .pr-ann__slot:nth-child(2n) { border-right: none; }
  body.is-print-ann .pr-ann__slot-hd { font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; font-size: 12pt; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3pt; border-bottom: 0.75pt solid #1B5E20; padding-bottom: 1pt; }
  body.is-print-ann .pr-ann__team { display: flex; align-items: center; gap: 6pt; padding: 2.5pt 0; }
  body.is-print-ann .pr-ann__team + .pr-ann__team { border-top: 0.4pt dotted #999; }
  body.is-print-ann .pr-ann__tnum { display: inline-block; background: #1B5E20; color: #fff; font-family: "Source Sans 3", monospace; font-weight: 800; font-size: 8pt; letter-spacing: 0.05em; padding: 1pt 4pt; border-radius: 3pt; min-width: 30pt; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ann .pr-ann__names { font-size: 12pt; font-weight: 700; color: #000; letter-spacing: 0; }
  body.is-print-ann .pr-ann__foot { text-align: center; margin-top: 14pt; padding-top: 6pt; border-top: 1pt solid #1B5E20; color: #444; font-size: 8.5pt; letter-spacing: 0.08em; }

  /* Printable team scorecards — NAME OVERLAY ONLY. Physical F&H cards feed
     through the printer; each page prints just three lines of text at fixed
     positions so they land on the pre-printed blank lines. One page per
     tee slot. Coordinates come from CARD_OFFSETS in tournament-admin.html
     via a JS-injected <style> — tune there, not here. */
  body.is-print-cards > *:not(#prCardsHost) { display: none !important; }
  body.is-print-cards .pr-cards { display: block !important; color: #000; background: transparent; font-family: "Source Sans 3", -apple-system, system-ui, sans-serif; }
  /* Explicit width + height match the physical card so each .sc-page takes
     up a full sheet and forces a page break. Without a concrete height the
     absolute-positioned name divs all collapse onto the first sheet and the
     print preview shows every team stacked on top of each other. Values
     are re-injected by JS to match CARD_OFFSETS.paperSize. */
  body.is-print-cards .sc-page { position: relative; width: 12in; height: 5.875in; page-break-after: always; break-after: page; page-break-inside: avoid; overflow: hidden; }
  body.is-print-cards .sc-page:last-child { page-break-after: auto; break-after: auto; }
  /* Small tee-slot tag at top so the operator can verify each printed card
     is landing on the right physical scorecard. Muted grey so it doesn't
     compete with the pre-printed header. */
  body.is-print-cards .sc-hdr { position: absolute; font-size: 9pt; color: #555; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
  body.is-print-cards .sc-name { position: absolute; font-family: "Source Sans 3", -apple-system, system-ui, sans-serif; font-weight: 700; color: #000; letter-spacing: 0; white-space: nowrap; }
  /* Diagnostic elements — only used by Print test scorecard so we can see
     whether the printer is honoring the page size and where the browser is
     placing content on the sheet. */
  body.is-print-cards .sc-frame { position: absolute; inset: 4pt; border: 2pt solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cards .sc-mark { position: absolute; font-family: "Source Sans 3", -apple-system, system-ui, sans-serif; font-weight: 800; color: #b11e2d; font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cards .sc-mark--tl { top: 0.15in; left: 0.15in; }
  body.is-print-cards .sc-mark--tr { top: 0.15in; right: 0.15in; }
  body.is-print-cards .sc-mark--bl { bottom: 0.15in; left: 0.15in; }
  body.is-print-cards .sc-mark--br { bottom: 0.15in; right: 0.15in; }
  /* Day 2 cards wrap the previous day's gross in this ring so scorers can
     see the seed at a glance without confusing it with hole-by-hole scores.
     print-color-adjust: exact keeps the border from getting dropped by
     draft-mode printers. */
  body.is-print-cards .d1-circle { display: inline-block; border: 1.4pt solid #000; border-radius: 999px; padding: 0.5pt 6pt 1pt; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Letterhead (JS-injected .ca-print-head): logo · title · logo, deep green rule. */
  .ca-print-head, .ca-print-foot { display: none; }
  body.is-print-ca .ca-print-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12pt;
    padding: 0 0 8pt; margin: 0 0 10pt;
    border-bottom: 3pt double #1B5E20;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.is-print-ca .ca-print-head__logo { width: 62pt; height: 62pt; object-fit: contain; flex: 0 0 auto; }
  body.is-print-ca .ca-print-head__qr { display: flex; align-items: center; gap: 6pt; flex: 0 0 auto; }
  body.is-print-ca .ca-print-head__qr img { width: 62pt; height: 62pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ca .ca-print-head__qr span { font-size: 8pt; color: #333; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2; }
  body.is-print-ca .ca-print-head__qr b { color: #1B5E20; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 10pt; letter-spacing: 0; text-transform: none; }
  body.is-print-ca .ca-print-head__title { text-align: center; flex: 1; }
  body.is-print-ca .ca-print-head__eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.25em; color: #8a1c25; font-weight: 700; font-size: 9pt; margin-bottom: 2pt; }
  body.is-print-ca .ca-print-head__title h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; margin: 0; font-size: 22pt; letter-spacing: 0.01em; }
  body.is-print-ca .ca-print-head__sub { display: block; color: #333; font-size: 10pt; margin-top: 3pt; font-style: italic; }
  body.is-print-ca .ca-print-foot {
    display: block; text-align: center; margin-top: 10pt; padding-top: 6pt;
    border-top: 1pt solid #1B5E20; color: #444; font-size: 8.5pt; letter-spacing: 0.08em;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }

  body.is-print-ca .ca-flight { page-break-inside: avoid; margin-bottom: 10pt; padding: 6pt 8pt; border: 1pt solid #1B5E20; border-radius: 4pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ca .ca-flight--pagebreak { page-break-after: always; margin-bottom: 0; }
  body.is-print-ca .ca-flight--pagebreak:last-child { page-break-after: auto; }
  body.is-print-ca .ca-fl__hdr { background: transparent !important; padding: 0 0 3pt !important; border: none !important; border-bottom: 1.5pt solid #1B5E20 !important; margin-bottom: 4pt; display: flex; align-items: baseline; justify-content: space-between; gap: 8pt; }
  body.is-print-ca .ca-fl__hdr .lb-flight__title { font-family: "Fraunces", Georgia, serif; font-size: 14pt; margin: 0; color: #1B5E20 !important; border: none; padding: 0; text-align: left; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ca .ca-fl__totals { font-size: 10pt; margin: 0; text-align: right; color: #333; }
  body.is-print-ca .ca-fl__totals b { color: #1B5E20 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ca .ca-tbl { border: none; border-radius: 0; font-size: 8pt; width: 100%; table-layout: fixed; }
  body.is-print-ca .ca-tbl th, body.is-print-ca .ca-tbl td { padding: 2pt 3pt !important; border-bottom: 0.5pt solid #d0d0c8 !important; }
  body.is-print-ca .ca-tbl thead th { color: #1B5E20; border-bottom: 1pt solid #1B5E20 !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 7pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ca .ca-tbl tbody tr:nth-child(odd) td { background: #f6f4ed !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-ca .ca-tbl__save, body.is-print-ca .ca-tbl__save + th, body.is-print-ca .ca-tbl__x { display: none !important; }
  body.is-print-ca .ca-buyer, body.is-print-ca .ca-amt { border: none !important; background: transparent !important; padding: 0 !important; width: 100% !important; font: inherit; text-align: left; color: #1B5E20; }
  body.is-print-ca .ca-hole { text-align: center; }
  body.is-print-ca .ca-loop, body.is-print-ca .ca-d1 { background: #e8ecdd !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; text-align: center; font-weight: 700; }
  body.is-print-ca .ca-num, body.is-print-ca .ca-tbl__team, body.is-print-ca .ca-tbl__buyer { min-width: 0 !important; max-width: none !important; white-space: nowrap; }
  /* Widen Buyer column on the print sheet — soaks up the space freed by the
     hidden save/x cells so the auctioneer has a real line to write on. */
  body.is-print-ca .ca-tbl__buyer { width: 1.5in !important; border-bottom: 0.75pt solid #000 !important; }
  body.is-print-ca .ca-buyer { width: 100% !important; padding: 2pt 4pt !important; }
  body.is-print-ca .ca-tbl__team { font-weight: 700; }
  body.is-print-ca .lb-tnum { font-size: 7pt; padding: 0.05rem 0.25rem; background: #1B5E20 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Leaderboard print — every flight on its own page */
  body.is-print-lbd .wb-sheet:not([data-sheet="leaderboard"]) { display: none !important; }
  body.is-print-lbd .wb-sheet[data-sheet="leaderboard"] { display: block !important; }
  body.is-print-lbd .noms__bar, body.is-print-lbd .scaffold__desc { display: none !important; }
  body.is-print-lbd .lb-strip { background: #fff !important; color: #000 !important; border: 2pt solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 6pt; margin-bottom: 8pt; font-size: 10pt; }
  body.is-print-lbd .lb-strip__flight, body.is-print-lbd .lb-strip__flight b, body.is-print-lbd .lb-strip__range, body.is-print-lbd .lb-strip__sep { color: #000 !important; }
  body.is-print-lbd .lb-flight { page-break-after: always; page-break-inside: avoid; }
  body.is-print-lbd .lb-flight:last-child { page-break-after: auto; }
  body.is-print-lbd .lb-flight__title { font-size: 20pt; text-align: center; color: #000; border-bottom: 3pt solid #000; padding-bottom: 4pt; margin-bottom: 8pt; }
  body.is-print-lbd .lb-table { width: 100%; font-size: 11pt; }
  body.is-print-lbd .lb-table th { padding: 3pt 5pt; font-size: 10pt; }
  body.is-print-lbd .lb-table td { padding: 3pt 5pt; }
  body.is-print-lbd .lb-table tbody tr:nth-child(odd) { background: #f5f5f5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-lbd .lbd-place { width: 68pt; min-width: 68pt; }
  body.is-print-lbd .lbd-flags { display: flex; flex-direction: column; gap: 2pt; }
  body.is-print-lbd .lbd-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 54pt; border: 1pt solid #000; background: transparent !important; color: #000 !important; padding: 1pt 4pt; font-size: 8.5pt; border-radius: 4pt; }

  /* Payout print — one page (or few) with all checks */
  body.is-print-po .wb-sheet:not([data-sheet="payout"]) { display: none !important; }
  body.is-print-po .wb-sheet[data-sheet="payout"] { display: block !important; }
  body.is-print-po .noms__bar, body.is-print-po .scaffold__desc { display: none !important; }
  body.is-print-po .po-summary { background: transparent !important; border: 1pt solid #000; padding: 6pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-po .po-summary b { color: #000 !important; }
  body.is-print-po .po-hdr { font-size: 16pt; color: #000; border-bottom-color: #000; margin-top: 12pt; }
  body.is-print-po .po-tbl { font-size: 11pt; }
  body.is-print-po .po-tbl__amt, body.is-print-po .po-tbl__total td:last-child { color: #000 !important; }
  body.is-print-po .po-tbl__total { background: #eaeaea !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-po .po-grand { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-po .po-check { border: none !important; background: transparent !important; padding: 0 !important; width: auto; font-weight: 700; color: #000 !important; }

  @page { margin: 0.5in; size: portrait; }
}

/* Alternates (standby, not in the active field) */
.ci-badge--alt { background: var(--red); }
.ci-card.is-alt { border-left: 4px solid var(--red); opacity: 0.9; }
.ci__alt { background: none; border: 1px solid var(--line); color: var(--primary-green); font: inherit; font-size: 0.8rem; border-radius: 8px; padding: 0.4rem 0.7rem; cursor: pointer; }
.ci__alt:hover { border-color: var(--primary-green); }
.wave--alt .wave__label { color: var(--red-deep); border-bottom-color: var(--red); }

/* A/B/C position labels on the pairings board */
.pr-pos { display: inline-block; min-width: 1.3rem; text-align: center; background: var(--primary-green); color: #fff; font-weight: 800; font-size: 0.72rem; border-radius: 4px; padding: 0.05rem 0.3rem; margin-right: 0.35rem; }

/* All-golfers list on the Check-In tab */
.golfers { margin: 0 0 1rem; background: var(--paper-2); border-radius: 10px; padding: 0.6rem 0.9rem; }
.golfers summary { cursor: pointer; font-weight: 700; color: var(--primary-green); }
#golferList { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.15rem 1.2rem; margin-top: 0.7rem; }
.golfer { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.golfer__name { font-weight: 600; }
.golfer__meta { color: var(--muted); font-size: 0.8rem; text-align: right; }

/* Check-In spreadsheet table (single-line rows) */
.ci-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ci-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-green); padding: 0.4rem 0.5rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.ci-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ci-table tbody tr:nth-child(odd) { background: var(--paper-2); }
.ci-c-name { font-weight: 600; white-space: nowrap; }
.ci-table select { padding: 0.35rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.85rem; background: #fff; max-width: 8.5rem; }
.paysel { font-weight: 700; }
.ci-c-act { white-space: nowrap; text-align: right; }
.ci-c-act .ci__alt { background: none; border: 1px solid var(--line); color: var(--primary-green); font: inherit; font-size: 0.78rem; border-radius: 6px; padding: 0.3rem 0.55rem; cursor: pointer; }
.ci-c-act .ci__remove { background: none; border: none; color: var(--red-deep); font-size: 1rem; cursor: pointer; padding: 0.2rem 0.4rem; }
.ci__status { font-size: 0.78rem; color: var(--muted); }
.ci__status.is-error { color: var(--red-deep); }
.ci-load-status { display: inline-block; padding: 0.2rem 0.55rem; background: #fef3c7; color: #7a5c00; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.ci-filters { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; margin: 0.6rem 0 1rem; padding: 0.55rem 0.8rem; background: var(--paper-2); border-radius: 10px; }
.ci-filter-group { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.ci-filter-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-right: 0.2rem; }
.ci-fchip { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
/* Name / team-# search on the Check-In toolbar. Stretches to fill the
   filter bar so a stubby "mcc" or a full "McConnell" both feel at home. */
.ci-filter-group--search { flex: 1 1 22rem; min-width: 16rem; }
.ci-name-search { width: 100%; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.95rem; background: #fff; }
.ci-name-search:focus { border-color: var(--primary-green); outline: none; box-shadow: 0 0 0 3px rgba(27,94,32,0.12); }
.ci-fold { margin-top: 1rem; background: var(--paper-2); border-radius: 10px; padding: 0.5rem 0.8rem; }
.ci-fold > summary { cursor: pointer; font-weight: 700; color: var(--primary-green); }
.ci-fold > summary span { color: var(--muted); font-weight: 400; }
.ci-fold--alt > summary { color: var(--red-deep); }

/* Past Tournaments call-out on the tournaments page. */
.past-tournaments { max-width: 640px; margin: 2.4rem auto 0; padding: 1.5rem 1.6rem 1.8rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.past-tournaments__title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--primary-green); margin: 0.15rem 0 0.5rem; }
.past-tournaments__lead { color: var(--muted); margin: 0 0 1.1rem; font-size: 1rem; }

/* ---- Calcutta Summary tab (one card per buyer) ---- */
.cs-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; padding: 0.7rem 0.9rem; background: var(--primary-green); color: #fff; border-radius: 10px; margin-bottom: 1rem; }
.cs-strip span { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-strip small { color: rgba(255,255,255,0.75); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cs-strip b { font-family: var(--font-display); font-size: 1.3rem; }
.cs-strip__paid { color: #d7f5c8; }
.cs-strip__owe { color: #ffe08a; }
.cs-strip__won { color: #ffd76a; }

/* Signed-out warning on tournament-admin. Loud but not scary — makes
   the "empty Calcutta Buyers tab" state readable at a glance. */
.tw-auth-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; margin: 0 0 1rem; background: #fff5d6; color: #6b4a00; border: 1px solid #e0b83a; border-radius: 10px; font-weight: 600; }
.tw-auth-warn b { color: #6b4a00; }
.tw-auth-warn__btn { display: inline-block; margin-left: auto; padding: 0.4rem 0.85rem; background: #1B5E20; color: #fff !important; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 0.85rem; letter-spacing: 0.02em; }
.tw-auth-warn__btn:hover { background: #0f4413; }

.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 0.9rem; align-items: start; }
.cs-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.cs-card.is-paid { border-color: var(--primary-green); box-shadow: 0 0 0 1px var(--primary-green) inset, var(--shadow-sm); background: #f6faf1; }
.cs-card__hd { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0.85rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.cs-card__buyer { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--primary-green); font-size: 1.1rem; }
.cs-card__count { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.cs-card__status { margin-left: auto; font-size: 0.78rem; }
.cs-card__items { padding: 0.35rem 0.85rem; display: flex; flex-direction: column; }
.cs-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px dotted var(--line); font-size: 0.9rem; }
.cs-item:last-child { border-bottom: none; }
.cs-item__tn { display: inline-block; background: #1e2530; color: #fff; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; min-width: 2.6rem; text-align: center; }
.cs-item__team { font-weight: 600; }
.cs-item__amt { font-family: var(--font-display); font-weight: 700; color: var(--primary-green); }
.cs-item__win { font-family: var(--font-display); font-weight: 800; color: #a67c00; font-size: 0.88rem; min-width: 3.4rem; text-align: right; }
.cs-item__win--zero { color: transparent; }

/* Two-side money summary — Spent (left), Won (right), Net (right-most). */
.cs-money { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.75rem; align-items: end; padding: 0.55rem 0.85rem; background: #fbfaf3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-money__side { display: flex; flex-direction: column; gap: 0.1rem; }
.cs-money__won { text-align: left; }
.cs-money__side small, .cs-money__net small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.65rem; font-weight: 700; }
.cs-money__spent b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.cs-money__won b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #a67c00; }
.cs-money__net { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; padding-left: 0.6rem; border-left: 1px solid var(--line); }
.cs-money__net b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.cs-money__net.is-net-pos b { color: var(--primary-green); }
.cs-money__net.is-net-neg b { color: #8a1c25; }
.cs-card__ft { display: flex; flex-wrap: wrap; gap: 0.5rem 0.55rem; align-items: center; justify-content: flex-end; padding: 0.55rem 0.85rem; background: var(--paper-2); border-top: 1px solid var(--line); }
.cs-card__ft .cs-paid { margin-right: auto; }
@media (max-width: 520px) { .cs-card__ft .cs-email-btn, .cs-card__ft .cs-print { flex: 1 1 40%; text-align: center; } }
.cs-card__email { display: flex; align-items: center; padding: 0.4rem 0.85rem; background: #fbfaf3; border-top: 1px dashed var(--line); }
.cs-email-lbl { display: flex; align-items: center; gap: 0.5rem; width: 100%; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.cs-email { flex: 1; padding: 0.32rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.85rem; color: var(--ink); text-transform: none; letter-spacing: normal; font-weight: 500; background: #fff; }
.cs-email:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 2px rgba(27,94,32,0.12); }
.cs-tot { display: flex; flex-direction: column; }
.cs-tot small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.65rem; font-weight: 700; }
.cs-tot b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.cs-card.is-paid .cs-tot b { color: var(--primary-green); }
.cs-method { padding: 0.3rem 0.45rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.82rem; background: #fff; font-weight: 600; }
.cs-paid { padding: 0.3rem 0.6rem; }
.cs-print { padding: 0.32rem 0.75rem; border: 1px solid var(--primary-green); border-radius: 999px; background: #fff; color: var(--primary-green); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; letter-spacing: 0.02em; }
.cs-print:hover { background: var(--primary-green); color: #fff; }
.cs-email-btn { padding: 0.32rem 0.75rem; border: 1px solid #1e64b8; border-radius: 999px; background: #fff; color: #1e64b8; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; letter-spacing: 0.02em; }
.cs-email-btn:hover { background: #1e64b8; color: #fff; }

/* Print — isolate the flagged card, add letterhead + signature footer. */
.cs-print-head, .cs-print-foot { display: none; }
@media print {
  body.is-print-cs > *:not(.wb-sheet[data-sheet="calcuttaSummary"]) { display: none !important; }
  body.is-print-cs .wb-sheet[data-sheet="calcuttaSummary"] { display: block !important; padding: 0; margin: 0; }
  body.is-print-cs .noms__bar, body.is-print-cs .scaffold__desc, body.is-print-cs .cs-strip, body.is-print-cs .tab-toolbar { display: none !important; }
  body.is-print-cs .cs-grid { display: block; }
  body.is-print-cs .cs-card { display: none; }
  body.is-print-cs .cs-card--printing { display: block; page-break-inside: avoid; background: #fff !important; border: 2pt solid #1B5E20; border-radius: 6pt; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Letterhead injected above the card. */
  body.is-print-cs .cs-print-head { display: flex; align-items: center; justify-content: space-between; gap: 12pt; padding: 0 0 10pt; margin: 0 0 12pt; border-bottom: 3pt double #1B5E20; }
  body.is-print-cs .cs-print-head__logo { width: 62pt; height: 62pt; object-fit: contain; }
  body.is-print-cs .cs-print-head__title { text-align: center; flex: 1; }
  body.is-print-cs .cs-print-head__eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.25em; color: #8a1c25; font-weight: 700; font-size: 9pt; margin-bottom: 3pt; }
  body.is-print-cs .cs-print-head__title h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; margin: 0; font-size: 24pt; letter-spacing: 0.01em; }
  body.is-print-cs .cs-print-head__sub { display: block; color: #333; font-size: 10pt; margin-top: 3pt; font-style: italic; }

  /* Buyer card body — receipt-flavored. */
  body.is-print-cs .cs-card__hd { background: transparent !important; border-bottom: 1.5pt solid #1B5E20 !important; padding: 6pt 12pt !important; display: flex; align-items: baseline; }
  body.is-print-cs .cs-card__buyer { font-family: "Fraunces", Georgia, serif; color: #1B5E20 !important; font-size: 18pt; }
  body.is-print-cs .cs-card__count { color: #444; font-size: 9pt; }
  body.is-print-cs .cs-card__status { display: none !important; }
  body.is-print-cs .cs-card__items { padding: 10pt 12pt; }
  body.is-print-cs .cs-item { padding: 4pt 0; border-bottom: 0.5pt solid #ccc; font-size: 11pt; }
  body.is-print-cs .cs-item__tn { background: #1B5E20 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs .cs-item__team { color: #000; }
  body.is-print-cs .cs-item__amt { color: #1B5E20 !important; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 12pt; }
  body.is-print-cs .cs-item__win { color: #8a6d00 !important; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 11pt; min-width: 42pt; text-align: right; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs .cs-item__win--zero { color: transparent !important; }
  body.is-print-cs .cs-money { display: grid !important; grid-template-columns: 1fr 1fr auto !important; gap: 12pt !important; padding: 8pt 12pt !important; background: #fbfaf3 !important; border-top: 1pt solid #ccc !important; border-bottom: 1pt solid #ccc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs .cs-money__side, body.is-print-cs .cs-money__net { display: flex; flex-direction: column; gap: 2pt; }
  body.is-print-cs .cs-money__side small, body.is-print-cs .cs-money__net small { color: #444; font-size: 8.5pt; text-transform: uppercase; letter-spacing: 0.08em; }
  body.is-print-cs .cs-money__spent b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 14pt; color: #1B5E20 !important; }
  body.is-print-cs .cs-money__won b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 14pt; color: #8a6d00 !important; }
  body.is-print-cs .cs-money__net { align-items: flex-end; padding-left: 8pt; border-left: 0.5pt solid #999; }
  body.is-print-cs .cs-money__net b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 14pt; color: #000 !important; }
  body.is-print-cs .cs-money__net.is-net-pos b { color: #1B5E20 !important; }
  body.is-print-cs .cs-money__net.is-net-neg b { color: #8a1c25 !important; }
  body.is-print-cs .cs-card__ft { background: #f6f4ed !important; border-top: 1.5pt solid #1B5E20; padding: 8pt 12pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs .cs-card__ft .ci-check, body.is-print-cs .cs-card__ft select, body.is-print-cs .cs-card__ft .cs-print, body.is-print-cs .cs-card__ft .cs-email-btn { display: none !important; }
  body.is-print-cs .cs-card__email { display: none !important; }
  body.is-print-cs .cs-tot { flex-direction: row; align-items: baseline; gap: 6pt; }
  body.is-print-cs .cs-tot small { color: #333; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.1em; }
  body.is-print-cs .cs-tot b { font-family: "Fraunces", Georgia, serif; color: #1B5E20 !important; font-size: 18pt; }

  /* Signature footer + course contact under the card. */
  body.is-print-cs .cs-print-foot { display: block; margin-top: 20pt; }
  body.is-print-cs .cs-print-sig { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 18pt; margin-bottom: 10pt; }
  body.is-print-cs .cs-print-sig__line { display: block; border-bottom: 1pt solid #000; height: 22pt; }
  body.is-print-cs .cs-print-sig small { display: block; color: #333; font-size: 9pt; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3pt; }
  body.is-print-cs .cs-print-foot__contact { text-align: center; margin-top: 12pt; color: #333; font-size: 9pt; letter-spacing: 0.08em; border-top: 0.5pt solid #999; padding-top: 6pt; }

  /* Print list — hand-checkable roster of every buyer. */
  body.is-print-cs-list > *:not(.cs-list-print) { display: none !important; }
  body.is-print-cs-list .cs-list-print { display: block; padding: 0; margin: 0; color: #000; background: #fff; }
  body.is-print-cs-list .cs-print-head { display: flex; align-items: center; justify-content: space-between; gap: 12pt; padding: 0 0 10pt; margin: 0 0 14pt; border-bottom: 3pt double #1B5E20; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-list .cs-print-head__logo { width: 60pt; height: 60pt; object-fit: contain; }
  body.is-print-cs-list .cs-print-head__title { text-align: center; flex: 1; }
  body.is-print-cs-list .cs-print-head__eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.25em; color: #8a1c25; font-weight: 700; font-size: 9pt; margin-bottom: 3pt; }
  body.is-print-cs-list .cs-print-head__title h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; margin: 0; font-size: 22pt; letter-spacing: 0.01em; }
  body.is-print-cs-list .cs-print-head__sub { display: block; color: #333; font-size: 10pt; margin-top: 3pt; font-style: italic; }
  body.is-print-cs-list .cs-list__tbl { width: 100%; border-collapse: collapse; font-size: 10pt; }
  body.is-print-cs-list .cs-list__tbl th { text-align: left; color: #1B5E20; text-transform: uppercase; letter-spacing: 0.05em; font-size: 8.5pt; padding: 4pt 6pt; border-bottom: 1.5pt solid #1B5E20; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-list .cs-list__tbl td { padding: 5pt 6pt; border-bottom: 0.5pt solid #ccc; vertical-align: middle; }
  body.is-print-cs-list .cs-list__tbl tbody tr:nth-child(odd) { background: #f6f4ed; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-list .cs-list__buyer { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: #1B5E20; font-size: 11pt; white-space: nowrap; }
  body.is-print-cs-list .cs-list__teams { color: #333; font-size: 9pt; }
  body.is-print-cs-list .cs-list__amt { text-align: right; font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; white-space: nowrap; }
  body.is-print-cs-list .cs-list__pay { text-align: center; white-space: nowrap; }
  body.is-print-cs-list .cs-list__box { display: inline-block; width: 12pt; height: 12pt; border: 1pt solid #000; vertical-align: middle; }
  body.is-print-cs-list .cs-list__paid { color: #1B5E20; font-weight: 700; font-size: 9pt; }
  body.is-print-cs-list .cs-list__grand td { border-top: 2pt solid #1B5E20; border-bottom: none; padding-top: 8pt; color: #1B5E20; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 12pt; }
  body.is-print-cs-list .cs-print-foot__contact { text-align: center; margin-top: 16pt; color: #333; font-size: 9pt; letter-spacing: 0.08em; border-top: 0.5pt solid #999; padding-top: 6pt; }

  /* Print all — one buyer receipt per page, same look as single Print. */
  body.is-print-cs-all > *:not(.cs-all-print) { display: none !important; }
  body.is-print-cs-all .cs-all-print { display: block; padding: 0; margin: 0; color: #000; background: #fff; }
  body.is-print-cs-all .cs-card--print-page { display: block; page-break-after: always; background: #fff !important; border: 2pt solid #1B5E20; border-radius: 6pt; margin: 0 0 12pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-all .cs-card--print-page:last-child { page-break-after: auto; }
  body.is-print-cs-all .cs-print-head { display: flex; align-items: center; justify-content: space-between; gap: 12pt; padding: 10pt 12pt; margin: 0; border-bottom: 3pt double #1B5E20; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-all .cs-print-head__logo { width: 62pt; height: 62pt; object-fit: contain; }
  body.is-print-cs-all .cs-print-head__title { text-align: center; flex: 1; }
  body.is-print-cs-all .cs-print-head__eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.25em; color: #8a1c25; font-weight: 700; font-size: 9pt; margin-bottom: 3pt; }
  body.is-print-cs-all .cs-print-head__title h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; color: #1B5E20; margin: 0; font-size: 22pt; letter-spacing: 0.01em; }
  body.is-print-cs-all .cs-print-head__sub { display: block; color: #333; font-size: 10pt; margin-top: 3pt; font-style: italic; }
  body.is-print-cs-all .cs-card__hd { background: transparent !important; border-bottom: 1.5pt solid #1B5E20 !important; padding: 6pt 12pt !important; display: flex; align-items: baseline; }
  body.is-print-cs-all .cs-card__buyer { font-family: "Fraunces", Georgia, serif; color: #1B5E20 !important; font-size: 18pt; margin: 0; }
  body.is-print-cs-all .cs-card__count { color: #444; font-size: 9pt; margin-left: 8pt; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
  body.is-print-cs-all .cs-card__items { padding: 10pt 12pt; }
  body.is-print-cs-all .cs-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8pt; padding: 4pt 0; border-bottom: 0.5pt solid #ccc; font-size: 11pt; }
  body.is-print-cs-all .cs-item:last-child { border-bottom: none; }
  body.is-print-cs-all .cs-item__tn { display: inline-block; background: #1B5E20 !important; color: #fff !important; padding: 1pt 5pt; border-radius: 3pt; font-size: 8pt; font-weight: 800; letter-spacing: 0.04em; min-width: 32pt; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-all .cs-item__team { color: #000; font-weight: 600; }
  body.is-print-cs-all .cs-item__amt { color: #1B5E20 !important; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 12pt; }
  body.is-print-cs-all .cs-item { grid-template-columns: auto 1fr auto auto !important; }
  body.is-print-cs-all .cs-item__win { color: #8a6d00 !important; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 11pt; min-width: 42pt; text-align: right; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-all .cs-item__win--zero { color: transparent !important; }
  body.is-print-cs-all .cs-money { display: grid !important; grid-template-columns: 1fr 1fr auto !important; gap: 12pt !important; padding: 8pt 12pt !important; background: #fbfaf3 !important; border-top: 1pt solid #ccc !important; border-bottom: 1pt solid #ccc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-all .cs-money__side, body.is-print-cs-all .cs-money__net { display: flex; flex-direction: column; gap: 2pt; }
  body.is-print-cs-all .cs-money__side small, body.is-print-cs-all .cs-money__net small { color: #444; font-size: 8.5pt; text-transform: uppercase; letter-spacing: 0.08em; }
  body.is-print-cs-all .cs-money__spent b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 14pt; color: #1B5E20 !important; }
  body.is-print-cs-all .cs-money__won b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 14pt; color: #8a6d00 !important; }
  body.is-print-cs-all .cs-money__net { align-items: flex-end; padding-left: 8pt; border-left: 0.5pt solid #999; }
  body.is-print-cs-all .cs-money__net b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 14pt; color: #000 !important; }
  body.is-print-cs-all .cs-money__net.is-net-pos b { color: #1B5E20 !important; }
  body.is-print-cs-all .cs-money__net.is-net-neg b { color: #8a1c25 !important; }
  body.is-print-cs-all .cs-card__ft { display: grid; grid-template-columns: 1fr 1fr; gap: 6pt 12pt; background: #f6f4ed !important; border-top: 1.5pt solid #1B5E20; padding: 8pt 12pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.is-print-cs-all .cs-tot { display: flex; flex-direction: row; align-items: baseline; gap: 6pt; }
  body.is-print-cs-all .cs-tot small { color: #333; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.1em; }
  body.is-print-cs-all .cs-tot b { font-family: "Fraunces", Georgia, serif; color: #1B5E20 !important; font-size: 16pt; }
  body.is-print-cs-all .cs-print-foot { display: block; padding: 0 12pt 12pt; }
  body.is-print-cs-all .cs-print-sig { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 18pt; margin: 20pt 0 10pt; }
  body.is-print-cs-all .cs-print-sig__line { display: block; border-bottom: 1pt solid #000; height: 22pt; }
  body.is-print-cs-all .cs-print-sig small { display: block; color: #333; font-size: 9pt; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3pt; }
  body.is-print-cs-all .cs-print-foot__contact { text-align: center; margin-top: 12pt; color: #333; font-size: 9pt; letter-spacing: 0.08em; border-top: 0.5pt solid #999; padding-top: 6pt; }
}

/* ---- Check-In team cards (Bulldog-style) ---- */
.ci-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 0.9rem; align-items: start; }
.ci-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ci-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.ci-card.is-fully-paid { border-color: var(--primary-green); box-shadow: 0 0 0 1px var(--primary-green) inset, var(--shadow-sm); background: #f6faf1; }
/* Brief green ring pulse after Take Payment click — gives the operator
   a "yes, I committed it" moment when a team pays in pieces. */
.ci-card.is-just-updated { animation: ciCardPulse 0.9s ease-out; }
@keyframes ciCardPulse {
  0%   { box-shadow: 0 0 0 0 rgba(27,94,32,0.55), var(--shadow-sm); }
  50%  { box-shadow: 0 0 0 6px rgba(27,94,32,0.15), var(--shadow-sm); }
  100% { box-shadow: 0 0 0 0 rgba(27,94,32,0), var(--shadow-sm); }
}
@media (prefers-reduced-motion: reduce) { .ci-card.is-just-updated { animation: none; } }
.ci-card.is-alt { border-style: dashed; opacity: 0.85; }

.ci-card__hd { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; background: linear-gradient(180deg, var(--paper-2) 0%, #f7f4e7 100%); border-bottom: 1px solid var(--line); position: relative; }
.ci-card__tnum { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--primary-green); letter-spacing: 0.02em; }

/* Header overflow ⋮ menu — holds Merge / Move-to-alt / Remove so the
   destructive-ish actions live away from the footer's Take Payment
   button. Menu is absolutely positioned so it hangs over the card body
   without pushing anything down; parent .ci-card__hd is relative for
   the anchor. */
.ci-card__more { position: relative; margin-left: 0.25rem; }
.ci-card__more-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0; }
.ci-card__more-btn:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.ci-card__more-btn[aria-expanded="true"] { background: #fff; border-color: var(--primary-green); color: var(--primary-green); }
.ci-card__more-menu { position: absolute; top: calc(100% + 0.25rem); right: 0; z-index: 50; min-width: 12rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); padding: 0.25rem; display: flex; flex-direction: column; gap: 0.1rem; }
.ci-card__more-menu[hidden] { display: none; }
.ci-card__more-menu > button { padding: 0.55rem 0.7rem; font: inherit; font-size: 0.85rem; font-weight: 600; text-align: left; background: transparent; border: 0; border-radius: 6px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ci-card__more-menu > button:hover { background: var(--paper-2); }
.ci-card__more-menu > .ci-card__more-danger { color: var(--red-deep); border-top: 1px solid var(--line); margin-top: 0.1rem; padding-top: 0.6rem; }
.ci-card__more-menu > .ci-card__more-danger:hover { background: rgba(178,34,41,0.08); color: var(--red-deep); }
.ci-card__start { padding: 0.3rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.82rem; background: #fff; }
.ci-card__status { margin-left: auto; font-size: 0.78rem; color: var(--muted); min-width: 4rem; text-align: right; }
.ci-card__status.is-ok { color: var(--primary-green); font-weight: 700; }
.ci-card__status.is-error { color: var(--red-deep); }

.ci-card__players { padding: 0.6rem 1rem 0.45rem; display: flex; flex-direction: column; gap: 0.15rem; }
.ci-p { display: grid; grid-template-columns: minmax(6.5rem, 1fr) auto auto auto minmax(6.5rem, 8.5rem); align-items: center; gap: 0.4rem 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(0,0,0,0.07); }
/* Pin each child to an explicit grid column so hiding one (.ci-meal
   on non-Founders, empty .ci-p__extras) doesn't auto-shift the method
   dropdown into an earlier `auto` column and shrink it to icon width.
   Without this, a couples tournament with meals hidden + no extras
   yet loaded ends up with the method in column 2's auto slot. */
/* Column 2 is the extras strip (Mulligans / String / etc. when the
   Format tab declares them). Placed to the LEFT of the captain star so
   the operator can tick Mulligans without hunting past the star + meals
   column — the two most common per-player toggles now sit side-by-side
   with the name. Empty on tournaments with no extras configured;
   :empty on .ci-p__extras collapses the column visually. */
.ci-p > .ci-p__name   { grid-column: 1; }
.ci-p > .ci-p__extras { grid-column: 2; }
.ci-p > .ci-p__cap    { grid-column: 3; }
.ci-p > .ci-meal      { grid-column: 4; }
.ci-p > .ci-p__method { grid-column: 5; }
/* On narrow cards the extras strip drops to its own full-width row so it
   doesn't crush the meals / method columns. */
@media (max-width: 720px) {
  .ci-p { grid-template-columns: minmax(6.5rem, 1fr) auto auto minmax(6.5rem, 8.5rem); }
  .ci-p > .ci-p__method { grid-column: 4; }
  .ci-p > .ci-p__extras { grid-column: 1 / -1; justify-self: start; }
}
/* Small "Payment method" header row above the first player row so the
   operator sees what the dropdown column IS before they touch it. Same
   grid template as .ci-p so the label lines up over column 5. */
.ci-p-hdr { display: grid; grid-template-columns: minmax(6.5rem, 1fr) auto auto auto minmax(6.5rem, 8.5rem); gap: 0.4rem 0.6rem; padding: 0 0 0.4rem; font: 800 0.7rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--line); margin-bottom: 0.25rem; }
.ci-p-hdr__method { text-align: left; grid-column: 5; padding-left: 0.3in; }
@media (max-width: 720px) {
  .ci-p-hdr { grid-template-columns: minmax(6.5rem, 1fr) auto auto minmax(6.5rem, 8.5rem); }
  .ci-p-hdr__method { grid-column: 4; }
}
.ci-p:last-child { border-bottom: none; }
.ci-p__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
/* Captain marker. .ci-p__cap--is = current captain (gold pill, non-clickable);
   .ci-p__cap--set = button to promote another player; .ci-p__cap--empty =
   placeholder shown when a row has no name yet. */
.ci-p__cap { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border-radius: 999px; font-size: 1.15rem; font-weight: 700; line-height: 1; white-space: nowrap; border: 1.5px solid var(--line); background: #fff; transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s; }
.ci-p__cap--is { background: var(--brass-soft, #f4e6c1); color: var(--brass, #8a6a26); border-color: var(--brass, #b28a3a); cursor: default; box-shadow: 0 1px 3px rgba(178,138,58,0.25); }
.ci-p__cap--set { color: var(--muted); cursor: pointer; }
.ci-p__cap--set:hover { background: var(--brass-soft, #f4e6c1); color: var(--brass, #8a6a26); border-color: var(--brass, #b28a3a); transform: scale(1.05); }
.ci-p__cap--empty { color: var(--muted); opacity: 0.3; }
/* Method dropdown drives the paid state — empty = amber "action needed"
   look, any method picked = green "paid" look. Colors flip via JS on
   change (see .ci-p__method.is-paid). This lets the operator glance
   at a card and read paid/unpaid from color alone without hunting for
   totals. */
.ci-p__method { padding: 0.35rem 0.45rem; border: 1.5px solid #d4a017; border-radius: 7px; font: inherit; font-size: 0.82rem; background: #fff8e1; font-weight: 700; width: 100%; min-width: 0; color: #6b4d00; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; box-sizing: border-box; max-width: 100%; }
.ci-p__method:focus { border-color: var(--primary-green); outline: none; box-shadow: 0 0 0 2px rgba(27,94,32,0.15); }
.ci-p__method:disabled { background: var(--paper-2); color: var(--muted); border-color: var(--line); }
.ci-p__method.is-paid { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.ci-p__method.is-paid option { color: var(--ink); background: #fff; }
.ci-p__surcharge { grid-column: 1 / -1; justify-self: end; display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(139, 28, 37, 0.1); color: #7d1218; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }

/* Inline paid / cart pill checkboxes on the player row + cart line. */
.ci-check { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.78rem; font-weight: 700; color: var(--ink); cursor: pointer; user-select: none; white-space: nowrap; }
.ci-check input { width: 0.95rem; height: 0.95rem; margin: 0; cursor: pointer; accent-color: var(--primary-green); }
.ci-check:has(input:checked) { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.ci-check:has(input:checked) small { color: rgba(255,255,255,0.85); }
.ci-check small { color: var(--ink); font-weight: 400; font-size: 0.7rem; opacity: 0.85; }

/* Extra-meal number input on each player row. */
.ci-meal { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.ci-meal input { width: 2.4rem; padding: 0.15rem 0.3rem; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 0.82rem; text-align: center; }
.ci-meal:has(input:not([value="0"]):not([value=""])) { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.ci-meal:has(input:not([value="0"]):not([value=""])) input { background: #fff; color: var(--ink); }

/* Need Rental pill sits at the right side of the cart line. */
.ci-check--need { margin-left: auto; border-color: #b48000; color: #6b4d00; background: #fff8e1; }
.ci-check--need:has(input:checked) { background: #d19a00; color: #fff; border-color: #d19a00; }

/* Cart line — three checkboxes across (P1 ½ · P2 ½ · Full). */
.ci-cartline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; padding: 0.6rem 1rem; background: #fbf9ee; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Halves row — Cart label + P1-P4 half-share pills in ONE line. Never
   wraps; on narrow cards each pill shrinks to fit. Rentals-needed +
   Assigned cart live on their own lines below so this row reads as
   "which players cover which half of the cart" without noise. */
/* Halves may wrap to a second visual row on truly narrow cards, but
   there is no horizontal scrollbar — a slider under the cart line
   looked like clutter and the operator asked for it gone. Pills are
   tiny enough that 4 fit on one line at typical card widths. */
.ci-cartline--halves { flex-wrap: wrap; }
.ci-cartline--halves .ci-check--cart { flex: 0 0 auto; padding: 0.15rem 0.45rem; font-size: 0.72rem; }
.ci-cartline--halves .ci-check--cart small { font-size: 0.66rem; }
/* Rentals-needed sits on its own row, right below the halves. Yellow
   accent border matches the amber "action needed" look used on the
   unpaid method dropdown so operators recognize it as "set me". */
.ci-cartline--need { padding-top: 0.5rem; padding-bottom: 0.5rem; border-top: none; background: #fdfbe8; }
.ci-cartline--need .ci-cart-need { padding: 0.35rem 0.55rem; border: 1px solid #d4a017; border-radius: 6px; font: inherit; font-size: 0.85rem; font-weight: 700; background: #fff; color: #6b4d00; }
.ci-cartline--need .ci-cart-need:focus { border-color: var(--primary-green); outline: none; box-shadow: 0 0 0 2px rgba(27,94,32,0.15); }
.ci-cartline__lbl { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.72rem; font-weight: 800; color: var(--ink); margin-right: 0.3rem; }
.ci-check--cart { font-size: 0.75rem; padding: 0.22rem 0.55rem; }

/* Footer redesigned for hierarchy — totals block on top, Take Payment
   as a big primary button in the middle, secondary actions
   (Merge / Scoring link / Alt / Remove) tucked into a compact row
   below. Cleaner scan path: money → primary action → escape hatches. */
.ci-card__ft { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.7rem 1rem 0.85rem; background: var(--paper-2); }
.ci-tots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; align-items: baseline; }
.ci-tot { display: flex; flex-direction: column; align-items: flex-start; }
.ci-tot small { color: var(--ink); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.68rem; font-weight: 800; margin-bottom: 0.1rem; }
.ci-tot b { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.ci-tot--paid b { color: var(--primary-green); }
.ci-tot--owe b { color: var(--red-deep); }
.ci-card.is-fully-paid .ci-tot--owe b { color: var(--primary-green); }
.ci-card__acts { display: flex; flex-direction: column; gap: 0.4rem; }
/* Primary action row — Take Payment on the left (grows to fill so it
   stays the visual anchor near the OWES column), Scoring link tucked
   to the right of it as a secondary primary action. Both remain
   noticeably bigger than the tertiary row below. */
.ci-card__acts-primary { display: flex; gap: 0.5rem; align-items: stretch; }
.ci-card__acts-primary .ci__update { flex: 1 1 auto; padding: 0.6rem 0.9rem; font-size: 0.95rem; border-radius: 8px; border: 0; color: #fff; background: var(--primary-green); cursor: pointer; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: background 0.12s, transform 0.12s; }
.ci-card__acts-primary .ci__update:hover { background: #144a1e; }
.ci-card__acts-primary .ci__update:active { transform: translateY(1px); }
.ci-card__acts-primary .ci__live { flex: 0 0 auto; padding: 0.6rem 0.9rem; font-size: 0.85rem; border-radius: 8px; border: 1.5px solid var(--primary-green); color: var(--primary-green); background: #fff; cursor: pointer; font-weight: 700; }
.ci-card__acts-primary .ci__live:hover { background: var(--primary-green); color: #fff; }
/* Secondary/tertiary action row — Merge / Alt / Remove. Smaller,
   ghosted. Remove pinned to the right as the destructive escape hatch. */
.ci-card__acts-sec { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-start; }
.ci-card__acts-sec > * { padding: 0.32rem 0.65rem; font-size: 0.78rem; border-radius: 6px; font-weight: 600; cursor: pointer; }
.ci-card__acts-sec .ci__merge,
.ci-card__acts-sec .ci__alt { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.ci-card__acts-sec .ci__merge:hover,
.ci-card__acts-sec .ci__alt:hover { border-color: var(--primary-green); color: var(--primary-green); }
.ci-card__acts-sec .ci__remove { margin-left: auto; border: 1px solid rgba(178, 34, 41, 0.35); color: var(--red-deep); background: #fff; }
.ci-card__acts-sec .ci__remove:hover { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }

/* ---- Check-In name cell: clickable Player Card link + ✎ inline rename ---- */
.ci-name-wrap { display: inline-flex; align-items: center; gap: 0.3rem; }
.ci-name { color: var(--primary-green); text-decoration: underline dotted; text-underline-offset: 3px; font-weight: 600; cursor: pointer; }
.ci-name:hover { text-decoration: underline solid; }
/* Red flag for a Check-In player row whose name has no email on file.
   Captain (P1) source of truth is the signup's Email field; partners
   come from the Players master list. Coloring makes the roster gap
   obvious at a glance so the operator can fill it in from the Player
   Card modal. */
.ci-name--no-email { color: #b3391c; }
.ci-name--no-email:hover { color: #8a2a12; }
.ci-rename { background: none; border: none; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0.1rem 0.25rem; border-radius: 4px; opacity: 0.6; }
.ci-rename:hover { color: var(--primary-green); background: var(--paper-2); opacity: 1; }
.ci-name-input { padding: 0.3rem 0.45rem; border: 1px solid var(--primary-green); border-radius: 6px; font: inherit; font-weight: 600; min-width: 8rem; max-width: 12rem; }

/* ---- Player Card modal ---- */
body.modal-open { overflow: hidden; }
.pm-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pm-modal[hidden] { display: none; }
.pm-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 40, 25, 0.55); backdrop-filter: blur(2px); }
.pm-modal__panel { position: relative; background: var(--paper, #fff); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); width: 100%; max-width: 34rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; overflow: hidden; }
.pm-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.pm-modal__head h3 { margin: 0; color: var(--primary-green); font-size: 1.15rem; }
.pm-modal__close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 0.4rem; }
.pm-modal__close:hover { color: var(--red-deep); }
.pm-modal__body { padding: 1rem 1.25rem; overflow-y: auto; display: grid; gap: 0.75rem; }
.pm-modal__foot { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.85rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.pm-status { margin: 0; font-size: 0.85rem; color: var(--muted); }
.pm-status.is-ok { color: var(--primary-green); }
.pm-status.is-info { color: var(--muted); }
.pm-status.is-warn { color: #a86a00; }
.pm-status.is-error { color: var(--red-deep); }
.pm-setup { background: #fff8e1; border: 1px solid #f3d78a; border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.85rem; }
.pm-setup ol { margin: 0.4rem 0 0 1.1rem; padding: 0; }
.pm-setup code { background: rgba(0,0,0,0.06); padding: 0.05rem 0.3rem; border-radius: 4px; }
.pm-field { display: grid; gap: 0.25rem; }
.pm-field > span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-green); font-weight: 700; }
.pm-field input, .pm-field textarea { padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; width: 100%; box-sizing: border-box; }
.pm-field input:focus, .pm-field textarea:focus { outline: 2px solid var(--primary-green); outline-offset: -1px; border-color: var(--primary-green); }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pm-row--csz { grid-template-columns: 2fr 1fr 1fr; }
.pm-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
/* Email preview modal — shows the rendered HTML in a sandboxed iframe
   before confirming a send. Larger than the Player Card modal so the
   full 620px-wide email design fits comfortably. */
.pv-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pv-modal[hidden] { display: none; }
.pv-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 40, 25, 0.55); backdrop-filter: blur(2px); }
.pv-modal__panel { position: relative; background: var(--paper, #fff); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); width: 100%; max-width: 44rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; overflow: hidden; }
.pv-modal__head { padding: 1.05rem 1.25rem 0.85rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.pv-modal__head > div:first-child { min-width: 0; }
.pv-modal__eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pv-modal__title { margin: 0.2rem 0 0.6rem; font-size: 1.15rem; color: var(--primary-green); font-weight: 800; }
.pv-modal__meta { font-size: 0.82rem; color: var(--ink); line-height: 1.6; }
.pv-modal__lbl { display: inline-block; color: var(--muted); font-weight: 600; min-width: 3rem; }
.pv-modal__close { background: transparent; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); padding: 0; line-height: 1; align-self: flex-start; }
.pv-modal__close:hover { color: var(--ink); }
.pv-modal__body { flex: 1; overflow: auto; background: #f4f4f2; padding: 0.75rem; min-height: 20rem; }
.pv-modal__loading { text-align: center; color: var(--muted); font-style: italic; padding: 3rem 1rem; margin: 0; }
.pv-modal__frame { width: 100%; height: 100%; min-height: 32rem; border: 0; background: #fff; border-radius: 8px; }
.pv-modal__foot { padding: 0.85rem 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 0.6rem; align-items: center; }
.pv-modal__status { flex: 1; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.pv-modal__status.is-error { color: var(--red-deep); }
.pv-modal__status.is-ok { color: var(--primary-green); }
.pm-history { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.pm-history__hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.pm-history__title { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--primary-green); }
.pm-history__count { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.pm-history__body { font-size: 0.88rem; color: var(--ink); }
.pm-history__body p.pm-history__none { color: var(--muted); font-style: italic; margin: 0; }
.pm-history__row { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.04); align-items: baseline; }
.pm-history__row:last-child { border-bottom: none; }
.pm-history__year { font-weight: 700; color: var(--primary-green); }
.pm-history__what { color: var(--ink); font-size: 0.87rem; }
.pm-history__what small { color: var(--muted); font-weight: 400; }
.pm-history__amt { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; text-align: right; }
.pm-history__amt b { color: var(--primary-green); font-weight: 700; }
.pm-history__hint { font-size: 0.75rem; color: var(--muted); margin: 0.6rem 0 0; font-style: italic; }
.pm-check input { width: 1.1rem; height: 1.1rem; }
@media (max-width: 520px) { .pm-row, .pm-row--csz { grid-template-columns: 1fr; } }

/* Format tab — Tournament Config editor. Compact form, one section per group. */
.fmt-form { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.4rem; }

/* Format-tab wizard — 5-step progressive disclosure. Top stepper is
   clickable, but Save & continue on each step also advances. Only the
   active step's fieldset is visible; the rest sit hidden until the
   operator jumps to them. Same underlying <input name="…"> fields as
   before, so every existing change handler and the shared config-write
   save path keep working. */
.fmt-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: fmt-step; }
.fmt-stepper__item { position: relative; padding: 0.5rem 0.55rem 0.5rem 2.1rem; background: var(--paper-2, #f4efe1); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font: 600 0.82rem/1.15 system-ui, sans-serif; color: var(--muted); user-select: none; }
.fmt-stepper__item::before { counter-increment: fmt-step; content: counter(fmt-step); position: absolute; left: 0.55rem; top: 50%; transform: translateY(-50%); width: 1.35rem; height: 1.35rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); text-align: center; line-height: 1.3rem; font-weight: 700; font-size: 0.78rem; }
.fmt-stepper__item.is-active { background: #fff; border-color: var(--primary-green); color: var(--primary-green); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.fmt-stepper__item.is-active::before { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.fmt-stepper__item.is-done { background: #eef7ef; border-color: #a9d0ac; color: #1b5e20; }
.fmt-stepper__item.is-done::before { content: "✓"; background: #1b5e20; color: #fff; border-color: #1b5e20; }
.fmt-stepper__item.has-blanks::after { content: ""; position: absolute; top: 0.35rem; right: 0.4rem; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #b3391c; box-shadow: 0 0 0 2px #fff; }
.fmt-step { display: none; }
.fmt-step.is-active { display: flex; flex-direction: column; gap: 1.1rem; }
.fmt-step__nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; padding: 0.75rem 0.15rem 0.25rem; border-top: 1px dashed var(--line); }
.fmt-step__nav-left, .fmt-step__nav-right { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.fmt-step__msg { font-size: 0.82rem; color: var(--muted); min-width: 8rem; }
.fmt-step__msg.is-error { color: #b3391c; font-weight: 600; }
.fmt-step__msg.is-ok { color: #1b5e20; font-weight: 600; }
/* Required-field asterisk. Applied to .fmt-row > span::after via a
   .fmt-row--req class on the row wrapper. Skips the change of any
   other visual weight, just adds the red star so blank required
   fields catch the eye. */
.fmt-row--req > span::after { content: " *"; color: #b3391c; }
.fmt-row.is-blank input, .fmt-row.is-blank select, .fmt-row.is-blank textarea { border-color: #b3391c !important; }
/* "Copy from last year" callout at the top of Step 1 — pulls the
   most recent archived edition of this tournament and offers to
   pre-fill every Format field. Brass accent panel so it reads as
   an offer, not a chrome. */
.fmt-lastyear { background: #fff9ef; border: 1px solid #e5d8ac; border-left: 4px solid #c9a04b; border-radius: 10px; padding: 0.9rem 1.05rem; margin: 0 0 0.9rem; }
.fmt-lastyear__body { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; justify-content: space-between; }
.fmt-lastyear__hd { flex: 1 1 24rem; min-width: 0; }
.fmt-lastyear__eyebrow { display: block; font: 700 0.72rem/1 system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #a07d2a; margin-bottom: 0.35rem; }
.fmt-lastyear__title { margin: 0 0 0.35rem 0; font-family: var(--font-display, Fraunces, Georgia, serif); color: var(--primary-green); font-size: 1.1rem; }
.fmt-lastyear__note { margin: 0; color: #4a4235; font-size: 0.85rem; line-height: 1.5; }
.fmt-lastyear__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
/* Inline "Last year: <value>" hint appended to each fmt-row when a
   prior archive holds a value for that field. Small, gray, sits
   directly under the input so the operator can glance-compare
   without hunting through last year's numbers. */
.fmt-row__last { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.fmt-row--chk .fmt-row__last { display: inline-block; margin-left: 0.4rem; }

/* Format-incomplete soft banner (wizard Stage 3). Sits above the
   workbook tabs; every non-Format tab shows the nag until the operator
   either finishes Format or dismisses it for the session. Amber accent
   so it reads as a "hey — fix this soon" prompt, not a blocker. */
.fmt-banner { background: #fff8e1; border: 1px solid #f0d67a; border-left: 4px solid #c9a04b; border-radius: 8px; padding: 0.55rem 0.75rem; margin: 0.6rem 0.8rem 0; }
.fmt-banner__body { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.fmt-banner__msg { color: #4a3910; font-size: 0.9rem; line-height: 1.4; flex: 1 1 20rem; min-width: 0; }
.fmt-banner__msg b { color: #7a5f00; }
.fmt-banner__actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.fmt-banner__x { background: none; border: 0; color: #7a5f00; font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 4px; }
.fmt-banner__x:hover { background: rgba(122, 95, 0, 0.08); }

.fmt-set { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 1rem 1rem; margin: 0; }
.fmt-set > legend { font-weight: 700; color: var(--primary-green); padding: 0 0.4rem; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; }
.fmt-row { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.88rem; color: var(--ink); }
.fmt-row > span { font-weight: 600; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.02em; text-transform: uppercase; }
.fmt-row input[type="text"], .fmt-row input[type="date"], .fmt-row input[type="number"], .fmt-row select, .fmt-row textarea { padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font-size: 0.92rem; font-family: inherit; color: var(--ink); background: #fff; }
.fmt-row textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; line-height: 1.35; resize: vertical; min-height: 2.6rem; }
.fmt-row--chk { flex-direction: row; align-items: center; gap: 0.5rem; }
.fmt-row--chk input { width: 1.05rem; height: 1.05rem; }
.fmt-row--chk > span { text-transform: none; letter-spacing: 0; font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.fmt-note { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 0; }
.fmt-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; padding-top: 0.2rem; }

/* Format tab — mount points for the calc-form sections (Money, Flight,
   Calcutta) that used to live on the standalone Calc tab. Keeps the calc
   groups from bleeding into the surrounding fmt-set legend styling. */
.fmt-calc-mount { display: block; margin-top: 0.5rem; }
.fmt-calc-mount .calc__grp:last-child { margin-bottom: 0; }
.fmt-calcutta-toggle { flex-direction: row; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.fmt-calcutta-toggle > span { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.fmt-calcutta-toggle select { flex: 1 1 auto; max-width: 26rem; }

/* Course-wide cart pool on the Staff Portal (admin.html). Reuses the
   .fmt-cart / .fmt-cart-list widgets from the tournament Format tab so
   the two views look identical. */
.courseCarts { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.courseCarts .fmt-grid { max-width: 28rem; }

/* Format tab — Member cart pool (repeating card widget). */
.fmt-cart-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }
.fmt-cart { border: 1px solid var(--line); border-left: 3px solid var(--primary-green); border-radius: 8px; padding: 0.7rem 0.8rem 0.5rem; background: #fafaf7; }
.fmt-cart__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 0.7rem; }
.fmt-cart__ft { display: flex; justify-content: flex-end; margin-top: 0.4rem; }
.fmt-cart__rm { font-size: 0.82rem; padding: 0.35rem 0.75rem; }
@media (max-width: 640px) { .fmt-cart__grid { grid-template-columns: 1fr 1fr; } }

/* Check-In cart-assignment row (per team). Sits just below the ½/Full/Need
   Rental line so the operator can see billing + physical cart together. */
.ci-cartline--assign { margin-top: 0.35rem; }
.ci-cartline--assign .ci-cart-assign { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; min-width: 15rem; }

/* Format tab — Extras editor. Each extra is a name+price row with a
   Remove button on the right; layout mirrors .fmt-cart for visual
   consistency but is a simpler two-column grid. */
.fmt-extras { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.4rem 0; }
.fmt-extra { border: 1px solid var(--line); border-left: 3px solid var(--primary-green); border-radius: 8px; padding: 0.55rem 0.8rem; background: #fafaf7; display: grid; grid-template-columns: 2fr 1fr auto auto auto; grid-template-areas: "name price track save remove" "status status status status status"; gap: 0.55rem 0.7rem; align-items: end; }
.fmt-extra .fmt-row { margin: 0; }
.fmt-extra__name   { grid-area: name; }
.fmt-extra__price  { grid-area: price; }
.fmt-extra__track  { grid-area: track; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.fmt-extra__track input { margin: 0; }
.fmt-extra__save   { grid-area: save; font-size: 0.82rem; padding: 0.4rem 0.85rem; }
.fmt-extra__rm     { grid-area: remove; font-size: 0.82rem; padding: 0.35rem 0.75rem; }
.fmt-extra__status { grid-area: status; font-size: 0.82rem; color: var(--muted, #7a7663); min-height: 1.05rem; margin-top: 0.15rem; }
.fmt-extra__status.is-ok { color: var(--primary-green, #17472A); font-weight: 700; }
.fmt-extra__status.is-error { color: var(--danger, #b11e2d); font-weight: 700; }
@media (max-width: 640px) {
  .fmt-extra { grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "price track" "save remove" "status status"; }
}

/* Check-In — per-player extras checkboxes. Same pill shape as .ci-meal;
   wraps below the name if there are many extras on narrow cards. */
.ci-p__extras { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.ci-extra { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.45rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.72rem; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.ci-extra input { margin: 0; }
.ci-extra:has(input:checked) { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.ci-extra small { font-weight: 500; opacity: 0.85; }
/* Hide the per-player extras block when the tournament has no configured
   extras — the render loop leaves the empty block out, but the CSS class
   is here for the "no extras yet" empty-state hiding. */
.ci-p__extras:empty { display: none; }

/* People page — dense filterable table. */
.ppl-bar { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.4rem 0 0.8rem; }
.ppl-search { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.ppl-alpha { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.ppl-alpha__btn { padding: 0.3rem 0.55rem; border: 1px solid var(--line); background: #fff; border-radius: 6px; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--muted); cursor: pointer; min-width: 2rem; }
.ppl-alpha__btn.is-active { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.ppl-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ppl-fchip { padding: 0.35rem 0.7rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.ppl-fchip.is-active { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.ppl-help { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.7rem; }
.ppl-status { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0; font-weight: 600; }
.ppl-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.ppl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ppl-table th, .ppl-table td { padding: 0.5rem 0.7rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); vertical-align: middle; }
.ppl-table th { background: #f6f5ee; font-weight: 700; color: var(--primary-green); font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }
.ppl-row { cursor: pointer; transition: background 0.1s; }
.ppl-row:hover { background: #fafaf3; }
.ppl-row.is-dim { opacity: 0.35; }
.ppl-row.is-dupe { background: rgba(255, 200, 120, 0.14); }
.ppl-row.is-dupe:hover { background: rgba(255, 200, 120, 0.28); }
.ppl-badge { font-size: 0.7rem; padding: 0.08rem 0.4rem; border-radius: 4px; background: var(--primary-green); color: #fff; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-left: 0.35rem; vertical-align: middle; }
.ppl-flag { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.ppl-flag--miss { background: #f8e0c8; color: #8a4a10; }
.ppl-flag--dupe { background: #c00; color: #fff; border: 0; cursor: pointer; }
.ppl-flag--dupe:hover { background: #8a0000; }

.ppl-merge { display: flex; flex-direction: column; gap: 0.4rem; }
.ppl-merge__row { display: grid; grid-template-columns: 6rem 1fr; gap: 0.6rem; align-items: start; padding: 0.4rem 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.ppl-merge__lbl { font-weight: 700; color: var(--primary-green); font-size: 0.85rem; }
.ppl-merge__opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ppl-merge__opt { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.88rem; padding: 0.2rem 0.4rem; border-radius: 4px; background: #fafaf3; }
.ppl-merge__opt input { margin: 0; }

/* Staff-portal — Printer reference page (admin-printer.html). Reuses the
   .ppl-status message pattern; everything else is prefixed .prtr-* so
   there's no bleed into other admin pages. */
/* Small in-UI hint that names the correct printer tray + driver preset
   for a given print flow. Sits directly under the print toolbar so the
   operator sees it before clicking Print. Amber left border matches the
   printer-reference warning banner so the visual language is consistent
   across the app: "amber = printer physical-world caution". */
.pr-print-hint { margin: 0.35rem 0 0.65rem; padding: 0.45rem 0.7rem; background: #fff7d6; border: 1px solid #d4a017; border-left: 4px solid #b8860b; border-radius: 6px; font-size: 0.82rem; color: #4a3300; line-height: 1.4; }
.pr-print-hint b { color: #6b4d00; }
.pr-print-hint a { color: #6b4d00; text-decoration: underline; font-weight: 700; }
.prtr-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; margin: 0 0 1rem; padding: 0.75rem 1rem; background: #fbfaf3; border: 1px solid var(--line); border-left: 4px solid var(--primary-green); border-radius: 8px; }
.prtr-actions__note { margin: 0; font-size: 0.82rem; color: var(--muted); }
.prtr-warn { border: 1px solid #d4a017; background: #fff7d6; border-left: 5px solid #b8860b; border-radius: 8px; padding: 0.85rem 1rem; margin: 0 0 1.1rem; }
.prtr-warn__hdr { margin: 0 0 0.4rem; color: #6b4d00; font-size: 1rem; letter-spacing: 0.02em; }
.prtr-warn__list { margin: 0; padding-left: 1.2rem; }
.prtr-warn__list li { color: #4a3300; font-weight: 600; line-height: 1.4; margin: 0.2rem 0; }
.prtr-set { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem 1rem; background: #fff; margin: 0 0 1rem; }
.prtr-set--scorecards { border-left: 4px solid var(--primary-green); background: #fbfaf3; }
.prtr-set__hdr { margin: 0 0 0.6rem; color: var(--primary-green); font-size: 1.02rem; letter-spacing: 0.02em; }
.prtr-dev { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.2rem; row-gap: 0.35rem; margin: 0; font-size: 0.92rem; }
.prtr-dev dt { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; align-self: center; }
.prtr-dev dd { margin: 0; color: var(--ink); font-weight: 600; }
.prtr-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.prtr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prtr-table th, .prtr-table td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); vertical-align: top; }
.prtr-table thead th { background: #f6f5ee; font-weight: 700; color: var(--primary-green); font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }
.prtr-table tbody th { background: #fafaf3; color: var(--ink); font-weight: 700; }
.prtr-table tr:last-child td, .prtr-table tr:last-child th { border-bottom: none; }
.prtr-steps { margin: 0; padding-left: 1.3rem; }
.prtr-steps li { line-height: 1.5; margin: 0.35rem 0; }
.prtr-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.prtr-links li { padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: #fafaf3; }
.prtr-links a { font-weight: 700; color: var(--primary-green); text-decoration: underline; }
.prtr-links__note { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--muted); }
/* Muted "TBD" placeholder pill — makes unfilled JSON fields visually
   obvious so the pro shop sees what still needs a value. */
.prtr-tbd { display: inline-block; padding: 0.05rem 0.45rem; border: 1px dashed var(--muted); border-radius: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.ppl-status.is-error { color: var(--red-deep); font-weight: 700; }
@media (max-width: 540px) { .prtr-dev { grid-template-columns: 1fr; column-gap: 0; row-gap: 0.05rem; } .prtr-dev dt { margin-top: 0.4rem; } }

/* Check-In: team-merge preview inside the merge modal. */
.ci-merge-preview { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px dashed rgba(0,0,0,0.1); }
.ci-merge-preview__list { list-style: none; padding: 0; margin: 0.3rem 0 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ci-merge-preview__list li { padding: 0.25rem 0.55rem; background: #fafaf3; border: 1px solid var(--line); border-radius: 6px; font-size: 0.88rem; font-weight: 600; }
.ci__merge { padding: 0.25rem 0.55rem; font-size: 0.82rem; background: #fff; border: 1px solid var(--primary-green); color: var(--primary-green); border-radius: 6px; cursor: pointer; }
.ci__merge:hover { background: var(--primary-green); color: #fff; }

/* Check-In: hide per-player Meals input + extra-meals summary bits when
   Format's "Extra Meals Enabled" checkbox is off. See the double-gate
   block below (near .ci-meal + body.tw-single-wave) — no duplicate
   rules here; keep it in one place. */

/* Single-wave tournaments (Format Waves = 1): no AM/PM chips, no per-team
   wave dropdown — there's only one shotgun so any of those controls just
   confuses operators. Everything is driven by the Format tab.
   Gated TWO ways for reliability:
     .ci--single-wave — applied by _applyCheckinFeatureFlags after config
     body.tw-single-wave — applied synchronously at page load
   Body-class hides the UI IMMEDIATELY without waiting for the config fetch.
   No flash of unwanted controls on slow networks. */
.wb-sheet[data-sheet="check"].ci--single-wave #ciWaveFilterGroup,
body.tw-single-wave #ciWaveFilterGroup { display: none !important; }
.wb-sheet[data-sheet="check"].ci--single-wave .ci-card__start,
body.tw-single-wave .ci-card__start { display: none !important; }

/* Meals are Founders-only. Same double-gate — .ci--no-meals from JS +
   body.tw-single-wave synchronously so per-team Meal inputs never flash. */
.wb-sheet[data-sheet="check"].ci--no-meals .ci-meal,
body.tw-single-wave .ci-meal { display: none !important; }
.wb-sheet[data-sheet="check"].ci--no-meals .ci-extra-meals-line,
.wb-sheet[data-sheet="check"].ci--no-meals .ci-cartline--meal,
body.tw-single-wave .ci-extra-meals-line,
body.tw-single-wave .ci-cartline--meal { display: none !important; }

/* Founders is the only tournament that runs two shotgun waves. On every
   other workbook, hide the Shotgun starts picker + AM/PM time inputs on
   the Format tab — those controls are dead there and just tempt operators
   to touch settings that don't do anything. Founders keeps them. */
body.tw-single-wave .fmt-grid--shot { display: none; }

/* Meals are also Founders-only. Hide the Format tab's "Extra Meals" toggle
   on every other workbook so nobody can turn it on and expect it to do
   anything — the runtime ignores the field for non-Founders. */
body.tw-single-wave #fmtExtraMealsRow { display: none; }

/* Single-round tournaments (every F&H event except Founders) don't need a
   Day 2 tab on the Scores page — one round, one day. Hide it so operators
   can't enter Day 2 scores by mistake. Founders keeps both. */
body.tw-single-wave #scTabD2 { display: none; }

/* Calcutta is Founders-only. Hide the entire Calcutta fieldset on the
   Format tab for every other tournament — dead control otherwise. The
   Calcutta / Calcutta Buyers / Calcutta Disp WORKBOOK tabs are hidden
   via the JS _applyCalcuttaVisibility path. Format tab shows the
   Calcutta fieldset for every tournament so operators can toggle it on/
   off + tune the handicap math without a Founders-only workbook. */

/* Payout tab wave-collapsed buttons. Founders (multi-wave) needs both
   AM and PM Print/Payout Calcutta buttons; single-shotgun tournaments
   fold them into one "Print checks" + "Payout Calcutta" pair. Class
   pair mirrors tw-founders / tw-single-wave body classes so the swap
   is pure CSS (no JS visibility rewrite each mount). */
body.tw-single-wave .tw-multi-wave-only,
body.tw-founders .tw-single-wave-only { display: none !important; }

/* Pairings single-day mode: driven by Format's Rounds field. Hide every
   Day 2 control so operators of one-day tournaments never see a Day 2
   tab, autofill, or print button they'd have to ignore. */
#twPairings.pr--single-day .pr-day-tabs { display: none; }
#twPairings.pr--single-day #prAutofillD2,
#twPairings.pr--single-day #prPrintTeeD2,
#twPairings.pr--single-day #prPrintCardsAmD2,
#twPairings.pr--single-day #prPrintCardsPmD2 { display: none !important; }

/* Single-wave tournaments (1 shotgun, everyone at once) — the AM/PM print
   dropdown has no meaning, so hide it. _syncPrCardsButtons also hides
   the PM score-card buttons and relabels the AM one to plain
   "Print Score Cards". */
#twPairings.pr--single-wave #prPrintWhich { display: none !important; }

/* Hero cart-demand summary — sits under the subtitle when Check-In has
   real rental demand or borrowed member carts to plan. */
.hero__cartdemand { margin: 0.3rem 0 0; font-size: 0.95rem; font-weight: 600; color: #f4e4b8; letter-spacing: 0.01em; }
.hero__cartdemand b { color: #ffe28a; font-weight: 800; }

/* Check-In Rentals-needed dropdown — reuse the pill look of Need Rental
   but with a compact select control. */
.ci-check--need select.ci-cart-need { padding: 0.2rem 0.35rem; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 0.82rem; background: #fff; }

/* ============================================================================
   Pin Prizes tab — prize pool + master list + card deck.
   Concept + sizing borrowed from the Haxtun Bulldog Football scramble spec;
   palette + logo use F&H's own tokens. Print layout: master list on 1
   letter page portrait, card deck 5"x5" two-up per letter page portrait,
   red top bar + dashed side/bottom borders as the trim guide.
   ============================================================================ */
.pp-pool { border: 1px solid var(--line, #e6e2d8); border-radius: 12px; padding: 0.9rem 1rem 1rem; background: var(--paper-2, #faf7ef); margin: 0.5rem 0 1rem; }
.pp-add { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto auto; gap: 0.55rem; align-items: end; }
@media (max-width: 900px) { .pp-add { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .pp-add { grid-template-columns: 1fr; } }
.pp-add__field { display: block; }
.pp-add__field span { display: block; font: 700 0.66rem/1 system-ui, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted, #7a7663); margin-bottom: 0.25rem; }
.pp-add__field input { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--line, #e6e2d8); border-radius: 8px; font: inherit; }
.pp-add__field input[type="file"] { padding: 0.3rem 0; font: 0.85rem system-ui, sans-serif; }
.pp-add__preview { width: 2.75rem; height: 2.75rem; border: 1px dashed var(--line, #e6e2d8); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pp-add__preview:not(:empty) { border-style: solid; }
.pp-add__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; min-height: 2rem; }
.pp-chip { position: relative; padding: 0.5rem 0.75rem 0.55rem; border: 1.5px solid var(--line, #e6e2d8); background: #fff; border-radius: 10px; cursor: grab; user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05); min-width: 8rem; max-width: 14rem; }
.pp-chip:active { cursor: grabbing; }
.pp-chip.is-dragging { opacity: 0.4; }
.pp-chip.is-assigned { opacity: 0.55; background: var(--paper-2, #faf7ef); }
.pp-chip__photo { display: block; width: 100%; max-width: 8rem; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 0.4rem; background: #f6f4ef; }
.pp-chip__prize { font-weight: 700; color: #222; font-size: 0.95rem; line-height: 1.15; }
.pp-chip__sponsor { display: block; font: 700 0.7rem/1.2 system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-deep, #7a1a1a); margin-top: 0.15rem; }
.pp-chip__donor { display: block; font: 500 0.7rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted, #7a7663); margin-top: 0.1rem; }
.pp-chip__rm { position: absolute; top: 2px; right: 4px; background: none; border: none; color: var(--muted, #999); font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 2px 5px; border-radius: 4px; }
.pp-chip__rm:hover { color: var(--red-deep, #7a1a1a); background: #fbe6e6; }
.pp-chip__edit { position: absolute; top: 4px; right: 26px; background: none; border: none; color: var(--muted, #999); font: 700 0.62rem/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 2px 5px; border-radius: 4px; }
.pp-chip__edit:hover { color: var(--primary-green, #1B5E20); background: #eaf3ea; }
.pp-add--editing, .au-add--editing { border-left: 4px solid var(--brass, #a37f30); padding-left: 0.85rem; }
.pp-chip__empty { color: var(--muted, #7a7663); font-style: italic; font-size: 0.9rem; }

.pp-h { margin: 1rem 0 0.35rem 0; font-family: Fraunces, Georgia, serif; color: var(--primary-green, #1B5E20); font-size: 1.1rem; }
.pp-note { color: var(--muted, #7a7663); font-size: 0.88rem; margin: 0 0 0.6rem 0; }
.pp-master { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-top: 0.5rem; }
.pp-master th, .pp-master td { text-align: left; padding: 0.45rem 0.55rem; border-top: 1px solid var(--line, #e6e2d8); vertical-align: top; }
.pp-master thead th { font: 700 0.72rem/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #7a7663); border-top: none; border-bottom: 2px solid var(--line, #e6e2d8); }
.pp-master td.pp-em { color: var(--muted, #7a7663); font-style: italic; }
.pp-master .pp-master__contest { min-width: 9rem; }
.pp-master .pp-master__spon strong { display: block; color: var(--red-deep, #7a1a1a); font: 700 0.78rem/1.2 system-ui, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.pp-master .pp-master__spon small { color: var(--muted, #7a7663); font: 500 0.78rem/1.2 ui-monospace, monospace; }

/* Card deck grid — 2 columns on screen, 1 column on narrow, 5"x5" in print. */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.5rem; }
@media (max-width: 700px) { .pcards { grid-template-columns: 1fr; } }
.pcard { position: relative; background: #fff; border: 1px solid var(--line, #e6e2d8); border-top: 5px solid var(--red, #c8102e); border-radius: 6px; padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; min-height: 22rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.pcard.is-drop-target { outline: 2px dashed var(--red, #c8102e); outline-offset: 3px; }
.pcard__logo { position: absolute; top: 0.6rem; right: 0.6rem; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1.5px var(--brass, #a37f30); background: #fff; }
.pcard__rail { font: 700 0.55rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #7a7663); padding-right: 3.5rem; }
.pcard__holeline { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.55rem; padding-bottom: 0.55rem; border-bottom: 2px solid #000; }
.pcard__holecell { display: flex; align-items: baseline; gap: 0.35rem; }
.pcard__holelbl { font: 700 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #222; }
.pcard__holenum { font: 500 40px/1 Georgia, serif; color: var(--red, #c8102e); font-variant-numeric: tabular-nums; }
.pcard__contest { flex: 1; text-align: right; font: 700 0.95rem/1.1 system-ui, sans-serif; text-transform: uppercase; color: #222; letter-spacing: 0.03em; }
.pcard__photo { display: flex; justify-content: center; align-items: center; margin: 0.65rem 0 0.15rem 0; }
.pcard__photo img { max-width: 100%; max-height: 5.5rem; object-fit: contain; border-radius: 4px; background: #fff; }
.pcard__prize { text-align: center; margin: 0.55rem 0 0.35rem 0; font: 700 20px/1.15 system-ui, sans-serif; color: #222; }
.pcard__thanks { text-align: center; margin: 0 0 0.15rem 0; font: 400 italic 0.9rem/1 Georgia, serif; color: var(--muted, #7a7663); }
.pcard__sponsor { text-align: center; margin: 0.15rem 0 0.35rem 0; font: 800 1.5rem/1.1 system-ui, sans-serif; text-transform: uppercase; color: var(--red, #c8102e); letter-spacing: 0.02em; }
.pcard__donor { text-align: center; margin: 0; font: 500 0.68rem/1.15 ui-monospace, monospace; text-transform: uppercase; color: var(--muted, #7a7663); letter-spacing: 0.08em; }
.pcard__space { flex: 1; min-height: 1in; }
.pcard__tools { border-top: 1px dashed var(--line, #e6e2d8); padding-top: 0.55rem; margin-top: 0.55rem; display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.pcard__tools label { display: block; font: 700 0.62rem/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #7a7663); }
.pcard__tools select, .pcard__tools input { width: 100%; padding: 0.4rem 0.55rem; border: 1px solid var(--line, #e6e2d8); border-radius: 6px; font: inherit; font-size: 0.88rem; }

/* Master-list print — only #ppMasterWrap survives, portrait letter, 0.4in margins. */
@media print {
  body.pp-print-master #twPinPrizes .noms__bar,
  body.pp-print-master #twPinPrizes .scaffold__desc,
  body.pp-print-master #twPinPrizes #ppPool,
  body.pp-print-master #twPinPrizes .pp-h + .pp-note,
  body.pp-print-master #twPinPrizes .pcards,
  body.pp-print-master #twPinPrizes .pp-h:nth-of-type(2) { display: none !important; }
  body.pp-print-master .nav, body.pp-print-master .hero, body.pp-print-master .site-footer,
  body.pp-print-master .wb-tabs, body.pp-print-master .wb-sheet:not(#twPinPrizes),
  body.pp-print-master .notice { display: none !important; }
  body.pp-print-master #twPinPrizes { padding: 0; }
  @page { size: letter portrait; margin: 0.4in; }
}
/* Card-deck print — 5"x5" per card, 2 per portrait letter page. */
body.pp-print-cards { background: #fff; }
@media print {
  body.pp-print-cards .nav, body.pp-print-cards .hero, body.pp-print-cards .site-footer,
  body.pp-print-cards .wb-tabs, body.pp-print-cards .wb-sheet:not(#twPinPrizes),
  body.pp-print-cards .notice,
  body.pp-print-cards #twPinPrizes .noms__bar,
  body.pp-print-cards #twPinPrizes .scaffold__desc,
  body.pp-print-cards #twPinPrizes #ppPool,
  body.pp-print-cards #twPinPrizes #ppMasterWrap,
  body.pp-print-cards #twPinPrizes .pp-h,
  body.pp-print-cards #twPinPrizes .pp-note { display: none !important; }
  body.pp-print-cards .pcard__tools { display: none !important; }
  body.pp-print-cards .pcards { display: block !important; margin: 0; padding: 0; }
  body.pp-print-cards .pcard {
    width: 5in; height: 5in; margin: 0 auto 0.15in auto;
    border: 1px dashed #666 !important; border-top: 5px solid var(--red, #c8102e) !important;
    border-radius: 0; box-shadow: none; page-break-inside: avoid; break-inside: avoid;
    display: flex; flex-direction: column;
  }
  /* Prize photo on the 5x5 print card — kept short so the sponsor line
     underneath doesn't crowd off the bottom edge. Forces color/image
     print in Chromium so the photo actually reaches the paper. */
  body.pp-print-cards .pcard__photo img {
    max-height: 1.3in;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.pp-print-cards .pcard:nth-of-type(2n) { page-break-after: always; break-after: page; }
  @page { size: letter portrait; margin: 0.4in; }
}

/* Donors tab — sponsor wall (workbook + public recap page share tile styles). */
/* Named-area grid so the identity fields (Name, Website) get wider
   columns than the shorter money/tier fields. Old layout was five equal
   1fr tracks — Sponsor Name and Website were roughly one-third the width
   of Tier, cutting labels off ("SPONSOR / NAME **") and only showing a
   few characters of the actual value. */
.dn-add {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.4fr) auto;
  grid-template-areas:
    "name    tier    amount  thanks  contact  paid"
    "website website logo    logo    preview  submit";
  gap: 0.7rem 0.85rem;
  align-items: end;
}
.dn-add__field--name    { grid-area: name; }
.dn-add__field--tier    { grid-area: tier; }
.dn-add__field--amount  { grid-area: amount; }
.dn-add__field--thanks  { grid-area: thanks; }
.dn-add__field--contact { grid-area: contact; }
.dn-add__field--paid    { grid-area: paid; align-self: end; padding-bottom: 0.55rem; }
.dn-add__field--website { grid-area: website; }
.dn-add__field--logo    { grid-area: logo; }
.dn-add__preview        { grid-area: preview; }
.dn-add__actions        { grid-area: submit; align-self: end; display: flex; flex-direction: column; gap: 0.35rem; }
.dn-add__actions .btn   { width: 100%; }
/* Editing state: the whole form gets a soft amber left border so the
   operator can't miss that the primary button will overwrite an
   existing sponsor instead of appending a fresh one. */
.dn-add--editing { border-left: 4px solid var(--brass, #a37f30); padding-left: 0.85rem; }
@media (max-width: 900px) {
  .dn-add {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name    name"
      "tier    amount"
      "thanks  contact"
      "paid    paid"
      "website website"
      "logo    preview"
      "submit  submit";
  }
}
@media (max-width: 560px) {
  .dn-add {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "tier" "amount" "thanks" "contact" "paid" "website" "logo" "preview" "submit";
  }
}
.dn-add__field { display: block; min-width: 0; }
.dn-add__field span { display: block; font: 700 0.66rem/1 system-ui, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted, #7a7663); margin-bottom: 0.25rem; white-space: nowrap; }
.dn-add__field input[type="text"] { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--line, #e6e2d8); border-radius: 8px; font: inherit; }
.dn-add__field select { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--line, #e6e2d8); border-radius: 8px; font: inherit; background: #fff; }
.dn-add__field--name span::after { content: " *"; color: var(--red-deep, #7a1a1a); }
.dn-add__field--logo input[type="file"] { font: 0.85rem system-ui, sans-serif; }
.dn-add__logo-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dn-add__logo-row .btn--small { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.dn-add__preview { width: 3.25rem; height: 3.25rem; border: 1px dashed var(--line, #e6e2d8); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.dn-add__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dn-h { margin: 1rem 0 0.35rem 0; font-family: Fraunces, Georgia, serif; color: var(--primary-green, #1B5E20); font-size: 1.1rem; }
.dn-note { color: var(--muted, #7a7663); font-size: 0.85rem; margin: 0 0 0.65rem 0; }
.dn-empty { color: var(--muted, #7a7663); font-style: italic; padding: 1rem; background: #faf8f2; border-radius: 8px; }
.dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.dn-tile { display: grid; grid-template-columns: 4.25rem 1fr; grid-template-rows: auto auto; gap: 0.5rem 0.75rem; align-items: start; padding: 0.75rem; border: 1px solid var(--line, #e6e2d8); border-radius: 10px; background: #fff; cursor: grab; user-select: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.dn-tile:active { cursor: grabbing; }
.dn-tile.is-dragging { opacity: 0.4; }
.dn-tile.is-drop-target { outline: 2px dashed var(--primary-green, #1B5E20); outline-offset: 2px; box-shadow: 0 4px 10px rgba(23,71,42,0.15); }
body.theme-fire .dn-tile.is-drop-target { outline-color: #c8102e; box-shadow: 0 4px 10px rgba(200,16,46,0.2); }
.dn-tile__body, .dn-tile__site a, .dn-tile__actions button, .dn-tile__paid { cursor: default; }
.dn-tile__site a, .dn-tile__actions button, .dn-tile__paid { user-select: auto; }
.dn-tile__logo { grid-row: 1 / span 2; width: 4.25rem; height: 4.25rem; border-radius: 8px; overflow: hidden; background: #f7f4ea; display: flex; align-items: center; justify-content: center; }
.dn-tile__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dn-tile__logo--empty { color: var(--primary-green, #1B5E20); font: 700 1.6rem/1 Fraunces, Georgia, serif; }
.dn-tile__body { min-width: 0; }
.dn-tile__name { margin: 0 0 0.15rem 0; font: 700 1rem/1.2 system-ui, sans-serif; color: var(--ink, #2a2418); word-wrap: break-word; }
.dn-tile__chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.15rem 0 0.3rem; }
.dn-tile__tier { display: inline-block; padding: 0.12rem 0.5rem; border-radius: 999px; font: 700 0.68rem/1.4 system-ui, sans-serif; letter-spacing: 0.04em; background: var(--red-deep, #7a1a1a); color: #fff; }
.dn-tile__amt { display: inline-block; padding: 0.12rem 0.5rem; border-radius: 999px; font: 700 0.68rem/1.4 system-ui, sans-serif; letter-spacing: 0.04em; background: var(--primary-green, #1B5E20); color: #fff; }
.dn-tile__thanks { margin: 0 0 0.25rem 0; font-size: 0.85rem; color: var(--ink, #2a2418); line-height: 1.35; }
.dn-tile__contact { margin: 0; font-size: 0.78rem; color: var(--muted, #7a7663); }
.dn-tile__paid { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font: 800 0.68rem/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; user-select: none; border: 1px solid transparent; }
.dn-tile__paid--on  { background: #17472A; color: #fff; }
.dn-tile__paid--on:hover  { background: #0d3018; }
.dn-tile__paid--off { background: #fbe9ec; color: #b11e2d; border-color: rgba(177,30,45,0.35); }
.dn-tile__paid--off:hover { background: #b11e2d; color: #fff; }
.dn-add__field--chk { display: inline-flex; align-items: center; gap: 0.4rem; }
.dn-add__field--chk input[type="checkbox"] { width: 1rem; height: 1rem; }
.dn-add__field--chk span { display: inline; font-weight: 700; color: var(--ink, #2a2418); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; margin: 0; }
.dn-tile__site { margin: 0.35rem 0 0; font-size: 0.82rem; }
.dn-tile__site a { color: var(--primary-green, #17472A); font-weight: 700; text-decoration: none; word-break: break-all; }
.dn-tile__site a:hover { text-decoration: underline; }
.donor__site { margin: 0.4rem 0 0; font-size: 0.85rem; }
.donor__site a { color: var(--gold, #f5c542); font-weight: 700; text-decoration: none; word-break: break-all; }
.donor__site a:hover { text-decoration: underline; }
body.theme-fire .donor__site a { color: #fff; }

/* ===================== Auction (workbook tab) ===================== */
/* Named grid areas so the form reads clearly at any width:
     row 1: [ Item * ]  [ Donor ]  [ Floor $ ]
     row 2: [ Description spans all 3 ]
     row 3: [ Photo ]   [ preview ]  [ Add item ]
   Under 720px it stacks one field per row. */
.au-add { display: grid; grid-template-columns: 2fr 1.4fr 6rem; grid-template-areas: "name donor floor" "desc desc desc" "photo preview submit"; gap: 0.75rem 1rem; align-items: end; padding: 1rem; background: #faf8f2; border: 1px solid var(--line, #e6e2d8); border-radius: 10px; margin-bottom: 1.25rem; }
.au-add__field--name { grid-area: name; }
.au-add__field--floor { grid-area: floor; }
.au-add__field--desc { grid-area: desc; }
.au-add__field--photo { grid-area: photo; }
.au-add__preview { grid-area: preview; align-self: end; }
.au-add__submit { grid-area: submit; align-self: end; }
.au-add > .au-add__field:not(.au-add__field--name):not(.au-add__field--floor):not(.au-add__field--desc):not(.au-add__field--photo) { grid-area: donor; }
@media (max-width: 720px) {
  .au-add { grid-template-columns: 1fr; grid-template-areas: "name" "donor" "floor" "desc" "photo" "preview" "submit"; }
}
.au-add__field { display: block; min-width: 0; }
.au-add__field span { display: block; font: 700 0.78rem/1.2 system-ui, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink, #2a2418); margin-bottom: 0.35rem; }
.au-add__field input[type="text"], .au-add__field input[type="number"] { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line, #e6e2d8); border-radius: 8px; font: inherit; font-size: 0.95rem; background: #fff; }
.au-add__field input:focus { outline: 2px solid var(--primary-green, #1B5E20); outline-offset: 1px; }
.au-add__field--name span::after { content: " *"; color: var(--red-deep, #7a1a1a); }
.au-add__field--photo input[type="file"] { font: 0.85rem system-ui, sans-serif; padding: 0.35rem 0; }
.au-add__preview { min-width: 3.25rem; min-height: 3.25rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.au-add__preview:empty { border: 1px dashed var(--line, #e6e2d8); border-radius: 8px; background: #fff; }
.au-add__pending { position: relative; width: 3.25rem; height: 3.25rem; border: 1px solid var(--line, #e6e2d8); border-radius: 8px; overflow: hidden; background: #fff; display: block; }
.au-add__pending img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-add__pendingrm { position: absolute; top: -0.35rem; right: -0.35rem; width: 1.1rem; height: 1.1rem; padding: 0; border-radius: 999px; border: 1px solid rgba(0,0,0,0.25); background: #fff; color: #444; font: 700 0.85rem/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.au-add__pendingrm:hover { background: #c8102e; color: #fff; border-color: #7a1a1a; }
.au-clerk__thumbwrap { position: relative; display: inline-block; flex-shrink: 0; }
.au-clerk__thumbplus { position: absolute; right: -0.25rem; bottom: -0.25rem; background: rgba(27,94,32,0.95); color: #fff; font: 700 0.65rem/1 system-ui, sans-serif; padding: 0.1rem 0.3rem; border-radius: 999px; letter-spacing: 0.02em; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.au-add__submit .btn { width: 100%; }
/* Fire theme swaps the panel accent to red so the workbook operator
   sees at a glance that this is the Fire-only tab. */
body.theme-fire .au-add { border-left: 4px solid #c8102e; }
body.theme-fire .au-add__field input:focus { outline-color: #c8102e; }
.au-h { margin: 1rem 0 0.35rem 0; font-family: Fraunces, Georgia, serif; color: var(--primary-green, #1B5E20); font-size: 1.1rem; }
.au-note { color: var(--muted, #7a7663); font-size: 0.85rem; margin: 0 0 0.65rem 0; }
.au-empty { color: var(--muted, #7a7663); font-style: italic; padding: 1rem; background: #faf8f2; border-radius: 8px; }
.au-clerk { display: flex; flex-direction: column; gap: 0.4rem; }
.au-clerk__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) minmax(0, 2.2fr) auto;
  grid-template-areas: "item bid acts";
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line, #e6e2d8);
  border-radius: 10px;
}
.au-clerk__close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(200, 16, 46, 0.35);
  background: rgba(200, 16, 46, 0.08);
  color: #c8102e;
  border-radius: 50%;
  font: 800 1.05rem/1 system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.au-clerk__close:hover, .au-clerk__close:focus-visible {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
  outline: none;
}
.btn.au-clerk__remove {
  background: #fff;
  color: #c8102e;
  border: 1px solid rgba(200, 16, 46, 0.4);
  font-weight: 800;
}
.btn.au-clerk__remove:hover, .btn.au-clerk__remove:focus-visible {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}
.au-clerk__row.is-sold { background: rgba(27, 94, 32, 0.05); border-left: 4px solid var(--primary-green, #1B5E20); }
.au-clerk__itemcell { grid-area: item; display: flex; gap: 0.5rem; align-items: center; min-width: 0; padding-top: 0.55rem; }
.au-clerk__thumb { width: 3rem; height: 3rem; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.au-clerk__itemtxt { min-width: 0; }
.au-clerk__itemname { font-weight: 700; color: var(--ink, #2a2418); overflow: hidden; text-overflow: ellipsis; }
.au-clerk__itemmeta { font-size: 0.78rem; color: var(--muted, #7a7663); }
.au-clerk__bid {
  grid-area: bid;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "buyer amount"
    "email phone";
  gap: 0.55rem 0.6rem;
}
.au-clerk__field { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.au-clerk__field > span {
  font: 800 0.62rem/1 system-ui, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted, #7a7663);
}
.au-clerk__field input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line, #e6e2d8);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.au-clerk__field--buyer { grid-area: buyer; }
.au-clerk__field--amount { grid-area: amount; }
.au-clerk__field--amount input { font-weight: 800; font-size: 1.05rem; text-align: right; }
.au-clerk__field--email { grid-area: email; }
.au-clerk__field--phone { grid-area: phone; }
.au-clerk__acts { grid-area: acts; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; padding-top: 1.05rem; }
.au-clerk__hint { font-size: 0.75rem; color: var(--muted, #7a7663); font-style: italic; }
.au-clerk__sent { grid-column: 1 / -1; font-size: 0.72rem; color: var(--primary-green, #1B5E20); font-weight: 700; padding-top: 0.15rem; }
.au-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.au-total { padding: 0.7rem 0.9rem; border: 1px solid var(--line, #e6e2d8); border-left: 4px solid var(--red-deep, #7a1a1a); border-radius: 10px; background: #fff; }
.au-total__l { font: 700 0.65rem/1 system-ui, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted, #7a7663); }
.au-total__n { font-family: Fraunces, Georgia, serif; font-weight: 800; color: var(--primary-green, #1B5E20); font-size: 1.5rem; margin-top: 0.2rem; }
@media (max-width: 900px) {
  .au-clerk__row { grid-template-columns: 1fr; grid-template-areas: "item" "bid" "acts"; }
  .au-clerk__itemcell { padding-top: 0; }
  .au-clerk__acts { padding-top: 0; justify-content: flex-start; }
}
@media (max-width: 520px) {
  .au-clerk__bid { grid-template-columns: 1fr; grid-template-areas: "buyer" "amount" "email" "phone"; }
  .au-clerk__field--amount input { text-align: left; }
}
/* Fire tab highlight — the Auction tab lives here so it deserves a
   red accent on the workbook tab bar, matching the theme. The active
   tab needs the full color-set (background + text + border + inset
   box-shadow) overridden because the default active state uses
   var(--primary-green) for all four; without every override the
   green line-under-tab stays. */
body.theme-fire .wb-tab.wb-tab--fire { color: #7a0a1a; }
body.theme-fire .wb-tab.is-active { background: #fff !important; color: #c8102e !important; border-color: #c8102e !important; box-shadow: inset 0 3px 0 #c8102e !important; }
body.theme-fire .wb-tabs { border-bottom-color: #c8102e !important; }

/* Per-tab step-by-step instructions. Any tab that needs a quick
   "how to use this" for a first-time operator drops an <ol class=
   "tab-howto"> right below the noms__bar. Reads as a numbered list
   with subtle background so it doesn't compete with the primary
   content. Fire theme flips the accent to red. */
.tab-howto { margin: 0.25rem 0 1.25rem; padding: 0.85rem 1.15rem 0.85rem 2.4rem; background: #fbf7ea; border: 1px solid var(--line, #e6e2d8); border-left: 4px solid var(--primary-green, #1B5E20); border-radius: 8px; font-size: 0.92rem; line-height: 1.45; color: var(--ink, #2a2418); }
.tab-howto li { margin: 0.15rem 0; }
.tab-howto li + li { margin-top: 0.35rem; }
.tab-howto b { color: var(--primary-green, #1B5E20); }
body.theme-fire .tab-howto { border-left-color: #c8102e; background: #fdf3f3; }
body.theme-fire .tab-howto b { color: #c8102e; }
.dn-tile__actions { grid-column: 2; justify-self: start; display: flex; gap: 0.35rem; flex-wrap: wrap; }
/* Override .btn--ghost inside the sponsor tile: the base .btn--ghost
   is white-on-transparent for dark-nav contexts, and the sponsor tile
   is a WHITE card — Edit/Remove buttons render but the text was
   invisible on invisible. Force dark ink + a visible border. */
.dn-tile__actions .btn { padding: 0.25rem 0.55rem; font-size: 0.75rem; color: var(--ink, #2a2418); border-color: var(--line, #d5cfbe); background: #fff; }
.dn-tile__actions .btn:hover { background: var(--paper-2, #faf7ef); border-color: var(--muted, #7a7663); }
.dn-tile__actions [data-dn-remove]:hover { background: #fbe6e6; border-color: rgba(177,30,45,0.45); color: var(--red-deep, #7a1a1a); }

/* Search People (staff portal quick-find) --------------------------- */
.sp-search { position: relative; max-width: 640px; margin: 0.5rem 0 0.75rem; }
.sp-search__input { width: 100%; padding: 0.7rem 0.9rem; font-size: 1rem; border: 1px solid var(--line, #d5cfbe); border-radius: 8px; background: #fff; color: var(--ink, #2a2418); box-shadow: var(--shadow-sm); }
.sp-search__input:focus { outline: none; border-color: var(--primary-green, #1B5E20); box-shadow: 0 0 0 3px rgba(27,94,32,0.15); }
.sp-results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line, #d5cfbe); border-radius: 8px; box-shadow: var(--shadow-md); max-height: 320px; overflow-y: auto; padding: 0.25rem; }
.sp-result { display: flex; flex-direction: column; gap: 0.15rem; width: 100%; text-align: left; padding: 0.55rem 0.7rem; background: transparent; border: 0; border-radius: 6px; cursor: pointer; color: var(--ink, #2a2418); font: inherit; }
.sp-result:hover, .sp-result:focus { background: var(--paper-2, #faf7ef); outline: none; }
.sp-result__name { font-weight: 600; color: var(--primary-green, #1B5E20); font-size: 0.98rem; }
.sp-result__sub { color: var(--muted, #7a7663); font-size: 0.82rem; }
.sp-result--empty { padding: 0.6rem 0.75rem; color: var(--muted, #7a7663); font-style: italic; }
.sp-badge { display: inline-block; background: var(--brass, #a37b3d); color: #fff; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.1rem 0.4rem; border-radius: 999px; vertical-align: middle; margin-left: 0.35rem; }
.sp-hint { color: var(--muted, #7a7663); font-size: 0.85rem; margin: 0.35rem 0 0; }
.sp-detail { max-width: 640px; margin: 0.75rem 0 0; background: #fff; border: 1px solid var(--line, #d5cfbe); border-top: 4px solid var(--primary-green, #1B5E20); border-radius: 8px; padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); }
.sp-detail__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.sp-detail__name { font-family: var(--font-display, Fraunces, Georgia, serif); color: var(--primary-green, #1B5E20); margin: 0; font-size: 1.2rem; }
.sp-detail__close { padding: 0.25rem 0.7rem; font-size: 0.8rem; }
.sp-detail__grid { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 0.85rem; margin: 0.35rem 0 0.75rem; font-size: 0.95rem; }
.sp-detail__grid dt { font-weight: 700; color: var(--muted, #7a7663); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; align-self: center; }
.sp-detail__grid dd { margin: 0; color: var(--ink, #2a2418); }
.sp-detail__grid dd a { color: var(--primary-green, #1B5E20); }
.sp-detail__blank { color: var(--muted, #7a7663); }
.sp-detail__foot { margin: 0.5rem 0 0; }

/* Players Admin — inline edit + delete on the portal card ---------- */
.sp-detail__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.35rem; }
.sp-detail__status { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted, #7a7663); min-height: 1.1em; }
.sp-detail__status.is-err { color: var(--red-deep, #7a1a1a); }
.sp-btn-danger { background: #fff; color: var(--red-deep, #7a1a1a); border: 1px solid rgba(177,30,45,0.45); padding: 0.35rem 0.85rem; border-radius: 6px; font: inherit; cursor: pointer; }
.sp-btn-danger:hover { background: #fbe6e6; border-color: var(--red-deep, #7a1a1a); }
.sp-edit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.55rem 0.75rem; }
.sp-edit__row { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.sp-edit__row > span { font-weight: 700; color: var(--muted, #7a7663); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.68rem; }
.sp-edit__row input[type="text"], .sp-edit__row input[type="tel"], .sp-edit__row input[type="email"], .sp-edit__row textarea { width: 100%; padding: 0.4rem 0.55rem; border: 1px solid var(--line, #d5cfbe); border-radius: 6px; font: inherit; font-size: 0.9rem; background: #fff; color: var(--ink, #2a2418); }
.sp-edit__row textarea { resize: vertical; }
.sp-edit__row--chk { flex-direction: row; align-items: center; gap: 0.4rem; }
.sp-edit__row--chk > span { text-transform: none; font-size: 0.9rem; color: var(--ink, #2a2418); letter-spacing: 0; font-weight: 500; }
.sp-edit__row--full { grid-column: 1 / -1; margin-top: 0.5rem; }

/* Non-clickable portal card (Soon scaffolds) ---------------------- */
span.pcard, .pcard--soon-card { cursor: default; opacity: 0.7; }
span.pcard:hover, .pcard--soon-card:hover { transform: none; box-shadow: var(--shadow-sm); }

/* People page Delete button ---------------------------------------- */
.ppl-btn-danger { background: #fff; color: var(--red-deep, #7a1a1a); border: 1px solid rgba(177,30,45,0.45); padding: 0.4rem 0.9rem; border-radius: 6px; font: inherit; cursor: pointer; margin-right: auto; }
.ppl-btn-danger:hover { background: #fbe6e6; border-color: var(--red-deep, #7a1a1a); }

/* Auction Start/End toggle (workbook Auction tab) ------------------ */
.au-startbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.6rem 0.85rem; margin: 0.35rem 0 0.75rem; background: var(--paper-2, #faf7ef); border: 1px dashed var(--line, #d5cfbe); border-radius: 8px; }
.au-startbar--live { background: rgba(200,16,46,0.06); border-style: solid; border-color: rgba(200,16,46,0.35); }
.au-startbtn { padding: 0.5rem 1rem; font-weight: 700; background: var(--red, #c8102e); color: #fff; border: 1px solid var(--red-deep, #7a1a1a); border-radius: 999px; cursor: pointer; }
.au-startbtn:hover { background: var(--red-deep, #7a1a1a); }
.au-startbtn--live { background: #fff; color: var(--red-deep, #7a1a1a); border-color: var(--red-deep, #7a1a1a); }
.au-startbtn--live:hover { background: #fbe6e6; }
.au-startstate { font-size: 0.85rem; color: var(--muted, #7a7663); flex: 1 1 260px; }
.au-startbar--live .au-startstate { color: var(--red-deep, #7a1a1a); }
