/* ==========================================================
   Camberwell Dragons – Theme CSS
   Outfit font loaded in functions.php via Google Fonts
   ========================================================== */

/* ── Custom properties ────────────────────────────────────── */
:root {
  --cd-crimson:    #8B1A2B;
  --cd-crimson-dk: #7a1625;
  --cd-crimson-xl: #5a101c;
  --cd-navy:       #1C2340;
  --cd-navy-lt:    rgba(28,35,64,.08);
  --cd-bg-gray:    #F5F5F7;
  --cd-border:     #e5e7eb;
  --cd-text:       #111827;
  --cd-text-muted: #6b7280;
  --cd-radius:     .75rem;
  --cd-radius-xl:  1rem;
  --cd-shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --cd-font:       'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--cd-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cd-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Layout helpers ──────────────────────────────────────── */
.cd-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width:640px)  { .cd-container { padding: 0 1.5rem; } }
@media (min-width:1024px) { .cd-container { padding: 0 2rem; } }

.cd-container--md      { max-width: 960px; }
.cd-container--narrow  { max-width: 640px; }
/* Sizes below cap the *content* width, so the gutter is added on top of it. */
.cd-container--2xl { --cd-content-width: 672px; }
.cd-container--4xl { --cd-content-width: 896px; }
.cd-container--5xl { --cd-content-width: 1024px; }
.cd-container--6xl { --cd-content-width: 1152px; }
.cd-container--2xl,
.cd-container--4xl,
.cd-container--5xl,
.cd-container--6xl { max-width: calc(var(--cd-content-width) + 2rem); }
@media (min-width:640px) {
  .cd-container--2xl,
  .cd-container--4xl,
  .cd-container--5xl,
  .cd-container--6xl { max-width: calc(var(--cd-content-width) + 3rem); }
}
@media (min-width:1024px) {
  .cd-container--2xl,
  .cd-container--4xl,
  .cd-container--5xl,
  .cd-container--6xl { max-width: calc(var(--cd-content-width) + 4rem); }
}

.cd-text-center { text-align: center; }

/* ── Navbar ──────────────────────────────────────────────── */
.cd-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--cd-border);
}
.cd-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width:640px)  { .cd-navbar__inner { padding: 0 1.5rem; } }
@media (min-width:1024px) { .cd-navbar__inner { padding: 0 2rem; } }

.cd-navbar__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.cd-logo-img {
  height: 3rem;
  width: auto;
  flex-shrink: 0;
}
.cd-navbar__brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cd-navbar__brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--cd-text);
  letter-spacing: -.01em;
}
.cd-navbar__brand-sub {
  font-size: .65rem;
  font-weight: 500;
  color: var(--cd-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 1px;
}

/* Desktop links */
.cd-navbar__links {
  display: none;
  align-items: center;
  gap: .25rem;
}
@media (min-width: 768px) { .cd-navbar__links { display: flex; } }

.cd-navbar__link {
  position: relative;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--cd-text-muted);
  transition: color .15s;
}
.cd-navbar__link:hover { color: var(--cd-text); }
.cd-navbar__link--active { color: var(--cd-crimson); }
.cd-navbar__link--active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cd-crimson);
  border-radius: 2px 2px 0 0;
}

/* Hamburger */
.cd-navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-text-muted);
  transition: color .15s;
}
.cd-navbar__hamburger:hover { color: var(--cd-text); }
@media (min-width: 768px) { .cd-navbar__hamburger { display: none; } }

/* Mobile menu */
.cd-navbar__mobile {
  border-top: 1px solid var(--cd-border);
  background: #fff;
  padding: .5rem;
}
.cd-navbar__mobile-link {
  display: block;
  padding: .625rem .75rem;
  border-radius: .375rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
}
.cd-navbar__mobile-link:hover { background: var(--cd-bg-gray); }
.cd-navbar__mobile-link--active {
  background: rgba(139,26,43,.08);
  color: var(--cd-crimson);
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────── */
.cd-footer {
  width: 100%;
  background: var(--cd-navy);
  color: #9ca3af;
  padding: 2rem 0;
  border-top: 1px solid #374151;
}
.cd-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: .875rem;
}
@media (min-width: 768px) {
  .cd-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2rem;
  }
}
.cd-footer__right { color: #6b7280; }

/* ── Sections ────────────────────────────────────────────── */
.cd-section          { padding: 5rem 0; }
.cd-section--tight   { padding: 4rem 0; }
.cd-section--white   { background: #fff; }
.cd-section--gray    { background: var(--cd-bg-gray); }
.cd-section--navy    { background: var(--cd-navy); }
.cd-section--border  { border-top: 1px solid var(--cd-border); border-bottom: 1px solid var(--cd-border); }
.cd-section--border-top { border-top: 1px solid var(--cd-border); }

.cd-section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--cd-text);
  line-height: 1.2;
}
.cd-section__title--white { color: #fff; }
.cd-section-header { margin-bottom: 4rem; }
.cd-section-header--center { text-align: center; }
.cd-section-header--center .cd-section__title { margin-bottom: .75rem; }

/* ── Page shell ──────────────────────────────────────────── */
#cd-main { flex: 1; }
.cd-page { min-height: 60vh; padding: 2.5rem 0 5rem; }
.cd-page--gray { background: var(--cd-bg-gray); }
.cd-page__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--cd-text);
  margin-bottom: .5rem;
  line-height: 1.2;
}

/* ── Pill / label ────────────────────────────────────────── */
.cd-pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
}
.cd-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cd-crimson);
  margin-bottom: .5rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.cd-hero {
  width: 100%;
  color: #fff;
  padding: 5rem 1rem;
}
@media (min-width: 640px)  { .cd-hero { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .cd-hero { padding-left: 2rem; padding-right: 2rem; } }
.cd-hero--gradient { background: linear-gradient(135deg, var(--cd-crimson), var(--cd-crimson-xl)); }
.cd-hero--sm { padding: 4rem 1rem; }
.cd-hero--banner {
  position: relative;
  overflow: hidden;
  background: var(--cd-crimson);
  padding: 0;
}
.cd-hero--banner .cd-hero__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  color: #fff;
  opacity: .1;
  pointer-events: none;
}
.cd-hero--banner .cd-hero__deco svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-hero--banner .cd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .cd-hero--banner .cd-hero__inner { padding: 4rem 1.5rem; }
}
@media (min-width: 768px) {
  .cd-hero--banner .cd-hero__inner { padding: 5rem 1.5rem; }
}
@media (min-width: 1024px) {
  .cd-hero--banner .cd-hero__inner { padding: 5rem 2rem; }
}
.cd-hero--banner .cd-hero__title {
  font-size: 2.25rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}
@media (min-width: 768px) {
  .cd-hero--banner .cd-hero__title { font-size: 3rem; }
}
.cd-hero--banner .cd-hero__sub {
  max-width: 48rem;
  font-size: 1.125rem;
}
@media (min-width: 768px) {
  .cd-hero--banner .cd-hero__sub { font-size: 1.25rem; }
}
.cd-hero__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cd-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
@media (min-width: 768px)  { .cd-hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .cd-hero__title { font-size: 3.75rem; } }
/* Small heroes stop at the md step. */
@media (min-width: 1024px) { .cd-hero--sm .cd-hero__title { font-size: 3rem; } }
.cd-hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.8);
  max-width: 42rem;
  line-height: 1.6;
}
@media (min-width: 768px) { .cd-hero__sub { font-size: 1.25rem; } }
.cd-hero__updated {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-top: .5rem;
}
.cd-hero__updated svg { flex-shrink: 0; }
.cd-hero__updated--badge {
  margin-top: 0;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: rgba(0,0,0,.2);
}

/* ── Buttons ─────────────────────────────────────────────── */
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  font-family: var(--cd-font);
  font-weight: 700;
  font-size: .95rem;
  border-radius: .5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.cd-btn--primary {
  background: var(--cd-crimson);
  color: #fff;
  border-color: var(--cd-crimson);
  box-shadow: 0 2px 8px rgba(139,26,43,.3);
}
.cd-btn--primary:hover { background: var(--cd-crimson-dk); border-color: var(--cd-crimson-dk); }
.cd-btn--white {
  background: #fff;
  color: var(--cd-crimson);
  border-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.cd-btn--white:hover { background: #f3f4f6; border-color: #f3f4f6; }
.cd-btn--white-full {
  display: flex;
  width: 100%;
  background: #fff;
  color: var(--cd-navy);
  border-color: #fff;
  border-radius: .5rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
}
.cd-btn--white-full:hover { background: #f3f4f6; }
.cd-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.cd-btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.cd-btn--light {
  background: #f3f4f6;
  color: var(--cd-text);
  border-color: #f3f4f6;
}
.cd-btn--light:hover { background: #e5e7eb; border-color: #e5e7eb; }
.cd-btn--navy-full {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: #1C2340;
  color: #fff;
  border-color: #1C2340;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .15s;
}
.cd-btn--navy-full:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}
.cd-btn--navy-full svg { stroke: currentColor; flex-shrink: 0; width: 1.25rem; height: 1.25rem; }

.cd-btn-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: stretch;
  width: 100%;
}
@media (min-width: 480px) {
  .cd-btn-group { flex-direction: row; align-items: center; width: auto; }
  .cd-btn-group .cd-btn { width: auto; }
}
.cd-btn-group--center { justify-content: center; }

/* ── Home portal ─────────────────────────────────────────── */
.cd-portal-hero {
  padding: 6rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cd-navy) 0%, #2a1a2e 50%, var(--cd-crimson) 100%);
}
@media (min-width: 640px)  { .cd-portal-hero { padding: 6rem 1.5rem; } }
@media (min-width: 1024px) { .cd-portal-hero { padding: 6rem 2rem; } }
.cd-portal-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.cd-portal-hero__pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cd-portal-hero__title {
  width: 100%;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}
@media (min-width: 768px)  { .cd-portal-hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .cd-portal-hero__title { font-size: 3.75rem; } }
.cd-portal-hero__intro {
  width: 100%;
  max-width: 42rem;
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  line-height: 1.625;
}
@media (min-width: 768px) { .cd-portal-hero__intro { font-size: 1.25rem; } }
.cd-portal-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  padding-top: 1rem;
}
@media (min-width: 640px) {
  .cd-portal-actions { flex-direction: row; justify-content: center; width: auto; }
}
.cd-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .875rem 2rem;
  border: 2px solid transparent;
  border-radius: .5rem;
  font-weight: 700;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.cd-portal-btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--cd-crimson);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.cd-portal-btn--white:hover { background: #f3f4f6; border-color: #f3f4f6; }
.cd-portal-btn--outline {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.cd-portal-btn--outline:hover { background: rgba(255,255,255,.1); }

.cd-portal-section { padding: 4rem 1rem; }
@media (min-width: 640px)  { .cd-portal-section { padding: 5rem 1.5rem; } }
@media (min-width: 1024px) { .cd-portal-section { padding: 5rem 2rem; } }
.cd-portal-section--gray { background: var(--cd-bg-gray); }
.cd-portal-section--bordered {
  background: #fff;
  border-top: 1px solid var(--cd-border);
  border-bottom: 1px solid var(--cd-border);
}
.cd-portal-section--navy { background: var(--cd-navy); color: #fff; }
.cd-portal-narrow { width: 100%; max-width: 48rem; margin: 0 auto; }
.cd-portal-mid    { width: 100%; max-width: 64rem; margin: 0 auto; }
.cd-portal-wide   { width: 100%; max-width: 80rem; margin: 0 auto; }

.cd-portal-heading {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: center;
}
.cd-portal-eyebrow {
  color: var(--cd-crimson);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cd-portal-eyebrow--light { color: rgba(255,255,255,.7); }
.cd-portal-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.111;
  color: var(--cd-text);
}
@media (min-width: 768px) { .cd-portal-heading h2 { font-size: 2.25rem; } }
.cd-portal-section--navy .cd-portal-heading h2 { color: #fff; }
.cd-portal-heading__sub {
  font-size: 1.125rem;
  color: var(--cd-text-muted);
}
.cd-portal-section--navy .cd-portal-heading__sub { color: rgba(255,255,255,.7); }

.cd-accordion {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-xl);
}
.cd-accordion__item + .cd-accordion__item { border-top: 1px solid var(--cd-border); }
.cd-accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  font-size: 1rem;
  text-align: left;
  transition: background .15s;
}
@media (min-width: 640px) { .cd-accordion__button { padding: 1.25rem 1.5rem; } }
.cd-accordion__button:hover { background: #f9fafb; }
.cd-accordion__label {
  color: var(--cd-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}
@media (min-width: 640px) { .cd-accordion__label { font-size: 1.125rem; } }
.cd-accordion__chevron {
  flex-shrink: 0;
  color: var(--cd-crimson);
  transition: transform .2s ease;
}
.cd-accordion__button[aria-expanded="true"] .cd-accordion__chevron { transform: rotate(180deg); }
.cd-accordion__panel { padding: 1rem 1.25rem 1.5rem; }
@media (min-width: 640px) { .cd-accordion__panel { padding: 1rem 1.5rem 1.5rem; } }
.cd-accordion__panel p { color: var(--cd-text-muted); line-height: 1.625; }
.cd-accordion__panel p + p { margin-top: .75rem; }

.cd-portal-division-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) { .cd-portal-division-actions { flex-direction: row; } }
.cd-portal-division-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: .5rem;
  color: #fff;
  font-weight: 700;
  transition: background .15s;
}
.cd-portal-division-btn:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.cd-portal-division-btn svg { flex-shrink: 0; }

.cd-portal-resources-title {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
@media (min-width: 768px) { .cd-portal-resources-title { font-size: 1.875rem; } }
.cd-resource-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .cd-resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .cd-resource-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.cd-resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  color: var(--cd-text);
  background: #f9fafb;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-xl);
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.cd-resource-card:hover {
  border-color: var(--cd-crimson);
  color: var(--cd-crimson);
  text-decoration: none;
}
.cd-resource-card__arrow { color: var(--cd-crimson); }

.cd-portal-cta {
  padding: 4rem 1rem;
  color: #fff;
  background: var(--cd-crimson);
}
@media (min-width: 640px)  { .cd-portal-cta { padding: 5rem 1.5rem; } }
@media (min-width: 1024px) { .cd-portal-cta { padding: 5rem 2rem; } }
.cd-portal-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.111;
}
@media (min-width: 768px) { .cd-portal-cta h2 { font-size: 2.25rem; } }
.cd-portal-cta p {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
}

/* ── Badges ──────────────────────────────────────────────── */
.cd-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cd-badge--progress  { background: #fef3c7; color: #92400e; }
.cd-badge--completed { background: #d1fae5; color: #065f46; }
.cd-badge--tba       { background: #e5e7eb; color: #374151; }
.cd-badge--upcoming  { background: #dbeafe; color: #1e40af; }
.cd-badge--access    { background: rgba(28,35,64,.08); color: var(--cd-navy); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.cd-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--cd-border);
}
.cd-breadcrumb .cd-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--cd-text-muted);
  flex-wrap: wrap;
}
.cd-breadcrumb a { color: inherit; }
.cd-breadcrumb a:hover { color: var(--cd-text); }
.cd-breadcrumb__sep { color: var(--cd-text-muted); }
.cd-breadcrumb__current { color: var(--cd-text); font-weight: 500; }

/* ── Alerts ──────────────────────────────────────────────── */
.cd-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: .5rem;
  font-size: .875rem;
  line-height: 1.5;
}
.cd-alert svg { flex-shrink: 0; margin-top: .1rem; }
.cd-alert--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; margin-bottom: 1.5rem; }
.cd-alert--warning { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.cd-alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cd-alert--blue-soft { background: #eff6ff; border: 1px solid #bfdbfe; }

/* ── Two-col ─────────────────────────────────────────────── */
.cd-two-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 768px) {
  .cd-two-col { flex-direction: row; gap: 5rem; }
  .cd-two-col > * { flex: 1; }
  .cd-two-col__right-center { display: flex; align-items: center; }
}

/* ── Stat cards ──────────────────────────────────────────── */
.cd-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px)  { .cd-stats-grid { grid-template-columns: repeat(3,1fr); } }
.cd-stat-card {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: var(--cd-radius);
  padding: 2rem;
  text-align: center;
}
.cd-stat-card__num   { font-size: 2.5rem; font-weight: 700; color: var(--cd-crimson); }
.cd-stat-card__label { font-size: 1.1rem; font-weight: 700; color: var(--cd-text); margin-top: .5rem; }
.cd-stat-card__sub   { font-size: .8rem; color: var(--cd-text-muted); margin-top: .25rem; }

/* ── Timeline (horizontal) ───────────────────────────────── */
.cd-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .cd-timeline { grid-template-columns: repeat(4,1fr); gap: 2rem; } }
.cd-timeline__step { position: relative; }
.cd-timeline__num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--cd-crimson);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(139,26,43,.25);
}
@media (min-width: 768px) {
  .cd-timeline__step::after {
    content: '';
    position: absolute;
    top: 1.5rem; left: 3rem; right: -2rem;
    height: 2px;
    background: #d1d5db;
    z-index: 0;
  }
  .cd-timeline__step:last-child::after { display: none; }
}
.cd-timeline__heading { font-size: 1.25rem; font-weight: 700; color: var(--cd-text); margin-bottom: .25rem; }
.cd-timeline__date    { font-size: .875rem; font-weight: 600; color: var(--cd-crimson); margin-bottom: .75rem; }
.cd-timeline__desc    { font-size: .875rem; color: var(--cd-text-muted); line-height: 1.625; }

/* ── Info cards grid ─────────────────────────────────────── */
.cd-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .cd-info-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .cd-info-grid { grid-template-columns: repeat(3,1fr); } }
.cd-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: var(--cd-radius);
}
.cd-info-card__icon { flex-shrink: 0; margin-top: .1rem; stroke: var(--cd-crimson); }
.cd-info-card__title { font-weight: 700; margin-bottom: .375rem; }
.cd-info-card__desc  { font-size: .875rem; color: var(--cd-text-muted); line-height: 1.5; }

/* ── Quick icons ─────────────────────────────────────────── */
/* Strip sits flush under the section above it, so only the base gets padding. */
.cd-quick-strip {
  background: var(--cd-bg-gray);
  border-bottom: 1px solid var(--cd-border);
  padding-bottom: 4rem;
}
.cd-quick-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .cd-quick-icons { grid-template-columns: repeat(4,1fr); } }
.cd-quick-icon { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.cd-quick-icon__circle {
  width: 3rem; height: 3rem;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--cd-shadow-sm);
}
.cd-quick-icon__circle svg { color: var(--cd-crimson); }
.cd-quick-icon span { font-weight: 600; color: var(--cd-text); font-size: .875rem; }

/* ── Division cards (Tryouts page) ──────────────────────── */
.cd-division-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .cd-division-grid { grid-template-columns: repeat(2,1fr); } }
.cd-division-card {
  background: var(--cd-navy);
  border-radius: 1rem;
  padding: 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.cd-division-card__icon-wrap {
  width: 4rem; height: 4rem;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.cd-division-card__title { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.cd-division-card__sub   { color: rgba(255,255,255,.6); font-weight: 500; margin-bottom: 2rem; }
.cd-division-card__list  { flex: 1; margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cd-division-card__list li { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.8); }

/* Tick dot in division list */
.cd-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem;
  background: var(--cd-crimson);
  border-radius: 50%;
  flex-shrink: 0;
}
.cd-tick::after {
  content: '';
  width: .5rem; height: .3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px,-1px);
}

/* ── Toggle (Boys / Girls switch) ────────────────────────── */
.cd-toggle {
  display: inline-flex;
  background: var(--cd-border);
  border-radius: .5rem;
  padding: .25rem;
  gap: .25rem;
}
.cd-toggle__btn {
  padding: .5rem 1.25rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--cd-text-muted);
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s, border-color .15s;
}
.cd-toggle__btn:hover { color: var(--cd-text); }
.cd-toggle__btn--active {
  background: #fff;
  color: var(--cd-text);
  box-shadow: var(--cd-shadow-sm);
}

/* Replit-style pill buttons for Boys / Girls listing */
.cd-toggle--pills {
  background: transparent;
  padding: 0;
  gap: .75rem;
  flex-wrap: wrap;
}
.cd-toggle--pills .cd-toggle__btn {
  padding: .65rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--cd-border);
  background: #fff;
  color: var(--cd-text);
  font-weight: 700;
  box-shadow: none;
}
.cd-toggle--pills .cd-toggle__btn:hover {
  border-color: var(--cd-crimson);
  color: var(--cd-crimson);
}
.cd-toggle--pills .cd-toggle__btn--active {
  background: var(--cd-crimson);
  border-color: var(--cd-crimson);
  color: #fff;
  box-shadow: none;
}
.cd-toggle--pills .cd-toggle__btn--active:hover {
  background: var(--cd-crimson-dk);
  border-color: var(--cd-crimson-dk);
  color: #fff;
}

/* ── Listing page header ─────────────────────────────────── */
.cd-listing-header { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }

/* ── Age group cards ─────────────────────────────────────── */
.cd-age-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .cd-age-grid { grid-template-columns: repeat(2,1fr); } }

.cd-age-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.cd-age-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.cd-age-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cd-border);
  background: var(--cd-bg-gray);
}
.cd-age-card__header--plain {
  background: #fff;
  border-bottom: none;
  padding: 1.35rem 1.5rem .35rem;
}
.cd-age-card__group-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--cd-crimson); margin-bottom: .25rem; }
.cd-age-card__title       { font-size: 1.4rem; font-weight: 800; color: var(--cd-text); line-height: 1.2; }
.cd-age-card__body        { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 1.75rem; }
.cd-age-card__header--plain + .cd-age-card__body { padding-top: .85rem; }
.cd-age-card__body > .cd-btn { margin-top: auto; }
.cd-age-card__birth {
  display: flex; align-items: center; gap: .375rem;
  font-size: .8rem; color: var(--cd-text-muted);
}
.cd-age-card__birth--under-title {
  margin-top: .3rem;
  font-size: .9rem;
  color: #6b7280;
}
.cd-age-card__birth svg { flex-shrink: 0; stroke: var(--cd-text-muted); }

.cd-badge--progress-muted {
  background: #eef0f3;
  color: #4b5563;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Flat round list — matches Replit listing cards */
.cd-round-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cd-round-list__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: .55rem 0;
  border-bottom: 1px solid #CCC;
  font-size: .875rem;
  line-height: 1.35;
}
.cd-round-list__item:last-child {
  border-bottom: none;
}
@media (min-width: 640px) {
  .cd-round-list__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
}
.cd-round-list__label {
  font-weight: 600;
  color: #374151;
  flex: 1 1 auto;
  min-width: 0;
}
.cd-round-list__meta {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .4rem;
  flex: 0 0 auto;
}
@media (min-width: 640px) {
  .cd-round-list__meta {
    flex: 0 0 11.75rem;
    justify-content: flex-end;
    text-align: right;
  }
  .cd-round-list__status {
    text-align: right;
  }
}
.cd-round-list__status {
  color: var(--cd-text-muted);
  font-weight: 500;
}
.cd-round-list__tick {
  width: 1rem;
  height: 1rem;
  stroke: #16a34a;
  color: #16a34a;
  flex-shrink: 0;
}
.cd-round-list__dot {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}
.cd-round-list__item--done .cd-round-list__label {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: #9ca3af;
}
.cd-round-list__item--done .cd-round-list__status {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: rgba(21, 128, 61, .7);
  font-weight: 500;
}
.cd-round-list__item--done .cd-round-list__meta {
  color: #15803d;
}
.cd-round-list__item--tba .cd-round-list__label {
  color: #374151;
}
.cd-round-list__item--tba .cd-round-list__status {
  color: #d97706;
  font-weight: 500;
}

/* Legacy badge styles kept for other templates */
.cd-round-badges { display: flex; flex-direction: column; gap: .5rem; }
.cd-round-badge {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem;
  border-radius: .375rem;
  font-size: .8rem;
}
.cd-round-badge--completed { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cd-round-badge--tba       { background: #fff7ed; border: 1px solid #fed7aa; }
.cd-round-badge--upcoming  { background: #eff6ff; border: 1px solid #bfdbfe; }
.cd-round-badge__tick      { stroke: #16a34a; flex-shrink: 0; }
.cd-round-badge__dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: #ea580c;
  flex-shrink: 0;
  margin: 0 .15rem;
}
.cd-round-badge__num       { font-weight: 700; color: var(--cd-text); }
.cd-round-badge__num--done {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--cd-text-muted);
}
.cd-round-badge__status    { color: var(--cd-text-muted); margin-left: auto; }
.cd-round-badge__status--done { color: #16a34a; font-weight: 600; }
.cd-round-badge__status--tba { color: #c2410c; font-weight: 700; }

.cd-age-card__link {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .875rem;
  color: var(--cd-crimson);
  margin-top: .5rem;
  transition: gap .15s;
}
.cd-age-card__link:hover { gap: .75rem; }
.cd-age-card__link svg { stroke: var(--cd-crimson); }

/* ── Info box (bottom CTA band) ──────────────────────────── */
.cd-info-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  box-shadow: var(--cd-shadow-sm);
}
@media (min-width: 768px) {
  .cd-info-box { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cd-info-box > .cd-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.cd-info-box--flat { background: var(--cd-bg-gray); box-shadow: none; }
.cd-info-box--parents {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: none;
}
.cd-info-box__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: .125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.cd-info-box--parents h4 {
  margin-bottom: .25rem;
  font-weight: 700;
  color: var(--cd-text);
}
.cd-info-box--parents p {
  font-size: .875rem;
  color: var(--cd-text-muted);
  line-height: 1.625;
}
.cd-info-box__title { font-weight: 700; margin-bottom: .25rem; }
.cd-info-box__text  { font-size: .875rem; color: var(--cd-text-muted); line-height: 1.5; }
.cd-info-box__text a { color: var(--cd-crimson); text-decoration: underline; }

/* ── Tryout detail page ──────────────────────────────────── */
.cd-detail-topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .cd-detail-topbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cd-back-link {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .875rem; font-weight: 600;
  color: var(--cd-text-muted);
  transition: color .15s;
}
.cd-back-link:hover { color: var(--cd-text); }
.cd-back-link svg { stroke: currentColor; }

.cd-detail-heading {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .cd-detail-heading { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.cd-detail-heading--replit { align-items: flex-start; gap: .75rem; }
@media (min-width: 640px) {
  .cd-detail-heading--replit { flex-direction: column; align-items: flex-start; }
}
.cd-detail-kickers { display: flex; flex-wrap: wrap; gap: .5rem; }
.cd-detail-kickers span {
  display: inline-flex;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--cd-crimson);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.cd-detail-kickers span + span { background: var(--cd-navy); }
.cd-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--cd-text-muted);
  font-size: .9rem;
}
.cd-detail-updated {
  color: var(--cd-crimson);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cd-detail-hero {
  position: relative;
  overflow: hidden;
  margin: .5rem 0 3.25rem;
  padding: 3.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cd-crimson), var(--cd-crimson-xl));
  border-radius: var(--cd-radius-xl);
  box-shadow: 0 12px 28px rgba(90,16,28,.18);
}
.cd-detail-hero::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  top: -9rem;
  right: -7rem;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  filter: blur(16px);
}
.cd-detail-hero .cd-detail-kickers,
.cd-detail-hero .cd-page__title,
.cd-detail-hero .cd-detail-meta { position: relative; z-index: 1; }
.cd-detail-hero .cd-detail-kickers span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
}
.cd-detail-hero .cd-page__title {
  margin: 2rem 0 1.5rem;
  color: #fff;
  font-size: clamp(2rem,5vw,3.25rem);
}
.cd-detail-hero .cd-detail-meta { color: rgba(255,255,255,.78); font-size: 1rem; font-weight: 600; }
@media (max-width: 640px) {
  .cd-detail-hero { padding: 2rem 1.5rem; margin-bottom: 2.5rem; }
}

/* Sibling nav */
.cd-sibling-nav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
}
.cd-sibling-nav__link {
  padding: .375rem .875rem;
  border-radius: .375rem;
  font-size: .875rem; font-weight: 600;
  color: var(--cd-text-muted);
  transition: background .15s, color .15s;
}
.cd-sibling-nav__link:hover { background: var(--cd-bg-gray); color: var(--cd-text); }
.cd-sibling-nav__link--active { background: var(--cd-crimson); color: #fff; }

/* Round cards */
.cd-rounds { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.cd-round-card {
  background: #fff;
  border: 2px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 1.5rem;
  box-shadow: var(--cd-shadow-sm);
}
.cd-round-card--completed { opacity: .85; }
.cd-round-card--tba { border-style: dashed; }

.cd-round-card__header {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--cd-border);
}
@media (min-width: 640px) {
  .cd-round-card__header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.cd-round-card__header-left { display: flex; align-items: flex-start; gap: .75rem; }
.cd-round-card__check { stroke: #16a34a; flex-shrink: 0; margin-top: .25rem; }
.cd-round-card__round-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--cd-crimson); margin-bottom: .25rem; }
.cd-round-card__title { font-size: 1.2rem; font-weight: 700; color: var(--cd-text); }
.cd-round-card__title--done { text-decoration: line-through; color: var(--cd-text-muted); }
.cd-round-card__badges { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.cd-round-card__desc { font-size: .9rem; color: var(--cd-text-muted); line-height: 1.6; margin-bottom: 1.25rem; }

/* Detail grid */
.cd-round-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--cd-bg-gray);
  border-radius: .5rem;
  margin-bottom: 1.25rem;
}
.cd-round-detail__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--cd-text-muted); margin-bottom: .25rem; }
.cd-round-detail__value { font-weight: 700; color: var(--cd-text); font-size: .9rem; }
.cd-round-detail__value--done { text-decoration: line-through; color: var(--cd-text-muted); }

/* Venue block */
.cd-round-venue {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: 1rem;
  border: 1px solid var(--cd-border);
  border-radius: .5rem;
}
.cd-round-venue__icon {
  width: 2.25rem; height: 2.25rem;
  background: rgba(139,26,43,.08);
  border-radius: .375rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cd-round-venue__icon svg { stroke: var(--cd-crimson); }
.cd-round-venue__name { font-weight: 700; margin-bottom: .2rem; }
.cd-round-venue__name--done { text-decoration: line-through; color: var(--cd-text-muted); }
.cd-round-venue__address { font-size: .85rem; color: var(--cd-text-muted); }
.cd-round-venue__courts  { font-size: .8rem; color: var(--cd-text-muted); margin-top: .1rem; }

/* TBA placeholder */
.cd-round-tba {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  text-align: center; padding: 2.5rem;
  color: var(--cd-text-muted);
}
.cd-round-tba p { font-size: .9rem; line-height: 1.6; }

/* Completed notice */
.cd-round-completed-notice {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: #f0fdf4;
  border-radius: .375rem;
  font-size: .8rem;
  color: #166534;
}
.cd-round-completed-notice svg { stroke: #16a34a; flex-shrink: 0; }

/* ── General Info page ───────────────────────────────────── */
.cd-general-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .cd-general-layout { flex-direction: row; align-items: flex-start; }
  .cd-general-main { flex: 3; }
  .cd-general-sidebar { flex: 1.2; min-width: 300px; position: sticky; top: 7rem; }
}

.cd-general-main { display: flex; flex-direction: column; gap: 1.5rem; }

.cd-gi-section {
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  box-shadow: var(--cd-shadow-sm);
  overflow: hidden;
}
.cd-gi-section__header {
  display: flex; align-items: center; gap: 1rem;
  background: var(--cd-navy);
  color: #fff;
  padding: 1rem 1.5rem;
}
.cd-gi-section__icon {
  width: 2rem; height: 2rem;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cd-gi-section__header h2 { font-size: 1.25rem; font-weight: 700; }
.cd-gi-section__body { padding: 1.5rem; }
@media (min-width: 768px) { .cd-gi-section__body { padding: 2rem; } }
.cd-gi-section__body > p { color: var(--cd-text-muted); line-height: 1.625; margin-bottom: 2rem; }

/* Bolded runs inside body copy are emphasised in club crimson. Coloured
   callouts (alerts, info boxes) keep their own text colour. */
.cd-gi-section__body strong,
.cd-body-lg strong,
.cd-section__intro strong { color: var(--cd-crimson); font-weight: 700; }
.cd-alert strong,
.cd-info-box strong { color: inherit; }

/* Wear grid */
.cd-wear-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .cd-wear-grid { grid-template-columns: 1fr 1fr; } }
.cd-wear-card { border-radius: .5rem; padding: 1.5rem; }
.cd-wear-card--do   { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cd-wear-card--dont { background: #fef2f2; border: 1px solid #fecaca; }
.cd-wear-card h3 {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; margin-bottom: 1rem; font-size: .95rem;
}
.cd-wear-card--do h3    { color: #166534; }
.cd-wear-card--dont h3  { color: #991b1b; }
.cd-wear-card--do h3 svg   { stroke: #16a34a; }
.cd-wear-card--dont h3 svg { stroke: #ef4444; }
.cd-wear-card ul { display: flex; flex-direction: column; gap: .75rem; }
.cd-wear-card li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.cd-wear-card--do li   { color: #166534; font-weight: 500; }
.cd-wear-card--dont li { color: #991b1b; font-weight: 500; }
.cd-wear-dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .4rem;
}
.cd-wear-dot--green { background: #22c55e; }
.cd-wear-dot--red   { background: #ef4444; }

/* General info photos */
.cd-gi-photos {
  margin-bottom: 1.5rem;
}
.cd-gi-photos--multi {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 640px) {
  .cd-gi-photos--multi { grid-template-columns: repeat(2, 1fr); }
}
.cd-gi-photo {
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--cd-border);
  background: var(--cd-bg-gray);
}
.cd-gi-photos:not(.cd-gi-photos--multi) .cd-gi-photo {
  margin-bottom: 0;
}
.cd-gi-photo img {
  display: block;
  max-width: 100%;
  max-height: 20rem;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.cd-gi-photos__caption {
  font-size: .75rem; color: var(--cd-text-muted);
  text-align: center;
  padding: .5rem 1rem 0;
  margin: 0 !important;
  grid-column: 1 / -1;
}
.cd-gi-section__intro p:last-child,
.cd-info-box--parents div p:last-child,
.cd-alert--info div p:last-child {
  margin-bottom: 0;
}

/* Steps */
.cd-steps { display: flex; flex-direction: column; gap: 1rem; }
.cd-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem;
  background: var(--cd-bg-gray);
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
}
.cd-step__num {
  width: 2rem; height: 2rem;
  background: var(--cd-crimson);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.cd-step h4 { font-weight: 700; margin-bottom: .25rem; }
.cd-step p  { font-size: .875rem; color: var(--cd-text-muted); line-height: 1.5; }

/* Drink cards */
.cd-drink-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .cd-drink-grid { grid-template-columns: repeat(3,1fr); } }
.cd-drink-card {
  text-align: center; padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--cd-radius);
  background: #f9fafb;
}
.cd-drink-card__icon {
  width: 3rem; height: 3rem;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.cd-drink-card h4 { font-weight: 700; margin-bottom: .5rem; }
.cd-drink-card p  { font-size: .875rem; color: var(--cd-text-muted); line-height: 1.5; }

/* Vertical timeline */
.cd-timeline-v {
  position: relative;
  margin-left: .75rem;
  padding-left: 2rem;
  padding-bottom: 1rem;
  border-left: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) { .cd-timeline-v { margin-left: 1.5rem; } }
.cd-timeline-v__item { position: relative; }
.cd-timeline-v__dot {
  position: absolute;
  left: -2.5625rem;
  top: .25rem;
  width: 1rem;
  height: 1rem;
  background: var(--cd-crimson);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.cd-timeline-v__item h4 {
  margin-bottom: .25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cd-text);
}
.cd-timeline-v__item p {
  font-size: .875rem;
  color: var(--cd-text-muted);
  line-height: 1.5;
}
.cd-timeline-v__item .cd-timeline-v__time {
  margin-bottom: .25rem;
  color: var(--cd-crimson);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.cd-general-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.cd-sidebar-card { background: #fff; border: 1px solid var(--cd-border); border-radius: var(--cd-radius); box-shadow: var(--cd-shadow-sm); overflow: hidden; }
.cd-sidebar-card--plain { padding: 1.25rem; }
.cd-sidebar-card__header {
  display: flex; align-items: center; gap: .75rem;
  background: var(--cd-navy); color: #fff;
  padding: 1rem 1.25rem;
}
.cd-sidebar-card__header h3 { font-weight: 700; font-size: 1rem; }
.cd-sidebar-card__body { padding: 1.25rem; }

/* Checklist */
.cd-checklist { display: flex; flex-direction: column; gap: 1rem; }
.cd-checklist li { display: flex; align-items: flex-start; gap: .75rem; }
.cd-checklist li span { font-size: .875rem; color: #374151; }
.cd-checklist__box {
  width: 1.25rem; height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: .25rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .1rem;
  transition: background .15s, border-color .15s;
  cursor: pointer;
  background: #fff;
}
.cd-checklist__box:hover { border-color: var(--cd-crimson); }
.cd-checklist__box--checked { background: var(--cd-crimson); border-color: var(--cd-crimson); }
.cd-checklist__box--checked svg { display: block !important; }
.cd-checklist__box svg { stroke: #fff; display: none; }

/* Sidebar links */
.cd-sidebar-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem;
  border: 1px solid var(--cd-border);
  border-radius: .5rem;
  margin-bottom: .75rem;
  font-weight: 600; font-size: .875rem; color: #1f2937;
  transition: border-color .15s, background .15s, color .15s;
}
.cd-sidebar-link:hover { border-color: var(--cd-crimson); background: #fef2f4; color: var(--cd-crimson); }
.cd-sidebar-link:last-child { margin-bottom: 0; }
.cd-sidebar-link svg { stroke: #9ca3af; }
.cd-sidebar-link:hover svg { stroke: var(--cd-crimson); }

.cd-sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  border-radius: .75rem;
  background: var(--cd-crimson);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: background .15s;
}
.cd-sidebar-cta:hover { background: #7a1625; color: #fff; }

/* ── Contact page ────────────────────────────────────────── */
.cd-contact-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .cd-contact-layout { flex-direction: row; }
  .cd-contact-form-wrap { flex: 3; }
  .cd-contact-sidebar { flex: 1.5; }
}

.cd-contact-form-wrap {
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--cd-shadow-sm);
}
.cd-contact-form-wrap__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Success box */
.cd-success-box {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
  padding: 2.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .75rem;
  margin: 1.5rem 0;
}
.cd-success-box__icon {
  width: 4rem; height: 4rem;
  background: #d1fae5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  stroke: #16a34a;
}
.cd-success-box h3 { font-size: 1.2rem; font-weight: 700; color: #166534; }
.cd-success-box p  { color: #166534; }

/* Form */
.cd-contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.cd-form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .cd-form-row { grid-template-columns: 1fr 1fr; } }
.cd-form-group { display: flex; flex-direction: column; gap: .5rem; }
.cd-form-group label { font-size: .875rem; font-weight: 600; color: #374151; }
.cd-form-group input,
.cd-form-group select,
.cd-form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  font-size: .95rem;
  color: var(--cd-text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  background: #fff;
}
.cd-form-group input:focus,
.cd-form-group select:focus,
.cd-form-group textarea:focus {
  border-color: var(--cd-crimson);
  box-shadow: 0 0 0 2px rgba(139,26,43,.15);
}
.cd-form-group textarea { resize: vertical; min-height: 7rem; }

/* Contact info card */
.cd-contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.cd-contact-info-card {
  background: var(--cd-navy);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
}
.cd-contact-info-card h3 {
  font-size: 1.15rem; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.cd-contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.cd-contact-detail:last-child { margin-bottom: 0; }
.cd-contact-detail__icon {
  width: 2.5rem; height: 2.5rem;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cd-contact-detail h4 { font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: .2rem; font-size: .9rem; }
.cd-contact-detail p, .cd-contact-detail a { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.cd-contact-detail a:hover { color: #fff; }

/* ── Typography helpers ──────────────────────────────────── */
.cd-body-lg { font-size: 1.05rem; color: var(--cd-text-muted); line-height: 1.7; }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 767px) {
  .cd-hero { padding: 3rem 1rem; }
  .cd-hero__title { font-size: 1.75rem; }
  .cd-section { padding: 3rem 0; }
}

/* ── Replit parity: detail layout, update banner, glance, access guide ── */
.cd-update-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fff;
  border: 2px solid var(--cd-crimson);
  border-radius: var(--cd-radius-xl);
  padding: 2.25rem 1.75rem 1.75rem;
  margin-bottom: 3rem;
  box-shadow: var(--cd-shadow-sm);
}
.cd-update-banner__updated {
  position: absolute;
  top: 0;
  left: 1.75rem;
  transform: translateY(-50%);
  padding: .35rem .85rem;
  border-radius: 999px;
  background: #facc15;
  color: #713f12;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cd-update-banner__eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cd-navy);
  margin-bottom: .35rem;
}
.cd-update-banner__label {
  display: block;
  font-size: 1rem;
  color: var(--cd-navy);
  margin-bottom: .35rem;
}
.cd-update-banner p {
  font-size: .9rem;
  color: var(--cd-text-muted);
  line-height: 1.5;
  margin: 0;
}
.cd-update-banner__download {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem;
  border-radius: .5rem;
  background: var(--cd-crimson);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cd-update-banner__download:hover { background: var(--cd-crimson-dk); text-decoration: none; }
.cd-update-banner__download--disabled { cursor: not-allowed; opacity: .65; }

.cd-detail-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .cd-detail-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}
.cd-rounds-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cd-rounds-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
}
.cd-timezone-note {
  font-size: .8rem;
  color: var(--cd-text-muted);
}

.cd-round-card__header--navy {
  background: var(--cd-navy);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--cd-radius-xl) var(--cd-radius-xl) 0 0;
}
.cd-round-card__round-label--light { color: rgba(255,255,255,.65) !important; }
.cd-round-card__title--light { color: #fff !important; text-decoration: none !important; }
.cd-round-card__header--navy .cd-round-card__check { stroke: #4ade80; color: #4ade80; }
.cd-round-card__body { padding: 1.5rem; }
.cd-round-card { overflow: hidden; }

.cd-round-details-split {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .cd-round-details-split {
    grid-template-columns: 1fr 1fr;
  }
}
.cd-duration-pill {
  display: block;
  width: fit-content;
  margin-top: .5rem;
  background: var(--cd-bg-gray);
  color: var(--cd-text-muted);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.cd-round-details .cd-duration-pill {
  padding-left: 0;
}
.cd-map-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--cd-crimson);
}
.cd-map-link:hover { text-decoration: underline; }

.cd-glance-card {
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.cd-glance-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cd-border);
}
.cd-glance-card__header h3 {
  font-size: 1rem;
  font-weight: 700;
}
.cd-glance-list {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
}
.cd-glance-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.25rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--cd-border);
}
.cd-glance-list li:last-child { border-bottom: none; }
.cd-glance-list span { color: var(--cd-text-muted); }
.cd-glance-list strong { color: var(--cd-text); font-weight: 600; text-align: right; }

.cd-access-guide {
  background: var(--cd-navy);
  color: #fff;
  border-radius: var(--cd-radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.cd-access-guide h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cd-access-guide ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.cd-access-guide li {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}
.cd-access-guide li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.cd-access-guide strong {
  display: block;
  color: #fff;
  margin-bottom: .15rem;
}

.cd-sidebar-prep {
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-xl);
  padding: 1.25rem;
  text-align: center;
}
.cd-sidebar-prep p {
  font-size: .875rem;
  color: var(--cd-text-muted);
  margin-bottom: 1rem;
}

.cd-badge--upcoming { background: #dbeafe; color: #1e40af; }
.cd-badge--access {
  background: rgba(28,35,64,.85);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .65rem;
}
.cd-round-card__header--navy .cd-badge--access {
  background: rgba(255,255,255,.15);
}

.cd-navbar__mobile-list { list-style: none; margin: 0; padding: 0; }
.cd-navbar__mobile-list li { display: block; }
.cd-navbar__mobile-list a {
  display: block;
  padding: .85rem 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--cd-border);
}

/* 404 */
.cd-404 {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 12rem);
  padding: 4rem 0;
}
.cd-404__inner {
  text-align: center;
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-xl);
  padding: 3rem 1.75rem;
  box-shadow: var(--cd-shadow-sm);
}
@media (min-width: 640px) {
  .cd-404__inner { padding: 3.5rem 2.5rem; }
}
.cd-404__code {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--cd-crimson);
  margin: 0 0 .75rem;
}
.cd-404__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--cd-navy);
  margin: 0 0 .75rem;
  line-height: 1.2;
}
.cd-404__text {
  color: var(--cd-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}
.cd-404__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .cd-404__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}
.cd-404__links {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--cd-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.25rem;
}
.cd-404__links a {
  color: var(--cd-crimson);
  font-weight: 600;
  font-size: .9rem;
}
.cd-404__links a:hover {
  text-decoration: underline;
}
