/* Shared KEGT shell; historical event and scorecard styling stays inherited. */
[hidden]{display:none!important}
.kegt-identity{display:block;max-width:310px;min-width:0;line-height:0}.kegt-identity img,.footer-identity img{display:block;width:100%;height:auto}
.sponsor-identity{max-width:180px;min-width:0;line-height:0}.sponsor-identity img{width:100%;height:auto;display:block}
.global-nav{border-bottom:1px solid var(--line);background:var(--paper)}.global-nav>.container{display:flex;gap:34px}.global-nav a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;text-decoration:none;color:var(--muted);font-size:13px;font-weight:700;border-bottom:3px solid transparent}.global-nav a[aria-current]{color:var(--ink);border-color:#b39350}.global-nav svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6}
.home-page{padding-bottom:20px}.home-welcome{padding:48px 0 38px;border-bottom:1px solid var(--line);max-width:100%}.home-welcome h1{font-family:'Libre Baskerville',Georgia,serif;font-size:clamp(28px,4.1vw,49px);line-height:1.3;letter-spacing:-.035em;margin:14px 0 18px;font-weight:400;max-width:850px;color:var(--ink)}.home-welcome p{max-width:620px;color:var(--muted);margin:12px 0}.home-welcome .home-tagline{font-size:17px;font-weight:600;color:var(--ink);letter-spacing:.015em}
.primary-link{display:inline-flex;align-items:center;min-height:46px;margin-top:14px;padding:11px 19px;background:#103529;color:#fff;text-decoration:none;border:1px solid #355b47;border-radius:3px;font-weight:600;font-size:13px}.primary-link:hover{background:#1d4d3b}
.home-section{padding:35px 0}.home-section h1,.upcoming-state h1{font:400 clamp(27px,4vw,40px)/1.3 'Libre Baskerville',Georgia,serif;margin:12px 0 18px}.home-section-title{margin-bottom:22px}.home-section h2,.next-season h2{font:400 clamp(23px,3vw,31px)/1.4 'Libre Baskerville',Georgia,serif;color:var(--ink);margin:8px 0 6px}.home-section-title p{margin:5px 0;color:var(--muted);font-size:13px}.home-section .overline,.home-welcome .overline,.upcoming-state .overline{color:#8d7034;font-size:10px;letter-spacing:.18em;font-weight:700}
.site-link{color:var(--ink);font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#ad914f}
html body .event-navigation{background:var(--wash);border-bottom:1px solid var(--line);padding:12px 0 0}.event-navigation-track{display:block!important;padding:0!important;overflow:visible!important;white-space:normal!important}
.oom-rank{font:24px Georgia,serif;color:#94783c}
.next-season p{max-width:650px;color:var(--muted);font-size:14px}.upcoming-state{padding:65px 0;min-height:330px}.upcoming-state p{max-width:620px;color:var(--muted)}
html body .footer{background:#103529;color:#e6ece6}.footer-inner p{color:#d3dfd6!important;font-size:12px;max-width:400px}.footer nav{display:flex;flex-wrap:wrap;gap:18px}.footer nav a{font-size:12px;color:#fff;min-height:44px;display:inline-flex;align-items:center}.footer-top{color:#fff!important}
[data-theme="dark"] .home-section .overline,[data-theme="dark"] .home-welcome .overline,[data-theme="dark"] .upcoming-state .overline{color:#d5bb7e}
@media(max-width:700px){body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}.container{padding-left:18px;padding-right:18px}.global-nav{position:fixed;bottom:0;left:0;right:0;z-index:90;border-top:1px solid var(--line);border-bottom:0;background:var(--paper);padding-bottom:env(safe-area-inset-bottom,0px)}.global-nav>.container{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 8px}.global-nav a{flex-direction:column;gap:2px;min-height:66px;font-size:10px;border-bottom:0;border-top:3px solid transparent}.global-nav a[aria-current]{border-top-color:#b39350;background:var(--wash)}.global-nav svg{width:21px;height:21px}.home-welcome{padding:30px 0}.home-welcome h1{font-size:30px}.home-welcome .home-tagline{font-size:13px}.home-welcome p{font-size:13px}.home-section{padding:28px 0}.home-section h2{font-size:23px}.footer nav{gap:16px}.upcoming-state{padding:38px 0}.body-container{min-width:0}}
@media(max-width:350px){.home-welcome h1{font-size:26px}.container{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.footer-identity,.footer nav{min-width:0}
/* V9.2 targeted refinement from saved version 13. */
html body .site-header.shared-header{background:#fff;color:#333;border-bottom:1px solid #c8b680}
.shared-header .masthead-logo-dark { display: none; }
[data-theme="dark"] body .site-header.shared-header {
  background: #103529;
  color: #fff;
  --season-foreground: #fff;
  --season-option-background: #103529;
  --season-hover: #214738;
  --season-focus: #e4ce92;
  --season-color-scheme: dark;
}
[data-theme="dark"] .shared-header .masthead-logo-light { display: none; }
[data-theme="dark"] .shared-header .masthead-logo-dark { display: block; }

html body .event-navigation{background:#103529;padding:0;border:0}.event-navigation-track{display:block!important;padding:0!important;overflow:visible!important}
.compact-event-strip{display:flex;flex-wrap:nowrap;gap:0;overflow-x:auto;max-width:100%;min-width:0;white-space:nowrap;background:#103529;scrollbar-width:thin;scrollbar-color:#b39350 #103529;-webkit-overflow-scrolling:touch}
html body .compact-event-strip a{display:flex;flex:none;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:#fff;text-decoration:none;font-size:13px;font-weight:400;line-height:1.2;white-space:nowrap;border-radius:0;box-shadow:none}
html body .compact-event-strip a[aria-current]{border-bottom-color:#c6af6e;background:transparent;color:#fff;font-weight:600}.compact-event-strip a:focus-visible{outline:2px solid #dec98a;outline-offset:-4px}

/* Scorecard landing. */
.player-result,.leaderboard tr[data-position]{scroll-margin-top:68px}


/* Season selection shares the masthead with both logos. */
html body .shared-header .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: 18px;
  max-width: 650px;
  margin-inline: auto;
  padding-block: 10px;
}
.shared-header .kegt-identity { width: 100%; max-width: 330px; }
.masthead-primary {
  display: grid;
  justify-items: center;
  min-width: 0;
}
.shared-header .sponsor-identity {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  border-left: 1px solid #c8b680;
  padding-left: 18px;
}
.shared-header .sponsor-identity img {
  width: 100%;
  max-width: 170px;
  max-height: 64px;
  object-fit: contain;
}
.season-dropdown { position: relative; display: block; color: var(--season-foreground, #173b2d); }
.season-dropdown::after {
  content: '▾';
  position: absolute;
  inset-inline-end: 7px;
  top: 50%;
  font-size: 11px;
  transform: translateY(-50%);
  pointer-events: none;
}
html body #global-season {
  display: block;
  width: 66px;
  min-height: 44px;
  padding: 0 16px 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  color-scheme: var(--season-color-scheme, light);
  appearance: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#global-season option { color: var(--season-foreground, #173b2d); background: var(--season-option-background, #fff); }
#global-season:hover { background: var(--season-hover, #f4f2ea); }
#global-season:focus-visible { outline: 2px solid var(--season-focus, #8d7034); outline-offset: -2px; }

.home-intro-copy .site-link { display: inline-flex; align-items: center; min-height: 44px; }
.home-sponsor { border-bottom: 1px solid var(--line); }
.home-sponsor > h2 { margin: 0 0 16px; }
.sponsor-feature {
  display: grid;
  place-items: center;
  padding: 26px 24px;
  border-top: 3px solid #b39350;
  border-radius: 4px;
  background: #103529;
}
.sponsor-feature img { display: block; width: min(100%, 360px); height: auto; }
.home-sponsor > p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.home-honours-intro { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .sponsor-feature { padding: 20px; }
  .sponsor-feature img { width: min(100%, 290px); }
}

.season-highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-top: 2px solid #b39350;
  border-radius: 4px;
  background: var(--paper);
}
.season-highlights li + li { border-top: 1px solid var(--line); }
.season-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 16px;
  text-decoration: none;
  color: var(--ink);
}
.season-highlight:hover { background: var(--wash); }
.season-highlight:focus-visible { outline: 2px solid #b39350; outline-offset: -3px; }
.season-highlight-title { font-size: 14px; font-weight: 700; }
.season-highlight-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-size: 13px;
}
.season-highlight-result > span { color: var(--muted); }
.season-highlight svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  color: var(--muted);
}

@media (max-width: 700px) {
  html body .shared-header .header-inner {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 0;
    padding-block: 6px;
  }
  .masthead-primary { padding-right: 12px; }
  .shared-header .sponsor-identity { padding-left: 12px; }
  .shared-header .sponsor-identity img { max-height: 60px; }
  .footer nav[aria-label="Footer navigation"] { display: none; }
  .season-highlight { gap: 8px; padding-inline: 12px; }
}

@media (forced-colors: active) {
  html body #global-season { appearance: auto; color: CanvasText; padding-inline: 4px; }
  .season-dropdown::after { display: none; }
}


/* Season fixture and competition directories */
.body-container:has(:is(.season-fixtures, .season-competitions, .season-members)) { padding-top: 0; }
.home-section:is(.season-fixtures, .season-competitions, .season-members) { padding-top: 24px; }
.fixture-list, .competition-list, .member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 2px solid #b39350;
  background: var(--paper);
}
.fixture-list li + li, .member-list li + li { border-top: 1px solid var(--line); }
.fixture-link, .competition-link, .member-link {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: var(--ink);
  text-decoration: none;
}
.fixture-link { grid-template-columns: 7.5rem minmax(0, 1fr) 16px; }
.fixture-link:hover, .competition-link:hover, .member-link:hover { background: var(--wash); }
.fixture-link:focus-visible, .competition-link:focus-visible, .member-link:focus-visible { outline: 2px solid #b39350; outline-offset: -3px; }
.fixture-date, .fixture-course { display: grid; }
.fixture-date, .fixture-course small { color: var(--muted); }
.fixture-date, .fixture-course small { font-size: 12px; }
.fixture-course strong { font-size: 15px; }
.fixture-link svg, .competition-link svg, .member-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.season-members > p { margin: -6px 0 16px; color: var(--muted); }
.member-link { grid-template-columns: 40px minmax(0, 1fr) 16px; padding-block: 8px; }
.member-link .profile-photo { width: 40px; height: 40px; }
.competition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.competition-list li:nth-child(even) { border-left: 1px solid var(--line); }
.competition-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
.competition-link { grid-template-columns: minmax(0, 1fr) 16px; height: 100%; }
.competition-link strong {
  display: block;
  font: 400 17px/1.4 var(--kegt-display);
}
.competition-link small { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .home-section:is(.season-fixtures, .season-competitions, .season-members) { padding-top: 18px; }
  .fixture-link { grid-template-columns: 5.4rem minmax(0, 1fr) 16px; gap: 10px; padding: 12px; }
  .competition-list { grid-template-columns: minmax(0, 1fr); }
  .competition-list li:nth-child(even) { border-left: 0; }
  .competition-list li + li { border-top: 1px solid var(--line); }
  .member-link { gap: 12px; padding-inline: 12px; }
  .competition-link { gap: 10px; padding: 10px 12px; }
}

/* Shared event overview. */
.event-podium-table tbody tr:first-child {
  background: var(--wash);
  box-shadow: inset 3px 0 #b39350;
}
.event-podium-table tbody th a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}
.event-podium-table + .text-link { margin-top: 8px; }
.event-side-board {
  margin: 0;
  border: 1px solid var(--line);
  border-top: 2px solid #b39350;
  background: var(--paper);
  font-size: 14px;
}
.event-side-board > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 8px;
  padding: 10px 12px;
}
.event-side-board > div + div { border-top: 1px solid var(--line); }
.event-side-board dd { margin: 0; font-weight: 700; }
.season-honours-status { margin: 12px 0; color: var(--muted); }

.event-side-board small {
  display: block;
  color: var(--muted);
}
.event-side-board dd small { font-weight: 400; }
.event-results .results-heading { margin-bottom: 16px; }
html body .event-results :is(.mobile-event-leaderboard, .leaderboard) > thead th {
  background: var(--paper);
  color: var(--muted);
}
.event-results .leaderboard tr[data-position] > :is(th, td) { padding-block: 7px; }
html body .event-results .leaderboard > tbody > tr[data-position]:not([data-position="1"]) { background: var(--paper); }
html body .event-results :is(.mobile-event-leaderboard .oom-leaderboard-row, .leaderboard tr[data-position="1"]) {
  background: #edf4ec;
}
[data-theme="dark"] body .event-results :is(.mobile-event-leaderboard .oom-leaderboard-row, .leaderboard tr[data-position="1"]) {
  background: #283a30;
}
/* Mobile event totals share the OOM row and disclosure styles. */
.mobile-event-leaderboard { table-layout: fixed; }
.mobile-event-pos { width: 34px; }
.mobile-event-points { width: 54px; }
.mobile-event-control { width: 44px; }
.mobile-event-leaderboard > tbody > tr[id^="mobile-result-"] { scroll-margin-top: 68px; }
.mobile-event-leaderboard .oom-rank { font-size: 20px; }
.mobile-event-split,
.mobile-event-distinction {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}
.mobile-event-split { color: var(--muted); }
.mobile-event-distinction { color: #826322; font-weight: 600; }
[data-theme="dark"] .mobile-event-distinction { color: #e6cc90; }
.mobile-event-leaderboard .oom-expand-scores:focus-visible {
  outline: 2px solid #b39350;
  outline-offset: -3px;
}
/* Frame the player and expanded card without consuming any table space. */
:is(.event-results, .oom-championship) {
  --scorecard-trim: #9ca6a0;
  --winner-scorecard-trim: #b39350;
}
[data-theme="dark"] :is(.event-results, .oom-championship) { --scorecard-trim: #69747a; }
:is(.event-results, .oom-championship) :is(.mobile-event-leaderboard, .leaderboard, .oom-standings-table) > tbody >
  :where(tr:has(+ .expanded-row:not([hidden])), .expanded-row:not([hidden])) > :is(td, th) {
  position: relative;
}
:is(.event-results, .oom-championship) :is(.mobile-event-leaderboard, .leaderboard, .oom-standings-table) > tbody >
  :where(tr:has(+ .expanded-row:not([hidden])), .expanded-row:not([hidden])) > :is(td, th)::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--scorecard-trim);
  pointer-events: none;
  z-index: 1;
}
:is(.event-results, .oom-championship) :is(.mobile-event-leaderboard, .leaderboard, .oom-standings-table) > tbody >
  tr:has(+ .expanded-row:not([hidden])) > :is(td, th)::after {
  border-top-width: 1px;
}
:is(.event-results, .oom-championship) :is(.mobile-event-leaderboard, .leaderboard, .oom-standings-table) > tbody >
  tr:has(+ .expanded-row:not([hidden])) > td:first-child::after {
  border-left-width: 1px;
}
:is(.event-results, .oom-championship) :is(.mobile-event-leaderboard, .leaderboard, .oom-standings-table) > tbody >
  tr:has(+ .expanded-row:not([hidden])) > td:last-child::after {
  border-right-width: 1px;
}
:is(.event-results, .oom-championship) :is(.mobile-event-leaderboard, .leaderboard, .oom-standings-table) > tbody >
  .expanded-row:not([hidden]) > td::after {
  border-width: 0 1px 1px;
}
.event-results :is(.oom-leaderboard-row, [data-position="1"]):has(+ .expanded-row:not([hidden])),
.event-results :is(.oom-leaderboard-row, [data-position="1"]) + .expanded-row:not([hidden]),
.oom-standings-table > tbody:first-of-type > tr {
  --scorecard-trim: var(--winner-scorecard-trim);
}
#tab-content :is(.event-results .round-section, .oom-championship .oom-tracker) {
  background: var(--paper);
  border-color: var(--line);
  border-top: 3px solid #b39350;
  border-radius: 4px;
}
#tab-content .event-results .hole-readout-list > div {
  background: var(--wash);
  border-color: var(--line);
}

/* Shared footer, with the sponsor separated from the Tour mark. */
html body .footer .footer-inner {
  display: grid;
  justify-content: stretch;
  justify-items: start;
  gap: 14px;
}
.footer .footer-identity {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  width: min(100%, 420px);
}
.footer-identity > img { padding-right: 14px; }
.footer-sponsor {
  display: grid;
  justify-items: center;
  border-left: 1px solid #c8b680;
  padding-left: 14px;
}
.footer-sponsor img { width: min(100%, 150px); }
.footer .footer-inner p { margin: 0; }
.footer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 320px);
}
html body .footer .footer-controls button {
  position: static;
  grid-area: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #89a18e;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}
html body .footer .footer-controls button:hover { border-color: #dec98a; }
.footer-controls button:focus-visible { outline: 2px solid #dec98a; outline-offset: 3px; }
.footer-controls button span { font-size: inherit; letter-spacing: normal; }
.footer-controls button .theme-icon { font-size: 18px; }

/* Sponsor page and logo navigation. */
a:is(.sponsor-identity, .footer-sponsor, .sponsor-feature):focus-visible {
  outline: 2px solid #b39350;
  outline-offset: 3px;
}
.sponsor-page-heading h1 { margin: 0 0 16px; }
.sponsor-page p { line-height: 1.65; }
.sponsor-page .oom-section > p:first-child { margin-top: 0; }
.county-polos { margin: 18px 0; }
.county-polos img { display: block; width: 100%; height: auto; border-radius: 4px; }
.county-polos figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.sponsor-page .site-link { display: inline-flex; align-items: center; min-height: 44px; }
