/* STATWIRE PGA Golf Wire (/pga) additions. The shared look (cards, obsidian tone bands, sheet) lives in league.css.
   Option #3 High-Voltage Lime & Obsidian + the PGA accent, Links Teal: #0F766E (fill), #115E59 (dark), #14B8A6 (glow),
   #CCFBF1 (soft badge), #F0FDFA (light tint). Under par = red #DC2626, over par = navy #1E3A8A. */
:root { --pg: #0F766E; --pg-dark: #115E59; --pg-glow: #14B8A6; --pg-soft: #CCFBF1; --pg-tint: #F0FDFA;
  --pg-under: #DC2626; --pg-over: #1E3A8A; --pg-line: #E3ECDA; --pg-line2: #CEDBC0; --pg-surf: #F5F8F1; --pg-best: #D9F99D; --pg-cons: #ECF7DB; }
/* the leaderboard spans the full row in the two-column tablet grid too (c12 only spans from 1024px) */
@media (min-width: 720px) { #lbCard { grid-column: 1 / -1; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* pill bars */
.pg-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 4px; background: var(--pg-surf); border: 1px solid var(--pg-line); border-radius: 10px; }
.pg-tabs .bl-pill { min-height: 34px; padding: 0 12px; border: 1px solid transparent; font: 700 11px var(--mono); letter-spacing: .05em; white-space: nowrap; text-transform: uppercase; }
.pg-tabs .bl-pill .num { font-weight: 500; opacity: .75; margin-left: 3px; }
.pg-tabs .bl-pill:hover { background: #ECF1E6; color: #0C0C11; }
.pg-tabs .bl-pill[aria-pressed="true"], .pg-tabs .bl-pill[aria-pressed="true"]:hover { background: #0C0C11; border-color: #0C0C11; color: #A3E635; }
.pg-tabs .bl-pill:focus-visible { outline: 2px solid #84CC16; outline-offset: 2px; }
.pg-tabs[hidden] { display: none; }
.pg-note { margin: 10px 0 0; font: 600 10px var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pg-note:empty { display: none; }

/* event hero (light panel with a Links Teal tint; content panels are never dark) */
.pg-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; color: #111810;
  background: linear-gradient(120deg, #F0FDFA 0%, #FFFFFF 70%); border: 1px solid #99F6E4; }
.pg-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pg-ev-k { display: flex; align-items: center; gap: 6px; font: 700 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #115E59; }   /* 7.6:1 */
.pg-major-tag { padding: 1px 6px; border-radius: 4px; background: var(--pg-soft); color: var(--pg-dark); font: 800 9px var(--mono); letter-spacing: .08em; }
.pg-ev-name { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.pg-ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11px var(--mono); color: #465343; }
.pg-ev-st { align-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 800 10.5px var(--mono); letter-spacing: .08em; white-space: nowrap;
  background: #1F1F30; color: #FFFFFF; border: 1px solid #3A3A52; }
.pg-ev-st.is-live { background: var(--pg); border-color: var(--pg-glow); box-shadow: 0 0 0 2px rgba(20, 184, 166, .3); }
.pg-ev-st.is-pause { color: #CCFBF1; border-color: var(--pg-glow); }
.pg-ev-st.is-pre { color: #D9F99D; border-color: #4D7C0F; }
.pg-ev-st.is-final { background: #FFFFFF; color: #0C0C11; border-color: #CEDBC0; }
.pg-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; animation: pulse 1.6s infinite; }
.pg-kpis { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pg-kpis div { padding: 6px 10px; border-radius: 8px; background: #F5F8F1; border: 1px solid #E3ECDA; min-width: 0; }
.pg-kpis dt { font: 700 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #465343; }
.pg-kpis dd { margin: 2px 0 0; font: 700 12.5px var(--mono); color: #111810; }
@media (max-width: 520px) { .pg-hero { grid-template-columns: minmax(0, 1fr); } .pg-ev-st { justify-self: start; } .pg-ev-name { font-size: 17px; } }

/* controls */
.pg-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.pg-ctrl[hidden] { display: none; }
.pg-ctrl .pg-tabs { margin: 0; }
.pg-search input { height: 40px; width: min(260px, 100%); padding: 0 12px; border: 1.5px solid var(--pg-line2); border-radius: 9px; background: #FFFFFF; color: #0C0C11; font: 600 13px var(--sans, inherit); }
.pg-search input:focus { outline: 2px solid #84CC16; outline-offset: 1px; border-color: #84CC16; }
@media (max-width: 640px) { .pg-search { width: 100%; } .pg-search input { width: 100%; } .pg-ctrl .pg-tabs { width: 100%; } .pg-ctrl .pg-tabs .bl-pill { flex: 1 1 auto; padding: 0 8px; font-size: 10px; } }

/* leaderboard table */
.pg-tbl-wrap { max-height: 560px; overflow: auto; border: 1.5px solid var(--pg-line2); border-radius: 12px; background: #FFFFFF; }
.pg-tbl-wrap:focus-visible { outline: 2px solid #84CC16; outline-offset: 2px; }
.pg-tbl-wrap > .empty, .pg-tbl-wrap > .sb-msg { margin: 12px; }
.pg-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.pg-tbl thead th { position: sticky; top: 0; z-index: 1; background: #0C0C11; color: #D9F99D; font: 700 9.5px var(--mono); letter-spacing: .1em; padding: 9px 8px; text-align: center; white-space: nowrap; }
.pg-tbl thead th.pl { text-align: left; }
.pg-tbl td, .pg-tbl tbody th { padding: 8px; border-top: 1px solid #EEF3E8; text-align: center; white-space: nowrap; font-weight: 600; }
.pg-tbl tbody tr:first-child td, .pg-tbl tbody tr:first-child th { border-top: 0; }
.pg-tbl tbody th.pl { text-align: left; font-weight: 600; }
.pg-row { cursor: pointer; transition: background-color .12s; }
.pg-row:hover { background: #F7FBF1; }
.pg-row:focus-visible { outline: 2px solid #84CC16; outline-offset: -2px; }
.pg-row.is-sel, .pg-row.is-sel:hover { background: #ECF7DB; box-shadow: inset 3px 0 0 #4D7C0F; }
.pg-row.is-out td, .pg-row.is-out th { color: #8A8A96; }
.pg-tbl .pos { font-weight: 800; color: #0C0C11; width: 52px; }
.pg-tbl .tp { font-weight: 900; font-size: 14px; }
.pg-tbl .under, .pg-sc .under, .pg-sc-rounds .under { color: var(--pg-under); }
.pg-tbl .over, .pg-sc .over, .pg-sc-rounds .over { color: var(--pg-over); }
.pg-tbl .e { color: #0C0C11; }
.pg-tbl .r { color: #3F4A33; font-weight: 500; }
.pg-tbl .tot { font-weight: 800; }
.pg-tbl .thru { color: #3F4A33; }
.pg-pl { display: inline-flex; align-items: center; gap: 7px; }
.pg-pl b { font-weight: 800; color: #0C0C11; }
.pg-row.is-out .pg-pl b { color: #6B6B76; font-weight: 600; }
.pg-cty { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 17px; padding: 0 4px; margin-right: 6px; border-radius: 4px; background: var(--pg-soft); color: var(--pg-dark); font: 800 9px var(--mono); letter-spacing: .04em; vertical-align: 1px; }
.pg-pl .pg-cty { margin-right: 0; }
.pg-am { font: 600 10px var(--mono); color: var(--muted); }
.pg-oc { width: 7px; height: 7px; border-radius: 50%; background: var(--pg-glow); box-shadow: 0 0 0 3px rgba(20, 184, 166, .2); }
@media (max-width: 720px) { .pg-tbl .r { display: none; } .pg-tbl td, .pg-tbl tbody th { padding: 8px 6px; } }
@media (max-width: 520px) {
  .pg-tbl { font-size: 12px; }
  .pg-tbl .tot, .pg-tbl .pg-cty { display: none; }
  .pg-tbl td, .pg-tbl tbody th, .pg-tbl thead th { padding: 7px 4px; }
  .pg-tbl .pos { width: 36px; }
  .pg-pl b { display: inline-block; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .pg-tbl .thru { font-size: 11px; }
  .pg-pl b { max-width: 30vw; }
}

/* scorecard strip */
.pg-sc { margin-top: 12px; padding: 12px 14px; border: 1.5px solid #BFE08E; border-radius: 12px; background: var(--pg-cons); }
.pg-sc-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; }
.pg-sc-who { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pg-sc-who b { font-size: 16px; font-weight: 900; color: #1A2E05; }
.pg-sc-who small { font: 600 10.5px var(--mono); color: #4D7C0F; text-transform: uppercase; letter-spacing: .05em; }
.pg-sc-pos { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px; background: #0C0C11; color: #A3E635; font: 800 12px var(--mono); }
.pg-sc-sum { font: 700 12px var(--mono); color: #1A2E05; }
.pg-sc-sum a { color: var(--pg-dark); }
.pg-sc-tabs { background: #FFFFFF; }
.pg-sc-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid #CEDBC0; background: #FFFFFF; }
.pg-sc-tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12.5px; }
.pg-sc-tbl th, .pg-sc-tbl td { padding: 6px 3px; text-align: center; border-left: 1px solid #EEF3E8; }
.pg-sc-tbl thead th { background: #0C0C11; color: #D9F99D; font: 700 9.5px var(--mono); letter-spacing: .06em; }
.pg-sc-tbl .lbl { text-align: left; padding-left: 10px; font: 700 9.5px var(--mono); letter-spacing: .08em; color: #3F4A33; border-left: 0; }
.pg-sc-tbl thead .lbl { color: #D9F99D; }
.pg-sc-tbl tr.par td { color: #6B6B76; font-weight: 600; border-top: 1px solid #EEF3E8; }
.pg-sc-tbl tr.sc td { border-top: 1px solid #EEF3E8; font-weight: 700; }
.pg-sc-tbl .sum { background: #F5F8F1; font-weight: 800; color: #0C0C11; }
.pg-sc-tbl thead .sum { background: #1A1A29; }
.pg-h { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font: 700 12px var(--mono); font-style: normal; color: #0C0C11; }
.pg-h.birdie { border-radius: 50%; background: #FEE2E2; color: var(--pg-under); box-shadow: inset 0 0 0 1.5px var(--pg-under); }
.pg-h.eagle { border-radius: 50%; background: var(--pg-under); color: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--pg-under); }
.pg-h.bogey { border-radius: 3px; background: #E0E7FF; color: var(--pg-over); box-shadow: inset 0 0 0 1.5px var(--pg-over); }
.pg-h.dbl { border-radius: 3px; background: var(--pg-over); color: #FFFFFF; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font: 600 10px var(--mono); color: #3F4A33; letter-spacing: .03em; text-transform: uppercase; }
.pg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pg-legend .pg-h { width: 18px; height: 18px; font-size: 10px; }
.pg-sc-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); gap: 8px; }
.pg-sc-rounds div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: #FFFFFF; border: 1px solid #CEDBC0; }
.pg-sc-rounds span { font: 700 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-sc-rounds b { font-size: 20px; font-weight: 900; }
.pg-sc-rounds em { font-style: normal; font: 700 11px var(--mono); }

/* futures + stat leaders: Option #1 horizontal stat-race rows */
.pg-fut-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pg-fut-top .pg-tabs { flex: 1 1 auto; }
.pg-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 10px; background: var(--pg); color: #FFFFFF; border: 1.5px solid var(--pg-glow);
  font: 800 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; margin: 0 0 10px; }
.pg-cta:hover { background: var(--pg-dark); }
.pg-cta:focus-visible { outline: 2px solid #84CC16; outline-offset: 2px; }
.pg-fut-h { margin: 0 0 8px; font: 600 10.5px var(--mono); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.pg-fut-h b { color: #0C0C11; }
.pg-race { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-rr { display: grid; grid-template-columns: 40px minmax(130px, 1.1fr) minmax(0, 1fr) 72px 58px; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px;
  border: 1px solid #EEF3E8; border-radius: 10px; background: #FFFFFF; }
#statList .pg-rr { grid-template-columns: 40px minmax(150px, 1.1fr) minmax(0, 1fr) 96px; }
.pg-rr.is-first { border-color: #BFE08E; background: #FAFDF5; }
.pg-rk { display: inline-flex; align-items: center; justify-content: center; height: 26px; border-radius: 6px; background: #0C0C11; color: #FFFFFF; font: 800 11.5px var(--mono); }
.pg-rr.is-first .pg-rk { background: var(--pg-best); color: #0C0C11; box-shadow: inset 0 0 0 1.5px #84CC16; }
.pg-rr-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pg-rr-who b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0C0C11; }
.pg-rr-who small { font: 500 10.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-bar { height: 10px; border-radius: 999px; background: #E9F3F1; overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pg-dark), var(--pg)); }
.pg-rr.is-first .pg-bar i { background: linear-gradient(90deg, var(--pg), var(--pg-glow)); }
.pg-best { justify-self: end; padding: 4px 8px; border-radius: 7px; background: var(--pg-best); color: #0C0C11; border: 1px solid #84CC16; font: 800 12px var(--mono); }
.pg-pct, .pg-val { justify-self: end; font: 800 13px var(--mono); color: #0C0C11; }
@media (max-width: 600px), (min-width: 720px) and (max-width: 1023px) {
  .pg-rr, #statList .pg-rr { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  #statList .pg-rr { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .pg-rr .pg-bar { display: none; }
}

/* news */
.pg-src-tabs .bl-pill { min-height: 30px; padding: 0 9px; font-size: 10px; }
.pg-news { display: flex; flex-direction: column; gap: 6px; }
.pg-nw { padding: 9px 11px; border: 1px solid #EEF3E8; border-radius: 10px; background: #FFFFFF; display: flex; flex-direction: column; gap: 5px; }
.pg-nw:hover { border-color: #CEDBC0; background: #FAFDF5; }
.pg-nw-meta { display: flex; align-items: center; gap: 8px; font: 600 10px var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pg-nw-meta .fresh { color: var(--pg); font-weight: 800; }
.pg-src { padding: 1.5px 6px; border-radius: 4px; background: var(--pg-soft); color: var(--pg-dark); border: 1px solid #99F6E4; font: 800 9px var(--mono); letter-spacing: .05em; }
.pg-nw-t { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: #0C0C11; text-decoration: none; }
a.pg-nw-t:hover { text-decoration: underline; text-decoration-color: var(--pg); }
a.pg-nw-t:focus-visible { outline: 2px solid #84CC16; outline-offset: 2px; border-radius: 3px; }

/* calendar */
.pg-cal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 10px; border: 1px solid var(--pg-line); border-radius: 10px; background: #FFFFFF; }
.pg-ev.is-major { border: 1.5px solid var(--pg); background: var(--pg-tint); }
.pg-ev.is-now { box-shadow: 0 0 0 2px rgba(132, 204, 22, .45); }
.pg-ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 0; border-radius: 8px; background: #0C0C11; color: #FFFFFF; font: 800 18px/1.05 var(--mono); }
.pg-ev-date b { font-size: 9.5px; letter-spacing: .1em; color: #5EEAD4; }
.pg-ev-date small { font: 600 8.5px var(--mono); letter-spacing: .1em; color: #A3E635; margin-top: 2px; }
.pg-ev.is-major .pg-ev-date { background: var(--pg-dark); }
.pg-ev-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-ev-kind { display: flex; gap: 6px; align-items: center; font: 800 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pg-ev-kind:empty { display: none; }
.pg-ev-kind em { font-style: normal; color: #4D7C0F; }
.pg-major-pill { padding: 2px 7px; border-radius: 999px; background: var(--pg); color: #FFFFFF; text-decoration: none; font: 800 9px var(--mono); letter-spacing: .1em; }
.pg-major-pill:hover { background: var(--pg-dark); }
.pg-ev-body b { font-size: 14px; font-weight: 800; line-height: 1.2; }
.pg-ev-body small { font: 500 10.5px var(--mono); color: var(--muted); }

/* paired cards: the c5 card (news, calendar) is exactly as tall as its c7 neighbour (futures, stat leaders) whenever the
   two share a row (>= 720px, both shown); contain:size keeps the long list from setting the row height, so the c7 card
   sets it and the list scrolls inside. Stacked or alone, each list scrolls inside the usual card height. */
#futCard:not([hidden]), #statCard:not([hidden]) { display: flex; flex-direction: column; }
#futList, #statList { flex: 1 1 auto; }
#newsCard:not([hidden]), #calCard:not([hidden]) { display: flex; flex-direction: column; max-height: var(--card-max); }
#newsCard > .section-h, #calCard > .section-h, #newsCard > .pg-tabs { flex: none; }
#newsCard .card-scroll, #calCard .card-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; }
@media (max-width: 719px) { #newsCard:not([hidden]), #calCard:not([hidden]) { height: var(--card-max); } }
@media (min-width: 720px) {
  #newsCard:not([hidden]):not(.solo), #calCard:not([hidden]):not(.solo) { height: 100%; min-height: 420px; max-height: none; align-self: stretch; }
  #newsCard:not(.solo) > .card-scroll, #calCard:not(.solo) > .card-scroll { contain: size; }
  #newsCard.solo:not([hidden]), #calCard.solo:not([hidden]) { height: var(--card-max); }
}

/* narrow phones: the CTA takes its own line, long card titles shrink, the leaderboard keeps THRU in view */
@media (max-width: 520px) {
  .pg-cta { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .pg-fut-top .pg-tabs { width: 100%; }
}
@media (max-width: 420px) {
  #lbCard > .section-h h2, #futCard > .section-h h2, #newsCard > .section-h h2, #statCard > .section-h h2, #calCard > .section-h h2 { font-size: 11px; letter-spacing: .13em; }
  #futCard > .section-h .src, #statCard > .section-h .src, #calCard > .section-h .src { display: none; }
}
@media (max-width: 360px) { .pg-pl b { max-width: 25vw; } }
@media (max-width: 420px) {
  .pg-rr, #statList .pg-rr { grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 6px; padding: 6px 8px; }
  #statList .pg-rr { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .pg-rk { font-size: 10.5px; height: 24px; }
  .pg-rr-who b { font-size: 13px; }
  .pg-best { padding: 3px 5px; font-size: 11px; }
  .pg-pct, .pg-val { font-size: 12px; }
}
.pg-ctrl, .pg-fut-top { justify-content: flex-end; }

/* Mobile fit guard (Nov 2026): news rows never widen the card */
.pg-news, .pg-news > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.pg-nw-t { overflow-wrap: break-word; }
.pg-nw-meta { min-width: 0; flex-wrap: wrap; }
