/* The home page ("Ink & Paper"): a hero with a search and an example conversation, the field tiles, Browse experts (before launch the
   waiting-list card), the live sessions band when there are any, three short steps, four questions and the last word. Every value is
   a token from tokens.css. The sections share one rhythm: 80px apart on a desktop, 64px on a tablet, 48px on a phone. */
:root { --home-y: 80px; }
section h2 { font-size: var(--fs-h2); line-height: 1; margin: 0; }
.section-sub { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.55; }

/* 1. Hero ---------------------------------------------------------------------------------------------------------------------- */
.hero { padding: 48px 0 var(--home-y); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero-text { min-width: 0; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--c-mint); color: var(--on-pastel); border: var(--chip-w) solid var(--c-ink); font-weight: 600; font-size: 0.9rem;
}
.hero-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); flex: 0 0 auto; }
.hero h1 { font-size: var(--fs-hero); line-height: 0.95; margin: 26px 0 0; }
.hero-accent { position: relative; display: inline-block; font-style: normal; color: var(--headline-accent); padding-bottom: 0.16em; }
/* the hand-drawn underline draws itself once */
.squiggle { position: absolute; left: 0; bottom: -0.1em; width: 100%; height: 0.26em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
html.motion .squiggle path { stroke-dasharray: 460; stroke-dashoffset: 460; animation: draw 1.4s 0.6s cubic-bezier(0.6, 0.1, 0.2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); max-width: 560px; margin: 30px 0 0; }

/* the search: an outlined white bar with the offset shadow */
.hero-search {
  margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; padding: 8px;
  background: var(--card); border: var(--line-w) solid var(--line); border-radius: 20px; box-shadow: var(--offset-shadow);
}
form.hero-search input { flex: 1 1 240px; width: auto; min-width: 0; margin: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; padding: 13px 14px; font-size: 1.05rem; }
form.hero-search input:focus { box-shadow: none; }
form.hero-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.hero-search .btn { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; min-height: 40px; }
a.chip { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
@media (max-width: 1023px), (pointer: coarse) { a.chip { min-height: 44px; } }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 24px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.hero-note svg { color: var(--accent2-strong); flex: 0 0 auto; }
/* "I'm an expert – become a mentor": the second way in, a full button under the search (the whole width on a phone) */
.hero-mentor { margin: 14px 0 0; }
.hero-mentor-btn { white-space: normal; text-align: center; }
/* (signed in, the button says where they are: public/js/nav.js draws it once it knows; until then its place is kept, so nothing moves.
   A mentor or an admin has nothing extra here.) */
html[data-mentor-state="draft"] .hero-mentor-btn:not([data-ready]), html[data-mentor-state="sent"] .hero-mentor-btn:not([data-ready]) { visibility: hidden; }
html[data-mentor-state="none"] .hero-mentor, .hero-mentor[hidden] { display: none; }
.hero-mentor-btn.mentor-status { white-space: normal; }
@media (max-width: 639px) { .hero-mentor-btn { display: flex; width: 100%; justify-content: center; } }

/* the conversation stage: a mint panel on an ink slab, a sun sticker on top */
.hero-stage { position: relative; min-height: 520px; min-width: 0; }
.stage-shadow { position: absolute; inset: 20px 0 0 40px; background: var(--line); border-radius: var(--r-panel); transform: rotate(2.5deg); }
.stage {
  --stage-gap: 18px;
  position: relative; display: flex; flex-direction: column; gap: var(--stage-gap); min-height: 480px; padding: 34px 30px;
  background: var(--c-mint); color: var(--on-pastel); border: var(--line-w) solid var(--c-ink); border-radius: var(--r-panel);
}
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mint-ink); }
:lang(ka) .stage-head { text-transform: none; letter-spacing: 0.02em; }
.stage-tag { border: var(--chip-w) solid var(--c-mint-ink); border-radius: var(--r-pill); padding: 3px 10px; }
/* the six examples (home.js) share one place: the hidden ones keep their room, so the card is as tall as the longest example and nothing
   moves when the next one comes; only the one shown is visible and animates */
.stage-examples { display: grid; min-width: 0; }
.stage-example { grid-area: 1 / 1; display: flex; flex-direction: column; gap: var(--stage-gap); min-width: 0; }
.stage-example:not(.is-active) { visibility: hidden; }
.stage-example:not(.is-active) :is(.bubble-q, .bubble-typing, .bubble-typing span, .bubble-a) { animation: none; }
.bubble { max-width: 88%; padding: 16px 18px; border: var(--line-w) solid var(--c-ink); color: var(--on-pastel); }
.bubble p { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.bubble .bubble-who { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; font-size: 0.82rem; color: var(--c-muted); }
.bubble-q { align-self: flex-start; background: var(--sticker); border-radius: 22px 22px 22px 6px; }
.stage-reply { display: grid; justify-items: end; align-items: start; }
.stage-reply > * { grid-area: 1 / 1; }
.bubble-a { max-width: 92%; background: var(--c-coral); border-radius: 22px 22px 6px 22px; }
.bubble-a .bubble-who { color: var(--on-pastel); }
.bubble-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-ink); color: var(--c-coral); flex: 0 0 auto; }
.bubble-typing { display: flex; gap: 6px; padding: 14px 16px; background: var(--c-coral); border: var(--line-w) solid var(--c-ink); border-radius: 18px; }
.bubble-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink); }
.stage-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip { background: var(--c-sun); color: var(--on-pastel); border: var(--chip-w) solid var(--c-ink); border-radius: var(--r-pill); padding: 8px 12px; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.stage-sticker {
  position: absolute; right: -14px; top: -22px; padding: 10px 14px; border-radius: 16px; transform: rotate(-6deg);
  background: var(--c-sun); color: var(--on-pastel); border: var(--line-w) solid var(--c-ink); font-weight: 700; font-size: 0.95rem;
}
.stage-sticker::after { content: " ✓"; }
/* the loop: the question, typing dots, the answer, the details; then it starts again (12 seconds) */
@keyframes q-in { 0% { opacity: 0; transform: translateY(16px) scale(0.96); } 4%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes typing { 0%, 9% { opacity: 0; transform: scale(0.8); } 12%, 24% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: scale(0.8); } }
@keyframes a-in { 0%, 25% { opacity: 0; transform: translateY(16px) scale(0.96); } 30%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes meta-in { 0%, 36% { opacity: 0; transform: translateY(8px); } 41%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }
html.motion .bubble-q { animation: q-in 12s ease-in-out infinite both; }
html.motion .bubble-typing { animation: typing 12s ease-in-out infinite both; }
html.motion .bubble-typing span { animation: dot 1.1s infinite; }
html.motion .bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
html.motion .bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
html.motion .bubble-a { animation: a-in 12s ease-in-out infinite both; }
html.motion .stage-meta { animation: meta-in 12s ease-in-out infinite both; }
html.motion .stage-sticker { animation: float 6s ease-in-out infinite; }
html:not(.motion) .bubble-typing { visibility: hidden; }
/* (a hidden tab: the loop, and so the next example, waits) */
html.motion .stage.is-paused, html.motion .stage.is-paused * { animation-play-state: paused; }

/* 2. Fields: pastel tiles in full rows (2 columns on phones, 3 on tablets, 4 on small laptops, 5 on desktops), the rest behind "See all".
   Only full rows show while it is closed: 6 / 9 / 8 / 10 tiles (public/js/home.js counts the same). A name never breaks inside a word:
   home.js gives a tile whose longest word cannot fit one column the class is-wide (two columns), and "dense" fills the gap after it. */
.strip { padding: 0; } /* (the space above is the hero's, the space below the next section's: both --home-y) */
.strip-title { font-family: var(--font-body); font-size: 0.85rem !important; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px !important; }
:lang(ka) .strip-title { text-transform: none; }
.field-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; }
.field-grid:not(.is-open) > li:nth-child(n+7) { display: none; }
.field-grid > li { display: flex; min-width: 0; }
.field-grid > li.is-wide { grid-column: span 2; }
.field-tile {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 56px; padding: 10px 12px; border-radius: 16px;
  background: var(--c-mint); color: var(--on-pastel); text-decoration: none; font-family: var(--font-body); font-weight: 650; font-size: 0.92rem;
  line-height: 1.25; overflow-wrap: break-word; hyphens: manual;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field-grid > li:nth-child(3n+2) .field-tile { background: var(--c-sun); }
.field-grid > li:nth-child(3n) .field-tile { background: var(--c-blush); }
:lang(ka) .field-tile { font-size: 0.86rem; } /* (Georgian words are long: smaller type, so most fit half a phone's width) */
.field-tile svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--on-pastel); }
.field-tile span { min-width: 0; }
.field-tile:hover { transform: translateY(-2px); box-shadow: var(--offset-shadow-sm); }
.field-tile:active { transform: translateY(0); }
.field-tile:focus-visible, .faq-q:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.field-more { display: flex; width: 100%; margin-top: 16px; border-radius: var(--r-pill); white-space: nowrap; min-height: 48px; }
@media (min-width: 640px) {
  .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid:not(.is-open) > li:nth-child(n+7) { display: flex; }
  .field-grid:not(.is-open) > li:nth-child(n+10) { display: none; }
  .field-tile { gap: 10px; padding: 10px 14px; font-size: 0.95rem; }
  :lang(ka) .field-tile { font-size: 0.92rem; }
  .field-tile svg { width: 22px; height: 22px; }
}
@media (min-width: 1024px) {
  .field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .field-grid:not(.is-open) > li:nth-child(n+7) { display: flex; }
  .field-grid:not(.is-open) > li:nth-child(n+9) { display: none; }
  .field-tile { min-height: 64px; padding: 12px 18px; font-size: 1rem; }
  :lang(ka) .field-tile { font-size: 0.95rem; }
  .field-more { width: auto; min-width: 320px; margin: 20px auto 0; padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1280px) {
  .field-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .field-grid:not(.is-open) > li:nth-child(n+7) { display: flex; }
  .field-grid:not(.is-open) > li:nth-child(n+11) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .field-tile, .field-tile:hover { transition: none; transform: none; } }

/* 3. Browse experts ------------------------------------------------------------------------------------------------------------------ */
.experts { padding: var(--home-y) 0 0; }
.experts h2 { margin-bottom: 30px; }
.rq-cta { margin-top: 26px; }
.rq-cta a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Live sessions: an ink band with the pulsing dot (only when there are any) ------------------------------------------------------------ */
.live-home { margin-top: var(--home-y); background: var(--navy); color: var(--on-navy); padding: 80px 0; border-top: var(--line-w) solid var(--line); border-bottom: var(--line-w) solid var(--line); }
.live-home-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.live-home h2 { color: var(--on-navy); }
.live-home .section-sub { color: var(--on-navy-soft); margin-top: 22px; max-width: 520px; }
.live-eyebrow { color: var(--on-navy); }
.live-home-more { margin: 30px 0 0; }
.live-home .btn-primary { border-color: var(--on-navy); box-shadow: 0 8px 0 -2px var(--on-navy); }
.live-home .live-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.live-home .live-card { background: var(--navy-card); color: var(--on-navy); border-color: var(--on-navy); }
.live-home .live-card .muted, .live-home .live-card-meta { color: var(--on-navy-soft); }
.live-home .live-card .live-kind { color: var(--c-sun); }
.live-home .live-card .price, .live-home .live-card a { color: var(--on-navy); }
.live-home :focus-visible { outline-color: var(--c-coral); }

/* 4. How it works: three short steps in one row (stacked below 900px), and a line on how mentors are checked ----------------------- */
.how { padding: var(--home-y) 0 0; }
.how h2 { margin-bottom: 30px; }
.how-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-step {
  display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 22px 24px; border-radius: var(--r-card);
  background: var(--sticker); color: var(--on-pastel); border: var(--line-w) solid var(--c-ink);
}
.how-step:nth-child(2) { background: var(--c-sun); }
.how-step:nth-child(3) { background: var(--c-mint); }
.how-num {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-paper); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1;
}
.how-text { min-width: 0; }
.how-step h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.2; color: var(--on-pastel); }
.how-step p { margin: 0; font-size: 0.98rem; line-height: 1.5; color: var(--c-muted); }
.how-verify { margin: 18px 0 0; font-weight: 600; line-height: 1.6; color: var(--ink); } /* (one line of text: on a phone it wraps word by word) */
.how-verify svg { vertical-align: -4px; margin-right: 6px; color: var(--accent2-strong); }

/* 5. FAQ: the four questions that matter most before paying ----------------------------------------------------------------------------------------------------------------------- */
.faq { padding: var(--home-y) 0 0; }
.faq:last-child { padding-bottom: var(--home-y); } /* (before launch the questions end the page) */
.faq h2 { margin-bottom: 30px; }
.faq-list { display: grid; gap: 12px; max-width: 880px; } /* (left-aligned like every other section, in a readable width) */
.faq-item { background: var(--card); border: var(--line-w) solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow 0.25s var(--ease-out); }
.faq-item.open { box-shadow: var(--offset-shadow-sm); }
.faq-item h3 { margin: 0; font-size: 1rem; letter-spacing: 0; }
.faq-q {
  position: relative; width: 100%; min-height: 60px; padding: 16px 60px 16px 22px; text-align: left; cursor: pointer;
  background: transparent; border: none; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq-q::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease-out);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 22px 20px; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
@keyframes faq-close { to { opacity: 0; transform: translateY(-6px); } }
html.motion .faq-a:not([hidden]) { animation: faq-open 0.2s var(--ease-out); }
html.motion .faq-a.is-closing { animation: faq-close 0.16s ease-in forwards; }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.faq-more { margin: 18px 0 0; }

/* 6. The last word: an ink panel ------------------------------------------------------------------------------------------------- */
.cta-band { padding: var(--home-y) 0; }
.cta-inner {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 64px 56px; border-radius: 40px; background: var(--navy); color: var(--on-navy); border: var(--line-w) solid var(--line);
}
/* (the speech bubble sits in the top right corner, in a space kept free for it: the words and buttons stop 170px from the right edge,
   the bubble starts 120px from it; below 1100px there is no room, and no bubble) */
.cta-bubble { position: absolute; right: -34px; top: -70px; width: 220px; height: 220px; fill: var(--accent); opacity: 0.9; pointer-events: none; }
@media (min-width: 1100px) { .cta-inner { padding-right: 170px; } }
@media (max-width: 1099px) { .cta-bubble { display: none; } }
.cta-inner > *:not(.cta-bubble) { position: relative; }
.cta-band h2 { color: var(--on-navy); margin: 0 0 10px; font-size: clamp(2rem, 2.6vw + 0.8rem, 3.2rem); }
.cta-band p { margin: 0; font-size: 1.1rem; color: var(--on-navy-soft); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { border-color: var(--on-navy); box-shadow: 0 8px 0 -2px var(--on-navy); }
.cta-secondary { background: transparent; color: var(--on-navy); border-color: var(--on-navy); }
.cta-secondary:hover { background: var(--on-navy); color: var(--navy); }

/* Responsive ----------------------------------------------------------------------------------------------------------------------
   Phones (up to 639px), tablets (640-1023px) and desktop: planned for each, not shrunk. */
@media (max-width: 1023px) {
  :root { --home-y: 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-stage { max-width: 560px; min-height: 0; }
  .stage { min-height: 440px; }
  .live-home-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cta-inner { padding: 52px 36px; }
}
@media (max-width: 899px) {
  .how-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 639px) {
  :root { --home-y: 48px; }
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .hero { padding: 22px 0 var(--home-y); }
  .hero h1 { line-height: 0.98; margin-top: 18px; }
  .hero-sub { font-size: 1.06rem; margin-top: 18px; }
  .hero-search { flex-direction: column; border-radius: 18px; padding: 6px; box-shadow: 0 6px 0 -2px var(--line); }
  form.hero-search input { flex: 0 0 auto; width: 100%; }
  .hero-search .btn { width: 100%; }
  .hero-stage { margin-top: 8px; }
  .stage-shadow { inset: 14px 0 0 18px; border-radius: 28px; }
  .stage { min-height: 0; padding: 40px 18px 22px; --stage-gap: 14px; border-radius: 28px; }
  .bubble p { font-size: 0.96rem; }
  .stage-sticker { right: -4px; top: -18px; font-size: 0.85rem; padding: 8px 12px; }
  .live-home { padding: 56px 0; }
  .how h2, .faq h2 { margin-bottom: 18px; }
  .how-step { gap: 14px; padding: 16px 18px; }
  .faq-q { min-height: 60px; padding-right: 54px; }
  .cta-inner { padding: 36px 22px; border-radius: 28px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* Browse cards: three across on desktop, two on tablets, one on phones (with the price and Ask button in view) */
.expert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expert-card { min-width: 0; }
@media (max-width: 1023px) { .expert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .expert-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .experts h2 { margin-bottom: 18px; }
}
/* Browse experts as its own page (/experts.html, docs/CLAUDE-CODE-NEW-HOME.md): its title, then the field tiles (their own title is the
   page's now) and the list */
.browse-head { padding-top: 32px; }
.browse-title { font-family: var(--font-display); letter-spacing: var(--tracking-display); font-size: clamp(1.9rem, 3vw + 1rem, 3rem); margin: 0 0 8px; }
.browse-head .section-sub { margin: 0; }
.browse-page .strip-title { display: none; }
.browse-page .strip { padding-top: 20px; }

/* ==== Browse experts in the calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md, mockup docs/redesign/calm/experts-1280.png): the title, one
   search box, the fields as a row of quiet tabs, and the mentors as rows separated by thin lines (no card grid). ====================== */
.browse-page .browse-head { padding-top: 40px; }
.browse-page .browse-title { font-size: var(--fs-h1); margin: 0; }
.browse-page .section-sub { margin: 8px 0 0; color: var(--ink-soft); }
/* (the field tiles, each a link to its field's page, come after the list: the tabs above already choose a field) */
.browse-page { display: flex; flex-direction: column; }
.browse-page .strip { order: 3; margin-top: 40px; }
.browse-page .strip-title { font-size: 1.2rem; }
.browse-page .field-emoji { display: none; }
/* (a field tile is a white card in light and a dark card in dark: its name and icon in the theme's text colour, never the fixed ink of the old
   pastel tiles, which was invisible on a dark card) */
.field-tile, .field-grid > li .field-tile, .browse-page .field-tile, .browse-page .field-grid > li .field-tile { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.field-tile svg, .field-tile .field-emoji { color: var(--ink-soft); }
.field-tile:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.browse-page .experts { padding-top: 24px; }
.browse-page #expertsTitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.browse-page .search-input { width: 100%; max-width: 680px; min-height: 60px; padding: 0 22px; border: 1px solid var(--field-border); border-radius: 18px; background: var(--card); font-size: 1rem; box-shadow: none; margin-bottom: 12px; }
.browse-page .browse-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.browse-page .result-count { margin: 0 auto 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.browse-page .sort-select { border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card); box-shadow: none; }
.browse-page .browse-note { display: none; }
/* the fields: tabs in one row that scrolls sideways; the chosen one in ink with a coral line under it */
.browse-page .field-chips { display: flex; flex-wrap: nowrap; gap: 0 26px; margin: 18px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.browse-page .field-chips::-webkit-scrollbar { display: none; }
.browse-page .field-chips .chip { flex: 0 0 auto; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-soft); font-size: 0.97rem; font-weight: 400; white-space: nowrap; box-shadow: none; }
.browse-page .field-chips .chip:hover { background: none; color: var(--ink); }
.browse-page .field-chips .chip.active, .browse-page .field-chips .chip[aria-pressed="true"] { background: none; color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.browse-page .field-chips .chip > [aria-hidden="true"], .browse-page .field-chips .chip .chip-icon { display: none; }
.browse-page .filters { margin-top: 14px; }
.browse-page .filters select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--ink); font: inherit; font-size: 0.88rem; }
.browse-page .field-chips .chip .badge, .browse-page .field-chips .chip small { font-size: 0.7rem; padding: 1px 7px; border: 0; background: var(--gray-soft); color: var(--ink-soft); }
/* the mentors: rows */
.browse-page .expert-grid { display: block; margin-top: 6px; }
.browse-page .expert-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
  box-shadow: none; transform: none; color: var(--ink); text-decoration: none; }
.browse-page .expert-card:hover { transform: none; box-shadow: none; }
@media (max-width: 1023px) { .browse-page .skeleton-expert:nth-of-type(n+7) { display: none; } }
.browse-page .expert-card > * { grid-column: 1 / -1; min-width: 0; }
.browse-page .expert-card .card-top { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; background: none; border: 0; color: var(--ink); }
.browse-page .expert-card .card-top .card-role { color: var(--ink-soft); opacity: 1; }
.browse-page .expert-card .card-top .badge { border: 0; }
.browse-page .expert-card .card-top .avatar { width: 56px; height: 56px; font-size: 1.05rem; flex: 0 0 auto; border: 0; }
.browse-page .card-name { font-size: 1.2rem; font-weight: 700; }
.browse-page .card-name .badge { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border: 0; background: var(--gray-soft); color: var(--ink-soft); vertical-align: middle; }
.browse-page .card-role { color: var(--ink-soft); font-size: 0.94rem; font-weight: 400; }
.browse-page .card-headline, .browse-page .card-skills { display: none; }
.browse-page .card-bio { font-size: 1rem; color: var(--ink); }
.browse-page .card-more { color: var(--accent-text); font-weight: 700; font-size: 0.9rem; }
.browse-page .expert-card .trust-row { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; }
.browse-page .expert-card .trust-badge { white-space: nowrap; }
.browse-page .expert-card .trust-badge { padding: 0; border: 0; background: none; color: var(--accent2-text); font-size: 0.85rem; font-weight: 400; }
.browse-page .expert-card .card-bottom { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0; margin: 0; border: 0; }
.browse-page .expert-card .price { font-size: 1.2rem; white-space: nowrap; }
.browse-page .expert-card .price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }
.browse-page .expert-card .rating { color: var(--ink-soft); font-size: 0.82rem; }
.browse-page .expert-card > .btn { grid-column: 2; width: auto; min-height: 48px; padding: 0 20px; font-size: 0.97rem; }
@media (min-width: 768px) {
  .browse-page .browse-head { padding-top: 64px; }
  /* (the tabs scroll sideways inside the page's width; they fade out at the right edge to show there are more) */
  .browse-page .field-chips { margin-left: 0; margin-right: 0; padding: 0 48px 0 0; -webkit-mask-image: linear-gradient(to right, var(--ink) calc(100% - 56px), transparent); mask-image: linear-gradient(to right, var(--ink) calc(100% - 56px), transparent); scrollbar-width: thin; }
  .browse-page .expert-card .trust-row { flex-wrap: nowrap; }
  .browse-page .expert-card { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 24px; padding: 26px 0; }
  .browse-page .expert-card > * { grid-column: 1; }
  .browse-page .expert-card .card-bio, .browse-page .expert-card .trust-row { padding-left: 72px; }
  .browse-page .expert-card .card-bottom { grid-column: 2; grid-row: 1 / span 4; align-items: flex-end; align-self: center; }
  .browse-page .expert-card > .btn { grid-column: 3; grid-row: 1 / span 4; align-self: center; }
}

/* Browse cards (docs/CLAUDE-CODE-MENTOR-STORY.md): where the mentor started from (up to 2 chips, their own choice) and "Sample answer ✓". */
.card-start { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.card-start .tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-start .tag-start { background: var(--sun-tint); border: 1px solid var(--line); }
.card-start .tag-sample { background: var(--gray-soft); }

/* Browse filters: each group with its own label. On a computer they are one calm row (the selects name themselves, so only "Where they
   started" shows its label); in the phone's sheet they are stacked, the selects full width and the same height as the sort. */
.browse-page .filters { align-items: center; gap: 8px 10px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-label { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.filter-price .filter-label, .filter-select .filter-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.filter-start { flex-basis: 100%; }
.sheet-body .filters { display: grid; gap: 16px; margin: 16px 0 8px; }
.sheet-body .filter-group { display: grid; gap: 8px; }
.sheet-body .filter-label, .sheet-body .filter-price .filter-label, .sheet-body .filter-select .filter-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
  font-weight: 700; font-size: 0.82rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); }
.sheet-body .filters select, .sheet-body .sort-select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-btn); background-color: var(--card); color: var(--ink); font: inherit; font-size: 1rem; box-shadow: none; }
.sheet-body .filter-chips .chip { min-height: 44px; }

/* The experts page's "Not sure who to choose?" banner (docs/CLAUDE-CODE-MENTOR-MATCH.md): dark, with Jikhva, under the search. */
.browse-match { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; margin: 16px 0 4px; padding: 16px 18px; border-radius: var(--r-card); background: var(--band); color: var(--on-band); overflow: hidden; }
.browse-match-jikhva { grid-row: 1 / span 2; width: auto; height: 84px; align-self: end; margin-bottom: -16px; }
.browse-match-text h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--on-band); }
.browse-match-text p { margin: 2px 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--on-band-soft); }
.browse-match-btn { grid-column: 2; justify-self: start; min-height: 44px; margin-top: 6px; }
@media (min-width: 760px) {
  .browse-match { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 22px; }
  .browse-match-jikhva { grid-row: auto; height: 76px; margin-bottom: -14px; }
  .browse-match-btn { grid-column: 3; margin-top: 0; }
}
.browse-match-btn { white-space: nowrap; padding-inline: 16px; font-size: 0.95rem; }
