@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #edf1f6;
  --table-surface: #f7f9fc;
  --table-heading: #e3eaf4;
  --navy: #102240;
  --ink: #162d50;
  --quiet: #4d5f7a;
  --rule: #cbd6e4;
  --soft-blue: #e8eef7;
  --gold: #efc86c;
  --gold-soft: #f8ebc9;
  --gold-ink: #765318;
  --accent: #b58233;
  --focus-ring: #956414;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --content: 78rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1220;
  --surface: #1e2d42;
  --table-surface: #142034;
  --table-heading: #28384f;
  --navy: #020617;
  --ink: #e5e7eb;
  --quiet: #94a3b8;
  --rule: #40536b;
  --soft-blue: #1f2937;
  --gold: #f6cf50;
  --gold-soft: #ffe17e;
  --gold-ink: var(--gold-soft);
  --gold-border: #bc982f;
  --accent: var(--gold);
  --focus-ring: var(--gold);
}

.theme-toggle {
  flex: none;
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .35rem;
  background: transparent;
}
.theme-toggle::before, .theme-toggle::after { content: ""; grid-area: 1 / 1; }
.theme-toggle::before {
  width: 2.125rem;
  height: 1.125rem;
  border: 1px solid #9aa9bf;
  border-radius: .35rem;
  background: #273b5e;
}
.theme-toggle::after {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #f5f7fb;
  transform: translateX(-.5rem);
}
.theme-toggle:hover::before { border-color: var(--gold); }
.theme-toggle[aria-checked="true"]::before { background: var(--gold); border-color: var(--gold); }
.theme-toggle[aria-checked="true"]::after { background: var(--navy); transform: translateX(.5rem); }

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; font-family: var(--body); color: var(--ink); background: var(--paper); }
main { flex: 1; }
main:focus { outline: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
.shell { max-width: var(--content); width: calc(100% - 6rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; left: 1rem; top: -5rem; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }
.fallback { padding-block: 4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { color: #f5f7fb; background: var(--navy); border-bottom: 1px solid #546380; }
.development-banner { margin: 0; padding: .3rem 1rem; color: #102240; background: #f6cf50; font-size: .85rem; font-weight: 700; text-align: center; }
.header-inner { min-height: 4.65rem; display: flex; gap: clamp(.85rem, 1.7vw, 1.65rem); align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; flex: none; font-family: var(--display); font-size: 1.5rem; line-height: .88; }
.wordmark-logo { display: block; width: 2.7rem; height: auto; }
.site-footer .wordmark-logo { width: 2.45rem; }
.wordmark-secondary { display: block; }
.target-mark { position: relative; width: 2.2rem; aspect-ratio: 1; border: 2px solid currentColor; border-radius: 100%; display: inline-grid; place-items: center; }
.target-mark::before { content: ""; width: 68%; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 100%; }
.target-mark::after { content: ""; position: absolute; width: .45rem; aspect-ratio: 1; background: var(--accent); border-radius: 100%; }
.site-header .target-mark { color: var(--gold); }
.site-header .target-mark::after { background: var(--gold); }
.main-nav { display: flex; gap: clamp(.75rem, 1.55vw, 1.65rem); align-self: stretch; align-items: stretch; }
.main-nav a, .search-link, .report-menu > summary { display: inline-flex; align-items: center; text-decoration: none; font-size: .91rem; font-weight: 650; }
.main-nav a, .report-menu > summary { border-block: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--gold); color: var(--gold); }
.report-menu { position: relative; }
.report-menu > summary { height: 100%; gap: .45rem; cursor: pointer; list-style: none; -webkit-tap-highlight-color: #ff9aa433; }
.report-menu > summary::-webkit-details-marker { display: none; }
.report-menu > summary::after { content: ""; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.1rem) rotate(45deg); }
.report-menu > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.report-menu[open] > summary, .report-menu:has(a[aria-current]) > summary { border-bottom-color: #ff9aa4; }
.report-menu[open] > summary::after { transform: translateY(.1rem) rotate(225deg); }
.report-options { position: absolute; z-index: 2; top: 100%; left: 0; min-width: 12rem; padding: .3rem; margin: 0; list-style: none; background: #101e34; border: 1px solid #546380; border-radius: .35rem; box-shadow: 0 .4rem 1rem #02061766; }
.report-options a { display: flex; min-height: 2.75rem; padding: .46rem .65rem; border: 0; border-radius: .25rem; }
.report-options a:hover, .report-options a[aria-current] { background: #273b5e; }
.search-link, .menu-toggle { border: 1px solid #ad925d; color: #f8dc97; border-radius: .35rem; }
.search-link { gap: .65rem; padding: .62rem .9rem; white-space: nowrap; }
.search-link:hover, .search-link[aria-current], .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: #273b5e; }
.search-icon { display: inline-block; width: .81rem; height: .81rem; border: 1.5px solid currentColor; border-radius: 100%; position: relative; flex: none; margin: 0 .15rem .12rem 0; }
.search-icon::after { content: ""; position: absolute; width: .39rem; right: -.3rem; bottom: -.14rem; height: 1.5px; transform: rotate(48deg); background: currentColor; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 1.15rem; height: 2px; border-radius: 1px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset: 0; }
.menu-icon::before { transform: translateY(-.32rem); }
.menu-icon::after { transform: translateY(.32rem); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

.hero { color: var(--paper); background: var(--navy); position: relative; display: grid; overflow: hidden; }
.hero-visual { position: absolute; inset: 0 0 0 41%; margin: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 63%; filter: saturate(.76); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, #102240ba 18%, #10224026 54%), linear-gradient(0deg,#1022405a, transparent 45%); }
.hero-inner { position: relative; padding-block: clamp(2.65rem, 4.4vw, 4.9rem); }
.hero-copy { max-width: 53%; }
.hero h1 { font-size: clamp(4.75rem, 8.6vw, 7.85rem); line-height: .8; letter-spacing: -.022em; }
.hero-logo { line-height: 0; }
.hero-logo img { display: block; width: min(100%, 26rem); height: auto; filter: drop-shadow(0 .35rem 1.1rem #07152c66); }
.hero h1 span { display: block; }
.hero h1 span:first-child { margin-bottom: .13em; }
.hero-description { color: #e1e9f6; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.57; max-width: 35ch; margin-block: 1.4rem 1.25rem; }
.hero-search { display: flex; gap: .55rem; max-width: 30rem; margin-bottom: .9rem; }
.hero-search label { flex: 1; min-width: 0; }
.hero-search input { color: var(--navy); display: block; min-height: 3rem; width: 100%; border: 1px solid #9eafc9; border-radius: .35rem; padding: .45rem .8rem; background: #fcfdff; }
.hero-search input::placeholder { color: var(--quiet); }
.hero-search .button { min-height: 3rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid var(--navy); border-radius: .35rem; min-height: 2.85rem; padding: .65rem .95rem; text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--navy); color: var(--paper); }
.button:hover { background: #294367; }
.button-light { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.button-light:hover { background: #f7d589; }
.button-outline { background: transparent; color: var(--navy); border-color: #9daec8; }
.button-outline:hover { background: var(--soft-blue); }
.hero .button-outline { color: var(--paper); border-color: #7f92b3; }
.hero .button-outline:hover { background: #294367; }
.site-header :focus-visible, .hero :focus-visible, .shooter-hero :focus-visible { outline-color: var(--gold); }
.arrow { font-family: system-ui, sans-serif; font-weight: 400; }

.archive-stats { background: var(--gold-soft); border-block: 1px solid #ddc995; color: var(--navy); }
.archive-stats dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 0; }
.archive-stat { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .85rem; min-height: 6.1rem; padding-inline: clamp(.9rem, 2vw, 2rem); }
.archive-stat:first-child { padding-left: 0; }
.archive-stat + .archive-stat { border-left: 1px solid #dac58f; }
.archive-stats dd { margin: 0; font-family: var(--display); font-size: clamp(2.75rem, 4vw, 3.8rem); line-height: .9; font-variant-numeric: tabular-nums; }
.archive-stats dt { font-size: .88rem; font-weight: 650; line-height: 1.25; max-width: 12ch; }

.home-content { padding-block: 2.9rem 4.8rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-head h2, .section-title { font-size: clamp(2.35rem, 4.5vw, 3.6rem); line-height: .98; }
.text-link { font-weight: 700; font-size: .9rem; }
.text-link:hover { color: var(--gold-ink); }
.home-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.8rem); }
.home-log { border-top: 1px solid var(--rule); }
.home-log-row { min-height: 4.1rem; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; border-bottom: 1px solid var(--rule); padding-block: .65rem; }
.home-log-year { color: var(--quiet); font-weight: 700; font-variant-numeric: tabular-nums; }
.home-log-title { font-weight: 700; }
.home-log-title a { text-decoration-thickness: 1px; text-decoration-color: transparent; }
.home-log-title a:hover { text-decoration-color: currentColor; }
.home-log-score { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.meta { color: var(--quiet); font-size: .83rem; line-height: 1.45; }
.regional-callout { margin-top: 2.6rem; background: var(--soft-blue); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1.35rem 1.55rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.regional-callout h2 { font-size: 2.2rem; line-height: 1; }
.regional-callout p { margin-top: .35rem; color: var(--quiet); }
.featured-shooters { margin-top: 2.9rem; }

.page-intro { background: var(--soft-blue); border-bottom: 1px solid var(--rule); padding-block: 2.45rem 2.7rem; }
.page-intro h1 { font-size: clamp(3.8rem, 8vw, 6.2rem); line-height: .93; letter-spacing: -.012em; max-width: 24ch; }
.page-intro p { color: var(--quiet); margin-top: .8rem; max-width: 66ch; font-size: 1rem; line-height: 1.55; }
.breadcrumbs { margin-bottom: .9rem; color: var(--quiet); font-size: .86rem; }
.breadcrumbs a { font-weight: 700; }
.page-body { padding-block: 1.7rem 4.5rem; }
.view-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.35rem; }
.view-switch a { font-size: .9rem; font-weight: 700; text-decoration: none; border: 1px solid #a1b1c9; border-radius: .35rem; background: var(--surface); padding: .6rem .85rem; }
.view-switch a:hover { background: var(--soft-blue); }
.view-switch a[aria-current] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.filter-panel { display: flex; flex-wrap: wrap; gap: .85rem; align-items: flex-end; padding: 1rem; border: 1px solid var(--rule); background: var(--surface); }
.field { flex: 1 1 8rem; min-width: 7rem; display: grid; gap: .32rem; font-size: .82rem; font-weight: 700; }
.field-search { flex: 2.5 1 13rem; }
.field input, .field select { min-height: 2.65rem; border-radius: .35rem; width: 100%; background: var(--paper); border: 1px solid #a6b5cb; padding: .45rem .62rem; font-size: .91rem; font-weight: 500; }
.filter-reset { min-height: 2.65rem; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; padding: .25rem .55rem; font-size: .83rem; font-weight: 700; }
.filter-reset:hover { background: var(--soft-blue); }
.archive-caption { margin-block: 0 1rem; color: var(--quiet); font-size: .92rem; line-height: 1.5; }
.results-status { margin: 1.15rem 0 .55rem; color: var(--quiet); font-size: .88rem; font-weight: 600; }
.table-frame { overflow-x: auto; border: 1px solid var(--rule); border-radius: .35rem; background: var(--table-surface); }
.table-frame:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.archive-table { width: 100%; border-collapse: collapse; text-align: left; }
.archive-table th { font-size: .83rem; color: var(--quiet); font-weight: 700; background: var(--table-heading); white-space: nowrap; }
.archive-table th, .archive-table td { padding: .67rem .85rem; vertical-align: top; }
.archive-table td { border-top: 1px solid var(--rule); font-size: .91rem; line-height: 1.4; min-width: 6rem; }
.archive-table td:first-child { width: 14%; }
.archive-table td:last-child { white-space: nowrap; }
.archive-table .primary { font-weight: 700; }
.archive-table .score { display: inline-block; font-family: var(--display); font-size: 1.45rem; font-weight: 700; white-space: nowrap; line-height: 1; }
.archive-table a { text-decoration-color: #899bb8; }
.archive-table a:hover { text-decoration-color: currentColor; }
.subline { display: block; margin-top: .23rem; }
.score-straight { color: var(--navy); background: var(--gold-soft); border: 1px solid #ead5a0; border-radius: .3rem; padding: .25rem .45rem; }
.empty { border: 1px solid var(--rule); background: var(--surface); padding: 1.3rem; margin-top: .5rem; }
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.pager button:disabled { opacity: .5; cursor: default; }
.pager span { color: var(--quiet); font-size: .88rem; }

.region-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 0 1.25rem; }
.region-nav a { text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; padding: .52rem .7rem; border: 1px solid var(--rule); background: var(--surface); border-radius: .25rem; font-size: .88rem; font-weight: 700; }
.region-nav a:hover { background: var(--soft-blue); }
.region-nav a[aria-current] { background: var(--gold-soft); border-color: #ad8544; }
.region-nav small { color: var(--quiet); font-weight: 500; }
.profile-section + .profile-section { margin-top: 2.4rem; }
.profile-section h2 { margin-bottom: .65rem; }
.profile-section .archive-caption { margin-bottom: .6rem; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.source-card { border: 1px solid var(--rule); border-top: 3px solid var(--accent); background: var(--surface); padding: 1.15rem; }
.source-card h2 { font-size: 1.9rem; line-height: 1.05; }
.source-card p { line-height: 1.5; margin-block: .5rem .7rem; font-size: .91rem; }
.source-card ul { margin-block: .6rem 0; padding-left: 1.2rem; font-size: .89rem; }
.source-card li + li { margin-top: .35rem; }
.coverage-note { max-width: 77ch; line-height: 1.55; margin-bottom: 1.2rem; }
.kent-coverage { margin-bottom: 1rem; }
.kent-coverage .coverage-note { margin-bottom: .45rem; }
.coverage-section { margin-block: 1.8rem 2.4rem; }
.coverage-section h2, .source-title { margin-bottom: .7rem; }
.coverage-section td:first-child { width: auto; }

.portrait { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; aspect-ratio: 1; color: #ffda89; background: #253c61; border-radius: .45rem; }
.portrait::before, .portrait::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; width: 82%; border: 1px solid #e6c17b6b; border-radius: 50%; }
.portrait::after { width: 66%; }
.portrait-initials { font-family: var(--display); font-size: 2rem; letter-spacing: .045em; line-height: 1; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; color: transparent; }
.portrait:has(img[data-portrait]) .portrait-initials { display: none; }
.shooter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.shooter-grid:focus { outline: none; }
.shooter-card { min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: .45rem; }
.shooter-card:hover { border-color: #a98749; }
.shooter-card-link { display: grid; grid-template-columns: 3.8rem minmax(0, 1fr); align-items: center; gap: .7rem; min-height: 100%; padding: .7rem; text-decoration: none; }
.shooter-card-info { display: grid; gap: .13rem; overflow-wrap: anywhere; }
.shooter-card-name { font-family: var(--display); font-size: 1.35rem; line-height: 1; font-weight: 700; }
.shooter-card-link:hover .shooter-card-name { text-decoration: underline; }
.shooter-card-counts { font-size: .77rem; line-height: 1.35; color: var(--quiet); }

.shooter-hero { padding-block: 1.4rem 2.25rem; color: var(--paper); background: linear-gradient(105deg, #102240, #183760); border-bottom: 3px solid var(--accent); }
.shooter-hero .breadcrumbs, .shooter-hero .meta { color: #dbe6f7; }
.shooter-hero-grid { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3.7rem); align-items: center; }
.shooter-photo { margin: 0; }
.shooter-photo .portrait { padding-block-end: 2.75rem; border: 1px solid #e9ba66; box-shadow: 0 0 0 4px #223a5d; }
.shooter-photo .portrait:has(img[data-portrait]) { aspect-ratio: auto; }
.shooter-photo .portrait img { position: static; width: auto; height: auto; max-width: 100%; max-height: min(24rem, 60vh); }
.shooter-photo .portrait-initials { font-size: clamp(3.7rem, 8vw, 6.2rem); }
.portrait-action {
  position: absolute;
  inset-inline-end: .35rem;
  inset-block-end: .35rem;
  min-width: 3rem;
  min-height: 2rem;
  padding: .2rem .55rem;
  border: 1px solid #c69849;
  border-radius: .25rem;
  background: #102240;
  color: #ffe17e;
  font: 700 .78rem var(--body);
  cursor: pointer;
}
.portrait-action:hover { background: #294367; }
.portrait-action:focus-visible { outline-offset: 2px; }
.shooter-photo figcaption { color: #d9e3f0; font-size: .72rem; line-height: 1.5; margin-top: .5rem; }
.shooter-photo figcaption a { color: #f4d580; font-size: inherit; }
.profile-photos { display: flex; flex-wrap: wrap; gap: 1rem; }
.profile-photos figure { width: min(100%, 21rem); margin: 0; }
.profile-photos img { width: 100%; height: auto; border-radius: .35rem; }
.profile-photos figcaption { margin-top: .4rem; }
.shooter-subtitle, .shooter-alias { color: #dbe6f7; font-size: .97rem; line-height: 1.45; margin-top: .5rem; }
.shooter-alias { font-size: .8rem; }
.shooter-stats { display: flex; flex-wrap: wrap; gap: clamp(.65rem, 3vw, 2rem); margin: 1.25rem 0 0; }
.shooter-stats div { display: flex; flex-direction: column-reverse; gap: .25rem; }
.shooter-stats div + div { border-left: 1px solid #637694; padding-left: clamp(.65rem, 3vw, 2rem); }
.shooter-stats dt { color: #e4ecf7; font-size: .78rem; line-height: 1.2; }
.shooter-stats dd { margin: 0; color: var(--gold); font-family: var(--display); font-size: 2.35rem; line-height: .9; }
.profile-details { padding: 1.2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: .45rem; margin-bottom: 2.15rem; }
.profile-details .section-head { margin-bottom: .6rem; }
.profile-details .section-head h2 { font-size: 2.45rem; }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; }
.profile-facts > div { padding: .7rem 0; border-top: 1px solid var(--rule); }
.profile-facts dt { font-size: .82rem; font-weight: 700; color: var(--quiet); margin-bottom: .3rem; }
.profile-facts dd { margin: 0; }
.profile-fact-value { display: block; font-weight: 700; line-height: 1.45; }
.profile-affiliation dt { font-size: 1.64rem; line-height: 1.15; }
.profile-affiliation .profile-fact-value { font-size: 2rem; line-height: 1.15; overflow-wrap: anywhere; }
.profile-affiliation .shooter-flag { width: 1.25em; height: .9375em; margin-inline-end: .38em; }
.profile-affiliation .county-flag { width: 1.5em; height: 1em; margin-inline-end: .35em; }
.profile-fact-source { display: block; margin: .17rem 0 .5rem; }
.profile-fact-source a { font-size: .8rem; }
.profile-notes { border-top: 1px solid var(--rule); margin-top: .3rem; padding-top: .75rem; max-width: 78ch; }
.profile-notes p { font-size: .91rem; line-height: 1.5; }
.profile-notes p + p { margin-top: .5rem; }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-save-status:not(:empty) { display: block; margin-block-start: .65rem; }
.profile-photo-viewer { max-width: 38rem; padding: .8rem 1rem; margin-bottom: 2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: .45rem; }
.profile-photo-viewer summary { font-weight: 700; cursor: pointer; }
.profile-photo-viewer summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.profile-photo-embed iframe { display: block; width: 100%; aspect-ratio: 594 / 395; border: 0; margin-block: .75rem .45rem; }

.place-label { display: inline-block; min-width: 2.3rem; padding: .16rem .42rem; background: var(--soft-blue); border: 1px solid var(--rule); border-radius: .25rem; color: var(--ink); font-size: .83rem; font-weight: 700; text-align: center; }
.place-label[data-place="1"] { color: var(--gold-ink); border-color: #d4ad51; background: var(--gold-soft); }
.place-label[data-place="2"] { color: #26364d; border-color: #8a9ab0; background: #e4e9f1; }
.place-label[data-place="3"] { color: #6a371e; border-color: #b77750; background: #f1ddcd; }
.shooter-flag { display: inline-block; width: 1.25rem; height: .9375rem; margin-inline-end: .38rem; vertical-align: -.13em; object-fit: contain; border: 1px solid #9aa9bf; border-radius: .12rem; }
.county-flag { display: inline-block; width: 1.5rem; height: 1rem; margin-inline-end: .35rem; vertical-align: -.14em; object-fit: contain; border: 1px solid #9aa9bf; border-radius: .12rem; }
.championship-winner h3 .county-flag { width: 1.85rem; height: 1.24rem; margin-inline-end: .55rem; }
.shooter-profile-name { display: flex; align-items: baseline; font: 700 clamp(3.5rem, 8.2vw, 6.15rem)/.9 var(--display); letter-spacing: -.018em; }
.shooter-profile-name h1 { min-width: 0; font: inherit; overflow-wrap: anywhere; }
.shooter-profile-name .shooter-flag { flex: none; width: auto; height: .7em; height: 1cap; margin-inline-end: .15em; }
.event-overview { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 2.25rem); margin-bottom: 2.1rem; }
.event-main { display: grid; gap: 1rem; min-width: 0; }
.event-info { min-width: 0; border: 1px solid var(--rule); border-radius: .45rem; background: var(--surface); padding: 1.1rem; }
.event-info h2 { margin-bottom: .7rem; font-size: 2.15rem; line-height: 1; }
.event-winners { border-top: 3px solid var(--accent); }
.championship-winner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding-block: .75rem; border-top: 1px solid var(--rule); }
.championship-winner .portrait { width: clamp(3.5rem, 8vw, 5.2rem); }
.championship-winner .portrait-initials { font-size: 2.3rem; }
.championship-winner h3 { font-size: clamp(1.65rem, 4vw, 2.55rem); line-height: 1; margin-block: .15rem .23rem; }
.championship-winner h3 a { text-decoration-color: #a28c66; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.winner-score { text-align: right; font-family: var(--display); font-size: 2.15rem; line-height: 1; }
.winner-score .meta { font-family: var(--body); }
.winner-award { font-weight: 700; color: var(--gold-ink); }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 0; }
.event-facts dt { color: var(--quiet); font-size: .82rem; font-weight: 700; margin-bottom: .3rem; }
.event-facts dd { margin: 0; overflow-wrap: anywhere; }
.weather-report { margin-block: 1rem .65rem; }
.weather-report h3 { font-size: 1.4rem; }
.weather-report p { margin-top: .28rem; font-size: .9rem; line-height: 1.5; }
.event-facts + .meta, .weather-details { margin-top: .85rem; }
.weather-details summary, .more-trophies summary, .selection-scores summary { cursor: pointer; font-weight: 700; }
.weather-details .table-frame { margin-block: .6rem .4rem; }
.weather-details th, .weather-details td { padding-inline: .4rem; font-size: .84rem; }
.event-trophy { margin: 0 0 .75rem; }
.event-trophy img { width: 100%; max-height: 26rem; object-fit: contain; background: var(--soft-blue); border: 1px solid var(--rule); border-radius: .4rem; }
.event-trophy figcaption { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; margin-top: .55rem; }
.event-trophy figcaption .meta { flex-basis: 100%; }
.more-trophies figure { margin-top: .8rem; }
.event-sources { margin-top: 2rem; }
.event-international-link { margin-bottom: 1.6rem; }

.championship-index { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.championship-picker + .championship-picker { margin-top: 1.6rem; }
.championship-index > .section-title,
.championship-picker h2,
.championship-search-heading { margin-bottom: .7rem; }
.championship-cards { display: grid; gap: .85rem; }
.major-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.minor-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.championship-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .8rem .85rem;
  background: #101e34;
  color: #fff5dd;
  border: 1px solid #394e6c;
  border-left: 3px solid var(--gold);
  border-radius: .4rem;
  text-decoration: none;
}
.championship-card:hover, .championship-card:focus-visible { color: #fff5dd; border-color: var(--gold); }
.championship-card:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .17em; }
.championship-card-label { min-width: 0; }
.championship-card strong { display: block; font: 700 clamp(1.35rem, 2.15vw, 1.9rem)/1.04 var(--display); }
.championship-card-label > span { display: block; margin-top: .35rem; color: #d2def0; font-size: .83rem; }
.major-cards .championship-card { padding-inline: clamp(1.1rem, 2.8vw, 2.15rem); }
.major-cards .championship-card strong { font-size: clamp(2.4rem, 5vw, 4rem); }
.championship-card-art {
  width: clamp(4.25rem, 7.2vw, 6rem);
  aspect-ratio: 1;
  border-radius: .28rem;
  background: #14223a url("assets/championship-trophies.webp") no-repeat;
  background-size: 300% 200%;
}
.major-cards .championship-card-art { width: clamp(7rem, 14vw, 11.4rem); }
.championship-card-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.county-card-art { background: none !important; display: grid; place-items: center; }
.shooter-profile-name .county-flag { width: 40px; height: 30px; }
[data-championship="british-open-esk"] .championship-card-art { background-position: left top; }
[data-championship="english-open-esk"] .championship-card-art { background-position: center top; }
[data-championship="english-open-skd"] .championship-card-art { background-position: right top; }
[data-championship="national-ic-esk"] .championship-card-art { background-position: left bottom; }
[data-championship="regional-team"] .championship-card-art { background-position: center bottom; }
[data-championship="regional-individual"] .championship-card-art { background-position: right bottom; }
.trophy-art-note { margin-top: .6rem; }

.championship-series-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .65rem 1rem; margin-bottom: 1rem; }
.championship-summary { margin-bottom: 1rem; }
.championship-summary h2, .championship-records h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); line-height: 1; margin-bottom: .6rem; }
.championship-summary .table-frame { border-top: 2px solid var(--accent); }
.championship-summary-scroll .table-frame { max-height: min(55vh, 32rem); overflow-y: auto; }
.championship-summary-scroll th { position: sticky; top: 0; }
.championship-summary .archive-table td:first-child { width: 5rem; min-width: 0; }
.championship-summary .archive-table td:last-child { white-space: normal; }
.championship-summary-list { margin: 0; padding: 0; list-style: none; }
.championship-summary-list li + li { margin-top: .2rem; }
.championship-records { margin-block: 1.15rem 1.35rem; }
.championship-group-editions .championship-records { margin-bottom: 0; }
.championship-record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; gap: .8rem; margin-top: .65rem; }
.championship-record { min-width: 0; border: 1px solid var(--rule); border-top: 2px solid var(--accent); border-radius: .35rem; padding: .8rem .95rem; background: var(--surface); overflow-wrap: anywhere; }
.championship-record h3 { color: var(--quiet); font: 700 .88rem var(--body); }
.championship-record-count { margin-top: .25rem; color: var(--gold-ink); font: 700 clamp(1.9rem, 3.6vw, 2.45rem)/1 var(--display); }
.championship-record-count span { font: 700 .88rem var(--body); }
.championship-record-holders { margin: .3rem 0 0; padding: 0; list-style: none; }
.championship-record-holders li + li { margin-top: .35rem; }
.championship-record-years, .championship-record-more { font-size: .83rem; }
.championship-record-coverage, .championship-record-more { margin-top: .4rem; }
.championship-record-more summary { width: fit-content; cursor: pointer; font-weight: 700; }
.championship-record-more summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.championship-record-more .table-frame { margin-top: .5rem; }
.championship-context { margin-bottom: 1.35rem; }
.championship-groups, .championship-group-editions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.championship-group > summary strong { font: 700 clamp(1.35rem, 3vw, 1.7rem)/1.1 var(--display); }
.championship-group-editions { padding: .8rem .95rem 1rem; border-top: 1px solid var(--rule); background: var(--paper); }
.championship-seasons { display: grid; gap: 1.5rem; }
.championship-season { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.championship-season h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); line-height: 1; }
:is(.championship-group, .championship-edition) { min-width: 0; border: 1px solid var(--rule); border-radius: .35rem; background: var(--surface); }
.championship-group { border-left: 3px solid var(--accent); }
:is(.championship-group, .championship-edition) > summary { display: flex; align-items: center; gap: .75rem; padding: .82rem .95rem; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
:is(.championship-group, .championship-edition) > summary::-webkit-details-marker { display: none; }
:is(.championship-group, .championship-edition) > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
:is(.championship-group, .championship-edition) > summary::before { content: "+"; color: var(--gold-ink); font-weight: 700; }
:is(.championship-group, .championship-edition)[open] > summary::before { content: "−"; }
.championship-edition > summary strong { font-weight: 700; }
.championship-edition > summary > span:first-of-type { flex: 1; min-width: 0; }
.championship-edition-winner { flex: none; max-width: 35%; text-align: right; font-size: .85rem; color: var(--gold-ink); font-weight: 700; }
.championship-edition-body { padding: .8rem .95rem 1rem; border-top: 1px solid var(--rule); }
.championship-edition-link { margin-bottom: .75rem; }
.championship-placings + .championship-placings { margin-top: 1.25rem; }
.championship-placings h3 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1; margin-bottom: .55rem; }

.hcit-years { display: grid; gap: 1.5rem; }
.hcit-year { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.hcit-year > h2 { color: var(--navy); font-size: 2.2rem; line-height: 1; padding-top: .6rem; }
.hcit-year-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.hcit-card { min-width: 0; padding: 1rem; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: .35rem; background: var(--surface); text-decoration: none; }
.hcit-card:hover { border-color: var(--accent); }
.hcit-card:hover h3 { text-decoration: underline; }
.hcit-card h3 { font-size: 1.75rem; line-height: 1.1; }
.hcit-card p { margin-top: .35rem; }
.hcit-card-summary { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: .85rem 0 0; }
.hcit-card-summary dt { color: var(--quiet); font-size: .76rem; font-weight: 700; }
.hcit-card-summary dd { margin: .16rem 0 0; font-weight: 700; }
.hcit-links { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin-bottom: 1.2rem; }
.hcit-jump { border: 0; background: none; color: inherit; padding: 0; font-family: inherit; cursor: pointer; }
.hcit-winners { margin-bottom: 1.6rem; }
.hcit-podiums td { vertical-align: top; }
.podium-team { display: block; font-weight: 700; }
.podium-team + .podium-team { margin-top: .55rem; }
.podium-team .score { font-size: 1.15rem; }
.hcit-awards { margin-bottom: .75rem; padding: .8rem; border: 1px solid var(--rule); border-radius: .35rem; background: var(--surface); }
.hcit-awards summary { cursor: pointer; font-weight: 700; }
.hcit-awards .table-frame { margin-top: .7rem; }
.hcit-squad-title { margin-top: 1.8rem; }
.national-squad-overview { margin-bottom: 1.6rem; }
.national-squad-overview .section-title { margin-bottom: .8rem; font-size: clamp(1.85rem, 3.4vw, 2.65rem); }
.national-squad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.national-squad-card {
  display: block; min-width: 0; padding: .8rem .9rem; border: 1px solid var(--rule);
  border-block-start: 2px solid var(--gold); border-radius: .35rem; background: var(--surface); text-decoration: none;
}
.national-squad-card:hover { border-color: var(--accent); }
.national-squad-card:hover h3 { text-decoration: underline; }
.national-squad-card h3 { font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.05; }
.national-squad-card p { margin: .35rem 0 0; }
.national-squad-match { margin: .8rem 0 0; }
@media (max-width: 54rem) {
  .national-squad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.international-list:focus { outline: none; }
.international-edition { margin-bottom: 1.55rem; padding: clamp(.9rem, 2.5vw, 1.45rem); border: 1px solid var(--rule); background: var(--surface); border-radius: .45rem; }
.competition-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; padding-bottom: .85rem; border-bottom: 1px solid var(--rule); }
.competition-summary h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1.05; }
.competition-summary .meta { margin-top: .32rem; }
.competition-summary > div:last-child { flex: none; }
.nations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.nation-panel { min-width: 0; padding: .82rem; border: 1px solid var(--rule); background: var(--paper); border-radius: .35rem; }
.nation-panel:has(.team-squad[open]) { grid-column: 1 / -1; }
.nation-panel h3 { font-size: 1.7rem; line-height: 1; margin-bottom: .65rem; }
.team-squad { margin-top: .5rem; border: 1px solid var(--rule); border-radius: .3rem; background: var(--surface); }
.team-squad summary { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .6rem .7rem; cursor: pointer; font-size: .87rem; font-weight: 700; }
.team-squad summary::-webkit-details-marker { display: none; }
.team-squad summary::before { content: "+"; font-weight: 700; color: var(--gold-ink); }
.team-squad[open] summary::before { content: "−"; }
.team-squad summary > span:first-child { flex: 1; }
.team-squad-result { display: flex; align-items: center; gap: .42rem; }
.team-squad-result .score { font-family: var(--display); font-size: 1.25rem; }
.team-squad > p { padding: .6rem .75rem; margin: 0; }
.selection-rounds { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0 0 .9rem; padding: 0; font-size: .84rem; color: var(--quiet); }
.selection-rounds strong { color: var(--ink); }
.selection-scores .table-frame { margin-top: .65rem; }
.score-category { margin-top: 1.1rem; }
.score-category h3 { color: var(--gold-ink); font-size: 1.5rem; line-height: 1.1; }

.grounds-map { margin-bottom: 1.9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); background: var(--surface); }
.grounds-map .section-head { margin-bottom: .7rem; }
.grounds-map-frame { max-width: 47rem; margin-inline: auto; border: 1px solid var(--rule); border-radius: .35rem; background: #f8fafd; }
.grounds-map svg { display: block; width: 100%; height: auto; }
.grounds-map .land { fill: #dce6f2; stroke: #9caec6; stroke-width: 1.5; }
.grounds-map .land-uk { fill: #d2dfee; }
.grounds-map .map-names text { fill: #71839d; font: 700 14px var(--body); letter-spacing: .09em; text-transform: uppercase; }
.grounds-map .jersey-inset rect { fill: #fff; stroke: #b6c4d7; stroke-dasharray: 4 3; }
.grounds-map .guernsey-inset rect { fill: #fff; stroke: #b6c4d7; stroke-dasharray: 4 3; }
.grounds-map .guernsey-inset path { fill: #dce6f2; stroke: #9caec6; stroke-width: 1.2; }
.grounds-map .guernsey-inset text { fill: #71839d; font: 700 10px var(--body); text-anchor: middle; }
.grounds-map .jersey-inset path { fill: #dce6f2; stroke: #9caec6; stroke-width: 1.2; }
.grounds-map .jersey-inset text { fill: #71839d; font: 700 12px var(--body); text-anchor: middle; }
.ground-marker circle { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; transition: r .15s ease; }
.ground-marker[data-nation="england"] circle { fill: #c8102e; }
.ground-marker[data-nation="scotland"] circle { fill: #0065bd; }
.ground-marker[data-nation="wales"] circle { fill: #00a650; }
.ground-marker[data-nation="northern-ireland"] circle { fill: #3c8b56; }
.ground-marker[data-nation="ireland"] circle { fill: #169b62; }
.ground-marker[data-nation="jersey"] circle { fill: #e12735; }
.ground-marker[data-nation="guernsey"] circle { fill: #d3142f; }
.ground-marker[data-nation="isle-of-man"] circle { fill: #c8102e; }
.ground-marker.marker-approximate circle { r: 5.5; fill: #fff; stroke: #4d5f7a; stroke-width: 2.5; }
.ground-marker:hover circle, .ground-marker:focus-visible circle { r: 10; stroke: var(--navy); stroke-width: 3; }
.ground-marker:focus-visible { outline: none; }
.grounds-map-key { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.25rem; margin-top: .85rem; color: var(--quiet); font-size: .83rem; }
.key-dot { display: inline-block; width: 12px; height: 12px; margin-right: .35rem; border: 2px solid #fff; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 1px #9caec6; vertical-align: -1px; }
.key-dot.marker-approximate { background: #fff; border-color: #4d5f7a; }
.grounds-map > .meta { margin: .7rem 0 0; font-size: .8rem; }
.ground-research-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.1rem; }
.ground-research-summary > div { padding: .8rem .9rem; border: 1px solid var(--rule); background: var(--surface); }
.ground-research-summary strong { display: block; color: var(--accent); font: 700 1.6rem/1 var(--display); }
.ground-research-summary span { display: block; margin-top: .35rem; color: var(--quiet); font-size: .78rem; line-height: 1.35; }
.ground-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ground-card { padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-top: 3px solid var(--accent); background: var(--surface); scroll-margin-top: 8rem; }
.ground-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px #efc86c55; }
.ground-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.ground-card h3 { font: 700 1.5rem/1.1 var(--display); }
.ground-card h3 .shooter-flag { width: 22px; height: 16px; margin-right: .45rem; vertical-align: -1px; }
.ground-card > .meta { margin: .45rem 0 0; font-size: .84rem; }
.ground-accuracy { flex: 0 0 auto; padding: .25rem .45rem; border-radius: .25rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ground-accuracy.exact { background: #e4f3e9; color: #24603b; }
.ground-accuracy.approximate { background: var(--gold-soft); color: var(--gold-ink); }
.ground-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.ground-facts dt { color: var(--quiet); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ground-facts dd { margin: .2rem 0 0; font-size: .87rem; font-weight: 700; line-height: 1.3; }
.ground-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .84rem; }
.ground-evidence { margin-top: .85rem; padding-top: .65rem; border-top: 1px solid var(--rule); }
.ground-evidence summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.ground-evidence blockquote { margin: .55rem 0 .35rem; padding-left: .7rem; border-left: 3px solid var(--accent); color: var(--quiet); font-size: .83rem; font-style: italic; line-height: 1.45; }
.ground-events { margin-top: .85rem; padding-top: .65rem; border-top: 1px solid var(--rule); }
.ground-events summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.ground-events ul { margin: .55rem 0 0; padding-left: 1.1rem; font-size: .84rem; line-height: 1.5; }

.site-footer { background: var(--soft-blue); border-top: 1px solid var(--rule); color: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.35rem; justify-content: space-between; align-items: center; padding-block: 1.3rem; }
.footer-inner p { font-size: .86rem; color: var(--quiet); }

html[data-theme="dark"] :is(.hero, .shooter-hero) { color: var(--ink); }
html[data-theme="dark"] .hero-search input {
  background: var(--surface);
  border-color: var(--quiet);
  color: var(--ink);
}

html[data-theme="dark"] :is(.search-link, .button-outline, .menu-toggle) {
  border-color: var(--gold-border);
  color: var(--gold-ink);
}
html[data-theme="dark"] :is(.search-link, .button-outline, .menu-toggle):hover {
  background: var(--gold-soft);
  color: var(--navy);
}
html[data-theme="dark"] .button:not(.button-outline, .button-report):hover { background: var(--gold-soft); }

html[data-theme="dark"] :is(
  .skip-link,
  .archive-stats,
  .score-straight,
  .button:not(.button-outline, .button-report),
  .place-label[data-place="1"],
  .ground-accuracy.approximate,
  .view-switch a[aria-current],
  .region-nav a[aria-current],
  .search-link[aria-current]
) {
  background: var(--gold);
  border-color: var(--gold-border);
  color: var(--navy);
}
html[data-theme="dark"] :is(.view-switch, .region-nav) a:hover { border-color: var(--gold-border); }
html[data-theme="dark"] .region-nav a[aria-current] small { color: var(--navy); }
html[data-theme="dark"] :is(.archive-stat + .archive-stat, .shooter-card:hover, .shooter-photo .portrait) {
  border-color: var(--gold-border);
}
html[data-theme="dark"] :is(.home-log-score, .hcit-year > h2, .portrait, .shooter-photo figcaption a) {
  color: var(--gold-ink);
}
html[data-theme="dark"] .championship-winner h3 a { text-decoration-color: var(--gold-border); }
html[data-theme="dark"] .ground-accuracy.exact { background: var(--soft-blue); color: var(--ink); }

@media (max-width: 70rem) {
  .shell { width: calc(100% - 4rem); }
  .hero h1 { font-size: clamp(4.85rem, 9.4vw, 7rem); }
  .shooter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 78rem) {
  .header-inner { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .85rem; }
  .header-inner .wordmark { grid-area: 1 / 1; }
  .search-link { grid-area: 1 / 2; }
  .main-nav { grid-area: 2 / 1 / 3 / 3; flex-wrap: wrap; gap: .2rem 1rem; min-height: 2.9rem; margin-top: .55rem; }
  .main-nav a { min-height: 2.5rem; }
}

@media (max-width: 60rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; padding-block: .5rem; }
  .header-inner .wordmark { justify-self: start; }
  .search-link { min-height: 2.75rem; }
  .menu-toggle { display: grid; grid-area: 1 / 3; place-items: center; }
  .main-nav {
    grid-area: 2 / 1 / 3 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
    min-height: 0;
    margin: 0;
    padding: .4rem;
    border: 1px solid #546380;
    border-radius: .35rem;
    background: #101e34;
  }
  .menu-toggle[aria-expanded="false"] + .main-nav { display: none; }
  .main-nav a { min-height: 2.75rem; padding-inline: .65rem; white-space: normal; }
  .report-menu { grid-column: 1 / -1; }
  .report-menu > summary { display: flex; width: 100%; height: auto; min-height: 2.75rem; padding-inline: .65rem; }
  .report-options { position: static; min-width: 0; box-shadow: none; }
  .main-nav .theme-toggle { justify-self: start; }
}

@media (max-width: 55rem) {
  .minor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(4.2rem, 9.5vw, 5.8rem); }
  .hero-copy { max-width: 58%; }
  .hero-visual { left: 40%; }
  .home-columns { gap: 1.6rem; }
  .shooter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ground-grid { grid-template-columns: 1fr; }
  .ground-research-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-logo img { width: min(100%, 20rem); }
}

@media (max-width: 42rem) {
  .major-cards { grid-template-columns: 1fr; }
  .minor-cards .championship-card { grid-template-columns: minmax(0, 1fr); gap: .25rem; align-content: start; }
  .minor-cards .championship-card-art { grid-row: 1; width: 5rem; }
  .championship-group-editions, :is(.championship-group, .championship-edition) > summary, .championship-edition-body { padding-inline: .65rem; }
  .shell { width: calc(100% - 2rem); }
  .search-link { padding: .46rem .65rem; font-size: .81rem; }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-inner { padding-block: 2.25rem 2.05rem; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(4rem, 13.9vw, 6rem); }
  .hero-logo img { width: min(100%, 17rem); }
  .hero-description { margin-block: 1rem 1.15rem; }
  .hero-visual { position: relative; inset: auto; height: clamp(10rem, 57vw, 15rem); }
  .hero-visual img { object-position: 63% 68%; }
  .hero-visual::after { background: linear-gradient(180deg, #1022405a, transparent 30%); }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { padding-inline: .7rem; font-size: .82rem; }
  .grounds-map { padding: .75rem; }
  .ground-card-head { flex-direction: column; }
  .ground-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-stat { min-height: 5.35rem; flex-direction: column-reverse; justify-content: center; align-items: flex-start; gap: .25rem; padding-inline: .58rem; }
  .archive-stats dd { font-size: clamp(2.05rem, 8vw, 3rem); }
  .archive-stats dt { font-size: .75rem; }
  .home-content { padding-block: 2.1rem 3rem; }
  .home-columns, .source-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .section-head h2 { font-size: 2.4rem; }
  .regional-callout { align-items: flex-start; flex-direction: column; margin-top: 1.9rem; }
  .page-intro { padding-block: 1.7rem 1.8rem; }
  .page-body { padding-block: 1.2rem 3rem; }
  .table-frame { overflow: visible; border: 0; background: transparent; }
  .archive-table, .archive-table tbody { display: block; }
  .archive-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .archive-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .68rem .8rem; margin-bottom: .65rem; border: 1px solid var(--rule); border-radius: .35rem; background: var(--table-surface); padding: .75rem; }
  .archive-table td, .archive-table td:first-child { display: block; min-width: 0; width: auto; border: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; }
  .championship-summary .archive-table td:first-child { width: auto; }
  .archive-table td::before { content: attr(data-label); display: block; font-size: .74rem; color: var(--quiet); font-weight: 700; margin-bottom: .14rem; }
  .archive-table td[data-label^="Competition"], .archive-table td[data-label="Award or result"] { grid-column: 1 / -1; }
  .field-search { flex-basis: 100%; }
  .shooter-grid { grid-template-columns: 1fr; }
  .shooter-card-link { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .shooter-hero { padding-block: 1.05rem 1.4rem; }
  .shooter-hero-grid { grid-template-columns: minmax(6.7rem, 31%) minmax(0, 1fr); gap: .7rem; align-items: start; }
  .shooter-photo { display: contents; }
  .shooter-photo .portrait { grid-area: 1 / 1; }
  .shooter-photo figcaption { grid-area: 2 / 1 / 3 / 3; margin: 0; }
  .shooter-heading { grid-area: 1 / 2; }
  .shooter-profile-name { font-size: clamp(2.25rem, 9.3vw, 3.6rem); }
  .shooter-subtitle { font-size: .82rem; margin-top: .35rem; }
  .shooter-stats { gap: .6rem; margin-top: .85rem; }
  .shooter-stats div + div { padding-left: .6rem; }
  .shooter-stats dd { font-size: 1.8rem; }
  .shooter-stats dt { font-size: .7rem; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-overview, .nations-grid { grid-template-columns: 1fr; }
  .hcit-year, .hcit-year-editions { grid-template-columns: 1fr; }
  .hcit-year { gap: .5rem; }
  .hcit-year > h2 { padding-top: 0; }
  .competition-summary { flex-direction: column; gap: .55rem; }
  .championship-winner { gap: .6rem; }
  .winner-score { font-size: 1.75rem; }
  .team-squad .table-frame { padding: .4rem; }
  .footer-inner { gap: .9rem; }
}

.profile-editor {
  width: min(42rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5.5rem 6rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1.25rem 3.5rem #02061766;
}
.profile-editor::backdrop { background: #020617ad; }
.portrait-upload-dialog { width: min(31rem, calc(100% - 1.5rem)); }
.portrait-upload-or { text-align: center; }
.profile-editor-header, .profile-editor-content, .profile-editor-footer { padding-inline: clamp(1rem, 3vw, 1.55rem); }
.profile-editor-header, .profile-editor-footer { position: sticky; z-index: 1; background: var(--surface); }
.profile-editor-header {
  inset-block-start: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--rule);
}
.profile-editor-header h2 { font-size: clamp(2rem, 5vw, 2.65rem); line-height: .98; }
.profile-editor-header p { margin-top: .25rem; overflow-wrap: anywhere; }
.profile-editor-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: .35rem;
  background: var(--surface);
  font-size: 1.45rem;
  line-height: 1;
}
.profile-editor-close:hover { background: var(--soft-blue); }
.profile-editor-content { display: grid; gap: .9rem; padding-block: 1rem 1.2rem; }
.profile-editor-content > .text-link { justify-self: start; }
.profile-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.profile-editor-field { display: grid; gap: .28rem; min-width: 0; font-size: .87rem; font-weight: 700; }
.profile-editor-field :is(input, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .6rem .7rem;
  border: 1px solid var(--rule);
  border-radius: .35rem;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.35 var(--body);
}
.profile-editor-field :is(input, textarea)::placeholder { color: var(--quiet); opacity: 1; }
.profile-editor-field textarea { resize: vertical; }
.profile-editor-field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.profile-editor-bio { grid-column: 1 / -1; }
.profile-editor-photos { display: grid; gap: .42rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.profile-editor input[type="file"] { padding: .3rem .4rem; }
.profile-editor ::file-selector-button {
  margin-inline-end: .65rem;
  padding: .38rem .55rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  background: var(--soft-blue);
  color: var(--ink);
  font: 650 .86rem var(--body);
  cursor: pointer;
}
.profile-editor-cover { min-width: 0; margin: .35rem 0 0; padding: 0; border: 0; }
.profile-editor-cover legend { padding: 0; font-size: .87rem; font-weight: 700; }
.profile-editor-cover input[type="radio"] { flex: none; margin: 0; accent-color: var(--accent); }
.profile-editor-default-photo, .profile-editor-photo-actions label {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .42rem;
  cursor: pointer;
}
.profile-editor-default-photo { font-size: .9rem; }
.profile-editor-photo-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.profile-editor-photo { min-width: 0; border: 1px solid var(--rule); border-radius: .35rem; background: var(--paper); }
.profile-editor-photo:has(input:checked) { border-color: var(--focus-ring); }
.profile-editor-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  border-radius: calc(.35rem - 1px) calc(.35rem - 1px) 0 0;
  background: var(--soft-blue);
}
.profile-editor-photo-actions { display: flex; flex-wrap: wrap; justify-content: space-between; padding-inline: .5rem; font-size: .79rem; }
.profile-editor-photo-actions button {
  min-height: 2.75rem;
  padding: 0 .12rem;
  border: 0;
  background: transparent;
  color: var(--quiet);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.profile-editor-photo-actions button:hover { color: var(--ink); }
.profile-editor-footer { inset-block-end: 0; padding-block: .65rem; border-top: 1px solid var(--rule); }
.profile-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.profile-editor-sign-out { margin-inline-end: auto; }
.profile-editor :disabled { cursor: default; opacity: .65; }
.profile-editor-alert {
  margin-bottom: .55rem;
  padding: .55rem .7rem;
  border-inline-start: 3px solid currentColor;
  background: var(--paper);
  color: #a32f24;
  font-size: .88rem;
  line-height: 1.45;
}
html[data-theme="dark"] .profile-editor-alert { color: #ffb2a7; }
.profile-editor-alert:empty { margin: 0; padding: 0; border: 0; }
.profile-editor-sign-in .profile-editor-alert { margin-bottom: 0; }
.profile-editor-sign-in .profile-editor-alert:empty { margin-top: -.9rem; }
.profile-editor [data-progress]:not(:empty) { margin-bottom: .5rem; }

@media (max-width: 35rem) {
  .profile-editor-fields { grid-template-columns: 1fr; }
  .profile-editor-photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-editor-actions { gap: .42rem; }
  .profile-editor-actions .button { padding-inline: .65rem; }
}

@media (max-height: 30rem) {
  .profile-editor { scroll-padding-block: 1rem; }
  .profile-editor-header, .profile-editor-footer { position: static; }
}
