/* ==========================================================================
   Naples Dance Club
   assets/css/style.css  -  single stylesheet for the whole site
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  /* Colour */
  --ink:        #0b0b0e;
  --ink-2:      #131318;
  --ink-3:      #1c1c23;
  --line:       rgba(246, 242, 234, 0.12);
  --cream:      #f6f2ea;
  --cream-dim:  rgba(246, 242, 234, 0.68);
  --cream-mute: rgba(246, 242, 234, 0.48);
  --gold:       #d4af37;
  --gold-soft:  #e8c96f;
  --gold-deep:  #a8861f;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gut:  clamp(20px, 5vw, 56px);
  --sect: clamp(64px, 9vw, 120px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 350;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.15em; color: var(--cream-dim); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--cream-dim); line-height: 1.75; }
.gold { color: var(--gold); }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--gold-soft); }

/* --- 4. Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); scroll-margin-top: 88px; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--ink-2); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(16px, 2vw, 28px); }

/* Four instructors. auto-fit would leave a single orphan card between about
   760px and 1060px, so the columns are stepped explicitly instead. */
.grid-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1060px) { .grid-people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 559px)  { .grid-people { grid-template-columns: minmax(0, 1fr); } }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* Alternating splits zig-zag on desktop. Once they stack, the secondary column
   would land above the heading it belongs to, so these flip back. */
@media (max-width: 745px) {
  .split--flip > *:first-child { order: 2; }
}


/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1rem 1.9rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.9em; }

/* --- 6. Header / navigation ---------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: 18px;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 10px;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; display: block; transition: height 0.4s var(--ease); }
.is-scrolled .brand img { height: 42px; }
.brand--stack img { height: 74px; }
/* header only: this must not reach the stacked footer logo */
@media (max-width: 980px) { .site-header .brand img, .is-scrolled .brand img { height: 42px; } }

/* ---- Crown signature -------------------------------------------------- */
/* Her crown replaces the hairline rules that used to separate section
   headings, so the mark recurs down every page instead of appearing once. */
.sig { display: flex; align-items: center; gap: 14px; margin: 0 0 1.7rem; }
.sig img { width: 34px; height: auto; flex: 0 0 auto; opacity: .95; }
.sig::after {
  content: ""; height: 1px; width: 54px; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.sig--center { justify-content: center; }
.sig--center::before {
  content: ""; height: 1px; width: 54px; flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---- Crown watermark --------------------------------------------------- */
/* Large, very low opacity, purely atmospheric. Never over body copy. */
.hero::after,
.cta-band::after {
  content: ""; position: absolute; pointer-events: none;
  background: url("../img/crown.svg") no-repeat center / contain;
}
.hero::after {
  right: -6%; bottom: -10%;
  width: min(58vw, 660px); aspect-ratio: 1340 / 750;
  opacity: .06; z-index: -1;
}
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(74vw, 760px); aspect-ratio: 1340 / 750;
  opacity: .05; z-index: -1;
}
@media (max-width: 700px) { .hero::after { opacity: .045; width: 86vw; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-dim);
  padding-block: 6px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--gold); }
.nav a.is-active::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; padding: 0.78rem 1.3rem; font-size: 0.7rem; }
.nav > .btn { display: none; } /* drawer-only CTA, revealed below 980px */

/* Laptop widths: tighten the bar so the nav and the CTA both still fit. */
@media (max-width: 1200px) {
  .site-header .wrap { padding-inline: 24px; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.74rem; letter-spacing: 0.07em; }
  .header-cta { padding: 0.72rem 1.05rem; font-size: 0.66rem; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 18px; height: 1px; background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 14, 0.985);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 96px var(--gut) 40px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform 0.45s var(--ease);
    max-height: 100vh; overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { font-size: 1rem; padding-block: 16px; border-bottom: 1px solid var(--line); letter-spacing: 0.12em; }
  .nav a::after { display: none; }
  /* The drawer is a sibling that paints after the brand and the toggle, so
     lift both above it or there is no visible way to close the menu. */
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .crown, .is-scrolled .crown { height: 26px; }
  .brand__name { font-size: 1rem; letter-spacing: 0.26em; }
  /* .nav a sets a dim colour; the gold CTA needs dark text back. */
  .nav > .btn { display: inline-flex; margin-top: 24px; }
  .nav > .btn--primary { color: var(--ink); }
}

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-block: 140px 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 56vh; padding-block: 170px 70px; }

/* Backdrop. Swap --hero-img for a real photo once one is available:
   style="--hero-img: url('/assets/img/YOUR-HERO-PHOTO.jpg')"  */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--ink-2);
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(212, 175, 55, 0.20), transparent 58%),
    radial-gradient(90% 80% at 10% 95%, rgba(212, 175, 55, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 14, 0.82) 0%, rgba(11, 11, 14, 0.74) 45%, rgba(11, 11, 14, 0.95) 100%);
}
/* Canvas atmosphere, injected by ballroom-fx.js. Decorative only. */
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__content { position: relative; max-width: 800px; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; color: var(--gold); display: block; }
.hero .lead { max-width: 56ch; margin-bottom: 2.2rem; }
.hero .btn-row { margin-bottom: 2.6rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-mute);
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }

/* --- 8. Cards ------------------------------------------------------------ */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 38px);
  display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.section--alt .card { background: var(--ink-3); }
.card:hover { border-color: rgba(212, 175, 55, 0.5); transform: translateY(-4px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.97rem; }
.card__num {
  font-family: var(--serif); font-size: 0.9rem; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 1.4rem; display: block;
}
.card__foot { margin-top: auto; padding-top: 1.6rem; }
.card__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.tag {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-mute);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px;
}

/* --- 9. Offer band ------------------------------------------------------- */
.offer {
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03) 60%, transparent);
  padding: clamp(30px, 4.4vw, 54px);
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }
.offer__price {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.8rem);
  color: var(--gold); line-height: 1; display: block; margin-bottom: 0.3rem;
}
.offer h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.4rem; }
.offer p { margin-bottom: 0; }

/* --- 10. Instructors ----------------------------------------------------- */
.person { display: flex; flex-direction: column; }
.person__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-size: cover; background-position: center top;
  position: relative; overflow: hidden;
  margin-bottom: 1.4rem;
  display: grid; place-items: center;
}
.person__photo::after {
  content: attr(data-placeholder);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-mute); text-align: center; padding: 0 18px;
}
.person__photo[style*="url"]::after { content: none; }
.person__name { margin-bottom: 0.15rem; }
.person__role {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: block;
}
.person p { font-size: 0.97rem; }

/* --- 11. Schedule table -------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th {
  text-align: left; font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  padding: 18px 22px; background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--cream-dim); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--cream); font-family: var(--serif); font-size: 1.05rem; }
.tbd { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* --- 12. Gallery --------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery__item {
  /* Matches the 4:5 source photos exactly, so nothing is cropped. Mixed
     landscape shots can come later with a --wide modifier; until then a
     portrait photo in a square tile loses the person's head. */
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  background-size: cover;
  background-position: center top;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item:hover { border-color: rgba(212, 175, 55, 0.5); transform: scale(1.015); }
.gallery__item span {
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-mute); text-align: center; padding: 0 16px;
}
/* For future landscape event and competition photos. */
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; background-position: center; }
@media (max-width: 560px) { .gallery__item--wide { grid-column: span 1; aspect-ratio: 4 / 5; } }

/* --- 13. Quotes ---------------------------------------------------------- */
.quote {
  border-left: 1px solid var(--gold);
  padding: 4px 0 4px 28px;
}
.quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.6;
  color: var(--cream); margin-bottom: 1rem;
}
.stars { color: var(--gold); font-size: 0.86rem; letter-spacing: 0.22em; display: block; margin-bottom: 0.9rem; }
.quote cite {
  font-style: normal; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-mute);
}

/* --- 14. Stats ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ink); padding: clamp(26px, 3.4vw, 38px); }
.section--alt .stat { background: var(--ink-2); }
.stat__num { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 2.9rem); color: var(--gold); line-height: 1; display: block; margin-bottom: 0.5rem; }
.stat__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-mute); }

/* --- 15. Forms ----------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--sans); font-size: 0.97rem;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--ink-3);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 242, 234, 0.3); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form__status { font-size: 0.93rem; margin: 0; }
.form__status.is-ok    { color: var(--gold); }
.form__status.is-error { color: #e8a0a0; }
.form__status:empty    { display: none; }
.form__note { font-size: 0.84rem; color: var(--cream-mute); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

/* --- 16. Contact details ------------------------------------------------- */
.detail { padding-block: 22px; border-bottom: 1px solid var(--line); }
.detail:first-child { padding-top: 0; }
.detail__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.5rem; }
.detail__value { font-family: var(--serif); font-size: 1.16rem; line-height: 1.5; color: var(--cream); }
.detail__value a:hover { color: var(--gold); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.86); }

/* --- 17. Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(52px, 7vw, 86px) 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(30px, 4vw, 60px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-list a, .footer-list li { font-size: 0.93rem; color: var(--cream-dim); }
.footer-list a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 0.78rem; color: var(--cream-mute);
}
.social { display: flex; gap: 12px; margin-top: 1.4rem; }
.social a {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--cream-dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* --- 17b. News and article pages ------------------------------------- */
.card--news { padding-top: 0; overflow: hidden; }
.card--news .card__img {
  aspect-ratio: 16 / 10; margin: 0 calc(-1 * clamp(26px, 3.4vw, 38px)) clamp(22px, 2.6vw, 30px);
  background-size: cover; background-position: center; border-bottom: 1px solid var(--line);
}
.card--news h3 { font-size: clamp(1.18rem, 1.9vw, 1.42rem); }
.card--news h3 a { transition: color 0.3s var(--ease); }
.card--news h3 a:hover { color: var(--gold); }
.card--news .card__num { text-transform: uppercase; letter-spacing: 0.16em; font-family: var(--sans); font-size: 0.66rem; }

.post__meta { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-mute); margin: 0; }
.post__body { max-width: 68ch; margin-inline: auto; }
.post__body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 0.7rem;
}
.post__body h2:first-child { margin-top: 0; }
.post__body p { font-size: 1.04rem; line-height: 1.8; }
.post__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.post__body img { border-radius: var(--radius); border: 1px solid var(--line); margin-block: 1.6rem; }
.post__body ul, .post__body ol { color: var(--cream-dim); line-height: 1.8; padding-left: 1.2em; }
.post__back { max-width: 68ch; margin: clamp(2.4rem, 4vw, 3.4rem) auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }

/* Responsive video for competition footage. */
.embed { position: relative; aspect-ratio: 16 / 9; margin-block: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.credit { color: var(--cream-mute); transition: color 0.3s var(--ease); }
.credit:hover { color: var(--gold); }

/* ---- Schedule table on phones ---------------------------------------- */
/* Five columns will not fit 375px. Rather than a sideways-scrolling table
   nobody realises they can scroll, each row becomes its own card. */
@media (max-width: 745px) {
  .table-wrap { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr {
    display: block; margin-bottom: 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--ink-2); padding: 6px 2px;
  }
  tbody td {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 10px 18px; border-bottom: 1px solid var(--line);
    text-align: right;
  }
  tbody td:last-child { border-bottom: 0; }
  tbody td::before {
    content: attr(data-label);
    font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); text-align: left; flex: 0 0 auto; align-self: center;
  }
  tbody td:first-child { font-size: 1.05rem; }
}

/* ---- Touch targets --------------------------------------------------- */
/* Footer and contact links render around 18px tall, well under the 44px
   Apple and 48px Google recommend. Padding only, so nothing moves visually. */
@media (max-width: 745px) {
  .footer-list a,
  .detail__value a,
  .form__note a,
  .link-arrow {
    display: inline-flex;
    padding-block: 11px;
  }
  .card--news h3 a,
  .post__body a { display: inline-block; padding-block: 6px; }
  /* Inline links stay inline: padding-block grows the hit area without
     changing the line box, so body text spacing is untouched. */
  p a { padding-block: 7px; }
  .footer-list { gap: 2px; }
  .footer-bottom a { display: inline-block; padding-block: 8px; }
  .social a { width: 46px; height: 46px; }
}

/* --- 18. CTA band -------------------------------------------------------- */
.cta-band {
  background: var(--ink-3);
  border-block: 1px solid var(--line);
  text-align: center;
  padding-block: clamp(56px, 8vw, 100px);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }

/* --- 19. Notes (content still to come) ----------------------------------- */
.note {
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.05);
  padding: 20px 24px;
  font-size: 0.9rem; color: var(--cream-dim);
}
.note strong { color: var(--gold); font-weight: 600; }

/* --- 20. Scroll reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- 21. Accessibility --------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.nav-open { overflow: hidden; }
