/*
 * indiahosa.org stylesheet, set to Akshaj Vellore's "Full page-by-page implementation spec" (5 December 2026), which
 * rebuilds the visual layer to match Anthariksh's Base44 site: Base44 blue (#126289) for display headings and the
 * conference identity strip, Base44 red (#841619) for primary actions and labels, navy for body text, the utility bar
 * and the footer, on a white canvas with soft beige and pale blue sections. Tahoma and Arial throughout. No orange.
 */

:root {
  /* Palette (spec §01, "Color: the important correction") */
  --blue: #126289;
  --red: #841619;
  --red-dark: #661114;
  --navy: #14213d;
  --white: #ffffff;
  --beige: #f6f1e8;
  --pale: #edf5f8;
  --rule: #d8e2e7;
  --muted: #465a67;
  /* The HOSA logo's tan, used only in the home hero mark */
  --tan: #c3a98c;
  /* Type (spec §01, "Typography, grid and imagery") */
  --font-head: Tahoma, Arial, ui-sans-serif, system-ui, sans-serif;
  --font-body: Arial, ui-sans-serif, system-ui, sans-serif;
  /* Grid: 1,232 px of content with 48 px gutters on desktop, 24 px on tablet and 16 px on phones */
  --content: 1232px;
  --gutter: 48px;
  --section: 64px;
  --gap: 32px;
  --card-pad: 24px;
}

@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
    --section: 52px;
    --gap: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section: 40px;
    --gap: 16px;
    --card-pad: 18px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/27px var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Readable line length */
.prose {
  max-width: 68ch;
}

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

.small {
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Type scale (spec §01): desktop / tablet / phone ---------- */

/* Eyebrows: 12/16 bold uppercase with 0.12em letter spacing, in red */
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font: 700 12px/16px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The short red rule under a hero eyebrow: 64 x 3 px */
.red-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 0 20px;
  border: 0;
  background: var(--red);
}

.h1-nlc,
.h1-home,
.h1-page,
.h1-utility {
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.h1-nlc {
  font-size: 68px;
  line-height: 72px;
}

.h1-home {
  font-size: 64px;
  line-height: 68px;
}

.h1-page {
  font-size: 52px;
  line-height: 58px;
}

.h1-utility {
  font-size: 40px;
  line-height: 46px;
}

.h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.01em;
}

.h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 28px;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 19px;
  line-height: 29px;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .h1-nlc {
    font-size: 58px;
    line-height: 62px;
  }
}

@media (max-width: 1023px) {
  .h1-nlc {
    font-size: 46px;
    line-height: 50px;
  }

  .h1-home {
    font-size: 48px;
    line-height: 52px;
  }

  .h1-page {
    font-size: 42px;
    line-height: 48px;
  }

  .h1-utility {
    font-size: 36px;
    line-height: 42px;
  }

  .h2 {
    font-size: 33px;
    line-height: 39px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 25px;
  }

  .h1-nlc,
  .h1-home {
    font-size: 34px;
    line-height: 38px;
  }

  .h1-page,
  .h1-utility {
    font-size: 32px;
    line-height: 36px;
  }

  .h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .lede {
    font-size: 17px;
    line-height: 26px;
  }
}

/* ---------- Links, buttons and focus (spec §01) ---------- */

/* Links in paragraphs are Base44 blue and underlined */
a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-thickness: 2px;
  }
}

/* Focus: a 3 px outline with a 3 px offset, blue on light backgrounds and white on blue or navy */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.on-blue :focus-visible,
.on-navy :focus-visible {
  outline-color: var(--white);
}

/* White panels inside blue or navy bands go back to the blue ring */
.on-blue .on-light :focus-visible,
.on-navy .on-light :focus-visible {
  outline-color: var(--blue);
}

/* Buttons are Base44 pills: at least 44 px tall, CTA type 15/20 bold */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15px/20px var(--font-body);
  text-align: center;
  text-decoration: none;
}

/* Primary: white on Base44 red; hover and press darken the red */
.btn--primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:active {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: var(--white);
}

/* Secondary: white with a 1 px blue outline and blue text; hover turns the fill pale blue */
.btn--secondary {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.btn--secondary:hover,
.btn--secondary:active {
  background: var(--pale);
  color: var(--blue);
}

/* On a blue band, the secondary button is outlined in white */
.btn--on-dark {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.btn--on-dark:hover,
.btn--on-dark:active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* A red arrow-style text action, at least 44 px tall */
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
}

@media (max-width: 767px) {
  .btn {
    font-size: 16px;
    line-height: 22px;
  }

  .actions .btn {
    width: 100%;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--white);
  color: var(--blue);
}

/* ---------- Header (spec §01, "Header and footer") ---------- */

/* The Base44 thin top rule: blue changing to deep red */
.top-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.utility {
  background: var(--navy);
}

.utility__inner,
.masthead__inner {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.utility__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  min-height: 30px;
}

.utility a {
  color: var(--rule);
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
}

.utility a:hover,
.utility a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 76px;
}

.masthead__logo {
  display: block;
  flex: none;
}

.masthead__logo img {
  display: block;
  width: auto;
  height: 50px;
}

.menu-button {
  display: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font: 700 15px/20px var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}

/* Current page: blue text with a red underline, visible without hover */
.site-nav__link[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}

.site-nav__here {
  display: none;
}

.site-nav__utility {
  display: none;
}

/* Start a Chapter: a small red pill, or an outlined one on the NLC page so registration gets priority */
.site-nav__cta .btn {
  min-height: 44px;
  padding: 0 20px;
  white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .site-nav__list {
    gap: 18px;
  }

  .masthead__logo img {
    height: 44px;
  }
}

/* Below 1024 px: a 60 px header with a labelled Menu button; the menu is one vertical list with Privacy, Terms and
   HOSA.org at the end. The collapsed menu applies only once assets/js/site.js has marked the page (.js-menu);
   without the script the full list shows instead. */
@media (max-width: 1023px) {
  .utility {
    display: none;
  }

  .masthead__inner {
    min-height: 60px;
  }

  .masthead__logo img {
    max-width: 132px;
    height: auto;
    max-height: 40px;
  }

  .js-menu .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 18px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: var(--white);
    color: var(--blue);
    font: 700 16px/22px var(--font-body);
    cursor: pointer;
  }

  .js-menu .menu-button[aria-expanded="true"] {
    background: var(--pale);
  }

  .site-nav {
    flex-basis: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
  }

  .js-menu .site-nav {
    display: none;
  }

  .js-menu .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 16px;
    border-top: 1px solid var(--rule);
  }

  .site-nav__link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
    line-height: 22px;
  }

  .site-nav__link[aria-current="page"] {
    text-underline-offset: 5px;
  }

  /* The active page is also labelled in words in the open menu */
  /* inline-block keeps the link's underline off the label */
  .site-nav__here {
    display: inline-block;
    color: var(--red);
    font: 700 12px/16px var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .site-nav__cta {
    margin: 16px 0 8px;
  }

  .site-nav__cta .btn {
    width: 100%;
    min-height: 48px;
  }

  .site-nav__utility {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .site-nav__utility a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 15px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section) 0;
}

.band--pale {
  background: var(--pale);
}

.band--beige {
  background: var(--beige);
}

.on-blue {
  background: var(--blue);
  color: var(--white);
}

.on-blue .h2,
.on-blue .h3,
.on-blue h2,
.on-blue h3,
.on-blue a:not(.btn) {
  color: var(--white);
}

.on-blue .eyebrow,
.on-blue .label {
  color: var(--white);
  opacity: 0.85;
}

.on-blue p {
  color: rgba(255, 255, 255, 0.88);
}

.on-navy {
  background: var(--navy);
  color: var(--white);
}

.on-navy a:not(.btn) {
  color: var(--rule);
}

/* Two white sections in a row are separated by a rule */
.section--white + .section--white {
  border-top: 1px solid var(--rule);
}

.section__head {
  max-width: 68ch;
  margin: 0 0 32px;
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 24px;
  max-width: none;
}

/* 12-column splits on desktop; everything stacks below 1024 px unless a layout says otherwise */
.split {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.split--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--4-8 {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.split--3-9 {
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
}

.split--6-6 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1023px) {
  .split--7-5,
  .split--4-8,
  .split--3-9,
  .split--6-6 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards: 20 px radius, 1 px rule border */
.card {
  padding: var(--card-pad);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--white);
}

.card--beige {
  border-color: transparent;
  background: var(--beige);
}

.card--pale {
  border-color: transparent;
  background: var(--pale);
}

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

.card .h3 a:hover {
  text-decoration: underline;
}

.label {
  display: block;
  margin: 0 0 6px;
  color: var(--red);
  font: 700 12px/16px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Plain linked rows (resources, guidelines): at least 44 px, with a rule between */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li + li {
  border-top: 1px solid var(--rule);
}

.row-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  text-decoration: none;
}

.row-link__name {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.row-link__meta {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row-link:hover .row-link__name {
  text-decoration-thickness: 2px;
}

/* ---------- Home (spec §02 and §12) ---------- */

.home-hero {
  padding: 56px 0 var(--section);
  background: linear-gradient(180deg, var(--white) 0%, var(--pale) 100%);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  align-items: start;
}

.home-hero__grid > div:first-child {
  padding-top: 40px;
}

.home-hero__side {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.event-card {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 40px -24px rgba(20, 33, 61, 0.35);
}

.event-card__when {
  margin: 0 0 4px;
  color: var(--blue);
  font: 700 24px/30px var(--font-head);
}

.event-card__where {
  margin: 0 0 12px;
  font-weight: 700;
}

.event-card__caption {
  margin: 0 0 4px;
  color: var(--muted);
}

/* What you can do with HOSA: one wide conference feature and two compact features */
.features {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--gap);
}

.feature--wide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: transparent;
  background: var(--blue);
  color: var(--white);
}

.feature--wide .h3,
.feature--wide a:not(.btn) {
  color: var(--white);
}

.feature--wide .label {
  color: var(--white);
  opacity: 0.85;
}

.feature--wide p {
  color: rgba(255, 255, 255, 0.9);
}

.feature__big {
  margin: 8px 0 12px;
  font: 700 34px/40px var(--font-head);
}

/* Dates to know: a beige three-stop timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--rule);
}

.timeline__stop {
  position: relative;
  padding-top: 36px;
}

.timeline__stop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--white);
}

.timeline__stop:first-child::before {
  background: var(--red);
}

.timeline__date {
  display: block;
  margin: 0 0 6px;
  color: var(--red);
  font: 700 13px/18px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline__what {
  display: block;
  margin: 0 0 4px;
  font: 700 22px/28px var(--font-head);
}

.timeline__what a {
  text-decoration: none;
}

.timeline__what a:hover {
  text-decoration: underline;
}

.timeline__where {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

@media (max-width: 1023px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .feature--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-top: 28px;
  }

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

  /* The timeline runs down the page on phones */
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-left: 32px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    height: auto;
  }

  .timeline__stop {
    padding-top: 0;
  }

  .timeline__stop::before {
    top: 2px;
    left: -32px;
  }

  .timeline__what {
    font-size: 19px;
    line-height: 25px;
  }
}

/* The moving HOSA mark in the home hero, after the Ephor 360 ring, in the Base44 colours: the logo's circle (HOSA blue)
   draws itself, its tan triangle pops in and floats, a red dot orbits, and the motto's words light up as the dot
   passes them. The dot starts just before Learn (top left) and begins its 12 s orbit 2 s after load, once the words
   are in, so it passes Learn at 2.6 s, Lead 6.1 s, Serve 8.6 s and Innovate 12.1 s. Each highlight peaks about 0.5 s
   after its delay. On phones it comes after the event card, smaller. */
.hero-mark {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: visible;
}

.hero-mark__track {
  fill: none;
  stroke: var(--rule);
  stroke-width: 24;
  opacity: 0.6;
}

.hero-mark__dashes {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 4 10;
  opacity: 0.45;
  transform-box: view-box;
  transform-origin: 220px 210px;
  animation: hosa-spin 60s linear infinite reverse;
}

.hero-mark__glow {
  fill: var(--blue);
  opacity: 0.06;
  transform-box: fill-box;
  transform-origin: center;
  animation: hosa-pulse 3.2s ease-in-out infinite;
}

.hero-mark__ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: hosa-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero-mark__triangle {
  fill: var(--tan);
  transform-box: fill-box;
  transform-origin: center;
  animation: hosa-float 4s ease-in-out 1.6s infinite;
}

.hero-mark__orbit {
  transform-box: view-box;
  transform-origin: 220px 210px;
  animation: hosa-spin 12s linear 2s infinite;
}

.hero-mark__dot {
  fill: var(--red);
}

.hero-mark__chip {
  fill: var(--white);
  stroke: var(--rule);
  stroke-width: 1.5;
  animation: hosa-chip 12s ease-in-out infinite;
}

.hero-mark text {
  fill: var(--blue);
  font: 700 15px var(--font-body);
  text-anchor: middle;
}

.hero-mark__c1 {
  animation-delay: 2.03s;
}

.hero-mark__c2 {
  animation-delay: 5.55s;
}

.hero-mark__c3 {
  animation-delay: 8.03s;
}

.hero-mark__c4 {
  animation-delay: 11.54s;
}

.hero-mark__pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: hosa-pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.hero-mark__d0 {
  animation-delay: 0.9s;
}

.hero-mark__d1 {
  animation-delay: 1.3s;
}

.hero-mark__d2 {
  animation-delay: 1.5s;
}

.hero-mark__d3 {
  animation-delay: 1.7s;
}

.hero-mark__d4,
.hero-mark__d5 {
  animation-delay: 1.9s;
}

@keyframes hosa-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hosa-pulse {
  0%,
  100% {
    opacity: 0.05;
    transform: scale(1);
  }

  50% {
    opacity: 0.14;
    transform: scale(1.12);
  }
}

@keyframes hosa-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hosa-pop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hosa-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* A word lights up in Base44 red for about a second as the orbiting dot passes it */
@keyframes hosa-chip {
  0%,
  10%,
  100% {
    stroke: var(--rule);
    stroke-width: 1.5;
    fill: var(--white);
  }

  3%,
  6% {
    stroke: var(--red);
    stroke-width: 3;
    fill: var(--beige);
  }
}

@media (max-width: 1023px) {
  .hero-mark {
    max-width: 320px;
  }
}

/* Reduced motion: the finished picture, standing still */
@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  .hero-mark * {
    animation: none !important;
  }
}

/* ---------- NLC 2027 (spec §05 and §12) ---------- */

/* The conference identity strip: 40 px of Base44 blue */
.identity {
  background: var(--blue);
  color: var(--white);
}

.identity__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  font: 700 12px/16px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity__inner p {
  margin: 0;
}

/* The in-page bar: small red numbers and blue labels, 44 px tall */
.onpage {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.onpage__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onpage__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--blue);
  font: 700 13px/18px var(--font-body);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.onpage__list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.onpage__num {
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* The phone version of the in-page links: a labelled "On this page" disclosure under the hero */
.onpage-mobile {
  display: none;
}

.nlc-hero {
  padding: 48px 0 var(--section);
  background: linear-gradient(160deg, var(--white) 55%, var(--pale) 100%);
}

.nlc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}

.nlc-hero__when {
  margin: 0 0 4px;
  color: var(--navy);
  font: 700 21px/28px var(--font-head);
}

.nlc-hero__where {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 28px;
}

.nlc-hero__line {
  max-width: 52ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.nlc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.nlc-hero__primary {
  display: flex;
  flex-direction: column;
}

.deadline {
  margin: 8px 0 0;
  color: var(--navy);
  font-weight: 700;
}

.facts {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 40px -26px rgba(20, 33, 61, 0.35);
}

.facts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
}

.facts__item + .facts__item {
  border-top: 1px solid var(--rule);
}

.facts__item:last-child {
  padding-bottom: 0;
}

.facts__icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facts__label {
  display: block;
  color: var(--muted);
  font: 700 11px/16px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts__value {
  display: block;
  color: var(--blue);
  font: 700 19px/25px var(--font-head);
}

.facts__note {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* Two days at NLC: a blue band, Day 1 and Day 2 split by a white-tint rule */
.days {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin: 24px 0 0;
}

.day + .day {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.agenda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  margin: 0 0 16px;
}

.timetable {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  margin: 12px 0 0;
}

.timetable dt,
.timetable dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.timetable dt {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timetable dd {
  color: var(--blue);
  font-weight: 700;
}

/* Competitive events: three category columns of plain PDF rows */
.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.faq {
  max-width: 720px;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  color: var(--blue);
  font: 700 19px/25px var(--font-head);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a minus when the answer is open */
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--red);
  font: 700 24px/1 var(--font-body);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 16px;
}

/* Text that follows a grid of cards or columns */
.after-cards {
  margin-top: 24px;
}

/* Old fragments from the microsite still land on the right section */
.anchor {
  display: block;
  position: relative;
  top: -16px;
  visibility: hidden;
}

@media (max-width: 1023px) {
  .nlc-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .agenda,
  .categories {
    grid-template-columns: minmax(0, 1fr);
  }

  .onpage__list {
    gap: 0 20px;
  }
}

@media (max-width: 767px) {
  .identity__inner {
    min-height: 0;
    font-size: 11px;
    line-height: 15px;
  }

  .onpage {
    display: none;
  }

  .onpage-mobile {
    display: block;
    border-bottom: 1px solid var(--rule);
  }

  .onpage-mobile summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    color: var(--blue);
    font: 700 13px/18px var(--font-body);
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
    cursor: pointer;
  }

  .onpage-mobile summary::-webkit-details-marker {
    display: none;
  }

  .onpage-mobile summary::after {
    content: "+";
    color: var(--red);
    font: 700 22px/1 var(--font-body);
  }

  .onpage-mobile[open] summary::after {
    content: "\2212";
  }

  .onpage-mobile .onpage__list {
    flex-direction: column;
    padding-bottom: 8px;
  }

  .nlc-hero {
    padding-top: 24px;
  }

  .nlc-hero__when {
    font-size: 18px;
    line-height: 24px;
  }

  .nlc-hero__where {
    font-size: 16px;
    line-height: 24px;
  }

  .nlc-hero__line {
    margin-bottom: 20px;
  }

  .nlc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nlc-hero__primary .btn,
  .nlc-hero__actions > .btn {
    width: 100%;
  }

  .facts {
    padding: 22px;
  }

  .days {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .day + .day {
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
  }
}

/* ---------- Programmes, About and Start a Chapter ---------- */

.opener {
  padding: 56px 0 var(--section);
}

/* An opener followed by another white section needs no second full gap */
.opener + .section:not(.band--pale):not(.band--beige):not(.on-blue) {
  padding-top: 8px;
}

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

.opener--center .wrap > * {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.opener--center .red-rule {
  margin-right: auto;
  margin-left: auto;
}

.opener--center .actions {
  justify-content: center;
}

/* Numbered anchor links: red numbers, blue text */
.numbered-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.numbered-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--blue);
  font: 700 17px/22px var(--font-head);
  text-decoration: none;
}

.numbered-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.numbered-links span {
  color: var(--red);
  font: 700 13px/18px var(--font-body);
  letter-spacing: 0.08em;
}

/* Three plain-text verbs with an example each */
.verbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.verbs li {
  padding-top: 16px;
  border-top: 3px solid var(--red);
}

/* A section title with a red rule above it, for 4/8 splits */
.ruled-title {
  padding-top: 16px;
  border-top: 3px solid var(--red);
}

.preview {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.preview li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.preview li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.preview b {
  font-variant-numeric: tabular-nums;
}

.big-fact {
  margin: 4px 0 12px;
  color: var(--blue);
  font: 700 34px/40px var(--font-head);
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .big-fact {
    font-size: 26px;
    line-height: 32px;
  }

  .home-hero__grid > div:first-child {
    padding-top: 0;
  }
}

/* Start a Chapter: a vertical numbered path with red circles */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
  counter-increment: step;
}

.steps li + li {
  border-top: 1px solid var(--rule);
}

.steps li::before {
  content: "0" counter(step);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font: 700 15px/1 var(--font-body);
}

.steps .h3 {
  margin: 0;
}

@media (max-width: 1023px) {
  .verbs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .opener {
    padding-top: 28px;
  }

  .numbered-links {
    gap: 0 20px;
  }
}

/* ---------- Legal pages (spec §09 and §10) ---------- */

.legal-hero .h1-utility {
  color: var(--navy);
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--gap);
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--beige);
}

.legal__toc-title {
  margin: 0 0 8px;
  color: var(--red);
  font: 700 12px/16px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal__toc ol,
.legal__toc-mobile ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 22px;
}

.legal__toc li,
.legal__toc-mobile li {
  padding: 4px 0;
}

.legal__toc-mobile {
  display: none;
}

.legal__body {
  max-width: 72ch;
  font-size: 16px;
  line-height: 26px;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 24px;
  line-height: 30px;
}

@media (max-width: 1023px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal__toc {
    display: none;
  }

  .legal__toc-mobile {
    display: block;
    padding: 4px 20px;
    border-radius: 20px;
    background: var(--beige);
  }

  .legal__toc-mobile summary {
    display: flex;
    align-items: center;
    min-height: 52px;
    color: var(--red);
    font: 700 12px/16px var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .legal__toc-mobile ol {
    padding-bottom: 16px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 24px;
}

.footer__lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin: 0 0 40px;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(216, 226, 231, 0.25);
}

.footer__lead-text {
  margin: 0;
  color: var(--white);
  font: 700 28px/34px var(--font-head);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer__logo {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--white);
}

.footer__logo img {
  display: block;
  width: auto;
  height: 60px;
}

.footer__about p {
  color: var(--rule);
  font-size: 15px;
  line-height: 22px;
}

.footer__heading {
  margin: 0 0 10px;
  color: var(--white);
  font: 700 13px/18px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a,
.footer__about a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--rule);
}

.footer__col a:hover,
.footer__about a:hover {
  color: var(--white);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 226, 231, 0.25);
  color: var(--rule);
  font-size: 14px;
  line-height: 20px;
}

.footer__bar p {
  margin: 0;
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

/* Phone: the groups stack in one column, with 44 px link rows */
@media (max-width: 767px) {
  .footer__lead-text {
    font-size: 22px;
    line-height: 28px;
  }

  .footer__lead .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer__col a,
  .footer__about a {
    min-height: 44px;
  }

  .footer__logo img {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
