/* The /search site. One file, light mode only. Tokens match client/src/App.css. */
@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('source-sans-3-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --ink: #1F2A27;
  --ink-2: #4A5753;
  --ink-3: #6B7773;
  --line: #E4DCCF;
  --line-strong: #7C8884;
  --brand: #1A5F4A;
  --brand-hover: #14503E;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3F0EA;
  --brand-edge: #BFD8CD;
  --visited: #4E4A6B;
  --skel: #EFE8DA;
  --skel-hi: #F7F2E8;
  --danger: #A33A2B;
  --warn: #8A5A00;
  --focus: #0B5CAD;
  --ring: var(--brand-soft);
  --shadow-box: 0 0 0 0 transparent;
  --ad-line: #B8AE9B;
  --ad-bg: #F6F1E7;
  --error: #8E2B2B; --error-bg: #FBEDED;
  --care: #274C77; --care-bg: #EAF1F9;
  --disagree-bg: #FDE8DF; --mixed-line: #F0D9A6;
  --thumb-shine: rgba(255, 255, 255, .55);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* One tint per category (index % 4): its guides' picture placeholders. */
  /* A browser that has asked a lot today: calm amber, not an error. */
  --hold-bg: #FDF3DD; --hold-line: #EBD8A8; --hold-disc: #F6E3B4;
  --t0: #E3F0EA; --t0-end: #C9E1D5;
  --t1: #FDEBD3; --t1-end: #F8D6AD;
  --t2: #F2EAD7; --t2-end: #E5D7B8;
  --t3: #E2ECEE; --t3-end: #C9DBE0;

  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.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;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; margin: 0 auto; padding: 24px var(--gutter) 0; }
.wrap-home { max-width: 880px; }
.wrap-results { max-width: 760px; }
.wrap-cat { max-width: 880px; }
.wrap-prose { max-width: 680px; }

/* ---------- Wordmark and search box ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin: 0;
}
.wordmark-lg { font-size: 40px; line-height: 1.1; }
.wordmark-sm { font-size: 24px; line-height: 1; flex: none; }
@media (min-width: 640px) { .wordmark-lg { font-size: 48px; } }

.sbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 24px;
  padding: 0 4px 0 20px;
  height: 52px;
  width: 100%;
  box-shadow: var(--shadow-box);
  position: relative;
}
.sbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring), var(--shadow-box); }
.sbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 16px;
  height: 100%;
  outline: none;
}
.sbox input::-webkit-search-cancel-button { display: none; }
.sbox button {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid; place-items: center;
}
.sbox button:hover { background: var(--brand-hover); }
.sbox-home { height: 56px; }
.sbox-bar { height: 44px; padding-left: 16px; }
.sbox-bar button { width: 34px; height: 34px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
}
.topbar .sbox { max-width: 560px; min-width: 0; flex: 1; }
@media (max-width: 639px) {
  .topbar-in { gap: 12px; padding: 8px var(--gutter); }
  .wordmark-sm { font-size: 20px; }
}

/* ---------- Home ---------- */
.home { text-align: center; padding-top: 12vh; }
.tagline { font-size: 17px; color: var(--ink-2); margin: 8px 0 24px; }
.home .sbox { max-width: 640px; margin: 0 auto; }
.sec-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin: 48px 0 12px; text-align: left;
}
.sec-count { color: var(--ink-3); font-weight: 500; }

/* ---------- Topics: a table of contents, no boxes ---------- */
.t0 { --tone: var(--t0); --tone-end: var(--t0-end); }
.t1 { --tone: var(--t1); --tone-end: var(--t1-end); }
.t2 { --tone: var(--t2); --tone-end: var(--t2-end); }
.t3 { --tone: var(--t3); --tone-end: var(--t3-end); }
.topics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px;
  list-style: none; margin: 0 0 48px; padding: 0; text-align: left;
}
.topic {
  display: grid; grid-template-columns: 32px 1fr auto; column-gap: 12px; align-items: center;
  min-height: 68px; padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none; border-radius: 2px;
}
.topic:active { opacity: .85; }
.topic:focus-visible { outline-offset: 2px; border-radius: 8px; }
.topic-emoji { font-size: 28px; line-height: 1; text-align: center; transition: transform .16s var(--ease); }
.topic-text { display: flex; flex-direction: column; min-width: 0; }
.topic-name { font-family: var(--font-display); font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; transition: color .16s var(--ease); }
.topic-count { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink-2); }
.topic-soon { font-weight: 400; color: var(--ink-3); }
.topic-go { color: var(--brand); opacity: 0; transform: translateX(-4px); transition: opacity .16s var(--ease), transform .16s var(--ease); }
.topic:hover .topic-name { color: var(--brand); }
.topic:hover .topic-emoji { transform: translateY(-2px); }
.topic:hover .topic-go { opacity: 1; transform: none; }
.topic.is-here { border-top: 2px solid var(--brand); margin-top: -1px; }
.topic.is-here .topic-name { color: var(--brand); }
.topic-here { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
@media (hover: none) { .topic-go { display: none; } }
@media (max-width: 859px) { .topics { column-gap: 32px; } }
@media (max-width: 639px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .topic { grid-template-columns: 28px 1fr; column-gap: 10px; min-height: 64px; }
  .topic-emoji { font-size: 24px; }
  .topic-name { font-size: 17px; }
  .topic-count { font-size: 13px; }
  .topic-here, .topic-go { display: none; }
}

/* ---------- Results rows ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  min-height: 148px;
}
.row-sf {
  background: var(--brand-soft);
  border-radius: 12px;
  border-bottom: 0;
  padding: 20px 16px;
  margin: 0 -16px 8px;
}
.chip { display: flex; align-items: center; gap: 8px; align-self: start; padding-top: 2px; }
.av {
  flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 700;
}
.row-sf .av { background: var(--brand); color: var(--brand-ink); }
.chip-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.row-sf .chip-name { color: var(--ink); }
.row[data-status='failed'] .chip, .row[data-status='late'] .chip { opacity: .6; }

.row-body { min-width: 0; }
.row-head { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.row-head a { color: var(--brand); text-decoration: none; }
.row-head a:visited { color: var(--visited); }
.row-head a:hover, .row-head a:focus-visible { text-decoration: underline; }
.row-sum { margin: 6px 0 0; color: var(--ink-2); }
.row-bul { list-style: none; margin: 10px 0 0; padding: 0; }
.row-bul li { position: relative; padding-left: 16px; font-size: 15px; margin-top: 4px; }
.row-bul li::before { content: '+'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.row-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; min-height: 32px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.row-more:hover { text-decoration: underline; }
.row-miss { margin: 2px 0 0; color: var(--warn); font-size: 15px; }
.row-web { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.row-web + .sources { margin-top: 4px; }

.agree {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0 0; padding: 4px 10px;
  background: var(--surface); border: 1px solid var(--brand-edge); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--brand);
}
.agree-disagree { color: var(--warn); border-color: var(--mixed-line); }
.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.dots i.on { background: currentColor; }

.skel {
  display: block; height: 14px; border-radius: 6px; margin-top: 12px;
  background: linear-gradient(90deg, var(--skel) 0%, var(--skel-hi) 50%, var(--skel) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skel:first-of-type { margin-top: 6px; width: 70%; height: 18px; }
.skel:nth-of-type(3) { width: 85%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 639px) {
  .row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; min-height: 0; }
  .row-sf { padding: 16px; margin: 0 -8px 8px; }
  .av { width: 24px; height: 24px; font-size: 13px; }
  .chip-name { font-size: 13px; }
  .row-head { font-size: 18px; }
}

.rows-error {
  margin: 16px 0 0; padding: 12px 16px;
  background: var(--error-bg); color: var(--error); border-radius: 10px;
}
.results-foot {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.results-foot a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.results-foot a:hover { text-decoration: underline; }
.results-sponsored { margin: 16px 0 0; text-align: center; }
.results-sponsored a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--brand); }

/* ---------- Ads ---------- */
.ad {
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 282px;
}
.ad-label {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.ad-space {
  display: grid; place-items: center;
  min-height: 250px;
  border: 1px dashed var(--ad-line); border-radius: 8px;
  background: var(--ad-bg);
  font-size: 14px; color: var(--ink-3);
}
.ad-adsterra .ad-banner {
  width: 300px; height: 250px;
  margin: 0 auto;
}
@media (max-width: 639px) {
  .ad { min-height: 260px; }
  .ad-space { min-height: 220px; }
}

/* ---------- Tell me more ---------- */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.more-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 24px; font-weight: 600; }
.av-lg { width: 32px; height: 32px; font-size: 16px; background: var(--brand); color: var(--brand-ink); }
.more-q { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.switcher {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 16px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter);
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.switcher::-webkit-scrollbar { display: none; }
.pill {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.pill:hover { border-color: var(--brand); }
.pill-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.answer { margin-top: 24px; min-height: 320px; font-size: 17px; line-height: 1.65; }
.answer.streaming > :last-child::after {
  content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--brand); vertical-align: text-bottom; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.research-why { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.research-now { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.answer.streaming > .research-now:last-child::after { content: none; }
.sources { margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.sources p { margin: 0 0 4px; font-weight: 600; }
.sources ul { margin: 0; padding-left: 18px; }

/* ---------- Long text ---------- */
.prose { font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.3; font-weight: 600; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose ul li::marker { color: var(--brand); }
.prose .lead { font-size: 19px; color: var(--ink); }
.prose .updated, .byline { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.answer h2 { font-family: var(--font-body); font-size: 20px; margin: 28px 0 8px; }
.legal .prose h2 { font-family: var(--font-body); font-size: 22px; }
.article .prose { font-size: 18px; line-height: 1.7; }
@media (max-width: 639px) { .article .prose { font-size: 17px; } }

.h-display { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 8px 0 12px; }
@media (min-width: 640px) { .h-display { font-size: 34px; } .article .h-display { font-size: 36px; } }
.h-page { font-size: 24px; font-weight: 600; margin: 0; }
.intro { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 0 24px; }
.crumb { font-size: 14px; color: var(--ink-3); margin: 0; }
.crumb a { color: var(--ink-2); }
.disclose {
  background: var(--brand-soft); color: var(--ink-2); font-size: 14px;
  padding: 12px 16px; border-radius: 10px; margin: 0 0 28px;
}

/* ---------- Category ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.chip-q {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.chip-q:hover { border-color: var(--brand); color: var(--brand); }
.ask { margin-top: 16px; }

/* ---------- Guide list: a magazine page ---------- */
/* One 12-column grid; each guide's layout (gv-*) is set by its place on the page (guide-view.js). */
.guides-mag {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 0;
  list-style: none; margin: 8px 0 0; padding: 0;
}
.guides-mag > li { padding-bottom: 40px; min-width: 0; }
.gv-f, .gv-x, .gv-w { grid-column: 1 / -1; }
.gv-p, .gv-b { grid-column: span 6; }
.gv-t { grid-column: span 4; }
.guides-mag > .gv-f, .guides-mag > .gv-x, .guides-mag > .gv-w { border-top: 1px solid var(--line); padding-top: 40px; }
.guides-mag > li:first-child { border-top: 0; padding-top: 0; }

.g-row { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border-radius: 14px; }
.g-row:active { opacity: .85; }
.g-row:focus-visible { outline-offset: 4px; }
.g-thumb {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
  aspect-ratio: 3 / 2; border-radius: 12px;
  background:
    radial-gradient(120px 80px at 20% 15%, var(--thumb-shine), transparent),
    linear-gradient(135deg, var(--tone, var(--t0)) 0%, var(--tone-end, var(--t0-end)) 100%);
}
.g-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(31, 42, 39, .06); pointer-events: none; }
.g-emoji { font-size: 56px; line-height: 1; }
.g-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: var(--skel);
  transition: transform .4s var(--ease);
}
.g-text { display: flex; flex-direction: column; min-width: 0; }
.g-title {
  margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 19px; line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.g-dek {
  display: -webkit-box; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g-meta {
  display: flex; align-items: center; min-width: 0; margin-top: 12px;
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-3);
}
.g-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.g-av { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--skel); }
.g-by { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.g-sep { margin: 0 6px; }
.g-meta time { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-row:hover .g-title { color: var(--brand); text-decoration-line: underline; }
@media (hover: hover) { .g-row:hover .g-thumb img { transform: scale(1.04); } }

/* Feature (picture left) and feature-flip (picture right) */
.gv-f .g-row, .gv-x .g-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; align-items: center; }
.gv-x .g-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.gv-x .g-thumb { grid-column: 2; grid-row: 1; }
.gv-x .g-text { grid-column: 1; grid-row: 1; }
.gv-f .g-thumb, .gv-x .g-thumb { border-radius: 16px; }
.gv-f .g-emoji, .gv-x .g-emoji, .gv-w .g-emoji { font-size: 80px; }
/* Long guide titles: the feature's text column is narrow, so 5 lines before it clamps. */
.gv-f .g-title, .gv-x .g-title { font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; -webkit-line-clamp: 5; }
.gv-f .g-dek, .gv-x .g-dek { font-size: 18px; -webkit-line-clamp: 4; }
.gv-f .g-meta, .gv-x .g-meta, .gv-w .g-meta { margin-top: 20px; font-size: 14px; line-height: 20px; }
.gv-f .g-av, .gv-x .g-av, .gv-w .g-av { width: 32px; height: 32px; }

/* Pair: picture on top */
.gv-p .g-thumb { aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 16px; }
.gv-p .g-emoji { font-size: 72px; }
.gv-p .g-title { font-size: 24px; line-height: 1.2; -webkit-line-clamp: 3; }
.gv-p .g-av { width: 28px; height: 28px; }

/* Trio: picture on top, no dek */
.gv-t .g-thumb { margin-bottom: 14px; }
.gv-t .g-dek { display: none; }
.gv-t .g-meta { margin-top: 10px; }

/* Brief: text left, small square picture right */
.gv-b .g-row { flex-direction: row-reverse; gap: 20px; justify-content: space-between; }
.gv-b .g-thumb { width: 120px; aspect-ratio: 1; align-self: flex-start; }
.gv-b .g-emoji { font-size: 44px; }
.gv-b .g-text { flex: 1; }
.gv-b .g-title { font-size: 20px; -webkit-line-clamp: 3; }
.gv-b .g-dek { font-size: 15px; margin-top: 6px; }
.gv-b .g-meta { margin-top: 10px; }

/* Wide: a lone guide at a page's end, never left in half a row */
.gv-w .g-row { flex-direction: row-reverse; gap: 32px; justify-content: space-between; align-items: center; }
.gv-w .g-thumb { width: 216px; }
.gv-w .g-text { flex: 1; max-width: 560px; }
.gv-w .g-title { font-size: 26px; line-height: 1.2; -webkit-line-clamp: 3; }
.gv-w .g-dek { font-size: 17px; }

@media (max-width: 859px) {
  .guides-mag { column-gap: 20px; }
  .guides-mag > li { padding-bottom: 36px; }
  .guides-mag > .gv-f, .guides-mag > .gv-x, .guides-mag > .gv-w { padding-top: 36px; }
  .gv-f .g-row, .gv-x .g-row { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .gv-f .g-thumb, .gv-x .g-thumb { border-radius: 14px; }
  .gv-f .g-title, .gv-x .g-title, .gv-w .g-title { font-size: 28px; line-height: 1.15; }
  .gv-f .g-dek, .gv-x .g-dek, .gv-w .g-dek { font-size: 17px; -webkit-line-clamp: 3; }
  .gv-p .g-title { font-size: 21px; }
  .gv-p .g-dek { font-size: 15px; }
  .gv-t .g-title { font-size: 17px; }
  .gv-b .g-row { gap: 16px; }
  .gv-b .g-thumb { width: 96px; }
  .gv-b .g-title { font-size: 18px; }
  .gv-b .g-dek { display: none; }
  .gv-w .g-thumb { width: 180px; }
}

@media (max-width: 639px) {
  .guides-mag { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .guides-mag > li { padding-bottom: 28px; }
  .guides-mag > .gv-f, .guides-mag > .gv-x, .guides-mag > .gv-w { padding-top: 28px; }
  .gv-f, .gv-x, .gv-w, .gv-t { grid-column: 1 / -1; }
  .gv-p, .gv-b { grid-column: span 1; }
  /* Features and wide guides stack, picture on top. */
  .gv-f .g-row, .gv-x .g-row, .gv-w .g-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .gv-f .g-thumb, .gv-x .g-thumb, .gv-w .g-thumb { width: auto; border-radius: 14px; margin-bottom: 16px; }
  .gv-f .g-text, .gv-w .g-text { max-width: none; }
  .gv-f .g-title, .gv-x .g-title, .gv-w .g-title { font-size: 26px; }
  .gv-f .g-emoji, .gv-x .g-emoji, .gv-w .g-emoji { font-size: 64px; }
  .gv-f .g-av, .gv-x .g-av, .gv-w .g-av { width: 24px; height: 24px; }
  /* Pairs and briefs: half-width cards, picture on top, no dek, meta on two lines. */
  .gv-p .g-thumb, .gv-b .g-thumb { width: auto; aspect-ratio: 4 / 3; border-radius: 12px; margin-bottom: 12px; align-self: stretch; }
  .gv-b .g-row { flex-direction: column; gap: 0; }
  .gv-p .g-emoji, .gv-b .g-emoji { font-size: 48px; }
  .gv-p .g-title, .gv-b .g-title { font-size: 17px; line-height: 1.25; -webkit-line-clamp: 4; }
  .gv-p .g-dek, .gv-b .g-dek { display: none; }
  .gv-p .g-meta, .gv-b .g-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gv-p .g-sep, .gv-b .g-sep { display: none; }
  .gv-p .g-av, .gv-b .g-av { width: 20px; height: 20px; }
  /* Trios: a row, text left, square picture right, a rule between. */
  .guides-mag > .gv-t { border-top: 1px solid var(--line); padding-top: 16px; }
  .gv-t .g-row { flex-direction: row-reverse; gap: 16px; justify-content: space-between; }
  .gv-t .g-thumb { width: 104px; aspect-ratio: 1; margin: 0; }
  .gv-t .g-emoji { font-size: 40px; }
  .gv-t .g-text { flex: 1; }
  .gv-t .g-title { font-size: 18px; }
}

/* Related guides under an article */
.g-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; list-style: none; margin: 8px 0 0; padding: 0; }
.g-rel.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-rel.n1 { grid-template-columns: 1fr; }
.g-rel > li { min-width: 0; }
@media (max-width: 639px) {
  .g-rel { grid-template-columns: 1fr; }
  .g-rel > li + li { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
  .g-rel .g-row { flex-direction: row-reverse; gap: 16px; justify-content: space-between; }
  .g-rel .g-thumb { width: 104px; aspect-ratio: 1; margin: 0; }
  .g-rel .g-text { flex: 1; }
  .g-rel .g-title { font-size: 18px; }
  .g-rel .g-dek { display: none; }
}

/* Guides loaded as you scroll rise in, a few at a time. */
.g-new { animation: rise .32s var(--ease) both; animation-delay: calc(min(var(--i, 0), 6) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.g-prev { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.g-prev a { text-decoration: none; }
.g-prev a:hover { text-decoration: underline; }
.g-more-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; margin: 32px 0 48px; }
.g-more {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  background: var(--surface); border: 1.5px solid var(--brand); border-radius: 999px;
  color: var(--brand); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.g-more:hover { background: var(--brand-soft); }
.g-more:active { transform: scale(.98); }
.g-more.is-loading { pointer-events: none; opacity: .8; }
.g-more.is-loading .g-more-icon {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--brand-edge); border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
.g-more.is-loading .g-more-icon path { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.g-more-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.g-end {
  display: flex; align-items: center; gap: 16px; width: 100%; margin: 0;
  font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
}
.g-end::before, .g-end::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.g-empty { text-align: center; padding: 24px 0 8px; }
.g-empty-emoji { font-size: 40px; line-height: 1; }
.g-empty-head { margin: 12px 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.g-empty-sub { margin: 0; color: var(--ink-2); }

/* ---------- Our guides under SimpleFind's answer ---------- */
.row-guides { padding: 16px 0 20px; min-height: 0; }
.row-guides .av { font-size: 15px; }
.g-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-mini-link { display: flex; align-items: center; gap: 14px; min-height: 56px; text-decoration: none; }
.g-mini .g-thumb { flex: none; width: 64px; height: 64px; aspect-ratio: auto; border-radius: 10px; }
.g-mini .g-emoji { font-size: 26px; }
.g-mini-text { display: flex; flex-direction: column; min-width: 0; }
.g-mini-title {
  font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--brand);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g-mini-link:visited .g-mini-title { color: var(--visited); }
.g-mini-link:hover .g-mini-title, .g-mini-link:focus-visible .g-mini-title { text-decoration: underline; }
.g-mini-link:hover .g-thumb img { transform: scale(1.03); }
.g-mini-cat { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-3); }
@media (max-width: 639px) {
  .row-guides { padding: 12px 0 16px; }
  .g-mini .g-thumb { width: 56px; height: 56px; }
}

/* ---------- Buttons, forms, dialog ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
}
.btn-1 { background: var(--brand); color: var(--brand-ink); }
.btn-1:hover { background: var(--brand-hover); }
.btn-2 { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); color: #FFF; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; min-height: 32px; }
.linkish.danger { color: var(--danger); }

.form { display: flex; flex-direction: column; }
.form label { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.form label:first-of-type { margin-top: 4px; }
.form .opt { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.form input:not([type='checkbox']), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; font-size: 16px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A5753' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form .btn { margin-top: 24px; align-self: flex-start; }
.form .help { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.form-error { color: var(--danger); font-weight: 600; margin: 12px 0 0; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.consent input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); }
.form .consent label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---------- Footer ---------- */
.foot { margin-top: 48px; border-top: 1px solid var(--line); }
.foot-in { max-width: 880px; margin: 0 auto; padding: 16px var(--gutter) 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .skel, .answer.streaming > :last-child::after, .g-new, .g-more.is-loading .g-more-icon { animation: none; }
  .g-thumb img, .topic-emoji, .topic-go, .topic-name, .ask-chip-x { transition: none; }
  .topic:hover .topic-emoji, .g-row:hover .g-thumb img { transform: none; }
}

/* ---------- Guides from syndicate ---------- */
.dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; }
.byline { display: flex; align-items: center; gap: 8px; }
.byline-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.hero { margin: 0 0 28px; }
.hero img, .prose img { width: 100%; height: auto; border-radius: 12px; display: block; }
.hero figcaption, .prose figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.prose figure { margin: 0 0 20px; }
.prose a { color: var(--brand); }
.prose blockquote { margin: 0 0 20px; padding-left: 16px; border-left: 3px solid var(--brand-edge); color: var(--ink-2); }

/* ---------- Health, money and legal notes; crisis help ---------- */
.care-note {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 10px;
  background: var(--care-bg); color: var(--care); font-size: 15px; line-height: 1.5;
}
.answer + .rows-error, .switcher + .care-note { margin-top: 16px; }
.crisis { margin: 0 0 16px; padding: 16px; border-radius: 12px; background: var(--disagree-bg); color: var(--ink); }
.crisis p { margin: 0 0 8px; }
.crisis-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crisis-small { font-size: 13px; color: var(--ink-2); margin-bottom: 0; }

/* ---------- Results: asked from a category; a browser over its limit ---------- */
.ask-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; margin: 4px 0 16px; padding: 0 6px 0 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-edge); border-radius: 999px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.care-note + .ask-chip { margin-top: 0; }
.ask-chip b { font-weight: 700; color: var(--ink); }
.ask-chip-x {
  position: relative; display: grid; place-items: center;
  width: 28px; height: 28px; margin-left: 2px; border-radius: 50%; color: var(--ink-2);
  transition: background-color .1s var(--ease), transform .1s var(--ease);
}
.ask-chip-x::after { content: ''; position: absolute; inset: -8px; }
.ask-chip-x:hover { background: var(--brand-edge); color: var(--ink); }
.ask-chip-x:active { transform: scale(.94); }
.rows-error.is-limit {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 14px;
  padding: 16px 18px; background: var(--hold-bg); border: 1px solid var(--hold-line); border-radius: 12px; color: var(--ink);
}
.limit-disc { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hold-disc); font-size: 20px; }
.limit-head { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 600; }
.limit-body { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.limit-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.limit-link:hover { text-decoration: underline; }
@media (max-width: 639px) { .limit-head { font-size: 17px; } }
