/* Self-hosted fonts (Inter: SIL OFL, Caladea: Apache 2.0). Latin subset. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-Bold.woff") format("woff"); }
@font-face { font-family: "Caladea"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/caladea-Regular.woff") format("woff"); }
@font-face { font-family: "Caladea"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/caladea-Bold.woff") format("woff"); }
/* City Home Tutors: front page styles
   Concept: the exercise book. Ruled paper, a red margin line, book-spine tiles. */

:root {
  --ink: #1a2b6d;
  --ink-deep: #121d4d;
  --ink-soft: #4a5788;
  --marigold: #f5b301;
  --marigold-soft: #fff3cc;
  --margin: #d9432f;
  --leaf: #12805c;
  --wa: #1fa855;
  --sky: #eef4ff;
  --rule: #c9d8f5;
  --paper: #ffffff;
  --text: #1c2340;
  --muted: #566086;

  --font-display: "Caladea", "Cambria", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--sky);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f48; }
.btn-primary { background: var(--marigold); color: var(--ink-deep); box-shadow: 0 3px 0 #c48f00; }
.btn-primary:hover { background: #ffc21f; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.05; color: var(--ink); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .01em; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; color: var(--text); }
.nav a:hover { background: var(--sky); color: var(--ink); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; flex-direction: column; gap: 5px; padding: 12px; background: none; border: 0; cursor: pointer; border-radius: 8px; }
.menu-btn span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--rule); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px var(--gutter); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--sky); }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; }
  .header-cta { display: inline-flex; padding: 10px 18px; }
  .menu-btn { display: none; }
  .mobile-nav, .mobile-nav.open { display: none; }
}

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.12fr .88fr; } }

.notebook {
  position: relative; background: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule) 35px, var(--rule) 36px);
  background-position: 0 14px;
  border-radius: var(--radius); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -22px rgba(26,43,109,.35);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(52px, 8vw, 84px);
}
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(36px, 6vw, 62px); width: 2px; background: var(--margin); opacity: .85; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); letter-spacing: -.01em; line-height: 1.08; }
.hero-sub { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text); max-width: 46ch; line-height: 36px; }
.hero-points { margin-top: 18px; display: grid; gap: 0; }
.hero-points li { display: flex; align-items: flex-start; gap: 12px; line-height: 36px; font-weight: 500; font-size: .97rem; }
.hero-points svg { width: 22px; height: 22px; flex: none; color: var(--leaf); margin-top: 7px; }
@media (max-width: 520px) {
  .notebook { padding: 22px 16px 22px 46px; }
  .notebook::before { left: 34px; }
  .hero-points li { font-size: .93rem; gap: 8px; }
}
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.phone-link { align-self: center; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; }
.phone-link:hover { text-decoration: underline; }

/* Request slip */
.slip { background: var(--marigold-soft); border: 2px dashed #e0a700; border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); position: relative; }
.slip h2 { font-size: 1.55rem; }
.slip > p { margin-top: 6px; color: var(--ink-soft); font-size: .95rem; }
.slip form { margin-top: 18px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; color: var(--ink); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pill-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: block; text-align: center; padding: 11px 10px; border-radius: 10px; background: #fff; border: 2px solid #ecd68a; font-weight: 600; font-size: .95rem; color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.select, .slip select, .job-filters select {
  width: 100%; appearance: none; padding: 12px 40px 12px 14px; border-radius: 10px; border: 2px solid #ecd68a; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a2b6d'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' stroke='%231a2b6d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
  font: 500 1rem var(--font-body); color: var(--text);
}
.two { display: grid; gap: 14px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.slip .btn { width: 100%; margin-top: 4px; }
.slip-note { font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* Levels (book spines) */
.levels { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .levels { grid-template-columns: repeat(4, 1fr); } }
.level {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px;
  padding: 18px 16px 16px 22px; border-radius: 6px 12px 12px 6px; text-decoration: none; color: #fff;
  box-shadow: inset 8px 0 0 rgba(0,0,0,.18), 0 10px 20px -14px rgba(18,29,77,.6);
  transition: transform .18s ease;
}
.level:hover { transform: translateY(-4px) rotate(-.6deg); }
.level h3 { color: inherit; font-size: 1.22rem; }
.level p { font-size: .85rem; opacity: .92; line-height: 1.4; margin-top: 6px; }
.level .go { font-size: .85rem; font-weight: 600; margin-top: 10px; }
.l-ink { background: var(--ink); }
.l-leaf { background: var(--leaf); }
.l-red { background: var(--margin); }
.l-gold { background: var(--marigold); color: var(--ink-deep); }

/* Cities */
.cities { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cities { grid-template-columns: repeat(3, 1fr); } }
.city { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.city:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 24px -18px rgba(26,43,109,.5); }
.city h3 { font-size: 1.4rem; }
.city p { color: var(--muted); font-size: .92rem; }
.city .go { margin-top: 8px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.city-online { background: var(--ink); border-color: var(--ink); }
.city-online h3, .city-online .go { color: #fff; }
.city-online p { color: #cdd6f6; }
.city-online:hover { border-color: var(--marigold); }

/* Subjects */
.subjects { background: #fff; border-block: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--sky); border: 1px solid var(--rule); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); transition: background .15s, color .15s; }
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* How it works */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--rule); }
.step::before { content: counter(step); position: absolute; top: -18px; left: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--marigold); color: var(--ink-deep); font: 700 1.25rem var(--font-display); box-shadow: 0 3px 0 #c48f00; }
.step h3 { font-size: 1.3rem; margin-top: 6px; }
.step p { margin-top: 8px; color: var(--muted); }

/* Why us */
.why { display: grid; gap: 14px; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.why .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--marigold-soft); color: var(--ink); }
.why .ic svg { width: 24px; height: 24px; }
.why h3 { font-size: 1.15rem; }
.why p { margin-top: 4px; color: var(--muted); font-size: .94rem; }

/* Tutor band */
.band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); display: grid; gap: 22px; align-items: center; background-image: radial-gradient(circle at 100% 0, rgba(245,179,1,.22), transparent 45%); }
@media (min-width: 820px) { .band { grid-template-columns: 1.4fr 1fr; } }
.band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.band p { margin-top: 10px; color: #d6defa; max-width: 52ch; }
.band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 820px) { .band .btns { justify-content: flex-end; } }
.band .btn-ghost { border-color: #fff; color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--margin); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--ink); }
.faq .ans { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* Footer */
.site-footer { background: var(--ink-deep); color: #c9d2f3; padding-block: 56px 28px; margin-top: clamp(48px, 7vw, 88px); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; color: #fff; font-weight: 600; margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li + li { margin-top: 8px; }
.foot-brand .brand-name, .foot-brand .brand-name small { color: #fff; }
.foot-brand .brand-name small { color: #aab5e6; }
.foot-brand p { margin-top: 14px; max-width: 34ch; font-size: .95rem; }
.foot-contact { margin-top: 14px; font-weight: 600; color: #fff; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Listing pages ---------- */
.page-hero { padding-block: 20px clamp(32px, 5vw, 56px); }
.crumbs { margin-bottom: 18px; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero .notebook h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page-hero .hero-sub { line-height: 36px; }

.tutor-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tutor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tutor-grid { grid-template-columns: repeat(3, 1fr); } }
.tutor { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.tutor-top { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 1.1rem var(--font-display); }
.tutor h3 { font-size: 1.15rem; }
.tutor .headline { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.subjects-line { font-weight: 600; font-size: .93rem; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--sky); border: 1px solid var(--rule); font-size: .78rem; font-weight: 600; color: var(--ink); }
.tag-demo { background: var(--marigold-soft); border-color: #e0a700; }
.btn-sm { padding: 10px 16px; font-size: .92rem; margin-top: auto; align-self: flex-start; }
.empty { background: #fff; border: 2px dashed var(--rule); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; justify-items: start; }
.empty p { max-width: 56ch; }

.wrap.prose > * { max-width: 820px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.prose h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.prose p { color: var(--text); max-width: 70ch; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bullets { display: grid; gap: 8px; padding-left: 0; }
.bullets li { position: relative; padding-left: 26px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 3px var(--marigold-soft); }
.prose .chips { margin-top: 4px; }

/* ---------- Tutor application and profiles ---------- */
.field input[type="text"], .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid #ecd68a; background: #fff;
  font: 500 1rem var(--font-body); color: var(--text);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #8b92b3; font-weight: 400; }
.field input[type="text"]:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .check-grid { grid-template-columns: repeat(3, 1fr); } }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: block; text-align: center; padding: 10px 8px; border-radius: 10px; background: #fff; border: 2px solid #ecd68a; font-weight: 600; font-size: .88rem; color: var(--ink); }
.check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-error { background: #fde8e4; border: 1px solid var(--margin); color: #8f2312; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: .92rem; }
.form-error[hidden] { display: none; }
.steps-4 { display: grid; gap: 22px; }
@media (min-width: 700px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }

.tutor h3 a { text-decoration: none; color: inherit; }
.tutor h3 a:hover { text-decoration: underline; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; }
.card-actions .btn-sm { margin-top: 0; }
.text-link { font-weight: 600; font-size: .92rem; color: var(--ink); text-underline-offset: 3px; }

.profile-top { margin-bottom: 14px; align-items: center; }
.profile-top h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.profile-top .headline { color: var(--muted); margin-top: 4px; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.notebook .tags { margin-bottom: 4px; }
.facts { margin: 16px 0 18px; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e0a700; }
.facts dt { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.slip .btn-wa { width: 100%; }

.page-hero .hero-grid { align-items: start; }

/* static pages: spacing between sections, button links inside prose */
.prose h2 { margin-top: 36px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; }
.prose a.btn { text-decoration: none; display: inline-flex; margin-top: 8px; }
.prose a.btn-wa { color: #fff; }
.wrap.prose > .tutor-grid { max-width: none; }

/* popular searches block: space between city groups */
#popular .wrap > div:not(.section-head) { margin-bottom: 26px; }
#popular h3 { margin: 0 0 12px; }
#popular .chips { gap: 10px; }
.prose h3 + .chips, .prose h3 + ul.chips { margin-top: 10px; }

/* tuition jobs board */
.job-filters { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 14px; max-width: 760px; }
@media (min-width: 640px) { .job-filters { grid-template-columns: repeat(3, 1fr); } }
.job[hidden], .empty[hidden] { display: none; }

/* ---- Front page: moments, approach, promise, final call to action ---- */
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .moments { grid-template-columns: repeat(3, 1fr); } }
.moment {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 18px; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--marigold); border-radius: 4px 14px 14px 4px;
  box-shadow: 0 10px 22px -18px rgba(18,29,77,.5); transition: transform .15s ease, box-shadow .15s ease;
}
.moment:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -18px rgba(18,29,77,.6); }
.moment:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.moment h3 { font-size: 1.2rem; }
.moment p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.moment .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.moments li:nth-child(3n+2) .moment { border-left-color: var(--leaf); }
.moments li:nth-child(3n) .moment { border-left-color: var(--margin-red, #d9432f); }

.approach { display: grid; gap: 28px; padding: 30px 22px; background: var(--ink); color: #fff; border-radius: 18px; }
@media (min-width: 900px) { .approach { grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 44px 44px; } }
.approach h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.approach p { color: #dbe4ff; line-height: 1.65; margin: 0 0 12px; max-width: 54ch; }
.approach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.approach-list li { padding: 16px 18px; background: rgba(255,255,255,.08); border-left: 4px solid var(--marigold); border-radius: 4px 12px 12px 4px; }
.approach-list h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.approach-list p { margin: 0; font-size: .95rem; line-height: 1.55; }

.promise { padding: 28px 22px; background: var(--marigold-soft, #fff4cf); border: 2px dashed #e0a700; border-radius: 16px; }
@media (min-width: 900px) { .promise { padding: 36px 44px; } }
.promise h2 { margin-bottom: 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .promise ul { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.promise li { line-height: 1.6; color: var(--text); }
.promise strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }

.cta-final { display: grid; gap: 20px; align-items: center; padding: 34px 24px; background: var(--ink); color: #fff; border-radius: 18px; }
@media (min-width: 900px) { .cta-final { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.cta-final p { color: #dbe4ff; margin: 0; max-width: 52ch; line-height: 1.6; }
.cta-final .btns { display: grid; gap: 10px; justify-items: start; }
.cta-final .phone-link { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* blog: images, table of contents, cards */
.post-img { margin: 22px 0; }
.post-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--rule); background: #fff; }
.toc { margin: 22px 0 28px; padding: 18px 22px; background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--marigold); border-radius: 4px 14px 14px 4px; }
.toc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.toc a { color: var(--ink); text-underline-offset: 3px; }
.prose h2[id] { scroll-margin-top: 90px; }
.post-card img { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 12px; border: 1px solid var(--rule); }
.post-card > a { display: block; }

/* ---- Filters, pager, job cards ---- */
.filters { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-items: end; margin: 0 0 12px; padding: 18px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.filters select { width: 100%; appearance: none; padding: 11px 38px 11px 12px; border-radius: 10px; border: 2px solid #ecd68a; font: 500 .97rem var(--font-body); color: var(--text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' stroke='%231a2b6d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }
.filters .field label { font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--sky); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.filter-item[hidden], [data-filter-empty][hidden] { display: none; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.pager:empty { display: none; }
.pager button { min-width: 42px; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--rule); background: #fff; color: var(--ink); font: 600 .95rem var(--font-body); cursor: pointer; }
.pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.job-meta { margin: 0; font-size: .93rem; color: var(--text); }
.tag-open { background: #dff5e9; border-color: #8fd0ae; color: #0d5b41; }
.tag-closed { background: #eee; border-color: #cfcfcf; color: #555; }
.closed-note { font-weight: 600; color: var(--muted); }

/* ---- Mega menu (desktop) ---- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.mega-toggle { display: inline-grid; place-items: center; width: 26px; height: 30px; margin-left: -8px; background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer; }
.mega-toggle:hover { background: var(--sky); }
.mega-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.mega-toggle svg { transition: transform .15s ease; }
.has-mega.open .mega-toggle svg { transform: rotate(180deg); }
.mega { display: none; position: absolute; top: 100%; left: -24px; z-index: 60; width: min(1040px, 94vw); padding: 24px 28px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(18,29,77,.45); grid-template-columns: repeat(5, 1fr); gap: 20px; }
.has-mega:hover .mega, .has-mega.open .mega, .has-mega:focus-within .mega { display: grid; }
.mega-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega a { display: block; padding: 5px 8px; margin: 0 -8px; font-size: .93rem; font-weight: 500; border-radius: 6px; color: var(--text); text-decoration: none; }
.mega a:hover { background: var(--sky); color: var(--ink); }
.nav a, .nav-item a { white-space: nowrap; }
.site-header .btn, .nav .btn { white-space: nowrap; }
@media (min-width: 861px) { .has-mega { position: static; } .mega { left: 50%; transform: translateX(-50%); top: calc(100% - 4px); } }
.prose h4 { margin: 18px 0 6px; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }

.hire { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(20px, 4vw, 48px); align-items: start; background: var(--sky); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.hire form { display: grid; gap: 14px; }
.hire select, .hire textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #c9d6f2; border-radius: 10px; background: #fff; color: var(--text); }
.hire textarea { resize: vertical; }
.hire .btn { width: 100%; }
@media (max-width: 800px) { .hire { grid-template-columns: 1fr; } }
.fee-line { margin: 4px 0 8px; font-size: .9rem; font-weight: 600; color: var(--leaf); }

.apply-box, .match-box { background: var(--sky); border: 1.5px solid #c9d6f2; border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 22px 0; }
.apply-box h3, .match-box h3 { margin: 0 0 6px; }
.apply-box form { display: grid; gap: 12px; max-width: 420px; margin-top: 14px; }
.match-box { display: grid; gap: 12px; }
.match-box form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.match-box input[type="text"], .apply-box input[type="text"] { font: inherit; padding: 10px 12px; border: 1.5px solid #c9d6f2; border-radius: 10px; background: #fff; min-width: 220px; }
.match-box .check { display: inline-flex; gap: 8px; align-items: center; font-size: .95rem; }
.apply-result { margin: 8px 0 0; font-weight: 500; }
.apply-result.good { color: var(--leaf); }
.apply-result.bad { color: var(--margin); }
.apply-result ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.match-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.match-badge.yes { background: #dff5ea; color: var(--leaf); }
.match-badge.no { background: #eceef6; color: #5a6385; }
.match-box .check input { position: static; opacity: 1; width: 18px; height: 18px; accent-color: var(--ink); }

/* Tutor categories */
.tier { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tier-premium { background: var(--marigold); color: #3a2a00; }
.tier-professional { background: #dff5ea; color: var(--leaf); }
.tier-foundation { background: #e3ebff; color: var(--ink); }
.tier-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-card { background: #fff; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 22px; border-top: 6px solid var(--ink); }
.tier-card-premium { border-top-color: var(--marigold); }
.tier-card-professional { border-top-color: var(--leaf); }
.tier-card h3 { margin: 0 0 8px; }
.tier-detail { color: var(--muted); font-size: .95rem; }

/* Front page: Premium tutors carousel */
.top-band { background: var(--ink-deep); color: #fff; padding: clamp(34px, 5vw, 56px) 0 clamp(26px, 4vw, 40px); overflow: hidden; }
.top-band .section-head h2 { color: #fff; }
.top-band .section-head p { color: #c9d4f5; max-width: 62ch; }
.top-marquee { margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.top-track { list-style: none; margin: 0; padding: 6px 0 10px; display: flex; gap: 18px; width: max-content; animation: top-scroll 48s linear infinite; }
.top-marquee:hover .top-track, .top-marquee:focus-within .top-track { animation-play-state: paused; }
@keyframes top-scroll { to { transform: translateX(calc(-50% - 9px)); } }
.top-card { position: relative; flex: 0 0 300px; background: #fff; color: var(--text); border-radius: 18px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 34px -22px rgba(0,0,0,.6); border-bottom: 5px solid var(--marigold); }
.top-head { display: flex; gap: 12px; align-items: center; }
.top-head h3 { margin: 4px 0 0; font-size: 1.12rem; line-height: 1.2; }
.top-head h3 a { color: var(--ink); text-decoration: none; }
.top-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--marigold); margin: 3px 6px 3px 3px; }
.top-headline { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.top-subjects, .top-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.top-certs { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.top-certs span { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sky); color: var(--ink); border: 1px solid var(--rule); }
.top-fee { margin: 0; font-weight: 700; color: var(--leaf); }
.top-actions { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 6px; }
.top-sample { align-self: flex-start; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--marigold-soft); color: #7a5a00; }
.top-all { margin: 14px 0 0; text-align: center; color: #c9d4f5; }
.top-all .text-link { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .top-track { animation: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 20px; }
  .top-card { scroll-snap-align: start; }
  .top-card[aria-hidden="true"] { display: none; }
}

.fact-note { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.teaches-at, .top-at { margin: 0; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.tier-meaning { margin: 0 0 8px; color: var(--ink); }

/* Reviews */
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { background: #fff; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.review blockquote { margin: 8px 0 12px; font-size: 1.02rem; }
.review-by { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.stars { color: var(--marigold); letter-spacing: 2px; }
.stars-off { color: #d9def0; }

/* Tutor rules */
.rules-box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: 8px 8px 0 var(--marigold); }
.rules-box h3 { margin: 26px 0 8px; font-size: 1.15rem; color: var(--ink); }
.rules-lead { color: var(--muted); max-width: 70ch; }
.rules { margin: 0; padding-left: 28px; display: grid; gap: 12px; max-width: 78ch; }
.rules li { padding-left: 4px; }
.rules li::marker { font-weight: 700; color: var(--margin); }
.rules-meta { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.rules-accept { margin-top: 22px; padding-top: 20px; border-top: 2px dashed var(--rule); display: grid; gap: 12px; justify-items: start; }
.rules-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.rules-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.rules-lock { display: grid; gap: 12px; margin-top: 10px; }
.rules-lock .btn { width: 100%; }

/* Tutor intro video */
.video-facade { position: relative; display: block; max-width: 640px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 18px 34px -22px rgba(0,0,0,.55); }
.video-facade img, .video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); color: var(--ink-deep); box-shadow: 0 0 0 6px rgba(255,255,255,.55); transition: transform .15s ease; }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-facade:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.video-note { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.tag-video { background: #ffe9e5; color: var(--margin); font-weight: 700; }

/* International section */
.intl-band { margin-top: 8px; }
.intl-empty { color: #c9d4f5; margin: 20px 0 0; }
.intl-empty .text-link { color: #fff; }
.board-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
.board-card { background: #fff; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 20px; border-left: 6px solid var(--marigold); }
.board-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.board-card h3 a { color: var(--ink); }
.board-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.intl-card { background: var(--ink-deep); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; align-items: center; border-bottom: 6px solid var(--marigold); }
@media (min-width: 900px) { .intl-card { grid-template-columns: 1.3fr 1fr; } }
.intl-card h2 { color: #fff; }
.intl-card p { color: #c9d4f5; max-width: 60ch; }
.intl-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 16px; }
.intl-actions .text-link { color: #fff; }
.intl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.intl-chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; text-decoration: none; }
.intl-chips a:hover { background: var(--marigold); color: var(--ink-deep); border-color: var(--marigold); }

/* Contact dock: Call + WhatsApp on every page. Floating stack on desktop, full-width bar on phones. */
.dock { position: fixed; z-index: 60; display: flex; }
.dock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-weight: 700; font-size: 1rem; text-decoration: none; color: #fff; transition: transform .15s, background .15s; }
.dock-btn svg { width: 24px; height: 24px; flex: none; }
.dock-call { background: var(--ink); }
.dock-call:hover { background: var(--ink-deep); }
.dock-wa { background: var(--wa); }
.dock-wa:hover { background: #178f48; }
.dock-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
@media (min-width: 768px) {
  .dock { right: 18px; bottom: 18px; flex-direction: column; gap: 10px; }
  .dock-btn { width: 56px; height: 56px; min-height: 0; border-radius: 50%; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
  .dock-btn:hover { transform: scale(1.07); }
  .dock-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 767px) {
  .dock { left: 0; right: 0; bottom: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: rgba(255,255,255,.97); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px -10px rgba(0,0,0,.35); }
  .dock-btn { flex: 1; border-radius: 12px; min-height: 50px; }
  body { padding-bottom: 74px; }
}
.foot-address { margin-top: 14px; font-style: normal; font-size: .95rem; line-height: 1.6; color: #dfe5ff; }
.office { font-style: normal; line-height: 1.8; margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--marigold); background: var(--sky); border-radius: 0 10px 10px 0; }
.prose .btn + .btn, .prose .btn-ghost { margin-left: 6px; }

/* Touch targets on phones: standalone links get a 44px hit area. Inline links inside sentences are left alone. */
@media (max-width: 767px) {
  .text-link, .crumbs a, .phone-link, .foot-contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs ol { gap: 0; }
  .site-footer li { margin-top: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .chip { padding: 12px 18px; }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .band .btns, .cta-final .btns { flex-direction: column; align-items: stretch; }
  .band .btns .btn, .cta-final .btns .btn { width: 100%; }
  .btn { min-height: 48px; }
}
@media (max-width: 767px) {
  main ul:not(.bullets) > li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
}
