/* Sams Tutors redesign, November 2026. Colours, fonts and rules come from copy/brand-kit.md.
   Idea: a well-kept exercise book. Paper, a ruled margin line down every light page, deep green,
   one orange mark where you act, one highlighted phrase per page. */

@font-face{font-family:"Newsreader";font-style:normal;font-weight:400 600;font-display:swap;src:url(../assets/fonts/newsreader-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-weight:400 700;font-display:swap;src:url(../assets/fonts/naskh-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Readex Pro";font-style:normal;font-weight:300 700;font-display:swap;src:url(../assets/fonts/readex-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Readex Pro";font-style:normal;font-weight:300 700;font-display:swap;src:url(../assets/fonts/readex-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --paper: #FBFAF7;
  --mint: #EEF3EF;
  --ink: #14211B;
  --slate: #55605A;
  --chalk: #123A2C;
  --pen: #C2502A;
  --pen-deep: #A9431F;
  --hl: #FFE98A;
  --rule: #D5DED8;
  --pale: #B9CDBF;
  --white: #FFFFFF;
  --display: "Newsreader", "Readex Pro", Georgia, serif;
  --body: "Readex Pro", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --margin: 0px;              /* space between the margin line and the text */
  --pad: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 960px) { :root { --margin: 88px; } }
[dir="rtl"] { --display: "Readex Pro", system-ui, sans-serif; }
[dir="rtl"][data-ar-head="naskh"] { --display: "Newsreader", "Noto Naskh Arabic", "Readex Pro", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1.0625rem, .3vw + 1rem, 1.1875rem)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[dir="rtl"] body { line-height: 1.75; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--chalk);
  line-height: 1.1;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); letter-spacing: -.005em; line-height: 1.2; }
[dir="rtl"] :is(h1, h2, h3, .display) { font-weight: 600; letter-spacing: 0; line-height: 1.45; }
p { max-width: 64ch; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.muted { color: var(--slate); }
bdi { unicode-bidi: isolate; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .closing :focus-visible { outline-color: var(--hl); }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--chalk); color: var(--white); border-radius: 6px; }
.skip:focus { top: 12px; }

/* The ruled margin: a double line down the left of every light section, like an exercise book. */
.ruled { position: relative; padding-inline-start: calc(var(--gutter) + var(--margin)); }
@media (min-width: 960px) {
  .ruled::before {
    content: ""; position: absolute; inset-inline-start: calc(var(--gutter) + 40px);
    top: calc(-1 * var(--pad)); bottom: calc(-1 * var(--pad)); width: 5px;
    border-inline: 1px solid var(--pale); pointer-events: none;
  }
}
.section { padding-block: var(--pad); }
.tint { background: var(--mint); }
.section-h { max-width: 18ch; margin-block-end: clamp(36px, 5vw, 64px); }

/* Highlighter: one phrase per page */
.hl {
  background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 92%, transparent 92%) no-repeat 0 50% / 100% 100%;
  color: var(--chalk); padding-inline: .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
[dir="rtl"] .hl { background-position: 100% 50%; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 14px 26px; border: 0; border-radius: 8px;
  background: var(--pen); color: var(--white); font-weight: 600; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--pen-deep); }
.btn:active { background: var(--pen-deep); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.alt-link, .next-link {
  display: inline-block; padding-block: 10px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em;
  text-decoration-color: var(--pale); transition: text-decoration-color .2s, color .2s;
}
.alt-link:hover, .next-link:hover { text-decoration-color: currentColor; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-block-start: 36px; }

.spark { width: .9em; height: .9em; flex: none; color: var(--chalk); }
.spark-list li { display: flex; gap: .75em; align-items: baseline; padding-block: .5em; }
.spark-list .spark { transform: translateY(.1em); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-block-end: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-color: var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: clamp(150px, 16vw, 200px); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--chalk); border-radius: 999px; background: transparent; color: var(--chalk); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn path { transition: transform .3s var(--ease); transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .t { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .b { transform: translateY(-4px) rotate(-45deg); }
.nav { position: fixed; inset: 76px 0 0; z-index: 39; display: flex; flex-direction: column; gap: 32px; padding: 24px var(--gutter) 40px; background: var(--paper); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.nav-links a { display: block; padding-block: 12px; border-block-end: 1px solid var(--rule); font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--chalk); text-decoration: none; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--chalk); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.nav-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lang { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
/* Full menu from 1,200px. Between 1,200 and 1,439px the Home link is left out to make room (the logo links home). */
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; overflow: visible; visibility: visible; opacity: 1; transform: none; background: none; transition: none; }
  .nav-links { display: flex; gap: 18px; }
  .nav-links a, .nav-end a { white-space: nowrap; }
  .nav-end { flex-wrap: nowrap; gap: 18px; }
  .nav-links a { padding: 12px 0; border: 0; font: 500 1rem/1.2 var(--body); color: var(--ink); text-decoration: none; }
  .nav-links a:hover { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--pale); text-decoration-thickness: 2px; text-underline-offset: .35em; }
  .nav-links a[aria-current="page"] { color: var(--chalk); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: .35em; }
  .lang { font-weight: 500; }
}

/* Phones and tablets: the header slides away while you scroll down and comes back as soon as you scroll up */
.site-header { transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
@media (max-width: 1199px) { .site-header.tucked { transform: translateY(-100%); } }

/* Hero: the one orchestrated moment */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--chalk); color: var(--white); padding-block: clamp(56px, 8vw, 112px) clamp(120px, 14vw, 200px); }
.hero h1 { color: var(--white); }
.hero .lead { color: #E4ECE6; margin-block-start: 28px; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.subject-line { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-block-start: 28px; }
.subject-line li { padding: 6px 14px; border: 1px solid rgba(185, 205, 191, .5); border-radius: 999px; color: var(--pale); font-size: .95rem; }
.hero .alt-link { color: var(--white); text-decoration-color: rgba(255,255,255,.45); }
.hero .alt-link:hover { text-decoration-color: var(--white); }
.chalk-graph { width: 100%; height: auto; overflow: visible; }
.chalk-graph text { font-family: var(--body); fill: var(--pale); }
.chalk-graph .tick { font: 500 24px var(--display); fill: var(--white); }
.chalk-graph .axis-label { font-size: 18px; font-weight: 500; }
.chalk-graph .caption { font-size: 22px; font-weight: 600; fill: var(--white); }
.chalk-graph .grid-line { stroke: var(--pale); stroke-opacity: .12; }
.chalk-graph .axis { stroke: var(--pale); stroke-width: 3; stroke-linecap: round; fill: none; }
.chalk-graph .climb { stroke: var(--white); stroke-width: 7; stroke-linecap: round; fill: none; }
.chalk-graph .arrow { stroke: var(--pale); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.chalk-graph .ring { fill: none; stroke: var(--pale); stroke-width: 3; }
.chalk-graph .marker { fill: var(--chalk); stroke: var(--white); stroke-width: 5; }
.chalk-graph .spark-mark { stroke: var(--pen); stroke-width: 11; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.js .hero h1, .js .hero .lead, .js .hero .subject-line, .js .hero .cta { animation: rise .8s var(--ease) both; }
.js .hero .lead { animation-delay: .12s; }
.js .hero .subject-line { animation-delay: .22s; }
.js .hero .cta { animation-delay: .32s; }
.js .hero .hl { animation: sweep-in .8s var(--ease) .9s both; }
.js .chalk-graph .grid { animation: fade 1s ease both; }
.js .chalk-graph .axis { stroke-dasharray: 1; animation: draw .8s var(--ease) .1s both; }
.js .chalk-graph .tick, .js .chalk-graph .axis-label, .js .chalk-graph .marker { animation: fade .6s ease .35s both; }
.js .chalk-graph .climb { stroke-dasharray: 1; animation: draw 1.8s cubic-bezier(.55,.05,.3,1) .45s both; }
.js .chalk-graph .portrait { animation: fade .8s ease 1.5s both; }
.js .chalk-graph .caption { animation: fade .7s ease 1.9s both; }
.js .chalk-graph .arrow { stroke-dasharray: 1; animation: draw .6s var(--ease) 2.05s both; }
.js .chalk-graph .spark-mark { animation: pop .75s cubic-bezier(.2, 1.7, .4, 1) 2.15s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0) rotate(-60deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
/* the words stay readable (white) until the highlighter reaches them */
@keyframes sweep-in { from { background-size: 0 100%; color: var(--white); } 60% { color: var(--white); } to { background-size: 100% 100%; color: var(--chalk); } }
@media (min-width: 960px) and (max-height: 920px) {
  .hero { padding-block: clamp(28px, 3.4vw, 52px) clamp(96px, 9vw, 140px); }
  .hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); }
  .hero .lead { margin-block-start: 18px; }
  .hero .subject-line { margin-block-start: 18px; }
  .hero .cta { margin-block-start: 22px; }
}
.skyline { position: absolute; inset-inline: 0; bottom: 0; z-index: -1; display: flex; justify-content: center; overflow: hidden; color: var(--white); opacity: .09; pointer-events: none; }
.skyline svg { width: 100%; min-width: 1000px; height: auto; flex: none; }

/* Trust strip */
.points { background: var(--mint); border-block-end: 1px solid var(--rule); }
.points ul { display: grid; gap: 4px 32px; padding-block: 22px; }
@media (min-width: 720px) { .points ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .points ul { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.points li { display: flex; gap: .6em; align-items: baseline; padding-block: 6px; font-weight: 500; color: var(--chalk); }
.points .spark { transform: translateY(.1em); }

/* Subjects: the original layout, big names with hand-drawn doodles beside the key facts */
.subjects-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 960px) { .subjects-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.subject-rows li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(18px, 2.2vw, 30px); border-block-end: 2px solid var(--chalk); }
.subject-rows li:first-child { border-block-start: 2px solid var(--chalk); }
.subject-rows h3 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.05; }
.subject-rows .doodle { width: clamp(56px, 7vw, 92px); height: clamp(56px, 7vw, 92px); color: var(--chalk); flex: none; }
.doodle :is(path, line, circle, polyline, polygon, rect) { stroke-dasharray: 1; }
.js .reveal-draw .doodle :is(path, line, circle, polyline, polygon, rect) { stroke-dashoffset: 1; }
.js .reveal-draw.in .doodle :is(path, line, circle, polyline, polygon, rect) { transition: stroke-dashoffset 1.4s var(--ease) .1s; stroke-dashoffset: 0; }
.facts { display: grid; border-block-start: 1px solid var(--rule); }
@media (min-width: 640px) and (max-width: 959px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.facts > div { padding-block: 20px; border-block-end: 1px solid var(--rule); }
.facts dt { color: var(--slate); font-size: .95rem; }
.facts dd { margin-block-start: 4px; font-weight: 500; color: var(--chalk); }
.next-link { display: inline-block; margin-block-start: 36px; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--chalk); line-height: 1.25; }

/* Belief */
.belief-band { background: var(--paper); }
.belief p { max-width: 24ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.12; color: var(--chalk); letter-spacing: -.01em; text-wrap: balance; }
[dir="rtl"] .belief p { font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.belief-band .alt-link { display: inline-block; margin-block-start: 28px; }
.values { display: grid; gap: 32px; margin-block-start: clamp(56px, 7vw, 96px); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding-block-start: 20px; border-block-start: 2px solid var(--chalk); }
.values p { margin-block-start: 10px; color: var(--slate); }

/* Reviews */
.reviews { display: grid; gap: 32px; }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.reviews blockquote { font-size: 1.2rem; }
.reviews figcaption { margin-block-start: 12px; }

/* Steps */
.steps-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .steps-grid { grid-template-columns: 1.1fr .9fr; } }
.steps { display: grid; gap: 28px; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
.steps h3, .steps p { grid-column: 2; }
.steps p { margin-block-start: 6px; color: var(--slate); }
.step-num { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--chalk); border-radius: 50%; font: 500 1.4rem/1 var(--display); color: var(--chalk); }
.steps-art img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Closing */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--chalk); color: var(--white); padding-block: var(--pad) clamp(140px, 16vw, 220px); }
.closing h2 { color: var(--white); }
.closing .lead { color: #E4ECE6; margin-block-start: 18px; }
.closing .alt-link { color: var(--white); text-decoration-color: rgba(255,255,255,.45); }
.closing-inner { padding-inline-start: calc(var(--gutter) + var(--margin)); }

/* Page heads */
.page-head { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); --pad: clamp(56px, 7vw, 104px); }
.page-head .lead { margin-block-start: 24px; }
.head-link { margin-block-start: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.page-head + .section { padding-block-start: clamp(24px, 3vw, 48px); }

/* About */
.about-intro { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .about-intro { grid-template-columns: 1fr 300px; } }
.portrait { width: min(300px, 70vw); aspect-ratio: 9 / 10; object-fit: cover; border-radius: 160px 160px 8px 8px; }
.evidence { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(12px, 3vw, 40px); align-items: center; max-width: 760px; }
.evidence figure { display: flex; flex-direction: column; gap: 12px; }
.evidence img { width: 100%; max-width: 280px; border-radius: 6px; border: 1px solid var(--rule); background: var(--white); }
.evidence .real img { max-width: 300px; }
.evidence figcaption { font-weight: 600; color: var(--chalk); }
.jump { width: clamp(44px, 8vw, 96px); color: var(--chalk); }
.jump path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .jump { transform: scaleX(-1); }
.js .evidence .jump path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .evidence.in .jump path { transition: stroke-dashoffset 1s var(--ease) .2s; stroke-dashoffset: 0; }
.story-copy { margin-block-start: clamp(40px, 5vw, 64px); }
.teach { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .teach { grid-template-columns: 1fr 1fr; } }
.teach .lead { margin-block-start: 18px; }
.teach img { width: 100%; max-width: 480px; border-radius: 6px; }
#method .lead { margin-block: 16px clamp(36px, 5vw, 56px); }
.method { display: grid; gap: 28px; }
@media (min-width: 720px) { .method { display: flex; gap: 0; } .method li { flex: var(--share) 1 0; padding-inline-end: 24px; } }
.method li::before { content: ""; display: block; height: 14px; margin-block-end: 18px; background: var(--chalk); transform-origin: 0 50%; }
[dir="rtl"] .method li::before { transform-origin: 100% 50%; }
.method li:nth-child(2)::before { background: #2E5C4A; }
.method li:nth-child(3)::before { background: var(--hl); box-shadow: inset 0 0 0 2px var(--chalk); }
@media (max-width: 719px) { .method li::before { width: calc(var(--share) * 2.2%); } }
.js .method li::before { transform: scaleX(0); }
.js .method.in li::before { transform: none; transition: transform .9s var(--ease); }
.js .method.in li:nth-child(2)::before { transition-delay: .2s; }
.js .method.in li:nth-child(3)::before { transition-delay: .4s; }
.share { display: block; font: 500 clamp(2rem, 4vw, 3.2rem)/1 var(--display); color: var(--chalk); margin-block-end: 10px; }
.method p { margin-block-start: 8px; color: var(--slate); }
.audiences { display: grid; gap: 56px; }
@media (min-width: 960px) { .audiences { grid-template-columns: 1fr 1fr; } }
.audience h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.aud-for { order: -1; color: var(--slate); font-weight: 500; }
.audience { display: flex; flex-direction: column; gap: 12px; }
.audience .spark-list { margin-block-start: 8px; }
.checks { margin-block-start: 24px; font-weight: 500; }

/* Medicine */
.med-head h1 { max-width: 16ch; }
.med-head .lead { margin-block-start: 24px; }
.fee { display: inline-block; margin-block-start: 28px; padding: 8px 16px; border: 2px solid var(--chalk); border-radius: 999px; font-weight: 600; color: var(--chalk); }
.route { display: grid; gap: 32px; margin-block-end: 40px; }
@media (min-width: 720px) { .route { grid-template-columns: repeat(3, 1fr); } }
.route li { padding-block-start: 20px; border-block-start: 2px solid var(--chalk); }
.route h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
.route p { margin-block-start: 10px; color: var(--slate); }
/* Medicine Mock Interview: a named product with its own price card */
.offer { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); } }
.offer .lead { margin-block-start: 18px; max-width: 44ch; }
.offer-card { padding: clamp(24px, 3vw, 36px); background: var(--white); border: 2px solid var(--chalk); border-radius: 12px; }
.offer-card .amount { margin-block-end: 18px; }
.offer-card .spark-list { margin-block-end: 26px; color: var(--ink); }
.offer-alt { margin-block-start: 16px; }
.price .block a { color: var(--chalk); text-underline-offset: .2em; }

/* Pricing */
.prices { border-block-start: 2px solid var(--chalk); }
.price { display: grid; gap: 8px 32px; padding-block: clamp(28px, 4vw, 44px); border-block-end: 1px solid var(--rule); }
@media (min-width: 840px) { .price { grid-template-columns: 1.2fr minmax(17rem, auto) 1fr; align-items: baseline; } .price .spark-list { grid-column: 1 / -1; } }
.price h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.amount { font: 500 clamp(2.6rem, 5vw, 4rem)/1 var(--display); color: var(--chalk); white-space: nowrap; }
.unit { font: 500 1rem var(--body); color: var(--slate); }
.block { color: var(--ink); }
.price .spark-list { margin-block-start: 8px; color: var(--slate); }
.after-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-block: clamp(40px, 5vw, 64px) 28px; }
.not-sure { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--chalk); }

/* FAQ */
.faq { border-block-start: 2px solid var(--chalk); max-width: 900px; }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--chalk); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .spark { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.faq details[open] summary .spark { transform: rotate(90deg); }
.faq .answer { padding-block-end: 24px; }
.faq details[open] .answer { animation: rise .35s var(--ease) both; }
.faq-more { margin-block-start: 48px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.faq-more p { font-weight: 600; color: var(--chalk); }

/* Contact */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr .9fr; align-items: start; } }
.form-panel { padding: clamp(24px, 3.4vw, 44px); background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-block-end: 20px; }
.field label { font-weight: 600; color: var(--chalk); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #B4C0B8; border-radius: 8px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--chalk); box-shadow: 0 0 0 3px rgba(18, 58, 44, .18); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error, .form-error { color: #B3261E; font-size: .95rem; font-weight: 500; }
.form-error { margin-block-start: 16px; }
.send { width: 100%; margin-block-start: 4px; }
@media (min-width: 640px) { .send { width: auto; } }
.form-note { margin-block-start: 16px; color: var(--slate); font-size: .95rem; }
.bot-field { position: absolute; inset-inline-start: -9999px; }
.form-done { outline: none; }
.done-h { font-family: var(--display); font-weight: 500; font-size: 1.8rem; color: var(--chalk); margin-block-end: 8px; }
.alt-btn { margin-block-start: 20px; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--chalk); border-radius: 10px; background: none; color: var(--chalk); font-weight: 600; cursor: pointer; }
.other-ways figure img { width: 100%; border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; }
.other-ways h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-block: 28px 12px; }
.other-ways li { padding-block: 6px; }
.other-ways a { font-weight: 500; text-underline-offset: .25em; }
.other-ways .muted { margin-block-start: 16px; }

/* Legal drafts */
.draft-note { margin-block-start: 24px; max-width: 64ch; padding: 14px 18px; background: var(--mint); border-inline-start: 4px solid var(--chalk); border-radius: 4px; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; margin-block: 40px 12px; }
.prose h2:first-child { margin-block-start: 0; }
.prose p + p { margin-block-start: 12px; }
.todo { margin-block-start: 48px; padding: 20px 24px; border: 2px dashed var(--pale); border-radius: 8px; }
.todo h2 { margin-block-start: 0; }
.todo li { list-style: disc; margin-inline-start: 1.2em; padding-block: 4px; }

/* Footer */
.site-footer { background: var(--mint); padding-block: clamp(56px, 7vw, 88px) 32px; border-block-start: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 1.3fr 1fr .8fr 1fr; } }
.footer-brand img { width: 190px; margin-block-end: 18px; }
.footer-brand p + p { margin-block-start: 6px; }
.foot-h { font: 600 1rem/1.4 var(--body); color: var(--slate); margin-block-end: 12px; letter-spacing: 0; }
.site-footer li { padding-block: 0; }
.site-footer li a { display: inline-block; padding-block: 11px; }
@media (max-width: 839px) { .foot-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.site-footer a { text-underline-offset: .25em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid var(--rule); color: var(--slate); font-size: .95rem; }
.legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal li { padding: 0; }
.linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* Cookie question */
.cookie { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 50; max-width: 440px; padding: 20px 22px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 40px rgba(20, 33, 27, .16); font-size: .98rem; }
@media (min-width: 760px) { .cookie { inset-inline-start: auto; inset-inline-end: 16px; max-width: 380px; font-size: .94rem; } }
.cookie[hidden] { display: none; }
@media (max-width: 759px) {
  .cookie { inset-inline: 10px; bottom: 10px; padding: 14px 16px; font-size: .9rem; line-height: 1.45; }
  .cookie-title { margin-block-end: 4px; }
  .cookie-actions { flex-wrap: nowrap; margin-block-start: 12px; }
  .cookie-actions button { flex: 1 1 0; }
}
.cookie-title { font-weight: 600; color: var(--chalk); margin-block-end: 6px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 16px; }
.cookie-actions button { min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--chalk); font-weight: 600; cursor: pointer; }
.cookie-yes { background: var(--chalk); color: var(--white); }
.cookie-no { background: none; color: var(--chalk); }

/* Arabic tweaks */
[dir="rtl"] .chalk-graph .tick { font-family: var(--display); }
[dir="rtl"] .share, [dir="rtl"] .amount, [dir="rtl"] .step-num { font-family: var(--display); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .chalk-graph :is(.climb, .axis, .arrow), .js .evidence .jump path { stroke-dashoffset: 0; }
  .js .reveal-draw .doodle * { stroke-dashoffset: 0 !important; }
  .js .method li::before { transform: none; }
}

/* Newsletter */
.latest h2 a { color: inherit; text-decoration: none; }
.latest h2 a:hover { text-decoration: underline; text-decoration-color: var(--pale); text-decoration-thickness: 3px; text-underline-offset: .15em; }
.latest .post-date { margin-block-start: 14px; }
.latest-lead { margin-block-start: 14px; max-width: 52ch; }
.latest-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-block-start: 22px; }
.news-grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 960px) { .news-grid { grid-template-columns: 1.5fr 1fr; gap: clamp(48px, 6vw, 96px); } .signup { position: sticky; top: 104px; } }
.list-h { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; margin-block-end: 8px; }
.posts { border-block-start: 2px solid var(--chalk); }
.post-item { padding-block: 28px; border-block-end: 1px solid var(--rule); }
.post-item time, .post-date { color: var(--slate); font-size: .95rem; }
.post-item h3 { margin-block: 6px 10px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.post-item h3 a { text-decoration: none; }
.post-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--pale); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.post-item p { color: var(--ink); margin-block-end: 12px; }
.post-date { margin-block-start: 20px; }

/* "New" label on a recent post, and a dot on the Newsletter menu link. Both start hidden;
   site.js shows them until the date in data-new-until has passed, so they switch off by themselves. */
.new-badge { display: inline-block; margin-inline-start: 10px; padding: 3px 10px 4px; border: 1px solid transparent; border-radius: 999px; background: var(--pen-deep); color: var(--white); font: 600 .8rem/1.2 var(--body); letter-spacing: .03em; vertical-align: .1em; transform: rotate(-2deg); }
.kicker .new-badge { margin-inline-start: 12px; }
.nav-dot { position: relative; display: inline-block; width: max(7px, .26em); height: max(7px, .26em); margin-inline-start: .28em; border-radius: 50%; background: var(--pen); vertical-align: super; }
.new-badge[hidden], .nav-dot[hidden] { display: none; }
@media (forced-colors: active) { .nav-dot { background: CanvasText; } }
.nw { white-space: nowrap; }

/* Book a lesson */
.book-steps { margin-block-end: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .book-steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }
.book-options { display: grid; gap: 14px; margin-block-start: 18px; list-style: none; padding: 0; }
@media (min-width: 640px) { .book-options { grid-template-columns: repeat(2, 1fr); } }
.book-option { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; height: 100%; padding: 20px 22px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.book-option:hover { border-color: var(--chalk); }
.book-option:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.book-option[aria-current="true"] { border-color: var(--pen); box-shadow: 0 0 0 2px var(--pen) inset; }
.bo-name { font: 500 1.2rem/1.25 var(--display); color: var(--chalk); }
[dir="rtl"] .bo-name { font-weight: 700; }
.bo-price { font: 500 1.3rem/1 var(--display); color: var(--chalk); }
.bo-meta { grid-column: 1 / -1; color: var(--slate); font-size: .95rem; }
.bo-go { grid-column: 1 / -1; margin-block-start: 6px; color: var(--pen-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.book-option[aria-current="true"] .bo-go { text-decoration: none; }
.book-cal { margin-block-start: clamp(36px, 5vw, 56px); scroll-margin-top: 96px; }
.book-cal-name { margin-block: 6px 14px; font-weight: 600; color: var(--chalk); }
.book-cal-frame { min-height: 360px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--white); overflow: hidden; }
.book-cal-frame .cal-box { width: 100%; min-height: 360px; }
.book-soon { display: grid; place-items: center; min-height: 360px; padding: 32px 24px; margin: 0; text-align: center; color: var(--slate); }
.book-fallback { margin-block-start: 12px; font-size: .95rem; }
.book-notes { display: grid; gap: 10px; max-width: 70ch; margin-block-start: clamp(32px, 5vw, 48px); color: var(--slate); }
.book-notes strong { color: var(--ink); }
.price .book-link { margin-block-start: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.post-list { margin-block: 12px; }
.post-list li { position: relative; padding-block: 6px; padding-inline-start: 1.4em; }
.post-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .95em; width: .55em; height: 2px; background: var(--chalk); }
.post-body strong { color: var(--chalk); }
.post-steps { margin-block: 16px; counter-reset: step; }
.post-steps li { position: relative; padding-block: 8px; padding-inline-start: 2.6em; counter-increment: step; }
.post-steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: .5em; width: 1.75em; height: 1.75em; display: grid; place-items: center; border: 2px solid var(--chalk); border-radius: 50%; font-weight: 700; font-size: .9em; color: var(--chalk); }
.post-note { color: var(--slate); font-size: .95rem; margin-block: -4px 8px; }
.post-sign { margin-block-start: 28px; font-weight: 700; color: var(--chalk); }
.sources li { padding-block: 4px; }
.sources a { text-underline-offset: .25em; overflow-wrap: anywhere; }
.back { margin-block-start: 40px; }
.signup { padding: clamp(24px, 3vw, 36px); background: var(--mint); border-radius: 12px; }
.signup h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; margin-block-end: 10px; }
.signup > p { color: var(--ink); }
.signup-form { margin-block-start: 20px; }
.signup-form .field { margin-block-end: 0; }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-row input { flex: 1 1 220px; min-height: 52px; padding: 12px 14px; border: 1.5px solid #B4C0B8; border-radius: 8px; background: var(--white); }
.signup-row input:focus { outline: none; border-color: var(--chalk); box-shadow: 0 0 0 3px rgba(18, 58, 44, .18); }
.signup-row .btn { flex: 0 0 auto; }
.signup .form-note a { text-underline-offset: .2em; }
.signup-done { outline: none; margin-block-start: 16px; }
.byline { margin-block-start: 20px; font-weight: 600; color: var(--chalk); }


/* ===================== Version 3 additions (19 November 2026) ===================== */
/* Handwriting and exam-paper fonts, used only in the marked exam question */
@font-face{font-family:"Arimo";font-style:normal;font-weight:400;font-display:swap;src:url(../assets/fonts/arimo-latin-400.woff2) format("woff2")}
@font-face{font-family:"Arimo";font-style:normal;font-weight:700;font-display:swap;src:url(../assets/fonts/arimo-latin-700.woff2) format("woff2")}

/* Hero graph: memory over time */
.chalk-graph.memory .forget { fill: none; stroke: var(--pale); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 13; opacity: .8; }
.chalk-graph.memory .recap { fill: none; stroke: var(--white); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.chalk-graph .recap-dot { fill: var(--chalk); stroke: var(--white); stroke-width: 4; }
.chalk-graph .caption.faint { fill: var(--pale); font-weight: 500; }
.chalk-graph .y-label { font-size: 17px; }
.js .chalk-graph .forget { animation: fade 1s ease .5s both; }
.js .chalk-graph .recap { stroke-dasharray: 1; animation: draw 2.1s cubic-bezier(.55,.05,.3,1) .6s both; }
.js .chalk-graph .dots { animation: fade .6s ease 1.7s both; }
.js .chalk-graph .portrait { animation-delay: 1.2s; }

/* Small things shared by the new sections */
.kicker { font-weight: 500; color: var(--slate); margin-block-end: 14px; }
.small-h { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; margin-block-end: 16px; }
sup.ref { font-size: .68em; line-height: 0; margin-inline-start: 1px; }
sup.ref a { color: var(--chalk); font-weight: 600; text-decoration: none; padding-inline: 1px; }
sup.ref a:hover { text-decoration: underline; }

/* Home: why it works */
.why .section-h { margin-block-end: 20px; max-width: 20ch; }
.why-lead { max-width: 60ch; margin-block-end: clamp(36px, 5vw, 56px); }
.habits { margin-block: clamp(24px, 4vw, 40px) 0; font-weight: 500; color: var(--chalk); }
.why .next-link, #method .next-link { margin-block-start: 28px; }

/* How I teach page */
.science-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .science-grid { grid-template-columns: 1fr 1fr; } }
.science-copy h2 { margin-block-end: 20px; }
.science-copy p + p { margin-block-start: 14px; }
.board { margin: 0; padding: clamp(18px, 3vw, 32px); background: var(--chalk); border-radius: 14px; }
.board figcaption { margin-block-start: 10px; color: var(--pale); font-size: .9rem; }
.js .board .chalk-graph * { animation-play-state: paused; }
.js .board.in .chalk-graph * { animation-play-state: running; }
.parts .whyline { margin-block-start: 12px; color: var(--ink); font-size: .95rem; }
.parts .whyline strong { color: var(--chalk); }
.habit-grid { display: grid; gap: 36px 48px; }
@media (min-width: 720px) { .habit-grid { grid-template-columns: repeat(2, 1fr); } }
.habit-grid li { padding-block-start: 20px; border-block-start: 2px solid var(--chalk); }
.habit-grid .what { margin-block-start: 10px; }
.habit-grid .whyline { margin-block-start: 10px; color: var(--slate); font-size: .95rem; }
.two-col { display: grid; gap: 48px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.avoid { padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.cross-list li { position: relative; padding-block: 7px; padding-inline-start: 1.8em; font-weight: 500; color: var(--chalk); }
.cross-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: .85em; height: .85em;
  background: linear-gradient(45deg, transparent 42%, var(--pen) 42%, var(--pen) 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--pen) 42%, var(--pen) 58%, transparent 58%); }
.avoid .muted { margin-block-start: 14px; font-size: .95rem; }
.refs { display: grid; gap: 12px; max-width: 82ch; counter-reset: ref; font-size: .92rem; color: var(--slate); }
.refs li { position: relative; padding-left: 2.2em; counter-increment: ref; scroll-margin-top: 110px; }
.refs li::before { content: counter(ref); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--chalk); }
.refs li:target { background: var(--hl); border-radius: 4px; }
.refs a { overflow-wrap: anywhere; text-underline-offset: .2em; }
.refs-note { margin-block-end: 12px; }

/* About: the grades story, short and quiet, with the screenshots folded away */
.story-lite { padding-block: clamp(48px, 6vw, 88px); }
.story-lite .story-copy { margin-block-start: 0; max-width: 62ch; color: var(--slate); }

/* Pricing: what every lesson includes */
.includes { max-width: 760px; margin-block-start: clamp(32px, 4vw, 48px); }

/* Phones: booking bar that appears once the first booking button has scrolled away */
.sticky-cta { display: none; }
.btn-ghost { background: var(--paper); color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--chalk); }
.btn-ghost:hover { background: var(--mint); }
@media (max-width: 759px) {
  .sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: flex; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(251, 250, 247, .97);
    border-block-start: 1px solid var(--rule); box-shadow: 0 -8px 24px rgba(20, 33, 27, .08);
    transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .sticky-cta.show { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .sticky-cta .btn { flex: 1 1 0; min-height: 48px; padding: 12px 10px; font-size: 1rem; }
  body.menu-open .sticky-cta { display: none; }
  .site-footer { padding-block-end: 108px; }
}

/* Marked exam question: an exam paper and its mark scheme, marked in red pen like a past-paper walkthrough video.
   The handwriting is real pen strokes from a handwriting model (see website-v3-src/walkthrough/README.txt): the student's
   answer in blue biro is already on the page, and Sami's red pen draws itself stroke by stroke. Printed text: Arimo. */
.walk-figure { margin: 0; }
.walk-pair { display: grid; gap: 22px; direction: ltr; }
@media (min-width: 900px) { .walk-pair { grid-template-columns: 1fr 1fr; gap: 30px; } }
.walk-sheet { width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(20, 33, 27, .12)) drop-shadow(0 16px 26px rgba(20, 33, 27, .14)); }
.walk-pair > :first-child .walk-sheet { transform: rotate(-.7deg); }
.walk-pair > :last-child .walk-sheet { transform: rotate(.6deg); }
@media (max-width: 599px) {
  .walk-pair { margin-inline: calc(var(--gutter) * -1 + 6px); gap: 18px; }
  .walk-pair > :first-child .walk-sheet, .walk-pair > :last-child .walk-sheet { transform: none; }
}
.walk-figure .replay { min-height: 44px; }
.walk-sheet .sheet { fill: #FFFEFA; }
.walk-sheet .sheet-edge { fill: none; stroke: #DAD5C8; stroke-width: 1.2; }
.walk-sheet .qbox { fill: none; stroke: #222; stroke-width: 1.3; }
.walk-sheet .qnum { font: 700 18px Arimo, Arial, sans-serif; fill: #222; }
.walk-sheet .tag { font: 400 12.5px Arimo, Arial, sans-serif; fill: #6b6b6b; }
.walk-sheet .q text, .walk-sheet .qtext { font: 400 17px Arimo, Arial, sans-serif; fill: #232323; }
.walk-sheet .q .sub { font-size: 12px; }
.walk-sheet .q .marks { font-weight: 700; font-size: 16px; }
.walk-sheet .ans-line { stroke: #8f9893; stroke-width: 1.5; stroke-dasharray: .5 6; stroke-linecap: round; }
.walk-sheet .ms-title { font: 700 19px Arimo, Arial, sans-serif; fill: #232323; }
.walk-sheet .ms-sub { font: 400 15px Arimo, Arial, sans-serif; fill: #5b5b5b; }
.walk-sheet .ms-head { fill: #EFEFEA; }
.walk-sheet .ms-h text { font: 700 13.5px Arimo, Arial, sans-serif; fill: #232323; }
.walk-sheet .ms text { font: 400 15px Arimo, Arial, sans-serif; fill: #232323; }
.walk-sheet .ms .gd { font-size: 13.5px; }
.walk-sheet .ms .b { font-weight: 700; }
.walk-sheet .rule { stroke: #C9CCC4; stroke-width: 1.1; }
.walk-sheet .biro { fill: none; stroke: #1D2F78; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.walk-sheet .redpen { fill: none; stroke: #C42A1C; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.walk-sheet .hl-band { mix-blend-mode: multiply; }
.walk-sheet .hl-ink { fill: #FFE31F; fill-opacity: .68; }
.walk-sheet .hl-end { fill-opacity: .26; }
/* each stroke has its own start (--d) and duration (--t), so the pen writes in the order the strokes were made */
.js .walk .hw { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.js .walk.in .hw { animation: hw var(--t, .3s) cubic-bezier(.4, .05, .6, .95) var(--d, 0s) forwards; }
@keyframes hw { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .walk .hw { stroke-dashoffset: 0; opacity: 1; animation: none !important; }
}
.walk-lead { max-width: 60ch; margin-block-end: clamp(32px, 4vw, 48px); }
.walk-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-block-start: 18px; color: var(--slate); font-size: .92rem; }
.walk-figure .replay { font-weight: 600; color: var(--chalk); }
.walk-steps { display: grid; gap: 28px; margin-block-start: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .walk-steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.walk-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.walk-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pen); color: var(--white); font: 600 1rem/1 var(--body); }
.walk-steps h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.walk-steps p { margin-block-start: 6px; color: var(--slate); }

/* Contact form: only name, email and message are required */
.field label .optional { font-weight: 400; color: var(--slate); }
.contact-quick { margin-block-start: 8px; }

/* v4 (21 Nov 2026): subject pages, linked subjects on the home page */
.subject-rows li { position: relative; }
.subject-rows h3 a { color: inherit; text-decoration: none; }
.subject-rows h3 a::after { content: ""; position: absolute; inset: 0; }
.subject-rows li:hover h3 a, .subject-rows h3 a:focus-visible { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.subject-head { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .subject-head { grid-template-columns: 1fr auto; } }
.subject-head h1 { max-width: 17ch; }
.subject-head .lead { margin-block-start: 24px; }
.subject-art .doodle { display: block; width: clamp(96px, 13vw, 180px); height: clamp(96px, 13vw, 180px); color: var(--chalk); }
.topic-cols { display: grid; gap: 32px 56px; }
@media (min-width: 760px) { .topic-cols { grid-template-columns: 1fr 1fr; } }
.topic-note { margin-block-start: 28px; max-width: 68ch; }
.topic-note a { color: var(--chalk); text-underline-offset: .2em; }
.route h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
@media (min-width: 720px) { .route-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .route-4 { grid-template-columns: repeat(4, 1fr); } }
#how .steps { max-width: 760px; }
.subject-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.subject-links a { display: inline-block; padding-block: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--chalk); text-underline-offset: .2em; }
.fees { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-block-start: 28px; }
.fees .fee { margin: 0; }

/* Arabic Gulf page (21 Nov 2026): plain data tables and the board list on Arabic subject pages */
.table-wrap { overflow-x: auto; margin-block-start: 28px; max-width: 900px; }
.data-table { width: 100%; border-collapse: collapse; border-block-start: 2px solid var(--chalk); }
.data-table th, .data-table td { padding: 14px 12px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--rule); }
.data-table th { font-weight: 600; color: var(--slate); font-size: .95rem; }
.data-table td:first-child { font-weight: 600; color: var(--chalk); }
.boards { grid-column: 1 / -1; }

/* v5: free past-papers guide */
.boards-list .board-link { display: inline-block; margin-block-start: 14px; font-weight: 700; color: var(--chalk); text-underline-offset: .2em; }
@media (min-width: 720px) { .route-2 { grid-template-columns: repeat(2, 1fr); } }
.data-table a { color: var(--chalk); font-weight: 600; text-underline-offset: .2em; }
#how .steps + .topic-note { max-width: 760px; }
@media (max-width: 480px) { .data-table th, .data-table td { padding-inline: 6px; } }

/* ---------- v6, 21 Nov 2026 ---------- */
/* Subjects drop-down in the menu: a list in the phone menu, a drop-down on wide screens */
.has-sub { position: relative; }
.sub-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .4em; padding: 12px 0; border: 0; border-block-end: 1px solid var(--rule); background: none; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--chalk); text-align: start; cursor: pointer; }
.sub-btn .chev { width: .55em; height: .55em; flex: none; transition: transform .2s var(--ease); }
.sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub-btn.is-current span { text-decoration: underline; text-decoration-color: var(--chalk); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.sub-menu { display: none; padding-inline-start: 18px; }
.has-sub.open .sub-menu { display: block; }
.nav-links .sub-menu a { font-size: clamp(1.2rem, 4.6vw, 1.5rem); }
@media (min-width: 1200px) {
  .sub-btn { width: auto; padding: 12px 0; border: 0; font: 500 1rem/1.2 var(--body); color: var(--ink); white-space: nowrap; }
  .sub-btn:hover { color: var(--chalk); }
  .sub-btn.is-current { color: var(--chalk); font-weight: 600; }
  .sub-btn.is-current span { text-decoration-thickness: 2px; text-underline-offset: .35em; }
  .sub-menu { position: absolute; top: 100%; inset-inline-start: -14px; z-index: 50; min-width: 230px; padding: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 34px rgba(18, 58, 44, .16); }
  .nav-links .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; font: 500 1rem/1.2 var(--body); }
  .nav-links .sub-menu a:hover { background: var(--mint); text-decoration: none; }
}
@media (min-width: 1200px) and (hover: hover) { .has-sub:hover .sub-menu { display: block; } }

/* Hero: Sami's photo and credentials, linked subjects, the price and the guarantee */
.subject-line.linked li { padding: 0; border: 0; }
.subject-line.linked a { display: inline-block; padding: 6px 14px; border: 1px solid rgba(185, 205, 191, .5); border-radius: 999px; color: var(--pale); font-size: .95rem; text-decoration: none; transition: color .2s, border-color .2s, background-color .2s; }
.subject-line.linked a:hover { color: var(--white); border-color: var(--pale); background: rgba(255, 255, 255, .06); }
.hero-parents { margin-block-start: 14px; max-width: 46ch; color: var(--white); font-weight: 500; }
.hero-facts { display: grid; gap: 8px; margin-block-start: 24px; color: #E4ECE6; font-size: .98rem; }
.hero-facts li { display: flex; gap: .6em; align-items: baseline; }
.hero-facts .spark { color: var(--hl); transform: translateY(.1em); }
.hero-facts a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.hero-facts a:hover { text-decoration-color: var(--white); }
.hero-grid { gap: 28px; }
.hero-sami { order: -1; display: flex; align-items: center; gap: 16px; margin: 0; }
.hero-portrait { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 3px rgba(185, 205, 191, .45); }
.cred-card { color: #E4ECE6; }
.cred-name { font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.2; color: var(--white); }
.cred-card ul { margin-block-start: 4px; }
.cred-card li { display: flex; gap: .5em; align-items: baseline; font-size: .86rem; line-height: 1.45; }
.cred-card .spark { width: .8em; height: .8em; color: var(--hl); transform: translateY(.08em); }
@media (min-width: 960px) {
  .hero-grid { gap: clamp(40px, 6vw, 80px); }
  .hero-sami { order: 0; position: relative; display: block; justify-self: center; }
  .hero-portrait { width: clamp(250px, 24vw, 330px); height: auto; aspect-ratio: 9 / 10; border-radius: 200px 200px 14px 14px; box-shadow: 0 0 0 8px rgba(185, 205, 191, .14); }
  .cred-card { position: absolute; inset-inline-start: clamp(-64px, -4vw, -28px); bottom: -24px; width: max-content; max-width: 300px; padding: 16px 18px 14px; background: var(--paper); color: var(--slate); border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
  .cred-name { color: var(--chalk); }
  .cred-card .spark { color: var(--pen); }
  .cred-card li { font-size: .92rem; }
}
@media (min-width: 960px) and (max-height: 920px) {
  .hero-portrait { width: clamp(230px, 21vw, 290px); }
  .hero-facts { margin-block-start: 18px; }
}
.js .hero .hero-parents, .js .hero .hero-facts { animation: rise .8s var(--ease) .4s both; }
.js .hero .hero-sami { animation: fade .9s ease .15s both; }

/* WhatsApp button (Arabic site) */
.btn-wa { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-wa:hover, .btn-wa:active { background: rgba(255, 255, 255, .1); }
.btn-wa .wa-icon { width: 1.25em; height: 1.25em; flex: none; }
:is(.sticky-cta, .page-head, .offer-card, .section) .btn-wa { background: var(--paper); color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--chalk); }
:is(.sticky-cta, .page-head, .offer-card, .section) .btn-wa:hover { background: var(--mint); }

/* Why it works: the memory graph on a chalkboard panel */
.why-top { display: grid; gap: 32px; align-items: center; margin-block-end: clamp(36px, 5vw, 56px); }
@media (min-width: 960px) { .why-top { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 72px); } }
.why-top .why-lead { margin-block-end: 0; }
.why-art { margin: 0; padding: clamp(14px, 2.4vw, 26px); background: var(--chalk); border-radius: 14px; }
.why-art .chalk-graph, .why-art .chalk-graph * { animation: none !important; }

/* Reviews: an honest empty state until the first real review */
.reviews-empty { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .reviews-empty { grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 5vw, 72px); } }
.rev-copy .lead { max-width: 56ch; }
.rev-copy p + p { margin-block-start: 14px; max-width: 56ch; color: var(--slate); }
.rev-slot { display: grid; justify-items: start; gap: 8px; padding: 24px 26px; border: 2px dashed var(--pale); border-radius: 14px; background: var(--paper); }
.tint .rev-slot { background: var(--white); }
.rev-mark .spark { width: 30px; height: 30px; color: var(--pen); }
.rev-slot-h { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; color: var(--chalk); }
#reviews .next-link { margin-block-start: 28px; }

/* Meet Sami: the video, or a "coming soon" panel until it exists */
.video-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .video-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 5vw, 72px); } }
.video-copy .lead { max-width: 44ch; }
.video-frame { margin: 0; }
.video-player, .video-soon { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--chalk); }
.video-soon { display: grid; place-items: center; align-content: center; gap: 16px; overflow: hidden; color: var(--pale);
  background-image: linear-gradient(rgba(185, 205, 191, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 205, 191, .1) 1px, transparent 1px);
  background-size: 32px 32px; }
.video-play svg { display: block; width: clamp(56px, 8vw, 84px); height: auto; opacity: .55; }
.video-badge { padding: 6px 14px; border-radius: 999px; background: var(--hl); color: var(--chalk); font-weight: 700; font-size: .95rem; }

/* Pricing: approximate Gulf prices and the guarantee */
.amount .approx { display: block; margin-block-start: 8px; font: 500 .95rem/1.5 var(--body); color: var(--slate); white-space: normal; }
.fx-note { margin-block-start: 16px; max-width: 70ch; font-size: .95rem; }
.guarantee { max-width: 760px; margin-block-start: clamp(32px, 4vw, 48px); padding: 20px 24px; background: var(--mint); border-inline-start: 4px solid var(--pen); border-radius: 8px; }
.guarantee .small-h { margin-block-end: 6px; }
.guarantee a { color: var(--chalk); text-underline-offset: .2em; }

/* Review form */
.review-wrap > .form-panel { max-width: 760px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin-block: 4px 22px; color: var(--ink); cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; margin-block-start: 2px; accent-color: var(--chalk); }
.field label .optional { font-weight: 400; }

/* v9 (22 Nov 2026): handwritten worked examples. Laptops: a fan of paper scraps behind Sami's photo.
   Phones and tablets: a strip of them under the price line, so the headline stays on the first screen. */
.hero-copy { position: relative; z-index: 3; }
.hero-papers { display: none; }
.hero-strip { display: flex; justify-content: center; align-items: flex-start; margin-block-start: 40px; pointer-events: none; }
.hero-strip img { flex: none; width: min(44vw, 200px); height: auto; margin-inline: -12px; transform: rotate(var(--r)) translateY(var(--y, 0px)); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .32)); }
.hs-1 { --r: -6deg; --y: 12px; }
.hs-2 { --r: 3deg; --y: -4px; position: relative; z-index: 1; }
.hs-3 { --r: -4deg; --y: 10px; }
.hs-4 { --r: 6deg; --y: -2px; }
@media (max-width: 599px) { .hs-4 { display: none; } .hero-strip img { width: min(46vw, 200px); } }
@media (max-width: 959px) { .hero { padding-block-end: 84px; } }
@media (min-width: 960px) {
  .hero-strip { display: none; }
  .hero-papers { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .hero-portrait { position: relative; z-index: 1; }
  .cred-card { z-index: 2; }
  .hp { position: absolute; width: 58%; height: auto; transform: rotate(var(--r)); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .34)); }
  .hp-1 { --r: -8deg; top: -12%; inset-inline-start: -40%; }
  .hp-2 { --r: 7deg; top: -15%; inset-inline-end: -50%; }
  .hp-3 { --r: -4deg; top: 30%; inset-inline-end: -66%; }
  .hp-4 { --r: 5deg; top: 30%; inset-inline-start: -52%; }
  .hp-5 { --r: 4deg; bottom: -16%; inset-inline-end: -44%; }
  .hp-6 { --r: -6deg; bottom: -22%; inset-inline-start: -36%; }
  .hp-7 { --r: -2deg; top: -27%; inset-inline-start: 19%; width: 54%; }
}
.js .hero-papers .hp, .js .hero-strip img { animation: deal .8s var(--ease) both; animation-delay: calc(.35s + var(--i) * .09s); }
@keyframes deal { from { opacity: 0; transform: translateY(22px) rotate(0deg) scale(.97); } to { opacity: 1; transform: rotate(var(--r)) translateY(var(--y, 0px)); } }


/* ===================== Version 11 (22 November 2026): calmer and more premium ===================== */
/* From the design review Sarah approved: a clear first screen, the research second, the lesson notebook, a block for
   parents, no "coming soon" sections, a serif headline face, flat buttons, and one job per colour
   (green = the brand, highlighter = one phrase per page, orange = the booking button, the asterisk and pen marks). */

/* The serif at small sizes, and its numerals */
.amount, .share { font-weight: 400; font-variant-numeric: lining-nums; }
.step-num { font-variant-numeric: lining-nums; }
@media (max-width: 1199px) { .nav-links a, .sub-btn { font-weight: 400; } }
.section-h { max-width: 20ch; }
[dir="rtl"] :is(.next-link, .not-sure, .done-h, .subject-links a) { font-weight: 600; }

/* Header: six links, a quiet language link, and an outline button (the one solid button sits in the page) */
.lang { font-size: .98rem; text-decoration-color: var(--pale); text-underline-offset: .3em; }
.nav-end .btn-small { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--chalk); }
.nav-end .btn-small:hover, .nav-end .btn-small:active { background: var(--mint); }
@media (min-width: 1200px) { .nav-links .menu-only { display: none; } .nav-links { gap: 24px; } .nav { gap: 26px; } }

/* First screen: headline, two sentences, one button, the price, and Sami with one marked sheet */
.hero { padding-block: clamp(44px, 6.4vw, 96px) clamp(52px, 6.4vw, 96px); }
@media (max-width: 959px) { .hero { padding-block-end: 56px; } }
.hero h1 { font-size: clamp(2.6rem, 4.85vw, 4.4rem); line-height: 1.17; }
[dir="rtl"] .hero h1 { line-height: 1.5; }
@media (max-width: 419px) {   /* small phones: the highlighted phrase stays on one line */
  .hero h1 { font-size: min(2.6rem, 10.2vw); }
  [dir="rtl"] .hero .cta .btn { padding-inline: 14px; }
}
.hero .hl { padding-inline: .14em; margin-inline: -.06em; }
.hero .lead { max-width: 33em; font-weight: 300; }
[dir="rtl"] .hero .lead { font-weight: 400; }
.hero-grid { align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(270px, 25.5vw, 360px); column-gap: clamp(72px, 8.4vw, 118px); } }
.hero-price { margin-block-start: 26px; font-size: .97rem; color: var(--pale); }
.hero-price a { color: inherit; text-decoration-color: rgba(185, 205, 191, .5); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.hero-price a:hover { color: var(--white); }
.who { display: grid; grid-template-columns: 112px 1fr; column-gap: 18px; align-items: center; margin: 36px 0 0; }
.who-art { position: relative; }
.who-photo { display: block; width: 112px; height: 134px; object-fit: cover; object-position: 50% 12%; border-radius: 56px 56px 4px 4px; }
.who-sheet { display: none; }
.who-name { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; color: var(--white); }
[dir="rtl"] .who-name { font-weight: 600; line-height: 1.5; }
.who-cap ul { margin-block-start: 6px; color: #DCE6DF; font-size: .9rem; line-height: 1.6; }
@media (min-width: 960px) {
  .who { display: block; margin: 0; }
  .who-photo { width: 100%; height: auto; aspect-ratio: 360 / 436; border-radius: 180px 180px 6px 6px; }
  .who-sheet { display: block; position: absolute; inset-inline-start: -22%; top: 55%; width: 52%; height: auto; transform: rotate(-5deg);
    background: #fff; border-radius: 2px; box-shadow: 0 18px 40px rgba(4, 20, 14, .38); }
  [dir="rtl"] .who-sheet { transform: rotate(5deg); }
  .who-cap { margin-block-start: 22px; }
  .who-name { font-size: 1.7rem; }
  .who-cap ul { margin-block-start: 8px; font-size: .97rem; line-height: 1.75; }
}
@media (min-width: 1200px) { .who-sheet { inset-inline-start: -36%; top: 54%; width: 58%; } }
@media (min-width: 960px) and (max-height: 920px) {
  .hero { padding-block: clamp(36px, 4.4vw, 64px) clamp(48px, 5vw, 72px); }
  .hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); }
  .who-photo { aspect-ratio: 360 / 400; }
}
.js .hero .who { animation: fade .9s ease .15s both; }
.js .hero .hero-price { animation: rise .8s var(--ease) .4s both; }
.closing { padding-block: var(--pad); }

/* The research, second on Home */
.research-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .research-grid { grid-template-columns: 5fr 7fr; column-gap: clamp(48px, 7vw, 96px); } }
.research-grid h2 { max-width: 15ch; }
.research-lede { margin-block-start: 22px; max-width: 26em; color: var(--slate); }
.research .text-link { display: inline-block; margin-block-start: 20px; padding-block: 8px; font-weight: 600; color: var(--chalk); text-decoration-thickness: 2px; text-decoration-color: var(--pale); text-underline-offset: .28em; }
.research .text-link:hover { text-decoration-color: currentColor; }
.finding { padding-block: 24px 26px; border-block-start: 1px solid var(--rule); }
.finding:last-child { border-block-end: 1px solid var(--rule); }
.finding h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.finding p { margin-block-start: 8px; max-width: 36em; }
.finding .src { margin-block-start: 6px; font-size: .9rem; color: var(--slate); }
.finding .src a { color: inherit; text-decoration-color: var(--pale); text-underline-offset: .22em; }
.lesson-min { margin-block-start: clamp(56px, 7vw, 88px); }
.lesson-min .small-h { margin-block-end: 26px; }
.method.mins .share { margin-block-end: 6px; font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
.method.mins h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .method.mins h3 { line-height: 1.7; }

/* From the lesson notebook: the marked sheets laid out straight, each with a caption. Phones scroll sideways. */
.nb-head { display: grid; gap: 16px; align-items: end; }
@media (min-width: 900px) { .nb-head { grid-template-columns: 1fr minmax(0, 26em); gap: 48px; } }
.nb-head .section-h { margin: 0; max-width: none; }
.nb-head p { color: var(--slate); }
.nb-row { display: flex; gap: 18px; margin-block-start: clamp(32px, 4vw, 56px); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  padding-block-end: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.nb-row figure { flex: 0 0 min(72%, 290px); margin: 0; scroll-snap-align: start; }
.nb-paper { background: #fff; border-radius: 2px; box-shadow: 0 1px 0 rgba(18, 58, 44, .08), 0 14px 30px rgba(18, 58, 44, .1); }
.nb-paper img { display: block; width: 100%; height: auto; }
.nb-row figcaption { margin-block-start: 12px; font-size: .92rem; line-height: 1.45; color: var(--slate); }
[dir="rtl"] .nb-row figcaption { line-height: 1.7; }
.nb-row figcaption b { display: block; font-weight: 600; color: var(--chalk); }
@media (min-width: 760px) {
  .nb-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; align-items: start; margin-inline: 0; padding-inline: 0; padding-block-end: 0; overflow: visible; }
  .nb-row figure { flex: none; }
}
.nb-note { margin-block-start: 28px; font-size: .92rem; color: var(--slate); }
.nb-note a { color: var(--chalk); font-weight: 600; text-underline-offset: .22em; }

/* What I teach, more compact */
.subject-rows h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.subject-rows li { padding-block: clamp(14px, 1.6vw, 22px); border-block-end-width: 1px; }
.subject-rows li:first-child { border-block-start-width: 1px; }
.subject-rows .doodle { width: clamp(44px, 4.6vw, 64px); height: clamp(44px, 4.6vw, 64px); }
.subj-note { margin-block-end: 18px; font-weight: 500; color: var(--chalk); }

/* For parents */
.parents .route { margin-block-end: 0; gap: 40px clamp(40px, 6vw, 88px); }
.parents .route p { max-width: 44ch; }
.parents .route p { color: var(--ink); }
.parents .route a { color: var(--chalk); text-underline-offset: .22em; }
.parents .more-row { display: flex; flex-wrap: wrap; gap: 0 22px; margin-block-start: 6px; }
.parents .route .more { display: inline-block; padding-block: 6px; font-weight: 600; }

/* The example whiteboard, with an honest caption */
.steps-art img { border: 1px solid var(--rule); background: #fff; }
.steps-art a { display: block; border-radius: 6px; }
@media (min-width: 960px) { .steps-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.steps-art figcaption { margin-block-start: 10px; font-size: .88rem; color: var(--slate); }

/* About: links inside the checks list */
.checks a { color: var(--chalk); text-underline-offset: .22em; }

/* How I teach: the note parents get after each lesson, and a reference list that reads like one */
.note-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .note-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 6vw, 88px); } }
.note-grid .lead { margin-block-start: 18px; }
.note-card { margin: 0; }
.note-sheet { padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 14px 30px rgba(18, 58, 44, .08); }
.note-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-block-end: 14px; border-block-end: 2px solid var(--chalk); font-weight: 600; color: var(--chalk); }
.note-sheet dl { margin: 0; }
.note-sheet dl > div { padding-block: 12px; border-block-end: 1px solid var(--rule); }
.note-sheet dl > div:last-child { border-block-end: 0; padding-block-end: 0; }
.note-sheet dt { font-size: .88rem; color: var(--slate); }
.note-sheet dd { margin: 3px 0 0; }
.note-card figcaption { margin-block-start: 12px; font-size: .88rem; color: var(--slate); }
.refs { font-family: var(--display); font-size: 1.02rem; line-height: 1.5; }
.refs a { font-family: var(--body); font-size: .86rem; }
.board figcaption b, .walk-figure figcaption b { font-weight: 600; }

/* Medicine: the quickest way to book comes first in the price card */
.offer-first { margin-block-end: 16px; font-weight: 500; }
.offer-first a { color: var(--chalk); text-underline-offset: .22em; }

/* Pricing: the easy first step */
.start-note { margin-block-start: 22px; max-width: 60ch; font-weight: 500; color: var(--chalk); }

/* Cookie question: one slim line. The phone booking bar waits until it has been answered, so only one bar shows. */
.cookie { inset-inline: 0; bottom: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); border: 0; border-block-start: 1px solid var(--rule); border-radius: 0;
  box-shadow: 0 -8px 24px rgba(20, 33, 27, .08); font-size: .9rem; line-height: 1.4; }
.cookie > p { flex: 1 1 230px; max-width: none; margin: 0; }
.cookie-actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; margin: 0; }
.cookie-actions button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border-radius: 8px; font-size: .9rem; }
.cookie-yes { background: none; color: var(--chalk); }
@media (min-width: 760px) {
  .cookie { inset-inline: auto 16px; bottom: 16px; max-width: 600px; padding: 10px 12px 10px 18px; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 40px rgba(20, 33, 27, .16); }
  [dir="rtl"] .cookie { padding: 10px 18px 10px 12px; }
}
body.cookie-open .sticky-cta { display: none; }

/* ---------------------------------------------------------------------------------------------------------------
   Version 12 (22 Nov 2026). See the "Version 12" notes in build.py.
   1. The highlighted phrase on the first screen was cut off. There the letters are dark green on the yellow band, and
      the page behind them is dark green too, so any part of a letter outside the band disappears. The band used to
      cover only the middle of the line (12% to 92% of its height), which lost the tops of k and l in English and the
      tops and tails of the Arabic letters. On the first screen the band now covers the whole height of the letters
      and a little more. Only background-image is set here, so the sweep-in animation still works.
   2. Subject pages: a small link to the Pricing page where the price pills used to be.
   --------------------------------------------------------------------------------------------------------------- */
.hero .hl { background-image: linear-gradient(var(--hl), var(--hl)); padding-top: .08em; padding-bottom: .08em; }
/* Arabic letters reach higher and lower than Latin ones (the hamza on an alif, the tail of a final ya), so the band is
   taller there. The Arabic headline's lines sit further apart, so there is room for it. */
[dir="rtl"] .hero .hl { padding-top: .16em; padding-bottom: .16em; }

/* Subject pages: the link to the Pricing page, under the buttons */
.see-prices { margin-block-start: 14px; font-size: .97rem; }
.see-prices a {
  display: inline-block; padding-block: 10px; color: var(--slate);
  text-decoration: underline; text-decoration-color: var(--pale); text-decoration-thickness: 1px; text-underline-offset: .3em;
  transition: color .2s, text-decoration-color .2s;
}
.see-prices a:hover { color: var(--chalk); text-decoration-color: currentColor; }
