/* ShengoHub website design — shared styles.
   Colours are taken from the live site (gold #dba747, cream footer). */
:root {
  --gold: #dba747;
  --gold-dark: #b9862a;
  --gold-soft: #f7ecd4;
  --cream: #efe6d4;
  --ink: #1d1a14;
  --ink-2: #4a443a;
  --muted: #6b6457;
  --line: #e7e1d4;
  --bg: #ffffff;
  --bg-2: #faf8f3;
  --ok: #2e7d4f; --ok-soft: #e3f3e9;
  --err: #b3261e; --err-soft: #fbe6e4;
  --todo: #fff3a6;
  --radius: 14px;
  /* Fonts: headlines in Instrument Serif; h3/h4, body, buttons and labels in Plus Jakarta Sans. */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 6px 24px rgba(60, 45, 15, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h1 em, h2 em { font-style: italic; }
h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.section { padding-block: 56px; }
.section.alt { background: var(--bg-2); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Content ShengoHub must supply. Highlighted so nobody ships it by mistake. */
.todo { background: var(--todo); outline: 1px dashed #c9a400; border-radius: 3px; padding: 0 3px; }
.todo-note { background: var(--todo); border: 1px dashed #c9a400; border-radius: 8px; padding: 10px 14px; font-size: .9rem; }
body.hide-todo .todo, body.hide-todo .todo-note { background: none; outline: none; border: none; }
body.hide-todo .todo-note { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: 700 1rem var(--display); cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.35rem var(--display); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold); display: grid; place-items: center; font-size: 1.1rem; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dark); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.header-actions .btn { padding: 9px 18px; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 72px; row-gap: 0; }
  .site-header .brand { min-height: 72px; }
  .site-header.open { background: #fff; }
  .site-header.open .nav { display: flex; flex-direction: column; order: 3; width: 100%; margin: 0; gap: 14px; padding-block: 8px 16px; }
  .site-header.open .header-actions { display: flex; order: 4; width: 100%; margin: 0; padding-bottom: 16px; flex-wrap: wrap; }
}

/* Footer */
.site-footer { background: var(--cream); padding-block: 48px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font: 700 1rem var(--display); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #d9cdb3; margin-top: 32px; padding-top: 18px; font-size: .875rem; color: var(--muted); }
.socials { display: flex; gap: 14px; }
.socials a { font-weight: 600; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.shadow { box-shadow: var(--shadow); border-color: transparent; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font: 800 1.1rem var(--display); margin-bottom: 10px; }

/* Forms */
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.field { margin-bottom: 14px; }
.field-error { color: var(--err); font-size: .85rem; margin-top: 4px; }
.invalid { border-color: var(--err) !important; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-err { background: var(--err-soft); color: var(--err); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }

/* Hero search */
.hero { padding-block: 48px 64px; background: linear-gradient(180deg, #fffaf0, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 .accent { color: var(--gold-dark); }
.hero-art { aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold) 70%); display: grid; place-items: center; font-size: 6rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.search { display: grid; grid-template-columns: 1.3fr 1fr auto auto; gap: 8px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 22px; }
.search input, .search select { border: 0; background: var(--bg-2); }
.search .btn { padding-inline: 26px; }
.toggle { display: flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; padding: 0 8px; margin: 0; }
.toggle input { width: auto; }
@media (max-width: 720px) { .search { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .9rem; text-decoration: none; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.chip:hover, .chip.active { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

/* Tutor card */
.tutor-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tutor-photo { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; font: 800 3rem var(--display); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.tutor-photo .badge { position: absolute; top: 12px; left: 12px; background: #fff; }
.fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; }
.fav[aria-pressed="true"] { color: #d33; }
.tutor-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tutor-body h3 { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--muted); }
.tutor-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font: 800 1.25rem var(--display); }
.price small { font: 500 .8rem var(--body); color: var(--muted); }
.tutor-foot .btn { padding: 9px 16px; font-size: .9rem; }

/* Results layout */
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }

/* Profile */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .profile-grid { grid-template-columns: 1fr; } }
.book-panel { position: sticky; top: 90px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { padding: 9px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: 600 .9rem var(--body); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.summary { background: var(--bg-2); border-radius: 10px; padding: 12px 14px; font-size: .92rem; display: grid; gap: 4px; }
.summary div { display: flex; justify-content: space-between; }
.summary .total { font-weight: 800; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.mobile-book { display: none; }
@media (max-width: 960px) {
  .book-panel { position: static; }
  .mobile-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  body.has-mobile-book { padding-bottom: 76px; }
}
.avatar { width: 112px; height: 112px; border-radius: 20px; display: grid; place-items: center; font: 800 2.6rem var(--display); color: #fff; flex: none; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.checks li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* Pricing */
.plan { position: relative; }
.plan.featured { border: 2px solid var(--gold); }
.plan .ribbon { position: absolute; top: -12px; right: 20px; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan ul { padding-left: 1.1em; }
.amount { font: 800 2.4rem var(--display); }

/* Legal / long text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.banner { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 16, 8, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 20px; max-width: 420px; width: 100%; padding: 28px; position: relative; max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--bg-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Design-review toggle */
.review-toggle { position: fixed; left: 12px; bottom: 12px; z-index: 90; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: .8rem; cursor: pointer; opacity: .85; }
body.has-mobile-book .review-toggle { bottom: 88px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Prototype note above the header, and a header that stays at the top while scrolling. */
#header { position: sticky; top: 0; z-index: 50; }
#header .site-header { position: static; }
.proto-note { background: var(--ink); color: #f3ead8; font-size: .8rem; text-align: center; padding: 5px max(16px, env(safe-area-inset-left)); }

/* ---------- Tutor map (Find a tutor → Map) ---------- */
.view-toggle { display: inline-flex; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--body); cursor: pointer; color: var(--ink-2); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.find-split[data-view="map"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.find-split[data-view="list"] .find-map { display: none; }
.find-split[data-view="map"] #results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.find-map { position: sticky; top: 120px; height: calc(100vh - 140px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tutor-card.hot { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
@media (max-width: 860px) {
  .find-split[data-view="map"] { grid-template-columns: 1fr; }
  .find-split[data-view="map"] .find-list { display: none; }
  .find-map { position: relative; top: 0; height: 72vh; }
}
.tmap { position: relative; background: #cfe2ea; touch-action: none; }
.tmap svg { width: 100%; height: 100%; display: block; cursor: grab; }
.tmap svg.dragging { cursor: grabbing; }
.m-water { fill: #cfe2ea; } .m-land { fill: #f1ece0; } .m-park { fill: #dfe8cf; }
.m-roads path { stroke: #fff; stroke-width: 7; fill: none; stroke-linecap: round; }
.m-labels text { font: 500 15px var(--body); fill: #8b8272; text-anchor: middle; }
.m-labels .m-city { font-weight: 700; fill: #5f574a; }
.m-labels .m-lake { font-size: 20px; letter-spacing: 6px; font-style: italic; fill: #7fa3b2; }
.m-pin { cursor: pointer; }
.m-pin rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.m-pin path { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.m-pin text { font: 800 14px var(--body); text-anchor: middle; fill: var(--ink); }
.m-pin.on rect, .m-pin.on path, .m-pin:focus-visible rect { fill: var(--ink); }
.m-pin.on text, .m-pin:focus-visible text { fill: #fff; }
.m-pin:focus { outline: none; }
.m-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.m-zoom button { width: 38px; height: 38px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.m-zoom button + button { border-top: 1px solid var(--line); }
.m-note { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); border-radius: 10px; padding: 7px 11px; font-size: .8rem; color: var(--ink-2); box-shadow: var(--shadow); width: fit-content; max-width: calc(100% - 76px); }
.m-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; background: rgba(250,248,243,.75); pointer-events: none; padding: 20px; }
.m-pop { position: absolute; left: 12px; right: 12px; bottom: 12px; margin-inline: auto; max-width: 460px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 14px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.m-av { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 800 1.4rem var(--display); }
.m-info { display: grid; gap: 2px; font-size: .9rem; min-width: 0; padding-right: 26px; }
.m-info strong { font: 700 1.1rem var(--display); }
.m-price { font: 800 1.1rem var(--display); margin-top: 2px; }
.m-price small { font: 500 .8rem var(--body); color: var(--muted); }
.m-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.m-acts .btn { flex: 1; padding: 9px 14px; font-size: .9rem; }
.m-x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--bg-2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }

/* Map stays beside the list while scrolling (desktop); cards fit the narrower column. */
.find-map.tmap { position: sticky; }
.price small { white-space: nowrap; }
.find-split[data-view="map"] .tutor-foot { flex-wrap: wrap; }
@media (max-width: 860px) { .find-map.tmap { position: relative; } }
@media (max-width: 600px) { .m-priv { display: none; } .m-pop { padding: 12px; } }

/* ---------- Community ---------- */
.comm { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.comm-side { display: grid; gap: 16px; position: sticky; top: 120px; }
.comm-side .card { padding: 16px; }
.comm-side h3 { font-size: 1.05rem; margin: 0 0 10px; }
@media (max-width: 1080px) { .comm { grid-template-columns: 220px minmax(0, 1fr); } .comm > .comm-side:last-child { display: none; } }
@media (max-width: 760px) {
  .comm { grid-template-columns: 1fr; }
  .comm-side { position: static; }
  .comm > .comm-side:first-child .card:last-child { display: none; }
  .circles { display: flex !important; overflow-x: auto; gap: 6px !important; padding-bottom: 4px; }
  .circles button small { display: none !important; }
}
.circles, .follow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.circles button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 10px; font: 500 .92rem var(--body); cursor: pointer; color: var(--ink); white-space: nowrap; }
.circles button:hover { background: var(--bg-2); }
.circles button[aria-pressed="true"] { background: var(--gold-soft); font-weight: 700; }
.circles small, .follow small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.cic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 800 .8rem var(--display); flex: none; }
.follow li { display: flex; gap: 10px; align-items: center; font-size: .9rem; padding: 4px 0; min-width: 0; }
.follow a { font-weight: 600; color: var(--ink); text-decoration: none; }
.event { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.date { border: 1px solid var(--line); border-radius: 10px; text-align: center; overflow: hidden; }
.date small { display: block; background: var(--gold-dark); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .06em; }
.date b { font: 800 1.1rem/1.6 var(--display); }
.comm-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.comm-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font: 600 .88rem var(--body); cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.composer { padding: 14px; margin-bottom: 14px; }
.composer-open { width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 12px 14px; font: 500 .95rem var(--body); color: var(--muted); cursor: pointer; }
.composer-open:hover { border-color: var(--gold); }
.composer form { display: grid; gap: 4px; }
.composer #kindPick { margin-bottom: 10px; }
.media-preview { margin-top: 8px; border-radius: 12px; overflow: hidden; max-width: 320px; }
.media-preview img, .media-preview video { width: 100%; display: block; }
.feed { display: grid; gap: 14px; }
.post { display: grid; grid-template-columns: 48px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: visible; scroll-margin-top: 120px; }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; background: var(--bg-2); border-radius: var(--radius) 0 0 var(--radius); }
.vote button { border: 0; background: transparent; width: 32px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: .95rem; }
.vote button:hover { background: var(--gold-soft); color: var(--gold-dark); }
.vote button[data-vote="1"][aria-pressed="true"] { color: var(--gold-dark); background: var(--gold-soft); }
.vote button[data-vote="-1"][aria-pressed="true"] { color: #4a5a7a; background: #e8ecf4; }
.vote b { font: 800 .95rem var(--display); }
.pbody { padding: 12px 16px 10px; min-width: 0; }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.pmeta b { color: var(--ink); font-weight: 600; }
.ctag { border: 0; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font: 700 .78rem var(--body); padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.sample-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px dashed var(--line); padding: 1px 6px; border-radius: 6px; }
.more-wrap { position: relative; margin-left: auto; }
.more { border: 0; background: transparent; width: 30px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.more:hover { background: var(--bg-2); }
.menu { position: absolute; right: 0; top: 32px; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: grid; }
.menu button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font: 500 .88rem var(--body); cursor: pointer; }
.menu button:hover { background: var(--bg-2); }
.menu .danger { color: var(--err); }
.ptitle { font-size: 1.25rem; margin: 6px 0 4px; }
.kind { font: 700 .68rem var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; vertical-align: 3px; background: var(--bg-2); color: var(--ink-2); }
.k-moment { background: var(--gold-soft); color: var(--gold-dark); }
.k-question { background: #e8ecf4; color: #34507a; }
.k-win { background: var(--ok-soft); color: var(--ok); }
.k-tip { background: #f1e8f6; color: #6b3a87; }
.ptext { margin: 0 0 8px; color: var(--ink-2); white-space: pre-line; }
.pmedia { margin: 8px 0; border-radius: 12px; overflow: hidden; background: var(--bg-2); max-height: 460px; display: grid; place-items: center; }
.pmedia img, .pmedia video { width: 100%; max-height: 460px; object-fit: contain; display: block; background: #000; }
.pmedia.ph { height: 240px; position: relative; }
.pmedia.missing::after { content: "This photo or video isn't available to you."; color: var(--muted); font-size: .85rem; padding: 30px; }
.play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 1.3rem; color: var(--ink); padding-left: 4px; }
.phlabel { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 6px; }
.lesson-link { display: inline-block; font-size: .85rem; font-weight: 600; text-decoration: none; margin: 2px 0 6px; }
.best { border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 10px; padding: 10px 12px; background: var(--ok-soft); font-size: .9rem; margin: 6px 0; }
.best b { color: var(--ok); }
.best p { margin: 4px 0 0; color: var(--ink); }
.pactions { display: flex; gap: 4px; margin-top: 4px; }
.pactions button { border: 0; background: transparent; border-radius: 8px; padding: 6px 10px; font: 600 .85rem var(--body); color: var(--ink-2); cursor: pointer; }
.pactions button:hover { background: var(--bg-2); }
.comments { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; display: grid; gap: 10px; }
.cm { font-size: .9rem; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); }
.cm p { margin: 2px 0 0; }
.cm.is-best { background: var(--ok-soft); }
.linkbtn { border: 0; background: none; color: var(--gold-dark); font: 600 .8rem var(--body); padding: 4px 0 0; cursor: pointer; }
.reply { display: flex; gap: 8px; }
.reply input { flex: 1; min-width: 0; }
.reply .btn { padding: 8px 16px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; z-index: 300; max-width: calc(100% - 32px); text-align: center; }

/* ---------- Lesson moments on tutor profiles ---------- */
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.moment { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--bg-2); display: block; width: 100%; }
.moment img, .moment video { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .75rem; text-align: left; }
.moment .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; font-size: .9rem; }
.moment.add { border: 2px dashed var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); font: 600 .85rem var(--body); text-align: center; padding: 10px; }
.moment.add:hover { border-color: var(--gold); color: var(--gold-dark); }
.lightbox { position: fixed; inset: 0; background: rgba(10,8,4,.86); z-index: 150; display: grid; place-items: center; padding: 20px; }
.lightbox figure { margin: 0; max-width: min(900px, 100%); display: grid; gap: 10px; color: #fff; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 75vh; border-radius: 12px; display: block; margin: 0 auto; }
.lightbox .ph { width: min(560px, 90vw); aspect-ratio: 4/3; border-radius: 12px; display: grid; place-items: center; }
.lightbox figcaption { text-align: center; font-size: .95rem; }
.lightbox .close { position: absolute; top: 16px; right: 16px; }
.comm > * { min-width: 0; }
@media (max-width: 760px) { .circles li { flex: none; } .circles button { width: auto; } }
.comm-side { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) { .circles button { white-space: normal; } .circles button > span:last-child { min-width: 0; } }
.moment.missing { background: var(--bg-2); }
.moment.missing::before { content: "Not available"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }

/* ---------- Review slider ---------- */
.rslider { position: relative; }
.rs-viewport { overflow: hidden; border-radius: var(--radius); }
.rs-track { display: flex; transition: transform .6s cubic-bezier(.22,.8,.24,1); }
.rs-slide { flex: 0 0 100%; min-width: 0; margin: 0; padding: 22px 24px 18px; background: linear-gradient(160deg, var(--gold-soft), #fff 70%); border-radius: var(--radius); position: relative; display: grid; gap: 8px; }
.rslider.single .rs-slide { padding-bottom: 20px; }
.rs-quote { position: absolute; top: -6px; right: 18px; font: 800 6rem/1 var(--display); color: var(--gold); opacity: .35; pointer-events: none; }
.rs-stars { color: var(--gold-dark); letter-spacing: 2px; font-size: 1.05rem; }
.rs-stars span { color: var(--line); }
.rs-slide blockquote { margin: 0; font: 600 1.2rem/1.45 var(--display); color: var(--ink); max-width: 60ch; text-wrap: pretty; }
.rs-slide figcaption { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.rs-slide figcaption b { color: var(--ink); }
.rs-tutor { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.rs-av { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font: 800 .65rem var(--display); }
.rs-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rs-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.rs-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.rs-pause { margin-left: auto; font-size: .7rem; }
.rs-dots { display: flex; gap: 6px; }
.rs-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.rs-dot[aria-current="true"] { width: 26px; background: var(--gold); }
.rs-progress { height: 3px; background: var(--bg-2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.rs-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.rslider.paused .rs-progress span { opacity: .35; }
.rating-sum { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 14px; }
.rating-sum b { font: 800 1.8rem var(--display); }
.home-reviews .rs-slide { padding: 34px 40px 26px; }
.home-reviews .rs-slide blockquote { font-size: 1.45rem; }
@media (max-width: 620px) { .home-reviews .rs-slide { padding: 24px 20px 18px; } .home-reviews .rs-slide blockquote, .rs-slide blockquote { font-size: 1.08rem; } }
@media (prefers-reduced-motion: reduce) { .rs-track { transition: none; } .rs-progress { display: none; } }
/* Hidden slides must not widen the page. */
.rs-viewport { contain: inline-size; }
.profile-grid > div { grid-template-columns: minmax(0, 1fr); }

/* ---------- Home: rotating banner ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.promo-wrap { padding-top: 20px; }
.promo { position: relative; border-radius: 22px; overflow: hidden; background: #140b04; isolation: isolate; }
.promo-track { display: grid; }
.promo-slide { grid-area: 1 / 1; position: relative; min-height: 400px; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.promo-slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.promo-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.promo-slide.is-on .promo-art { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.promo-copy { padding: 40px clamp(20px, 9%, 120px); display: grid; justify-items: start; gap: 6px; max-width: 760px; }
.hl { display: inline-block; font: 800 clamp(1.9rem, 4.2vw, 3.3rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); padding: .08em .3em .02em; background: linear-gradient(90deg, #f6c766, #fff1cf); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-2 { margin-left: clamp(24px, 6vw, 110px); background: linear-gradient(90deg, #fff1cf, var(--gold)); }
.hl-sm { font-size: 1rem; padding: .25em .5em .15em; background: #fff1cf; letter-spacing: .04em; margin-left: clamp(24px, 6vw, 110px); }
.promo-h { margin: 0; display: grid; justify-items: start; gap: 0; }
.promo-slide.is-on .hl { animation: hlIn .7s cubic-bezier(.2,.8,.2,1) both; }
.promo-slide.is-on .promo-h .hl:nth-child(1) { animation-delay: .1s; }
.promo-slide.is-on .promo-h .hl:nth-child(2) { animation-delay: .22s; }
@keyframes hlIn { from { transform: translateX(-24px); opacity: 0; clip-path: inset(0 100% 0 0); } to { transform: none; opacity: 1; clip-path: inset(0 0 0 0); } }
.promo-cta { margin: 22px 0 0 clamp(24px, 6vw, 110px); background: #fff; color: var(--ink); text-decoration: none; font: 700 1.05rem var(--body); padding: 13px 26px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s; }
.promo-cta:hover { transform: translateY(-2px); }
.promo-ui { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 10px; align-items: center; }
.promo-dots { display: flex; gap: 6px; }
.promo-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.promo-dots button[aria-current="true"] { width: 28px; background: #fff; }
.promo-pause { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: .7rem; cursor: pointer; }
.float { animation: floaty 6s ease-in-out infinite; transform-box: fill-box; }
.float.slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.key-glow { animation: keyglow 2.4s ease-in-out infinite; }
@keyframes keyglow { 0%,100% { opacity: .1; } 50% { opacity: .55; } }
@media (max-width: 760px) {
  .promo-slide { min-height: 440px; align-items: flex-end; }
  .promo-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.55) 75%); z-index: -1; }
  .promo-copy { padding: 24px 18px 64px; }
  .hl-2, .hl-sm, .promo-cta { margin-left: 0; }
  .promo-art { transform-origin: 85% 50%; }
}

/* ---------- Home: category circles ---------- */
.cats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; padding-block: 34px 26px; }
.cat { display: grid; justify-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 .88rem var(--body); text-align: center; }
.cat-ic { width: min(108px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; }
.cat-ic svg { width: 44%; height: 44%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat:hover .cat-ic, .cat:focus-visible .cat-ic { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-3px); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .cats { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 18px; }
  .cat { flex: 0 0 84px; scroll-snap-align: start; }
}

/* ---------- Home: browsing bar + tabs ---------- */
.browse { padding-bottom: 48px; }
.browse-bar { border-block: 1px solid var(--line); }
.browse-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px; }
.browse-title { margin: 0; font: 600 1.35rem var(--body); color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.city-pick select { border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23b9862a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center; padding: 2px 28px 2px 2px; font: 700 1.35rem var(--body); color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; width: auto; }
.city-pick select:focus { box-shadow: none; outline: 2px solid var(--gold-dark); border-radius: 6px; }
.mini-search { display: flex; gap: 8px; flex: 0 1 380px; min-width: 0; }
.mini-search input { min-width: 0; }
.mini-search .btn { padding: 10px 18px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 6px 0 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 14px 2px 12px; font: 600 1rem var(--body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.tabs button:hover { color: var(--ink); }
.browse-foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .promo-slide.is-on .promo-art, .promo-slide.is-on .hl, .float, .key-glow { animation: none !important; } .promo-slide { transition: none; } }
@media (max-width: 900px) { .cats { scroll-padding-inline: max(16px, env(safe-area-inset-left)); } .cats .cat-ic { width: 76px; } }

/* ---------- Ad band (How it works, between sections) ---------- */
.ad-wrap { padding-block: 8px 56px; }
.ad-band { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #140b04, #3a220c 55%, #1a0f05); isolation: isolate; min-height: 320px; display: flex; align-items: center; box-shadow: 0 18px 40px rgba(60,40,10,.25); }
.ad-art { position: absolute; right: 0; top: 0; width: 55%; height: 100%; z-index: -1; }
.ad-copy { padding: 36px clamp(20px, 6%, 72px); display: grid; justify-items: start; gap: 6px; max-width: 640px; }
.ad-label { font: 700 .7rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: #f3e6cc; opacity: .75; margin-bottom: 6px; }
.ad-band .hl { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.ad-band .hl-2 { margin-left: clamp(18px, 4vw, 70px); }
.ad-sub { color: #f3e6cc; margin: 14px 0 4px; max-width: 46ch; }
.ad-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ad-link { color: #ffd28a; font-weight: 600; text-decoration: none; }
.ad-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .ad-band { flex-direction: column; align-items: stretch; }
  .ad-art { position: relative; width: 100%; height: 190px; }
  .ad-copy { padding: 0 20px 28px; }
  .ad-band .hl-2 { margin-left: 0; }
}
.ad-band .hl.hl-sm { font-size: 1rem; }
@media (min-width: 761px) { .ad-art { width: 48%; } }

/* ---------- Price range slider (Find a tutor) ---------- */
.price-filter label { display: flex; justify-content: space-between; gap: 8px; }
.price-filter output { font-weight: 700; color: var(--gold-dark); }
.price-filter input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; padding: 0; border: 0; border-radius: 999px; margin: 16px 0 6px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 100%), var(--line) var(--fill, 100%)); cursor: pointer; }
.price-filter input[type=range]:focus { box-shadow: none; }
.price-filter input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .15s; }
.price-filter input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.price-filter input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.price-filter input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.range-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

/* Sign-up age step */
.age-pick { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0 0 14px; display: grid; gap: 6px; }
.age-pick legend { font-weight: 700; font-size: .9rem; padding: 0 4px; }
.parent-box { background: var(--gold-soft); border-radius: 12px; padding: 14px; margin-bottom: 14px; }

/* ---------- Tutor application (tutor-apply.html) ---------- */
.apply-main { padding-top: 24px; }
.apply-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.apply-h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.apply-progress { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.apply-progress span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .4s ease; }
.apply-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.apply-grid > * { min-width: 0; }
.stepper { position: sticky; top: 120px; }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stepper button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink); font: inherit; }
.stepper button:hover:not(:disabled) { background: var(--bg-2); }
.stepper button:disabled { cursor: default; opacity: .5; }
.stepper button[aria-current="step"] { background: var(--gold-soft); }
.stepper b { display: block; font-size: .92rem; }
.stepper small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.st-num { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 .8rem var(--body); background: #fff; }
.stepper button[aria-current="step"] .st-num { background: var(--gold); border-color: var(--gold); color: #fff; }
.stepper button.is-done .st-num { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.apply-panel { padding: 24px; }
.apply-panel h2 { font-size: 1.6rem; margin: 2px 0 14px; }
.apply-panel h2:focus { outline: none; }
.flabel { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.subj-group { margin-bottom: 10px; }
.subj-group .small { margin-bottom: 4px; }
.level-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.level-opt { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; margin: 0; align-items: center; }
.level-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.seg-lg button { padding: 9px 18px; font-size: .95rem; }
.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-prev { width: 76px; height: 76px; border-radius: 18px; background: var(--gold); color: #fff; display: grid; place-items: center; font: 800 1.4rem var(--display); overflow: hidden; flex: none; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.hours-grid { display: grid; gap: 6px; }
.hour-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.hour-row.on { border-color: var(--gold); background: #fffdf7; }
.hour-row.bad { border-color: var(--err); background: var(--err-soft); }
.hour-row select { width: auto; padding: 6px 10px; }
.day-toggle { width: 120px; margin: 0; font-weight: 600; }
.file-ok { margin-top: 6px; font-size: .85rem; color: var(--ok); font-weight: 600; }
.stripe-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; }
.stripe-box > div:nth-child(2) { flex: 1; min-width: 200px; }
.stripe-box.done { border-color: var(--ok); background: var(--ok-soft); }
.stripe-logo { width: 46px; height: 46px; border-radius: 12px; background: #635bff; color: #fff; display: grid; place-items: center; font: 800 1.4rem var(--display); }
.review-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.review-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.review-list li.ok { border-color: #bfe2cd; }
.review-list li.bad { border-color: var(--err); background: var(--err-soft); }
.rv-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ok-soft); color: var(--ok); }
.review-list li.bad .rv-ic { background: var(--err); color: #fff; }
.review-list li.soft .rv-ic { background: var(--bg-2); color: var(--muted); }
.apply-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.apply-preview { position: sticky; top: 120px; }
.preview-card { pointer-events: none; box-shadow: var(--shadow); }
.preview-card .tutor-photo { aspect-ratio: 4/3; }
.preview-card .tutor-photo .badge { color: var(--muted); }
.preview-bio { margin: 10px 4px 0; font-style: italic; }
@media (max-width: 1100px) { .apply-grid { grid-template-columns: 220px minmax(0, 1fr); } .apply-preview { grid-column: 2; position: static; max-width: 360px; } }
@media (max-width: 760px) {
  .apply-grid { grid-template-columns: 1fr; }
  .stepper { position: static; }
  .stepper ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .stepper li { flex: none; }
  .stepper button { padding: 6px 10px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; align-items: center; }
  .stepper small, .stepper > p { display: none; }
  .stepper b { font-size: .8rem; white-space: nowrap; }
  .apply-preview { grid-column: auto; max-width: none; }
  .apply-panel { padding: 18px; }
  .level-list { grid-template-columns: 1fr; }
  .day-toggle { width: 100%; }
}
/* Submitted confirmation */
.submitted { max-width: 720px; margin: 10px auto 0; text-align: center; }
.submitted h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.submitted h1:focus { outline: none; }
.sub-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 14px; animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sub-key { font: 600 1.25rem/1.45 var(--display); background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 16px; padding: 16px 20px; margin: 16px 0 10px; }
.sub-steps { text-align: left; list-style: none; counter-reset: s; padding: 0; margin: 26px 0; display: grid; gap: 10px; }
.sub-steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sub-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font: 800 .95rem var(--display); }
.sub-steps span { color: var(--muted); font-size: .9rem; }
.sub-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sub-preview { max-width: 320px; margin: 26px auto 0; text-align: left; }
@media (prefers-reduced-motion: reduce) { .sub-check { animation: none; } .apply-progress span { transition: none; } }

/* ---------- Home: video banner ---------- */
.hero-video { min-height: 440px; display: flex; align-items: center; }
.hero-video-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,11,4,.78) 0%, rgba(20,11,4,.45) 45%, rgba(20,11,4,.05) 75%); }
.hero-video .hl { animation: hlIn .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-video .promo-h .hl:nth-child(2) { animation-delay: .15s; }
.hero-sub { color: #fff; max-width: 40ch; margin: 18px 0 0 clamp(24px, 6vw, 110px); font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 18px 0 0 clamp(24px, 6vw, 110px); }
.hero-ctas .promo-cta { margin: 0; }
.hero-link { color: #fff; font-weight: 600; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-link:hover { text-decoration: underline; }
.hero-video .promo-pause { position: absolute; right: 16px; bottom: 16px; background: rgba(0,0,0,.4); }
@media (max-width: 760px) {
  .hero-video { min-height: 480px; align-items: flex-end; }
  .hero-video::before { background: linear-gradient(180deg, rgba(20,11,4,.05) 15%, rgba(20,11,4,.8) 70%); }
  .hero-sub, .hero-ctas { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-video .hl { animation: none; } }
@media (min-width: 761px) { .hero-video .promo-copy { max-width: 920px; } .hero-video .promo-h .hl { white-space: nowrap; font-size: clamp(1.8rem, 3.6vw, 3rem); } }

/* ---------- Typography refresh (Instrument Serif + Plus Jakarta Sans) ---------- */
body { letter-spacing: -.005em; }
.btn { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: .12em; }
/* Serif headings set inline at small sizes get a little more size, since the serif is narrow. */
.card h2, .apply-panel h2, .comm-head h1 { font-size: max(1.7rem, 1em) !important; }
.ptitle { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.rs-slide blockquote { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.home-reviews .rs-slide blockquote { font-size: 2rem; }
.sub-key { font-family: var(--display); }
/* Video banner, styled like a bold campaign header: label tag, white serif headline, pill buttons. */
.hero-video .hero-tag { display: inline-block; font: 800 .85rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 7px 14px 6px; margin: 0 0 16px clamp(24px, 6vw, 110px); }
.hero-video .hero-h { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 0 clamp(24px, 6vw, 110px); max-width: 15ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); animation: hlIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-video .hero-h em { font-style: italic; color: #ffe2a3; }
.hero-video .promo-cta { background: var(--gold); color: var(--ink); font: 700 1rem var(--display); padding: 14px 26px; }
.hero-video .hero-link { border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px; padding: 12px 22px; text-shadow: none; }
.hero-video .hero-link:hover { background: rgba(255,255,255,.12); text-decoration: none; }
@media (max-width: 760px) { .hero-video .hero-tag, .hero-video .hero-h { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-video .hero-h { animation: none; } }

/* Grey face placeholder before a tutor adds a photo */
.photo-prev { background: #e6e3dd; }
.face-ph { width: 100%; height: 100%; display: block; }
.preview-card .tutor-photo .face-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview-card .tutor-photo .badge { z-index: 1; }

/* Tutor application: address + Google Maps check, preferred neighbourhoods, "Other" language */
.addr-row { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-row input { flex: 1 1 260px; min-width: 0; }
.addr-row .btn { padding: 10px 16px; font-size: .9rem; white-space: nowrap; }
.pref-btn { padding: 9px 16px; font-size: .92rem; }
.pref-btn[aria-expanded="true"] { border-color: var(--gold); background: var(--gold-soft); }
.pref-panel { margin-top: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; }
.add-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.add-row input { flex: 1 1 200px; min-width: 0; padding: 8px 12px; }
.add-row .btn { padding: 8px 16px; font-size: .9rem; }

/* Tutor Agreement card + pop-up */
.agree-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.agree-card.ok { border-color: var(--ok); background: var(--ok-soft); }
.agree-card .btn { padding: 9px 18px; font-size: .92rem; }
.agree-modal { max-width: 640px; display: flex; flex-direction: column; max-height: 88vh; }
.agree-body { overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 14px; font-size: .93rem; color: var(--ink-2); flex: 1; min-height: 0; }
.agree-body h3 { font-size: 1rem; margin: 16px 0 6px; color: var(--ink); }
.agree-body p, .agree-body ul { margin: 0 0 8px; }
.agree-body ul { padding-left: 1.2em; }
.agree-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.agree-actions .btn[disabled] { opacity: .45; }

/* Tutor application: proof links */
.proof-links { display: grid; gap: 8px; }

/* ---------- Payouts: payments card ---------- */
.pay-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; }
.pay-card.done { border-color: var(--ok); }
.pay-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pay-brand { font: 400 1.5rem var(--serif); letter-spacing: .22em; text-transform: uppercase; }
.pay-sep { width: 1.5px; height: 24px; background: var(--ink); }
.pay-title { font: 800 .9rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.pay-intro { font-size: .92rem; color: var(--ink-2); margin: 0 0 18px; }
.pay-h { font-size: .92rem; margin: 0 0 10px; }
.pay-methods { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm { min-width: 62px; height: 34px; padding: 0 10px; border: 1px solid #d9d6d0; border-radius: 6px; display: grid; place-items: center; font: 800 .72rem var(--display); letter-spacing: .02em; background: #fff; }
.pm-visa { color: #1a1f71; font-style: italic; font-size: .9rem; }
.pm-mc { color: #eb001b; }
.pm-amex { color: #fff; background: #1f72cd; border-color: #1f72cd; font-size: .66rem; }
.pm-apay, .pm-gpay { color: #111; font-weight: 600; }
.pm-link { color: #111; font-weight: 600; letter-spacing: .08em; }
.pm-affirm { color: #4a4af4; font-weight: 600; }
.pm-klarna { color: #111; background: #ffb3c7; border-color: #ffb3c7; }
.pay-rates { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; margin: 0 0 12px; font-size: .92rem; }
.pay-rates dt { color: var(--ink-2); }
.pay-rates dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-example { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; font-size: .88rem; color: var(--ink-2); }
.pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pay-btn { background: #2e9e7c; color: #fff; border-radius: 6px; padding: 12px 22px; font-size: .95rem; }
.pay-btn:hover { background: #24825f; }
.pay-btn[disabled] { opacity: .7; }
.pay-powered { margin-left: auto; font-size: .82rem; color: var(--muted); }
.pay-powered b { color: #635bff; font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }
.pay-ok { color: var(--ok); font-weight: 600; font-size: .9rem; }
@media (max-width: 560px) { .pay-rates { grid-template-columns: 1fr; gap: 2px; } .pay-rates dd { margin-bottom: 6px; } .pay-card { padding: 18px; } }

/* ---------- Tutor application: your work gallery ---------- */
.wk-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.wk-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.wk-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-noimg { display: grid; place-items: center; height: 100%; font-size: 1.6rem; }
.wk-play { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.wk-rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.wk-rm:hover, .wk-rm:focus-visible { background: #000; }
.wk-empty { border: 1.5px dashed #cfcac1; background: transparent; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.wk-add { border: 1.5px dashed var(--gold); background: var(--gold-soft); }
.wk-add label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0; cursor: pointer; text-align: center; font-size: .78rem; font-weight: 600; color: var(--gold-dark); padding: 6px; }
.wk-add label span { font-size: 1.5rem; line-height: 1; }
.wk-add:focus-within { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.wk-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wk-count { margin-top: 8px; color: var(--muted); }
.wk-count.ok { color: var(--ok); font-weight: 600; }
.wl-list { display: grid; gap: 8px; }
.wk-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.wk-strip span { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.wk-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-strip .is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .7rem; text-shadow: 0 0 4px #000; }
.wk-strip .wk-more { display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); }

/* ---------- Dashboards (tutor and student) ---------- */
.db-page { background: var(--bg-2); padding: 22px 0 64px; }
.db-proto { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--todo); border: 1px dashed #d8c35a; border-radius: 10px; padding: 8px 12px; font-size: .85rem; margin-bottom: 18px; }
.db-mode { border: 1px solid #cdb94e; background: #fff; border-radius: 999px; padding: 4px 12px; font: 600 .82rem var(--body); cursor: pointer; }
.db-mode[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.db-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.db-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.db-me { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.db-me-photo { position: relative; width: 104px; height: 104px; margin: 0 auto 12px; }
.db-me-photo > img, .db-me-photo > svg { width: 100%; height: 100%; border-radius: 28px; object-fit: cover; }
.db-me-cam { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; text-decoration: none; font-size: .9rem; border: 3px solid #fff; }
.db-me-name { font: 700 1.25rem var(--display); letter-spacing: -.015em; margin: 0 0 2px; }
.db-me-status { display: inline-block; margin: 12px 0; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.db-me-status.ok { background: var(--ok-soft); color: var(--ok); }
.db-me-status.wait { background: var(--gold-soft); color: var(--gold-dark); }
.db-me-strength { display: flex; gap: 12px; align-items: center; text-align: left; border-top: 1px solid var(--line); padding: 14px 0; font-size: .9rem; }
.db-ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.db-ring circle { fill: none; stroke: var(--line); stroke-width: 5; }
.db-ring circle.fg { stroke: var(--gold); stroke-linecap: round; }
.db-ring text { transform: rotate(90deg); transform-origin: 22px 22px; font: 800 10px var(--display); fill: var(--ink); }
.db-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; gap: 2px; }
.db-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.db-nav a:hover { background: var(--bg-2); color: var(--ink); }
.db-nav a[aria-current="page"] { background: var(--gold-soft); color: var(--ink); }
.db-nav .ic { width: 22px; text-align: center; color: var(--gold-dark); }
.db-count { margin-left: auto; background: var(--gold); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; padding: 0 6px; }
.db-main { display: grid; gap: 18px; min-width: 0; outline: none; }
.db-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.db-head h2 { margin: 0; }
.db-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.db-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.db-card h3 { margin-bottom: 10px; }
.db-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.db-card-h h3 { margin: 0; }
.db-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.db-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.db-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; }
.db-stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.db-stat b { font: 400 2rem/1.1 var(--serif); }
.db-stat b.small-b { font: 700 1.1rem/1.6 var(--display); }
.db-stat small { font-size: .78rem; color: var(--muted); }
.db-stat small.up { color: var(--ok); font-weight: 600; }
.muted-stats .db-stat { background: transparent; }
.db-level { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; background: linear-gradient(120deg, #fff8e8, #fff 60%); }
.db-steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; }
.db-steps::before { content: ""; position: absolute; top: 7px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); }
.db-steps li { position: relative; display: grid; justify-items: center; gap: 6px; }
.db-steps .dot { width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--line); position: relative; }
.db-steps .done .dot { background: var(--gold); border-color: var(--gold); }
.db-steps .now { color: var(--ink); }
.db-steps .now .dot { border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.db-goal { margin-bottom: 8px; }
.db-goal > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.db-bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.db-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.ok { color: var(--ok); }
.db-empty { text-align: center; padding: 18px 8px; }
.db-empty.big { padding: 40px 20px; }
.db-req { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.db-req-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.db-req-top > div { flex: 1; min-width: 0; }
.db-req-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); margin-bottom: 8px; }
.db-req p { color: var(--ink-2); margin-bottom: 10px; }
.db-req-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.db-req-foot .btn, .db-lesson .btn, .db-req-strip .btn { padding: 7px 14px; font-size: .85rem; }
.db-timer { color: var(--gold-dark); font-weight: 600; }
.db-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--display); color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 55% 88%); }
.db-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.db-pill.ok { background: var(--ok-soft); color: var(--ok); }
.db-pill.wait { background: var(--gold-soft); }
.db-list { list-style: none; padding: 0; margin: 0; }
.db-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.db-lesson:first-child { border-top: 0; }
.db-lesson .grow, .grow { flex: 1; min-width: 0; }
.db-date { width: 50px; flex: none; text-align: center; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); padding: 4px 0; line-height: 1.1; }
.db-date small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); font-weight: 700; }
.db-date b { font: 400 1.5rem var(--serif); }
.db-check { list-style: none; padding: 0; margin: 0; }
.db-check li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.db-check li:first-child { border-top: 0; }
.db-check li > div { flex: 1; }
.db-check .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .75rem; color: #fff; }
.db-check .done .tick { background: var(--ok); border-color: var(--ok); }
.db-check .done b { color: var(--muted); }
.db-quick { list-style: none; padding: 0; margin: 0; display: grid; }
.db-quick a, .db-quick button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 4px; border: 0; border-top: 1px solid var(--line); background: none; font: 600 .93rem var(--body); color: var(--ink); text-decoration: none; cursor: pointer; }
.db-quick li:first-child a, .db-quick li:first-child button { border-top: 0; }
.db-quick a:hover, .db-quick button:hover { color: var(--gold-dark); }
.db-quick span { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; flex: none; }
.db-review-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 18px; }
.db-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.db-track::before { content: ""; position: absolute; top: 12px; left: 10%; right: 10%; height: 3px; background: var(--line); }
.db-track li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; font-size: .82rem; }
.db-track small { color: var(--muted); }
.db-track .dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 800; }
.db-track .done .dot { background: var(--ok); border-color: var(--ok); }
.db-track .now .dot { border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.db-inbox { display: grid; grid-template-columns: 290px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.db-threads { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.db-threads a { display: flex; gap: 10px; align-items: center; padding: 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.db-threads a[aria-current="true"] { background: var(--gold-soft); }
.db-threads .grow { display: grid; }
.db-snip { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.db-thread { display: flex; flex-direction: column; padding: 16px; min-width: 0; }
.db-thread-h { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.db-back { display: none; }
.db-req-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.db-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.db-msg { max-width: 80%; background: var(--bg-2); border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.db-msg p { margin: 0 0 2px; }
.db-msg small { color: var(--muted); font-size: .72rem; }
.db-msg.me { align-self: flex-end; background: var(--gold-soft); border-radius: 14px 14px 4px 14px; }
.db-reply { display: flex; gap: 8px; align-items: end; }
.db-reply textarea { flex: 1; resize: vertical; min-width: 0; }
.db-reply.rv { margin-top: 4px; }
.db-pubreply { background: var(--bg-2); border-left: 3px solid var(--gold); border-radius: 8px; padding: 8px 12px; }
.db-pubreply p { margin: 2px 0 0; }
.db-tabs a { padding: 14px 2px 12px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.db-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.db-tabs { margin: 0; }
.db-switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; font-size: .93rem; padding: 6px 0; }
.db-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.db-switch > span { width: 42px; height: 24px; flex: none; border-radius: 99px; background: #d8d2c6; position: relative; transition: background .2s; }
.db-switch > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.db-switch input:checked + span { background: var(--ok); }
.db-switch input:checked + span::after { transform: translateX(18px); }
.db-switch input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.db-switches { display: grid; gap: 6px; }
.db-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.db-gallery span { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; font-size: 1.6rem; }
.db-gallery img { width: 100%; height: 100%; object-fit: cover; }
.db-gallery .is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 0 4px #000; }
.db-copy { display: flex; gap: 8px; }
.db-copy input { flex: 1; min-width: 0; }
.db-rating { display: flex; gap: 28px; align-items: center; }
.db-big { font: 400 3.4rem/1 var(--serif); display: block; }
.db-stars { color: var(--gold); letter-spacing: 1px; }
.db-stars span { color: var(--line); }
.db-dist { display: grid; grid-template-columns: 34px 1fr 20px; gap: 10px; align-items: center; margin: 3px 0; }
.db-review-item p { margin: 8px 0 10px; }
.db-table-wrap { overflow-x: auto; }
.db-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.db-table th, .db-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.db-table thead th { border-top: 0; font-size: .78rem; color: var(--muted); font-weight: 700; }
.db-table tfoot th, .db-table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.db-danger { border-color: #f0cfcb; }
.db-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100% - 32px); }
.db-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 960px) {
  .db-layout { grid-template-columns: 1fr; }
  .db-side { position: static; }
  .db-me { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; text-align: left; align-items: center; }
  .db-me-photo { width: 72px; height: 72px; margin: 0; grid-row: span 3; }
  .db-me-photo > img, .db-me-photo > svg { border-radius: 20px; }
  .db-me-status { margin: 6px 0 0; justify-self: start; }
  .db-me-strength, .db-me > .btn { grid-column: 1 / -1; }
  .db-me-strength { margin-top: 12px; }
  .db-nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .db-nav a { white-space: nowrap; flex: none; }
  .db-cols, .db-level { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .db-inbox { grid-template-columns: 1fr; }
  .db-inbox.open .db-threads { display: none; }
  .db-inbox:not(.open) .db-thread { display: none; }
  .db-threads { border-right: 0; }
  .db-back { display: inline; }
  .db-track { grid-template-columns: 1fr; gap: 14px; }
  .db-track::before { top: 12px; bottom: 12px; left: 12px; right: auto; width: 3px; height: auto; }
  .db-track li { grid-template-columns: 26px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .db-track li .dot { grid-row: span 2; }
  .db-rating { flex-direction: column; align-items: stretch; gap: 12px; }
  .db-lesson { flex-wrap: wrap; }
  .db-lesson .grow { flex-basis: calc(100% - 62px); }
  .db-lesson .grow + * { margin-left: 62px; }
  .db-steps { font-size: .68rem; }
  .db-msg { max-width: 92%; }
}

/* ---------- Student dashboard: weekly free-lesson reward ---------- */
.rw-card { background: linear-gradient(120deg, #1f1a12, #3b2f19); color: #fff; border: 0; }
.rw-card .eyebrow { color: #f1c66f; }
.rw-card h3 { color: #fff; font-size: 1.3rem; }
.rw-card .muted { color: #d9cfbd !important; }
.rw-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.rw-gift { position: relative; font-size: 2.6rem; line-height: 1; }
.rw-gift span { position: absolute; top: -6px; right: -10px; background: var(--gold); color: #1d1a14; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font: 800 .8rem var(--display); }
.rw-dots { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.rw-dots::before { content: ""; position: absolute; top: 21px; left: 10%; right: 10%; height: 3px; background: rgba(255,255,255,.18); }
.rw-dots li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.rw-dots span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #3a3022; border: 2px dashed rgba(255,255,255,.35); font: 800 .95rem var(--display); color: #d9cfbd; }
.rw-dots .done span { background: var(--gold); border: 2px solid var(--gold); color: #1d1a14; }
.rw-dots .prize span { background: #fff6e2; border: 2px solid #f1c66f; font-size: 1.3rem; }
.rw-dots .prize.done span { box-shadow: 0 0 0 6px rgba(241,198,111,.35); }
.rw-dots small { font-size: .72rem; color: #d9cfbd; font-weight: 600; }
.rw-have { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: .92rem; }
.rw-card.celebrate { animation: rwPop .7s ease; }
@keyframes rwPop { 0% { transform: scale(1); } 40% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(241,198,111,.45); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rw-card.celebrate { animation: none; } }
.rw-how { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 10px; font-size: .93rem; }
.st-next { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-note { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.st-note:first-of-type { border-top: 0; }
.st-note p { margin: 4px 0 0; color: var(--ink-2); }
.st-review { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-stars button { border: 0; background: none; font-size: 1.7rem; color: #d8d2c6; cursor: pointer; padding: 0 2px; line-height: 1; }
.st-stars:hover button { color: var(--gold); }
.st-stars button:hover ~ button { color: #d8d2c6; }
.st-tutor { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-card { display: flex; align-items: center; gap: 12px; }
@media (max-width: 700px) {
  .rw-dots span { width: 36px; height: 36px; font-size: .85rem; }
  .rw-dots::before { top: 17px; }
  .rw-dots small { font-size: .64rem; }
  .st-tutor .db-head-actions { width: 100%; }
}

/* ---------- Booking: a more visible schedule ---------- */
.date-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: thin; }
.date-day { scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-family: var(--body); color: var(--ink); }
.date-day small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.date-day b { font: 400 1.6rem/1.1 var(--serif); }
.date-day span { font-size: .66rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.date-day:hover:not(:disabled) { border-color: var(--gold); }
.date-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-day[aria-pressed="true"] small, .date-day[aria-pressed="true"] span { color: #f1c66f; }
.date-day:disabled { background: var(--bg-2); color: #b9b2a5; cursor: not-allowed; border-style: dashed; }
.date-day:disabled span, .date-day:disabled small { color: #b9b2a5; }
.more-dates { margin-top: 2px; }
.more-dates summary { cursor: pointer; color: var(--gold-dark); font-weight: 600; width: max-content; }
.more-dates input { margin-top: 6px; }
.slot-head { background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-bottom: 10px; }
.slot-head:empty { display: none; }
.slot-group + .slot-group { margin-top: 12px; }
.slot-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 6px; display: flex; gap: 6px; align-items: center; }
.slot-group h4 span { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.slot-group .slots { grid-template-columns: repeat(2, 1fr); }
.slot-group .slot { display: grid; gap: 0; padding: 10px 6px; border-width: 2px; }
.slot-group .slot b { font-size: 1.02rem; }
.slot-group .slot small { font-size: .74rem; color: var(--muted); font-weight: 500; }
.slot-group .slot:hover { border-color: var(--gold); background: #fffaf0; }
.slot-group .slot[aria-pressed="true"] small { color: #fff; }
.slot-group .slot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold-soft); }
.date-strip { contain: inline-size; }
.slot-group .slot[aria-pressed="true"], .slot-group .slot[aria-pressed="true"]:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Prototype controls: clearer and higher contrast */
.db-proto { background: #fff7c7; border: 2px solid #c9a817; color: var(--ink); padding: 10px 14px; gap: 10px 18px; font-size: .9rem; }
.db-proto-t { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 6px; }
.db-proto-g { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.db-proto-g > span { font-weight: 700; }
.db-mode { border: 2px solid var(--ink); color: var(--ink); background: #fff; font-weight: 700; padding: 5px 14px; }
.db-mode:hover { background: var(--ink); color: #fff; }
.db-mode.act { background: var(--ok); border-color: var(--ok); color: #fff; }
.db-mode.act:hover { background: #22603c; }
.db-mode:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
/* Membership */
.ms-plan { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ms-plan h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 1.3rem; }
.ms-price b { font: 400 2.4rem/1 var(--serif); }
.ms-kv { min-width: 240px; background: var(--bg-2); border-radius: 12px; padding: 14px 16px; margin: 0; }

/* Tutor application: typed hourly rate */
.money-box{display:flex;align-items:center;gap:8px;max-width:300px;border:1.5px solid var(--line);border-radius:12px;padding:4px 14px;background:#fff}
.money-box:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px rgba(222,165,72,.25)}
.money-box > span:first-child{font:700 1.4rem var(--display)}
.money-box input{border:0;padding:8px 0;font:700 1.4rem var(--display);width:100%;min-width:0;background:transparent;box-shadow:none;outline:none}
.money-box .muted{white-space:nowrap}
.field.invalid .money-box,.money-box:has(input.invalid){border-color:#c0392b}
.money-box input::-webkit-outer-spin-button,.money-box input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.money-box input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* Lesson recap (template by subject category) */
.db-recap { align-self: stretch; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.db-recap-h { display: flex; gap: 10px; align-items: flex-start; }
.db-recap-i { font-size: 1.4rem; line-height: 1; }
.db-recap-b { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.db-recap-b dt { font-weight: 700; color: var(--ink); }
.db-recap-b dd { margin: 0; }
.db-recap-form { flex-basis: 100%; display: grid; gap: 6px; background: var(--bg-2); border-radius: 12px; padding: 14px; margin-top: 8px; }
.db-recap-form label { font-weight: 600; font-size: .9rem; margin-top: 4px; }
.db-lesson:has(.db-recap-form) { flex-wrap: wrap; }
@media (max-width: 600px) { .db-recap-b { grid-template-columns: 1fr; gap: 2px; } .db-recap-b dd { margin-bottom: 8px; } }

/* Loyalty card: 10 lessons = 1 free lesson */
.rw-loyal { margin-top: 16px; }
.rw-dots.ten { grid-template-columns: repeat(11, 1fr); gap: 6px; }
.rw-dots.ten::before { left: 4%; right: 4%; }
.rw-dots.ten span { width: 40px; height: 40px; font-size: .85rem; }
@media (max-width: 700px) {
  .rw-dots.ten { grid-template-columns: repeat(6, 1fr); row-gap: 10px; }
  .rw-dots.ten::before { display: none; }
  .rw-dots.ten span { width: 34px; height: 34px; }
}

/* Sign-up: account verification notice */
.verify-note { background: var(--gold-soft); border-radius: 10px; padding: 10px 14px; color: var(--ink-2); }
