/* The base of every page: layout, the header and footer, buttons, fields, cards and the shared components. Every colour, font,
   radius and shadow is a token from tokens.css (loaded first). */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings, prices and big numerals are in the display face, tight and heavy */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; }
h3 { font-weight: 700; }
h4 { font-family: var(--font-body); font-weight: 700; }
.price, .num, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.mono, code { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
h1 { font-size: var(--fs-h1); line-height: 1.02; }
/* Links in running text: ink, with a coral underline */
a:not([class]) { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:not([class]):hover { color: var(--accent-text); }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover, .plain-link:focus-visible { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
/* An uppercase label above a heading (Georgian keeps its own letters: CSS capitals would turn it into Mtavruli) */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; font-size: 0.82rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); }
:lang(ka) .eyebrow { text-transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Motion (public/js/motion.js). Only transform and opacity move, so nothing shifts the layout or waits for input; with reduced
   motion none of it runs (theme-init.js leaves "motion" off <html>, and the rule above stops every animation). ---------------------- */
/* Page load: the hero rises in, its parts one after another */
@keyframes rise { from { opacity: 0.01; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--rise) var(--ease-out) backwards; }
.rise-1 { animation-delay: 0.08s; } .rise-2 { animation-delay: 0.18s; } .rise-3 { animation-delay: 0.3s; } .rise-4 { animation-delay: 0.45s; }
/* Scroll: a section or card fades and rises in once (a safety: shown after 3 seconds even if the script never ran) */
html.motion [data-reveal] { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); animation: reveal-safety 0.01s 3s forwards; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }
html.motion [data-reveal-stagger].is-in > * { animation: rise 0.7s var(--ease-out) backwards; }
html.motion [data-reveal-stagger].is-in > :nth-child(2) { animation-delay: 0.08s; }
html.motion [data-reveal-stagger].is-in > :nth-child(3) { animation-delay: 0.16s; }
html.motion [data-reveal-stagger].is-in > :nth-child(4) { animation-delay: 0.24s; }
html.motion [data-reveal-stagger].is-in > :nth-child(n+5) { animation-delay: 0.32s; }
/* Hover: a card lifts 6px with a tiny tilt */
.lift { transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.lift:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--lift-shadow); }
@media (hover: none) { .lift:hover, .expert-card:hover, .btn:hover { transform: none; } }
/* The pulsing coral "live" dot */
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.live-dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--live); animation: live-pulse 1.8s infinite; }
/* A number that just went up (an upvote): it bumps, and a "+1" floats away */
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes bump-plus { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -26px); } }
.is-bumped { position: relative; display: inline-block; animation: bump 0.45s var(--ease-out); }
.bump-plus { position: absolute; left: 50%; top: -4px; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--accent-text); pointer-events: none; animation: bump-plus 0.9s var(--ease-out) forwards; }
@media (prefers-reduced-motion: reduce) {
  .rise, .live-dot, .is-bumped, [data-reveal-stagger] > * { animation: none !important; }
  .bump-plus { display: none; }
}

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--inverse); color: var(--on-inverse); padding: 12px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip-link:focus { left: 16px; outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--c-sun); color: var(--on-pastel); }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Moving between pages: no hard cut. Where the browser has cross-document view transitions, the header (logo, links, language switch)
   and the footer stay where they are, the page's content fades out quickly (0.12s) and the next one fades in, rising 10px (0.22s).
   Elsewhere the content only fades in lightly as a page opens (html.page-fade, set by theme-init.js before the first paint; it never
   starts from blank). With reduced motion: an instant switch, nothing moves. */
@view-transition { navigation: auto; }
#siteHeader { view-transition-name: site-header; }
.footer { view-transition-name: site-footer; }
::view-transition-group(site-header), ::view-transition-group(site-footer),
::view-transition-new(site-header), ::view-transition-new(site-footer) { animation: none; }
::view-transition-old(site-header), ::view-transition-old(site-footer) { display: none; }
::view-transition-old(root) { animation: page-out 0.12s ease-in both; }
::view-transition-new(root) { animation: page-in 0.22s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes page-fade { from { opacity: 0.35; } }
html.motion.page-fade #main { animation: page-fade 0.2s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Breadcrumbs ------------------------------------------------------------------------------------- */
.breadcrumb { margin: 0 0 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 0.85rem; font-weight: 700; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); min-width: 0; }
.breadcrumb li + li::before { content: '›'; color: var(--ink-soft); font-weight: 800; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* Header ----------------------------------------------------------------------------------------------
   Desktop (1024px and up): logo, links, language, account buttons. Below 1024px the links and buttons live in a
   full-height menu panel (.mobile-menu, opened by nav.js). */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  border-bottom: var(--line-w) solid var(--line);
  padding-top: env(safe-area-inset-top);
  transition: transform 0.25s var(--ease-out);
}
.nav.nav-hidden { transform: translateY(-100%); }
/* (more room above than below: Jikhva's horns reach up from the logo, docs/CLAUDE-CODE-FINISH.md part 1) */
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter) 8px; min-height: 74px; }
/* The header's logo is Jikhva behind "Wisecall." (public/js/header.js): 64px high with his horns, 56px on phones; the letters are the ink,
   with a thin outline in the header's own colour, so only the letters cover him (docs/CLAUDE-CODE-NEW-HOME.md 1). The footer's is the
   plain image from /brand. */
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; line-height: 0; text-decoration: none; white-space: nowrap; }
.logo img { display: block; height: 36px; width: auto; }
.logo .jlogo { display: block; height: 64px; width: auto; overflow: visible; }
.jlogo-word, .jlogo-dot { stroke: var(--header-bg); stroke-width: 7; stroke-linejoin: round; paint-order: stroke fill; }
.jlogo-word { fill: var(--ink); }
.jlogo-dot { fill: var(--accent); }
@media (max-width: 1023px) { .logo img { height: 30px; } }
@media (max-width: 639px) { .logo img { height: 28px; } }
/* (a phone: a smaller header, about 56px, the logo about 40px with Jikhva's horns whole: docs/CLAUDE-CODE-COMPACT-HOME.md) */
@media (max-width: 767px) { .logo .jlogo { height: 40px; } }
.nav-links { display: flex; gap: 26px; flex: 1; white-space: nowrap; }
/* (a coral line grows under a link from the left) */
.nav-links a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
/* The header's inbox button and its unread badge (every page has the header, so these live here, not in app.css: the badge sits on the
   button's corner and never widens it) ------------------------------------------------------------- */
.nav-inbox {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--ink); background: transparent; border: var(--line-w) solid var(--line); text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-inbox:hover, .nav-inbox:focus-visible { background: var(--inverse); color: var(--on-inverse); }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-strong); color: var(--on-accent); border: var(--chip-w) solid var(--c-ink); font-size: 0.72rem; font-weight: 700; line-height: 1;
}
.nav-badge[hidden] { display: none; }
.nav-inbox .nav-badge { position: absolute; top: -6px; right: -6px; }
.nav-toggle { position: relative; }
.nav-badge-dot { position: absolute; top: 4px; right: 4px; min-width: 10px; width: 10px; height: 10px; padding: 0; border: 2px solid var(--card); }
.mm-inbox { gap: 10px; }
/* Room in the header: a signed-in person has Dashboard, Settings (and Admin) and Log out to fit, so only "Browse experts" stays of the
   marketing links (and "Become a mentor" for someone who is not one yet). Georgian words are longer: there the FAQ link always leaves the
   header (it is in the footer), and under 1180px so does "How it works". */
.nav.is-authed .nl-extra { display: none; }
/* (the header is drawn signed in or out from its first frame, public/js/header.js; it changes after the sign-in check only when that
   check disagrees, and then its links and buttons fade in instead of jumping) */
@keyframes auth-swap { from { opacity: 0; } }
html.motion .nav.auth-swap .nav-links, html.motion .nav.auth-swap .nav-right { animation: auth-swap 0.2s ease-out; }
html[lang="ka"] .nav-links .nl-faq { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.95rem; }
  .nav-right, .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 9px 11px; font-size: 0.9rem; }
  .lang-btn { padding: 7px 10px; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  html[lang="ka"] .nl-extra { display: none; }
  /* (signed in, in Georgian, "გახდი მენტორი" still fits next to Dashboard, Settings and Log out: a little less room around each) */
  html[lang="ka"] .nav.is-authed .nav-inner { gap: 8px; }
  html[lang="ka"] .nav.is-authed .nav-links { gap: 12px; }
  html[lang="ka"] .nav.is-authed .nav-links a { font-size: 0.9rem; }
  html[lang="ka"] .nav.is-authed .nav-right, html[lang="ka"] .nav.is-authed .nav-actions { gap: 4px; }
  html[lang="ka"] .nav.is-authed .nav-actions .btn { padding: 9px 8px; font-size: 0.85rem; }
}

/* The mentor button next to Dashboard (public/js/header.js): "Become a mentor", "Continue your application · step 2 of 5", or the status
   "Application in review". Where the header is narrow it uses its short words ("Application · 2/5"), and in Georgian always (the longer
   Georgian words are in the menu panel, on the home page and on the dashboard). */
.nav-mentor .nm-short { display: none; }
.mentor-status {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--sun-soft); color: var(--sun-ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.mentor-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.mentor-status:hover, .mentor-status:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.mentor-status:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mm-mentor.mentor-status { justify-content: center; white-space: normal; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-mentor .nm-full { display: none; }
  .nav-mentor .nm-short { display: inline; }
}
html[lang="ka"] .nav-mentor .nm-full { display: none; }
html[lang="ka"] .nav-mentor .nm-short { display: inline; }

/* EN | KA: a pill with an outline; the language in use is filled with ink */
.lang-toggle {
  display: flex; border: var(--chip-w) solid var(--line); background: transparent; border-radius: var(--r-pill); padding: 3px; gap: 2px;
}
.lang-btn {
  border: none; background: transparent; padding: 7px 12px; border-radius: var(--r-pill); min-height: 36px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { background: var(--gray-soft); }
.lang-btn.active { background: var(--inverse); color: var(--on-inverse); }
.lang-toggle-lg .lang-btn { padding: 10px 22px; font-size: 0.9rem; }

/* Buttons: a 2px ink outline, 14px corners; the primary action is coral with ink text and an "offset" shadow, and lifts on hover.
   Buttons that end with an arrow (.btn-arrow) slide it 4px. */
.btn {
  position: relative; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; line-height: 1.2; border-radius: var(--r-btn);
  padding: 11px 20px; border: var(--line-w) solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-arrow::after { content: "→"; content: "→" / ""; display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); border-color: var(--line); box-shadow: var(--offset-shadow); }
.btn-primary:hover { background: var(--accent-strong-hover); box-shadow: var(--offset-shadow-hover); }
.btn-primary:active { box-shadow: var(--offset-shadow-sm); }
.btn-ink { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.btn-ink:hover { box-shadow: var(--offset-shadow-sm); }
.btn-danger { background: var(--danger-bg); color: var(--on-danger); border-color: var(--danger-bg); }
.btn-danger:hover { filter: brightness(1.06); }
/* The confirmation dialog (public/js/dialog.js): it fades and rises in, and out (0.2s), where the browser can animate a dialog */
html.motion .wc-dialog, html.motion .wc-dialog::backdrop { transition: opacity 0.2s ease, transform 0.2s var(--ease-out), overlay 0.2s allow-discrete, display 0.2s allow-discrete; }
html.motion .wc-dialog:not([open]) { opacity: 0; transform: translateY(8px) scale(0.98); }
html.motion .wc-dialog:not([open])::backdrop { opacity: 0; }
@starting-style {
  html.motion .wc-dialog[open] { opacity: 0; transform: translateY(8px) scale(0.98); }
  html.motion .wc-dialog[open]::backdrop { opacity: 0; }
}
.wc-dialog { border: var(--line-w) solid var(--line); border-radius: var(--r-card); padding: 0; max-width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink);
  box-shadow: var(--offset-shadow); }
.wc-dialog::backdrop { background: var(--scrim); }
.wc-dialog-inner { padding: 24px 24px 20px; margin: 0; }
.wc-dialog-message { margin: 0 0 18px; font-size: 1rem; line-height: 1.5; font-weight: 600; }
.wc-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.wc-dialog-actions .btn { min-height: 44px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { border-color: var(--line); transform: none; }
.btn-outline { background: transparent; color: var(--ink); border: var(--line-w) solid var(--line); }
.btn-outline:hover { background: var(--card); box-shadow: var(--offset-shadow-sm); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; padding: 14px; }
.btn-sm { padding: 7px 14px; font-size: 0.88rem; border-radius: 12px; }

/* A note in a dashed "stamp" box (the development-mode codes on sign-up and in Settings) */
.hero-cta-banner {
  background: var(--sun-tint); border: var(--line-w) dashed var(--line); border-radius: var(--r-btn);
  padding: 18px 20px; max-width: 480px; font-size: 0.95rem; position: relative; color: var(--ink);
}
.hero-cta-banner::before {
  content: "✦ NEW"; position: absolute; top: -13px; left: 18px; background: var(--c-mint); color: var(--on-pastel); border: var(--chip-w) solid var(--c-ink);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; padding: 2px 10px; border-radius: var(--r-pill);
}
.hero-cta-banner a { color: var(--accent-text); font-weight: 700; }

/* Browse experts: the search, sort and field chips ------------------------------------------------------------- */
.experts { padding: 30px 0 90px; }
.browse-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search-input {
  flex: 1; min-width: 220px; padding: 12px 18px; border-radius: var(--r-btn); border: var(--line-w) solid var(--field-border);
  font-family: var(--font-body); font-size: 1rem; background: var(--field); color: var(--ink);
}
.sort-select {
  padding: 11px 16px; border-radius: var(--r-btn); border: var(--line-w) solid var(--field-border);
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; background: var(--field); color: var(--ink);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
/* Chips: pills with a 1.5px outline that invert on hover; the chosen one is filled with ink */
.chip {
  border: var(--chip-w) solid var(--line); background: transparent; padding: 8px 15px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover, .chip.active { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }

/* A mentor card: a pastel band with the photo, the name in the display face, the price over a dashed line; it lifts and tilts a
   little on hover. (The band colours take turns: mint, sun, blush.) */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.expert-card {
  background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg); padding: 0 22px 22px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  text-decoration: none; color: inherit;
}
.expert-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--lift-shadow); }
.expert-card .card-top {
  margin: 0 -22px 4px; padding: 26px 22px 18px; display: flex; align-items: center; gap: 14px;
  background: var(--c-mint); color: var(--on-pastel); border-bottom: var(--line-w) solid var(--c-ink);
}
.expert-card:nth-child(3n+2) .card-top { background: var(--c-sun); }
.expert-card:nth-child(3n) .card-top { background: var(--c-blush); }
.expert-card .card-top .avatar { width: 64px; height: 64px; font-size: 1.3rem; border: var(--line-w) solid var(--c-ink); }
.expert-card .card-top .card-role { color: var(--on-pastel); opacity: 0.85; }
.expert-card .card-top .badge { border: 1px solid var(--c-ink); }
.card-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.02rem; color: var(--white); flex-shrink: 0; font-family: var(--font-display);
}
.avatar-lg { width: 76px; height: 76px; font-size: 1.5rem; }
.card-name { font-weight: 800; font-size: 1.3rem; line-height: 1.15; font-family: var(--font-display); letter-spacing: var(--tracking-display); }
.card-role { font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }
.card-headline { font-weight: 600; }
.card-bio { font-size: 0.93rem; color: var(--ink-soft); flex-grow: 1; line-height: 1.5; }
/* A short bio on a card: 3 lines (2 on a small phone) ending in "…", at a word (lines break between words); the profile shows it all.
   "Read more →" only when it is cut (public/js/clamp.js). The stored text is never shortened. */
.card-bio-text, .lexpert-bio { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: break-word; }
@media (max-width: 360px) { .card-bio-text, .lexpert-bio { -webkit-line-clamp: 2; line-clamp: 2; } }
.card-more { display: inline-block; margin-top: 4px; color: var(--accent-text); font-weight: 700; font-size: 0.9rem; }
.card-more[hidden], .lexpert-more[hidden] { display: none; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: var(--chip-w) dashed var(--border); }
.rating { font-size: 0.85rem; color: var(--gold-text); font-weight: 700; }
.price { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.3rem; }
.price span { font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0; }
.expert-card .btn { margin-top: 4px; }

/* Loading skeletons ----------------------------------------------------------------------------------------------------------------
   Soft paper-grey blocks in the shape of what is on its way: the same boxes, sizes and corners as the real thing (Browse's cards, a
   profile, the dashboard's questions, the inbox, the answers library), so nothing moves when it arrives. They are hidden from screen
   readers (aria-hidden); one visually hidden "Loading…" status speaks for them. While motion is allowed a soft band of light passes
   over each block (transform only); with reduced motion they stand still. */
.skeleton { display: block; position: relative; overflow: hidden; border-radius: 8px; background: var(--skeleton-a); }
html.motion .skeleton::after {
  content: ""; position: absolute; inset: 0; background: var(--skeleton-b); transform: translateX(-100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--c-ink) 50%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--c-ink) 50%, transparent);
  animation: skeleton-shine 1.8s ease-in-out infinite;
}
@keyframes skeleton-shine { to { transform: translateX(100%); } }
.skeleton-line { height: 12px; margin: 9px 0; }
.skeleton-line.w90 { width: 90%; } .skeleton-line.w80 { width: 80%; } .skeleton-line.w70 { width: 70%; } .skeleton-line.w60 { width: 60%; } .skeleton-line.w40 { width: 40%; }
.skeleton-title { height: 26px; width: 55%; margin: 4px 0 12px; border-radius: 10px; }
.skeleton-name { height: 20px; width: 70%; margin: 2px 0 8px; }
.skeleton-name.w40 { width: 40%; } .skeleton-name.w60 { width: 60%; } .skeleton-name.w80 { width: 80%; }
.skeleton-avatar { width: 76px; height: 76px; border-radius: 50%; flex: 0 0 auto; }
.skeleton-avatar.md { width: 64px; height: 64px; }
.skeleton-avatar.sm { width: 40px; height: 40px; }
.skeleton-pill { display: inline-block; width: 86px; height: 26px; border-radius: var(--r-pill); }
.skeleton-price { flex: 0 0 auto; width: 72px; height: 24px; }
.skeleton-btn { height: 40px; border-radius: var(--r-btn); }
.skeleton-input { height: 52px; border-radius: var(--r-field); }
.skeleton-label { height: 14px; width: 40%; margin: 3px 0 10px; }
.skeleton-stack { flex: 1; min-width: 0; }
.skeleton-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.skeleton-card { background: var(--card); border-radius: var(--radius); padding: 24px; border: var(--line-w) solid var(--line); margin-bottom: 20px; }
.skeleton-card .skeleton-btn + .skeleton-btn { margin-top: 10px; }

/* Browse experts: the card, its pastel band a quiet grey (6 cards on phones and tablets, 8 on a desktop) */
.expert-card.skeleton-expert { pointer-events: none; }
.expert-card.skeleton-expert:hover { transform: none; box-shadow: none; }
.expert-grid .expert-card.skeleton-expert .card-top { background: var(--skeleton-b); border-bottom-color: var(--border); }
.skeleton-expert .card-bottom { min-height: 46px; }
.skeleton-line.strong { height: 14px; }
/* (narrower cards and Georgian words wrap onto more lines: so does the skeleton) */
.skeleton-expert .sk-more, .skeleton-expert .sk-ka { display: none; }
@media (max-width: 1279px) { .skeleton-expert .sk-more { display: block; } }
:lang(ka) .skeleton-expert .sk-ka { display: block; }
@media (max-width: 1023px) { .skeleton-expert:nth-of-type(n+7) { display: none; } }
/* the field tiles and their "See all" button, until the fields arrive (the tiles' own rules show only full rows) */
.skeleton-tile > .skeleton { flex: 1; min-height: 56px; border-radius: 16px; }
.skeleton-more { width: 100%; height: 48px; margin-top: 16px; border-radius: var(--r-pill); }
@media (min-width: 1024px) {
  .skeleton-tile > .skeleton { min-height: 64px; }
  .skeleton-more { width: 320px; margin: 20px auto 0; }
}
/* the hero's popular fields */
.skeleton-chip { width: 86px; height: 40px; border-radius: var(--r-pill); }
@media (max-width: 1023px), (pointer: coarse) { .skeleton-chip { height: 44px; } }

/* the profile (the server writes the name and the words; these stand in for what the page script adds) */
.profile-tags .skeleton-pill { height: 30px; } .skeleton-pill.sm { width: 60px; } .skeleton-pill.lg { width: 140px; }
.skeleton-share { width: 126px; height: 44px; border-radius: var(--r-btn); }
.ask-skeleton { margin: 0; padding: 28px; border-radius: var(--r-card-lg); }
.ask-skeleton .skeleton-price { width: 110px; height: 34px; margin: 6px 0 16px; }
.ask-skeleton .skeleton-block { height: 76px; border-radius: 14px; margin-bottom: 16px; }

/* the dashboard: a question */
.skeleton-booking .timeline li { gap: 8px; }
.skeleton-booking .skeleton-dot { width: 24px; height: 24px; border-radius: 50%; position: relative; z-index: 1; }
.skeleton-booking .timeline .skeleton-line { width: 64px; height: 10px; margin: 0; }

/* the inbox: a conversation in the list, and a conversation's messages */
.skeleton-thread { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 72px; }
.skeleton-thread .skeleton-line { margin: 5px 0; }
.skeleton-thread-view .thread-head { min-height: 56px; }
.skeleton-bubble { height: 88px; width: min(420px, 82%); border-radius: 20px 20px 20px 6px; }
.skeleton-bubble.mine { justify-self: end; width: min(380px, 74%); border-radius: 20px 20px 6px 20px; }
.skeleton-thread-view .thread-body { display: grid; gap: 12px; padding: 14px 2px; }

/* the answers library: an answer */
.skeleton-answer .skeleton-name { margin-bottom: 12px; }

/* "Become a mentor" (Settings): an ink band */
.become { background: var(--navy); padding: 60px 0; color: var(--on-navy); position: relative; overflow: hidden; border-radius: var(--r-card-lg); }
.become-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.become h2 { margin: 0 0 8px; font-size: 1.7rem; color: var(--on-navy); }
.become p { margin: 0; color: var(--on-navy-soft); }

/* Footer: an ink line on top, the logo large, three link columns */
.footer { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); border-top: var(--line-w) solid var(--line); background: var(--bg); }
.footer p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; font-weight: 500; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand .logo { display: inline-flex; }
.footer-brand .logo img { height: 48px; }
.footer-brand p { margin: 12px 0 0; max-width: 300px; font-size: 1rem; }
.footer .footer-contact { margin-top: 14px; }
.footer-contact a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 0; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-btn);
  background: transparent; color: var(--ink); border: var(--line-w) solid var(--line); transition: background-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--inverse); color: var(--on-inverse); }
.footer-col h2 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
:lang(ka) .footer-col h2 { text-transform: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { position: relative; display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-size: 0.97rem; font-weight: 500; text-decoration: none; }
.footer-col a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.footer-col a:hover::after, .footer-col a:focus-visible::after { transform: scaleX(1); }
.footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: var(--chip-w) dashed var(--border); }
.footer-lang { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-col a { min-height: 44px; }
}

/* Auth pages */
.auth-page { display: flex; justify-content: center; padding: 64px var(--gutter) 100px; }
.auth-card {
  background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg);
  padding: 38px 34px; width: 100%; max-width: 440px;
}
.auth-card h1 { font-size: var(--fs-h1); margin: 0 0 8px; }
.auth-card > .muted { margin: 0 0 22px; font-size: 0.95rem; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 0.92rem; color: var(--ink-soft); }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; margin-left: 4px; }

form label {
  display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--ink);
}
form input, form textarea, form select {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: var(--r-field); border: var(--line-w) solid var(--field-border);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); resize: vertical; background: var(--field);
  transition: box-shadow 0.2s var(--ease-out);
}
form input:focus, form textarea:focus, form select:focus { box-shadow: var(--offset-shadow-sm); }
/* (a field being typed in gets the ink ring: the coral one read like an error, docs/FLOW-REVIEW.md 10; buttons and links keep coral) */
form input:focus-visible, form textarea:focus-visible, form select:focus-visible { outline-color: var(--ink); }
form input[type="checkbox"], form input[type="radio"] { width: auto; box-shadow: none; accent-color: var(--accent-strong); }
form .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; margin-top: 6px; }
/* A button that looks like a link (on every page: docs/FLOW-REVIEW.md 10) */
.linklike { background: none; border: none; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.form-error { color: var(--red-strong); font-size: 0.88rem; margin: -6px 0 14px; min-height: 1em; font-weight: 600; }
/* The "are you a person?" check (only when it is on): in its slot under the form's input row, full width, and no room taken while there is
   nothing to show (docs/CLAUDE-CODE-TURNSTILE-FIX.md) */
.turnstile-slot { width: 100%; }
.turnstile-slot:empty { display: none; }
.turnstile-slot.is-asking { margin: 8px 0 6px; }
.turnstile-box { width: 100%; max-width: 100%; }
.turnstile-box:empty { display: none; }
/* "Find me a mentor": the optional budget, from / to side by side */
.rq-budget { border: 0; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; min-width: 0; }
.rq-budget legend { grid-column: 1 / -1; padding: 0; font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; }
.rq-cta { margin: 18px 0 0; font-weight: 700; }
.rq-merge select { padding: 8px 12px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--field); color: var(--ink); font-family: var(--font-body); margin-left: 6px; }
.rq-merge label { display: flex; align-items: center; margin: 0; }

/* Expert profile page */
.expert-page { padding: 46px 24px 100px; max-width: 640px; }
.expert-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.expert-hero h1 { margin: 0 0 4px; font-size: 1.7rem; }
.expert-bio { color: var(--ink-soft); margin-bottom: 30px; }
.ask-card {
  background: var(--card); border: none; border-radius: var(--radius); padding: 24px;
  box-shadow: none; border: var(--line-w) solid var(--line);
}
.ask-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 18px; }
.booking-result { text-align: center; padding: 10px 0; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--mint-soft); color: var(--accent2-strong);
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  animation: pop-in 0.4s cubic-bezier(.34,1.56,.64,1) both;
}

.reviews-section { margin-top: 36px; }
.reviews-title { font-size: 1.15rem; margin: 0 0 16px; }
.review-card { border-top: 1px solid var(--border); padding: 14px 0; }
.review-card:first-of-type { border-top: none; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-stars { color: var(--gold-text); letter-spacing: 1px; }
.review-text { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* Dashboard */
.dash { padding: 46px 24px 100px; max-width: 760px; }
.dash h1 { margin: 0 0 30px; }
.dash-section { margin-bottom: 38px; }
.dash-section h2 { font-size: 1.15rem; margin-bottom: 14px; font-weight: 800; }
.booking-card {
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px;
  box-shadow: none; border: var(--line-w) solid var(--line);
}
.booking-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.booking-top .avatar { width: 40px; height: 40px; font-size: 0.88rem; }
.booking-amount { margin-left: auto; text-align: right; font-weight: 800; }
.booking-question { color: var(--ink); font-size: 0.93rem; margin: 0 0 8px; }
.booking-answer { background: var(--mint-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.9rem; }
.answer-form textarea { margin-bottom: 10px; }
.answer-form .q-meta { margin-bottom: 8px; }
.answer-review { display: grid; gap: 10px; }
.answer-review-title { margin: 0; font-size: 1.05rem; }
.answer-review-title:focus { outline: none; }
.answer-warn { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-weight: 800; font-size: 0.9rem; }
.answer-preview { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card); border: 2px solid var(--border); font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.answer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mv-note { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-size: 0.88rem; }
.unfinished { margin-top: 18px; }
.unfinished-toggle { margin-bottom: 10px; }
.pay-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.9rem; }
.pay-notice.cancelled { background: var(--sun-soft); color: var(--sun-ink); }
.pay-notice.failed { background: var(--pink-soft); color: var(--red-strong); }
.pay-notice:focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.review-form textarea { margin: 8px 0 10px; width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid var(--border); font-family: inherit; font-size: 0.88rem; }
.star-picker { display: flex; gap: 4px; margin-bottom: 4px; }
.star-btn { background: none; border: none; font-size: 1.5rem; color: var(--border); cursor: pointer; padding: 0; line-height: 1; transition: transform 0.12s; }
.star-btn:hover { transform: scale(1.2); }
.star-btn.filled { color: var(--gold-text); }
.review-submitted { margin-top: 10px; }
.review-submitted .review-text { margin-top: 4px; font-size: 0.88rem; color: var(--ink-soft); }

.badge {
  display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); line-height: 1.4;
}
.badge-pending_payment { color: var(--sun-ink); background: var(--sun-soft); }
.badge-paid { color: var(--accent2-text); background: var(--mint-soft); }
.badge-answered { color: var(--ink); background: var(--lav-soft); }
.badge-rejected { color: var(--red-strong); background: var(--pink-soft); }
.badge-refunded { color: var(--red-strong); background: var(--pink-soft); }
.badge-expired { color: var(--ink-soft); background: var(--gray-soft); }
.booking-note { margin: 0 0 8px; font-size: 0.84rem; color: var(--ink-soft); font-weight: 600; }

/* Settings */
.settings { padding: 46px 24px 100px; max-width: 640px; }
.settings h1 { margin: 0 0 30px; }
.settings-card {
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 26px; margin-bottom: 22px;
  box-shadow: none; border: var(--line-w) solid var(--line);
}
.settings-card h2 { font-size: 1.1rem; margin: 0 0 16px; }
.settings-card h3 { font-size: 0.94rem; margin: 0 0 6px; font-weight: 800; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; margin-bottom: 4px; cursor: pointer; font-weight: 700; }
.checkbox-row input { width: auto; margin: 0; accent-color: var(--accent); }
#mentorForm { display: grid; gap: 0; margin-top: 16px; }
.payouts-box { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }

.verify-banner {
  background: var(--sun-soft); color: var(--sun-ink); border-bottom: 1px solid var(--border);
  text-align: center; padding: 12px 16px; font-size: 0.88rem; font-weight: 700;
}
.verify-banner a { color: var(--accent-text); font-weight: 800; text-decoration: none; margin-left: 6px; }

/* Pages that fill in after they load start tall enough for the footer to begin below the fold, so it never jumps. */
.expert-wrap, .dash, .settings { min-height: 100vh; min-height: 100svh; }
.breadcrumb { min-height: 34px; }

/* Before launch (prelaunch mode): a slim note under the header, and the home page's Browse section
   shows the waiting list instead of the expert search. */
.launch-banner {
  background: var(--mint-soft); color: var(--mint-banner-ink); border-bottom: 1px solid var(--border);
  text-align: center; padding: 12px 16px; font-size: 0.92rem; font-weight: 700;
}
.launch-banner a { color: var(--accent-text); font-weight: 800; margin-left: 6px; }
.launch-banner-admin { border: 1px solid var(--mint-line); border-radius: var(--radius-sm); text-align: left; margin: 0 0 18px; }
/* (Browse, its search and its field filters stay open before launch: docs/CLAUDE-CODE-NEW-HOME.md 4. No prelaunch rule may hide a
   .filters row: the admin's tabs and status chips are one, docs/CLAUDE-CODE-ADMIN-TABS-BUG.md) */

/* The waiting-list card (the empty list after launch, a field's page). One clean card: on a phone a small picture and
   one short line above the form; from a tablet up two columns (the picture and the text on the left, the form on the right), never wider
   than 960px. Under it, a plain link for mentors. */
.wl-card {
  grid-column: 1 / -1; width: 100%; max-width: 560px; margin: 0; background: var(--card); border: var(--line-w) solid var(--line);
  border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 20px; text-align: left;
}
/* (on a phone the picture and the title share a row and the sentence runs under both, full width) */
.wl-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
.wl-intro .empty-art { width: auto; max-width: none; height: 64px; }
.wl-text { display: contents; }
.wl-intro .wl-sub { grid-column: 1 / -1; margin-top: 12px; }
.wl-card-plain .wl-intro { display: block; } /* (a field's page: no picture, the sentence alone) */
.wl-lead { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.wl-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.wl-sub { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.wl-mentor { grid-column: 1 / -1; margin: 16px 0 0; line-height: 1.6; }
/* (inline, so a long line wraps with the arrow after its last word; the padding makes the tap area 44px tall) */
.arrow-link {
  display: inline; padding: 12px 0; font-weight: 700; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.arrow-link::after { content: "→"; content: "→" / ""; display: inline-block; margin-left: 6px; transition: transform 0.25s var(--ease-out); }
.arrow-link:hover::after { transform: translateX(4px); }
@media (min-width: 768px) {
  .wl-card { max-width: 960px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 40px; padding: 40px; }
  .wl-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .wl-text { display: block; min-width: 0; }
  .wl-intro .empty-art { height: 96px; }
  .wl-lead { font-size: 1.3rem; }
  .wl-title { font-size: 1.4rem; }
  .wl-intro .wl-sub { font-size: 1rem; margin-top: 10px; }
}
@media (min-width: 1024px) {
  /* (the email and the field side by side, each wide enough for "Any field" in Georgian) */
  .wl-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; padding: 48px; }
  .wl-card .waitlist-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* The waiting-list form itself (in the card above, and in the expert profile's panel): stacked, full-width fields 52px tall, a full-width
   button with nothing under it, the privacy note centred below. */
.empty-wait { width: 100%; margin-top: 18px; }
.waitlist-form { display: flex; flex-direction: column; gap: 16px; margin: 0; text-align: left; }
.waitlist-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* (the question typed in the home page's search, kept with the sign-up) */
.waitlist-question { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--mint-banner-ink); font-size: 0.95rem; overflow-wrap: anywhere; }
.waitlist-question span { font-weight: 800; }
.waitlist-question small { display: block; margin-top: 4px; font-size: 0.85rem; }
.waitlist-question[hidden] { display: none; }
.waitlist-row label { margin: 0; }
.waitlist-row label span { display: block; }
.waitlist-row input, .waitlist-row select { min-height: 52px; }
.waitlist-form .waitlist-submit, .waitlist-form .waitlist-submit:hover { width: 100%; min-height: 52px; box-shadow: none; }
.waitlist-form .waitlist-hint { margin: 0; text-align: center; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); }
.waitlist-hint a { color: var(--accent-text); font-weight: 700; }
.waitlist-error { margin: 0; }
.waitlist-error:empty { display: none; }
/* (the success note: a mint check and one line, centred in the space the form had) */
.waitlist-done {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 20px 8px;
  color: var(--ink); text-align: center; font-weight: 700;
}
.waitlist-done p { margin: 0; max-width: 32ch; font-size: 1.05rem; line-height: 1.45; }
.waitlist-check { width: 56px; height: 56px; flex: 0 0 auto; }
.waitlist-check circle { fill: var(--c-mint); stroke: var(--on-pastel); }
.waitlist-check path { stroke: var(--on-pastel); }

/* Settings tabs */
/* (the tabs wrap onto a second line when they do not fit: every tab stays in sight, docs/CLAUDE-CODE-UX-WALKTHROUGH.md D) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tab {
  flex: 0 0 auto; min-height: 44px; border: var(--chip-w) solid var(--line); background: transparent; padding: 9px 18px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer; color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab[hidden], .tab-panel[hidden] { display: none; }
.tab:hover { background: var(--gray-soft); }
.tab.active { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.tab:focus-visible, .vt-action summary:focus-visible, .vt-why summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* How we verify mentors (home) */
.verify-how { padding: 70px 0; }
.verify-how h2 { font-size: 2rem; margin: 0 0 10px; }
.verify-sub { max-width: 640px; margin: 0 0 32px; color: var(--ink-soft); font-size: 1.02rem; }
.verify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 30px; }
.verify-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: none; border: var(--line-w) solid var(--line); }
.verify-card h3 { margin: 10px 0 6px; font-size: 1.05rem; font-weight: 800; }
.verify-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.verify-ico { color: var(--accent2-strong); background: var(--mint-soft); padding: 9px; box-sizing: content-box; border-radius: 14px; }
.verify-legend-title { margin: 0 0 10px; font-weight: 800; }

/* Report this mentor */
.report-section { margin-top: 28px; padding-top: 12px; border-top: 1px dashed var(--border); }
.report-box { margin-top: 10px; }
.report-box summary, .report-login a { cursor: pointer; color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.report-box summary:hover, .report-login a:hover { color: var(--accent-text); }
.report-box summary:focus-visible, .report-login a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.report-form { display: grid; gap: 0; margin-top: 8px; max-width: 460px; }
.report-form .btn { justify-self: start; }
.report-login { margin: 0; }
.mv-suspend { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); }

/* Trust badges */
.trust-row { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badge {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--mint-soft); color: var(--accent2-text); font-size: 0.78rem; font-weight: 700; line-height: 1.3;
}
.trust-badge-lg { font-size: 0.85rem; padding: 7px 14px; min-height: 36px; cursor: help; }
.trust-badge-lg:not([tabindex]) { cursor: default; }
.trust-icon { flex: 0 0 auto; }
.trust-tip {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: max-content; max-width: min(280px, 80vw);
  background: var(--inverse); color: var(--on-inverse); padding: 10px 14px; border-radius: var(--r-btn); font-size: 0.82rem; font-weight: 500; line-height: 1.45;
  box-shadow: var(--offset-shadow-sm); pointer-events: none;
  display: none; /* (a hidden tip takes no room, so a badge near the right edge never makes the page wider) */
}
.trust-badge-lg:hover .trust-tip, .trust-badge-lg:focus .trust-tip { display: block; }
/* The last badges in a row open their tip towards the left, so it stays on the screen. */
.trust-list > li:nth-last-child(-n+2) .trust-tip { left: auto; right: 0; }
.trust-badge-lg:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Verification tab: progress tracker */
.vt-summary-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.vt-summary-head h2 { margin: 0; }
.vt-bar { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.vt-bar span { display: block; height: 100%; background: var(--accent2-strong); border-radius: 999px; transition: width 0.5s var(--ease-out); }
.vt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vt-main-list { margin-bottom: 22px; }
.vt-step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; background: var(--card); border-radius: var(--radius);
  padding: 18px; box-shadow: none; border: var(--line-w) solid var(--line);
}
.vt-group { background: var(--bg); border: var(--line-w) dashed var(--line); border-radius: var(--radius); padding: 14px; }
.vt-group .vt-step { box-shadow: none; }
.vt-group-title { margin: 0 0 10px; }
.vt-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; background: var(--gray-soft); color: var(--ink-soft);
}
.vt-passed > .vt-icon { background: var(--accent2-strong); color: var(--on-accent2); }
.vt-pending > .vt-icon { background: var(--sun-soft); color: var(--sun-ink); }
.vt-failed > .vt-icon { background: var(--pink-soft); color: var(--red-strong); }
.vt-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.vt-head h3 { margin: 0; font-size: 1rem; }
.vt-main p { margin: 4px 0 0; }
.vt-action { margin-top: 10px; }
.vt-action summary, .vt-why summary { cursor: pointer; font-weight: 800; color: var(--accent-text); min-height: 44px; display: flex; align-items: center; }
.vt-action-body { padding-top: 6px; }
.vt-form { display: grid; gap: 0; margin-top: 8px; }
.vt-form .btn { justify-self: start; }
.vt-files, .vt-slots { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.vt-files li, .vt-slots li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.9rem; word-break: break-word; }
.vt-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vt-soon { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-size: 0.9rem; }
.vt-why ul { margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.92rem; }

/* Verification tab: the application in three steps (Identity -> Experience -> Review) */
.ap-stepper { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.ap-stepper-item { position: relative; }
.ap-stepper-link {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg);
  color: inherit; text-decoration: none; border: 2px solid transparent;
}
.ap-stepper-link:hover { border-color: var(--border); }
.ap-stepper-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ap-stepper-num {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; background: var(--gray-soft); color: var(--ink-soft);
}
.ap-stepper-text { display: grid; line-height: 1.25; min-width: 0; }
.ap-stepper-text .small { color: var(--ink-soft); }
.ap-done .ap-stepper-num { background: var(--accent2-strong); color: var(--on-accent2); }
.ap-waiting .ap-stepper-num { background: var(--sun-soft); color: var(--sun-ink); }
.ap-attention .ap-stepper-num { background: var(--pink-soft); color: var(--red-strong); }
.ap-section { scroll-margin-top: 90px; }
.ap-section h3 { margin: 0; font-size: 1.1rem; }
.ap-section h4 { margin: 18px 0 4px; font-size: 1rem; }
.ap-welcome { margin: 6px 0 4px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--mint-banner-ink); font-size: 0.92rem; font-weight: 700; }
.ap-line { margin: 8px 0 0; }
.ap-ok { color: var(--accent2-text); font-weight: 700; }
.ap-note { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-size: 0.92rem; }
.ap-note p { margin: 0 0 8px; }
.ap-block { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 6px; }
.ap-count { font-weight: 700; }
.ap-evidence { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.ap-evidence li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.9rem; }
.ap-evidence-main { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.ap-evidence-kind { font-weight: 800; }
.ap-evidence-what { overflow-wrap: anywhere; }
.ap-ev-form { grid-template-columns: minmax(0, 1fr); }
.ap-optional { margin-top: 14px; }
.ap-optional summary { cursor: pointer; font-weight: 800; color: var(--accent-text); min-height: 44px; display: flex; align-items: center; }
.ap-submit { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.ap-missing { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-size: 0.92rem; margin-bottom: 10px; }
.ap-missing p { margin: 0 0 4px; }
.ap-missing ul { margin: 0; padding-left: 20px; }
.ap-missing .linklike { color: inherit; text-decoration: underline; }
.ap-submit .btn[aria-disabled="true"] { opacity: 0.65; }
.ap-summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0; font-size: 0.92rem; }
.ap-summary dt { font-weight: 800; }
.ap-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 560px) {
  .ap-stepper { grid-template-columns: minmax(0, 1fr); }
  .ap-summary { grid-template-columns: minmax(0, 1fr); }
  .ap-summary dd { margin-bottom: 6px; }
}
@media (max-width: 560px) {
  .vt-step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 14px; }
  .vt-icon { width: 32px; height: 32px; font-size: 0.95rem; }
}

/* Toast */
.toast {
  position: fixed; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(30px); border: var(--line-w) solid var(--inverse);
  background: var(--inverse); color: var(--on-inverse); padding: 13px 22px; border-radius: var(--r-btn); font-size: 0.95rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); z-index: 1001; max-width: 90vw; text-align: center;
  box-shadow: 0 8px 0 -2px var(--accent);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .auth-page, .expert-page, .dash, .settings { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 2.3rem; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .become-inner { flex-direction: column; text-align: center; }
}

/* Footer links, legal pages, signup consent */
.consent { margin: 14px 0 0; text-align: center; line-height: 1.5; }
.consent a { color: var(--accent-text); font-weight: 800; }
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: var(--fs-h1); margin: 0 0 8px; }
.legal-intro { font-size: 1.05rem; margin: 18px 0 8px; }
.legal-section { margin-top: 30px; }
.legal-section h2 { font-size: 1.15rem; margin: 0 0 8px; }
.legal-section p { line-height: 1.7; margin: 0 0 10px; }
/* Menu button and panel (below 1024px) ------------------------------------------------------------------- */
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-left: auto; position: relative;
  background: var(--card); border: var(--line-w) solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { position: fixed; inset: 0; z-index: 1000; }
.mobile-menu[hidden] { display: none; }
.mm-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.25s ease; }
.mm-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 420px); background: var(--raised);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) 20px;
  border-left: var(--line-w) solid var(--line); border-radius: var(--r-card-lg) 0 0 var(--r-card-lg);
  transform: translateX(100%); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-menu.is-open .mm-backdrop { opacity: 1; }
.mobile-menu.is-open .mm-panel { transform: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mm-close {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  background: var(--card); border: var(--line-w) solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
}
.mm-close svg { width: 22px; height: 22px; }
.mm-links { display: grid; margin: 10px 0 8px; }
.mm-links a {
  display: flex; align-items: center; min-height: 60px; padding: 0 4px; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: var(--tracking-display); border-bottom: var(--chip-w) solid var(--line);
}
/* (the rest of the site's links, small, two to a row) */
.mm-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.mm-more a { display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 0.92rem; text-decoration: none; }
.mm-links a::after { content: "→"; content: "→" / ""; margin-left: auto; font-size: 1.2rem; transition: transform 0.25s var(--ease-out); }
.mm-links a:hover::after { transform: translateX(4px); }
.mm-lang { margin: 20px 0 8px; }
.mm-lang .lang-toggle { display: inline-flex; }
.mm-lang .lang-btn { min-height: 44px; padding: 0 22px; font-size: 0.9rem; }
.mm-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 1023px) {
  .nav-inner { padding: 14px 16px 6px; gap: 12px; min-height: 60px; } /* (room above Jikhva's horns) */
  .nav-links, .nav-right .nav-actions { display: none !important; }
  .nav-right { margin-left: auto; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
}
@media (max-width: 639px) {
  .mm-panel { width: 100%; border-radius: 0; box-shadow: none; }
}
/* Touch targets: everything you can tap is at least 44 px high on phones and tablets. */
@media (max-width: 1023px), (pointer: coarse) {
  .btn, .btn-sm, .chip, .tab, .lang-btn, .sort-select, .search-input { min-height: 44px; }
  .checkbox-row { min-height: 44px; }
  .star-btn { min-width: 44px; min-height: 44px; }
}

/* Empty marketplace */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 44px 24px; background: var(--card);
  border: var(--line-w) dashed var(--line); border-radius: var(--r-card-lg);
}
.empty-state h3 { margin: 0 0 8px; font-size: 1.3rem; }
.empty-state p { margin: 0 auto 20px; max-width: 460px; color: var(--ink-soft); }
.empty-rich { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 640px; margin: 0 auto; padding: 20px 0; }
.empty-rich h3 { margin: 4px 0 0; font-size: 1.5rem; }
.empty-rich p { margin: 0; color: var(--ink-soft); max-width: 480px; }
.empty-art { width: 220px; max-width: 70%; height: auto; }
/* About, contact, error pages */
.about-actions, .error-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { max-width: 520px; }
.contact-card textarea { width: 100%; }
.contact-done { font-weight: 700; line-height: 1.6; margin: 8px 0 0; }
.error-page { text-align: center; padding-top: 72px; padding-bottom: 96px; max-width: 560px; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 11rem); line-height: 0.9; margin: 0; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 3px var(--ink); }
.error-page h1 { margin: 6px 0 10px; font-size: 1.8rem; }
.error-actions { justify-content: center; }
/* Fake bank page (development only) */
.mock-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; margin: 6px 0 14px; }
.mock-actions { display: grid; gap: 10px; }

/* Earnings (mentor dashboard) and payouts (admin) */
.earn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 6px 0 12px; }
.earn-card { background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: none; border: var(--line-w) solid var(--line); }
.earn-card span { display: block; color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }
.earn-card strong { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-top: 2px; }
.earn-card.warn strong { color: var(--red-strong); }
.overview-title { margin: 28px 0 10px; }
.overview-title:first-child { margin-top: 0; }
.earn-h { margin: 22px 0 8px; font-size: 1.05rem; }
.earn-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.earn-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.92rem; }
.earn-list li strong { text-align: right; white-space: nowrap; }
.payout-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.payout-pay { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.payout-pay input { flex: 1 1 220px; }
.dev-ff { border-top: 1px dashed var(--border); padding-top: 10px; }
.dev-ff input { flex: 0 0 96px; width: 96px; }
.iban-line { letter-spacing: 0.04em; user-select: all; }
@media (max-width: 560px) {
  .earn-list li { grid-template-columns: 1fr auto; }
  .earn-list li span:nth-child(2) { grid-column: 1 / -1; order: 3; }
}.payout-pay input, .reject-note-input {
  padding: 10px 16px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--field);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink);
}
.payout-pay input:focus, .reject-note-input:focus { border-color: var(--accent); }
/* Mentor verification review (admin) */
.badge-muted { background: var(--gray-soft); color: var(--ink-soft); }
.mv-body { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.mv-steps { display: grid; gap: 10px; margin: 12px 0; }
.mv-step, .mv-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.mv-group { display: grid; gap: 10px; background: var(--bg); }
.mv-group .mv-step { border-style: dashed; }
.mv-step-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.mv-evidence { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.88rem; word-break: break-word; }
.mv-decide { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.mv-decide input { flex: 1 1 220px; }
.mv-final { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.mv-reject { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.mv-decide input, .mv-reject input {
  padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--field);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
}
.mv-decide input:focus, .mv-reject input:focus { border-color: var(--accent); }
.mv-credentials, .mv-kyc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; }
/* The automatic analysis, on top of an application (admin) */
.mv-analysis { background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 12px; }
.mv-analysis .mv-step-head { justify-content: flex-start; }
.mv-ai-summary { margin: 8px 0; font-weight: 700; }
.mv-scores { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.86rem; }
.mv-scores th { text-align: left; font-weight: 600; padding: 3px 8px 3px 0; white-space: nowrap; width: 1%; }
.mv-scores td { padding: 3px 0; }
.mv-scores td:last-child { width: 3em; text-align: right; font-weight: 800; }
.mv-score-bar { display: block; height: 8px; border-radius: 999px; background: var(--accent2-strong); max-width: 100%; }
.mv-application, .mv-evidence-list { margin: 0 0 12px; }
.mv-costs p { margin: 0 0 14px; }
.mv-docs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mv-docs li { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; word-break: break-word; }
.mv-audit { margin-top: 14px; }
.mv-audit summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.mv-audit summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* Footer: brand and three link columns. Two by two on tablets, stacked on phones. */
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
}
@media (max-width: 639px) {
  .footer { padding-top: 40px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; } /* (the link groups two by two) */
  .footer-brand { grid-column: 1 / -1; }
  .footer-col ul { gap: 6px; }
  .footer-col a { min-height: 44px; padding: 4px 0; line-height: 1.3; } /* (a name on two lines reads as one link) */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (pointer: coarse) { .footer-col a { min-height: 44px; } }
img, svg, video { max-width: 100%; }

/* Browse: search, filters, count ---------------------------------------------------------------------------- */
.browse-controls { display: flex; align-items: center; gap: 14px; }
.filters-btn { display: none; gap: 8px; }
.filters-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent-strong); color: var(--on-accent);
  font-size: 0.78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.result-count { margin: 0; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.filters-slot .filters { margin-bottom: 36px; }
@media (max-width: 639px) {
  .browse-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
  .search-input { width: 100%; min-width: 0; font-size: 1rem; }
  .filters-btn { display: inline-flex; }
  .browse-controls { justify-content: space-between; }
  .sort-slot:not(:has(select)) { display: none; }
  .filters-slot { display: none; }
}

/* Bottom sheet (phones): Browse's filters and the expert page's question form ------------------------------ */
.sheet { position: fixed; inset: 0; z-index: 1000; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.25s ease; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--raised); border-radius: var(--r-card-lg) var(--r-card-lg) 0 0; border-top: var(--line-w) solid var(--line);
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--grip); margin: 10px auto 0; flex: 0 0 auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px 4px; flex: 0 0 auto; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.sheet-close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: var(--card); border: var(--line-w) solid var(--line); border-radius: 12px; color: var(--ink);
}
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 12px; flex: 1 1 auto; }
.sheet-label { margin: 14px 0 8px; font-weight: 700; font-size: 0.82rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); }
.sheet-body .sort-select { width: 100%; min-height: 48px; font-size: 1rem; }
.sheet-body .filters { margin: 0 0 8px; gap: 10px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); flex: 0 0 auto; background: var(--raised); }
.sheet-foot .btn { flex: 1 1 0; }
.sheet-foot .btn-primary { flex: 2 1 0; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
@media (min-width: 640px) { .sheet { display: none !important; } }
/* Forms on tablets and phones: fields as wide as the card, 16px text (so iOS does not zoom in), room to tap */
@media (max-width: 1023px) {
  input, select, textarea { font-size: 16px; }
  .forgot-row a, .auth-switch a { min-height: 44px; }
  .form-error { font-size: 0.9rem; }
}
@media (min-width: 640px) and (max-width: 860px) {
  .auth-page .auth-card { max-width: 560px; }
}
/* Tap targets on tablets and phones: the logo, language buttons and small links are at least 44px */
@media (max-width: 1023px), (pointer: coarse) {
  .lang-btn { min-width: 44px; }
  .breadcrumb a { min-height: 44px; }
  a.tag, .profile-link { min-height: 44px; }
  .plain-link { display: inline-flex; align-items: center; min-height: 44px; }
}@media (max-width: 1023px) {
  .search-input, .sort-select, .payout-pay input, .mv-decide input, .mv-reject input, .reject-note-input, .waitlist-form input, .waitlist-form select { font-size: 16px; }
}
/* On a phone the footer starts below the fold while the page fills in, so it never jumps into view */
@media (max-width: 639px) {
  .expert-wrap, .dash, .settings { min-height: 100vh; min-height: 100svh; }
}@media (max-width: 1023px) { .breadcrumb { min-height: 44px; } }
/* The theme toggle: a 44px button in the header (desktop), a full-width row with its words in the menu panel (phones). The icon shows
   where a click goes (a moon on a light page, a sun on a dark one) and turns in when it changes. */
.theme-switch { position: relative; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  background: transparent; border: var(--line-w) solid var(--line); color: var(--ink); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-btn:hover { background: var(--inverse); color: var(--on-inverse); }
.theme-btn svg, .mm-theme-icon svg { display: block; }
.mm-theme-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin: 6px 0 8px; padding: 0 16px; border-radius: var(--r-btn);
  background: transparent; border: var(--line-w) solid var(--line); color: var(--ink); font: 700 1rem var(--font-body); text-align: left; cursor: pointer;
}
.mm-theme-btn:hover { background: var(--gray-soft); }
.mm-theme-icon { display: inline-flex; flex: 0 0 auto; }
@keyframes theme-icon-in { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } to { opacity: 1; transform: none; } }
html.motion .is-switching svg { animation: theme-icon-in 0.2s var(--ease-out); }
@media (max-width: 1023px) { .theme-switch { display: none; } }

/* A short colour fade when the theme is switched by hand (added by public/js/theme-init.js for a quarter of a second; never on load) */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, fill 0.2s ease, stroke 0.2s ease !important;
}

/* Dark theme details */
.avatar-photo { box-shadow: 0 0 0 1px var(--border); } /* a photo never melts into the page */
::placeholder { color: var(--ink-soft); opacity: 0.85; }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--field) inset; caret-color: var(--ink);
}
[data-theme="dark"] img.doc-preview { filter: none; }
/* Card logos in the footer (only once payments are live), the seller's legal details, and the FAQ / verification pages */
.footer-pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.footer-pay[hidden] { display: none; }
.pay-mark { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; }
.pay-mark-mc .mc-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--accent-strong); display: inline-block; }
.pay-mark-mc .mc-dot + .mc-dot { background: var(--gold); margin-left: -6px; margin-right: 4px; }
.footer-legal { margin: 4px 0 0; }
.info-page section { margin-top: 28px; }
.info-page h2 { font-size: 1.2rem; }
.faq-group { margin-top: 28px; }
.faq-group .faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-group summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
/* (an answer opens and closes in 0.2s where the browser can animate <details>; elsewhere it simply appears) */
html.motion details.faq-item { interpolate-size: allow-keywords; }
html.motion details.faq-item::details-content { height: 0; opacity: 0; overflow: clip; transition: height 0.2s var(--ease-out), opacity 0.2s ease, content-visibility 0.2s allow-discrete; }
html.motion details.faq-item[open]::details-content { height: auto; opacity: 1; }
.faq-group .faq-item p { margin: 8px 0 4px; line-height: 1.7; }
/* "What an answer looks like" on the FAQ page: three example questions and answers (written by the team), as speech bubbles */
.example-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.example-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--card); border: var(--line-w) solid var(--line); border-radius: 26px 26px 26px 6px; }
.example-card:nth-child(2) { border-radius: 26px 26px 6px 26px; }
.example-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ex-niche { font-weight: 600; font-size: 0.82rem; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-mint); color: var(--on-pastel); border: var(--chip-w) solid var(--c-ink); }
.ex-tag { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); }
:lang(ka) .ex-tag { text-transform: none; }
.example-card .ex-q { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.ex-a { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.ex-who { margin: 0; padding-top: 12px; border-top: var(--chip-w) dashed var(--line); font-weight: 700; font-size: 0.9rem; }

/* The mentors' page (/become-a-mentor.html): the coral panel, with the logo's speech bubble */
.become-page { padding-top: 24px; padding-bottom: 80px; }
.mentors-panel {
  position: relative; overflow: hidden; padding: 64px 56px; border-radius: 40px;
  background: var(--c-coral); color: var(--on-pastel); border: var(--line-w) solid var(--c-ink);
}
.mentors-bubble { position: absolute; right: -30px; top: -50px; width: 300px; height: 300px; fill: var(--c-ink); opacity: 0.16; pointer-events: none; transform: rotate(8deg); }
.mentors-panel > *:not(.mentors-bubble) { position: relative; }
.mentors-panel h1, .mentors-panel h2 { color: var(--on-pastel); }
.mentors-panel h1 { margin: 0; font-size: clamp(2.3rem, 3.8vw + 0.6rem, 4.4rem); line-height: 0.98; }
:lang(ka) .mentors-panel h1 { font-size: clamp(1.9rem, 2.6vw + 0.6rem, 3.2rem); line-height: 1.1; }
.mentors-head { max-width: 760px; margin-bottom: 34px; }
.mentors-head p { margin: 20px 0 0; font-size: 1.2rem; line-height: 1.55; max-width: 600px; }
/* (the way in, under the promise: the button and how long it takes) */
.mentors-head .become-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; font-size: 1rem; }
.become-start-note { font-weight: 600; }
.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.perk { min-width: 0; padding: 22px; background: var(--sticker); color: var(--on-pastel); border: var(--line-w) solid var(--c-ink); border-radius: var(--r-card); }
.perk h2 { margin: 0 0 6px; font-size: 1.35rem; }
.perk p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--c-muted); }
.mentors-how { font-size: 1.5rem; margin: 0 0 16px; }
.mentor-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mentor-steps li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.ms-num { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-ink); color: var(--c-paper); font-family: var(--font-display); font-weight: 800; }
.mentor-steps strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.mentor-steps p { margin: 0; font-size: 0.97rem; line-height: 1.5; }
.mentors-panel .btn-ink { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.mentors-panel :focus-visible { outline-color: var(--c-ink); }
@media (max-width: 1023px) { .mentors-panel { padding: 52px 36px; } }
@media (max-width: 699px) { .perk-grid, .mentor-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .become-page { padding-top: 16px; padding-bottom: 56px; }
  .mentors-panel { padding: 36px 22px; border-radius: 28px; }
  .mentors-bubble { width: 180px; height: 180px; right: -50px; top: -50px; }
  .mentors-panel .btn { width: 100%; }
}
.hvp-steps { padding-left: 22px; display: grid; gap: 14px; }
/* Numbered steps: big outlined numerals (01 02 03) */
.hvp-steps, .advice-steps { list-style: none; counter-reset: step; padding-left: 0; gap: 18px; }
.hvp-steps > li, .advice-steps > li { counter-increment: step; position: relative; padding-left: 68px; min-height: 44px; }
.hvp-steps > li::before, .advice-steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
@supports (-webkit-text-stroke: 1px black) { .hvp-steps > li::before, .advice-steps > li::before { color: transparent; -webkit-text-stroke: 1.5px var(--ink); } }
.hvp-steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hvp-steps p { margin: 0; }
.hvp-badges, .hvp-regulated { padding-left: 20px; line-height: 1.8; }
.founder { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.founder-photo { width: 120px; height: 120px; border-radius: 999px; object-fit: cover; }
.founder-name { margin-top: 0; }
.help-article { line-height: 1.75; }
.help-article h2, .help-article h3 { margin-top: 24px; }
.help-article blockquote { margin: 16px 0; padding: 14px 18px; border: var(--line-w) dashed var(--line); background: var(--sun-tint); border-radius: var(--r-btn); }
.help-nav { margin-top: 32px; }
.help-nav ul { padding-left: 20px; line-height: 1.5; }
.help-nav li a { display: inline-flex; align-items: center; min-height: 44px; }
.status-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-btn); flex-wrap: wrap; }

/* "Copy link" and the mentor's profile-link card */
.copy-link { display: inline-flex; align-items: center; gap: 6px; }
.copy-link.copied { border-color: var(--accent2); color: var(--accent2-text); }
.profile-share { margin: 10px 0 0; }
.share-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 18px; border: var(--line-w) solid var(--line); background: var(--mint-soft); }
.share-card[hidden] { display: none; }
.share-card-title { font-size: 1.05rem; margin: 0 0 4px; }
.share-url { margin: 6px 0 0; font-weight: 700; word-break: break-all; }

/* "Back to top" (public/js/back-to-top.js) */
.back-to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px;
  border: var(--line-w) solid var(--line); border-radius: var(--r-btn); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  box-shadow: var(--offset-shadow-sm); }
.back-to-top[hidden] { display: none; }
.back-to-top { transition: opacity 0.2s ease, visibility 0.2s; }
.back-to-top.is-aside { opacity: 0; visibility: hidden; pointer-events: none; } /* (it would cover text, a control or a card) */
.back-to-top:hover { color: var(--accent-text); }
@media (max-width: 560px) { .back-to-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .back-to-top { padding: 10px 12px; } }

/* Printing: answers, receipts and statements pages, help and legal pages print as plain black text on white, without the header, the footer,
   menus or buttons; links show where they go. */
@media print {
  .nav, #siteHeader, .footer, .toast, .back-to-top, .reading-progress, .skip-link, .breadcrumb, .btn, button, dialog, .copy-link, .share-card,
  .theme-toggle, .lang-switch, .waitlist-form, .help-nav, .answers-related, nav { display: none !important; }
  *, *::before, *::after { background: transparent !important; color: var(--print-ink) !important; box-shadow: none !important; text-shadow: none !important; }
  html, body { background: var(--print-paper) !important; font-size: 11pt; }
  main, .container, .advice, .legal, .answers { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
  a { text-decoration: underline; }
  main a[href]:not([href^="#"]):not([href^="javascript"])::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
  p, li, blockquote, .answer-card, .answer-full-a { orphans: 3; widows: 3; break-inside: avoid; }
  img, svg { max-width: 100% !important; }
}

/* Reading progress on help articles (public/js/reading-progress.js) */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--accent-strong); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.1s linear; }
@media (prefers-reduced-motion: reduce) { .reading-progress span { transition: none; } }

/* "Need help?" links (dashboard, the question box, after the bank) */
.need-help { margin: 6px 0 14px; }
.need-help a { text-decoration: underline; text-underline-offset: 3px; }
.page-head .need-help { margin: 4px 0 0; }
.ask-card .need-help, .booking-result + .need-help { text-align: center; margin: 12px 0 0; }

/* Live-session cards: the /live list, the home page and profiles */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.live-card { background: var(--card); border-radius: var(--r-card-lg); overflow: hidden; border: var(--line-w) solid var(--line); display: flex; flex-direction: column; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.live-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--lift-shadow); }
.live-card-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; border-bottom: var(--line-w) solid var(--line); }
.live-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.live-card-title { font-size: 1.45rem; line-height: 1.15; margin: 0; }
.live-card-meta { color: var(--ink-soft); margin: 0; }
.live-kind { font-weight: 700; color: var(--accent-text); }
.live-card-foot { margin: auto 0 0; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: var(--chip-w) dashed var(--border); }
.live-card-foot .price { font-size: 1.4rem; }
/* the code screen: where the code went, and correcting the address (docs/CLAUDE-CODE-MENTOR-JOURNEY-AND-ORIGINALITY.md part 1) */
.verify-to { margin: 0 0 14px; overflow-wrap: anywhere; }
.verify-change { margin: 0 0 16px; }
.auth-card > .verify-spam { margin: 20px 0 0; } /* (more specific than .auth-card > .muted, which set no top margin) */
/* become-a-mentor: the application step by step (docs/CLAUDE-CODE-MENTOR-JOURNEY-AND-ORIGINALITY.md part 2) */
.apply-preview { margin: 0 0 28px; }
.apply-preview-steps { margin: 0 0 18px; padding-left: 1.4em; display: grid; gap: 6px; }
.apply-preview-ready { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.apply-preview-min { font-weight: 400; }
/* the home page: our mentors (docs/CLAUDE-CODE-MENTOR-JOURNEY-AND-ORIGINALITY.md part 4) */
.home-mentors { padding: 48px 0; }
.home-mentor-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.home-mentor { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 10px; border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg); background: var(--card); color: var(--ink); text-decoration: none; min-height: 44px; }
.home-mentor-name { font-weight: 800; }
/* the waiting list in the hero: before launch, the page's one waiting-list form at every width (docs/CLAUDE-CODE-HOME-ONE-WAITLIST.md).
   The skeleton it arrives with has the form's shape, so nothing moves when the form takes its place. */
.hero-wait { margin: 0 0 18px; }
.hero-wait-lead { margin: 0 0 8px; font-weight: 700; }
.hero-wait .waitlist-hint { font-size: 0.8rem; }
.hero-wait-skeleton label .skeleton-input { margin-top: 6px; } /* (where the field is, as tall: its texts are the form's own, so they wrap the same) */
.hero-wait-skeleton .waitlist-hint strong { color: var(--accent-text); }
@media (min-width: 640px) { .hero-wait .waitlist-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
html:not([data-launch="prelaunch"]) .hero-wait { display: none !important; }
.waitlist-share { min-height: 44px; }

/* The fields and chips in Browse: one line that scrolls sideways on a phone, the search box stays in view (docs/CLAUDE-CODE-CATEGORIES.md) */
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.field-chips .chip { white-space: nowrap; }
.chip-count { font-weight: 400; opacity: 0.75; }
.chip-soon { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.78em; font-weight: 700; }
.field-soon { margin: 0 0 6px; }
.browse-note { margin: 0 0 10px; }
.filter-select select { min-height: 44px; max-width: 100%; font-size: 16px; }
@media (max-width: 639px) {
  .field-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .field-chips::-webkit-scrollbar { display: none; }
  .field-chips .chip { flex: 0 0 auto; }
  /* (only the box stays in view: the rest of the phone's screen is for the results) */
  .browse-toolbar { display: contents; }
  .browse-toolbar .search-input { position: sticky; top: 76px; z-index: 5; margin-bottom: 10px; }
  .browse-toolbar .browse-controls { margin-bottom: 12px; }
}
.field-emoji { font-size: 1.25rem; line-height: 1; flex: 0 0 auto; }

/* (a phone: the header about 56px tall; after the menu rules above, which set its padding up to 1023px) */
@media (max-width: 767px) { .nav-inner { min-height: 56px; padding-top: 4px; padding-bottom: 4px; } }

/* ==== The calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md): the shared pieces. Light, lots of room, one accent, thin 1px lines, few boxes.
   These rules come last and restate the pieces above in the new look; the tokens (tokens.css) carry the colours. ====================== */
body { line-height: 1.5; font-size: 1rem; }
@media (max-width: 767px) { body { font-size: 0.9375rem; } }
h1, h2, h3 { font-weight: 700; line-height: 1.18; }
h1 { line-height: 1.12; }
.price, .num, .display { font-weight: 700; }
a:not([class]) { text-decoration-thickness: 1px; }

/* The header: no line under it; quiet links, the page in use in ink; the language as one word; the theme button without a box */
.nav { border-bottom: 0; }
.nav-inner { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.nav-links { justify-content: flex-end; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 400; font-size: 0.94rem; }
.nav-links a::after { display: none; }
.nav .nav-lang { border: 0; padding: 0; }
.nav .nav-lang .lang-btn { min-height: 44px; padding: 0 8px; background: none; color: var(--ink-soft); font-size: 0.94rem; font-weight: 400; }
.nav .nav-lang .lang-btn:hover { color: var(--ink); background: none; }
.nav .nav-lang .lang-btn.active { display: none; }
.theme-btn { border-color: transparent; color: var(--ink-soft); }
.theme-btn:hover { background: none; color: var(--ink); }
.nav-toggle { border-color: transparent; background: none; }
.logo .jlogo { height: 56px; }
@media (max-width: 1023px) { .nav-inner { min-height: 64px; padding: 8px var(--gutter); } }
@media (max-width: 767px) { .logo .jlogo { height: 44px; } .nav-inner { min-height: 64px; padding-top: 6px; padding-bottom: 6px; } }
/* (the home page's own coral button is in the header at every width; on a phone it is the only account button there) */
.nav-right #navLoggedOut .nav-cta { order: 2; }
@media (max-width: 767px) { body.home .nav .nav-lang { display: none; } }
.nav-right .nav-cta { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: 0.88rem; border-radius: 12px; white-space: nowrap; }
@media (max-width: 1023px) {
  body.home .nav-right #navLoggedOut:not([hidden]) { display: flex !important; }
  body.home .nav-right #navLoggedOut > :not(.nav-cta) { display: none; }
}

/* Buttons: one coral primary (dark text on it), the secondary outlined in ink, no offset shadows, no jump on hover */
.btn { border: 1.5px solid var(--border-strong); border-radius: var(--r-btn); padding: 12px 22px; }
.btn:hover, .btn:active { transform: none; }
.btn-primary { border-color: var(--accent-strong); box-shadow: none; }
.btn-primary:hover { border-color: var(--accent-strong-hover); box-shadow: none; }
.btn-ghost { border-color: transparent; font-weight: 600; }
.btn-ghost:hover { border-color: transparent; color: var(--ink); }
.btn-outline { border: 1.5px solid var(--border-strong); }
.btn-outline:hover { background: var(--card); box-shadow: none; }
.btn-ink:hover { box-shadow: none; }
.btn-lg { border-radius: var(--r-btn); padding: 15px 26px; font-size: 1rem; }
.btn-sm { border-radius: 12px; }
.arrow-link { color: var(--accent-text); font-weight: 700; text-decoration: none; }

/* Avatars without a photo: the tint circle, the initials in ink (the same for everyone) */
.avatar:not(.avatar-photo) { background: var(--tint) !important; color: var(--ink) !important; }

/* Chips: a thin line; the chosen one outlined in ink on the tint */
.chip:hover { background: var(--card); border-color: var(--ink-soft); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] { background: var(--tint); border-color: var(--border-strong); color: var(--ink); }

/* A section that opens (FAQ rows, "more options"): a full-width row at least 56px tall with its title, an optional grey chip and a one-line
   hint, and a chevron that turns when it is open. <button class="open-row" aria-expanded> + <div class="open-panel" hidden> (nav.js). */
.open-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  font: 700 1.03rem var(--font-body); text-align: left; cursor: pointer; }
.open-row::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin: 0 6px 4px auto; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out); }
.open-row[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: -4px; }
.open-row[aria-expanded="true"] { border-bottom-color: transparent; }
.open-row .open-chip { padding: 2px 10px; border-radius: var(--r-pill); background: var(--gray-soft); color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; }
.open-row .open-hint { display: block; color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
.open-row.is-boxed { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.open-panel { padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.open-panel p { margin: 0; }

/* The footer: one line on a computer (© and the email, the links, the social icons), stacked on a phone */
.footer { margin-top: 56px; padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 0; background: none; }
.footer-compact-inner { display: grid; gap: 12px; color: var(--ink-soft); font-size: 0.88rem; }
.footer-compact-inner::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); margin-bottom: 12px; }
.footer .fc-copy p, .footer .fc-legal { margin: 0; color: var(--ink-soft); font-size: 0.88rem; font-weight: 400; overflow-wrap: anywhere; }
.fc-copy a { color: inherit; }
.fc-links { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 0.84rem; }
.fc-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.fc-links a:hover { color: var(--ink); }
.footer-compact .footer-social { margin: 0 0 0 -12px; gap: 0; }
.footer-compact .footer-social a { border: 0; border-radius: 50%; color: var(--ink); }
.footer-compact .footer-social a:hover { background: none; color: var(--accent-text); }
.footer-compact .footer-pay { margin: 0; padding: 0; border: 0; }
@media (min-width: 900px) {
  .footer { margin-top: 88px; }
  .footer-compact-inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 24px; }
  .fc-links { justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
  .footer-compact .footer-social { margin: 0 -12px 0 0; }
  .fc-legal, .footer-compact .footer-pay { grid-column: 1 / -1; }
}
/* (the note before launch: quiet, in the page's own colours) */
.launch-banner { background: none; color: var(--ink-soft); border: 0; border-bottom: 1px solid var(--line); padding: 2px 16px; font-weight: 400; font-size: 0.82rem; line-height: 1.4; }
.launch-banner a { display: inline-flex; align-items: center; min-height: 44px; }
.launch-banner a { font-weight: 700; }
/* (the count beside a field's name: quiet, and readable) */
.chip-count { opacity: 1; color: var(--ink-soft); }
/* (signed in, the header has more to hold: Dashboard, Settings, the mentor button, Log out. It may be wider than the page's 1000px, and its
   buttons are a little tighter, so nothing runs off the side at 1024-1280px in Georgian) */
.nav.is-authed .nav-inner { max-width: 1280px; gap: 16px; }
.nav.is-authed .nav-links { gap: 20px; }
.nav-right .btn { padding-left: 14px; padding-right: 14px; font-size: 0.88rem; }
@media (max-width: 1180px) { .nav-links { gap: 20px; } .nav-inner { gap: 16px; } }
@media (min-width: 1024px) and (max-width: 1179px) { html[lang="ka"] .nav.is-authed .nav-links { margin-right: 6px; } }

/* ==== The information pages in the calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md): become a mentor, how it works, FAQ, about, contact,
   how we verify, the legal pages. No coral panel: the words sit on the page; one coral button; thin lines. =========================== */
.mentors-panel { background: none; border: 0; border-radius: 0; padding: 0; color: var(--ink); box-shadow: none; overflow: visible; }
.mentors-bubble { display: none; }
.mentors-panel h1, .mentors-panel h2 { color: var(--ink); }
.mentors-head p, .mentor-steps p, .perk p, .become-start-note { color: var(--ink-soft); }
.mentors-panel .btn-ink { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.mentors-panel :focus-visible { outline-color: var(--focus); }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: none; }
.ms-num { background: var(--card); color: var(--ink); border: 1.5px solid var(--border-strong); }
.legal-page h1, .info-page h1 { font-size: var(--fs-h1); }
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.faq-item.open { box-shadow: none; }
.faq-q { padding-left: 0; min-height: 56px; }
.faq-q::after { right: 8px; width: 9px; height: 9px; border-right-width: 2px; border-bottom-width: 2px; border-color: var(--ink-soft); }
.faq-a { padding-left: 0; }
.faq-list { gap: 0; }
.founder { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.help-article blockquote { background: var(--gray-soft); border: 0; border-left: 2px solid var(--accent); }

/* ==== Empty states and the error pages (docs/CLAUDE-CODE-REDESIGN-CALM.md; mockup: phone-pages.png 5, 8): Jikhva on the tint circle (a plain round fill: no gradients),
   in place of the old drawing and of the big outlined number. ========================================================================= */
.empty-art, .wl-intro .empty-art { width: 150px; max-width: 60%; height: 150px;
  border-radius: 50%; background: var(--tint) url('/brand/jikhva-present.webp?v=d19e58a9db') center 60% / auto 84% no-repeat; }
.empty-art > * { display: none; }
.error-code { width: 220px; height: 220px; margin: 0 auto 18px; font-size: 0; -webkit-text-stroke: 0; color: transparent;
  border-radius: 50%; background: var(--tint) url('/brand/jikhva-present.webp?v=d19e58a9db') center 60% / auto 84% no-repeat; }
.error-page h1 { font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.1rem); }
.empty-state { border: 0; background: none; box-shadow: none; }
.empty-state h3 { font-size: 1.2rem; }

/* ==== Every link in the header and the menu panel, one look in both themes (the header's words, "ადმინი", "შესვლა", "პირადი კაბინეტი",
   the language, the menu's links): soft text, full text colour on hover and focus, and a coral underline only under the page in view
   (header.js marks it with aria-current). No link has a colour of its own. ======================================================== */
.nav-links a, .nav-right .btn-ghost, .nav .nav-lang .lang-btn, .mm-links a, .mm-more a { color: var(--ink-soft); }
.nav-links a:hover, .nav-links a:focus-visible, .nav-right .btn-ghost:hover, .nav-right .btn-ghost:focus-visible,
.nav .nav-lang .lang-btn:hover, .nav .nav-lang .lang-btn:focus-visible,
.mm-links a:hover, .mm-links a:focus-visible, .mm-more a:hover, .mm-more a:focus-visible { color: var(--ink); background: none; }
.nav-links a[aria-current], .nav-right .btn-ghost[aria-current], .mm-links a[aria-current], .mm-more a[aria-current] {
  color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-right .btn-ghost { font-weight: 400; }
