:root {
  --blue: #283db9;
  --blue-heading: #0f599c;
  --blue-pill: #94bceb;
  --green: #1b8731;
  --green-copy: #1c932d;
  --ink: #383838;
  --muted: #757575;
  --line: #e4e4e4;
  --white: #ffffff;
  --font-display: "Fredericka the Great", cursive;
  --font-body: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "League Spartan", "Arial Black", sans-serif;
  --font-accent: "Cormorant Garamond", "Times New Roman", serif;
  --font-page-heading: Fraunces, "Cormorant Garamond", Georgia, serif;
  --max: 980px;
  --page-photo: url("/.netlify/images?url=/images/about-bg.jpg&w=1600&fm=avif&q=62"),
                 url("../images/about-bg.jpg");
  --page-photo-opacity: 0.3;
}

html[data-page="home"] {
  --page-photo: url("/.netlify/images?url=/images/home-bg.jpg&w=1600&fm=avif&q=62"),
                 url("../images/home-bg.jpg");
  --page-photo-opacity: 0.35;
}

html[data-page="about"],
html[data-page="contact"] {
  --page-photo: url("/.netlify/images?url=/images/about-bg.jpg&w=1600&fm=avif&q=62"),
                 url("../images/about-bg.jpg");
  --page-photo-opacity: 0.26;
}

html[data-page="ce1"],
html[data-page="materials"],
html[data-page="bonus"],
html[data-page="integrated"],
html[data-page="wednesday"],
html[data-page="books"],
html[data-page="world"],
html[data-page="documents"],
html[data-page="videos"] {
  --page-photo: url("/.netlify/images?url=/images/ce1-bg.jpg&w=1400&fm=avif&q=62"),
                 url("../images/ce1-bg.jpg");
  --page-photo-opacity: 0.48;
}

html[data-page="adults"],
html[data-page="listening"],
html[data-page="pronunciation"],
html[data-page="grammar"] {
  --page-photo: url("/.netlify/images?url=/images/adults-bg.jpg&w=1400&fm=avif&q=62"),
                 url("../images/adults-bg.jpg");
  --page-photo-opacity: 0.4;
}

/* The member area is named ink-members so it inherits the whole Ink & Influence
   treatment below via the [data-page^="ink"] selectors. */
html[data-page="ink"],
html[data-page="ink-schedule"],
html[data-page="ink-competitions"],
html[data-page="ink-tips"],
html[data-page="ink-quotes"],
html[data-page="ink-members"] {
  --page-photo: url("/.netlify/images?url=/images/ink-bg.jpg&w=1680&fm=avif&q=62"),
                 url("../images/ink-bg.jpg");
  --page-photo-opacity: 1;
}

/* The pen-and-journal photo is far busier than the other page backgrounds — its
   handwriting and dark wood both compete with running text — so it is veiled in
   white rather than merely faded. */
html[data-page^="ink"] .page-bg::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    var(--page-photo);
}

/* Elsewhere on the site body copy sits straight on the background photo, which
   only works because those images are pale. This one is not, and the body grey
   (#757575, inherited from the reference site) manages just 4.6:1 even on pure
   white — so any photo behind it fails AA. The content therefore gets its own
   near-opaque surface: a sheet of paper on the desk, which suits the subject and
   puts contrast back where the reference site's white areas have it. */
html[data-page^="ink"] main {
  width: min(calc(var(--max) + 3.5rem), calc(100% - 1.5rem));
  margin: 0 auto 2.5rem;
  padding: 1.75rem 0 2.25rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  box-shadow: 0 2px 28px rgba(30, 40, 70, 0.12);
}

/* The footer's white text needs a dark photo behind it; over this one it would
   disappear, so it takes ink instead. */
html[data-page^="ink"] .site-footer p {
  color: var(--ink);
  text-shadow: none;
}

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

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--muted);
  background: transparent;
  line-height: 1.55;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--white);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Two layers: the Netlify Image CDN AVIF sits on top of the original file.
     If the CDN URL does not resolve — local preview, or an Image CDN outage —
     the layer beneath simply shows through. No build step, no broken pages. */
  background-image: var(--page-photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--page-photo-opacity);
}

.site-header,
main,
.site-footer {
  position: relative;
}

.site-header {
  z-index: 50;
}

main,
.site-footer {
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--blue-heading);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

.site-header {
  background: transparent;
  border: 0;
}

.header-bar {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 181px;
  padding: 7px 0 17px;
  overflow: visible;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-title {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.globe {
  width: 0.52em;
  height: 0.52em;
  margin: 0 0.02em 0.08em;
  object-fit: contain;
}

.brand-tag {
  display: block;
  margin: 0.15rem 0 2.25rem;
  font-family: var(--font-accent);
  font-size: 25px;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--blue-pill);
  border-radius: 80px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  gap: 6px;
  overflow: visible;
}

.nav-item,
.nav-drop > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 80px;
  padding: 0 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}

/* Six top-level items no longer fit the reference's fixed pill widths
   (the Wix original had five), so pills size to their label instead. */
.nav-item,
.nav-drop > button {
  padding: 0 0.85rem;
}

/* Keyed to the component so a new menu item needs no CSS change. */
.nav > .nav-item,
.nav > .nav-drop {
  width: auto;
  flex: 0 0 auto;
}

/* Only ever visible to a signed-in visitor (js/auth.js unhides it). */
.nav-members {
  color: var(--blue-heading);
  font-weight: 400;
}

.nav-item:hover,
.nav-drop > button:hover,
.nav-item.is-active,
.nav-drop.is-active > button {
  background: var(--blue-pill);
  color: #000;
}

.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  overflow: visible;
}

.nav-drop > button {
  width: 100%;
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 8px 0 0;
  z-index: 60;
}

.nav-drop-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
}

.nav-drop-inner {
  display: grid;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 4px;
  padding: 0.35rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

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

@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover .nav-drop-menu {
    display: block;
  }
}

.nav-drop-menu a {
  width: 100%;
  height: auto;
  min-height: 32px;
  justify-content: flex-start;
  border-radius: 0;
  padding: 0.45rem 0.9rem;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

.hero {
  text-align: center;
  width: min(825px, calc(100% - 2rem));
  margin: 0.55rem auto 1.35rem;
  padding: 0;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--blue-heading);
  line-height: 1.22;
}

.lede {
  margin: 0 auto;
  max-width: 42rem;
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 700;
  color: var(--green-copy);
  line-height: 1.45;
}

html:not([data-page="home"]) .lede {
  margin: 0;
  max-width: none;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

.home-cols {
  display: grid;
  grid-template-columns: 324fr 328fr 328fr;
  /* Row 1 absorbs the photo; rows 2–5 are the icon, heading, blurb and links.
     The three columns share these rows through subgrid, so the icons sit on one
     line however many mini-links a column carries (CE1 has five, children two). */
  grid-template-rows: 1fr auto auto auto auto;
  gap: 0;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  min-height: 554px;
}

.photo-col {
  position: relative;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  min-height: 554px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.photo-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.85);
}

.photo-col-content {
  position: relative;
  z-index: 1;
  grid-row: 2 / -1;
  display: grid;
  grid-template-rows: subgrid;
  /* Vertical padding moves to the children: padding here would offset this
     subgrid's tracks away from the shared rows above. Inline padding is safe. */
  padding: 0 1.4rem;
  text-align: center;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 89, 156, 0.72), rgba(15, 89, 156, 0.08) 55%, transparent);
}

.icon-circle {
  width: 58px;
  height: 58px;
  margin: 2rem auto 0.9rem;
  border-radius: 50%;
  background: #4a7fd4;
  display: grid;
  place-items: center;
}

.icon-circle svg {
  width: 28px;
  height: 28px;
  fill: #1d3557;
}

.photo-col h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d7e8ff;
}

.photo-col.adults h2 {
  color: #c8f0c8;
}

.photo-col p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: #f2f6fb;
}

.photo-col .mini-links {
  margin-top: 0.9rem;
  margin-bottom: 2.4rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.photo-col .mini-links a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery {
  width: min(584px, calc(100% - 2rem));
  margin: 2.4rem auto 2.5rem;
  padding: 0;
}

.gallery-frame {
  position: relative;
  height: 279px;
  overflow: hidden;
  background: #eef2f6;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gallery-frame img.is-on {
  display: block;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-nav button {
  border: 0;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

html:not([data-page="home"]) main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  padding: 1.45rem 1.55rem 2.5rem;
}

html:not([data-page="home"]) main .wrap {
  width: 100%;
  margin-inline: 0;
}

.page-hero {
  padding: 0.2rem 0 0.6rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-page-heading);
  font-size: 25px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
}

.page-hero .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-heading);
  margin: 0 0 0.4rem;
}

.section {
  padding: 0.5rem 0 3rem;
}

.prose {
  max-width: 58rem;
}

.prose h2,
.prose h3,
.card h2,
.week-card h2,
.materials h3,
.resource h3 {
  font-family: var(--font-heading);
  color: var(--blue-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.prose p,
.prose li {
  font-size: 15px;
  color: var(--muted);
}

.grid-3,
.card-grid,
.link-grid,
.materials,
.levels,
.book-grid,
.video-grid,
.resource-list,
.split {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.split {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.card,
.week-card,
.resource,
.materials article,
.level,
.form {
  background: transparent;
  border: 0;
}

.card,
.week-card,
.resource,
.materials article,
.form {
  padding: 1.15rem 0;
}

.form {
  background: rgba(255, 255, 255, 0.55);
  padding: 1.15rem 1.2rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}

.quick-links a,
.book-grid a,
.video-grid a {
  display: block;
  padding: 0.35rem 0;
  border: 0;
  text-decoration: underline;
  color: var(--blue-heading);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--blue-pill);
  color: var(--blue-heading);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #cfd8e3;
}

.week-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0 1.2rem;
}

.week-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  color: var(--ink);
}

.week-card .meta {
  color: var(--green);
  font-size: 0.8rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.week-card h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.05rem;
}

.week-card h3 {
  margin: 0.8rem 0 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-heading);
}

.note {
  background: #eef8ee;
  padding: 0.85rem 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.about-photos img:first-child {
  grid-column: 1 / -1;
}

.about-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.about-photos img.portrait {
  height: 280px;
  object-fit: cover;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 400;
  color: var(--ink);
}

input,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  background: #fafafa;
}

.hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border: 0;
  background: transparent;
  min-height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 0 25px;
}

.site-footer p {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: #eef4fb;
  color: var(--blue-heading);
}

.materials {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.levels {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.book-grid,
.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 980px) {
  .brand-title {
    font-size: clamp(1.6rem, 6vw, 50px);
  }

  .brand-tag {
    font-size: clamp(1rem, 3vw, 25px);
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 40px);
  }

  .lede {
    font-size: clamp(1rem, 2.6vw, 23px);
  }
}

@media (max-width: 900px) {
  .header-bar {
    min-height: 0;
    padding: 0.75rem 0 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin: 0 0 0.6rem;
  }

  .nav {
    display: none;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0.25rem;
  }

  .nav > .nav-item,
  .nav > .nav-drop {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav-drop {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-drop-menu {
    position: static;
    padding: 0 0 0 0.6rem;
    min-width: 0;
  }

  .nav-drop-menu::after {
    display: none;
  }

  .nav-drop-inner {
    box-shadow: none;
    background: transparent;
    padding: 0.15rem 0 0.35rem;
  }

  .home-cols,
  .grid-3,
  .split,
  .about-layout {
    grid-template-columns: 1fr;
  }

  /* Stacked, the columns no longer share rows — drop back to bottom-anchored
     content, since there is nothing left to line the icons up with. */
  .home-cols {
    grid-template-rows: none;
  }

  .photo-col {
    grid-row: auto;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
  }

  .photo-col-content {
    grid-row: auto;
    display: block;
    padding: 2rem 1.4rem 2.4rem;
  }

  .photo-col .icon-circle {
    margin-top: 0;
  }

  .photo-col .mini-links {
    margin-bottom: 0;
  }
}

/* Subgrid is what lines the icons up. Without it (older Safari/Chrome), fall
   back to the previous bottom-anchored layout rather than a broken grid. */
@supports not (grid-template-rows: subgrid) {
  .home-cols {
    grid-template-rows: none;
  }

  .photo-col {
    grid-row: auto;
    display: flex;
    align-items: flex-end;
  }

  .photo-col-content {
    grid-row: auto;
    display: block;
    padding: 2rem 1.4rem 2.4rem;
  }

  .photo-col .icon-circle {
    margin-top: 0;
  }

  .photo-col .mini-links {
    margin-bottom: 0;
  }
}

/* ============================================================
   Ink & Influence
   ============================================================ */

.hero-sub {
  margin: -0.35rem 0 1rem;
  font-family: var(--font-accent);
  font-size: 27px;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.02em;
}

.hero-copy {
  margin: 1.6rem auto 1.4rem;
  max-width: 40rem;
  text-align: left;
}

.hero-copy p {
  margin: 0 0 0.85rem;
  font-size: 16px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0;
}

/* Five-step writing process — a real sequence, so it is numbered and arrowed. */
.process {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process li {
  flex: 1 1 150px;
  counter-increment: step;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  padding: 0.9rem 0.9rem 1rem;
}

.process li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.process b {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-heading);
  margin-bottom: 0.3rem;
}

.process span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Schedule */
.schedule {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.schedule li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.schedule .n {
  flex: 0 0 4.75rem;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.schedule .d {
  flex: 0 0 auto;
  min-width: 12rem;
  font-weight: 400;
  color: var(--ink);
}

.schedule .why {
  flex: 1 1 14rem;
  font-size: 14px;
  font-style: italic;
  color: var(--green-copy);
}

.schedule li.is-break {
  background: #f4f7fb;
}

.schedule li.is-break .n {
  color: var(--muted);
}

.schedule li.is-break .d {
  color: var(--muted);
  font-style: italic;
}

.schedule li.is-final .d {
  font-weight: 700;
  color: var(--blue-heading);
}

/* Competitions */
.comp-list {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2rem;
}

.comp {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-pill);
  border-radius: 4px;
  padding: 1.35rem 1.5rem 1.4rem;
}

.comp.is-main {
  border-left-color: var(--blue);
}

.comp h2 {
  margin: 0 0 0.15rem;
}

.comp .org {
  margin: 0 0 0.5rem;
  font-size: 15px;
  color: var(--green-copy);
}

.comp .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.comp .facts li {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-heading);
  background: #eef4fb;
  border-radius: 80px;
  padding: 0.2rem 0.65rem;
}

.comp .facts li.is-flag {
  color: #fff;
  background: var(--blue);
}

.comp h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 16px;
}

.comp .prize {
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.9rem;
  background: #f4f7fb;
  border-radius: 4px;
  font-size: 15px;
}

.comp .prize strong {
  color: var(--blue-heading);
}

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quotes li {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem 1.3rem 1.1rem;
}

.quotes blockquote {
  margin: 0 0 0.7rem;
  font-family: var(--font-accent);
  font-size: 21px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

.quotes cite {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-copy);
}

.quotes cite span {
  display: block;
  margin-top: 0.15rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

/* Editorial flag for content still awaiting the teacher's copy */
.stub {
  border: 1px dashed var(--blue-pill);
  border-radius: 4px;
  background: #f7faff;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 0;
}

.stub p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .schedule .d {
    min-width: 0;
  }

  .hero-copy {
    text-align: left;
  }
}

.prose blockquote {
  margin: 1.4rem 0 0;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 3px solid var(--blue-pill);
}

.prose blockquote p {
  margin: 0 0 0.35rem;
  font-family: var(--font-accent);
  font-size: 22px;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.prose blockquote cite {
  font-family: var(--font-heading);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-copy);
}

/* ============================================================
   Registration & members
   ============================================================ */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.benefits li {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  padding: 1.1rem 1.2rem 1.2rem;
}

.benefits b {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 0.3rem;
}

.benefits span {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Enrolment steps — a genuine sequence, so it is numbered. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: enrol;
}

.steps li {
  counter-increment: enrol;
  padding-left: 2.6rem;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}

.steps li::before {
  content: counter(enrol);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps b {
  display: block;
  color: var(--blue-heading);
  font-weight: 700;
}

/* The signup panel — the page's single primary action. */
.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--blue-pill);
  border-radius: 6px;
  padding: 1.6rem 1.7rem 1.7rem;
  box-shadow: 0 2px 22px rgba(30, 40, 70, 0.1);
  margin: 0 0 1.75rem;
}

.auth-card h2 {
  margin: 0 0 0.4rem;
}

.auth-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.auth-card .btn {
  font-size: 16px;
  padding: 0.7rem 1.5rem;
}

.auth-alt {
  margin: 0.9rem 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

.auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  list-style: none;
}

.auth-meta li::before {
  content: "✓";
  color: var(--green-copy);
  font-weight: 700;
  margin-right: 0.35rem;
}

/* Signed-in panel */
.account {
  background: #f2f8f3;
  border: 1px solid #bfe0c4;
  border-radius: 6px;
  padding: 1.4rem 1.6rem 1.5rem;
  margin: 0 0 1.75rem;
}

.account h2 {
  margin: 0 0 0.3rem;
}

.account .who {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--green-copy);
  margin: 0 0 0.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 80px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.is-active {
  color: #14631f;
  background: #d6efd9;
}

.status.is-pending {
  color: #7a5200;
  background: #fbeecd;
}

/* Small print that has to be read, so it is not styled to be ignored. */
.privacy {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem 1.2rem;
  margin: 1.75rem 0 0;
  font-size: 14px;
  color: var(--muted);
}

.privacy h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.privacy p {
  margin: 0 0 0.5rem;
}

.privacy p:last-child {
  margin-bottom: 0;
}

.form .consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.45;
}

.form .consent input {
  width: auto;
  margin-top: 0.25rem;
  flex: none;
}

[data-auth][hidden] {
  display: none !important;
}

/* YouTube embeds. 16:9 without the old padding-top trick. */
.video-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.video-embeds .video {
  margin: 0;
}

.video-embeds iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
  background: #000;
  display: block;
}

.video-embeds figcaption {
  margin-top: 0.45rem;
  font-size: 14.5px;
  color: var(--muted);
}
