/* TutorListed, direction B ("dense directory"): IBM Plex Sans, cool neutrals,
   one blue accent, white cards on a grey ground, 8px radii, dense data rows.
   Light only, matching the approved mockup; no automatic dark mode. */
:root {
  --bg: #f4f6f8; --fg: #14191f; --muted: #6b7684; --line: #dde3ea; --line-2: #eef1f4; --card: #ffffff;
  --accent: #1d5fd1; --accent-dark: #154aa6; --accent-fg: #ffffff; --soft: #eef3fb; --soft-line: #c9d8f3;
  --ok: #176b3a; --ok-bg: #e6f4ec; --star: #e0a526; --danger: #b42318;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1 { font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; margin: .35rem 0 .5rem; font-weight: 600; }
h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 0; font-weight: 600; }
p.lead { font-size: 1rem; color: var(--muted); margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.wrap.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1120px; margin: 0 auto; padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.site-header .brand { display: inline-flex; align-items: center; color: var(--fg); text-decoration: none; font-size: 1.35rem; }
.wordmark { font-family: "Outfit", "IBM Plex Sans", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: inline-flex; align-items: baseline; color: var(--fg); white-space: nowrap; }
.wordmark .wm-l { color: var(--accent); margin-left: .04em; }
.wordmark .wm-i { position: relative; display: inline-block; }
.wordmark .wm-i svg { position: absolute; width: .27em; height: .24em; left: -.05em; top: .1em; color: var(--accent); }
.site-header form.search { flex: 1 1 260px; max-width: 520px; display: flex; gap: 0; }
.site-header form.search input { flex: 1; height: 38px; padding: 0 .75rem 0 2.2rem; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--card); color: var(--fg); font: inherit; font-size: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: .7rem center; }
.site-header form.search button { height: 38px; padding: 0 .9rem; border: 1px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 600; cursor: pointer; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: 14px; font-weight: 500; margin-left: auto; align-items: center; }
@media (max-width: 899px) { .site-header nav { flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 1rem; margin: 0; padding: 0 1.5rem .1rem 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } .site-header nav::-webkit-scrollbar { display: none; } }
.site-header nav a { text-decoration: none; color: var(--fg); }
.site-header nav a.btn-outline { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 6px; }
.site-header nav a[aria-current] { color: var(--accent); }
.country-menu { margin-left: auto; }
.country-menu summary { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .5rem; font-size: 12px; color: var(--muted); border-color: transparent; }
.country-menu summary:hover, .country-menu[open] summary { border-color: var(--line); color: var(--fg); }
.country-menu .flag { font-size: 16px; line-height: 1; }
.country-menu .menu-list a { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.country-menu .menu-list a.on { background: var(--soft); color: var(--accent); font-weight: 600; }
.country-menu .menu-list a.muted { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0; margin-top: .25rem; padding-top: .6rem; }
.site-footer { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Buttons, chips, badges */
.btn, form.stack button, form.inline button, form.waitlist button, form.filters button, .sidebar button { display: inline-block; padding: .55rem .9rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover, form.stack button:hover, form.inline button:hover, form.waitlist button:hover, form.filters button:hover, .sidebar button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-fg); }
.btn.secondary, form.inline button.secondary { background: var(--card); color: var(--accent); }
.btn.secondary:hover, form.inline button.secondary:hover { background: var(--soft); border-color: var(--accent); color: var(--accent-dark); }
.site-header form.search button:hover, .hero-search button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-fg); }
.btn.block { display: block; }
.chip { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 4px; background: var(--line-2); color: var(--fg); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.ok::before { content: "✓ "; font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-fg); vertical-align: middle; text-transform: uppercase; letter-spacing: .02em; }
/* Unread / pending counts: a small round pill. */
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 600; line-height: 1; vertical-align: middle; margin-left: 2px; }
.crumbs { font-size: 12px; color: var(--muted); margin: 0 0 .25rem; }
.crumbs a { color: var(--muted); }

/* Panels */
.panel, .notice, .card, .stat, form.stack, form.waitlist, blockquote { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.notice { padding: .9rem 1rem; margin: 1rem 0; background: var(--soft); border-color: var(--soft-line); }
.notice p { margin: .25rem 0; }
.stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0; }
.stat { flex: 1 1 120px; padding: .6rem .8rem; }
.stat b { display: block; font-size: 1.2rem; font-weight: 600; }
.stat span { color: var(--muted); font-size: 12px; }

/* Directory layout: sidebar + results */
.directory { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: .75rem; }
@media (min-width: 900px) { .directory { grid-template-columns: 250px minmax(0, 1fr); } }
@media (max-width: 899px) { .directory aside.sidebar { order: 2; } }
aside.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar .panel { padding: .9rem 1rem; }
.sidebar h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.sidebar h3 a { font-size: 13px; font-weight: 400; }
.sidebar .group { display: flex; flex-direction: column; gap: .3rem; margin-top: .75rem; }
.sidebar .group > span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sidebar label { display: flex; gap: .5rem; align-items: center; font-size: 14px; }
.sidebar input[type=number], .sidebar select { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); font: inherit; font-size: 14px; width: 100%; }
.sidebar .cta { background: var(--soft); border-color: var(--soft-line); }
.sidebar .cta p { margin: .25rem 0 .5rem; font-size: 13px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem; margin-bottom: .75rem; }
.results-head form { display: flex; gap: .4rem; align-items: center; font-size: 13px; }
.results-head select { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); font: inherit; font-size: 13px; }
.cards { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.card.featured { border-color: var(--soft-line); box-shadow: 0 0 0 2px var(--soft); }
.card .who { display: flex; gap: .7rem; align-items: flex-start; }
.avatar { width: 48px; height: 48px; border-radius: 8px; background: #dfe7f3; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; border-radius: 12px; font-size: 24px; }
.photo-panel { display: flex; gap: 1.25rem; align-items: flex-start; margin: 0 0 1rem; padding: 1rem; max-width: 720px; }
.photo-body { flex: 1 1 auto; min-width: 0; }
.photo-body h2 { margin: 0 0 .25rem; font-size: 17px; }
.photo-body p { margin: 0 0 .75rem; font-size: 14px; }
.photo-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.photo-form, .photo-remove { display: inline; margin: 0; }
.photo-actions label.btn { margin: 0; }
.photo-actions .btn.secondary { background: var(--card); color: var(--accent); }
.photo-actions .btn.secondary:hover { background: var(--soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .photo-panel { flex-direction: column; } }
form button.link, button.link { display: inline; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 400; text-decoration: underline; cursor: pointer; }
form button.link:hover { color: var(--fg); }
.card .who .name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card .who .name .top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card .meta, .profile .meta { color: var(--muted); font-size: 13px; margin: 0; }
.card .chips, .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.card .excerpt { margin: 0; font-size: 14px; }
.datarow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--line-2); font-size: 12px; }
.datarow b { display: block; font-size: 15px; font-weight: 600; }
.datarow span { color: var(--muted); }
.star { color: var(--star); }

/* Links lists */
/* Every list of links renders as chips, in a panel where the page puts one. */
ul.links { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
ul.links li { margin: 0; }
ul.links li a { display: inline-block; padding: .4rem .7rem; font-size: 13px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; text-decoration: none; }
ul.links li a:hover { border-color: var(--accent); color: var(--accent); }
ul.links small { color: var(--muted); margin-left: .25rem; }
.panel > ul.links, .chip-panel > ul.links { margin: 0; }
.panel.cta, .cta { padding: 1rem 1.1rem; }
.cta:not(.sidebar .cta) .btn.block { display: inline-block; }
.cta h3 { margin: 0 0 .25rem; }

/* Profile */
.profile { display: grid; gap: .85rem; max-width: 760px; }
.profile .panel { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.profile h2 { margin: 0; font-size: 15px; }
.profile .about p { margin: 0 0 .5rem; font-size: 14px; }
.profile .subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; font-size: 13px; }
.profile .subjects a { display: flex; flex-direction: column; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--fg); }
.profile .subjects a span { color: var(--muted); }
.avail { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: var(--muted); align-items: center; }
.avail .d { text-align: center; }
.avail .slot { height: 22px; border-radius: 4px; background: var(--line-2); }
.avail .slot.on { background: var(--accent); }
blockquote { margin: .5rem 0; padding: .6rem .8rem; background: var(--bg); border: 0; border-radius: 6px; }
blockquote p { margin: 0 0 .25rem; font-size: 14px; }
.sticky-cta { position: sticky; bottom: 0; margin-top: .5rem; padding: .7rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); display: flex; gap: .75rem; align-items: center; }
.sticky-cta .price b { display: block; font-size: 1.1rem; }
.sticky-cta .price span { font-size: 12px; color: var(--muted); }
.sticky-cta .btn { flex: 1; }

/* Forms */
form.stack, form.waitlist { display: grid; gap: .7rem; padding: 1rem; margin: .5rem 0 1rem; max-width: 560px; }
form.stack label, form.waitlist label { display: block; font-size: 13px; color: var(--muted); margin-bottom: .2rem; }
form.stack input, form.stack select, form.stack textarea, form.waitlist input, form.waitlist select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); font: inherit; }
form.stack textarea { min-height: 9rem; }
form.inline { display: inline; }
form.waitlist .hp, .hp { position: absolute; left: -9999px; }
form.waitlist { grid-template-columns: 1fr; }
@media (min-width: 600px) { form.waitlist { grid-template-columns: 2fr 1fr auto; align-items: end; } form.waitlist .full { grid-column: 1 / -1; } }
.two-col { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: .6rem .9rem; }
fieldset legend { font-size: 13px; color: var(--muted); padding: 0 .3rem; }
fieldset label, form.stack fieldset label { display: inline-flex; gap: .4rem; align-items: flex-start; margin: .15rem .9rem .15rem 0; font-size: 14px; color: var(--fg); line-height: 1.3; }
form.stack input[type=checkbox], form.stack input[type=radio], form.waitlist input[type=checkbox], .sidebar input[type=checkbox], .sidebar input[type=radio] { width: auto; padding: 0; margin: .15rem 0 0; flex: 0 0 auto; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .2rem .6rem; margin: .2rem 0 .4rem; }
.opts label { margin: 0; }
fieldset .opts-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: .6rem 0 .2rem; }
.avail-edit { display: grid; grid-template-columns: 70px repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 12px; align-items: center; }
.avail-edit label { display: flex; justify-content: center; margin: 0; }
form.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: .5rem 0 1rem; }
form.filters label { font-size: 12px; color: var(--muted); display: block; }
form.filters select, form.filters input { padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); font: inherit; font-size: 14px; }

/* Messages, tables, misc */
ul.threads { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
ul.threads li { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
ul.threads li.unread { border-color: var(--accent); }
ul.threads a { display: block; padding: .7rem .9rem; text-decoration: none; color: var(--fg); }
.thread { display: grid; gap: .5rem; margin: 1rem 0; max-width: 720px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; max-width: 85%; }
.msg.mine { justify-self: end; background: var(--soft); border-color: var(--soft-line); }
.msg p { margin: 0 0 .25rem; font-size: 14px; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; margin: .5rem 0 1.5rem; display: block; overflow-x: auto; }
table.table th, table.table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.post img { max-width: 100%; height: auto; }

/* Home and country pages */
.hero { padding: 1.5rem 1.25rem; margin-top: .5rem; }
@media (min-width: 760px) { .hero { padding: 2.25rem 2rem; } }
.hero .eyebrow { margin: 0 0 .5rem; font-size: 13px; color: var(--muted); }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .5rem; }
.hero .lead { max-width: 640px; }
.hero-search { display: flex; margin: 1rem 0 .75rem; max-width: 640px; }
.hero-search input { flex: 1; height: 48px; padding: 0 1rem; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--card); color: var(--fg); font: inherit; font-size: 16px; min-width: 0; }
.hero-search button { height: 48px; padding: 0 1.25rem; border: 1px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 600; cursor: pointer; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.quick .chip, .chips-wrap .chip { text-decoration: none; padding: .4rem .7rem; font-size: 13px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; }
.quick .chip:hover, .chips-wrap .chip:hover { border-color: var(--accent); color: var(--accent); }
.chips-wrap .chip small { color: var(--muted); margin-left: .2rem; }
.chip-panel { padding: 1rem 1.1rem; }
.chip-panel .chips-wrap { gap: .5rem; }
.chip-panel p { margin-top: .8rem; }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numbers b { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.numbers span { color: var(--muted); font-size: 12px; }
.stage-cards { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .stage-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stage { padding: .9rem 1rem; }
.stage h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.stage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.stage li a { font-weight: 500; }
.stage li small { color: var(--muted); }
.country-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .75rem; }
@media (min-width: 640px) { .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.country-card { padding: .9rem 1rem; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; gap: .15rem; }
.country-card:hover { border-color: var(--accent); }
.country-card span { color: var(--muted); font-size: 13px; }
.steps-wrap { margin-top: 2rem; }
.steps { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 1.1rem 1.1rem 1.2rem; position: relative; }
.step .step-n { position: absolute; top: .9rem; right: 1rem; font-size: 12px; font-weight: 600; color: var(--muted); }
.step .step-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--accent); align-items: center; justify-content: center; margin-bottom: .6rem; }
.step .step-icon svg { width: 22px; height: 22px; }
.step h3 { margin: 0 0 .3rem; font-size: 1rem; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.promises { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0; font-size: 13px; color: var(--muted); }
.promises span { display: inline-flex; align-items: center; gap: .4rem; }
.promises svg { width: 16px; height: 16px; color: var(--ok); }
.tutor-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; background: var(--soft); border-color: var(--soft-line); }
.tutor-cta h3 { margin: 0 0 .25rem; }
.tutor-cta p { margin: 0; font-size: 14px; max-width: 560px; }
/* Account dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .5rem; }
.dash-head h1 { margin: 0 0 .2rem; }
.dash-head .meta { margin: 0; color: var(--muted); font-size: 13px; }
.listing-card { padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; }
.listing-card h3 { margin: 0 0 .3rem; }
.listing-card .meta { margin: 0; }
.listing-card .muted { margin: .4rem 0 0; font-size: 13px; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { padding: .9rem 1rem; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; gap: .2rem; }
.tile:hover { border-color: var(--accent); }
.tile span { color: var(--muted); font-size: 13px; }
.stat b { color: var(--fg); }
/* Account tabs and the header menu */
.tabs { margin: .25rem 0 1.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
@media (max-width: 640px) { .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } }
.tabs::-webkit-scrollbar { display: none; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; white-space: nowrap; }
.tabs a { display: inline-block; padding: .6rem .8rem; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .badge { vertical-align: 1px; }
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 6px; font-weight: 500; font-size: 14px; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu[open] summary { border-color: var(--accent); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 25, 31, .12); padding: .35rem; z-index: 20; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border: 0; border-radius: 6px; background: none; color: var(--fg); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--soft); color: var(--accent); }
.menu-list form { border-top: 1px solid var(--line-2); margin-top: .25rem; padding-top: .25rem; }
@media (max-width: 899px) { details.menu { position: static; } .menu-list { right: 1rem; left: 1rem; } }
/* Hourly availability (profile) and the booking calendar */
.avail.hours { grid-template-columns: 46px repeat(7, minmax(0, 1fr)); }
.avail .hh { font-size: 11px; color: var(--muted); }
.avail.hours .slot { height: 14px; }
.avail-edit.hours { grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 3px; }
.avail-edit .dh { text-align: center; font-size: 12px; color: var(--muted); }
.avail-edit .hh { font-size: 11px; color: var(--muted); }
.avail-edit.hours label { background: var(--line-2); border-radius: 4px; height: 24px; align-items: center; }
.avail-edit.hours label:has(input:checked) { background: var(--soft); outline: 1px solid var(--soft-line); }
.length-pick { display: flex; gap: .4rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.length-pick .chip { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 14px; }
.length-pick .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin: 0 0 1.25rem; }
@media (max-width: 640px) { .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .4rem; display: flex; flex-direction: column; gap: .25rem; min-height: 72px; }
.cal-day.empty { background: transparent; }
.cal-head { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: .2rem; }
.cal-head b { color: var(--fg); font-size: 13px; }
.cal .slot { display: block; text-align: center; padding: .35rem 0; border-radius: 6px; background: var(--soft); color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.cal .slot:hover, .cal .slot.on { background: var(--accent); color: var(--accent-fg); }
.cal .none { text-align: center; color: var(--muted); font-size: 12px; }
/* FullCalendar skin */
.fc { --fc-border-color: var(--line); --fc-page-bg-color: var(--card); --fc-neutral-bg-color: var(--bg); --fc-today-bg-color: var(--soft); --fc-button-bg-color: var(--card); --fc-button-border-color: var(--line); --fc-button-text-color: var(--fg); --fc-button-hover-bg-color: var(--soft); --fc-button-hover-border-color: var(--soft-line); --fc-button-active-bg-color: var(--accent); --fc-button-active-border-color: var(--accent); --fc-event-border-color: var(--accent); --fc-event-bg-color: var(--accent); --fc-event-text-color: #fff; --fc-now-indicator-color: #b42318; font-size: 13px; }
.fc .fc-toolbar-title { font-size: 1.05rem; font-weight: 600; }
.fc .fc-button { font: inherit; font-size: 13px; font-weight: 500; padding: .35rem .6rem; border-radius: 6px; box-shadow: none; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: var(--accent-fg); }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number, .fc .fc-list-day-text, .fc .fc-list-day-side-text { color: var(--fg); text-decoration: none; }
.fc .fc-timegrid-slot-label-cushion { color: var(--muted); font-size: 11px; }
.fc .fc-timegrid-slot { height: 2.2em; }
.fc .slot-free { background: var(--soft); border: 1px solid var(--soft-line); color: var(--accent); cursor: pointer; }
.fc .slot-free .fc-event-main { color: var(--accent); font-weight: 600; }
.fc .slot-free:hover { background: var(--accent); }
.fc .slot-free:hover .fc-event-main, .fc .slot-chosen .fc-event-main { color: #fff; }
.fc .slot-chosen { background: var(--accent); border-color: var(--accent); }
.fc .slot-busy { background: repeating-linear-gradient(135deg, #e3e7ec, #e3e7ec 4px, #eef1f4 4px, #eef1f4 8px); opacity: 1; }
.fc .slot-mine { background: var(--ok-bg); border-color: var(--ok); }
.fc .slot-mine .fc-event-main { color: var(--ok); }
.fc .fc-event-requested { background: var(--card); border: 1px dashed var(--accent); }
.fc .fc-event-requested .fc-event-main, .fc .fc-event-requested .fc-event-title { color: var(--accent); }
.cal-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .75rem; margin: 0 0 1.25rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 12px; color: var(--muted); margin: .5rem 0 0; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: .35rem; }
.cal-legend .l-free::before { background: var(--soft); border: 1px solid var(--soft-line); }
.cal-legend .l-busy::before { background: repeating-linear-gradient(135deg, #e3e7ec, #e3e7ec 3px, #eef1f4 3px, #eef1f4 6px); }
.cal-legend .l-mine::before { background: var(--ok-bg); border: 1px solid var(--ok); }
.cal-legend span[style]::before { background: repeating-linear-gradient(135deg, #f3d6d3, #f3d6d3 3px, #fbecea 3px, #fbecea 6px); border: 1px solid #e4a39d; }

.cal-wrap + .cal#cal-static { display: none; }
.cal-locked { position: relative; margin: 0 0 1rem; }
.cal-locked .cal { margin: 0; filter: grayscale(1) blur(2px); opacity: .45; pointer-events: none; user-select: none; }
.cal-locked .cal .slot { background: var(--line); color: var(--muted); }
.cal-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; padding: 1rem; }
.cal-gate b { font-size: 16px; }
.cal-gate p { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.cal-gate .muted { font-size: 13px; }
.book-panel .cal-wrap { margin: .5rem 0 .75rem; padding: .5rem; }
.slot-count, .tz-note { margin: .2rem 0; font-size: 13px; }
.book-panel form#confirm { max-width: none; margin: 0; }
.book-panel form#confirm .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 640px) { .book-panel form#confirm .two-col { grid-template-columns: 1fr; } }
.book-panel .fc .fc-timegrid-slot { height: 1.9em; }
/* Availability editor */
.fc .av-weekly { background: var(--soft); border-color: var(--soft-line); }
.fc .av-weekly .fc-event-main { color: var(--accent); font-weight: 600; }
.fc .av-extra { background: var(--ok-bg); border-color: var(--ok); }
.fc .av-extra .fc-event-main { color: var(--ok); font-weight: 600; }
.fc .av-off { background: repeating-linear-gradient(135deg, #f3d6d3, #f3d6d3 4px, #fbecea 4px, #fbecea 8px); border-color: #e4a39d; }
.fc .av-off .fc-event-main { color: #b42318; font-weight: 600; }
.fc .av-booked { background: var(--accent); border-color: var(--accent); }
.fc .av-requested { background: var(--card); border: 1px dashed var(--accent); }
.fc .av-requested .fc-event-main { color: var(--accent); }
.fc .fc-highlight { background: var(--soft); }
.mode-pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0; }
.mode-pick .chip { cursor: pointer; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.mode-pick .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.save-row { display: flex; gap: .75rem; align-items: center; margin: .75rem 0 1.5rem; }
.save-row #avail-status { color: var(--muted); font-size: 13px; }
/* Onboarding */
.onboarding { padding: 1rem 1.1rem; margin: .75rem 0 1.25rem; border-color: var(--soft-line); background: var(--soft); }
.ob-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.ob-steps { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 760px) { .ob-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ob-steps li { display: flex; gap: .6rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; }
.ob-steps li.next { border-color: var(--accent); }
.ob-steps li.done { opacity: .7; }
.ob-mark { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.ob-steps li.done .ob-mark { background: var(--ok); border-color: var(--ok); }
.ob-steps li.next .ob-mark { border-color: var(--accent); }
.ob-steps li div { display: flex; flex-direction: column; }
.ob-steps li div a { font-weight: 600; text-decoration: none; }
.ob-steps li div span { color: var(--muted); font-size: 13px; }
.step-strip { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: 13px; color: var(--muted); }
.step-strip li { display: inline-flex; align-items: center; gap: .4rem; }
.step-strip li span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.step-strip li.current { color: var(--fg); font-weight: 600; }
.step-strip li.current span { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-strip li.done span { background: var(--ok); color: #fff; border-color: var(--ok); }

.thread-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .75rem .9rem; margin: .5rem 0 1rem; max-width: 720px; font-size: 14px; }
.mini-lessons { list-style: none; margin: 0; padding: 0; flex: 1 0 100%; display: flex; flex-direction: column; gap: .25rem; font-size: 13px; color: var(--muted); }

/* Booking panel on the profile */
.book-panel { border-color: var(--soft-line); }
.book-head { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.book-head .muted { font-size: 13px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; margin-top: .5rem; }
.slot-btn { display: flex; flex-direction: column; align-items: center; padding: .55rem .4rem; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--soft); color: var(--accent); text-decoration: none; }
.slot-btn b { font-size: 13px; }
.slot-btn span { font-size: 15px; font-weight: 600; }
.slot-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
details.message-details > summary { cursor: pointer; list-style: none; }
details.message-details > summary::-webkit-details-marker { display: none; }
details.message-details > summary::before { content: "▸ "; color: var(--muted); }
details.message-details[open] > summary::before { content: "▾ "; }
details.message-details .notice { margin: .75rem 0 0; }

/* Blog (posts delivered by RankGoat). The body is the article's own HTML. */
.post-list { display: grid; gap: .75rem; }
.post-card h2 { margin: 0; font-size: 1.1rem; }
.post-card .meta { font-size: 13px; color: var(--muted); margin: 0; }
.post-card .excerpt { margin: 0; font-size: 14px; }
.post header { margin-bottom: 1rem; }
.post .meta { color: var(--muted); font-size: 13px; margin: 0; }
.post-body { font-size: 16px; line-height: 1.6; }
.post-body h2 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.post-body h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body figure { margin: 0 0 1.25rem; }
.post-body figcaption { font-size: 13px; color: var(--muted); margin-top: .35rem; }
.post-body table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 1rem; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
.post-body pre { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .75rem; }
.post-body blockquote { margin: 0 0 1rem; padding: .75rem 1rem; }
.post-links h2, .post-related h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.post-related { padding: 1rem; margin-top: 1.5rem; }
.post-related ul.links { margin: 0; padding-left: 1.1rem; }
.post-tags { margin: 1.25rem 0 0; }

/* Selects: our own chevron with room on the right, same look everywhere. */
select, .sidebar select, .results-head select, form.stack select, form.filters select, form.waitlist select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 12px 12px;
}
select::-ms-expand { display: none; }

/* List your tutoring (the tutor landing page). */
.ly-hero .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .25rem; align-items: center; }
.ly-hero .actions .muted { font-size: 14px; }
.ly-plans { margin-top: 1.5rem; }
.ly-plan { padding: 1.1rem 1.2rem; }
.ly-plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; }
.ly-plan h3 .price { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ly-plan ul { margin: 0; padding-left: 1.1rem; font-size: 14px; }
.ly-plan li { margin: .25rem 0; }
.ly-plan.free { border-color: var(--soft-line); box-shadow: 0 0 0 2px var(--soft); }
.ly-old { margin-top: 1.5rem; padding: 1.1rem 1.2rem; }
.ly-old h2 { margin: 0 0 .35rem; }
.ly-old form { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 .5rem; }
.ly-old form input { flex: 1 1 220px; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); font: inherit; }
.ly-old form button { padding: .6rem .9rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 500; cursor: pointer; }
.ly-old form button:hover { background: var(--accent-dark); }
.ly-faq { margin-top: 1.5rem; }
.ly-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; margin: 0 0 .5rem; }
.ly-faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: .5rem; }
.ly-faq summary::-webkit-details-marker { display: none; }
.ly-faq summary::after { content: "+"; color: var(--muted); }
.ly-faq details[open] summary::after { content: "–"; }
.ly-faq details p { margin: .5rem 0 0; font-size: 14px; color: var(--muted); }
.ly-end { margin-top: 1.5rem; }
