:root {
  /* Palette — Dolphin Dads blue & gold, refreshed */
  --navy: #0a2a52;
  --navy-deep: #061a35;
  --blue-deep: #0d3f78;
  --blue: #1868b0;
  --blue-bright: #2f8fdb;
  --gold: #eea52c;
  --gold-deep: #a3690a;
  --gold-soft: #ffe9bd;
  --ink: #101d33;
  --muted: #58697e;
  --paper: #f6f9fd;
  --sky: #eaf3fb;
  --white: #ffffff;
  --line: rgba(10, 42, 82, 0.12);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 6px 18px rgba(10, 42, 82, 0.08);
  --shadow: 0 18px 40px rgba(10, 42, 82, 0.14);
  --shadow-lg: 0 30px 70px rgba(10, 42, 82, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-inner,
.section-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.admin-shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Header / floating pill nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 1.15rem 0;
}

.nav-pill {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(10, 42, 82, 0.06);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
  padding: 0.55rem 0.6rem 0.55rem 1.15rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-logo {
  height: 4rem;
  width: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--pill);
  font: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.8rem;
  border-radius: var(--pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: var(--sky);
}

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
}

.site-nav .nav-cta:hover {
  background: #f6b74a;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--pill);
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(238, 165, 44, 0.35);
}

.btn-primary:hover {
  background: #f6b74a;
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-dark {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-deep);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--blue-bright);
  color: var(--blue-deep);
}

.btn-text {
  background: transparent;
  color: var(--blue-deep);
  padding: 0.2rem 0;
  font-weight: 700;
  border-radius: 0;
}

.btn-text:hover {
  color: var(--blue-bright);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(47, 143, 219, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 100%, rgba(238, 165, 44, 0.16) 0%, transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, #0b2c58 55%, var(--navy-deep) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-blob-1 {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(47, 143, 219, 0.45), transparent 70%);
}

.hero-blob-2 {
  width: 18rem;
  height: 18rem;
  left: -6rem;
  bottom: -6rem;
  background: radial-gradient(circle, rgba(238, 165, 44, 0.28), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 4.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  margin-bottom: 1.75rem;
}

.hero-brand {
  color: var(--white);
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.hero-brand span {
  color: var(--gold-soft);
  font-style: italic;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 0 0 2.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Quick facts strip ——— */
.facts {
  margin-top: -2.25rem;
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact-icon {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--pill);
  background: var(--sky);
  color: var(--blue-deep);
  flex-shrink: 0;
}

.fact-icon svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translate(-50%, -50%);
}

.fact strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.fact span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--sky);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 38rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— Feature card (next gathering) ——— */
.feature-stack {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

@media (min-width: 800px) {
  .feature-card {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.feature-card-date {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.feature-card-date .eyebrow {
  color: var(--gold-soft);
}

.feature-card.is-gold .feature-card-date {
  background: linear-gradient(160deg, var(--gold-deep) 0%, var(--gold) 100%);
}

.feature-card.is-gold .feature-card-date .eyebrow {
  color: var(--navy-deep);
}

.feature-card.is-gold .feature-card-where {
  color: rgba(16, 29, 51, 0.72);
}

.feature-card.is-past {
  box-shadow: var(--shadow-sm);
}

.feature-card.is-past .feature-card-date {
  background: linear-gradient(160deg, #3d4a5c 0%, var(--muted) 100%);
}

.feature-card.is-past .feature-card-date .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.feature-card.is-past .feature-card-where {
  color: rgba(255, 255, 255, 0.62);
}

.feature-card.is-past .feature-card-body h3 {
  color: var(--muted);
}

.feature-card.is-past .feature-card-body h3 a:hover {
  color: var(--ink);
}

.feature-card-when {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.feature-card-where {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.feature-card-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card-body h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.feature-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-card-body h3 a:hover {
  color: var(--blue-deep);
}

.feature-card-body p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.event-empty {
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}

/* ——— How it works ——— */
.how-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.how-step-num {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  border-radius: var(--pill);
  background: var(--sky);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.how-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— List cards ——— */
.list-stack {
  display: grid;
  gap: 1rem;
}

.list-item {
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue-bright);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow);
}

.list-item.is-gold {
  border-left-color: var(--gold);
}

.list-item h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.list-item h3 a {
  color: inherit;
  text-decoration: none;
}

.list-item h3 a:hover {
  color: var(--blue-deep);
}

.list-item-compact {
  padding: 1.1rem 1.4rem;
}

.list-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.list-item-excerpt {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.list-item-cta {
  margin: 0.35rem 0 0;
}

.list-item-cta a {
  font-weight: 700;
  text-decoration: none;
}

.list-item-cta a:hover {
  text-decoration: underline;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.72rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  color: var(--blue-deep);
  background: var(--sky);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--pill);
}

.badge-gold {
  color: var(--gold-deep);
  background: var(--gold-soft);
}

/* ——— Interior page hero ——— */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-hero .section-inner {
  max-width: var(--max);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  font-weight: 600;
  margin: 0.5rem 0 0.65rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-body {
  padding-top: 1.5rem;
}

.page-body .section-inner {
  max-width: var(--max);
}

/* ——— Steps (join page) ——— */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  display: block;
  padding: 1.6rem 1.75rem 1.6rem 4.4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.6rem;
  top: 1.55rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: var(--pill);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.steps li strong {
  color: var(--navy);
  font-weight: 700;
}

.prose > p,
.prose > ul,
.prose > ol {
  max-width: 42rem;
}

.prose p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1.1fr 1fr;
  }
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
}

.panel-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.panel-form h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(47, 143, 219, 0.14);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form .row-2 {
  display: grid;
  gap: 1rem;
}

/* ——— Rich text editor (admin) ——— */
.rich-editor-fallback {
  display: none;
}

.rich-editor {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.rich-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
}

.rich-editor .ql-container.ql-snow {
  border: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.rich-editor .ql-editor {
  min-height: 160px;
  padding: 1rem 1.1rem;
  color: var(--ink);
  line-height: 1.65;
}

.rich-editor .ql-editor.ql-blank::before {
  color: var(--muted);
  font-style: normal;
  left: 1.1rem;
  right: 1.1rem;
}

.rich-editor:focus-within {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(47, 143, 219, 0.14);
}

/* Match the live .rich-text spacing exactly so what admins see while
   typing is what visitors will see on the site. */
.rich-editor .ql-editor p {
  margin: 0 0 1rem;
}

.rich-editor .ql-editor ul,
.rich-editor .ql-editor ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.rich-editor .ql-editor li {
  margin-bottom: 0.35rem;
}

.rich-editor .ql-editor h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.rich-editor .ql-editor h3:first-child {
  margin-top: 0;
}

.rich-editor .ql-editor blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-style: italic;
}

.rich-editor .ql-editor a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
}

.rich-editor .ql-editor img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
}

.rich-editor .ql-editor > *:last-child {
  margin-bottom: 0;
}

/* ——— Rich text (public rendering) ——— */
.rich-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.rich-text > *:first-child {
  margin-top: 0;
}

.rich-text > *:last-child {
  margin-bottom: 0;
}

.rich-text p {
  margin: 0 0 1rem;
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.rich-text li {
  margin-bottom: 0.35rem;
}

.rich-text h3,
.rich-text h4 {
  color: var(--navy);
  font-family: var(--font-display);
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.rich-text blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-style: italic;
}

.rich-text a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
}

.rich-text img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
  .form .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.83rem;
}

.flash {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.flash-success {
  background: #e7f7ee;
  border-color: #b7e0c5;
  color: #1d5c38;
}

.flash-error {
  background: #fdeeee;
  border-color: #f0c2c2;
  color: #8a1f1f;
}

.flash-info {
  background: var(--sky);
  border-color: #b7d4ef;
  color: var(--blue-deep);
}

/* ——— Affiliation card ——— */
.affiliation {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fff8ea 100%);
  border-radius: var(--radius-lg);
  align-items: center;
}

@media (min-width: 700px) {
  .affiliation {
    grid-template-columns: 1fr auto;
  }
}

.affiliation strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.affiliation p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 2rem;
  padding-top: 3rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-inner h2 {
  color: var(--white);
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  text-decoration: none;
  font-weight: 500;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1.25rem;
}

.footer-brand img {
  height: 13rem;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ——— Admin ——— */
.admin-body {
  background: var(--paper);
}

.admin-top {
  background: var(--navy-deep);
  color: var(--white);
}

.admin-top .admin-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 0;
}

.admin-top strong {
  font-family: var(--font-display);
  margin-right: 1rem;
  color: var(--white);
}

.admin-top a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.87rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--pill);
}

.admin-top a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.admin-shell {
  padding: 1.75rem 0 3.5rem;
}

.admin-shell h1 {
  font-weight: 600;
  color: var(--navy);
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  background: var(--sky);
  color: var(--blue-deep);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 1.75rem;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.35rem;
}

.stat strong {
  display: block;
  font-size: 1.85rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
}

.empty {
  color: var(--muted);
  padding: 1.5rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .brand-logo {
    height: 2.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .affiliation,
  .cta-inner {
    text-align: center;
    justify-content: center;
  }

  .cta-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
