/* Greater Vancouver Tutoring Collective
   Palette taken from the Wix site; type swapped to Nunito Sans (warm, humanist). */
:root {
  --navy: #062e59;
  --navy-deep: #041f3d;
  --cream: #fffdf7;
  --paper: #f4f6f0;
  --orange: #d97f3d;
  --orange-soft: #e29861;
  --orange-ink: #a8571e; /* small orange text on light backgrounds (4.5:1+) */
  --mint: #7fd4b1;
  --teal: #1b6980;
  --yellow: #ffd966;
  --ink: #062e59;
  --muted: #4a5d74;
  --error: #b3261e;
  --focus: #c56e2f; /* a touch darker than --orange so focus rings show on light backgrounds */
  --line: rgba(6, 46, 89, 0.14);
  --radius: 18px;
  --wrap: 1180px;
  --font: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
/* Added by script.js after load: smooth from the start would stop links like about.html#mission landing on the section */
html.smooth-scroll { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5; /* 27px at 18px */
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
main a:not(.btn):hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 0.9rem;
}
/* On dark backgrounds the lighter orange reads better */
.page-hero .eyebrow, .slide-content .eyebrow, .section-navy .eyebrow,
.list-side .eyebrow, .call-card .eyebrow { color: var(--orange-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.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;
}
.hidden { display: none; }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  font: inherit; font-weight: 800; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-orange:hover { background: #c56e2f; }
  .btn-navy:hover { background: var(--navy-deep); }
  .btn-outline:hover { background: rgba(255, 253, 247, 0.14); }
  .cta-band .btn-light:hover { background: var(--navy); color: var(--cream); }
}
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.05s; }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .nav .drop > a {
  display: block;
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
  transition: background-color 0.15s ease;
}
.nav > a:not(.btn):hover, .nav .drop > a:hover, .nav a[aria-current="page"]:not(.btn) { background: rgba(255, 255, 255, 0.1); }
.nav .btn { margin-left: 10px; padding: 0.6em 1.25em; font-size: 0.95rem; border-width: 0; }
@media (hover: hover) { .nav > a.btn-orange:hover { background: #c56e2f; } }
.nav > a.btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--cream); }
.drop { position: relative; }
.drop > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px;
  background: var(--cream); border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 30px rgba(4, 31, 61, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
/* Invisible bridge over the 6px gap so the menu doesn't close on the way down */
.drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}
.drop.is-closed .drop-menu { opacity: 0; visibility: hidden; }
.drop-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 700; transition: background-color 0.15s ease; }
.drop-menu a:hover { background: var(--paper); }
.menu-toggle { display: none; background: none; border: 0; color: var(--cream); padding: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 18px 30px rgba(4, 31, 61, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s; }
  .nav > a:not(.btn), .nav .drop > a { padding: 14px 8px; font-size: 1.05rem; text-align: left; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
  .drop-menu { position: static; transition: none; background: none; box-shadow: none; padding: 0 0 8px 12px; }
  /* Always listed inside the panel, but hidden (and untappable) whenever the panel is closed */
  .drop-menu, .drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.is-closed .drop-menu { opacity: 1; visibility: inherit; transform: none; }
  .drop-menu::before { display: none; }
  .drop-menu a { color: var(--cream); font-weight: 600; opacity: 0.85; padding: 12px; }
  .drop-menu a:hover { background: rgba(255, 255, 255, 0.08); }
  .drop > a::after { display: none; }
  .nav .btn { margin: 16px 0 0; padding: 0.8em 1.5em; }
  html.menu-open { overflow: hidden; }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(4, 31, 61, 0.55); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy .lead, .section-navy p { color: rgba(255, 253, 247, 0.82); }
.section-paper { background: var(--paper); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 4 / 3; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .photo { aspect-ratio: 4 / 3; }
}
p.big { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.4; max-width: 36ch; margin-inline: auto; }
.section-navy p.big { color: var(--cream); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--cream); background: var(--navy);
  padding: clamp(56px, 13vw, 160px) 0 clamp(44px, 8vw, 100px);
  overflow: hidden;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 46, 89, 0.92) 0%, rgba(6, 46, 89, 0.55) 70%, rgba(6, 46, 89, 0.35) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero p { font-size: 1.18rem; max-width: 56ch; color: rgba(255, 253, 247, 0.88); }
.page-hero .btn-row { margin-top: 28px; }

/* Home hero carousel: fills the screen below the header */
.hero {
  position: relative; height: calc(100svh - var(--header-h)); min-height: 520px;
  background: var(--navy); color: var(--cream); overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
/* The incoming slide fades in on top; the outgoing one stays put underneath until it's covered */
.slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0s linear 0.9s, visibility 0s linear 0.9s;
}
.slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 0.9s ease, visibility 0s; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide:not(.is-active) .slide-bg { transition: transform 0s linear 0.9s; }
.slide-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 46, 89, 0.85) 0%, rgba(6, 46, 89, 0.35) 65%, rgba(6, 46, 89, 0.15) 100%); }
.slide-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slide-content h1, .slide-content h2 { font-size: clamp(2.5rem, min(6vw, 8.5svh), 4.8rem); max-width: 14ch; margin-bottom: 0.4em; }
.slide-content p { font-size: 1.2rem; max-width: 44ch; color: rgba(255, 253, 247, 0.9); }
.role { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: var(--mint); margin-bottom: 1rem; }
@media (max-width: 820px) {
  .slide-content p { font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .slide-content { justify-content: safe flex-end; padding-bottom: 104px; }
  .slide-content h1, .slide-content h2 { font-size: clamp(2.1rem, 9vw, 2.5rem); }
}
.hero-controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
.dots { display: flex; gap: 14px; }
.dot {
  position: relative;
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--cream); background: transparent; padding: 0; cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dot::before { content: ""; position: absolute; inset: -9px; } /* ~25px tap area, same look */
.dot[aria-current="true"] { background: var(--cream); }
.arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 247, 0.16); color: var(--cream);
  border: 1px solid rgba(255, 253, 247, 0.35); cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.arrow svg { width: 20px; height: 20px; }
.arrow:active { transform: scale(0.94); }
@media (hover: hover) {
  .arrow:hover { background: rgba(255, 253, 247, 0.3); }
  .dot:hover { background: rgba(255, 253, 247, 0.45); }
  .dot[aria-current="true"]:hover { background: var(--cream); }
}
[data-pause] .icon-play, [data-pause][aria-pressed="true"] .icon-pause { display: none; }
[data-pause][aria-pressed="true"] .icon-play { display: block; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.chips li { background: var(--mint); color: var(--navy); font-weight: 700; font-size: 0.92rem; padding: 6px 16px; border-radius: 999px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature { text-align: center; border: 2px solid var(--navy); background: var(--cream); }
.feature svg { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--navy); }
.feature p { margin: 0; font-weight: 700; font-size: 1.08rem; }
@media (max-width: 560px) {
  .feature { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; }
  .feature svg { width: 40px; height: 40px; margin: 0; flex: none; }
}

.team-grid, .feature-grid { margin-top: 44px; }
.footnote { margin-top: 20px; }
.team-card { background: var(--navy); color: var(--cream); border-radius: 24px; padding: 18px 18px 28px; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; border-radius: 16px; margin-bottom: 20px; }
.team-card h3 { color: var(--yellow); font-size: 1.5rem; margin-bottom: 4px; padding: 0 8px; }
.team-card .role { color: var(--mint); font-size: 0.78rem; padding: 0 8px; }
.team-card p { color: rgba(255, 253, 247, 0.85); font-size: 0.97rem; margin: 0; padding: 0 8px; }
/* Tablets: photo beside the bio instead of a 700px-tall square */
@media (min-width: 561px) and (max-width: 980px) {
  .team-card { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto auto 1fr; gap: 0 22px; align-items: start; padding: 18px; }
  .team-card img { grid-row: 1 / -1; margin: 0; }
  .team-card h3 { padding-top: 8px; }
}

/* Courses */
.courses { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 560px; }
.courses .photo-side img { width: 100%; height: 100%; object-fit: cover; }
.courses .list-side { background: var(--navy); color: var(--cream); padding: clamp(48px, 7vw, 96px) clamp(16px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.course-list li { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; padding: 10px 0; border-bottom: 1px solid rgba(255, 253, 247, 0.14); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.course-list small { font-size: 0.85rem; font-weight: 600; color: var(--mint); }
@media (max-width: 820px) { .courses { grid-template-columns: 1fr; } .courses .photo-side { aspect-ratio: 16 / 10; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 26px; justify-content: center; margin-top: 48px; }
.plan { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan-head { padding: 30px 32px 26px; color: #fff; }
.plan-standard .plan-head { background: var(--teal); }
.plan-premium .plan-head { background: var(--navy); }
.plan-head h3 { font-size: 1.7rem; margin: 0 0 4px; }
.plan-head .hours { font-weight: 700; opacity: 0.9; }
.plan-price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 700; opacity: 0.85; letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 26px 32px 10px; display: grid; gap: 14px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.plan li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.plan .btn { margin: 14px 32px 32px; }
.fine { font-size: 0.9rem; color: var(--muted); }
.plans-note { margin-top: 24px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; position: relative; }
/* Dashed line runs from the first circle's centre to the last one's */
.steps::before { content: ""; position: absolute; top: 31px; left: calc((100% - 64px) / 6); right: calc((100% - 64px) / 6); border-top: 2px dashed rgba(6, 46, 89, 0.3); }
.steps li { position: relative; text-align: center; padding: 0 10px; }
.step-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; margin: 0 auto 18px; position: relative; }
.steps li:first-child .step-icon { background: var(--orange); }
.step-icon svg { width: 28px; height: 28px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { display: none; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 64px; bottom: -26px; border-left: 2px dashed rgba(6, 46, 89, 0.3); }
  .steps li { text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 0; }
  .step-icon { margin: 0; grid-row: span 2; }
}

/* Deadlines */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); margin-top: 44px; }
.term { padding: 28px 28px 30px; }
.term + .term { border-left: 2px solid var(--navy); }
.term h3 { font-size: 1.5rem; }
.term ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.term li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.term li b { font-weight: 800; }
.term li.past { color: rgba(6, 46, 89, 0.68); text-decoration: line-through; text-decoration-thickness: 1px; }
.term li.next { background: var(--orange); color: #fff; }
/* Screen readers get "(next deadline)" from script.js instead, so the pill has empty alt text */
.term li.next b::after { content: "Next"; content: "Next" / ""; display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(4, 31, 61, 0.25); padding: 2px 8px; border-radius: 99px; }
.deadlines-done, .deadlines-contact { margin-top: 28px; }
@media (max-width: 1020px) {
  .terms { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .term + .term { border-left: 0; border-top: 2px solid var(--navy); }
}

/* Impact band */
.impact { position: relative; overflow: hidden; }
.impact > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.impact .wrap { position: relative; }
.impact p.big { font-size: clamp(1.4rem, 2.8vw, 2rem); max-width: 34ch; }

/* Tutor carousel */
.tutor-carousel { position: relative; max-width: 940px; margin: 48px auto 0; }
.tutor-track { overflow: hidden; border-radius: 28px; touch-action: pan-y pinch-zoom; }
.tutor-slides { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1); }
.tutor { flex: 0 0 100%; display: grid; grid-template-columns: 300px 1fr; background: var(--navy); color: var(--cream); min-height: 420px; }
.tutor-photo { position: relative; }
.tutor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tutor-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.tutor-body h3 { font-size: 2rem; color: var(--yellow); margin-bottom: 2px; }
.tutor-body .school { color: var(--mint); font-weight: 700; margin-bottom: 18px; }
.tutor-body blockquote { margin: 0 0 22px; font-size: 1.15rem; font-style: italic; color: rgba(255, 253, 247, 0.9); border-left: 3px solid var(--orange); padding-left: 16px; }
.tutor-body .spec-label { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 8px; }
.tutor-body .chips { margin: 0; }
.tutor-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.tutor-nav .arrow { background: var(--navy); border-color: var(--navy); }
.tutor-nav .dot { border-color: var(--navy); }
.tutor-nav .dot[aria-current="true"] { background: var(--navy); }
@media (hover: hover) {
  .tutor-nav .arrow:hover { background: var(--teal); border-color: var(--teal); }
  .tutor-nav .dot:hover { background: rgba(6, 46, 89, 0.3); }
  .tutor-nav .dot[aria-current="true"]:hover { background: var(--navy); }
}
.tutor-count { font-weight: 700; color: var(--muted); min-width: 4ch; text-align: center; }
@media (max-width: 720px) {
  /* Photo row keeps its 4:3 height; the body row absorbs the height of the tallest card */
  .tutor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .tutor-photo { aspect-ratio: 4 / 3; }
  .tutor-body { justify-content: flex-start; }
}

/* Lists with checks */
.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--orange); margin-top: 1px; }

/* Form */
.apply-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; } }
/* The form comes first in the HTML (and on phones); on wide screens the call card sits on the left */
@media (min-width: 901px) {
  .apply-grid > .call-card { grid-area: 1 / 1; }
  .apply-grid > form { grid-area: 1 / 2; }
}
.call-card { background: var(--navy); color: var(--cream); border-radius: 24px; padding: clamp(28px, 4vw, 44px); position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .call-card { position: static; } }
.call-card h2 { font-size: 2rem; text-wrap: balance; }
.call-card ol { padding-left: 1.2em; margin: 0 0 1.6rem; display: grid; gap: 8px; color: rgba(255, 253, 247, 0.88); }
.call-card-alt { font-size: 0.95rem; color: rgba(255, 253, 247, 0.75); margin-bottom: 12px; }
.call-card .email { display: block; margin-top: 18px; color: var(--mint); font-weight: 700; word-break: break-word; }
form.card { padding: clamp(24px, 4vw, 40px); }
form.card h2 { font-size: 1.8rem; }
.form-narrow { max-width: 760px; margin: 40px auto 0; }
.form-intro { margin-bottom: 24px; }
.form-foot { margin: 14px 0 0; text-align: center; }
.form-error { margin: 12px 0 0; text-align: center; font-size: 0.95rem; font-weight: 700; color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field[hidden] { display: none; }
.field label, fieldset legend { font-weight: 700; font-size: 0.95rem; }
legend { padding: 0; }
.req { color: var(--orange-ink); }
.hint { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 10px 0 0; }
input, select, textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid rgba(6, 46, 89, 0.25); border-radius: 10px;
  padding: 12px 14px; background: var(--cream); width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select { cursor: pointer; }
select:invalid { color: var(--muted); }
option { color: var(--ink); }
input::placeholder, textarea::placeholder { color: rgba(74, 93, 116, 0.9); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(217, 127, 61, 0.35); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 8px; }
.radios label {
  display: flex; align-items: center; gap: 8px; font-weight: 600;
  border: 1.5px solid rgba(6, 46, 89, 0.25); border-radius: 10px; padding: 10px 16px;
  cursor: pointer; background: var(--cream);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.radios input { width: auto; margin: 0; accent-color: var(--orange); }
.radios input:focus { box-shadow: none; }
.radios label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.radios label:has(input:checked) { border-color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px var(--navy); }
@media (hover: hover) {
  input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus), .radios label:hover { border-color: rgba(6, 46, 89, 0.45); }
  .radios label:has(input:checked):hover { border-color: var(--navy); }
}
@media (max-width: 560px) { .radios label { flex: 1 1 auto; } } /* wrapped pills fill each row evenly */
/* Only flag problems after someone has interacted or tried to submit */
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--error); }
.radios:has(input:user-invalid) label { border-color: var(--error); }

/* Blog empty state */
.empty { text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: 24px; background: #fff; max-width: 720px; margin: 0 auto; }
.empty .lead { margin-inline: auto; }
.empty .btn-row { justify-content: center; }

/* Thank-you and 404 pages */
.thanks { max-width: 720px; }
.thanks h1 { text-wrap: balance; }
.thanks .btn-row { justify-content: center; margin-top: 24px; }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; }
.cta-band.section { padding-block: 56px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .btn-light { color: var(--navy); }
.cta-band .btn-outline { color: #fff; }
.cta-band :focus-visible { outline-color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 253, 247, 0.82); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer img { height: 56px; width: auto; margin-bottom: 16px; }
.site-footer strong { color: var(--cream); }
.site-footer h4 { color: var(--cream); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color 0.15s ease; }
.site-footer p a { text-decoration: underline; text-decoration-color: rgba(255, 253, 247, 0.4); }
.site-footer a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: currentColor; }
.footer-base { border-top: 1px solid rgba(255, 253, 247, 0.12); margin-top: 44px; padding-top: 22px; font-size: 0.85rem; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding: 8px 0; }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

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