/*
Theme Name: Shankapotamus FedEx Cup
Author: Shankapotamus Redemption 24
Description: JSON-powered weekly golf results, FedEx Cup standings, points and player handicaps.
Version: 1.4.31
Text Domain: shankapotamus-fedex-cup
*/

:root {
  --navy: #03162a;
  --navy-2: #061f38;
  --purple: #4d148c;
  --orange: #ff6600;
  --gold: #e8ad32;
  --ink: #14233a;
  --muted: #667085;
  --line: #dfe4eb;
  --paper: #ffffff;
  --surface: #f4f6f8;
}

* { box-sizing: border-box; }
html { background: var(--navy); max-width: 100%; overflow-x: hidden; }
body { margin: 0; max-width: 100%; overflow-x: hidden; color: var(--ink); background: var(--navy); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.access-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; color: var(--ink); background: radial-gradient(circle at 14% 12%, rgba(37,81,40,.58), transparent 36%), radial-gradient(circle at 88% 88%, rgba(94,145,71,.2), transparent 30%), linear-gradient(145deg, #021120, var(--navy) 55%, #06233c); }
.access-card { width: min(430px, 100%); padding: 22px 36px 34px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 28px 70px rgba(0,0,0,.42); text-align: center; }
.access-card > img { width: 132px; height: 132px; object-fit: contain; margin: -4px auto 0; filter: drop-shadow(0 9px 12px rgba(3,22,42,.18)); }
.access-eyebrow { margin: -3px 0 8px; color: #255128; font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.access-card h1 { margin: 0; color: #255128; font-size: clamp(29px, 6vw, 38px); line-height: 1.05; }
.access-copy { max-width: 330px; margin: 12px auto 22px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.access-card form { display: grid; text-align: left; }
.access-card label { margin: 0 0 7px; color: var(--ink); font-size: 14px; font-weight: 800; }
.access-card input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #b8c0cc; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.access-card input:focus { border-color: #255128; box-shadow: 0 0 0 3px rgba(37,81,40,.18); }
.access-card input[aria-invalid="true"] { border-color: #b42318; }
.access-error { min-height: 20px; margin: 6px 0 8px; color: #b42318; font-size: 13px; font-weight: 700; }
.access-card button { height: 52px; border: 0; border-radius: 10px; color: white; background: #255128; font-weight: 850; box-shadow: 0 8px 18px rgba(37,81,40,.28); }
.access-card button:hover { background: #1c411f; }
.access-card .access-back { margin-top: 10px; color: #255128; border: 1px solid #b9c9b7; background: white; box-shadow: none; }
.access-card .access-back:hover { background: #edf3eb; }
.access-card button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.access-spinner { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--gold); border-radius: 50%; animation: access-spin .8s linear infinite; }
@keyframes access-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .access-shell { padding: 16px; }
  .access-card { padding: 18px 22px 26px; }
  .access-card > img { width: 112px; height: 112px; }
}

body.admin-bar .topbar { top: 32px; }
.loading-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: white; text-align: center; }
.loading-state img { width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.38)); }
.loading-state p { margin: 0; font-weight: 800; letter-spacing: .04em; }
.sr24-error { margin: 0; padding: 24px; color: white; background: #8b1e1e; text-align: center; }

.app-shell { min-height: 100vh; background: linear-gradient(90deg, rgba(3,22,42,.92) 0%, rgba(3,22,42,.68) 45%, rgba(3,22,42,.78) 100%), url("assets/golf-course-hero.jpg") center 51% / cover fixed no-repeat; }
.topbar { height: 102px; width: 100%; padding: 0 clamp(16px, 2.4vw, 38px); display: grid; grid-template-columns: minmax(530px, .95fr) minmax(440px, 1.1fr) auto; align-items: center; gap: 10px; color: white; border-bottom: 1px solid rgba(116,160,96,.45); background: rgb(5 35 8 / 97%); position: sticky; top: 0; z-index: 20; overflow: visible; }
.brand { min-width: 0; align-self: stretch; border: 0; background: none; color: white; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); padding: 0; text-align: left; }
.brand img { width: 230px; height: 230px; object-fit: contain; align-self: start; margin-top: 10px; margin-left: -10px; z-index: 2; filter: drop-shadow(0 9px 13px rgba(0,0,0,.38)); }
.brand span { min-width: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(18px, 1.55vw, 23px); letter-spacing: .025em; white-space: nowrap; }
.tabs { min-width: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; height: 100%; gap: 2px; overflow: hidden; }
.tabs button { min-width: 0; color: rgba(255,255,255,.9); border: 0; background: transparent; padding: 0 clamp(6px, .8vw, 13px); font-size: clamp(14px, 1.25vw, 18px); font-weight: 750; position: relative; white-space: nowrap; }
.tabs button::after { content: ""; position: absolute; bottom: 7px; left: 18px; right: 18px; height: 3px; background: transparent; border-radius: 2px; }
.tabs button:hover { color: white; }
.tabs button.active { color: white; }
.tabs button.active::after { background: linear-gradient(90deg, var(--gold), #ffd977); }
.season-pill { border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 13px 16px; font-weight: 700; white-space: nowrap; }
.season-pill span { margin-left: 12px; color: #cfd9e7; }

.hero { min-height: 180px; padding: 34px 4.2vw 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 1% 86%, transparent 0 20px, rgba(216,174,72,.07) 21px 22px), linear-gradient(90deg, rgba(3,22,42,.34) 0%, rgba(3,22,42,.08) 58%, rgba(3,22,42,.24) 100%); }
.hero::after { display: none; }
.hero-copy, .cup-mark { position: relative; z-index: 1; }
.hero-copy { margin-left: clamp(0px, 15vw, 230px); }
.eyebrow { color: #ffc95e !important; letter-spacing: .18em !important; font-size: 12px !important; margin: 0 0 8px !important; }
.hero h1 {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(34px, 3.8vw, 45px);
  line-height: .98;
  letter-spacing: .02em;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}
.hero-copy > p { margin: 10px 0 0; color: #f6c65f; font-size: clamp(14px, 1.35vw, 20px); font-weight: 850; letter-spacing: .08em; }
.standings-hero { min-height: 165px; padding-block: 22px 20px; justify-content: center; }
.standings-hero::after { display: none; }
.standings-hero .hero-copy { width: 100%; margin-left: 0; padding: 0 190px; text-align: center; }
.standings-hero .cup-mark { position: absolute; right: 5.2vw; }
.hero-copy > .hero-week { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.2vw, 18px); margin-top: 10px; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: .16em; }
.hero-week span { color: #ffc95e; font-size: .8em; line-height: 1; }
@media (min-width: 1181px) { .standings-hero .hero-copy { transform: translateY(8px); } }
.cup-mark { width: 130px; height: 130px; border-radius: 50%; margin-right: 1vw; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.3); flex: none; }
.fedex-mark { display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.fedex-word { color: #4d148c; font-family: "Arial Black", Arial, sans-serif; font-size: 29px; font-weight: 900; line-height: 1; letter-spacing: -.09em; transform: scaleX(.94); transform-origin: right center; }
.fedex-word b { color: #ff6600; font: inherit; }
.fedex-mark > i { color: #6f7783; font-size: 23px; font-style: normal; line-height: 1; filter: grayscale(1); }

.content { padding: 0 2vw 28px; margin: 0 75px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.sidebar { display: grid; gap: 14px; }
.card { background: var(--paper); border: 1px solid rgba(223,228,235,.9); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 42px rgba(0,0,0,.17); }
.card > header { min-height: 58px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.card h2 { margin: 0; color: #16253d; text-transform: uppercase; font-family: Impact, "Arial Narrow", sans-serif; letter-spacing: .04em; font-size: 24px; font-weight: 500; }
.accent-card > header { min-height: 43px; color: white; border: 0; background-color: #255128; }
.accent-card h2 { color: white; font-size: 19px; }
.table-scroll { overflow: auto; max-height: 625px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { color: #526078; text-transform: uppercase; font-size: 11px; letter-spacing: .045em; text-align: left; padding: 15px 14px; background: #fbfcfd; position: sticky; top: 0; z-index: 1; }
td { padding: 13px 14px; border-top: 1px solid #e8ebef; white-space: nowrap; }
th:not(:nth-child(2)), td:not(:nth-child(2)) { text-align: center; }
tbody tr:hover { background: #f8fafc; }
.leader-row { background: linear-gradient(90deg, #fff7e5, #fffaf1); outline: 1px solid #efb649; outline-offset: -1px; }
.leader-row:hover { background: #fff5df; }
.points-value { color: var(--purple); font-weight: 850; }
.net-value { color: #9c6813; font-weight: 850; }
.player { display: inline-flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: white; background: #171238; font-weight: 850; flex: none; }
.movement { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; margin-left: 5px; font-weight: 850; }
.movement.up { color: #1b9637; }.movement.down { color: #d83232; }.movement.neutral, .muted { color: #8b94a5; }
.card-note { padding: 13px 20px; color: #667085; background: #fbfcfd; border-top: 1px solid var(--line); font-size: 13px; }

.sidebar-feature-card > header h2 { font-size: 24px; }
.this-week-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 128px; }
.tournament-mark { border-right: 1px solid var(--line); padding: 15px 12px; display: grid; place-content: center; justify-items: center; text-align: center; color: #131a2b; line-height: 1; }
.tournament-mark strong { color: #e3262e; font-family: Impact, "Arial Narrow", sans-serif; font-size: 35px; letter-spacing: -.03em; }
.tournament-mark span { margin-top: 2px; font-size: 17px; font-weight: 900; letter-spacing: .12em; }
.tournament-mark small { margin-top: 8px; color: #566176; font-size: 10px; font-weight: 850; line-height: 1.25; letter-spacing: .04em; }
.this-week-copy { min-width: 0; padding: 16px 17px 12px; display: grid; align-content: center; gap: 14px; }
.this-week-copy > strong { overflow-wrap: anywhere; font-size: 18px; line-height: 1.2; }
.event-stats { display: grid; grid-template-columns: minmax(0, 1.4fr) .7fr .8fr; gap: 10px; }
.event-stats span { min-width: 0; display: grid; gap: 5px; }
.event-stats small, .compact-points-head { color: #6b7485; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.event-stats b { overflow-wrap: anywhere; font-size: 17px; }
.compact-points-table { padding: 7px 16px 11px; }
.compact-points-head, .compact-points-row { min-height: 33px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 2px; border-bottom: 1px solid #e8ebef; }
.compact-points-row:last-child { border-bottom: 0; }
.compact-points-row span { padding-left: 14px; color: #344054; font-size: 15px; }
.compact-points-row strong { padding-right: 2px; font-size: 15px; }

.formula { display: flex; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #edf0f3; }
.formula > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: white; font-size: 21px; font-weight: 900; }
.formula p { margin: 0; display: grid; gap: 4px; }
.formula p strong { text-transform: uppercase; font-size: 12px; color: #59657a; }
.formula p b { font-size: 14px; }
.example { padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; background: #faf8fd; font-size: 13px; }
.example strong { color: var(--purple); grid-row: 1 / span 2; align-self: center; }.example span { text-align: right; }
.stat-leader, .winner { padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-leader .avatar, .winner .avatar { width: 64px; height: 64px; font-size: 28px; }
.stat-leader > div:nth-child(2), .winner > div { display: grid; gap: 5px; }
.stat-leader strong, .winner strong { font-size: 22px; }.stat-leader span, .winner span { color: var(--muted); font-size: 13px; }.winner b { color: var(--purple); font-size: 25px; }
.trophy { margin-left: auto; color: #717a8b; font-size: 42px; }
.results-winner-card .weekly-winner { min-height: 132px; padding: 18px 20px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 62px; align-items: center; gap: 16px; }
.weekly-winner .avatar { width: 68px; height: 68px; font-size: 29px; box-shadow: 0 7px 16px rgba(18,15,52,.2); }
.weekly-winner-body { min-width: 0; }
.weekly-winner-names { display: block; min-width: 0; }
.weekly-winner-names strong { display: block; color: #101a31; font-size: 23px; line-height: 1.05; white-space: nowrap; }
.weekly-winner-names.multiple strong { font-size: clamp(13px, 1.1vw, 17px); line-height: 1.1; letter-spacing: -.01em; }
.weekly-winner-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.weekly-winner-metrics > span { min-width: 0; display: grid; gap: 2px; padding-right: 14px; }
.weekly-winner-metrics > span + span { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--line); }
.weekly-winner-metrics small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.weekly-winner-metrics b { color: #111a32; font-size: 30px; line-height: 1; }
.weekly-winner-metrics > span:last-child b { color: var(--purple); }
.winner-trophy { color: #7a8494; font-size: 48px; line-height: 1; text-align: center; filter: grayscale(1); }
.results-summary-grid { padding: 18px 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-stat { min-width: 0; min-height: 108px; display: grid; justify-items: center; align-content: center; padding: 0 7px; text-align: center; border-right: 1px solid var(--line); }
.result-stat:last-child { border-right: 0; }
.result-stat i { height: 29px; color: #35415a; font-size: 23px; font-style: normal; font-weight: 900; line-height: 1; letter-spacing: -.2em; }
.result-stat span { min-height: 24px; display: grid; place-items: center; color: #59657a; font-size: 9px; font-weight: 850; line-height: 1.15; text-transform: uppercase; }
.result-stat strong { color: #101a31; font-size: 29px; line-height: 1.05; }
.result-stat small { min-height: 12px; color: #59657a; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.course-conditions-meta { min-height: 42px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.course-conditions-meta strong { min-width: 0; color: #101a31; font-size: 14px; overflow-wrap: anywhere; }
.course-conditions-table { padding: 0 14px 10px; }
.course-condition-head, .course-condition-row { min-height: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; text-align: center; border-bottom: 1px solid #e8ebef; }
.course-condition-head { min-height: 31px; color: #526078; font-size: 9px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.course-condition-row:last-child { border-bottom: 0; }
.course-condition-row span, .course-condition-row strong { color: #18243a; font-size: 12px; font-weight: 800; }
.course-condition-row strong { color: #9c6813; }
.summary-grid { padding: 20px 10px; display: grid; grid-template-columns: repeat(4, 1fr); }
.mini-stat { min-height: 68px; display: grid; place-content: center; text-align: center; padding: 0 8px; border-right: 1px solid var(--line); }
.mini-stat:last-child { border: 0; }.mini-stat strong { font-size: 25px; }.mini-stat span { font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 4px; }
.progress-copy { text-align: center; margin: 18px 0 12px; font-weight: 700; }
.progress-track { display: flex; align-items: center; justify-content: space-between; padding: 0 22px 27px; position: relative; }
.progress-track::before { content: ""; position: absolute; height: 4px; left: 35px; right: 35px; top: 15px; background: #d8dde4; }
.progress-track > span { z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid #c6ccd5; font-weight: 800; color: #70798a; position: relative; }
.progress-track > span.done { color: white; background: #28a42f; border-color: #28a42f; }.progress-track > span.current { border-color: var(--gold); background: #fff6dc; color: #9a6410; box-shadow: 0 0 0 4px rgba(232,173,50,.22); }
.progress-track small { position: absolute; top: 37px; font-size: 9px; color: #536076; }

.week-picker, .filters { display: flex; gap: 8px; }
.week-picker button, .week-picker select, .filters input, .filters select { height: 38px; border: 1px solid #d6dce4; border-radius: 8px; background: white; padding: 0 12px; color: #2d3a50; }
.week-picker button { font-weight: 900; }.week-picker button:disabled { opacity: .35; cursor: not-allowed; }
.filters input { width: 170px; }

.points-layout { display: grid; grid-template-columns: 55% 45%; grid-template-rows: minmax(0, 1fr); min-height: 570px; }
.points-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(14, minmax(0, 1fr)); grid-auto-flow: column; padding: 12px 22px; gap: 0 28px; align-content: stretch; }
.points-list > div { min-height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; border-bottom: 1px solid #e8ebef; }
.points-list > div span { width: 30px; text-align: center; }.points-list .podium { background: #fffaf0; }.points-list .podium span { border-radius: 50%; color: white; font-weight: 850; }.points-list .p1 span { background: #d7a51d; }.points-list .p2 span { background: #9299a4; }.points-list .p3 span { background: #b87947; }
.points-chart { min-height: 0; overflow: hidden; display: grid; grid-template-rows: repeat(27, minmax(0, 1fr)); align-content: stretch; padding: 14px 24px; border-left: 1px solid var(--line); }
.points-chart > div { min-height: 13px; display: flex; align-items: center; gap: 7px; font-size: 10px; line-height: 1; }
.points-chart i { display: block; height: 9px; min-width: 14px; background: linear-gradient(90deg, #7f56b3, #b693dc); border-radius: 1px; }
.points-chart > div:first-child i { background: linear-gradient(90deg, #ddae2a, #b88100); }
.points-leader { min-height: 112px; display: grid; grid-template-columns: 68px minmax(0, 1fr) 64px; align-items: center; gap: 16px; padding: 34px 20px; }
.points-leader .avatar { width: 64px; height: 64px; font-size: 28px; box-shadow: 0 7px 16px rgba(18,15,52,.2); }
.points-leader > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.points-leader strong { overflow-wrap: anywhere; color: #101a31; font-size: 23px; line-height: 1.05; }
.points-leader b { color: var(--purple); font-size: 25px; line-height: 1; }
.points-leader span { color: var(--muted); font-size: 13px; }
.points-trophy { color: #747e8e; font-size: 50px; line-height: 1; text-align: center; filter: grayscale(1); }
.points-snapshot { min-height: 112px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 51px 8px; }
.snapshot-stat { min-width: 0; display: grid; justify-items: center; align-content: center; padding: 0 7px; text-align: center; border-right: 1px solid var(--line); }
.snapshot-stat:last-child { border-right: 0; }
.snapshot-stat i { height: 25px; color: #3e485d; font-size: 20px; font-style: normal; font-weight: 900; line-height: 1; letter-spacing: -.18em; }
.snapshot-stat strong { color: #101a31; font-size: 25px; line-height: 1.05; }
.snapshot-stat span { min-height: 24px; display: grid; place-items: center; color: #59657a; font-size: 9px; font-weight: 850; line-height: 1.15; text-transform: uppercase; }
.steps { list-style: none; counter-reset: steps; margin: 0; padding: 10px 18px; }.steps li { counter-increment: steps; padding: 12px 8px 12px 48px; position: relative; border-bottom: 1px solid #edf0f3; font-weight: 700; }.steps li:last-child { border: 0; }.steps li::before { content: counter(steps); position: absolute; left: 5px; top: 7px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: white; }

.handicap-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 8px 18px 14px; }
.handicap-row { min-height: 55px; display: grid; grid-template-columns: 26px minmax(135px, 1fr) 54px 38px minmax(52px, 72px) 32px; align-items: center; gap: 8px; border-bottom: 1px solid #e5e9ee; font-size: 13px; }
.handicap-row .player { min-width: 0; }.handicap-row .player strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.handicap-row > strong, .handicap-row > b { text-align: center; }.handicap-status { min-width: 0; text-align: center; }.row-number { color: #687387; font-weight: 800; text-align: center; }.scratch { padding: 3px 6px; border: 1px solid #e4ae42; color: #9b6510; background: #fff8e8; border-radius: 4px; font-size: 9px; font-weight: 850; text-transform: uppercase; }.hcp-bar { width: 100%; min-width: 0; height: 6px; background: #edf0f2; border-radius: 6px; overflow: hidden; }.hcp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2baa47, #ffb000, #f04a17); border-radius: inherit; }
.scale { padding: 24px 18px; display: flex; justify-content: space-around; align-items: flex-start; position: relative; }.scale::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 4px; background: linear-gradient(90deg,#2b9c3f,#95bc19,#e5ad09,#e34c16); }.scale > span { width: 54px; height: 54px; border-radius: 50%; color: white; display: grid; place-items: center; z-index: 1; font-weight: 900; font-size: 16px; position: relative; }.scale small { position: absolute; top: 62px; color: #4c586e; font-size: 10px; }.scale .green { background:#27963d }.scale .lime { background:#82ad18 }.scale .amber { background:#dfa407 }.scale .orange { background:#e44916 }
.handicap-formulas { padding: 2px 14px; }
.handicap-formula { min-height: 44px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.handicap-formula > .handicap-icon { width: 30px; height: 30px; display: block; border-radius: 50%; color: white; background: var(--purple); }
.handicap-formula p { min-width: 0; margin: 0; display: flex; align-items: baseline; gap: 5px; color: #1f293d; font-size: 14px; white-space: nowrap; }
.handicap-formula p strong { text-transform: uppercase; }.handicap-formula p b { font: inherit; }
.handicap-example { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--line); background: #faf8fd; color: #4c566b; font-size: 14px; }
.handicap-example strong { color: var(--purple); }.handicap-example i { font-style: normal; }
.handicap-snapshot { min-height: 108px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 7px; }
.handicap-stat { min-width: 0; display: grid; justify-items: center; align-content: center; padding: 0 6px; text-align: center; border-right: 1px solid var(--line); }
.handicap-stat:last-child { border-right: 0; }
.handicap-stat .handicap-icon { width: 30px; height: 26px; color: #3d485e; }
.handicap-stat strong { color: #101a31; font-size: 27px; line-height: 1; }
.handicap-stat span { min-height: 24px; display: grid; place-items: center; color: #59657a; font-size: 9px; font-weight: 850; line-height: 1.15; text-transform: uppercase; }
.handicap-icon { position: relative; display: block; box-sizing: border-box; font-style: normal; }
.handicap-icon::before, .handicap-icon::after { content: ""; position: absolute; box-sizing: border-box; }
.icon-calculator::before { left: 8px; top: 5px; width: 14px; height: 20px; border: 2px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) 2px 2px / 8px 3px no-repeat; }
.icon-calculator::after { left: 11px; top: 14px; width: 2px; height: 2px; background: currentColor; box-shadow: 4px 0 currentColor, 8px 0 currentColor, 0 4px currentColor, 4px 4px currentColor, 8px 4px currentColor, 0 8px currentColor, 4px 8px currentColor, 8px 8px currentColor; }
.icon-chart::before, .icon-bars::before { left: 7px; bottom: 6px; width: 4px; height: 7px; background: currentColor; box-shadow: 6px -4px currentColor, 12px -10px currentColor; }
.icon-chart::after, .icon-bars::after { left: 6px; bottom: 5px; width: 18px; height: 2px; background: currentColor; }
.icon-users::before { left: 4px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 currentColor; }
.icon-users::after { left: 1px; top: 12px; width: 14px; height: 9px; border-radius: 9px 9px 2px 2px; background: currentColor; box-shadow: 14px 0 currentColor; }
.icon-flag::before { left: 8px; top: 1px; width: 2px; height: 23px; background: currentColor; }
.icon-flag::after { left: 10px; top: 2px; width: 15px; height: 11px; background: currentColor; clip-path: polygon(0 0, 100% 28%, 0 100%); }
.icon-target { width: 24px !important; height: 24px !important; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.icon-target::before { inset: 5px; border: 2px solid currentColor; border-radius: 50%; }
.icon-target::after { left: 8px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.handicap-scale { padding: 13px 12px 10px; }
.handicap-scale-points { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.handicap-scale-points::before { content: ""; position: absolute; left: 12%; right: 12%; top: 21px; height: 4px; background: linear-gradient(90deg, #2b9c3f, #95bc19, #e5ad09, #e34c16); }
.handicap-scale-points > span { z-index: 1; display: grid; justify-items: center; gap: 4px; color: #263246; }
.handicap-scale-points b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 17px; line-height: 1; }
.handicap-scale-points small { font-size: 10px; font-weight: 800; }
.handicap-scale-points .green b { background: #27963d; }.handicap-scale-points .lime b { background: #82ad18; }.handicap-scale-points .amber b { background: #e3a309; }.handicap-scale-points .orange b { background: #e44916; }
.handicap-scale p { max-width: 310px; margin: 9px auto 0; color: #59657a; text-align: center; font-size: 11px; line-height: 1.25; }

.status-footer { color: #c3cfdd; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 4px 20px 26px; font-size: 12px; }

@media (min-width: 1181px) {
  html, body { height: 100%; overflow: hidden; }
  .app-shell { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .topbar { flex: none; grid-template-rows: 102px; }
  .topbar > * { min-height: 0; }
  .brand, .tabs { height: 100%; }
  .hero { flex: none; }
  .hero:not(.standings-hero) { min-height: 165px; padding-block: 22px 20px; }
  .hero:not(.standings-hero) .hero-copy { transform: translateY(5px); }
  .hero:not(.standings-hero) .cup-mark { position: absolute; right: 5.2vw; }
  .standings-hero { justify-content: space-between; }
  .standings-hero .hero-copy { width: auto; margin-left: clamp(0px, 15vw, 230px); padding: 0; text-align: left; }
  .standings-hero .hero-week { justify-content: flex-start; }
  .content { flex: 1; min-height: 0; padding-bottom: 10px; overflow: hidden; }
  .dashboard-grid { height: 100%; min-height: 0; align-items: stretch; }
  .main-card { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .main-card .table-scroll { flex: 1; min-height: 0; max-height: none; }
  .main-card .points-layout, .main-card .handicap-list { flex: 1; min-height: 0; overflow: auto; }
  .points-main-card .points-layout { overflow: hidden; }
  .sidebar { height: 100%; min-height: 0; gap: 10px; overflow-y: auto; scrollbar-width: thin; }
  .progress-sidebar { grid-template-rows: minmax(130px, .9fr) minmax(135px, 1fr) minmax(132px, .9fr); overflow: hidden; }
  .sidebar .progress-copy { margin: 31px 0 8px; }
  .sidebar .progress-track { padding-bottom: 23px; }
  .status-footer { flex: none; display: flex; min-height: 30px; padding: 1px 20px 5px; }
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 88px; padding-block: 8px; }.brand img { width: 126px; height: 126px; margin-left: 0; }.brand span { font-size: 18px; }.tabs { grid-column: 1 / -1; order: 3; width: 100%; height: 48px; overflow: hidden; }.tabs button { padding: 0 8px; font-size: clamp(12px, 2vw, 15px); }.season-pill { grid-column: 2; grid-row: 1; }.hero-copy { margin-left: 0; }.standings-hero .hero-copy { padding: 0 145px 0 20px; }.standings-hero .cup-mark { right: 24px; }.dashboard-grid { grid-template-columns: 1fr; }.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }.sidebar .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .standings-hero .hero-copy { text-align: left; }
  .standings-hero .hero-week { justify-content: flex-start; }
}
@media (max-width: 1180px) { .content { margin: 0 24px; } }
@media (min-width: 761px) and (max-width: 1180px) {
  .hero:not(.standings-hero) { min-height: 165px; padding-block: 22px 20px; }
  .hero:not(.standings-hero) .hero-copy { transform: none; }
  .hero:not(.standings-hero) .cup-mark { position: absolute; right: 24px; }
}
@media (max-width: 760px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 8px 10px; position: static; }.brand { min-width: 0; }.brand img { width: 92px; height: 92px; margin: 0; }.brand span { font-size: clamp(12px, 3.7vw, 15px); white-space: normal; line-height: 1.05; }.season-pill { padding: 8px; font-size: 11px; }.season-pill span { margin-left: 4px; }.tabs { grid-column: 1 / -1; order: 3; height: 54px; }.tabs button { padding: 0 3px; font-size: clamp(10px, 2.8vw, 13px); line-height: 1.08; white-space: normal; }.tabs button::after { left: 7px; right: 7px; bottom: 8px; }.hero { min-height: 145px; padding: 20px 16px 16px; }.hero h1 { font-size: 30px; }.hero-copy > p { font-size: 13px; }.standings-hero .hero-copy { padding: 0; }.standings-hero .cup-mark { position: relative; right: auto; }.hero-copy > .hero-week { gap: 9px; margin-top: 10px; font-size: 15px; }.cup-mark { width: 80px; height: 80px; }.fedex-mark { gap: 3px; }.fedex-word { font-size: 18px; }.fedex-mark > i { font-size: 14px; }.content { padding: 0 10px 20px; }.card > header { align-items: flex-start; flex-direction: column; padding: 14px 16px; }.card h2 { font-size: 20px; }.sidebar { grid-template-columns: 1fr; }.sidebar .card:last-child:nth-child(odd) { grid-column: auto; }.handicap-list { grid-template-columns: 1fr; padding-inline: 10px; }.handicap-row { grid-template-columns: 24px minmax(0, 1fr) 50px 34px 52px 28px; gap: 6px; }.points-layout { grid-template-columns: 1fr; grid-template-rows: auto auto; }.points-chart { border-left: 0; border-top: 1px solid var(--line); }.points-list { grid-template-rows: repeat(14, minmax(31px, auto)); padding-inline: 12px; gap: 0 14px; }.points-chart { overflow: visible; grid-template-rows: repeat(27, minmax(18px, auto)); }.points-sidebar { grid-template-rows: none; overflow: visible; }.filters { width: 100%; }.filters input { min-width: 0; width: 100%; }.summary-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }.mini-stat:nth-child(2) { border-right: 0; }.example { grid-template-columns: 1fr; }.example strong { grid-row: auto; }.example span { text-align: left; } .status-footer { flex-wrap: wrap; }
}
@media (max-width: 760px) { .hero:not(.standings-hero) .hero-copy { transform: none; } }
@media (max-width: 760px) { .progress-sidebar { grid-template-rows: none; overflow: visible; } }
@media (max-width: 760px) { .content { margin: 0; } }
@media (max-width: 760px) { .fedex-word { font-size: 18px; }.fedex-mark > i { font-size: 14px; } }
@media (max-width: 760px) { .main-card .table-scroll { max-height: none; overflow-x: auto; overflow-y: hidden; }.main-card .table-scroll table { width: max-content; min-width: 100%; } }

/* Clubhouse home page */
.tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-view .topbar { position: relative; }
.hero.home-hero { min-height: 520px; padding: 72px clamp(24px, 5vw, 78px); align-items: center; background: linear-gradient(90deg, rgba(2,24,8,.94) 0%, rgba(2,24,8,.72) 34%, rgba(2,24,8,.08) 72%), url("assets/golf-course-hero.jpg") center 48% / cover no-repeat; }
.home-hero::before { background: linear-gradient(180deg, rgba(2,18,7,.08), rgba(2,18,7,.38)); }
.home-hero .hero-copy { width: min(610px, 52vw); margin-left: 0; }
.home-hero h1 { max-width: 610px; font-size: clamp(48px, 5.4vw, 76px); line-height: .94; }
.hero-copy > .home-eyebrow { margin: 0 0 14px; color: #f3c45c; font-size: 15px; font-weight: 900; letter-spacing: .16em; }
.hero-copy > .home-intro { max-width: 430px; margin-top: 22px; color: #fff; font-size: clamp(18px, 1.5vw, 23px); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-actions button, .home-fedex-feature button { min-height: 48px; padding: 0 20px; border: 1px solid #f2c460; border-radius: 6px; color: #102014; background: #f2c460; text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.home-actions button.secondary { color: white; border-color: rgba(255,255,255,.58); background: rgba(4,42,13,.78); }
.home-actions button:hover, .home-fedex-feature button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.home-view .content { max-width: 1480px; margin: 0 auto; padding: 34px clamp(18px, 3vw, 44px) 54px; }
.clubhouse-home { display: grid; gap: 28px; }
.home-summary-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-summary-grid::before { content: ""; position: absolute; z-index: -1; top: -34px; bottom: -28px; left: calc(50% - 50vw); right: calc(50% - 50vw); background: #f5f2e9; }
.home-info-card { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px 16px; padding: 22px; border: 1px solid #ddd9cd; border-radius: 12px; background: #fff; box-shadow: 0 11px 30px rgba(23,42,27,.08); }
.home-card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: white; background: #255128; font-size: 22px; }
.home-card-icon.gold { color: #77520e; background: #f3e5bc; }
.home-card-icon.soft { color: #255128; background: #dcebd8; }
.home-info-card p, .home-section header p, .home-fedex-feature p { margin: 0 0 6px; color: #255128; text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .09em; }
.home-info-card h2 { margin: 0; color: #15251a; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(21px, 1.7vw, 27px); font-weight: 500; line-height: 1.05; overflow-wrap: anywhere; }
.home-info-card div > span { display: block; margin-top: 7px; color: #66706a; font-size: 13px; line-height: 1.4; }
.home-info-card > button { grid-column: 1 / -1; min-height: 40px; display: flex; justify-content: space-between; align-items: center; padding: 0; border: 0; border-top: 1px solid #ebe8df; color: #255128; background: transparent; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.home-fedex-feature { min-height: 230px; display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(230px, .8fr) 180px; align-items: center; gap: 28px; padding: 34px 42px; overflow: hidden; border-radius: 14px; color: white; background: radial-gradient(circle at 76% 20%, rgba(110,76,164,.42), transparent 32%), repeating-radial-gradient(ellipse at 100% 100%, transparent 0 24px, rgba(255,255,255,.035) 25px 26px), linear-gradient(115deg, #351065, #081d28 67%, #06230d); box-shadow: 0 18px 40px rgba(20,14,50,.2); }
.home-fedex-feature p { color: #f0c35c; }
.home-fedex-feature h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(35px, 3vw, 48px); font-weight: 500; letter-spacing: .02em; }
.home-fedex-feature div > span { display: block; max-width: 420px; margin-top: 8px; color: #d9dce5; line-height: 1.5; }
.home-fedex-feature button { margin-top: 22px; }
.home-leader { display: grid; gap: 2px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.home-leader > span { color: #f0c35c !important; font-size: 13px; font-weight: 800; }
.home-leader > strong { margin-top: 4px; font-size: clamp(28px, 2.5vw, 40px); overflow-wrap: anywhere; }
.home-leader > b { color: white; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(48px, 4vw, 66px); font-weight: 500; line-height: 1; }
.home-leader > b small { color: #f0c35c; font-size: .38em; }
.home-leader > em { margin-top: 5px; color: #bfc8c4; font-size: 12px; font-style: normal; }
.home-trophy { justify-self: end; opacity: .36; font-size: 108px; filter: grayscale(1); }
.home-section { padding: 28px 30px; border: 1px solid #ddd9cd; border-radius: 12px; background: #fff; }
.home-section > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.home-section header h2 { margin: 0; color: #17271b; font-family: Impact, "Arial Narrow", sans-serif; font-size: 32px; font-weight: 500; letter-spacing: .025em; }
.home-section > header > button { border: 0; color: #255128; background: transparent; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.home-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #e4e1d8; border-radius: 10px; overflow: hidden; }
.home-stat-grid div { display: grid; gap: 5px; padding: 23px; border-right: 1px solid #e4e1d8; text-align: center; }
.home-stat-grid div:last-child { border-right: 0; }
.home-stat-grid strong { color: #255128; font-family: Impact, "Arial Narrow", sans-serif; font-size: 38px; font-weight: 500; }
.home-stat-grid span { color: #68716b; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.home-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-link-grid button { min-height: 140px; display: grid; align-content: start; gap: 7px; padding: 19px; border: 1px solid #dde2dc; border-radius: 9px; color: #17271b; background: #f8faf7; text-align: left; }
.home-link-grid button:hover { border-color: #82a57f; background: #f1f6ef; transform: translateY(-2px); }
.home-link-grid span { color: #b3892f; font-size: 11px; font-weight: 900; }
.home-link-grid strong { font-family: Impact, "Arial Narrow", sans-serif; font-size: 24px; font-weight: 500; }
.home-link-grid small { color: #68716b; font-size: 12px; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .55fr); gap: clamp(42px, 8vw, 120px); align-items: center; padding: 42px clamp(28px, 6vw, 92px); color: #f1f5ef; border-top: 1px solid rgba(174,205,156,.28); background: radial-gradient(circle at 88% 50%, rgba(35,91,42,.2), transparent 30%), linear-gradient(120deg, #021d0b, #063114); }
.footer-about { display: grid; grid-template-columns: 190px minmax(0, 460px); gap: 34px; align-items: center; }
.footer-about img { width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
.footer-about p { margin: 0 0 22px; font-size: 16px; line-height: 1.7; }
.footer-about strong { color: white; font-size: 15px; }
.footer-links { display: grid; justify-items: start; gap: 9px; }
.footer-links h2 { margin: 0 0 10px; color: white; font-family: Impact, "Arial Narrow", sans-serif; font-size: 24px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.footer-links button { padding: 0; border: 0; color: #e5ede3; background: transparent; font: inherit; font-size: 15px; cursor: pointer; }
.footer-links button:hover, .footer-links button:focus-visible { color: #f3c45c; }

@media (max-width: 1180px) {
  .hero.home-hero { min-height: 450px; }
  .home-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-summary-grid .home-info-card:last-child { grid-column: 1 / -1; }
  .home-fedex-feature { grid-template-columns: 1fr 1fr; }
  .home-trophy { display: none; }
}

@media (max-width: 760px) {
  .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; }
  .hero.home-hero { min-height: 470px; padding: 50px 20px 36px; background-position: 58% center; }
  .home-hero .hero-copy { width: 100%; }
  .home-hero h1 { max-width: 400px; font-size: clamp(42px, 13vw, 60px); }
  .home-summary-grid, .home-fedex-feature, .home-stat-grid, .home-link-grid { grid-template-columns: 1fr; }
  .home-summary-grid .home-info-card:last-child { grid-column: auto; }
  .home-fedex-feature { padding: 28px 24px; }
  .home-leader { padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
  .home-stat-grid div { border-right: 0; border-bottom: 1px solid #e4e1d8; }
  .home-stat-grid div:last-child { border-bottom: 0; }
  .home-section { padding: 22px 18px; }
  .home-section > header { align-items: start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; padding: 34px 24px; }
  .footer-about { grid-template-columns: 105px minmax(0, 1fr); gap: 18px; align-items: start; }
  .footer-about img { width: 105px; height: 105px; }
  .footer-about p { margin-bottom: 14px; font-size: 13px; line-height: 1.55; }
  .footer-about strong { font-size: 13px; }
}

@media (min-width: 1181px) {
  html:has(.home-view), body:has(.home-view) { height: auto; overflow-y: auto; }
  .home-view.app-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
  .home-view .content { min-height: auto; overflow: visible; }
  .hero.home-hero .hero-copy { transform: translateY(76px); }
}

@media (min-width: 1181px) and (max-width: 1450px) {
  .topbar { grid-template-columns: 270px minmax(0, 1fr) auto; }
  .brand span { display: none; }
}

/* Two-level Home / FedEx navigation */
.topbar { grid-template-columns: 220px minmax(360px, 1fr); }
.brand span { display: none; }
.primary-nav { min-width: 0; height: 100%; display: grid; grid-template-columns: minmax(110px, 1fr) auto; align-items: stretch; justify-self: stretch; gap: 22px; }
.primary-nav button { min-width: 0; padding: 0 18px; border: 0; color: rgba(255,255,255,.92); background: transparent; font-size: clamp(15px, 1.25vw, 19px); font-weight: 800; position: relative; }
.primary-nav > button:first-child { justify-self: center; }
.primary-nav > button:first-child::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 15px; height: 3px; border-radius: 3px; background: transparent; }
.primary-nav > button:first-child.active::after { background: linear-gradient(90deg, var(--gold), #ffd977); }
.primary-nav .fedex-nav-button { min-height: 50px; align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; border: 1px solid #7e58b3; border-radius: 6px; background: linear-gradient(135deg, #35106c, #5b1ba0); text-transform: uppercase; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 500; letter-spacing: .035em; box-shadow: 0 8px 22px rgba(29,8,68,.3); }
.primary-nav .fedex-nav-button:hover, .primary-nav .fedex-nav-button.active { background: linear-gradient(135deg, #431185, #6a22b4); }
.fedex-subnav { flex: none; min-height: 58px; display: grid; grid-template-columns: repeat(4, minmax(120px, 190px)); justify-content: center; align-items: stretch; gap: 4px; padding: 0 18px; border-bottom: 1px solid rgba(116,160,96,.35); background: rgba(3,22,42,.97); position: relative; z-index: 12; }
.fedex-subnav button { padding: 0 14px; border: 0; color: rgba(255,255,255,.8); background: transparent; font-size: clamp(13px, 1.05vw, 16px); font-weight: 800; position: relative; }
.fedex-subnav button::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.fedex-subnav button:hover, .fedex-subnav button.active { color: white; }
.fedex-subnav button.active::after { background: linear-gradient(90deg, var(--gold), #ffd977); }
.home-actions button.secondary { min-width: 270px; justify-content: space-between; display: inline-flex; align-items: center; color: white; border-color: #7650aa; background: linear-gradient(135deg, #35106c, #5b1ba0); }
.primary-nav { display: flex; align-items: stretch; }
.primary-nav > button:not(.fedex-nav-button) { justify-self: auto; text-transform: uppercase; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 500; letter-spacing: .04em; }
.primary-nav > button:not(.fedex-nav-button)::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 15px; height: 3px; border-radius: 3px; background: transparent; }
.primary-nav > button:not(.fedex-nav-button).active::after { background: linear-gradient(90deg, var(--gold), #ffd977); }
.primary-nav .fedex-nav-button { margin-left: auto; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 140px minmax(0, 1fr); }
  .primary-nav { grid-column: 2; grid-row: 1; width: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 92px minmax(0, 1fr); }
  .primary-nav { grid-column: 2; grid-row: 1; width: 100%; height: 72px; gap: 4px; justify-content: flex-start; }
  .primary-nav button { padding: 0 10px; font-size: 12px; }
  .primary-nav > button:first-child::after { left: 8px; right: 8px; bottom: 8px; }
  .primary-nav .fedex-nav-button { min-height: 42px; padding: 0 11px; font-size: 12px; }
  .fedex-subnav { grid-template-columns: repeat(4, minmax(80px, 1fr)); justify-content: stretch; min-height: 56px; padding: 0 6px; overflow: hidden; }
  .fedex-subnav button { padding: 0 4px; font-size: 10px; line-height: 1.1; }
  .fedex-subnav button::after { left: 7px; right: 7px; }
}

/* FedEx feature card */
.home-fedex-feature { min-height: 300px; grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.35fr); gap: 34px; padding: 28px 30px 28px 42px; background: radial-gradient(circle at 38% 45%, rgba(99,37,166,.35), transparent 35%), linear-gradient(112deg, #20104f, #1b0b43 54%, #241254); }
.home-fedex-copy { align-self: center; }
.home-fedex-copy h2 { font-size: clamp(39px, 3.2vw, 54px); text-transform: uppercase; }
.home-fedex-copy > span { margin-top: 15px !important; color: #f3f0f9 !important; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.55 !important; }
.home-fedex-copy button { width: min(310px, 100%); min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; border-color: #8254bd; background: linear-gradient(135deg, #35106c, #5b1ba0); font-family: Impact, "Arial Narrow", sans-serif; font-size: 18px; font-weight: 500; }
.home-fedex-copy button b { font-size: 22px; font-weight: 400; }
.home-fedex-panel { min-height: 244px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(180px, .75fr); align-items: center; gap: 18px; padding: 28px 30px 26px 38px; overflow: hidden; border-radius: 12px; background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 27px, rgba(216,174,72,.055) 28px 29px), linear-gradient(115deg, #071d27, #051722); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 16px 32px rgba(4,8,22,.28); }
.home-fedex-panel .home-leader { padding: 0; border: 0; }
.home-fedex-panel .home-leader > span { margin: 0 !important; color: #f0c35c !important; font-size: 17px; }
.home-fedex-panel .home-leader > strong { margin-top: 12px; font-size: clamp(34px, 3vw, 48px); }
.home-fedex-panel .home-leader > b { margin-top: 4px; font-size: clamp(62px, 6vw, 88px); white-space: nowrap; }
.home-fedex-panel .home-trophy { display: block; justify-self: center; opacity: .5; font-size: clamp(100px, 10vw, 150px); }

/* WGT members directory */
.members-page { display: grid; gap: 18px; }
.members-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(223,228,235,.9); border-radius: 13px; background: white; box-shadow: 0 13px 34px rgba(0,0,0,.14); }
.members-summary div { min-height: 90px; display: grid; place-content: center; gap: 3px; padding: 15px; border-right: 1px solid var(--line); text-align: center; }
.members-summary div:last-child { border-right: 0; }
.members-summary strong { color: #255128; font-family: Impact, "Arial Narrow", sans-serif; font-size: 32px; font-weight: 500; }
.members-summary span { color: #687387; text-transform: uppercase; font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.members-card { min-height: 0; }
.member-filters { display: flex; gap: 9px; }
.member-filters input, .member-filters select { height: 38px; border: 1px solid #cfd6df; border-radius: 7px; color: var(--ink); background: white; }
.member-filters input { width: 220px; padding: 0 12px; }
.member-filters select { min-width: 120px; padding: 0 9px; }
.members-table { max-height: 720px; }
.members-table table { min-width: 1020px; }
.members-table th:first-child, .members-table td:first-child { text-align: left; }
.member-name { display: inline-flex; align-items: center; gap: 9px; color: #14599a; text-decoration: none; }
.member-name:hover { text-decoration: underline; }
.member-country { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; color: white; background: #255128; font-size: 12px; flex: none; }
.role-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; padding: 4px 8px; border-radius: 999px; color: #155724; background: #dff0d8; font-size: 11px; font-weight: 850; }
.role-owner, .role-director { color: #8a3b0a; background: #ffe5d2; }
.role-recruit { color: #5f6570; background: #eceef1; }
.role-veteran { color: #356b10; background: #e2f2ce; }
.members-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.members-note a { color: #255128; font-weight: 850; text-decoration: none; }

@media (min-width: 1181px) {
  html:has(.members-view), body:has(.members-view) { height: auto; overflow-y: auto; }
  .members-view.app-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
  .members-view .content { min-height: auto; overflow: visible; }
  .members-page { height: auto; grid-template-rows: auto minmax(0, 1fr); }
  .members-card { height: auto; display: flex; flex-direction: column; }
  .members-card .members-table { flex: none; height: 720px; max-height: 720px; }
}

@media (min-width: 1181px) {
  html:has(.results-view), body:has(.results-view), html:has(.standings-view), body:has(.standings-view) { height: auto; overflow-y: auto; }
  .results-view.app-shell, .standings-view.app-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
  .results-view .content, .standings-view .content { min-height: auto; overflow: visible; padding-bottom: 28px; }
  .results-view .dashboard-grid, .standings-view .dashboard-grid { height: auto; grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr); align-items: stretch; }
  .results-view .main-card, .standings-view .main-card { height: 100%; min-height: 0; display: flex; flex-direction: column; contain: size; }
  .results-view .main-card .table-scroll, .standings-view .main-card .table-scroll { flex: 1; height: 0; min-height: 0; max-height: none; }
  .results-view .sidebar, .standings-view .sidebar { height: auto; grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; overflow: visible; }
}

@media (max-width: 1180px) {
  .home-fedex-feature { grid-template-columns: minmax(250px, .75fr) minmax(420px, 1.25fr); padding-left: 30px; }
}

@media (max-width: 760px) {
  .home-fedex-feature { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .home-fedex-panel { min-height: 220px; grid-template-columns: minmax(0, 1fr) 120px; padding: 24px 20px; }
  .home-fedex-panel .home-trophy { display: block; font-size: 82px; }
  .members-summary { grid-template-columns: repeat(2, 1fr); }
  .members-summary div:nth-child(2) { border-right: 0; }
  .members-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .member-filters { width: 100%; flex-direction: column; }
  .member-filters input, .member-filters select { width: 100%; }
  .members-note { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) { .handicap-formula p { white-space: normal; flex-wrap: wrap; }.handicap-example { flex-wrap: wrap; }.handicap-stat { padding-inline: 3px; }.handicap-stat strong { font-size: 23px; }.handicap-scale { padding-inline: 6px; } }
@media (max-width: 760px) {
  .results-winner-card .weekly-winner { min-height: 118px; grid-template-columns: 58px minmax(0, 1fr) 48px; gap: 10px; padding: 14px 12px; }
  .weekly-winner .avatar { width: 56px; height: 56px; font-size: 24px; }
  .weekly-winner-names strong { font-size: 18px; }
  .weekly-winner-names.multiple strong { font-size: clamp(11px, 3.6vw, 15px); }
  .weekly-winner-metrics { margin-top: 9px; }
  .weekly-winner-metrics > span { padding-right: 8px; }
  .weekly-winner-metrics > span + span { padding-left: 9px; }
  .weekly-winner-metrics small { font-size: 8px; }
  .weekly-winner-metrics b { font-size: 23px; }
  .winner-trophy { font-size: 38px; }
  .results-summary-grid { padding: 14px 4px; }
  .result-stat { min-height: 94px; padding-inline: 3px; }
  .result-stat i { height: 24px; font-size: 19px; }
  .result-stat span { min-height: 22px; font-size: 8px; }
  .result-stat strong { font-size: 23px; }
  .result-stat small { font-size: 8px; }
  .course-conditions-meta { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 8px; }
  .course-conditions-table { padding-inline: 8px; }
}

/* Club events */
.events-page { display: grid; gap: 18px; max-width: 1180px; margin: 0 auto; }
.events-intro { display: flex; align-items: center; gap: 13px; padding: 15px 18px; color: #f5f8f4; border: 1px solid rgba(194,219,186,.38); border-radius: 12px; background: rgba(4,42,15,.82); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.events-intro-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; color: #ffd977; border: 1px solid rgba(255,217,119,.38); border-radius: 50%; font-size: 17px; }
.events-intro p { margin: 0; font-size: 14px; font-weight: 700; }
.events-list { display: grid; gap: 12px; padding: 16px; background: #f8faf7; }
.event-row { min-width: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 10px; border: 1px solid #dce5dc; border-radius: 10px; background: white; box-shadow: 0 5px 14px rgba(12,35,18,.06); }
.event-date { min-height: 82px; display: grid; align-content: center; justify-items: center; color: white; border-radius: 8px; background: linear-gradient(145deg, #174b25, #0b2c14); line-height: 1; text-transform: uppercase; }
.event-date span { font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.event-date strong { margin: 4px 0 2px; font-family: Impact, "Arial Narrow", sans-serif; font-size: 36px; font-weight: 500; }
.event-date small { font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.event-copy { min-width: 0; }
.event-copy h3 { margin: 0; color: #17271b; font-family: Impact, "Arial Narrow", sans-serif; font-size: 27px; font-weight: 500; letter-spacing: .02em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 7px 0; margin-top: 8px; color: #5c6a60; font-size: 13px; font-weight: 700; }
.event-meta span { padding: 0 12px; border-right: 1px solid #d9e1d9; }
.event-meta span:first-child { padding-left: 0; }
.event-meta span:last-child { border-right: 0; }
.event-local-time { margin: 8px 0 0; color: #255128; font-size: 12px; font-weight: 850; }
.event-status-group { min-width: 106px; display: grid; gap: 4px; justify-items: center; }
.event-status-label { color: #738077; font-size: 10px; font-weight: 900; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.event-status { min-width: 86px; padding: 6px 10px; border: 1px solid #d6e7d0; border-radius: 6px; color: #246126; background: #edf6e9; cursor: default; font-size: 12px; font-weight: 900; text-align: center; user-select: none; white-space: nowrap; }
.event-status.coming-soon { color: #6b35a3; border-color: #e5d5fb; background: #f5efff; }
.event-status.final-event { color: #9a4d09; border-color: #f5dfbc; background: #fff5e6; }
.events-empty { display: grid; gap: 5px; padding: 44px 24px; color: #68716b; text-align: center; }
.events-empty strong { color: #17271b; font-size: 18px; }
.events-note { color: #5f6d62; background: #fbfdfb; }

@media (min-width: 1181px) {
  html:has(.events-view), body:has(.events-view) { height: auto; overflow-y: auto; }
  .events-view.app-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
  .events-view .content { min-height: auto; overflow: visible; padding-bottom: 28px; }
}

@media (max-width: 760px) {
  .events-page { gap: 12px; }
  .events-intro { align-items: flex-start; padding: 13px 14px; }
  .events-intro p { font-size: 13px; line-height: 1.45; }
  .events-list { gap: 9px; padding: 10px; }
  .event-row { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 8px; }
  .event-date { min-height: 70px; }
  .event-date strong { font-size: 30px; }
  .event-copy h3 { font-size: 22px; line-height: 1.05; }
  .event-meta { margin-top: 6px; font-size: 11px; }
  .event-meta span { padding: 0 8px; }
  .event-local-time { margin-top: 6px; font-size: 11px; }
  .event-status-group { grid-column: 2; justify-self: start; min-width: 0; justify-items: start; }
  .event-status { min-width: 0; padding: 6px 10px; font-size: 10px; }
}

/* Clubhouse Gallery */
.gallery-page { display: grid; gap: 18px; max-width: 1180px; margin: 0 auto; }
.gallery-featured { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); overflow: hidden; border: 1px solid rgba(209,218,227,.72); border-radius: 13px; background: #071b2e; box-shadow: 0 15px 35px rgba(0,0,0,.22); }
.gallery-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #020b13; }
.gallery-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.gallery-featured-copy { display: grid; align-content: center; gap: 10px; padding: clamp(22px, 3vw, 42px); color: white; background: radial-gradient(circle at 82% 10%, rgba(87,51,154,.36), transparent 42%), linear-gradient(145deg, #08243a, #061421); }
.gallery-featured-copy > span, .gallery-collection header p { margin: 0; color: #f2c460; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.gallery-featured-copy h2, .gallery-collection h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(30px, 3.4vw, 49px); font-weight: 500; letter-spacing: .02em; line-height: 1.02; }
.gallery-featured-copy p { margin: 0; color: #c7d4dc; font-size: 13px; font-weight: 700; line-height: 1.5; }
.gallery-collection { overflow: hidden; border: 1px solid rgba(218,225,220,.86); border-radius: 13px; background: #f8faf7; box-shadow: 0 12px 28px rgba(0,0,0,.13); }
.gallery-collection > header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 26px; border-bottom: 1px solid #e0e7df; background: white; }
.gallery-collection h2 { margin-top: 4px; color: #1b2b1e; font-size: clamp(27px, 2.6vw, 38px); }
.gallery-collection > header a { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 10px 14px; border: 1px solid #264e2d; border-radius: 6px; color: white; background: #174b25; font-size: 12px; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.gallery-collection > header a:hover, .gallery-subscribe:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px; }
.gallery-card { overflow: hidden; border: 1px solid #dbe3dd; border-radius: 10px; background: white; box-shadow: 0 5px 14px rgba(9,32,18,.08); }
.gallery-card-copy { min-height: 87px; padding: 13px 16px 15px; }
.gallery-card-copy h3 { margin: 0; color: #17271b; font-size: 17px; line-height: 1.25; }
.gallery-card-copy p { margin: 7px 0 0; color: #6a756c; font-size: 12px; font-weight: 700; }
.gallery-subscribe { min-height: 88px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 24px; border: 1px solid #dbbd53; border-radius: 11px; color: white; background: radial-gradient(circle at 18% 120%, rgba(84,49,161,.42), transparent 36%), linear-gradient(120deg, #071a2c, #0b2e1a); box-shadow: 0 12px 28px rgba(0,0,0,.18); text-decoration: none; transition: .18s ease; }
.gallery-subscribe > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: white; background: #e2231a; font-size: 18px; }
.gallery-subscribe strong { display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: 25px; font-weight: 500; letter-spacing: .035em; text-transform: uppercase; }
.gallery-subscribe small { display: block; margin-top: 3px; color: #d5e1d6; font-size: 13px; font-weight: 700; }
.gallery-subscribe > b { color: #f2c460; font-size: 21px; }

@media (min-width: 1181px) {
  html:has(.gallery-view), body:has(.gallery-view) { height: auto; overflow-y: auto; }
  .gallery-view.app-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
  .gallery-view .content { min-height: auto; overflow: visible; padding-bottom: 28px; }
}

@media (max-width: 760px) {
  .primary-nav { gap: 0; }
  .primary-nav button { padding-inline: 5px; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
  .primary-nav .fedex-nav-button { padding-inline: 7px; font-size: 10px; }
  .gallery-page { gap: 12px; }
  .gallery-featured { grid-template-columns: 1fr; }
  .gallery-featured-copy { gap: 7px; padding: 20px; }
  .gallery-featured-copy h2 { font-size: 31px; }
  .gallery-collection > header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .gallery-collection h2 { font-size: 28px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .gallery-card-copy { min-height: 78px; padding: 12px 14px; }
  .gallery-subscribe { min-height: 0; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .gallery-subscribe > span { width: 38px; height: 38px; }
  .gallery-subscribe strong { font-size: 20px; }
  .gallery-subscribe small { font-size: 11px; }
  .gallery-subscribe > b { display: none; }
}
@media screen and (max-width: 782px) {
  body.admin-bar .topbar { top: 46px; }
}
