/* Forres Open Draw — Public Display — FGC Palette */

.fod-display{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;max-width:1400px;margin:0 auto}

/* Header */
.fod-header{display:flex;justify-content:space-between;align-items:center;padding:14px 0 12px;border-bottom:3px solid #184A2C;margin-bottom:20px;flex-wrap:wrap;gap:10px}
.fod-title{margin:0;font-size:22px;font-weight:700;color:#184A2C}
.fod-header-right{display:flex;align-items:center;gap:14px;font-size:13px;color:#7E9F86}
.fod-phase-badge{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}
.fod-phase-qualifying{background:#fee2e2;color:#991b1b}
.fod-phase-draw{background:#FEF5E2;color:#8B6B4A}
.fod-phase-knockout{background:#e8f5ee;color:#184A2C}
.fod-phase-complete{background:#e8f5ee;color:#184A2C}

/* ── Qualifying grid ──────────────────────────────────────── */
.fod-qual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:900px){.fod-qual-grid{grid-template-columns:1fr}}

.fod-qual-comp{border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.fod-comp-heading{margin:0;padding:14px 18px;color:#F8F8F5;font-size:16px;font-weight:700;letter-spacing:.01em}
.fod-comp-grant  .fod-comp-heading{background:#184A2C}
.fod-comp-fraser .fod-comp-heading{background:#0E3220}
.fod-comp-capri  .fod-comp-heading{background:#8B6B4A}

.fod-pub-table{width:100%;border-collapse:collapse;background:#fff}
.fod-pub-table thead th{background:#F6F1E7;border-bottom:2px solid #E1E2DC;padding:8px 10px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#7E9F86;text-align:left}
.fod-pub-table tbody td{padding:9px 10px;border-bottom:1px solid #F8F8F5;font-size:13px;vertical-align:middle;color:#404040}
.fod-pub-table tbody tr:last-child td{border-bottom:none}
.fod-pub-table tbody tr:hover td{background:#FEF5E2}
.fod-seeded td{background:#FEF5E2!important;font-weight:600}

/* Seed badge — qualifying */
.fod-seed{display:inline-block;font-size:11px;font-weight:700;padding:2px 7px;border-radius:4px;color:#FEF5E2;vertical-align:middle}
.fod-comp-grant  .fod-seed{background:#184A2C}
.fod-comp-fraser .fod-seed{background:#0E3220}
.fod-comp-capri  .fod-seed{background:#5a3a1a;color:#FEF5E2}
.fod-pub-seeded .fod-seed{background:#C6A450;color:#184A2C}

.col-rank{width:32px;text-align:center;color:#7E9F86;font-weight:600}
.col-score{width:48px;text-align:center;font-weight:700;color:#184A2C}
.col-hcp{width:40px;text-align:center;color:#7E9F86}
.col-club{color:#7E9F86;font-size:12px}
.col-seed{width:46px;text-align:right}

/* Compact player/club stack for public tables */
.fod-player-stack{line-height:1.25}
.fod-player-name{display:block;font-weight:600;color:#404040}
.fod-player-club{display:block;margin-top:2px;font-size:11px;font-weight:500;color:#7E9F86}
.fod-empty{text-align:center;padding:28px!important;color:#7E9F86;font-style:italic}

/* ── Draw grid ────────────────────────────────────────────── */
.fod-draw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:900px){.fod-draw-grid{grid-template-columns:1fr}}

.fod-draw-comp{border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.08)}

/* Draw table — fixed layout with explicit column widths */
.fod-draw-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    
}

/* Column widths: slot | player/club | hcp | v | hcp | player/club | slot */
.fod-draw-table col.c-slot  {width:46px}
.fod-draw-table col.c-name  {width:auto}
.fod-draw-table col.c-hcp   {width:34px}
.fod-draw-table col.c-vs    {width:22px}

.fod-match-row td{
    padding:8px 6px;
    border-bottom:1px solid #F8F8F5;
    vertical-align:middle;
    font-size:13px;
    
    
    
}
.fod-match-row:nth-child(odd) td{background:#F8F8F5}
.fod-match-row:nth-child(even) td{background:#fff}
.fod-match-row:hover td{background:#FEF5E2!important}

/* Slot number cells */
.fod-slot-n{
    text-align:left;
    font-weight:700;
    color:#184A2C;
    font-size:12px;
    
    padding-left:10px!important;
}
.fod-slot-r{
    text-align:right;
    padding-right:10px!important;
}

/* Seed badge in draw — inline, won't overflow */
.fod-draw-seed{
    display:inline-block;
    font-size:10px;
    font-weight:700;
    padding:1px 5px;
    border-radius:3px;
    vertical-align:middle;
    margin-left:3px;
    
    line-height:1.6;
}
.fod-comp-grant  .fod-draw-seed{background:#C6A450;color:#184A2C}
.fod-comp-fraser .fod-draw-seed{background:#C6A450;color:#0E3220}
.fod-comp-capri  .fod-draw-seed{background:#FEF5E2;color:#8B6B4A;border:1px solid #C6A450}

/* Player name cells */
.fod-pname{
    font-size:13px;
    color:#404040;
    padding:8px 8px!important;
    line-height:1.2;
}
.fod-pname-r{text-align:right}
.fod-filled{font-weight:600;color:#184A2C}
.fod-tbd{color:#C8C9C4;font-style:italic;font-size:12px}
.fod-draw-player{display:block}
.fod-draw-club{display:block;margin-top:2px;font-size:11px;font-weight:500;color:#7E9F86;white-space:normal}
.fod-pname-r .fod-draw-club{text-align:right}
.fod-tbd .fod-draw-club{display:none}

/* Handicap */
.fod-phcp{text-align:center;font-size:11px;color:#7E9F86;font-weight:600}

/* V separator */
.fod-vs{text-align:center;font-size:11px;color:#C6A450;font-weight:700;padding:0!important}

/* Clubhouse TV — large screen */
@media(min-width:1600px){
    .fod-title{font-size:28px}
    .fod-comp-heading{font-size:20px;padding:18px 22px}
    .fod-pub-table tbody td,.fod-pname{font-size:16px}
    .col-club,.fod-player-club,.fod-draw-club{font-size:13px}
    .fod-draw-seed{font-size:12px;padding:2px 7px}
    .fod-match-row td{padding:11px 6px}
}

/* ── Status pills (qualifying display) ───────────────────── */
.fod-status-pill{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;white-space:nowrap}
.fod-status-complete{background:#e8f5ee;color:#184A2C}
.fod-status-r2-pending{background:#FEF5E2;color:#8B6B4A}
.fod-status-r1-in-progress{background:#fee2e2;color:#991b1b}
.fod-status-scored{background:#F6F1E7;color:#7E9F86}
.fod-status-not-started{background:#F8F8F5;color:#C8C9C4}

/* ── [forres_scores] shortcode ───────────────────────────── */
.fod-scores-display{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;max-width:100%}
.fod-scores-section{margin-bottom:36px}
.fod-scores-round-heading{font-size:16px;font-weight:700;color:#184A2C;margin:0 0 10px;padding:10px 16px;background:#F6F1E7;border-left:4px solid #184A2C;border-radius:0 4px 4px 0}
.fod-scores-table-outer{overflow:auto;max-height:calc(100vh - 230px);position:relative}

.fod-scores-pub-table{border-collapse:collapse;width:100%;min-width:900px;background:#fff;font-size:12px}

/* Head row */
.fod-spt-head th{background:#184A2C;color:#FEF5E2;padding:7px 6px;text-align:center;font-size:11px;font-weight:600;white-space:nowrap}
.fod-spt-head .fod-spt-name{text-align:left;padding-left:12px;min-width:140px;background:#184A2C}
.fod-spt-head .fod-spt-club{text-align:left;min-width:100px}
/* Back 9 header cols — Forest Shadow */
.fod-spt-head th.fod-spt-in{background:#0E3220;color:#C6A450}
.fod-spt-head .fod-spt-tot{background:#0E3220;color:#C6A450;min-width:36px}

/* SI row */
.fod-spt-si td,.fod-spt-si th{background:#F6F1E7;color:#7E9F86;font-size:10px;text-align:center;padding:3px 4px;border-bottom:1px solid #E1E2DC}
.fod-spt-si th{text-align:left;padding-left:12px}

/* Data rows */
.fod-spt-row td{padding:6px 4px;border-bottom:1px solid #F8F8F5;vertical-align:middle;text-align:center;color:#404040}
.fod-spt-row:hover td{background:#FEF5E2}
.fod-spt-row:nth-child(even) td{background:#F8F8F5}
.fod-spt-row:nth-child(even):hover td{background:#FEF5E2}

.fod-spt-name{text-align:left!important;padding-left:12px!important;font-weight:600;color:#184A2C;white-space:nowrap}
.fod-spt-club{text-align:left!important;font-size:11px;color:#7E9F86;white-space:nowrap}
.fod-spt-hcp{color:#7E9F86;font-weight:600}
.fod-spt-hole{min-width:28px}
/* Hole gets a handicap stroke — subtle dot indicator */
.fod-spt-stroke{position:relative}
.fod-spt-stroke::after{content:'·';position:absolute;top:0;right:2px;font-size:14px;color:#C6A450;line-height:1}
td.fod-spt-in{background:rgba(14,50,32,.03)}
.fod-spt-row:nth-child(even) td.fod-spt-in{background:rgba(14,50,32,.06)}
.fod-spt-blank{color:#E1E2DC}
.fod-spt-tot{font-weight:700;color:#184A2C;background:#F6F1E7!important}
.fod-spt-gross{color:#0E3220}
.fod-spt-net{color:#184A2C;border-left:2px solid #C6A450}

.col-net{font-weight:700;color:#184A2C;border-left:2px solid #C6A450}

/* Scores display — R1/R2 side by side */
.fod-spt-round-head th{padding:6px 4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;text-align:center}
.fod-spt-round-label{color:#FEF5E2;padding:6px 8px!important}
.fod-spt-r1{background:#184A2C}
.fod-spt-r2{background:#0E3220}
.fod-spt-divider{background:#C6A450!important;width:4px!important;padding:0!important;min-width:4px}
td.fod-spt-divider{background:#C6A450!important}

/* Consolation panel */
.fod-consolation-panel{margin-top:24px;border-radius:8px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.fod-comp-consolation-heading{background:#5C7FA3;margin:0;padding:14px 18px;color:#F8F8F5;font-size:16px;font-weight:700}
.fod-consolation-count{background:rgba(255,255,255,.2);border-radius:8px;padding:1px 8px;font-size:13px;font-weight:normal;margin-left:8px}

/* Scores display — stacked qualifying rounds (R1/R2 below each player) */
.fod-scores-stacked-table{min-width:820px}
.fod-scores-stacked-table .fod-spt-name{min-width:180px}
.fod-scores-stacked-table .fod-spt-hcp{min-width:42px;text-align:center!important}
.fod-scores-stacked-table .fod-spt-round{min-width:38px;text-align:center!important;font-weight:700;color:#184A2C}
.fod-scores-stacked-table .fod-spt-player-cell{vertical-align:middle!important;background:#fff!important;border-bottom:2px solid #E1E2DC!important}
.fod-scores-stacked-table .fod-player-name{display:block;font-weight:700;color:#184A2C;line-height:1.15}
.fod-scores-stacked-table .fod-player-club{display:block;margin-top:3px;font-size:11px;font-weight:500;color:#7E9F86;line-height:1.15}
.fod-scores-stacked-table .fod-spt-row td{padding-top:5px;padding-bottom:5px}
.fod-scores-stacked-table .fod-spt-round-1 td{background:#fff}
.fod-scores-stacked-table .fod-spt-round-2 td{background:#F8F8F5;border-bottom:2px solid #E1E2DC}
.fod-scores-stacked-table .fod-spt-round-1:hover td,
.fod-scores-stacked-table .fod-spt-round-2:hover td{background:#FEF5E2!important}
.fod-scores-stacked-table .fod-spt-round-2 td.fod-spt-in{background:rgba(14,50,32,.06)}
.fod-scores-stacked-table .fod-spt-round-2:hover td.fod-spt-in{background:#FEF5E2!important}
.fod-scores-stacked-table .fod-spt-tot{min-width:40px}
.fod-scores-stacked-table .fod-spt-total-gross,.fod-scores-stacked-table .fod-spt-total-net{min-width:58px;font-size:14px;vertical-align:middle!important;background:#F1E8D8!important;color:#184A2C;border-left:2px solid #C6A450}
.fod-scores-stacked-table .fod-spt-total-net{font-weight:800}


/* Scores TV display — slow auto-scroll support */
.fod-scores-display .fod-scores-table-outer{scroll-behavior:auto;border-bottom:1px solid #E1E2DC}
.fod-scores-display thead tr{position:sticky;z-index:5}
.fod-scores-display thead tr.fod-spt-head{top:0}
.fod-scores-display thead tr.fod-spt-si{top:31px;z-index:4}
.fod-scores-display .fod-spt-total-gross,
.fod-scores-display .fod-spt-total-net{font-size:15px}
@media(min-width:1600px){
  .fod-scores-table-outer{max-height:calc(100vh - 250px)}
  .fod-scores-display thead tr.fod-spt-si{top:36px}
}

/* Player status code shown on the public scores table */
.fod-player-status-code{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    border-radius:999px;
    background:#FEF5E2;
    border:1px solid #C6A450;
    color:#7a4a00;
    font-size:12px;
    font-weight:800;
    line-height:1.2;
    vertical-align:middle;
}

/* ── Knockout public display ─────────────────────────────────── */
.fod-knockout-display{}

/* Competition toggle */
.fod-ko-pub-tabs{display:flex;gap:0;margin:16px 0 0;border-bottom:3px solid #184A2C}
.fod-ko-pub-tab{padding:10px 28px;font-size:14px;font-weight:600;border:1px solid #E1E2DC;border-bottom:none;border-radius:6px 6px 0 0;cursor:pointer;background:#F8F8F5;color:#404040;margin-right:4px;transition:background .15s}
.fod-ko-pub-tab-grant.fod-ko-pub-tab-active{background:#184A2C;color:#FEF5E2;border-color:#184A2C}
.fod-ko-pub-tab-fraser.fod-ko-pub-tab-active{background:#0E3220;color:#FEF5E2;border-color:#0E3220}
.fod-ko-pub-tab-capri.fod-ko-pub-tab-active{background:#8B6B4A;color:#FEF5E2;border-color:#8B6B4A}

/* Round headings */
.fod-ko-pub-round{margin-top:24px}
.fod-ko-pub-round-heading{font-size:15px;font-weight:700;color:#184A2C;margin:0 0 12px;padding:8px 14px;background:#F6F1E7;border-left:4px solid #184A2C;border-radius:0 4px 4px 0}

/* Match grid — 2 columns for R32, 1 for later rounds */
.fod-ko-pub-matches{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(max-width:768px){.fod-ko-pub-matches{grid-template-columns:1fr}}

/* Individual match card */
.fod-ko-pub-match{background:#fff;border:1px solid #E1E2DC;border-radius:8px;overflow:hidden;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0;position:relative}
.fod-ko-pub-pending{border-left:3px solid #E1E2DC}
.fod-ko-pub-active{border-left:3px solid #C6A450;box-shadow:0 2px 8px rgba(198,164,80,.2)}
.fod-ko-pub-complete{border-left:3px solid #184A2C}
.fod-ko-pub-match-num{position:absolute;top:4px;left:8px;font-size:10px;color:#C8C9C4;font-weight:600}

/* Player */
.fod-ko-pub-player{padding:14px 10px 10px}
.fod-ko-pub-player-b{text-align:right}
.fod-ko-pub-pname{font-size:13px;font-weight:600;color:#184A2C}
.fod-ko-pub-winner .fod-ko-pub-pname{color:#184A2C;font-size:14px}
.fod-ko-pub-winner{background:#e8f5ee}
.fod-ko-pub-pclub{font-size:11px;color:#7E9F86;margin-top:2px}
.fod-ko-pub-phcp{font-size:11px;color:#7E9F86}

/* Score area */
.fod-ko-pub-score{text-align:center;padding:10px 8px;min-width:80px}
.fod-ko-pub-vs{font-size:14px;font-weight:700;color:#C6A450}
.fod-ko-pub-result{font-size:15px;font-weight:700;color:#184A2C}
.fod-ko-pub-winner-name{font-size:11px;color:#7E9F86;margin-top:3px}
.fod-ko-pub-live{font-size:12px;color:#184A2C;line-height:1.4}
.fod-ko-pub-as{font-size:13px;font-weight:700;color:#C6A450}
.fod-ko-pub-thru{font-size:10px;color:#7E9F86;margin-top:3px}

/* SF and Final — single column, larger cards */
.fod-ko-pub-round:has(.fod-ko-pub-matches:has(:nth-child(1):last-child)) .fod-ko-pub-matches,
.fod-ko-pub-round:has(.fod-ko-pub-matches:has(:nth-child(1):nth-last-child(2))) .fod-ko-pub-matches{grid-template-columns:1fr}
.fod-ko-pub-round:has(.fod-ko-pub-matches:has(:nth-child(1):last-child)) .fod-ko-pub-pname{font-size:16px}


/* Public knockout live hole strip */
.fod-ko-pub-hole-strip{
  grid-column: 1 / -1;
  padding:8px 10px 10px;
  border-top:1px solid rgba(0,0,0,.08);
  background:#fbfaf7;
}
.fod-ko-pub-hole-legend{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:10px;
  font-weight:600;
  color:#7E9F86;
  margin-bottom:6px;
}
.fod-ko-pub-hole-grid{
  display:grid;
  grid-template-columns: repeat(18, minmax(24px,1fr));
  gap:3px;
}
.fod-ko-pub-hole{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:34px;
  border:1px solid #e1ded4;
  border-radius:6px;
  color:#6f7d70;
  background:#fff;
  line-height:1.05;
}
.fod-ko-pub-hole small{
  font-size:9px;
  font-weight:700;
  opacity:.72;
}
.fod-ko-pub-hole strong{
  font-size:15px;
  font-weight:800;
  margin-top:2px;
}
.fod-ko-pub-hole-a{
  color:#184A2C;
  background:#e8f3ec;
  border-color:#b8d1c0;
}
.fod-ko-pub-hole-b{
  color:#184A2C;
  background:#f3ead8;
  border-color:#d7b45d;
}
.fod-ko-pub-hole-half{
  color:#7a5427;
  background:#fff4da;
  border-color:#d7b45d;
}
.fod-ko-pub-hole-pending strong{
  display:none;
}
@media (max-width: 900px){
  .fod-ko-pub-hole-grid{grid-template-columns: repeat(9, minmax(24px,1fr));}
}

.fod-ko-pub-extra-heading{
  margin:8px 0 5px;
  text-align:center;
  font-size:10px;
  font-weight:700;
  color:#7a5427;
  letter-spacing:.02em;
}
.fod-ko-pub-extra-grid{
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  max-width:520px;
  margin:0 auto;
}
.fod-ko-pub-extra-grid .fod-ko-pub-hole small{
  font-size:8px;
}

/* ── Compact draw display: fit more of the 32-player draw on screen ── */
.fod-display{max-width:1600px;}
.fod-draw-grid{gap:14px;}
.fod-draw-comp{border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.06);overflow:hidden;}
.fod-draw-comp .fod-comp-heading{padding:10px 14px;font-size:15px;}
.fod-draw-table col.c-slot{width:34px;}
.fod-draw-table col.c-hcp{width:28px;}
.fod-draw-table col.c-vs{width:16px;}
.fod-match-row td{padding:5px 4px;font-size:12px;}
.fod-slot-n{font-size:11px;padding-left:7px!important;}
.fod-slot-r{padding-right:7px!important;}
.fod-pname{font-size:12px;padding:5px 5px!important;line-height:1.12;}
.fod-draw-player{line-height:1.12;}
.fod-draw-club{font-size:10px;margin-top:1px;line-height:1.05;}
.fod-phcp{font-size:10px;}
.fod-vs{font-size:10px;}
.fod-draw-seed{font-size:9px;padding:1px 4px;margin-left:2px;line-height:1.45;}

@media(min-width:1200px){
  .fod-header{margin-bottom:14px;padding:10px 0 10px;}
  .fod-title{font-size:20px;}
  .fod-draw-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media(min-width:1600px){
  .fod-display{max-width:1760px;}
  .fod-title{font-size:22px;}
  .fod-comp-heading{font-size:17px;padding:12px 16px;}
  .fod-draw-comp .fod-comp-heading{font-size:17px;padding:12px 16px;}
  .fod-pub-table tbody td,.fod-pname{font-size:13px;}
  .fod-draw-club{font-size:11px;}
  .fod-match-row td{padding:6px 4px;}
}


.fod-ko-champion-banner{margin:18px 0 20px;padding:18px 20px;border:1px solid #C6A450;border-left:6px solid #C6A450;border-radius:16px;background:#FFFBF0;color:#184A2C;box-shadow:0 8px 18px rgba(0,0,0,.05)}
.fod-ko-champion-kicker{font-size:13px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:#8b7140;margin-bottom:5px}
.fod-ko-champion-name{font-size:28px;line-height:1.15;font-weight:900}
.fod-ko-champion-meta{margin-top:5px;font-size:15px;font-weight:700;color:#6f8b76}
@media(max-width:700px){.fod-ko-champion-name{font-size:22px}.fod-ko-champion-banner{padding:14px 16px}}

/* Knockout tee times */
.fod-ko-pub-tee-time{display:inline-block;margin-top:5px;padding:4px 9px;border-radius:999px;background:#fff4d8;color:#7b5724;font-size:11px;font-weight:900;line-height:1.1;white-space:nowrap}
.fod-ko-pub-score .fod-ko-pub-tee-time{display:block;width:max-content;margin:5px auto 0}
.fod-mob-tee{margin-top:6px;color:#7b5724;font-size:14px;font-weight:900;background:#fff4d8;border-radius:999px;display:inline-block;padding:4px 9px}
