/* WhaleYou Learning stylesheet
   Design system follows the reference site: Inter for text, Gaegu for handwritten
   captions, dark indigo header and footer, cream section backgrounds, orange pill
   buttons that lift on hover, rounded 20px cards with soft shadows.
   Colours live in :root so the palette can be swapped in one place. */

/* Self-hosted fonts (Inter and Gaegu, SIL Open Font License). No third-party font requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Gaegu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gaegu-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gaegu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/gaegu-latin-700-normal.woff2") format("woff2"); }

:root {
  --indigo: #393855;        /* header, footer, dark sections */
  --indigo-dark: #11253E;   /* headings and body text */
  --indigo-mid: #434264;    /* captions, secondary text */
  --indigo-soft: #5A5976;   /* cards on dark backgrounds */
  --orange: #FF9A61;        /* primary action colour */
  --orange-hover: #FF813A;
  --grey: #69788C;
  --grey-light: #8895A5;
  --cream: #FCF5F0;
  --peri: #7389FF;          /* periwinkle accents */
  --peri-light: #EAEEFF;
  --green: #64C591;
  --green-light: #E0F3E9;
  --line: #D8D8D8;
  --hl-green: #D5FEAA;
  --hl-blue: #C2F0FF;
  --hl-purple: #EBE1FF;
  --hl-peach: #FFE1D0;
  --shadow-card: 0 0 39px -6px #E6E6E6;
  --shadow-lift: 0 20px 56px #E3E6EC;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Gaegu", "Comic Sans MS", cursive;
  --header-h: 80px;
  --container: 1200px;
  --header-container: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, summary, label, select { touch-action: manipulation; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--indigo-dark);
  background: #fff;
  padding-top: var(--header-h);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--peri); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; color: var(--indigo-dark); margin: 0 0 18px; }
h1 { font-size: 50px; line-height: 55px; letter-spacing: -0.5px; }
h2 { font-size: 34px; line-height: 44px; letter-spacing: 0.3px; }
h3 { font-size: 24px; line-height: 32px; margin-bottom: 10px; }
h4 { font-size: 18px; line-height: 26px; margin-bottom: 6px; }
p { margin: 0 0 18px; }
p.lead { font-size: 21px; line-height: 32px; color: var(--indigo-mid); }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
strong { font-weight: 700; }
.muted { color: var(--grey); }
.small { font-size: 15px; line-height: 22px; }
.center { text-align: center; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headline highlighter and hand-drawn underline */
.hl { padding: 0 10px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-blue { background: var(--hl-blue); }
.hl-green { background: var(--hl-green); }
.hl-purple { background: var(--hl-purple); }
.hl-peach { background: var(--hl-peach); }
.squiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 2, 75 13, 115 6 S 175 3, 197 9' fill='none' stroke='%23FF9A61' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 12px;
  background-position: 0 100%;
  padding-bottom: 8px;
}

/* Handwritten captions */
.hand { font-family: var(--hand); font-weight: 400; font-size: 26px; line-height: 1.35; color: var(--indigo-mid); }
.hand-peri { color: var(--peri); }
.hand-green { color: var(--green); }
.hand-orange { color: var(--orange-hover); }
.hand-tilt { display: inline-block; transform: rotate(-3deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 20px; border: 1px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 18px; line-height: 24px;
  cursor: pointer; text-decoration: none; transition: transform .2s ease-in, background-color .2s ease-in, color .2s ease-in;
}
.btn:hover { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-5px); } }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.btn-white { background: #fff; color: var(--indigo-dark); border-color: #212529; }
.btn-white:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--indigo); }
.btn-lg { padding: 18px 36px; font-size: 20px; }
.btn-sm { padding: 10px 18px; font-size: 15px; line-height: 20px; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn .arrow { width: 18px; height: 14px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: var(--indigo); color: #fff;
}
.site-header .bar {
  max-width: var(--header-container); margin: 0 auto; padding: 0 20px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin: 0 auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 12px 16px; color: #fff; font-weight: 500; font-size: 17px; letter-spacing: .5px;
  transition: color .3s, transform .3s; border-radius: 12px;
}
.nav a:hover, .nav a[aria-current="page"], .nav > ul > li > a.active { color: var(--orange); text-decoration: none; transform: translateY(-3px); }
.header-cta { flex: none; }
.nav .nav-cta { display: none; }
.nav-toggle {
  display: none; flex: none; background: transparent; border: 0; padding: 10px; cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .icon-open { display: none; }
.site-header.nav-open .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { background: #fff; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "h1 vis" "lead vis" "btns vis" "links vis"; column-gap: 40px; row-gap: 0; align-items: start; align-content: center; padding-top: 70px; padding-bottom: 60px; }
.hero h1 { grid-area: h1; } .hero .lead { grid-area: lead; } .hero .btn-row { grid-area: btns; } .hero-links { grid-area: links; } .hero-visual { grid-area: vis; align-self: center; }
.hero h1 { text-align: left; margin-bottom: 20px; }
.hero .btn-row { margin: 8px 0 34px; }
.hero-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.hero-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px; border-radius: var(--radius); color: var(--indigo-dark);
  transition: transform .5s ease; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .hero-links a:hover { transform: translateY(-5px); } }
.hero-links h3 { font-size: 17px; line-height: 22px; margin: 0; }
.hero-links p { margin: 2px 0 0; font-size: 14px; line-height: 18px; color: var(--indigo-mid); }
.hero-links .arrow { width: 20px; height: 15px; flex: none; }
.hero-visual { position: relative; min-height: 460px; }
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--cream); z-index: 0;
}
.hero-visual::before { width: 520px; height: 520px; right: -140px; top: -40px; opacity: .55; }
.hero-visual::after { width: 440px; height: 440px; right: -60px; top: 20px; }
.hero-visual .whale { position: relative; z-index: 1; width: 100%; max-width: 430px; margin: 30px 0 0 auto; }
.float-card {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-card); font-weight: 700; font-size: 16px; line-height: 20px; color: var(--indigo-dark);
}
.float-card small { display: block; font-weight: 400; color: var(--grey); font-size: 13px; line-height: 16px; margin-top: 2px; }
.float-card.one { left: 0; top: 60px; }
.float-card.two { right: 0; bottom: 30px; }
.hero-caption { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--indigo); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-dark .muted { color: #C9CBE0; }
.section-title { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.section-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; color: var(--indigo-mid); }
.section-title + .section-intro { margin-top: -26px; }

/* Page banner (inner pages) */
.banner { background: var(--cream); padding: 64px 0 56px; }
.banner h1 { text-align: left; max-width: 760px; }
.banner .lead { max-width: 680px; margin-bottom: 26px; }

/* Stats in circles */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats li { text-align: center; }
.stats .circle {
  width: 190px; max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 18px;
}
.stats .circle.peri { background: var(--peri-light); }
.stats .circle.green { background: var(--green-light); }
.stats .circle.purple { background: var(--hl-purple); }
.stats .circle strong { display: block; font-size: 42px; line-height: 46px; color: var(--orange); margin-bottom: 6px; }
.stats .circle span { font-size: 15px; line-height: 20px; color: var(--indigo-dark); }
.stats .hand { font-size: 21px; margin-top: 14px; }

/* Cards */
.card { background: #fff; border-radius: 25px; padding: 30px; box-shadow: var(--shadow-card); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Subject button grid (white rounded buttons) */
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 44px; }
.subject-grid a {
  display: flex; justify-content: center; align-items: center; min-height: 80px; padding: 16px;
  background: #fff; color: var(--indigo-dark); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  font-weight: 700; font-size: 19px; line-height: 26px; text-align: center; transition: .2s ease-in;
}
.subject-grid a:hover { background: var(--orange); color: #fff; text-decoration: none; transform: translateY(-5px); }
.subject-grid a.tall { min-height: 120px; flex-direction: column; gap: 4px; }
.subject-grid a small { font-weight: 400; font-size: 14px; line-height: 18px; opacity: .85; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps > li, .steps > div { background: #fff; border-radius: 25px; padding: 30px; box-shadow: var(--shadow-card); }
.num {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; margin-bottom: 18px;
}
.steps h3 { font-size: 22px; line-height: 30px; }
.steps p { margin: 0; color: var(--indigo-mid); font-size: 17px; line-height: 26px; }

/* Teacher cards */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teacher { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.teacher .photo {
  aspect-ratio: 1 / 1; background: var(--peri-light); display: flex; align-items: center; justify-content: center;
  color: var(--indigo-mid); font-family: var(--hand); font-size: 26px; text-align: center; padding: 20px;
}
.teacher .photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher .body { padding: 20px 22px 24px; }
.teacher h3 { font-size: 21px; line-height: 28px; margin-bottom: 4px; }
.teacher .role { color: var(--peri); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.teacher p { margin: 0; font-size: 16px; line-height: 24px; color: var(--indigo-mid); }

/* Reviews */
.reviews-card { background: #fff; border-radius: var(--radius); box-shadow: 9px 12px 32px #D2D2D2; padding: 36px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 20px; }
.review .stars { color: var(--orange); letter-spacing: 3px; font-size: 20px; margin-bottom: 10px; }
.review p { font-size: 17px; line-height: 26px; color: var(--indigo-mid); }
.review .who { font-weight: 700; color: var(--indigo-dark); margin: 0; font-size: 15px; }
.review .who span { font-weight: 400; color: var(--grey); }

/* Result cards on dark section */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.result { background: var(--indigo-soft); border-radius: var(--radius); padding: 28px; }
.result .tag { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; line-height: 18px; padding: 4px 12px; border-radius: 12px; margin-bottom: 14px; }
.result strong { display: block; font-size: 30px; line-height: 36px; margin-bottom: 8px; }
.result p { margin: 0; font-size: 16px; line-height: 24px; color: #DDDFF0; }

/* Location cards */
.locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.location { background: #fff; border-radius: 25px; padding: 32px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.location .pin { width: 44px; height: 44px; border-radius: 50%; background: var(--hl-peach); display: flex; align-items: center; justify-content: center; color: var(--orange-hover); margin-bottom: 6px; }
.location .pin svg { width: 22px; height: 22px; }
.location address { font-style: normal; color: var(--indigo-mid); line-height: 28px; margin: 0; }
.location .btn { align-self: flex-start; margin-top: 10px; }

/* Fee cards */
.fees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fee { background: #fff; border-radius: 25px; padding: 32px 26px; box-shadow: var(--shadow-card); text-align: center; }
.fee.trial { background: var(--indigo); color: #fff; }
.fee.trial h3, .fee.trial p { color: #fff; }
.fee h3 { font-size: 20px; line-height: 28px; margin-bottom: 8px; }
.fee .price { font-size: 44px; line-height: 50px; font-weight: 700; color: var(--orange); margin: 6px 0 2px; }
.fee .per { color: var(--grey); font-size: 15px; margin-bottom: 18px; }
.fee.trial .per { color: #C9CBE0; }
.fee p { font-size: 16px; line-height: 24px; color: var(--indigo-mid); margin: 0; }

/* Programme blocks */
.programme { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.programme:first-of-type { border-top: 0; }
.programme .badge { display: inline-block; padding: 6px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 18px; margin-bottom: 14px; color: var(--indigo-dark); }
.programme ul { padding-left: 0; list-style: none; margin: 18px 0 24px; }
.programme li { position: relative; padding-left: 34px; margin-bottom: 10px; color: var(--indigo-mid); }
.programme li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2364C591' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
.programme .panel { border-radius: 25px; padding: 34px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
.programme .panel .hand { font-size: 30px; margin-bottom: 8px; }
.programme .panel p { margin: 0; color: var(--indigo-mid); }
.programme:nth-of-type(even) .text { order: 2; }

/* Level guide */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.levels li { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); }
.levels strong { display: block; font-size: 22px; margin-bottom: 6px; }
.levels p { margin: 0; font-size: 16px; line-height: 24px; color: var(--indigo-mid); }

/* Referral band */
.referral { text-align: center; }
.referral .hand { font-size: 32px; margin: 10px 0 20px; }

/* Big CTA */
.cta-band { background: var(--cream); padding: 72px 0; text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 640px; margin: 0 auto 28px; color: var(--indigo-mid); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; color: var(--indigo-dark); padding: 0; }
.form-card { background: #fff; border-radius: 25px; padding: 36px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; color: var(--indigo-dark); }
input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="month"], input[type="password"], select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px;
  color: var(--indigo-dark); background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--peri); box-shadow: 0 0 0 3px var(--peri-light); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.checks input { width: 18px; height: 18px; accent-color: var(--orange); }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side .card { padding: 26px; }
.contact-side h3 { font-size: 20px; line-height: 28px; }
.contact-side p { margin: 0 0 8px; color: var(--indigo-mid); font-size: 16px; line-height: 24px; }
.contact-side p:last-child { margin-bottom: 0; }

/* Map placeholder */
.map-placeholder {
  border-radius: var(--radius); background: var(--peri-light); min-height: 260px; display: flex; align-items: center; justify-content: center;
  color: var(--indigo-mid); font-family: var(--hand); font-size: 24px; text-align: center; padding: 20px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: #fff; padding: 70px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 18px; line-height: 26px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--grey-light); transition: color .2s; }
.site-footer a:hover { color: var(--orange); text-decoration: none; }
.site-footer p { color: #C9CBE0; font-size: 16px; line-height: 26px; }
.site-footer address { font-style: normal; color: #fff; line-height: 28px; margin: 0 0 8px; }
.site-footer .brand img { height: 40px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--grey-light); }
.footer-bottom p { margin: 0; color: var(--grey-light); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  h1 { font-size: 44px; line-height: 50px; }
  .hero .container { grid-template-columns: 1fr 1fr; }
  .hero-visual { align-self: center; }
  .hero-visual { min-height: 400px; }
  .hero-visual::before { width: 440px; height: 440px; }
  .hero-visual::after { width: 360px; height: 360px; }
  .subject-grid, .fees, .levels { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--indigo);
    padding: 10px 20px 24px; margin: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
  }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.nav-open .nav { display: block; }
  .nav a { padding: 14px 10px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav a:hover, .nav a[aria-current="page"] { transform: none; }
  .nav a.nav-cta { display: flex; justify-content: center; margin-top: 16px; padding: 14px 20px; background: var(--orange); color: #fff; font-weight: 700; border-radius: 32px; border-bottom: 0; }
  .nav a.nav-cta:hover { color: #fff; background: var(--orange-hover); }
  .hero .container { grid-template-columns: 1fr; grid-template-areas: "h1" "lead" "btns" "vis" "links"; padding-top: 40px; }
  .hero-visual { min-height: 340px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-visual::before { width: 380px; height: 380px; right: 0; top: -10px; }
  .hero-visual::after { width: 320px; height: 320px; right: 30px; top: 20px; }
  .hero-visual .whale { max-width: 340px; margin: 20px auto 0; }
  .grid-3, .grid-2, .steps, .teachers, .reviews, .results, .locations, .programme, .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .programme { gap: 28px; padding: 40px 0; }
  .programme:nth-of-type(even) .text { order: 0; }
  .programme .panel { min-height: 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 36px; line-height: 42px; }
  h2 { font-size: 28px; line-height: 36px; }
  h3 { font-size: 22px; line-height: 30px; }
  p.lead { font-size: 18px; line-height: 28px; }
  .btn { width: 100%; border-radius: 32px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .circle { width: 150px; }
  .stats .circle strong { font-size: 32px; line-height: 36px; }
  .subject-grid, .fees, .levels, .footer-grid { grid-template-columns: 1fr; }
  .reviews-card, .form-card, .card, .steps li, .location, .fee { padding: 24px; }
  .float-card.one { top: 10px; }
  .float-card.two { bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a, .hero-links a, .subject-grid a, .site-footer a { transition: none; }
  .btn:hover, .nav a:hover, .hero-links a:hover, .subject-grid a:hover { transform: none; }
}

/* ---------- SEO build additions ---------- */

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { left: 16px; }

/* Dropdown navigation */
.nav .has-sub { position: relative; }
.nav .has-sub > a { display: flex; align-items: center; gap: 6px; }
.nav .has-sub > a svg { width: 12px; height: 12px; transition: transform .3s; }
.nav .sub { display: none; list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 16px; box-shadow: 0 20px 56px rgba(17,37,62,.22); z-index: 120; }
.nav .sub a { color: var(--indigo-dark); font-size: 16px; padding: 10px 14px; border-radius: 10px; letter-spacing: 0; }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: var(--cream); color: var(--indigo-dark); transform: none; }
@media (min-width: 901px) {
  .nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: block; }
  .nav .has-sub:hover > a svg { transform: rotate(180deg); }
}
@media (max-width: 900px) {
  .nav .has-sub > a svg { margin-left: auto; }
  .nav .sub { position: static; box-shadow: none; background: rgba(255,255,255,.06); border-radius: 12px; margin: 0 0 6px; }
  .nav .sub a { color: #fff; border-bottom: 0; padding: 12px 16px; font-size: 16px; }
  .nav .sub a:hover, .nav .sub a[aria-current="page"] { background: rgba(255,255,255,.1); color: var(--orange); }
  .nav .has-sub.open > .sub { display: block; }
  .nav .has-sub.open > a svg { transform: rotate(180deg); }
}

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--grey); margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--orange); }

/* Answer-first block, updated line, author line */
.answer { font-size: 20px; line-height: 32px; color: var(--indigo-dark); max-width: 760px; }
.updated { font-size: 14px; color: var(--grey); margin: 0 0 8px; }
.byline { font-size: 15px; color: var(--indigo-mid); margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-card); background: #fff; }
table.facts, table.compare, table.timetable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
table.facts th, table.facts td, table.compare th, table.compare td, table.timetable th, table.timetable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #EEF0F4; vertical-align: top; }
table.facts th { width: 34%; color: var(--indigo-mid); font-weight: 500; background: #FBFBFD; }
table.compare thead th, table.timetable thead th { background: var(--indigo); color: #fff; font-weight: 700; }
table.compare tbody th { font-weight: 700; color: var(--indigo-dark); background: #FBFBFD; }
table tr:last-child td, table tr:last-child th { border-bottom: 0; }
table .yes { color: var(--green); font-weight: 700; }
table .hi { background: #FFF6EF; }

/* FAQ (native details, crawlable) */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details { background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); margin-bottom: 14px; padding: 0 24px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; line-height: 26px; color: var(--indigo-dark); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 2px; top: 24px; width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FF9A61' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list .a { padding: 0 0 22px; color: var(--indigo-mid); font-size: 17px; line-height: 27px; }
.faq-list .a p { margin: 0 0 10px; }
.faq-list .a p:last-child { margin: 0; }
.faq-group { margin: 40px 0 0; }
.faq-group h2 { text-align: center; font-size: 26px; line-height: 34px; margin-bottom: 20px; }

/* Chips for neighbourhoods and schools */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; color: var(--indigo-dark); }
.section-cream .chips li { border-color: #EFE4DB; }

/* (the floating WhatsApp pill was replaced by the sticky action bar, see the Mobile layer at the end) */

/* Centre cards on home */
.centre-card h3 a { color: var(--indigo-dark); }
.centre-card .meta { font-size: 15px; color: var(--grey); margin: 0; }

/* Subject cards on home */
.subject-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.subject-cards a { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 26px 24px; color: var(--indigo-dark); transition: .2s ease-in; }
.subject-cards a:hover { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .subject-cards a:hover { transform: translateY(-5px); } }
.subject-cards h3 { font-size: 21px; line-height: 28px; margin-bottom: 8px; }
.subject-cards p { margin: 0; font-size: 15px; line-height: 23px; color: var(--indigo-mid); }
.subject-cards .stripe { height: 8px; border-radius: 6px; margin-bottom: 18px; }
@media (max-width: 1100px) { .subject-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .subject-cards { grid-template-columns: 1fr; } }

/* Level bands on subject pages */
.levels-table td strong { display: block; }

/* Timetable empty state */
.empty { background: var(--peri-light); border-radius: var(--radius); padding: 28px; color: var(--indigo-mid); text-align: center; }

/* 404 */
.notfound { text-align: center; padding: 100px 0; }
.notfound .hand { font-size: 34px; }

/* Print: hide chrome */
@media print { .site-header, .site-footer, .wa-float, .cta-band { display: none; } body { padding-top: 0; } }

/* ---------- Weekly calendar ---------- */
.wy-cal { margin-top: 24px; position: relative; }
.wy-cal-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.wy-cal-filters select { width: auto; min-width: 150px; padding: 10px 14px; border-radius: 12px; }
.wy-cal-note { font-size: 14px; color: var(--grey); margin-left: auto; }

/* Prominent "tap any class" instruction */
.wy-cal-hint { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 20px; background: linear-gradient(90deg, #FFF1E6, #FFF7F1); border: 1.5px solid var(--orange); border-radius: 16px; color: var(--indigo-dark); font-size: 17px; line-height: 24px; box-shadow: 0 6px 18px rgba(255,154,97,.18); }
.wy-cal-hint strong { color: var(--orange-hover); font-weight: 700; }
.wy-cal-hint-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 4px 10px rgba(255,154,97,.4); animation: wy-tap 2.4s ease-in-out infinite; }
@keyframes wy-tap { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } 90% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wy-cal-hint-ico { animation: none; } }
@media (max-width: 600px) { .wy-cal-hint { font-size: 15px; line-height: 22px; padding: 14px 16px; gap: 12px; } .wy-cal-hint-ico { width: 34px; height: 34px; } }

/* Hover tooltip */
.wy-cal-tip { position: absolute; z-index: 30; width: 260px; max-width: 82vw; pointer-events: none; background: #fff; color: var(--indigo-dark); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 34px rgba(17,37,62,.22); border: 1px solid var(--line); opacity: 0; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease; display: flex; flex-direction: column; gap: 4px; }
.wy-cal-tip.show { opacity: 1; transform: translateY(0); }
.wy-cal-tip[data-pos="below"] { transform: translateY(-4px); }
.wy-cal-tip[data-pos="below"].show { transform: translateY(0); }
.wy-cal-tip::after { content: ""; position: absolute; left: var(--arrow, 50%); transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; border: 1px solid var(--line); }
.wy-cal-tip[data-pos="above"]::after { bottom: -7px; border-top: 0; border-left: 0; }
.wy-cal-tip[data-pos="below"]::after { top: -7px; border-bottom: 0; border-right: 0; }
.wy-tip-title { font-size: 17px; line-height: 22px; margin-bottom: 2px; }
.wy-tip-row { font-size: 14px; line-height: 19px; color: var(--indigo-mid); }
.wy-tip-row b { color: var(--indigo-dark); }
.wy-tip-teacher { color: var(--grey); }
.wy-tip-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.wy-tip-seats { font-weight: 700; font-size: 14px; color: var(--green); }
.wy-tip-seats.full { color: var(--orange-hover); }
.wy-tip-price { font-weight: 700; font-size: 14px; color: var(--indigo-dark); }
.wy-tip-cta { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--orange-hover); }
.wy-cal-grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 12px 12px 12px 4px; position: relative; overflow: hidden; }
.wy-cal-corner { grid-column: 1; grid-row: 1; }
.wy-cal-day { text-align: center; font-weight: 700; font-size: 14px; color: var(--indigo-dark); padding: 6px 0 10px; border-bottom: 2px solid var(--line); }
.wy-cal-time { font-size: 12px; color: var(--grey); text-align: right; padding-right: 8px; transform: translateY(-8px); }
.wy-cal-cell { border-top: 1px solid #F3F4F8; border-left: 1px solid #F3F4F8; }
.wy-cal-cell.hour { border-top-color: #E6E8EF; }
.wy-cal-block { display: flex; flex-direction: column; gap: 1px; margin: 2px; padding: 6px 8px; border-radius: 10px; color: var(--indigo-dark); font-size: 12px; line-height: 15px; text-decoration: none; overflow: hidden; z-index: 1; border: 1px solid rgba(17,37,62,.08); transition: transform .2s ease-in, box-shadow .2s ease-in; }
.wy-cal-block:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-card); z-index: 2; }
.wy-cal-block strong { font-size: 13px; line-height: 16px; }
.wy-cal-block em { font-style: normal; font-weight: 700; color: var(--green); margin-top: auto; }
.wy-cal-block em.full { color: var(--orange-hover); }
.wy-cal-block.narrow { font-size: 11px; line-height: 13px; padding: 5px 6px; }
.wy-cal-block.narrow strong { font-size: 12px; line-height: 14px; }
.wy-cal-list { display: none; }
.wy-cal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wy-cal-tabs button { flex: 1; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--indigo-dark); cursor: pointer; }
.wy-cal-tabs button[aria-selected="true"] { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.wy-cal-list .wy-cal-block { font-size: 15px; line-height: 20px; padding: 14px 16px; margin: 0 0 10px; }
.wy-cal-list .wy-cal-block strong { font-size: 17px; line-height: 22px; }
@media (max-width: 900px) { .wy-cal-grid { display: none !important; } .wy-cal-list { display: block; } .wy-cal-note { margin-left: 0; width: 100%; } }

/* ---------- Registration widget ---------- */
.wy-register { background: #fff; border-radius: 25px; box-shadow: var(--shadow-card); padding: 30px; }
.wy-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.wy-tabs button { padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 15px; color: var(--indigo-dark); cursor: pointer; }
.wy-tabs button[aria-selected="true"] { background: var(--orange); color: #fff; border-color: var(--orange); }
.wy-step { padding: 18px 0; border-top: 1px solid var(--line); }
.wy-step h3 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.wy-slots, .wy-months { display: grid; gap: 10px; }
.wy-slots { grid-template-columns: repeat(2, 1fr); }
.wy-slot, .wy-month { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; font-size: 15px; line-height: 22px; margin: 0; }
.wy-slot:has(input:checked), .wy-month:has(input:checked) { border-color: var(--orange); background: #FFF6EF; }
.wy-slot input, .wy-month input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.wy-slot.full, .wy-month.full { opacity: .6; }
.wy-month span { flex: 1; }
.wy-month b { flex: none; font-size: 17px; }
.wy-summary { margin-top: 14px; padding: 14px 18px; background: var(--cream); border-radius: 14px; }
.wy-summary p { margin: 0 0 4px; }
.wy-msg { padding: 12px 16px; border-radius: 12px; margin-top: 14px; font-size: 15px; background: var(--peri-light); color: var(--indigo-dark); }
.wy-msg.warn { background: #FFE1D0; }
.wy-msg.ok { background: var(--green-light); }
@media (max-width: 700px) { .wy-slots { grid-template-columns: 1fr; } .wy-register { padding: 22px; } }

/* ---------- Admin portal ---------- */
.admin-body { background: #F7F8FB; }
.admin-badge { background: var(--orange); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin-left: 12px; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--header-h)); }
.admin-nav { background: #fff; border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 10px 14px; border-radius: 12px; color: var(--indigo-dark); font-weight: 500; font-size: 15px; }
.admin-nav a:hover { background: var(--cream); text-decoration: none; }
.admin-nav a[aria-current="page"] { background: var(--indigo); color: #fff; }
.admin-main { padding: 28px 32px 60px; max-width: 1280px; }
.admin-main h1 { font-size: 30px; line-height: 38px; text-align: left; margin-bottom: 18px; }
.admin-main h3 { font-size: 18px; line-height: 26px; }
.admin-form { margin: 14px 0 20px; }
.admin-table { font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; }
.admin-table tr.inactive td { color: var(--grey); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; padding: 9px 12px; }
.small-select { padding: 6px 8px; font-size: 14px; border-radius: 8px; width: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.stat strong { font-size: 30px; line-height: 36px; color: var(--indigo-dark); }
.stat span { font-size: 14px; color: var(--indigo-dark); font-weight: 500; }
.stat small { font-size: 12px; color: var(--grey); }
label.inline { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
label.inline input { width: 18px; height: 18px; accent-color: var(--orange); }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .admin-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); } .stat-grid { grid-template-columns: repeat(2, 1fr); } .admin-main { padding: 20px 16px 60px; } }

/* ---------- Portals (shared by admin, teacher, parent) ---------- */
.who { font-size: 13px; color: var(--grey); margin-left: 12px; }
@media (max-width: 600px) { .who { display: none; } }
.pcard { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-card); margin-bottom: 18px; }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pcard-head h3 { margin: 0; }
.pcard .table-wrap { box-shadow: none; border: 1px solid var(--line); }
.pcard .admin-form { margin-top: 10px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; line-height: 18px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill-green { background: var(--green-light); color: #1B5E3A; }
.pill-amber { background: #FFF1D6; color: #8A5A00; }
.pill-red { background: #FFE1D0; color: #9A2A00; }
.pill-blue { background: var(--peri-light); color: var(--indigo-dark); }
.pill-grey { background: #EEF0F4; color: #5B6070; }
.tabbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tab { background: transparent; border: 0; padding: 8px 14px; border-radius: 12px; font: inherit; font-weight: 600; color: var(--indigo-dark); cursor: pointer; }
.tab.on { background: var(--indigo); color: #fff; }
.action-link { font-weight: 600; white-space: nowrap; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.small-input { width: 100px; padding: 6px 8px; font-size: 14px; }
.plain-list { padding-left: 20px; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.hint { display: block; font-size: 12px; color: var(--grey); margin-top: 4px; }
.months-box label.inline { margin-top: 6px; }
.att-present { background: var(--green-light); text-align: center; font-weight: 700; }
.att-absent { background: #FFE1D0; text-align: center; font-weight: 700; }
/* month calendar */
.cal-title { min-width: 170px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow-card); }
.cal-head { font-size: 12px; font-weight: 700; color: var(--grey); text-align: center; padding: 4px 0; }
.cal-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.cal-cell.empty { border-color: transparent; }
.cal-cell.today { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.cal-cell.closed { background: #FFF6F0; }
.cal-day { font-size: 12px; font-weight: 700; color: var(--indigo-dark); }
.cal-closed { font-size: 11px; color: #9A2A00; }
.chip { display: block; width: 100%; text-align: left; font: inherit; font-size: 11px; line-height: 16px; padding: 2px 6px; border-radius: 6px; border: 0; cursor: pointer; background: var(--peri-light); color: var(--indigo-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.alt { background: #EFE8FF; }
.chip.extra { outline: 1px dashed var(--indigo); }
.chip.cancelled { text-decoration: line-through; opacity: .55; }
/* mobile portals (teacher, parent) */
.portal-body { background: #F7F8FB; }
.portal-main { max-width: 720px; margin: 0 auto; padding: 18px 16px 96px; }
.portal-main h1 { font-size: 26px; line-height: 32px; text-align: left; margin: 0 0 14px; }
.portal-main h2 { font-size: 20px; line-height: 26px; text-align: left; margin: 0 0 10px; }
.pnav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
.pnav a { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--grey); padding: 6px 2px; border-radius: 10px; }
.pnav a[aria-current="page"] { color: var(--indigo); background: var(--cream); }
.pnav a:hover { text-decoration: none; }
.viewas { background: #FFF1D6; color: #8A5A00; font-size: 13px; padding: 8px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.viewas select { width: auto; padding: 4px 8px; font-size: 13px; border-radius: 8px; }
.next-card { background: var(--indigo); color: #fff; border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.next-card h2 { color: #fff; }
.next-card .big { font-size: 22px; font-weight: 700; line-height: 28px; }
.next-card .muted { color: rgba(255,255,255,.75); }
.six { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.six a { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-card); font-weight: 700; color: var(--indigo-dark); display: flex; flex-direction: column; gap: 4px; }
.six a small { font-weight: 500; color: var(--grey); }
.six a:hover { text-decoration: none; background: var(--cream); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row .l strong { font-size: 15px; }
.list-row .l span { font-size: 13px; color: var(--grey); }
.list-row .r { flex: none; display: flex; gap: 6px; align-items: center; }
.att-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.att-toggle button { border: 0; background: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; cursor: pointer; color: var(--grey); }
.att-toggle button.p.on { background: var(--green-light); color: #1B5E3A; }
.att-toggle button.a.on { background: #FFE1D0; color: #9A2A00; }
.child-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.child-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.child-tabs button.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.quote-box { background: var(--cream); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.portal-main .form-grid { grid-template-columns: 1fr; }
.sticky-save { position: sticky; bottom: 70px; background: #fff; padding: 10px; border-radius: 14px; box-shadow: var(--shadow-card); margin-top: 12px; }
@media (max-width: 700px) { .cal-title { min-width: 0; } .admin-main .toolbar input[type="search"] { width: 100%; } }

/* ---------- Site photos ---------- */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.hero-photo { display: block; width: 100%; max-width: 460px; margin: 20px 0 0 auto; border-radius: 28px; box-shadow: var(--shadow-card); position: relative; z-index: 1; }
.subject-cards a .subject-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.centre-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 4px; }
.col-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-card); }
.col-photo + .col-photo { margin-top: 16px; }
figure.photo-band { margin: 28px 0 0; }
figure.photo-band .photo { border-radius: 22px; box-shadow: var(--shadow-card); aspect-ratio: 16 / 9; object-fit: cover; }
figure.photo-band figcaption { font-size: 14px; color: var(--grey); margin-top: 10px; }
figure.photo-band-dark { max-width: 920px; margin-left: auto; margin-right: auto; }
figure.photo-band-dark figcaption { color: #C7C9E0; text-align: center; }
@media (max-width: 760px) { .hero-photo { max-width: 420px; margin: 16px auto 0; } figure.photo-band .photo { aspect-ratio: 16 / 10; } }

/* =====================================================================
   MOBILE LAYER. Phones are the primary target for this site: most parents
   arrive from WhatsApp or Google on a phone. Everything below tightens the
   layout for small screens, keeps every control at least 44px, keeps text
   readable, and never lets anything cover a button or a form field.
   ===================================================================== */

/* --- Tap targets (all widths): breadcrumbs, footer lists and table action links get a 40px+ hit area
       without changing how they look --- */
.crumbs a { display: inline-block; padding: 10px 4px; margin: -10px -4px; border-radius: 8px; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-block; padding: 9px 0; }
.footer-bottom a { display: inline-block; padding: 8px 0; }
.action-link { display: inline-block; padding: 10px 6px; margin: -10px -6px; border-radius: 8px; }
.tab { padding: 10px 14px; min-height: 40px; }
.wy-tabs button, .wy-cal-tabs button { min-height: 44px; }
.wy-slot input, .wy-month input { width: 22px; height: 22px; margin-top: 2px; }
.wy-code-row { display: flex; gap: 10px; }
.wy-code-row input { flex: 1; min-width: 0; }
.wy-code-row .btn { flex: none; width: auto; min-height: 48px; }
.wy-cal-filters select { min-height: 44px; }
.pnav a { padding: 8px 2px; min-height: 50px; display: flex; flex-direction: column; justify-content: center; }
.viewas select, .small-select, .toolbar input, .toolbar select { font-size: 16px; min-height: 42px; padding: 8px 10px; }
.att-toggle button { padding: 12px 16px; font-size: 14px; min-height: 44px; }
.child-tabs button { padding: 10px 16px; min-height: 42px; }
.list-row .btn, .r .btn { width: auto; }
.nav a.nav-cta { min-height: 52px; }

/* --- Sticky action bar on phones and tablets: the page's main action plus WhatsApp --- */
.m-bar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.portal-body, body.admin-body { padding-bottom: 0; }
  .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(17,37,62,.10); }
  .m-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 14px; border-radius: 16px; font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none; color: #fff; }
  .m-bar a:hover { text-decoration: none; color: #fff; }
  .m-bar .m-primary { background: var(--orange); flex: 1.35; }
  .m-bar .m-wa { background: #25D366; }
  .m-bar svg { width: 20px; height: 20px; flex: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .m-bar { display: none; }
  .nav { overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .cta-band { padding-bottom: 48px; }
}

/* --- Tables on small screens: fact tables stack; wide tables scroll with edge shadows and a sticky first column --- */
.table-wrap { position: relative; }
@media (max-width: 900px) {
  table.compare, table.timetable { min-width: 560px; }
  .table-wrap {
    background:
      linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)),
      linear-gradient(90deg, rgba(255,255,255,0), #fff 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(17,37,62,.16), rgba(17,37,62,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(17,37,62,.16), rgba(17,37,62,0)) 100% 0;
    background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll;
  }
  table.compare tbody th[scope="row"], table.timetable td:first-child { position: sticky; left: 0; z-index: 1; background: #FBFBFD; box-shadow: 1px 0 0 #EEF0F4; }
  table.compare tr.hi th[scope="row"] { background: #FFF6EF; }
  table.compare thead th:first-child, table.timetable thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--indigo); }
}
@media (max-width: 600px) {
  table.facts th, table.facts td { display: block; width: 100%; }
  table.facts th { padding: 12px 16px 2px; border-bottom: 0; background: transparent; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--grey); }
  table.facts td { padding: 0 16px 12px; }
  table.facts tr:last-child td { border-bottom: 0; }
  table.compare th, table.compare td, table.timetable th, table.timetable td { padding: 12px 14px; font-size: 15px; line-height: 22px; }
}

/* --- Header, type, spacing and cards on phones --- */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .nav-toggle { padding: 12px; margin-right: -6px; }
  .nav-toggle svg { width: 30px; height: 30px; }
  body { font-size: 17px; line-height: 1.6; }
  h1 { font-size: clamp(29px, 8vw, 36px); line-height: 1.16; letter-spacing: -.3px; }
  h2 { font-size: clamp(24px, 6.6vw, 28px); line-height: 1.25; margin-bottom: 14px; }
  h3 { font-size: 20px; line-height: 27px; }
  p.lead, .answer { font-size: 18px; line-height: 28px; }
  .hand { font-size: 22px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .banner { padding: 26px 0 30px; }
  .banner .btn-row { margin-top: 4px; }
  .section-title { margin-bottom: 20px; }
  .section-intro { margin-bottom: 26px; }
  .section-title + .section-intro { margin-top: -8px; }
  .updated { margin-bottom: 6px; }
  .card, .steps > li, .steps > div, .location, .fee, .reviews-card, .form-card, .wy-register, .result, .contact-side .card { padding: 20px 18px; }
  .teacher .body { padding: 16px 18px 20px; }
  .btn { min-height: 52px; padding: 13px 22px; font-size: 17px; border-radius: 18px; }
  .btn-lg { min-height: 56px; padding: 15px 24px; font-size: 18px; }
  .btn-sm { min-height: 44px; width: auto; border-radius: 14px; }
  .btn-row { gap: 12px; }
  .grid-2, .grid-3, .steps, .teachers, .reviews, .locations, .fees, .levels, .subject-cards { gap: 14px; }
  /* hero: headline, lead, one clear action, the photo, then the four subject links */
  .hero .container { padding-top: 22px; padding-bottom: 26px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { margin-bottom: 16px; }
  .hero .btn-row { margin: 0 0 6px; }
  .hero-visual { min-height: 0; max-width: none; margin: 14px 0 0; }
  .hero-visual::before, .hero-visual::after { display: none; }
  .hero-photo { max-width: none; margin: 0; border-radius: 20px; }
  .float-card { font-size: 14px; line-height: 18px; padding: 10px 14px; border-radius: 12px; }
  .float-card small { font-size: 12px; }
  .float-card.one { left: 10px; top: 10px; }
  .float-card.two { right: 10px; bottom: 10px; }
  .hero-links { margin-top: 18px; gap: 10px; }
  .hero-links a { padding: 14px; min-height: 62px; }
  .hero-links h3 { font-size: 16px; line-height: 20px; }
  /* stats, cards, lists */
  .stats { gap: 16px 12px; }
  .stats .circle { width: 100%; max-width: 156px; padding: 14px; }
  .stats .circle strong { font-size: 30px; line-height: 34px; margin-bottom: 2px; }
  .stats .circle span { font-size: 13px; line-height: 17px; }
  .stats .hand { font-size: 18px; margin-top: 8px; }
  .subject-cards a { padding: 16px 16px 18px; }
  .subject-cards a .subject-photo { margin-bottom: 12px; }
  .subject-cards .stripe { margin-bottom: 12px; }
  .location { gap: 8px; }
  .location .btn-row { margin-top: 4px; }
  .steps h3 { font-size: 19px; line-height: 26px; }
  .steps p, .fee p, .teacher p, .review p { font-size: 16px; line-height: 25px; }
  .fee .price { font-size: 38px; line-height: 44px; }
  .faq-list details { padding: 0 16px; border-radius: 14px; margin-bottom: 10px; }
  .faq-list summary { font-size: 16px; line-height: 23px; padding: 15px 30px 15px 0; }
  .faq-list summary::after { top: 18px; width: 16px; height: 16px; }
  .faq-list .a { font-size: 16px; line-height: 25px; padding-bottom: 18px; }
  .faq-group h2 { font-size: 22px; line-height: 30px; }
  .chips li { padding: 9px 13px; font-size: 14px; }
  .crumbs { font-size: 13px; margin-bottom: 12px; }
  .byline { font-size: 14px; margin-top: 18px; }
  .cta-band { padding: 40px 0 48px; }
  .cta-band p { margin-bottom: 20px; }
  .empty { padding: 20px; }
  /* photos */
  figure.photo-band { margin-top: 18px; }
  figure.photo-band .photo { border-radius: 16px; }
  figure.photo-band figcaption { font-size: 13px; margin-top: 8px; }
  .subject-cards a .subject-photo, .centre-photo, .col-photo { border-radius: 14px; }
  .col-photo + .col-photo { margin-top: 12px; }
  /* calendar widget and registration widget */
  .wy-cal-filters { gap: 8px; }
  .wy-cal-filters select { flex: 1 1 140px; min-width: 0; }
  .wy-cal-list .wy-cal-block { padding: 14px 14px; min-height: 60px; }
  .wy-cal-tabs { gap: 5px; }
  .wy-cal-tabs button { padding: 10px 2px; font-size: 13px; }
  .wy-step { padding: 16px 0; }
  .wy-step h3 { font-size: 18px; line-height: 26px; }
  .wy-slot, .wy-month { padding: 13px 14px; font-size: 15px; }
  .wy-summary { padding: 12px 14px; }
  .wy-tabs button { flex: 1; padding: 12px 10px; }
  /* footer */
  .site-footer { padding: 40px 0 22px; }
  .footer-grid { gap: 22px; padding-bottom: 20px; }
  .footer-bottom { font-size: 13px; gap: 6px 16px; }
  .site-footer .brand img { height: 36px; margin-bottom: 10px; }
}
@media (max-width: 380px) {
  .hero-links { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .float-card.two { display: none; }
  h1 { font-size: 27px; }
}

/* --- Admin portal on phones: scrolling section strip, no sideways overflow, compact stats, agenda calendar --- */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .admin-nav { align-items: center; }
  .admin-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px 12px; gap: 4px; position: sticky; top: var(--header-h); z-index: 20; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { white-space: nowrap; min-height: 42px; display: inline-flex; align-items: center; padding: 8px 14px; flex: none; }
  .admin-main { padding: 16px 14px 60px; max-width: 100%; min-width: 0; }
  .admin-main > * { min-width: 0; }
  .admin-main .btn { width: auto; }
  .admin-main .btn-row, .admin-main .toolbar { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .admin-main .toolbar .btn-sm { flex: 0 1 auto; }
  .admin-main .toolbar input, .admin-main .toolbar select { flex: 1 1 160px; min-width: 0; width: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 24px; line-height: 30px; }
  .stat span { font-size: 13px; }
  .admin-table { min-width: 620px; }
  .admin-main .pcard { padding: 14px; border-radius: 14px; }
  .admin-main h1 { font-size: 24px; line-height: 30px; margin-bottom: 12px; }
  .admin-main h3 { font-size: 17px; line-height: 24px; }
  .admin-main .form-grid { grid-template-columns: 1fr; }
  .cal-title { flex: 1 1 100%; text-align: left; order: -1; font-size: 18px; }
}
@media (max-width: 600px) {
  .admin-body .site-header .bar > .btn { display: none; }
  .admin-badge { margin-left: 8px; }
}
/* agenda (phone calendar) */
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-day { background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); padding: 10px 12px 6px; }
.agenda-day.today { box-shadow: inset 0 0 0 2px var(--orange), var(--shadow-card); }
.agenda-date { font-weight: 700; font-size: 14px; color: var(--indigo-dark); padding: 2px 4px 8px; }
.agenda-closed { font-size: 13px; color: #9A2A00; background: #FFF6F0; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.agenda-row { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "time title" "time meta"; column-gap: 10px; align-items: center; width: 100%; min-height: 52px; padding: 8px 10px; margin-bottom: 6px; border: 0; border-radius: 10px; background: var(--peri-light); color: var(--indigo-dark); font: inherit; text-align: left; cursor: pointer; }
.agenda-row.alt { background: #EFE8FF; }
.agenda-row.extra { outline: 1px dashed var(--indigo); }
.agenda-row.cancelled { opacity: .6; }
.agenda-row.cancelled .agenda-title { text-decoration: line-through; }
.agenda-time { grid-area: time; font-weight: 700; font-size: 15px; }
.agenda-title { grid-area: title; font-weight: 700; font-size: 15px; line-height: 20px; }
.agenda-meta { grid-area: meta; font-size: 13px; color: var(--grey); line-height: 17px; }

/* Choice chips for checkbox and radio groups in forms (44px tap targets, clear selected state) */
.checks { gap: 8px; }
.checks label { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; line-height: 20px; }
.checks label:has(input:checked) { border-color: var(--orange); background: #FFF6EF; }
.checks input { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) { .checks label { flex: 1 1 calc(50% - 8px); } .checks label.wide { flex-basis: 100%; } }
@media (max-width: 600px) { .checks label:has(input[type="radio"]) { flex-basis: 100%; } }
@media (max-width: 380px) { .pnav { padding-left: 0; padding-right: 0; } .pnav a { padding-left: 0; padding-right: 0; letter-spacing: -.2px; } }

/* ---------- Launch update: danger actions, profile layout, avatars, credit ledger ---------- */
.btn-danger { background: #fff; color: #B42318; border: 2px solid #F2C4BD; }
.btn-danger:hover { background: #FFF1EF; color: #9A2A00; text-decoration: none; }
.action-link.danger { color: #B42318; }
.action-link.danger:hover { color: #9A2A00; }
.btn-cluster { display: inline-flex; flex-wrap: wrap; gap: 6px; }
td.actions { white-space: nowrap; }
.profile-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.profile-name { margin: 0; font-size: 24px; line-height: 30px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin-bottom: 14px; }
.info-item { min-width: 0; }
.info-label { display: block; font-size: 13px; font-weight: 700; color: var(--grey); margin-bottom: 3px; }
.info-value { font-size: 15px; line-height: 22px; word-break: break-word; }
.guardian + .guardian { margin-top: 8px; }
.fixed-student { padding: 10px 14px; background: var(--cream); border-radius: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 6px; }
td.pos { color: #1B5E3A; font-weight: 700; } td.neg { color: #9A2A00; font-weight: 700; }
.loading { padding: 6px 0; }
.admin-form .checks label { font-size: 14px; }
.months-box .checks label { flex: 1 1 calc(50% - 8px); }
@media (max-width: 600px) { .profile-name { font-size: 22px; line-height: 28px; } .info-grid { grid-template-columns: 1fr 1fr; gap: 10px 14px; } .info-value { font-size: 14px; line-height: 21px; } }
/* parent: class picker, month checks, notes; teacher: photo row */
.class-pick { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; font: inherit; color: var(--indigo-dark); cursor: pointer; min-height: 56px; }
.class-pick.on { border-color: var(--orange); background: #FFF6EF; }
.class-pick.full { opacity: .55; cursor: not-allowed; }
.class-pick strong { font-size: 15px; } .class-pick span { font-size: 13px; color: var(--grey); }
.month-checks { margin-top: 10px; } .month-checks label { flex: 1 1 100%; }
.total-line { font-weight: 700; margin-top: 10px; }
.note-text { white-space: pre-wrap; color: var(--indigo-dark) !important; font-size: 14px !important; }
.photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.avatar-empty { display: flex; align-items: center; justify-content: center; background: var(--peri-light); color: var(--indigo); font-weight: 800; font-size: 34px; }
.perk { margin: 8px 0 0; padding: 8px 12px; background: #EEF7F1; border-radius: 10px; color: #1B5E3A; font-size: 14px; line-height: 20px; font-weight: 600; }

/* Trial page: level and subject picker that drives the booking widget */
.wy-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 18px; }
.wy-picker label { display: block; font-size: 13px; font-weight: 700; color: var(--grey); margin-bottom: 4px; }
.wy-picker select { width: 100%; min-height: 48px; font-size: 16px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.wy-picker select:disabled { background: var(--cream); color: var(--grey); }
@media (max-width: 560px) { .wy-picker { grid-template-columns: 1fr; } }

/* ---------- Exam paper library ---------- */
.level-grid .level-card { display: block; text-decoration: none; color: inherit; }
.level-card h3 { margin: 0 0 6px; } .level-card p { margin: 0 0 10px; color: var(--grey); } .level-card .more { color: var(--indigo); font-weight: 700; }
.xchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.xchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--indigo-dark); text-decoration: none; }
a.xchip:hover { border-color: var(--orange); background: #FFF6EF; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--cream); color: var(--indigo); font-size: 12px; font-weight: 700; text-align: center; vertical-align: middle; }
h3 .count { margin-left: 6px; } h3 a.small { margin-left: 10px; font-weight: 600; }
.paper-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.paper-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.paper-row > a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--indigo-dark); min-height: 56px; }
.paper-row > a:hover { border-color: var(--orange); background: #FFF6EF; }
.paper-row strong { font-size: 15px; line-height: 21px; } .paper-row .meta { font-size: 13px; color: var(--grey); }
.paper-row.unavailable { opacity: .65; } .paper-row.unavailable em { display: block; padding: 0 14px 10px; }
.paper-row.hidden { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 6px 0 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--grey); flex: 1 1 150px; }
.filter-bar select { min-height: 44px; font-size: 16px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.filter-count { flex: 1 1 100%; }
.related-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.related-links li a { display: block; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--indigo-dark); }
.related-links li a:hover { border-color: var(--orange); }
.school-index li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.school-index li a { border: 0; padding: 0; background: none; }
.paper-hero { display: grid; gap: 18px; grid-template-columns: 1fr; }
.paper-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.facts th { text-align: left; white-space: nowrap; width: 38%; }
.tips { padding-left: 20px; } .tips li { margin-bottom: 8px; }
.after-paper .card { display: flex; flex-direction: column; } .after-paper .card .btn { margin-top: auto; align-self: flex-start; }
.score-row { display: flex; gap: 8px; align-items: center; } .score-row input { max-width: 120px; }
.flag { font-size: 13px; } .flag.on { color: #1B5E3A; } .flag.off { color: #9A2A00; }
@media (min-width: 800px) { .paper-hero { grid-template-columns: 1fr 1.2fr; align-items: start; } }
@media (max-width: 600px) { .xchip { min-height: 40px; font-size: 13px; } .filter-bar label { flex-basis: calc(50% - 8px); } }
.stat-warn strong { color: #B42318; }
@media (max-width: 360px) { .filter-bar label { flex-basis: 100%; } }
