:root {
  --bg: #f4eee0;
  --paper: #fffaf0;
  --paper-strong: #fffdf8;
  --ink: #1f221d;
  --muted: #6a685f;
  --line: #ddcfba;
  --line-strong: #c9b498;
  --accent: #275f49;
  --accent-deep: #163f32;
  --accent-soft: #dbe8df;
  --live-glow: rgba(39, 95, 73, 0.14);
  --live-surface: rgba(232, 242, 236, 0.72);
  --earth: #915b32;
  --earth-soft: #f3dfcf;
  --gold: #b28a38;
  --gold-soft: rgba(248, 238, 208, 0.92);
  --gold-line: rgba(178, 138, 56, 0.38);
  --place-blue: #3c6ea8;
  --place-blue-soft: rgba(226, 236, 248, 0.92);
  --place-red: #a64d42;
  --place-red-soft: rgba(248, 229, 225, 0.92);
  --silver: #8e949f;
  --bronze: #9a6848;
  --shadow: 0 22px 44px rgba(74, 45, 20, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 500px at 0% -10%, rgba(39, 95, 73, 0.18), transparent 72%),
    radial-gradient(800px 320px at 100% 0%, rgba(145, 91, 50, 0.16), transparent 68%),
    linear-gradient(180deg, #efe6d6 0%, var(--bg) 32%, #efe7d9 100%);
}

img {
  max-width: 100%;
}

.public-hero {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: hidden;
  padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1rem, 3vw, 2rem) 0.55rem;
  backdrop-filter: blur(12px);
  transition: padding 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 251, 243, 0.85), rgba(255, 245, 229, 0.72));
  border-bottom: 1px solid rgba(201, 180, 152, 0.68);
  pointer-events: none;
}

.public-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) auto;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  align-items: center;
  transition: gap 220ms ease;
}

.public-hero-copy {
  max-width: 920px;
  display: grid;
  gap: 0.28rem;
  align-content: center;
}

.eyebrow,
.section-kicker,
.highlight-eyebrow,
.category-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.public-hero h1,
.section-heading h2,
.category-card h3 {
  margin: 0;
  line-height: 0.94;
}

.public-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
  text-wrap: balance;
  transition: font-size 220ms ease, max-width 220ms ease, letter-spacing 220ms ease;
}

.subtitle,
.section-note,
.leaderboard-meta,
.highlight-row-meta {
  margin: 0;
  color: var(--muted);
}

.subtitle {
  margin-top: 0;
  font-size: clamp(0.92rem, 1.45vw, 1.05rem);
  max-width: 46ch;
  line-height: 1.2;
  transition: opacity 180ms ease, max-height 220ms ease, margin 220ms ease, font-size 220ms ease;
}

.public-hero-brand {
  justify-self: end;
  align-self: center;
  display: grid;
  place-items: center;
  padding-right: clamp(0rem, 0.5vw, 0.35rem);
}

.scorecard-brand-logo {
  width: clamp(180px, 22vw, 280px);
  filter: drop-shadow(0 14px 24px rgba(88, 49, 24, 0.18));
  transform-origin: center;
  transition: width 220ms ease, transform 220ms ease, filter 220ms ease;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
  transition: gap 220ms ease, margin 220ms ease;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.35rem;
  padding: 0.58rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.92);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(91, 59, 30, 0.08);
  transition: min-height 220ms ease, padding 220ms ease, font-size 220ms ease;
}

.pill-muted {
  color: var(--muted);
}

.live-pill::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(39, 95, 73, 0.35);
}

.pill[data-status="live"] {
  color: var(--accent);
  border-color: rgba(39, 95, 73, 0.24);
  background: rgba(232, 244, 236, 0.92);
}

.pill[data-status="live"]::before {
  animation: live-pulse 1.8s ease-out infinite;
}

.pill[data-status="loading"] {
  color: #86560f;
  border-color: #e6c888;
  background: #fff6df;
}

.pill[data-status="loading"]::before {
  animation: live-pulse 1.2s ease-out infinite;
}

.pill[data-status="offline"] {
  color: #8a4f2d;
  border-color: #dfb79a;
  background: #fff1e6;
}

.public-scorecard-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.45rem 1rem 1.6rem;
}

.public-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.public-hero.is-compact {
  padding-top: 0.35rem;
  padding-bottom: 0.3rem;
  box-shadow: 0 10px 26px rgba(53, 34, 17, 0.12);
}

.public-hero.is-compact .public-hero-inner {
  grid-template-columns: minmax(0, 1.9fr) auto;
  gap: 0.9rem;
}

.public-hero.is-compact .public-hero-copy {
  gap: 0.15rem;
}

.public-hero.is-compact h1 {
  font-size: clamp(1.28rem, 2.3vw, 1.8rem);
  max-width: none;
  letter-spacing: -0.03em;
}

.public-hero.is-compact .subtitle {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

.public-hero.is-compact .hero-pills {
  margin-top: 0.1rem;
  gap: 0.42rem;
}

.public-hero.is-compact .pill {
  min-height: 2rem;
  padding: 0.46rem 0.72rem;
  font-size: 0.78rem;
}

.public-hero.is-compact .scorecard-brand-logo {
  width: clamp(78px, 8.5vw, 112px);
  transform: scale(0.94);
  filter: drop-shadow(0 10px 18px rgba(88, 49, 24, 0.16));
}

.summary-card,
.highlight-card,
.category-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 242, 0.94)),
    var(--paper);
  border: 1px solid rgba(201, 180, 152, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 1.05rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39, 95, 73, 0.08), transparent 58%);
  pointer-events: none;
}

.summary-card-strong::before {
  background: linear-gradient(180deg, rgba(39, 95, 73, 0.18), rgba(39, 95, 73, 0.02) 62%);
}

.summary-label {
  position: relative;
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.summary-card strong {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.public-highlights,
.public-results {
  margin-top: 1.8rem;
}

.public-page-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
}

.public-page-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.section-heading-split {
  gap: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  padding: 1.2rem;
}

.highlight-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.highlight-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.highlight-list {
  display: grid;
  gap: 0.7rem;
}

.highlight-row {
  display: grid;
  align-items: center;
  gap: 0.8rem;
}

.highlight-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(221, 207, 186, 0.72);
}

.highlight-row-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.highlight-row-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.highlight-row-side {
  text-align: right;
}

.highlight-row-side strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.mini-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.category-filter {
  display: grid;
  gap: 0.35rem;
  min-width: min(280px, 100%);
}

.results-controls {
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 0.75rem;
  width: min(100%, 620px);
}

.scorecard-search {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.category-filter label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scorecard-search label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scorecard-search input,
.category-filter select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 251, 245, 0.96);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 10px 24px rgba(91, 59, 30, 0.08);
}

.scorecard-search input::placeholder {
  color: #8f8678;
}

.scorecard-search input:focus,
.category-filter select:focus {
  outline: 2px solid rgba(39, 95, 73, 0.24);
  outline-offset: 2px;
  border-color: rgba(39, 95, 73, 0.35);
}

.public-category-groups {
  display: grid;
  gap: 1rem;
}

.category-card {
  padding: 1rem 1.05rem 1.05rem;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.category-card[data-state="live"]::before {
  background:
    linear-gradient(180deg, rgba(39, 95, 73, 0.12), rgba(39, 95, 73, 0.02) 34%, transparent 64%),
    radial-gradient(120% 90% at 100% 0%, rgba(39, 95, 73, 0.08), transparent 56%);
}

.category-card[data-state="final"]::before {
  background:
    linear-gradient(180deg, rgba(178, 138, 56, 0.14), rgba(178, 138, 56, 0.03) 34%, transparent 68%),
    radial-gradient(120% 90% at 100% 0%, rgba(178, 138, 56, 0.1), transparent 54%);
}

.category-card[data-state="live"] {
  border-color: rgba(39, 95, 73, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 253, 250, 0.95)),
    var(--paper);
}

.category-card[data-state="final"] {
  border-color: var(--gold-line);
  background:
    linear-gradient(180deg, rgba(255, 251, 240, 0.92), rgba(255, 248, 235, 0.98)),
    var(--paper);
}

.category-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(221, 207, 186, 0.72);
}

.category-card.is-collapsed .category-card-header {
  padding-bottom: 0;
  border-bottom: 0;
}

.category-card-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.category-card-title {
  display: grid;
  gap: 0.18rem;
}

.category-card h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.02;
}

.category-card-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 207, 186, 0.9);
  background: rgba(255, 252, 246, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.category-card-toggle:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(61, 39, 18, 0.08);
}

.category-card-toggle:focus-visible {
  outline: 2px solid rgba(39, 95, 73, 0.24);
  outline-offset: 2px;
}

.category-card[data-state="live"] .category-card-toggle {
  border-color: rgba(39, 95, 73, 0.16);
  background: rgba(247, 251, 248, 0.96);
  color: var(--accent-deep);
}

.category-card[data-state="final"] .category-card-toggle {
  border-color: rgba(178, 138, 56, 0.18);
  background: rgba(255, 250, 239, 0.96);
  color: #74581b;
}

.category-card-toggle:disabled {
  cursor: default;
  opacity: 0.72;
  box-shadow: none;
}

.category-toggle-icon {
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.category-card.is-expanded .category-toggle-icon {
  transform: rotate(-135deg) translateY(-1px);
}

.category-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-summary-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 207, 186, 0.9);
  background: rgba(255, 252, 246, 0.82);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card[data-state="live"] .category-summary-chip {
  border-color: rgba(39, 95, 73, 0.14);
  background: rgba(247, 251, 248, 0.94);
}

.category-card[data-state="final"] .category-summary-chip {
  border-color: rgba(178, 138, 56, 0.18);
  background: rgba(255, 250, 239, 0.94);
}

.category-summary-chip strong {
  color: var(--ink);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.category-progress {
  display: grid;
  gap: 0.35rem;
}

.category-progress-track {
  position: relative;
  width: 100%;
  height: 0.38rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(39, 95, 73, 0.1);
}

.category-card[data-state="final"] .category-progress-track {
  background: rgba(178, 138, 56, 0.14);
}

.category-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #4d8c72);
}

.category-card[data-state="final"] .category-progress-fill {
  background: linear-gradient(90deg, #a07a26, #d0ac57);
}

.category-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-card-body {
  position: relative;
  z-index: 1;
  padding-top: 0.85rem;
}

.category-card-body-final {
  display: grid;
  gap: 0.8rem;
}

.leaderboard-list {
  display: grid;
  gap: 0.62rem;
}

.leaderboard-list-tight {
  gap: 0.5rem;
}

.final-featured-list {
  gap: 0.58rem;
}

.result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.78rem;
  padding: 0.72rem 0.78rem;
  border-radius: 20px;
  border: 1px solid rgba(221, 207, 186, 0.78);
  background: rgba(255, 255, 255, 0.76);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.result-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(61, 39, 18, 0.08);
}

.category-card[data-state="live"] .result-row {
  border-color: rgba(39, 95, 73, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 251, 248, 0.94));
}

.category-card[data-state="final"] .result-row {
  border-color: rgba(178, 138, 56, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 241, 0.94));
}

.result-row.is-first {
  border-color: rgba(178, 138, 56, 0.38);
  background: linear-gradient(180deg, rgba(255, 251, 237, 0.98), rgba(255, 246, 224, 0.88));
}

.result-row.is-second {
  border-color: rgba(60, 110, 168, 0.26);
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(229, 238, 250, 0.9));
}

.result-row.is-third {
  border-color: rgba(166, 77, 66, 0.24);
  background: linear-gradient(180deg, rgba(255, 245, 242, 0.98), rgba(248, 230, 226, 0.9));
}

.result-row.is-compact {
  padding-block: 0.62rem;
  border-radius: 18px;
}

.result-marker,
.boat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
}

.result-marker {
  width: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.35rem;
  background: #efe7d8;
  color: var(--earth);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.result-marker.is-first {
  background: linear-gradient(180deg, #d9b461, #b98920);
  color: #fff8ea;
}

.result-marker.is-second {
  background: linear-gradient(180deg, #5e89bf, #3d6aa0);
  color: #ffffff;
}

.result-marker.is-third {
  background: linear-gradient(180deg, #c77268, #a34a40);
  color: #fff7f5;
}

.category-card[data-category-key="recreation"] .result-marker.is-fourth {
  background: linear-gradient(180deg, #94a046, #707b34);
  color: var(--earth);
}

.category-card[data-category-key="recreation"] .result-marker.is-fifth {
  background: linear-gradient(180deg, #977ab0, #75578a);
  color: var(--earth);
}

.result-marker.is-finished {
  background: rgba(233, 223, 205, 0.9);
}

.result-marker.status-live {
  background: linear-gradient(180deg, rgba(39, 95, 73, 0.14), rgba(39, 95, 73, 0.24));
  color: var(--accent-deep);
}

.result-marker.status-live span {
  animation: live-pulse 1.8s ease-out infinite;
}

.result-marker.status-dnf {
  background: rgba(145, 91, 50, 0.14);
  color: var(--earth);
}

.result-marker.status-not-started {
  background: rgba(239, 231, 216, 0.88);
  color: var(--muted);
}

.boat-chip {
  min-height: 1.95rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(39, 95, 73, 0.14);
  background: rgba(219, 232, 223, 0.72);
  color: var(--accent-deep);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.boat-chip-strong {
  background: rgba(39, 95, 73, 0.1);
}

.category-card[data-state="final"] .boat-chip {
  border-color: rgba(178, 138, 56, 0.18);
  background: rgba(247, 237, 213, 0.78);
  color: #74581b;
}

.result-row.is-first .boat-chip {
  border-color: rgba(178, 138, 56, 0.24);
  background: rgba(247, 237, 213, 0.92);
  color: #74581b;
}

.result-row.is-second .boat-chip {
  border-color: rgba(60, 110, 168, 0.22);
  background: var(--place-blue-soft);
  color: #224d80;
}

.result-row.is-third .boat-chip {
  border-color: rgba(166, 77, 66, 0.22);
  background: var(--place-red-soft);
  color: #7d342c;
}


.result-main {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.result-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.result-title-row h4,
.highlight-row-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.result-secondary {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-side {
  min-width: 62px;
  text-align: right;
  display: grid;
  gap: 0.08rem;
  justify-items: end;
}

.result-side strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.result-side span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(201, 180, 152, 0.9);
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  text-align: center;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 95, 73, 0.28);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 95, 73, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 95, 73, 0);
  }
}

@media (max-width: 980px) {
  .public-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-split {
    align-items: stretch;
  }

  .results-controls {
    margin-left: 0;
    width: 100%;
  }

  .category-filter {
    margin-left: 0;
  }

  .public-hero-inner {
    grid-template-columns: minmax(0, 1.3fr) auto;
  }

  .public-hero h1 {
    max-width: 12ch;
  }

  .scorecard-brand-logo {
    width: clamp(170px, 26vw, 230px);
  }
}

@media (max-width: 760px) {
  .public-hero {
    padding-bottom: 0.5rem;
  }

  .public-hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
  }

  .public-hero-brand {
    justify-self: end;
    align-self: start;
  }

  .public-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
    max-width: 10ch;
  }

  .subtitle {
    max-width: 28ch;
    font-size: 0.96rem;
  }

  .scorecard-brand-logo {
    width: clamp(132px, 28vw, 172px);
  }

  .section-heading-split {
    flex-direction: column;
  }

  .results-controls {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .result-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .category-card-heading-row {
    align-items: stretch;
  }

  .public-hero.is-compact .public-hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .public-hero.is-compact .scorecard-brand-logo {
    width: clamp(68px, 15vw, 88px);
  }

  .public-page-footer p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .public-scorecard-shell {
    padding: 0 0.85rem 1.5rem;
  }

  .public-hero {
    padding: 0.72rem 0.85rem 0.4rem;
  }

  .public-hero h1 {
    font-size: clamp(1.55rem, 8.6vw, 2.05rem);
    max-width: 9ch;
  }

  .scorecard-brand-logo {
    width: min(34vw, 132px);
  }

  .subtitle {
    max-width: 24ch;
    font-size: 0.92rem;
  }

  .hero-pills {
    gap: 0.45rem;
  }

  .pill {
    min-height: 2.1rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.78rem;
  }

  .public-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .summary-card {
    min-height: 96px;
    padding: 0.9rem;
  }

  .highlight-card,
  .category-card {
    padding: 0.92rem;
    border-radius: 20px;
  }

  .highlight-row {
    padding: 0.8rem;
  }

  .highlight-row {
    grid-template-columns: 1fr;
  }

  .highlight-row-side {
    text-align: left;
  }

  .category-card-header {
    gap: 0.65rem;
  }

  .category-card-heading-row {
    flex-direction: column;
  }

  .category-card-toggle {
    width: 100%;
  }

  .scorecard-search input,
  .category-filter select {
    min-height: 2.9rem;
    padding: 0.72rem 0.9rem;
  }

  .result-row {
    gap: 0.65rem;
    padding: 0.66rem 0.68rem;
  }

  .result-marker {
    width: 2.8rem;
    min-width: 2.8rem;
    min-height: 2.8rem;
    font-size: 0.78rem;
  }

  .result-title-row {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .result-title-row h4 {
    font-size: 0.94rem;
  }

  .result-secondary {
    font-size: 0.8rem;
  }

  .result-side {
    min-width: 56px;
  }

  .result-side strong {
    font-size: 0.84rem;
  }

  .result-side span {
    font-size: 0.68rem;
  }

  .boat-chip {
    min-height: 1.78rem;
    padding: 0.34rem 0.62rem;
    font-size: 0.73rem;
  }

  .public-hero.is-compact {
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
  }

  .public-hero.is-compact h1 {
    font-size: 1.1rem;
  }

  .public-hero.is-compact .scorecard-brand-logo {
    width: min(18vw, 72px);
  }

  .public-hero.is-compact .pill {
    min-height: 1.9rem;
    padding: 0.42rem 0.6rem;
    font-size: 0.72rem;
  }

  .public-page-footer {
    padding: 0 0.85rem 1.25rem;
  }
}

@media (max-width: 390px) {
  .public-scorecard-shell {
    padding-inline: 0.72rem;
  }

  .section-heading {
    margin-bottom: 0.85rem;
  }

  .category-card {
    padding: 0.84rem;
  }

  .category-summary-chips {
    gap: 0.38rem;
  }

  .category-summary-chip {
    min-height: 1.84rem;
    padding: 0.38rem 0.58rem;
    font-size: 0.69rem;
  }

  .results-controls {
    gap: 0.55rem;
  }

  .scorecard-search input,
  .category-filter select {
    min-height: 2.75rem;
    padding: 0.66rem 0.82rem;
  }

  .category-summary-chip strong {
    font-size: 0.88rem;
  }

  .category-progress-meta {
    font-size: 0.72rem;
  }

  .result-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.58rem;
    padding: 0.62rem;
  }

  .result-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
    min-width: 0;
  }

  .result-title-row {
    flex-wrap: wrap;
  }

  .result-title-row h4 {
    width: 100%;
  }
}
