/* Qutbnuma: main stylesheet (mobile-first, no framework).
 * Generated by site-generator/gen_static.py: edit site-generator/static/style.css, not website/assets/css/style.css.
 * Colour + type tokens below are copied verbatim from brand/tokens.css at build time.
 * Rules (BRAND-BOOK 4.3-4.7): 60% Sand/Paper, 30% Ink/Night, 10% Needle. One Needle button per screen.
 * Never Needle on Ink (1.94:1): on Ink bands use Needle Glow. Status colours only with icon + words.
 * Uses logical properties (inline-start/end) so /ur/ pages (dir="rtl") mirror without extra rules.
 * Urdu-page typography (self-hosted Nastaliq @font-face, line-height, sizes) lives in static/ur.css,
 * which only /ur/ pages load.
 */

/* ---- from brand/tokens.css ---- */
:root {
  --q-ink: #0C4750;  /* Qutb Ink: Primary. Logo, headings, header/footer bands, shirts. */
  --q-deep: #08323A;  /* Deep Ink: Pressed/hover state of Ink, footer, dark photos overlay. */
  --q-night: #13262B;  /* Night: Body text (tinted near-black, never pure #000). */
  --q-slate: #4D6166;  /* Slate: Secondary text, captions, icons. */
  --q-needle: #A65436;  /* Needle: Accent. Main buttons (white text), needle tip, key links. */
  --q-glow: #EFA985;  /* Needle Glow: Accent on dark (Ink) backgrounds only: needle, highlights. */
  --q-sand: #F6EFE4;  /* Map Sand: Page background (the 60%). */
  --q-paper: #FFFCF8;  /* Paper: Cards, forms, business-card back. */
  --q-mist: #DCE8E7;  /* Mist: Soft panels, selected rows, chips. */
  --q-dune: #E6D8C3;  /* Dune: Borders and dividers on Sand. */
  --q-success: #2F6B4F;  /* Success: State only (form sent, tutor confirmed). Never branding. */
  --q-warning: #8A5300;  /* Warning: State only (pending, check details). */
  --q-error: #A32532;  /* Error: State only (form error). Always with icon + words. */
  --q-font-latin: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --q-font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  /* type scale, major third 1.25, base 16px (body 17-18px on desktop) */
  --q-fs-caption: 0.8125rem; --q-fs-small: 0.875rem; --q-fs-body: 1rem; --q-fs-lead: 1.25rem;
  --q-fs-h3: 1.5625rem; --q-fs-h2: 1.953rem; --q-fs-h1: clamp(2rem, 1.4rem + 2.4vw, 2.441rem);
  --q-fs-display: clamp(2.441rem, 1.6rem + 3.4vw, 3.052rem);
  --q-lh-latin: 1.55; --q-lh-latin-head: 1.15; --q-lh-urdu: 2.1; --q-lh-urdu-head: 1.8;
  --q-radius: 14px; --q-radius-sm: 8px;
}

:root {
  --q-needle-press: #8C4730;   /* derived: pressed/hover Needle, white text 6.86:1 */
  --q-shadow: 0 1px 2px rgba(8, 50, 58, .06), 0 8px 24px rgba(8, 50, 58, .07);
  --q-maxw: 1120px;
  --q-field: #6E7F83;          /* derived from Slate: input borders, >= 3:1 on Paper */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

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

body {
  margin: 0;
  background: var(--q-sand);
  color: var(--q-night);
  font-family: var(--q-font-latin);
  font-size: var(--q-fs-body);
  line-height: var(--q-lh-latin);
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }

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

a { color: var(--q-needle); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--q-ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--q-ink); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--q-ink); margin: 0 0 .5em; line-height: var(--q-lh-latin-head); letter-spacing: -.01em; }
h1 { font-size: var(--q-fs-h1); font-weight: 700; }
h1.display { font-size: var(--q-fs-display); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, var(--q-fs-h2)); font-weight: 700; line-height: 1.2; }
h3, .h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
@media (min-width: 900px) { h3, .h3 { font-size: 1.3rem; } }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
strong { font-weight: 700; }

/* Urdu snippets on English pages (switcher, bridge line): the phone's own font, no web font (spec A4).
   On /ur/ pages ur.css resets these two rules. */
:lang(ur) { font-family: var(--q-font-urdu); line-height: var(--q-lh-urdu); }
p :lang(ur), li :lang(ur), h1 :lang(ur), h2 :lang(ur) { line-height: 1; }   /* inline Urdu inside English text */
[lang="ur-Latn"] { font-family: var(--q-font-latin); line-height: inherit; }  /* Roman Urdu is Latin script */

.container { width: 100%; max-width: var(--q-maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

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

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 1000;
  background: var(--q-ink); color: var(--q-paper); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 8px; color: var(--q-paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--q-paper);
  border-bottom: 1px solid var(--q-dune);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; padding: 10px 0; flex: none; }
.brand img { display: block; width: 150px; height: auto; }
@media (min-width: 400px) { .brand img { width: 175px; } }

.lang-switch {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--q-dune); border-radius: 999px;
  color: var(--q-ink); text-decoration: none; font-size: 1.05rem; line-height: 1;
}
.lang-switch:hover { border-color: var(--q-ink); color: var(--q-ink); background: var(--q-mist); }
.lang-switch:lang(ur) { padding-bottom: 6px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--q-ink); background: var(--q-paper); color: var(--q-ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav { width: 100%; order: 5; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.site-nav a { display: block; padding: 8px 2px; text-decoration: none; color: var(--q-night); font-weight: 600; }
.site-nav a:hover { color: var(--q-ink); }
.site-nav a[aria-current="page"] { color: var(--q-ink); box-shadow: inset 0 -3px 0 var(--q-needle); }
.header-cta { display: none !important; }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .js .site-nav a { padding: 13px 4px; border-top: 1px solid var(--q-dune); }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--q-needle); padding-inline-start: 14px; }
}

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; gap: 18px; }
  .site-nav { width: auto; order: 0; margin-inline-start: auto; }
  .site-nav ul { padding: 0; gap: 4px 20px; }
  .site-nav a { padding: 21px 2px; }
  .lang-switch { margin-inline-start: 0; order: 1; }
  .header-cta { display: inline-flex !important; order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
/* Main action: Needle with white text (5.33:1). One per screen. */
.btn-primary { background: var(--q-needle); color: #fff; }
.btn-primary:hover { background: var(--q-needle-press); color: #fff; }
/* Header CTA: solid Ink, so the page's single Needle button stays the main action */
.btn-ink { background: var(--q-ink); color: var(--q-paper); }
.btn-ink:hover { background: var(--q-deep); color: var(--q-paper); }
/* Secondary: Ink outline on Sand/Paper */
.btn-secondary { background: transparent; color: var(--q-ink); border-color: var(--q-ink); }
.btn-secondary:hover { background: var(--q-mist); color: var(--q-ink); }
/* On Ink bands: Glow replaces Needle */
.btn-glow { background: var(--q-glow); color: var(--q-deep); }
.btn-glow:hover { background: var(--q-paper); color: var(--q-deep); }
.btn-ghost-light { background: transparent; color: var(--q-paper); border-color: rgba(255, 252, 248, .8); }
.btn-ghost-light:hover { background: rgba(255, 252, 248, .12); color: var(--q-paper); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-tight { padding: 36px 0; }
.section-alt { background: var(--q-paper); border-top: 1px solid var(--q-dune); border-bottom: 1px solid var(--q-dune); }
.section-head { max-width: 740px; margin-bottom: 28px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: var(--q-fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--q-needle); margin: 0 0 8px; }
.lead { font-size: 1.125rem; font-weight: 500; color: var(--q-slate); line-height: 1.5; }
@media (min-width: 768px) { .lead { font-size: var(--q-fs-lead); } }
.muted { color: var(--q-slate); }
.small { font-size: var(--q-fs-small); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero { padding: 32px 0 56px; background: var(--q-sand); }
@media (min-width: 900px) { .hero { padding: 64px 0 88px; } }
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 48px; } }
.hero .lead { max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-art { max-width: 400px; margin: 0 auto; width: 100%; }
@media (max-width: 899px) { .hero-art { max-width: 230px; order: -1; } }
.compass-art { display: block; width: 100%; height: auto; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--q-paper); color: var(--q-ink);
  border: 1px solid var(--q-dune); border-radius: 999px;
  padding: 6px 12px; font-weight: 600; font-size: var(--q-fs-small);
}
.trust-chips svg { width: 18px; height: 18px; color: var(--q-ink); }
.tutor-route { font-size: var(--q-fs-small); color: var(--q-slate); margin: 0; }

.bridge { margin: 0 0 14px; font-size: 1.05rem; }
html[lang="en"] .bridge { text-align: left; }
.bridge a { color: var(--q-ink); }
.promise { font-weight: 600; color: var(--q-ink); font-size: var(--q-fs-small); margin: 14px 0 0; }
.tagline-line { font-weight: 700; color: var(--q-ink); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 26px 0 32px; background: var(--q-mist); border-bottom: 1px solid var(--q-dune); }
@media (min-width: 768px) { .page-hero { padding: 40px 0 48px; } }
.page-hero h1 { margin-bottom: .35em; max-width: 26em; }
.page-hero .lead { max-width: 44em; margin-bottom: 0; color: var(--q-night); }
.page-hero .eyebrow { color: var(--q-ink); }
.page-hero a { color: var(--q-ink); }
.page-hero .btn-primary { color: #fff; }
.page-hero .hero-actions { margin: 22px 0 0; }
.page-hero .bridge { margin-top: 14px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: var(--q-fs-small); color: var(--q-slate); }
.breadcrumb li + li::before { content: "\203A"; margin-inline-end: 6px; color: var(--q-slate); }
.breadcrumb a { color: var(--q-slate); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 20px; }
}

.card { background: var(--q-paper); border: 1px solid var(--q-dune); border-radius: var(--q-radius); padding: 22px; box-shadow: var(--q-shadow); }
.section-alt .card { background: #fff; }
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-quiet { background: var(--q-sand) !important; box-shadow: none; }
.card .tag { display: inline-block; font-size: var(--q-fs-caption); font-weight: 700; color: var(--q-ink); background: var(--q-mist); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

a.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card-link:hover { border-color: var(--q-ink); transform: translateY(-2px); color: inherit; }
a.card-link .more { color: var(--q-needle); font-weight: 700; }

.card-row, a.card-link.card-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.card-row .icon { margin-bottom: 0; flex: none; }
.card-row p { margin-bottom: .4em; }

.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--q-mist); color: var(--q-ink); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }

.big-number { font-size: 2.1rem; font-weight: 800; color: var(--q-ink); line-height: 1.1; margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; background: var(--q-paper); border: 1px solid var(--q-dune); border-radius: var(--q-radius); padding: 22px 20px; box-shadow: var(--q-shadow); }
.section-alt .steps > li { background: #fff; }
.steps > li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--q-ink); color: var(--q-paper); font-weight: 800; margin-bottom: 12px;
}
.steps > li h3 { margin-bottom: .3em; }
.steps > li p:last-child { margin-bottom: 0; }
.steps-vertical { grid-template-columns: 1fr !important; max-width: 820px; }
.steps-vertical > li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start; }
.steps-vertical > li::before { margin-bottom: 0; }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-inline-start: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .22em; width: 21px; height: 21px; border-radius: 50%;
  background: var(--q-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.link-list { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.stage-list li { margin-bottom: .6em; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--q-dune); border-radius: var(--q-radius); background: var(--q-paper); box-shadow: var(--q-shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--q-dune); }
thead th { background: var(--q-mist); color: var(--q-ink); font-size: .95rem; }
tbody th { font-weight: 600; color: var(--q-night); width: 46%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.amount { font-weight: 700; color: var(--q-ink); }

/* ---------- Notices ---------- */
.notice { border-radius: var(--q-radius); padding: 18px 20px; border: 1px solid #C9DAD9; background: var(--q-mist); }
.notice a { color: var(--q-ink); }
.notice > :last-child { margin-bottom: 0; }
.notice h2, .notice h3 { margin-top: 0; }
.notice h2 svg, .notice h3 svg { width: 22px; height: 22px; vertical-align: -3px; }
.notice-accent { background: var(--q-paper); border: 1px solid var(--q-dune); border-inline-start: 5px solid var(--q-needle); }
.notice-accent a { color: var(--q-needle); }

.example { border-inline-start: 5px solid var(--q-needle); background: var(--q-paper); padding: 18px 20px; border-radius: var(--q-radius); border-start-start-radius: 0; border-end-start-radius: 0; box-shadow: var(--q-shadow); }
.example > :last-child { margin-bottom: 0; }
.example .label { display: inline-block; font-size: var(--q-fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--q-needle); margin-bottom: 6px; }

.placeholder-box { border: 2px dashed var(--q-dune); border-radius: var(--q-radius); padding: 28px 22px; text-align: center; background: var(--q-paper); max-width: 760px; margin: 0 auto; }
.placeholder-box > :last-child { margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust-strip-wrap { background: var(--q-paper); border-top: 1px solid var(--q-dune); }
.trust-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--q-fs-small); }
.trust-strip svg { width: 22px; height: 22px; flex: none; color: var(--q-ink); margin-top: 1px; }

/* ---------- Split layout ---------- */
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; } }
.split-even { display: grid; gap: 24px; }
@media (min-width: 900px) { .split-even { grid-template-columns: 1fr 1fr; gap: 40px; } }
.split-even > .example { align-self: start; }
@media (min-width: 900px) { .sticky-aside { position: sticky; top: 90px; } }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.updated { font-size: var(--q-fs-small); color: var(--q-slate); }
.toc { background: var(--q-paper); border: 1px solid var(--q-dune); border-radius: var(--q-radius); padding: 18px 20px; margin-bottom: 28px; }
.toc h2 { font-size: .9rem !important; margin: 0 0 8px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--q-slate); }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.urdu-line { font-size: 1.2rem; color: var(--q-ink); }
.about-icon { display: block; width: 72px; height: 72px; border-radius: 16px; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 840px; }
.faq-item { background: var(--q-paper); border: 1px solid var(--q-dune); border-radius: var(--q-radius-sm); box-shadow: var(--q-shadow); }
.section-alt .faq-item { background: #fff; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 18px; padding-inline-end: 52px; font-weight: 600; color: var(--q-ink); position: relative; border-radius: var(--q-radius-sm); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 600; color: var(--q-ink); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary .q-ur { display: block; font-family: var(--q-font-latin); line-height: 1.4; font-weight: 500; color: var(--q-slate); font-size: .92rem; margin-top: 3px; font-style: italic; }
.faq-body { padding: 0 18px 18px; }
.faq-body > :last-child { margin-bottom: 0; }
.faq-group-title { margin-top: 36px; }
.faq-group-title:first-child { margin-top: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--q-paper); border: 1px solid var(--q-dune); border-radius: var(--q-radius); padding: 20px 16px; box-shadow: var(--q-shadow); }
@media (min-width: 600px) { .form-card { padding: 28px; } }
.form-card h2 { font-size: 1.4rem; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field { min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--q-night); padding: 0; }
.field .hint { display: block; font-size: var(--q-fs-small); color: var(--q-slate); margin: 6px 0 0; font-weight: 400; line-height: 1.45; }
.field legend + .hint { margin: -2px 0 8px; }
.req { color: var(--q-error); margin-inline-start: 2px; }
.optional { font-weight: 500; color: var(--q-slate); font-size: .9rem; }

.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--q-night);
  background: #fff; border: 1.5px solid var(--q-field); border-radius: var(--q-radius-sm);
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-inline-end: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C4750' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--q-ink); outline-offset: 1px; border-color: var(--q-ink); }
.field [aria-invalid="true"] { border-color: var(--q-error); background-color: #FFF8F7; }
.error-msg { color: var(--q-error); font-weight: 600; font-size: var(--q-fs-small); margin: 6px 0 0; }
.error-msg::before { content: "\26A0\FE0E  "; }
.error-msg:empty { display: none; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; display: inline-flex; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--q-field); border-radius: 999px; background: #fff;
  cursor: pointer; font-weight: 600; user-select: none;
}
.option input[type="checkbox"] + span::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--q-field); border-radius: 4px; margin-inline-end: 8px; flex: none; background: #fff; }
.option input[type="checkbox"]:checked + span::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C4750' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.option input:checked + span { background: var(--q-ink); border-color: var(--q-ink); color: var(--q-paper); }
.option input:focus-visible + span { outline: 3px solid var(--q-ink); outline-offset: 2px; }
.option:hover span { border-color: var(--q-ink); }
fieldset[aria-invalid="true"] .option span { border-color: var(--q-error); }

.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--q-ink); flex: none; }
.check-row label { font-weight: 500; }

.form-actions { margin-top: 24px; }
.form-actions .small { margin: 10px 0 0; }

.error-summary { border: 2px solid var(--q-error); background: #FBEFEF; border-radius: var(--q-radius-sm); padding: 16px 18px; margin-bottom: 22px; }
.error-summary h2 { font-size: 1.1rem; color: var(--q-error); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.error-summary h2 svg { width: 22px; height: 22px; }
.error-summary a { color: var(--q-error); font-weight: 600; }

.success-panel { border: 2px solid var(--q-success); background: #EEF5F1; border-radius: var(--q-radius); padding: 20px; margin-bottom: 22px; }
.success-panel h2 { font-size: 1.3rem; color: var(--q-success); }
.success-panel h2::before { content: "\2713  "; }
.success-panel .ref { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid #BCD6C8; }
.success-panel textarea { width: 100%; min-height: 160px; font: .92rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 12px; border: 1.5px solid var(--q-field); border-radius: var(--q-radius-sm); background: #fff; color: var(--q-night); margin: 8px 0 12px; }

/* ---------- CTA band (Ink, with Glow accents) ---------- */
.cta-band { background: var(--q-ink); color: var(--q-sand); border-radius: 24px; padding: 36px 20px; text-align: center; }
@media (min-width: 768px) { .cta-band { padding: 52px 40px; } }
.cta-band .eyebrow { color: var(--q-glow); }
.cta-band h2 { color: var(--q-paper); }
.cta-band p { max-width: 40em; margin-inline: auto; }
.cta-band a:not(.btn) { color: var(--q-glow); }
.cta-band .btn-row { justify-content: center; margin-top: 22px; }
.cta-band .small { color: var(--q-mist); margin: 16px auto 0; }
.cta-band :focus-visible { outline-color: var(--q-glow); }

/* ---------- Tutor terms box ---------- */
.terms-box { background: var(--q-paper); border: 2px solid var(--q-ink); border-radius: var(--q-radius); padding: 22px 18px; box-shadow: var(--q-shadow); }
@media (min-width: 600px) { .terms-box { padding: 28px; } }
.terms-box h3 { font-size: 1.1rem; margin-top: 0; }

/* ---------- Jobs ---------- */
.job-list { list-style: none; }
.job-date { font-size: var(--q-fs-caption); color: var(--q-slate); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.job-meta { list-style: none; padding: 0; margin: 0 0 16px; font-size: var(--q-fs-small); }

/* ---------- Footer (Ink band: text Sand/Mist, accents Glow; never Needle) ---------- */
.site-footer { background: var(--q-ink); color: var(--q-sand); padding: 48px 0 0; font-size: .97rem; }
.site-footer a { color: var(--q-paper); }
.site-footer a:hover { color: var(--q-glow); }
.site-footer :focus-visible { outline-color: var(--q-glow); }
.brand-rev { display: inline-block; margin: -10px 0 8px; margin-inline-start: -12px; }
.brand-rev img { display: block; width: 200px; height: auto; }
.footer-tagline { color: var(--q-glow); font-weight: 700; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; } }
.site-footer h2 { font-size: var(--q-fs-caption); color: var(--q-glow); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 18px; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { background: var(--q-deep); margin-top: 28px; padding: 18px 0 96px; font-size: .9rem; color: var(--q-mist); } /* bottom room for the floating WhatsApp button */
@media (min-width: 640px) { .footer-bottom { padding-bottom: 80px; } }
.footer-bottom p { margin-bottom: 6px; }

/* ---------- Floating WhatsApp button (Ink with a Sand ring, so it reads on Sand and on the Ink footer) ---------- */
.wa-float {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--q-ink); color: var(--q-paper); text-decoration: none; font-weight: 700;
  border: 2px solid var(--q-sand); border-radius: 999px; padding: 13px;
  box-shadow: 0 10px 28px rgba(8, 50, 58, .28);
}
.wa-float:hover { background: var(--q-deep); color: var(--q-paper); }
.wa-float svg { width: 30px; height: 30px; flex: none; color: var(--q-glow); }
.wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) {
  .wa-float { padding-block: 11px; padding-inline: 14px 22px; }
  .wa-float .wa-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
/* Focus: Ink ring (reads on Sand/Paper) plus a Glow halo (reads when the button floats over the Ink footer) */
.wa-float:focus-visible { outline: 3px solid var(--q-ink); outline-offset: 3px; box-shadow: 0 0 0 9px var(--q-glow), 0 10px 28px rgba(8, 50, 58, .28); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(4rem, 18vw, 7rem); font-weight: 800; color: var(--q-dune); line-height: 1; margin-bottom: 8px; }
.notfound .btn-row { justify-content: center; }
.notfound-links { text-align: start; max-width: 720px; margin-inline: auto; }

@media print {
  .site-header, .wa-float, .cta-band, .nav-toggle { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}
