/* Fishing Derby public homepage — Lake Glass Premium (v29 contrast recovery) + legacy structure */

@media (prefers-reduced-motion: no-preference) {
  html:has(body.derby-home) {
    scroll-behavior: smooth;
  }
}

.sf-main--derby-home {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

body.derby-home {
  --dw-page-top: #f8fcfb;
  --dw-page-mid: #e6f4f1;
  --dw-page-aqua: #d9f3ef;
  --dw-page-depth: #bfe9e4;
  --dw-navy: #e6f4f1;
  --dw-teal-900: #12313a;
  --dw-teal-800: #1f2933;
  --dw-accent: #0f766e;
  --dw-accent-bright: #2ec4b6;
  --dw-soft-green: #22c55e;
  --dw-gold: #c9a227;
  --dw-text: #12313a;
  --dw-text-muted: #47636b;
  --dw-panel: rgba(255, 255, 255, 0.89);
  --dw-panel-border: rgba(15, 118, 110, 0.22);
  --dw-panel-highlight: rgba(46, 196, 182, 0.18);
  --dw-radius-md: 0.75rem;
  --dw-radius-lg: 1.25rem;
  --dw-radius-pill: 999px;
  --dw-glow-soft:
    0 14px 48px rgba(15, 118, 110, 0.12),
    0 0 0 1px rgba(15, 118, 110, 0.09),
    0 4px 24px rgba(15, 118, 110, 0.06),
    0 0 72px rgba(46, 196, 182, 0.14);
  --dw-glow-btn:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(15, 118, 110, 0.35),
    0 8px 28px rgba(46, 196, 182, 0.35),
    0 16px 44px rgba(15, 118, 110, 0.18);
  color: var(--dw-text);
  background-color: var(--dw-page-top);
  background-image:
    radial-gradient(125% 90% at 50% -18%, rgba(46, 196, 182, 0.32) 0%, transparent 55%),
    radial-gradient(90% 65% at 100% 8%, rgba(125, 211, 252, 0.16) 0%, transparent 50%),
    radial-gradient(70% 50% at 0% 42%, rgba(191, 233, 228, 0.55) 0%, transparent 52%),
    radial-gradient(95% 45% at 50% 100%, rgba(46, 196, 182, 0.14) 0%, transparent 58%),
    radial-gradient(55% 35% at 85% 55%, rgba(217, 243, 239, 0.7) 0%, transparent 50%),
    linear-gradient(185deg, #f8fcfb 0%, #ecf8f5 22%, #e6f4f1 48%, #d9f3ef 72%, #cef0ea 100%);
}

/* v23: subtle “light on water” drift — fixed layers behind content, no layout shift */
body.derby-home {
  position: relative;
  isolation: isolate;
}

body.derby-home > header.sf-header {
  position: relative;
  z-index: 2;
}

body.derby-home > .sf-skip {
  position: relative;
  z-index: 3;
}

@media (prefers-reduced-motion: no-preference) {
  body.derby-home::before,
  body.derby-home::after {
    content: '';
    position: fixed;
    inset: -8%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
  }

  body.derby-home::before {
    background:
      radial-gradient(ellipse 88% 72% at 38% 30%, rgba(46, 196, 182, 0.2) 0%, transparent 62%),
      radial-gradient(ellipse 78% 58% at 72% 50%, rgba(56, 189, 248, 0.09) 0%, transparent 55%);
    opacity: 0.48;
    animation: derby-water-glow-a 48s ease-in-out infinite alternate;
  }

  body.derby-home::after {
    background:
      radial-gradient(ellipse 65% 48% at 58% 20%, rgba(125, 211, 252, 0.1) 0%, transparent 62%),
      radial-gradient(ellipse 95% 85% at 22% 78%, rgba(45, 212, 191, 0.08) 0%, transparent 58%),
      radial-gradient(ellipse 70% 60% at 85% 36%, rgba(191, 233, 228, 0.35) 0%, transparent 58%);
    opacity: 0.44;
    animation: derby-water-glow-b 42s ease-in-out infinite alternate;
  }
}

@keyframes derby-water-glow-a {
  0% {
    transform: translate3d(-1.2%, -0.7%, 0) scale(1.01);
    opacity: 0.42;
  }

  100% {
    transform: translate3d(1.4%, 0.9%, 0) scale(1.03);
    opacity: 0.52;
  }
}

@keyframes derby-water-glow-b {
  0% {
    transform: translate3d(1%, 0.8%, 0) scale(1.01);
    opacity: 0.4;
  }

  100% {
    transform: translate3d(-1.2%, -0.9%, 0) scale(1.025);
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.derby-home::before,
  body.derby-home::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  body.derby-home::before {
    background: radial-gradient(ellipse 100% 80% at 45% 38%, rgba(46, 196, 182, 0.16) 0%, transparent 58%);
    opacity: 0.38;
  }

  body.derby-home::after {
    background:
      radial-gradient(ellipse 70% 55% at 75% 30%, rgba(125, 211, 252, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 90% 75% at 18% 72%, rgba(45, 212, 191, 0.08) 0%, transparent 55%);
    opacity: 0.36;
  }
}

html[data-theme="light"] body.derby-home .sf-header--admin {
  background: #171a21;
  border-bottom-color: #2a3140;
}

html[data-theme="light"] body.derby-home .sf-header--admin .sf-brand,
html[data-theme="light"] body.derby-home .sf-header--admin .sf-nav a {
  color: #e8eaed;
}

html[data-theme="light"] body.derby-home .sf-header--admin .sf-nav a:hover,
html[data-theme="light"] body.derby-home .sf-header--admin .sf-nav a.is-active {
  color: #5eead4;
}

.derby-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

#sponsors .derby-inner--sponsors {
  max-width: min(1220px, 100%);
}

/* ---- Hero (landing layout: copy left, logo right; no overlap) ---- */
.derby-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 clamp(2rem, 6vw, 4rem);
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.1);
}

.derby-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.derby-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Lake Glass: light mist — white/teal haze, photo still visible */
  background: linear-gradient(
    105deg,
    rgba(248, 252, 251, 0.82) 0%,
    rgba(238, 249, 246, 0.48) 38%,
    rgba(230, 244, 241, 0.28) 68%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.derby-hero__inner {
  position: relative;
  z-index: 2;
  min-height: clamp(18rem, 48vh, 32rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.derby-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, min(38%, 260px));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.derby-hero__copy {
  min-width: 0;
}

.derby-hero__pre {
  margin: 0 0 0.65rem;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a4f4a;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(10, 79, 74, 0.15);
}

.derby-hero__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  color: #071f26;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 12px rgba(255, 255, 255, 0.55),
    0 2px 24px rgba(15, 118, 110, 0.18),
    0 3px 14px rgba(7, 31, 38, 0.14);
  letter-spacing: -0.022em;
}

.derby-hero__logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.derby-hero__logo-img {
  max-width: 100%;
  max-height: min(13rem, 30vh);
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 16px rgba(15, 118, 110, 0.2)) drop-shadow(0 0 32px rgba(46, 196, 182, 0.35));
}

.derby-hero__admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.derby-hero__admin-slot {
  position: relative;
  z-index: 3;
}

.derby-hero__admin-slot .sf-slot-toolbar {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.derby-hero__admin-slot .sf-button {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.derby-hero__admin-slot .sf-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.25);
}

@media (max-width: 42rem) {
  .derby-hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .derby-hero__title {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .derby-hero__logo-col {
    order: -1;
    padding-top: 0;
  }

  .derby-hero__admin-bar {
    justify-content: center;
  }
}

/* ---- Nav ---- */
.derby-nav-grid {
  padding: clamp(1.5rem, 4vw, 2.25rem) 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(240, 250, 248, 0.75) 100%);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.derby-nav-grid__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.85rem;
}

.derby-nav-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: max(0.78rem, 13px);
  letter-spacing: 0.02em;
  line-height: 1.25;
  padding: 0.9rem 0.75rem;
  color: #12313a;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.92) inset,
    0 6px 20px rgba(15, 118, 110, 0.09),
    0 0 32px rgba(46, 196, 182, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.derby-nav-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1) 0%, rgba(46, 196, 182, 0.14) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.98) inset,
    0 8px 28px rgba(46, 196, 182, 0.24),
    0 14px 38px rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.derby-nav-btn:focus-visible {
  outline: 3px solid #2ec4b6;
  outline-offset: 3px;
}

/* ---- Sections: rhythm + anchors ---- */
.derby-section--anchor {
  scroll-margin-top: 1.25rem;
}

.derby-section {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(15, 118, 110, 0.07);
}

.derby-section:last-of-type {
  border-bottom: none;
}

.derby-section--alt {
  background: linear-gradient(180deg, rgba(217, 243, 239, 0.25) 0%, rgba(248, 252, 251, 0.35) 100%);
}

.derby-section--memorial {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(46, 196, 182, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f0faf9 0%, #e6f4f1 45%, #dff5f1 100%);
  border-top: 1px solid rgba(15, 118, 110, 0.12);
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.derby-section--prize {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

/* Wider canvas for prize spotlight (editorial two-column) */
.derby-section--prize .derby-inner.derby-prize-wrap {
  max-width: min(1180px, 100%);
}

.derby-section__heading {
  margin: 0 0 1.35rem;
  padding-bottom: 0.5rem;
  font-size: clamp(1.52rem, 3.25vw, 2.08rem);
  font-weight: 800;
  color: #071f26;
  text-align: center;
  letter-spacing: -0.028em;
  line-height: 1.16;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 2px 14px rgba(46, 196, 182, 0.08);
}

.derby-section__heading::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #0f766e 0%, #2ec4b6 55%, rgba(46, 196, 182, 0.25) 100%);
}

.derby-section__heading--start {
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(7, 31, 38, 0.06);
}

.derby-section__heading--start::after {
  margin-left: 0;
  margin-right: auto;
}

.derby-section__sub {
  margin: 0 0 1.5rem;
  text-align: center;
  color: #47636b;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.derby-section__sub--tight {
  margin-top: 0;
}

.derby-section__eyebrow {
  margin: 0.35rem 0 1.25rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0e7490;
}

.derby-section__eyebrow--tight {
  margin-top: 0;
}

/* ---- Typography ---- */
.derby-prose {
  max-width: 43.75rem;
  margin: 0 auto;
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.derby-prose--intro {
  margin-top: 0.5rem;
}

.derby-prose--flush {
  max-width: none;
}

.derby-prose--after-steps {
  margin-top: 1.75rem;
}

.derby-prose--sub {
  max-width: 43.75rem;
}

.derby-prose p {
  margin: 0 0 1.1rem;
}

.derby-subhead {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.75rem 0 0.65rem;
}

.derby-subhead:first-child {
  margin-top: 0.5rem;
}

/* About the Derby — info cards */
.derby-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 2.25rem auto 0;
  list-style: none;
  padding: 0;
}

.derby-info-card {
  margin: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 8px 26px rgba(15, 118, 110, 0.09),
    0 2px 8px rgba(14, 116, 144, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.derby-info-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 14px 36px rgba(15, 118, 110, 0.14),
    0 0 0 1px rgba(45, 212, 191, 0.22);
}

.derby-info-card--wide {
  grid-column: 1 / -1;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.derby-info-card__icon {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.12));
}

.derby-info-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e7490;
}

.derby-info-card__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
}

@media (max-width: 40rem) {
  .derby-info-grid {
    grid-template-columns: 1fr;
  }

  .derby-info-card--wide {
    grid-column: auto;
  }
}

/* What to Expect — checklist cards */
.derby-expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 0.75rem;
  max-width: 56rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}

.derby-expect-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.derby-expect-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.derby-expect-card__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}

.derby-expect-card__text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #334155;
}

.derby-list {
  max-width: 43.75rem;
  margin: 0 auto;
  padding-left: 1.35rem;
  color: #334155;
  line-height: 1.65;
}

.derby-list li {
  margin-bottom: 0.55rem;
}

.derby-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.derby-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.9rem;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: #0f766e;
  border: 2px solid rgba(6, 65, 60, 0.45);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 0 rgba(0, 0, 0, 0.06) inset,
    0 6px 24px rgba(15, 118, 110, 0.35),
    0 0 0 1px rgba(15, 118, 110, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.derby-btn-primary:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 65, 60, 0.55);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 32px rgba(46, 196, 182, 0.45),
    0 12px 48px rgba(15, 118, 110, 0.28),
    0 0 32px rgba(46, 196, 182, 0.35);
  filter: brightness(1.04);
}

.derby-btn-primary:focus-visible {
  outline: 3px solid #2ec4b6;
  outline-offset: 3px;
}

.derby-btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: #1877f2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 14px rgba(24, 119, 242, 0.4);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.derby-btn-fb__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.derby-btn-fb__svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  color: #ffffff;
}

.derby-btn-fb__label {
  line-height: 1.25;
  text-align: left;
}

.derby-btn-fb:hover {
  background: #166fe5;
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 20px rgba(24, 119, 242, 0.5);
}

.derby-btn-fb:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.derby-reg-steps {
  max-width: 40rem;
  margin: 0 auto;
  counter-reset: step;
}

.derby-reg-steps li {
  position: relative;
  list-style: none;
  margin: 0 0 1.1rem;
  padding-left: 2.65rem;
  color: #334155;
  line-height: 1.55;
}

.derby-reg-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.95rem;
  height: 1.95rem;
  line-height: 1.95rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(145deg, #0e7490, #0f766e);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(14, 116, 144, 0.35);
}

/* ---- Image placeholders (dashed, label) ---- */
.derby-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

.derby-image-placeholder--wide {
  max-width: 36rem;
  margin: 0 auto 0.75rem;
  min-height: 7rem;
}

.derby-results-note {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
  font-style: italic;
  line-height: 1.5;
}

/* ---- Memorial + galleries ---- */
.derby-memorial {
  position: relative;
}

.derby-memorial__tagline {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: #334155;
  max-width: 22rem;
}

.derby-memorial__col--copy .derby-prose--memorial {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #1e293b;
}

.derby-slot-wrap--barry {
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(14, 116, 144, 0.1);
  border-radius: 18px;
  overflow: hidden;
}

.derby-slot-wrap--barry .derby-slot-img--portrait {
  border-radius: 16px;
}

.derby-memorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.derby-memorial-gallery-wrap {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

/* Memorial gallery (v17): card + fade/scale carousel — no public admin copy */
.derby-memorial-gallery-wrap .derby-memorial-gallery-block.sf-block {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.derby-memorial-gallery__card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 248, 255, 0.92) 55%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(148, 184, 210, 0.55);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 40px rgba(15, 41, 71, 0.1),
    0 4px 14px rgba(15, 23, 42, 0.06);
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1rem, 2.5vw, 1.65rem);
  overflow: hidden;
}

.derby-memorial-gallery__title {
  margin: 0 0 clamp(1rem, 2.2vw, 1.35rem);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #12313a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 18px rgba(46, 196, 182, 0.1);
  padding-bottom: 0.35rem;
  border-bottom: 3px solid rgba(15, 118, 110, 0.2);
  box-decoration-break: clone;
}

.derby-memorial-gallery__carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

/* Public: no raw-image navigation; dots stay clickable */
.derby-memorial-gallery__carousel--public .derby-memorial-gallery__viewport {
  pointer-events: none;
}

.derby-memorial-gallery__carousel--public .derby-memorial-gallery__dots {
  pointer-events: auto;
}

.derby-memorial-gallery__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

/* Fixed stage height: one 16:10 card (mobile) or two 16:10 cards row (desktop dual) */
.derby-memorial-gallery__aspect-shim {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.derby-memorial-gallery__viewport[data-memorial-can-dual] .derby-memorial-gallery__aspect-shim {
  aspect-ratio: 16 / 5;
}

@media (max-width: 719px) {
  .derby-memorial-gallery__viewport[data-memorial-can-dual] .derby-memorial-gallery__aspect-shim {
    aspect-ratio: 16 / 10;
  }
}

.derby-memorial-gallery__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  pointer-events: none;
}

.derby-memorial-gallery__slide.is-primary,
.derby-memorial-gallery__slide.is-secondary {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.derby-memorial-gallery__slide.is-primary {
  width: 100%;
  left: 0;
  right: 0;
}

@media (min-width: 720px) {
  .derby-memorial-gallery__viewport[data-memorial-can-dual] .derby-memorial-gallery__slide.is-primary {
    width: calc(50% - 0.5rem);
    right: auto;
  }

  .derby-memorial-gallery__viewport[data-memorial-can-dual] .derby-memorial-gallery__slide.is-secondary {
    width: calc(50% - 0.5rem);
    left: calc(50% + 0.5rem);
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .derby-memorial-gallery__slide {
    transition: none;
  }
}

.derby-memorial-gallery__figure {
  margin: 0;
  height: 100%;
  width: 100%;
}

.derby-memorial-gallery__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 18px rgba(15, 41, 71, 0.14),
    0 1px 4px rgba(15, 23, 42, 0.06);
  background: #e2e8f0;
}

.derby-memorial-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.derby-memorial-gallery__figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.35rem 0.75rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
  max-height: 42%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.derby-memorial-gallery__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  min-height: 1.25rem;
}

.derby-memorial-gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.derby-memorial-gallery__dot:hover {
  background: rgba(46, 196, 182, 0.45);
  transform: scale(1.15);
}

.derby-memorial-gallery__dot.is-active {
  background: #0f766e;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22);
  transform: scale(1.2);
}

.derby-memorial-gallery__admin {
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px dashed rgba(100, 116, 139, 0.45);
}

.derby-memorial-gallery__admin-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.derby-memorial-gallery__admin-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(203, 213, 225, 0.65);
}

.derby-memorial-gallery__admin-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.derby-memorial-gallery__admin-thumb-wrap {
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.derby-memorial-gallery__admin-thumb {
  display: block;
  width: 88px;
  height: auto;
  vertical-align: middle;
}

.derby-memorial-gallery__admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.derby-memorial-gallery__add-row {
  margin-top: 0.85rem;
}

/* ---- Sponsor showcase (v15: rail + modal + admin cards) ---- */
.derby-sponsor-gallery {
  margin-top: 1.35rem;
}

.derby-sponsor-gallery .derby-sponsor-showcase.sf-block {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.derby-sponsor-showcase--empty {
  margin-top: 1.35rem;
}

.derby-sponsor-showcase__panel {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 36px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(15, 23, 42, 0.04);
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(0.85rem, 2vw, 1.35rem);
}

/* Public: animated carousel (no native scrollbar) */
.derby-sponsor-showcase__carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.derby-sponsor-showcase__carousel-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.4rem;
}

.derby-sponsor-showcase__arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 2.1rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  color: #475569;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.derby-sponsor-showcase__arrow:hover {
  color: #0f766e;
  border-color: rgba(45, 212, 191, 0.45);
  background: #ffffff;
}

.derby-sponsor-showcase__arrow:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 2px;
}

.derby-sponsor-showcase__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.derby-sponsor-showcase__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  will-change: transform;
}

.derby-sponsor-showcase__track--no-motion {
  transition: none !important;
}

.derby-sponsor-showcase__carousel .derby-sponsor-showcase__cell {
  flex: 0 0 clamp(11.25rem, 36vw, 13.75rem);
  flex-shrink: 0;
  width: clamp(11.25rem, 36vw, 13.75rem);
  min-width: clamp(11.25rem, 36vw, 13.75rem);
  max-width: none;
  scroll-snap-align: unset;
}

.derby-sponsor-showcase__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.1rem;
}

.derby-sponsor-showcase__hint {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
  letter-spacing: 0.01em;
}

.derby-sponsor-showcase__dots[hidden],
.derby-sponsor-showcase__arrow[hidden] {
  display: none !important;
}

.derby-sponsor-showcase__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  opacity: 0.75;
}

.derby-sponsor-showcase__dot:hover {
  opacity: 1;
  border-color: rgba(13, 148, 136, 0.45);
}

.derby-sponsor-showcase__dot.is-active {
  opacity: 1;
  border-color: #0d9488;
  background: linear-gradient(145deg, #5eead4 0%, #0d9488 55%, #0f766e 100%);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.22);
}

.derby-sponsor-showcase__rail-wrap--empty {
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  overflow: hidden;
}

.derby-sponsor-showcase__rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.derby-sponsor-showcase__rail--placeholder {
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  row-gap: 0.85rem;
}

.derby-sponsor-showcase__cell {
  flex: 0 0 clamp(11.25rem, 28vw, 13.75rem);
  width: clamp(11.25rem, 28vw, 13.75rem);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.derby-sponsor-showcase__rail--placeholder .derby-sponsor-showcase__cell {
  flex: 0 0 clamp(11.25rem, 22vw, 13.75rem);
  width: clamp(11.25rem, 22vw, 13.75rem);
}

button.derby-sponsor-logo-card {
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: center;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.derby-sponsor-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(7.5rem, 16vw, 9.375rem);
  min-height: 7.5rem;
  max-height: 9.375rem;
  padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.75rem, 1.8vw, 1.1rem);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 28px rgba(15, 118, 110, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.derby-sponsor-logo-card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 5.5rem;
}

.derby-sponsor-logo {
  max-width: 100%;
  max-height: clamp(5.25rem, 12vw, 6.75rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 1px 4px rgba(15, 23, 42, 0.08));
}

@media (hover: hover) and (pointer: fine) {
  .derby-sponsor-logo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 16px 40px rgba(15, 118, 110, 0.16),
      0 0 28px rgba(46, 196, 182, 0.22),
      0 0 0 1px rgba(46, 196, 182, 0.12);
  }
}

.derby-sponsor-logo-card:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 3px;
}

.derby-sponsor-logo-card--placeholder {
  cursor: default;
  pointer-events: none;
  background: #f8fafc;
  border-style: dashed;
  border-color: #cbd5e1;
  box-shadow: none;
}

.derby-sponsor-logo-card--placeholder:hover {
  transform: none;
  border-color: #cbd5e1;
  box-shadow: none;
}

.derby-sponsor-showcase__placeholder-text {
  display: block;
  font-size: max(0.8rem, 13px);
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
  padding: 0.35rem 0.5rem;
  text-align: center;
}

/* Admin: wrap rail into multi-column cards (no carousel) */
.derby-sponsor-showcase--admin .derby-sponsor-showcase__rail-wrap {
  overflow: visible;
  margin: 0;
  padding: 0;
}

.derby-sponsor-showcase--admin .derby-sponsor-showcase__rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: stretch;
  scroll-snap-type: none;
}

.derby-sponsor-showcase--admin .derby-sponsor-showcase__cell {
  flex: none;
  width: auto;
  max-width: none;
  scroll-snap-align: unset;
}

.derby-sponsor-admin-card {
  padding: 0.65rem 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.derby-sponsor-admin-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid #e2e8f0;
}

.derby-sponsor-admin-meta__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  font-size: max(0.75rem, 12px);
  color: #475569;
}

.derby-sponsor-admin-meta__hint {
  font-weight: 600;
  line-height: 1.35;
}

.derby-sponsor-admin-meta__hint code {
  font-size: 0.85em;
  background: #e2e8f0;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
}

.derby-sponsor-admin-meta__input,
.derby-sponsor-admin-meta__textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: max(0.8rem, 13px);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.derby-sponsor-admin-meta__textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
}

.derby-sponsor-admin-meta__save {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.derby-sponsor-showcase__toolbar--row {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0 0;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

.derby-sponsor-showcase__toolbar--row .sf-button {
  font-size: max(0.75rem, 12px);
  min-height: 2.1rem;
  padding: 0.28rem 0.55rem;
}

.derby-sponsor-showcase__add-row {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #cbd5e1;
  justify-content: flex-start;
}

/* Sponsor modal (larger, not fullscreen) */
.derby-sponsor-modal[hidden] {
  display: none !important;
}

.derby-sponsor-modal.is-open {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.derby-sponsor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.derby-sponsor-modal__panel {
  position: relative;
  z-index: 1;
  width: min(38.75rem, calc(100vw - 2rem));
  max-width: 620px;
  max-height: min(92vh, 44rem);
  overflow: auto;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 28px 56px rgba(15, 23, 42, 0.2),
    0 10px 24px rgba(15, 23, 42, 0.1);
}

.derby-sponsor-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  color: #475569;
  background: rgba(248, 250, 252, 0.95);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.derby-sponsor-modal__close:hover {
  color: #0f172a;
  background: #ffffff;
}

.derby-sponsor-modal__close:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 2px;
}

.derby-sponsor-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.25rem 0.15rem;
  text-align: center;
}

.derby-sponsor-modal__img {
  display: block;
  max-width: 100%;
  max-height: min(22.5rem, 52vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
}

.derby-sponsor-modal__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.derby-sponsor-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  padding: 0.58rem 1.35rem;
  font-size: max(0.92rem, 14px);
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.5);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.derby-sponsor-modal__cta:hover {
  filter: brightness(1.05);
}

.derby-sponsor-modal__cta:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 3px;
}

body.derby-sponsor-modal-open {
  overflow: hidden;
}

/* ---- Prize / sponsor block (CMS block) — v13A layout + v13B premium polish ---- */
.derby-prize-wrap {
  padding: 0;
}

.derby-prize-wrap .derby-prize-spotlight.sf-block {
  margin-bottom: 0;
  padding: clamp(1.25rem, 2.8vw, 2rem) clamp(1rem, 2.4vw, 1.85rem);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 32px rgba(15, 23, 42, 0.055),
    0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Wide two-column desktop; mobile: copy → feature → sponsor */
.derby-prize-wrap .derby-prize-spotlight__grid {
  display: grid;
  gap: clamp(0.85rem, 1.8vw, 1.35rem) clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  margin-top: 0.2rem;
}

@media (min-width: 769px) {
  .derby-prize-wrap .derby-prize-spotlight__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "copy feature"
      "sponsor feature";
  }

  .derby-prize-wrap .derby-prize-copy {
    grid-area: copy;
  }

  .derby-prize-wrap .derby-prize-sponsor {
    grid-area: sponsor;
    align-self: start;
  }

  .derby-prize-wrap .derby-prize-feature {
    grid-area: feature;
    align-self: stretch;
    min-width: 0;
  }

  .derby-prize-wrap .derby-prize-feature__label {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  /* v25: DOM order is copy → feature → sponsor; stack without grid placement bugs */
  .derby-prize-wrap .derby-prize-spotlight__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.7rem, 2.2vw, 1rem);
  }

  .derby-prize-wrap .derby-prize-feature__label {
    margin-top: 0.35rem;
  }
}

.derby-prize-wrap .derby-prize-copy {
  min-width: 0;
}

.derby-prize-wrap .derby-prize-spotlight__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #0c1222;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 20px rgba(15, 23, 42, 0.07);
}

/* Prize headline / donor line — secondary but prominent */
.derby-prize-wrap .derby-prize-spotlight__headline {
  margin: 0 0 0.55rem;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  font-weight: 600;
  color: #0f766e;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.derby-prize-wrap .derby-prize-spotlight__body {
  margin: 0;
  color: #3f4f63;
  font-size: clamp(0.96rem, 1.55vw, 1.05rem);
  line-height: 1.62;
  max-width: 36rem;
  font-weight: 400;
}

.derby-prize-wrap .derby-prize-feature__label {
  margin: 0 0 0.45rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

/* “Proudly Sponsored By” — readable, intentional (not all-caps SPONSOR) */
.derby-prize-wrap .derby-prize-sponsor__label {
  margin: 0 0 0.45rem;
  margin-top: 0.1rem;
  color: #475569;
  font-size: clamp(0.8rem, 1.35vw, 0.9rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}

@media (min-width: 769px) {
  .derby-prize-wrap .derby-prize-sponsor__label {
    margin-top: 0.25rem;
  }
}

/* Contained media chrome */
.derby-prize-wrap .derby-prize-media-frame {
  width: 100%;
  max-width: none;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(15, 23, 42, 0.07);
}

.derby-prize-wrap .derby-prize-sponsor__card,
.derby-prize-wrap .derby-prize-feature__card {
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease,
    border-color 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .derby-prize-wrap .derby-prize-sponsor__card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 14px 36px rgba(15, 23, 42, 0.1),
      0 0 0 1px rgba(45, 212, 191, 0.12);
  }

  .derby-prize-wrap .derby-prize-feature__card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 20px 48px rgba(15, 23, 42, 0.12),
      0 8px 24px rgba(13, 148, 136, 0.1),
      0 0 0 1px rgba(45, 212, 191, 0.15);
  }
}

.derby-prize-wrap .derby-prize-feature__card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 40px rgba(15, 23, 42, 0.1),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

.derby-prize-wrap .derby-prize-media-frame .sf-media-carousel,
.derby-prize-wrap .derby-prize-media-frame .sf-media-grid,
.derby-prize-wrap .derby-prize-media-frame .sf-media-static {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Sponsor: compact white card, ~130–160px logo */
.derby-prize-wrap .derby-prize-sponsor__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.derby-prize-wrap .derby-prize-sponsor__card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 20px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
}

.derby-prize-wrap .derby-prize-sponsor .sf-carousel-viewport {
  min-height: 0;
}

.derby-prize-wrap .derby-prize-sponsor .sf-media-frame {
  aspect-ratio: auto;
  max-height: clamp(6.75rem, 15vw, 10rem); /* ~108–160px */
  min-height: 0;
  min-width: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.derby-prize-wrap .derby-prize-sponsor .sf-media-frame.sf-aspect--square,
.derby-prize-wrap .derby-prize-sponsor .sf-media-frame.sf-aspect--landscape,
.derby-prize-wrap .derby-prize-sponsor .sf-media-frame.sf-aspect--portrait,
.derby-prize-wrap .derby-prize-sponsor .sf-media-frame.sf-aspect--banner {
  aspect-ratio: auto;
}

.derby-prize-wrap .derby-prize-sponsor .sf-aspect--auto .sf-media-img {
  max-height: clamp(6.75rem, 15vw, 10rem);
}

.derby-prize-wrap .derby-prize-sponsor .sf-media-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(6.75rem, 15vw, 10rem);
  object-fit: contain;
  object-position: center;
  display: block;
}

.derby-prize-wrap .derby-prize-sponsor .sf-fit--cover .sf-media-img {
  object-fit: contain;
}

.derby-prize-wrap .derby-prize-sponsor .sf-media-grid .sf-media-img {
  min-height: 0;
  max-height: clamp(6.75rem, 15vw, 10rem);
}

.derby-prize-wrap .derby-prize-sponsor .sf-media-cell .sf-media-frame {
  max-height: clamp(6.75rem, 15vw, 10rem);
}

@media (max-width: 768px) {
  .derby-prize-wrap .derby-prize-sponsor .sf-media-img,
  .derby-prize-wrap .derby-prize-sponsor .sf-aspect--auto .sf-media-img {
    max-height: clamp(5.25rem, 26vw, 7.5rem);
  }

  .derby-prize-wrap .derby-prize-sponsor .sf-media-frame,
  .derby-prize-wrap .derby-prize-sponsor .sf-media-cell .sf-media-frame {
    max-height: clamp(5.5rem, 28vw, 8rem);
  }
}

/* Feature / prize photo — reward focal point, contain */
.derby-prize-wrap .derby-prize-feature__frame {
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}

.derby-prize-wrap .derby-prize-feature .sf-carousel-viewport {
  min-height: clamp(11rem, 30vw, 19rem);
}

.derby-prize-wrap .derby-prize-feature .sf-media-frame {
  border-radius: 11px;
  min-height: clamp(10rem, 26vw, 15rem);
}

.derby-prize-wrap .derby-prize-feature .sf-aspect--auto .sf-media-img {
  max-height: min(38rem, 72vh);
}

.derby-prize-wrap .derby-prize-feature .sf-carousel-slide .sf-media-img {
  max-height: min(36rem, 68vh);
}

.derby-prize-wrap .derby-prize-feature .sf-fit--contain .sf-carousel-slide .sf-media-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.derby-prize-wrap .derby-prize-feature .sf-media-grid .sf-media-img {
  min-height: 9rem;
  max-height: min(30rem, 58vh);
  object-fit: contain;
}

.derby-prize-wrap .derby-prize-feature .sf-media-img,
.derby-prize-wrap .derby-prize-feature .sf-gallery-thumb {
  border-radius: 0;
}

.derby-prize-wrap .derby-prize-feature .sf-media-cell {
  border-radius: 11px;
  overflow: hidden;
}

.derby-prize-wrap .derby-prize-feature .sf-media-grid {
  gap: 0.85rem;
}

/* Tighter carousel chrome inside spotlight */
.derby-prize-wrap .derby-prize-spotlight .sf-carousel-nav {
  padding: 0.3rem 0.45rem 0.42rem;
  gap: 0.45rem 0.75rem;
}

/* Derby-forward carousel dots (scoped; arrows unchanged when enabled) */
.derby-prize-wrap .derby-prize-spotlight .sf-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(148, 163, 184, 0.35);
  opacity: 0.75;
}

.derby-prize-wrap .derby-prize-spotlight .sf-carousel-dot:hover {
  opacity: 1;
  border-color: rgba(13, 148, 136, 0.45);
}

.derby-prize-wrap .derby-prize-spotlight .sf-carousel-dot.is-active {
  opacity: 1;
  border-color: #0d9488;
  background: linear-gradient(145deg, #5eead4 0%, #0d9488 55%, #0f766e 100%);
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.25),
    0 2px 8px rgba(13, 148, 136, 0.35);
  transform: scale(1.15);
}

/* Admin: display forms below public layout */
.derby-prize-wrap .derby-prize-spotlight__admin-tools {
  margin-top: clamp(1.1rem, 2.5vw, 1.65rem);
  padding-top: 1.1rem;
  border-top: 2px dashed #cbd5e1;
  display: grid;
  gap: 1rem;
}

.derby-prize-wrap .derby-prize-spotlight__admin-tools .sf-display-settings-form {
  margin: 0;
  border-radius: 12px;
}

/* Image toolbars stay below slides, never overlaying media */
.derby-prize-wrap .derby-prize-spotlight .sf-image-toolbar {
  position: relative;
  z-index: 1;
}

/* ---- Image slots (framed) ---- */
.derby-slot-wrap {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 48rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #eef2f7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.derby-slot-wrap--portrait {
  max-width: 18rem;
}

.derby-slot-wrap--landscape {
  max-width: 44rem;
}

.derby-slot-wrap--footer {
  max-width: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.derby-slot-wrap .sf-slot-toolbar {
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: rgba(248, 250, 252, 0.98);
  border-top: 1px solid #e2e8f0;
}

.derby-slot-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.derby-slot-img--portrait {
  max-height: 22rem;
  object-fit: cover;
}

.derby-slot-img--landscape {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Catch + boundary slots: show full image without aggressive crop */
.derby-slot--contain {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.derby-slot--contain .derby-slot-img--landscape,
.derby-slot--contain .derby-slot-img--contain {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  aspect-ratio: auto;
}

.derby-slot-img--footer {
  width: 100%;
  max-height: min(22rem, 40vh);
  object-fit: cover;
}

.derby-footer-banner {
  position: relative;
  margin-top: 0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.derby-footer-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  background: linear-gradient(
    100deg,
    rgba(248, 252, 251, 0.75) 0%,
    rgba(236, 244, 241, 0.5) 50%,
    rgba(230, 250, 246, 0.35) 100%
  );
  color: #12313a;
  pointer-events: none;
}

.derby-footer-banner__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  max-width: 52rem;
  text-align: center;
}

.derby-footer-banner__copy {
  min-width: min(100%, 22rem);
}

.derby-footer-banner__copy h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.derby-footer-banner__copy p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.95;
  color: #47636b;
  text-shadow: none;
}

.derby-footer-banner .sf-slot-toolbar {
  pointer-events: auto;
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Goto I.T. website credit — Lake Glass Premium separation */
.derby-goto-credit-section {
  margin-top: 0.25rem;
  padding: clamp(1.65rem, 4vw, 2.35rem) 1rem clamp(1.85rem, 4.5vw, 2.6rem);
  background: linear-gradient(180deg, rgba(206, 240, 234, 0.45) 0%, rgba(248, 252, 251, 0.95) 55%, #f8fcfb 100%);
  border-top: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 -12px 40px rgba(46, 196, 182, 0.08);
}

.derby-goto-credit-section__inner {
  display: flex;
  justify-content: center;
}

.derby-goto-credit.derby-goto-credit__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.85rem);
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(0.95rem, 2.4vw, 1.28rem) clamp(1.2rem, 3.6vw, 1.85rem);
  border-radius: 999px;
  text-decoration: none;
  color: #12313a;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 252, 251, 0.92) 100%);
  border: 1px solid rgba(15, 118, 110, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 12px 40px rgba(15, 118, 110, 0.12),
    0 0 58px rgba(46, 196, 182, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.derby-goto-credit__link:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 18px 50px rgba(15, 118, 110, 0.16),
    0 0 68px rgba(46, 196, 182, 0.32);
}

.derby-goto-credit__link:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.85);
  outline-offset: 3px;
}

.derby-goto-credit__logo-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.derby-goto-credit__logo-wrap::before {
  content: '';
  position: absolute;
  width: min(12rem, 52vw);
  height: min(5.5rem, 30vw);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46, 196, 182, 0.45) 0%, rgba(15, 118, 110, 0.12) 42%, transparent 72%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.derby-goto-credit__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(7.5rem, 22vw, 10.5rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(15, 118, 110, 0.15));
}

.derby-goto-credit__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  text-align: left;
}

.derby-goto-credit__title {
  display: block;
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #12313a;
}

.derby-goto-credit__sub {
  display: block;
  font-size: clamp(0.8rem, 1.85vw, 0.9rem);
  line-height: 1.45;
  color: #47636b;
}

@media (max-width: 640px) {
  .derby-goto-credit.derby-goto-credit__link {
    flex-direction: column;
    text-align: center;
    border-radius: 1.35rem;
    padding: 1.15rem 1.25rem 1.25rem;
  }

  .derby-goto-credit__text {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .derby-goto-credit.derby-goto-credit__link {
    transition: none;
  }

  .derby-goto-credit__link:hover {
    transform: none;
  }
}

.derby-proceeds {
  padding: clamp(2.25rem, 4vw, 3.5rem) 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: #47636b;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(236, 244, 241, 0.85) 100%);
  border-top: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.derby-proceeds p {
  margin: 0.45rem 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.derby-site-footer-min {
  padding: 1.15rem;
  text-align: center;
  font-size: 0.875rem;
  color: #47636b;
  background: linear-gradient(180deg, #dff5f1 0%, #e6f4f1 100%);
  border-top: 1px solid rgba(15, 118, 110, 0.08);
}

@media (max-width: 52rem) {
  .derby-memorial-grid {
    grid-template-columns: 1fr;
  }

  .derby-memorial__tagline {
    max-width: none;
    text-align: center;
  }

  .derby-section__heading--start {
    text-align: center;
  }
}

@media (max-width: 36rem) {
  .derby-nav-grid__inner {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Lake Glass Premium (v29) — layered sections, typography, galleries, CTAs
   ============================================================================= */

body.derby-home .derby-hero {
  box-shadow:
    0 4px 0 rgba(46, 196, 182, 0.14),
    0 20px 50px rgba(15, 118, 110, 0.12);
}

body.derby-home .derby-hero__overlay {
  background: linear-gradient(
    115deg,
    rgba(248, 252, 251, 0.78) 0%,
    rgba(238, 249, 246, 0.45) 38%,
    rgba(230, 244, 241, 0.22) 62%,
    rgba(255, 255, 255, 0.06) 88%,
    rgba(46, 196, 182, 0.04) 100%
  );
}

body.derby-home .derby-hero__title {
  color: #071f26;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 14px rgba(255, 255, 255, 0.65),
    0 2px 26px rgba(15, 118, 110, 0.22),
    0 3px 16px rgba(7, 31, 38, 0.16);
}

body.derby-home .derby-hero__pre {
  color: #064038;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 1px 3px rgba(6, 64, 56, 0.2);
}

body.derby-home .derby-hero__copy {
  position: relative;
  z-index: 1;
  padding: 1.05rem 1.2rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 118, 110, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 6px 36px rgba(15, 118, 110, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

body.derby-home .derby-hero__copy::before {
  content: '';
  position: absolute;
  inset: -28% -18% -18% -28%;
  background: radial-gradient(ellipse at 38% 42%, rgba(46, 196, 182, 0.18) 0%, rgba(255, 255, 255, 0.45) 42%, transparent 70%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
}

body.derby-home .derby-hero__logo-col {
  position: relative;
}

body.derby-home .derby-hero__logo-col::before {
  content: '';
  position: absolute;
  inset: -12% -8% -8% -8%;
  background: radial-gradient(ellipse at center, rgba(46, 196, 182, 0.35) 0%, rgba(255, 255, 255, 0.5) 45%, transparent 68%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

body.derby-home .derby-hero__logo-img {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 4px 16px rgba(15, 118, 110, 0.18))
    drop-shadow(0 0 36px rgba(46, 196, 182, 0.35));
}

body.derby-home .derby-nav-grid {
  padding: clamp(1.35rem, 3.5vw, 2rem) 1rem;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 32px rgba(15, 118, 110, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.derby-home .derby-nav-grid__inner {
  padding: clamp(0.65rem, 1.5vw, 0.85rem);
  border-radius: var(--dw-radius-lg);
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 28px rgba(15, 118, 110, 0.06);
}

body.derby-home .derby-nav-btn {
  border-radius: var(--dw-radius-md);
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 4px 18px rgba(46, 196, 182, 0.12),
    0 6px 22px rgba(15, 118, 110, 0.06);
}

body.derby-home .derby-nav-btn:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 6px 26px rgba(46, 196, 182, 0.22),
    0 12px 34px rgba(15, 118, 110, 0.08);
}

body.derby-home .derby-section:not(.derby-hero) {
  background: transparent;
  border-bottom: none;
  padding: clamp(0.85rem, 2.2vw, 1.45rem) 0;
  position: relative;
}

body.derby-home .derby-section:not(.derby-hero)::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 35%);
  width: min(90%, 52rem);
  height: 5.5rem;
  background: radial-gradient(
    ellipse 100% 85% at 50% 100%,
    rgba(46, 196, 182, 0.18) 0%,
    rgba(191, 233, 228, 0.22) 32%,
    rgba(125, 211, 252, 0.08) 48%,
    transparent 72%
  );
  pointer-events: none;
  opacity: 0.5;
}

body.derby-home .derby-section:has(+ .derby-section--memorial)::before {
  opacity: 0;
  height: 0;
  transform: translate(-50%, 80%);
}

body.derby-home .derby-section:not(.derby-hero) > .derby-inner {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(252, 254, 253, 0.88) 45%,
    rgba(240, 249, 246, 0.86) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--dw-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    var(--dw-glow-soft),
    0 0 56px rgba(46, 196, 182, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: clamp(2rem, 4.2vw, 3rem);
  padding-bottom: clamp(2rem, 4.2vw, 3rem);
}

/* Secondary sections — flatter, lighter glass */
body.derby-home #expect > .derby-inner,
body.derby-home #catch > .derby-inner,
body.derby-home #boundaries > .derby-inner,
body.derby-home #safe-boating > .derby-inner,
body.derby-home #results-2024 > .derby-inner,
body.derby-home #results-2025 > .derby-inner {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(15, 118, 110, 0.06),
    0 0 32px rgba(46, 196, 182, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: clamp(1.65rem, 3.4vw, 2.4rem);
  padding-bottom: clamp(1.65rem, 3.4vw, 2.4rem);
}

/* Major sections — elevated Lake Glass */
body.derby-home #about-derby > .derby-inner,
body.derby-home #prizes > .derby-inner,
body.derby-home #prize-feature > .derby-inner,
body.derby-home #sponsors > .derby-inner,
body.derby-home #register > .derby-inner {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(250, 253, 252, 0.9) 35%,
    rgba(233, 248, 244, 0.88) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.26);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 16px 48px rgba(15, 118, 110, 0.1),
    0 0 0 1px rgba(46, 196, 182, 0.08),
    0 0 72px rgba(46, 196, 182, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: clamp(2.2rem, 4.6vw, 3.25rem);
  padding-bottom: clamp(2.2rem, 4.6vw, 3.25rem);
}

body.derby-home .derby-section--memorial:not(.derby-hero) > .derby-inner {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 252, 250, 0.9) 40%,
    rgba(232, 248, 244, 0.9) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 18px 52px rgba(15, 118, 110, 0.1),
    0 0 0 1px rgba(46, 196, 182, 0.1),
    0 0 80px rgba(46, 196, 182, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: clamp(2.1rem, 4.4vw, 3.1rem);
  padding-bottom: clamp(2.1rem, 4.4vw, 3.1rem);
}

body.derby-home .derby-section__heading {
  font-size: clamp(1.68rem, 3.7vw, 2.24rem);
  letter-spacing: -0.032em;
  line-height: 1.14;
  color: #071f26;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 2px 14px rgba(46, 196, 182, 0.08);
}

body.derby-home .derby-section__heading--start {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 18px rgba(46, 196, 182, 0.1);
}

body.derby-home .derby-section__sub {
  color: var(--dw-text-muted);
}

body.derby-home .derby-section__eyebrow {
  color: #0f766e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.derby-home .derby-prose,
body.derby-home .derby-list,
body.derby-home .derby-reg-steps li {
  color: #1f2933;
}

body.derby-home .derby-prose a {
  color: #0f766e;
  text-decoration-color: rgba(15, 118, 110, 0.35);
}

body.derby-home .derby-prose a:hover {
  color: #2ec4b6;
  text-decoration-color: rgba(46, 196, 182, 0.55);
}

body.derby-home .derby-subhead {
  color: #071f26;
}

body.derby-home .derby-info-card {
  background: linear-gradient(155deg, #ffffff 0%, rgba(248, 252, 251, 0.96) 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 34px rgba(15, 118, 110, 0.11),
    0 2px 8px rgba(15, 118, 110, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

body.derby-home .derby-info-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 18px 42px rgba(15, 118, 110, 0.14),
    0 0 36px rgba(46, 196, 182, 0.18);
}

body.derby-home .derby-info-card__label {
  color: var(--dw-accent);
}

body.derby-home .derby-info-card__value {
  color: #1f2933;
}

body.derby-home .derby-info-card__list {
  list-style: disc;
  text-align: left;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: #1f2933;
}

body.derby-home .derby-expect-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 28px rgba(15, 118, 110, 0.09);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

body.derby-home .derby-expect-card:hover {
  transform: scale(1.02);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow:
    0 12px 38px rgba(15, 118, 110, 0.13),
    0 0 32px rgba(46, 196, 182, 0.14);
}

body.derby-home .derby-expect-card__text {
  color: #1f2933;
}

body.derby-home .derby-btn-primary {
  border-radius: var(--dw-radius-pill);
  background: #0f766e;
  border: 2px solid rgba(6, 65, 60, 0.45);
  box-shadow: var(--dw-glow-btn);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

body.derby-home .derby-btn-primary:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 65, 60, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 40px rgba(46, 196, 182, 0.48),
    0 16px 52px rgba(15, 118, 110, 0.22),
    0 0 44px rgba(46, 196, 182, 0.38);
  filter: brightness(1.05);
}

body.derby-home .derby-btn-fb {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 6px 22px rgba(24, 119, 242, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.derby-home .derby-btn-fb:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 28px rgba(24, 119, 242, 0.55);
}

body.derby-home .derby-image-placeholder {
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(15, 118, 110, 0.2);
}

body.derby-home .derby-results-note {
  color: #47636b;
}

body.derby-home .derby-memorial__tagline {
  color: #47636b;
}

body.derby-home .derby-memorial__col--copy .derby-prose--memorial {
  color: #1f2933;
}

body.derby-home .derby-slot-wrap--barry {
  box-shadow:
    0 8px 28px rgba(15, 118, 110, 0.12),
    0 0 0 1px rgba(15, 118, 110, 0.1),
    0 0 40px rgba(46, 196, 182, 0.12);
}

body.derby-home .derby-sponsor-gallery {
  padding: clamp(1.15rem, 2.6vw, 1.65rem);
  border-radius: var(--dw-radius-lg);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(236, 248, 244, 0.78) 50%,
    rgba(225, 241, 237, 0.72) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 44px rgba(15, 118, 110, 0.1),
    0 0 48px rgba(46, 196, 182, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.derby-home .derby-sponsor-gallery:first-of-type {
  margin-top: 0.75rem;
}

body.derby-home .derby-sponsor-showcase__viewport {
  padding: 0.45rem 0.35rem;
  border-radius: var(--dw-radius-md);
  background: linear-gradient(180deg, rgba(217, 243, 239, 0.55) 0%, rgba(248, 252, 251, 0.65) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.derby-home .derby-sponsor-showcase__panel {
  border-radius: var(--dw-radius-lg);
  background: linear-gradient(185deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 249, 0.92) 55%, rgba(232, 245, 241, 0.88) 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 16px 48px rgba(15, 118, 110, 0.1),
    0 0 44px rgba(46, 196, 182, 0.14);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.derby-home .derby-sponsor-showcase__panel:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 18px 48px rgba(15, 118, 110, 0.1),
      0 0 48px rgba(46, 196, 182, 0.2);
  }
}

body.derby-home .derby-sponsor-showcase__hint {
  color: #47636b;
}

body.derby-home .derby-sponsor-showcase__arrow {
  border-radius: var(--dw-radius-md);
  border-color: rgba(15, 118, 110, 0.2);
  color: #0f766e;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 250, 248, 0.95) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 16px rgba(46, 196, 182, 0.12),
    0 6px 18px rgba(15, 118, 110, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

body.derby-home .derby-sponsor-showcase__arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 196, 182, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 22px rgba(46, 196, 182, 0.22),
    0 10px 26px rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

body.derby-home .derby-sponsor-logo-card {
  border-radius: var(--dw-radius-md);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 32px rgba(15, 118, 110, 0.12),
    0 2px 10px rgba(15, 23, 42, 0.04);
}

@media (hover: hover) and (pointer: fine) {
  body.derby-home .derby-sponsor-logo-card {
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease;
  }

  body.derby-home .derby-sponsor-logo-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 18px 44px rgba(15, 118, 110, 0.16),
      0 0 36px rgba(46, 196, 182, 0.25);
  }
}

body.derby-home .derby-memorial-gallery__card {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 253, 251, 0.92) 40%,
    rgba(236, 248, 244, 0.9) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 18px 48px rgba(15, 118, 110, 0.11),
    0 0 48px rgba(46, 196, 182, 0.18),
    0 0 0 1px rgba(46, 196, 182, 0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.derby-home .derby-memorial-gallery__card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 18px 44px rgba(15, 118, 110, 0.12),
      0 0 40px rgba(46, 196, 182, 0.16);
  }
}

body.derby-home .derby-memorial-gallery-wrap {
  margin-top: clamp(2rem, 4vw, 2.85rem);
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  border-radius: var(--dw-radius-lg);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(240, 249, 246, 0.65) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 44px rgba(15, 118, 110, 0.09),
    0 0 56px rgba(46, 196, 182, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.derby-home .derby-memorial-gallery__viewport {
  border-radius: var(--dw-radius-md);
}

body.derby-home .derby-memorial-gallery__slide.is-primary .derby-memorial-gallery__frame,
body.derby-home .derby-memorial-gallery__slide.is-secondary .derby-memorial-gallery__frame {
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(15, 118, 110, 0.12),
    0 0 36px rgba(46, 196, 182, 0.14);
}

body.derby-home .derby-prize-wrap .derby-prize-spotlight.sf-block {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(244, 251, 249, 0.95) 38%,
    rgba(225, 244, 239, 0.9) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-left: 4px solid #0f766e;
  border-radius: var(--dw-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 1px rgba(46, 196, 182, 0.11),
    0 22px 60px rgba(15, 118, 110, 0.14),
    0 0 80px rgba(46, 196, 182, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.derby-home .derby-prize-wrap .derby-prize-copy {
  position: relative;
  padding: 0.65rem 0.85rem 0.8rem 1.2rem;
  border-radius: 0 var(--dw-radius-md) var(--dw-radius-md) 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 249, 0.75) 50%, rgba(240, 248, 245, 0.4) 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-left: 4px solid #0f766e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 18px rgba(15, 118, 110, 0.06);
}

body.derby-home .derby-prize-wrap .derby-prize-spotlight__title {
  color: #071f26;
  padding-bottom: 0.55rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.45), rgba(46, 196, 182, 0.28), transparent) bottom left /
      100% 2px no-repeat;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 2px 18px rgba(46, 196, 182, 0.1);
}

body.derby-home .derby-prize-wrap .derby-prize-spotlight__headline {
  color: #0f766e;
  font-weight: 700;
  letter-spacing: -0.015em;
}

body.derby-home .derby-prize-wrap .derby-prize-spotlight__body {
  color: #243a42;
  font-weight: 500;
}

body.derby-home .derby-prize-wrap .derby-prize-feature__card {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 16px 44px rgba(15, 118, 110, 0.12),
    0 0 40px rgba(46, 196, 182, 0.1);
}

body.derby-home .derby-prize-wrap .derby-prize-sponsor__label {
  color: #47636b;
}

body.derby-home .derby-prize-wrap .derby-prize-feature__label {
  color: #64748b;
}

body.derby-home .derby-proceeds {
  color: var(--dw-text-muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(236, 244, 241, 0.92) 100%);
  border-top: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.derby-home .derby-proceeds__link {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 118, 110, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.derby-home .derby-proceeds__link:hover {
  color: #2ec4b6;
  border-bottom-color: rgba(46, 196, 182, 0.45);
}

body.derby-home .derby-proceeds__link--muted {
  color: #0f766e;
  border-bottom-color: rgba(15, 118, 110, 0.22);
}

body.derby-home .derby-proceeds__link--muted:hover {
  color: #2ec4b6;
  border-bottom-color: rgba(46, 196, 182, 0.4);
}

body.derby-home .derby-footer-banner {
  box-shadow: 0 -6px 40px rgba(15, 118, 110, 0.1);
}

/* ----- v29: refinements (spotlight copy rail, media chrome, sponsor viewport, memorial header) ----- */

body.derby-home .derby-prize-wrap .derby-prize-spotlight__grid {
  gap: clamp(1.05rem, 2.2vw, 1.55rem) clamp(1.2rem, 3vw, 2.35rem);
}

body.derby-home .derby-prize-wrap .derby-prize-media-frame {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 14px 38px rgba(15, 118, 110, 0.12),
    0 0 36px rgba(46, 196, 182, 0.1);
}

body.derby-home .derby-prize-wrap .derby-prize-sponsor__frame {
  background: #ffffff;
}

body.derby-home .derby-sponsor-showcase__dot {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(230, 244, 241, 0.95);
  opacity: 0.85;
}

body.derby-home .derby-sponsor-showcase__dot:hover {
  opacity: 1;
  border-color: rgba(46, 196, 182, 0.4);
  background: rgba(255, 255, 255, 1);
}

body.derby-home .derby-sponsor-showcase__dot.is-active {
  border-color: #0f766e;
  background: linear-gradient(145deg, #5eead4 0%, #0d9488 55%, #0f766e 100%);
  box-shadow:
    0 0 0 2px rgba(46, 196, 182, 0.2),
    0 0 16px rgba(46, 196, 182, 0.25);
  opacity: 1;
}

body.derby-home .derby-memorial-gallery__title {
  position: relative;
  color: #12313a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.98);
  border-bottom: none;
  padding-bottom: 0.35rem;
  margin-bottom: clamp(1rem, 2.2vw, 1.35rem);
}

body.derby-home .derby-memorial-gallery__title::after {
  content: '';
  display: block;
  width: min(14rem, 88%);
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #0f766e 0%, #2ec4b6 45%, rgba(46, 196, 182, 0.15) 100%);
}

body.derby-home .derby-memorial-gallery__figcaption {
  color: rgba(248, 250, 252, 0.98);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.derby-home .derby-prose--register {
  text-align: left;
  max-width: min(54rem, 100%);
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.06rem, 2.15vw, 1.17rem);
  line-height: 1.76;
}

body.derby-home #register .derby-list {
  font-size: clamp(1.02rem, 1.9vw, 1.1rem);
  line-height: 1.7;
}

body.derby-home #register .derby-section__heading {
  margin-bottom: 1.45rem;
}

body.derby-home #register .derby-cta-row {
  margin-top: clamp(2.35rem, 5vw, 3.1rem);
  padding-top: 0.85rem;
}

body.derby-home #register hr {
  border: none;
  height: 1px;
  margin: 1.45rem 0;
  background: linear-gradient(90deg, transparent, rgba(46, 196, 182, 0.32), transparent);
  opacity: 1;
}

body.derby-home .derby-memorial-grid {
  max-width: min(1100px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5.5vw, 3.75rem);
}

body.derby-home .derby-memorial__col--copy .derby-prose--memorial {
  font-size: clamp(1.05rem, 2.05vw, 1.18rem);
  line-height: 1.78;
  max-width: none;
}

/* ----- v24: hero desktop (clear Barry portrait); slot frames on Lake Glass home ----- */

@media (min-width: 43rem) {
  body.derby-home .derby-hero__inner.derby-inner {
    padding-left: clamp(3rem, 11vw, 10rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
  }

  body.derby-home .derby-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(44%, 330px));
    column-gap: clamp(2rem, 5vw, 4.25rem);
  }

  body.derby-home .derby-hero__logo-img {
    max-height: min(16.9rem, 39vh);
  }
}

body.derby-home #catch .derby-slot--contain,
body.derby-home #boundaries .derby-slot--contain {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 251, 0.88) 100%);
  border-color: rgba(15, 118, 110, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 32px rgba(15, 118, 110, 0.08),
    0 0 0 1px rgba(15, 118, 110, 0.06);
}

/* ----- v25: mobile usability (prize stack, Barry/memorial, slots, nav, no overflow) ----- */

body.derby-home {
  overflow-x: clip;
}

.derby-slot--contain .derby-slot-img--landscape,
.derby-slot--contain .derby-slot-img--contain {
  max-width: 100%;
  box-sizing: border-box;
}

#catch .derby-slot-wrap.derby-slot--contain,
#boundaries .derby-slot-wrap.derby-slot--contain {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

#catch .derby-slot--contain img.derby-slot-img,
#boundaries .derby-slot--contain img.derby-slot-img {
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  aspect-ratio: unset;
}

@media (max-width: 900px) {
  body.derby-home .derby-section:not(.derby-hero) > .derby-inner {
    padding-left: clamp(0.8rem, 3.2vw, 1.35rem);
    padding-right: clamp(0.8rem, 3.2vw, 1.35rem);
  }

  body.derby-home section:not(.derby-hero) .derby-inner img,
  body.derby-home .derby-proceeds img,
  body.derby-home .derby-footer-banner img {
    max-width: 100%;
    height: auto;
  }

  body.derby-home .derby-nav-btn {
    min-height: 2.75rem;
  }

  body.derby-home .derby-btn-primary,
  body.derby-home .derby-btn-fb {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body.derby-home .derby-prize-wrap .derby-prize-spotlight.sf-block {
    padding: clamp(0.8rem, 2.8vw, 1.15rem) clamp(0.55rem, 2.2vw, 0.95rem);
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight__grid {
    gap: clamp(0.55rem, 2vw, 0.95rem);
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight__grid > * {
    min-width: 0;
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight__title {
    font-size: clamp(1.32rem, 5.2vw, 1.82rem);
    line-height: 1.14;
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight__headline {
    font-size: clamp(1rem, 3.6vw, 1.14rem);
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight__body {
    font-size: clamp(1rem, 3.5vw, 1.08rem);
    line-height: 1.62;
    max-width: none;
  }

  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-carousel-viewport {
    min-height: 0;
  }

  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-media-frame {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-aspect--square,
  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-aspect--landscape,
  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-aspect--portrait,
  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-aspect--banner {
    aspect-ratio: auto;
  }

  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-media-img,
  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-aspect--auto .sf-media-img,
  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-carousel-slide .sf-media-img {
    width: 100%;
    height: auto;
    max-height: min(70vh, 36rem);
    object-fit: contain;
    object-position: center;
  }

  body.derby-home .derby-prize-wrap .derby-prize-sponsor .sf-media-frame {
    max-height: clamp(5rem, 24vw, 7.25rem);
    padding: 0.4rem 0.65rem;
  }

  body.derby-home .derby-prize-wrap .derby-prize-sponsor .sf-media-img,
  body.derby-home .derby-prize-wrap .derby-prize-sponsor .sf-aspect--auto .sf-media-img {
    max-height: clamp(4.5rem, 22vw, 6.75rem);
    max-width: 100%;
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight .sf-carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0.45rem;
    box-sizing: content-box;
  }

  body.derby-home .derby-prize-wrap .derby-prize-spotlight .sf-carousel-prev,
  body.derby-home .derby-prize-wrap .derby-prize-spotlight .sf-carousel-next {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  body.derby-home .derby-memorial-gallery__card {
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
    padding: clamp(1rem, 3vw, 1.35rem) clamp(0.75rem, 2.5vw, 1.15rem);
  }

  body.derby-home .derby-memorial-gallery__carousel {
    max-width: 100%;
    overflow-x: clip;
  }

  body.derby-home .derby-memorial-gallery__viewport {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.derby-home .derby-memorial-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.1rem, 3.5vw, 1.75rem);
    max-width: 100%;
  }

  body.derby-home .derby-memorial__col--photo .derby-section__heading--start {
    text-align: center;
  }

  body.derby-home .derby-slot-wrap--barry {
    max-width: min(16.5rem, 78vw);
    margin-left: auto;
    margin-right: auto;
  }

  body.derby-home .derby-slot-wrap--barry .derby-slot-img--portrait {
    max-height: min(17rem, 44vh);
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }

  body.derby-home .derby-memorial__col--copy .derby-prose--memorial {
    font-size: clamp(1.02rem, 3.8vw, 1.12rem);
    line-height: 1.72;
  }

  body.derby-home .derby-memorial-gallery__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0.55rem;
    box-sizing: content-box;
    flex-shrink: 0;
  }

  body.derby-home .derby-memorial-gallery__dots {
    gap: 0.35rem 0.55rem;
    justify-content: center;
    padding: 0.15rem 0;
  }
}

@media (max-width: 480px) {
  body.derby-home .derby-nav-grid__inner {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  body.derby-home .derby-nav-btn {
    min-height: 2.75rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    font-size: max(0.82rem, 14px);
  }

  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-media-img,
  body.derby-home .derby-prize-wrap .derby-prize-feature .sf-carousel-slide .sf-media-img {
    max-height: min(62vh, 32rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.derby-home .derby-info-card,
  body.derby-home .derby-expect-card,
  body.derby-home .derby-btn-primary,
  body.derby-home .derby-btn-fb,
  body.derby-home .derby-sponsor-logo-card,
  body.derby-home .derby-memorial-gallery__card,
  body.derby-home .derby-sponsor-showcase__panel,
  body.derby-home .derby-sponsor-showcase__arrow,
  body.derby-home .derby-nav-btn {
    transition: none;
  }

  body.derby-home .derby-info-card:hover,
  body.derby-home .derby-expect-card:hover,
  body.derby-home .derby-btn-primary:hover,
  body.derby-home .derby-btn-fb:hover,
  body.derby-home .derby-sponsor-logo-card:hover,
  body.derby-home .derby-memorial-gallery__card:hover,
  body.derby-home .derby-sponsor-showcase__panel:hover,
  body.derby-home .derby-sponsor-showcase__arrow:hover,
  body.derby-home .derby-nav-btn:hover {
    transform: none;
  }
}
