/* ---------- design tokens ---------- */
:root {
  --bg: #faf7f0;
  --bg-alt: #f2edde;
  --card: #ffffff;
  --ink: #26251f;
  --ink-soft: #5c594e;
  --accent: #1e5e4e;
  --accent-dark: #14453a;
  --accent-soft: #e3ede9;
  --gold: #b9862b;
  --gold-soft: #f4ead3;
  --border: #e3ddcc;
  --golge: 0 2px 14px rgba(38, 37, 31, .06);
  --golge-buyuk: 0 10px 34px rgba(38, 37, 31, .10);
  --radius: 14px;
  --serif: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gecis: 200ms ease;
}
:root[data-theme="dark"] {
  --bg: #101d19;
  --bg-alt: #16261f;
  --card: #1a2c25;
  --ink: #ece7d8;
  --ink-soft: #a9a794;
  --accent: #63b598;
  --accent-dark: #7fcbb0;
  --accent-soft: #1e352d;
  --gold: #d4a94e;
  --gold-soft: #2c2a1a;
  --border: #2b4038;
  --golge: 0 2px 14px rgba(0, 0, 0, .25);
  --golge-buyuk: 0 10px 34px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  transition: background var(--gecis), color var(--gecis);
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3, .brand, .footer-brand { font-family: var(--serif); letter-spacing: -.01em; }
em { color: var(--accent); font-style: italic; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Labels kept for screen readers but hidden on screen */
.is-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--accent); color: #fff; padding: 8px 16px;
  border-radius: 0 0 10px 10px; text-decoration: none; font-size: .88rem;
  transition: top var(--gecis);
}
.skip-link:focus { top: 0; }

/* ---------- header bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 1.3rem; }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color var(--gecis);
}
.site-header nav a:hover { color: var(--accent); }
/* The current page is marked in the nav. This is not a single-page site:
   every section has its own address, so readers should see where they are. */
.site-header nav a.active { color: var(--accent); font-weight: 600; }
.site-header nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--gold); border-radius: 2px;
}
.theme-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--ink-soft); cursor: pointer;
  transition: color var(--gecis), border-color var(--gecis), background var(--gecis);
}
.theme-btn:hover { color: var(--gold); border-color: var(--gold); }
.theme-btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ---------- language picker ---------- */
.lang-select { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--ink-soft); cursor: pointer;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  transition: color var(--gecis), border-color var(--gecis), background var(--gecis);
}
.lang-btn:hover { color: var(--gold); border-color: var(--gold); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  list-style: none; min-width: 160px; max-height: 340px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--golge-buyuk); padding: 6px;
}
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 7px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font-size: .9rem; cursor: pointer;
  transition: background var(--gecis);
}
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button[aria-selected="true"] { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

/* ---------- home hero ---------- */
.kicker {
  display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
/* Small note shown when the content is not yet available in the chosen language */
.lang-note {
  display: inline-block; margin-top: 18px; font-size: .84rem; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px;
}

/* ---------- search field bits shared with the header box ---------- */
.ask-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--ink-soft); pointer-events: none;
}
/* Short notice shown when a search matches nothing */
.ask-result {
  max-width: 780px; margin: 22px auto 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  padding: 14px 18px; font-size: .93rem; box-shadow: var(--golge);
}

/* ---------- answer body (used on the answer page) ---------- */
.answer { font-size: .98rem; }
.answer sup { color: var(--gold); font-weight: 600; font-size: .72em; }
.answer hr ~ p, .answer hr ~ ol, .answer hr ~ ul { font-size: .85rem; color: var(--ink-soft); }
.answer hr ~ ol li, .answer hr ~ ul li { margin-bottom: 2px; }
.answer h1, .answer h2, .answer h3 { font-size: 1.05rem; margin: 1.1em 0 .4em; }
.answer p { margin: .65em 0; }
.answer ul, .answer ol { margin: .65em 0 .65em 1.4em; }
.answer blockquote {
  border-left: 3px solid var(--gold); margin: .9em 0; padding: .35em 0 .35em 1.05em;
  color: var(--ink-soft); font-style: italic;
  font-family: var(--serif); font-size: 1.04em;
  background: linear-gradient(90deg, var(--gold-soft), transparent 65%);
  border-radius: 0 8px 8px 0;
}
.answer blockquote p::before {
  content: "●"; color: var(--gold); font-size: .5em;
  margin-right: .65em; vertical-align: .35em;
}
.answer hr { border: 0; border-top: 1px solid var(--border); margin: 1.2em 0 1em; }
.answer code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
/* Cross-reference between answers: a measured accent that does not break the reading flow */
.answer .xref {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color var(--gecis), color var(--gecis);
}
.answer .xref:hover { color: var(--accent-dark); border-bottom-color: var(--gold); }
.err { color: #c0473f; font-size: .93rem; margin-top: 8px; }
.pending { color: var(--ink-soft); font-style: italic; }
.ask-result.pending { font-style: normal; color: var(--ink-soft); }
.ask-result.err { border-left-color: #c0473f; margin-top: 22px; }

/* ---------- section headings ---------- */
section h2 { font-size: 1.85rem; margin-bottom: 10px; }
.section-lede { color: var(--ink-soft); max-width: 680px; margin-bottom: 28px; }

/* ---------- most-asked-style list (category page, related questions) ---------- */
/* No numbering: a numbered "01, 02, 03…" list reads as a closed, counted
   set and made the site feel like it holds a handful of answers rather
   than nearly 200 (23 Ağustos 2026, sahibinin talimatı). A thin gold
   marker takes the place of the number — it points at the question
   without counting it. */
.popular-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  max-width: 920px; margin: 0 auto;
}
/* The same list styling serves both the home-page cards and the links
   on the category page */
.popular-list button, .popular-list a {
  display: block; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 13px 16px; cursor: pointer; font-size: .93rem; line-height: 1.45;
  color: var(--ink); text-decoration: none;
  transition: border-color var(--gecis), box-shadow var(--gecis), transform 150ms ease;
}
.popular-list button:hover, .popular-list a:hover { border-color: var(--gold); box-shadow: var(--golge); transform: translateY(-1px); }

/* ---------- topic cards (topics page) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.topic-grid article {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--gecis), transform 150ms ease, border-color var(--gecis);
}
.topic-grid article:hover { box-shadow: var(--golge-buyuk); transform: translateY(-2px); }
.topic-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.topic-head svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.topic-grid h3 { font-size: 1.12rem; }
.topic-head h3 a { color: inherit; text-decoration: none; transition: color var(--gecis); }
.topic-head h3 a:hover { color: var(--accent); }
.topic-grid > article > p { font-size: .89rem; color: var(--ink-soft); }
.card-all {
  display: inline-block; margin-top: 12px;
  font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none;
}
.card-all::after { content: " →"; color: var(--gold); }
.card-all:hover { text-decoration: underline; }

.q-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.q-list a {
  display: block; width: 100%; text-align: left; text-decoration: none;
  font-size: .88rem; color: var(--accent-dark); background: none;
  border: 0; border-radius: 8px; padding: 6px 8px; line-height: 1.45;
  transition: background var(--gecis);
}
.q-list a:hover { background: var(--bg-alt); }
.q-list a::before { content: "→ "; color: var(--gold); }

/* ---------- approach band ---------- */
.approach {
  background: #14453a; color: #ece7d8; padding: 48px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 8l6 22 22 6-22 6-6 22-6-22-22-6 22-6z' fill='none' stroke='%23d4a94e' stroke-opacity='.12'/%3E%3C/svg%3E");
}
.approach-note { max-width: 740px; margin: 0 auto; text-align: center; font-size: 1.03rem; }
.approach-note strong { color: #d4a94e; }

/* ---------- contact ---------- */
.contact { padding: 68px 0; }
.contact h2 { text-align: center; }
.contact .section-lede { text-align: center; margin-left: auto; margin-right: auto; }
.contact-form { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: flex; gap: 14px; }
.contact-row .alan { flex: 1; }
.alan { display: flex; flex-direction: column; gap: 5px; }
.alan label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.alan label .optional { font-weight: 400; }
.contact-form input, .contact-form textarea {
  padding: 12px 15px; font-size: .97rem; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--ink); outline: none; resize: vertical;
  transition: border-color var(--gecis), box-shadow var(--gecis);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form button {
  align-self: flex-end; padding: 12px 36px; font-size: .97rem; font-weight: 600;
  background: var(--accent); color: var(--bg); border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background var(--gecis), transform 150ms ease;
}
:root[data-theme="light"] .contact-form button { color: #fff; }
.contact-form button:hover { background: var(--accent-dark); }
.contact-form button:active { transform: scale(.97); }
.contact-form button:disabled { opacity: .55; cursor: wait; }
.contact-result { font-size: .92rem; text-align: center; }
.contact-result.ok { color: var(--accent); }
.contact-result.err { color: #c0473f; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { font-size: 1.15rem; font-weight: 700; }
.footer-note { font-size: .85rem; color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .88rem;
  transition: color var(--gecis);
}
.site-footer nav a:hover { color: var(--accent); }

/* ---------- category page ---------- */
.category-page { padding: 48px 0 72px; min-height: 55vh; }

/* ---------- topics and contact pages ---------- */
.topics-page { padding: 48px 0 72px; min-height: 55vh; }
.topics-page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 8px; }
.contact-page { padding: 48px 0 64px; min-height: 45vh; }
.contact-page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 8px; }
/* On these two pages the heading stays left-aligned; the centring rule
   belongs only to the .topics / .contact sections on the home page */
.topics-page .section-lede, .contact-page .section-lede { margin-bottom: 28px; }

/* ---------- answer page (knowledge-base layout) ---------- */
.answer-page { padding: 34px 0 72px; min-height: 55vh; }
.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .88rem; color: var(--ink-soft); margin-bottom: 20px;
}
.crumb a { color: var(--ink-soft); text-decoration: none; transition: color var(--gecis); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--gold); }
.answer-article {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  padding: 30px 34px; box-shadow: var(--golge-buyuk);
  max-width: 820px;
}
.answer-article h1 {
  font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.28; margin-bottom: 12px;
}
.related-section { max-width: 820px; margin-top: 34px; }
.related-section h2 {
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.related-section .popular-list { grid-template-columns: 1fr; max-width: none; }
.related-section .popular-list button::before,
.related-section .popular-list a::before { content: "→"; min-width: 1.2em; }
.back {
  display: inline-block; margin-bottom: 24px;
  color: var(--ink-soft); text-decoration: none; font-size: .9rem;
  transition: color var(--gecis);
}
.back::before { content: "← "; color: var(--gold); }
.back:hover { color: var(--accent); }
.category-page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 8px; }
.category-page .section-lede { margin-bottom: 10px; }
.topic-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 720px) {
  .popular-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  /* On narrow screens the brand sits on top and the nav centres below it; one line is not enough */
  .header-inner { flex-direction: column; height: auto; padding: 10px 0 9px; gap: 5px; }
  .site-header nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: .3rem .95rem; }
  .site-header nav a { font-size: .84rem; }
  .theme-btn { width: 32px; height: 32px; }
  .lang-btn { height: 32px; padding: 0 8px; }
  .brand { font-size: 1.15rem; }
  .contact-row { flex-direction: column; }
  .answer-article { padding: 22px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   Content-first layout (August 2026)
   The home page no longer opens with a large hero and a search box in
   the middle of empty space. Search sits in the header on every page,
   and the questions themselves are what the reader lands on.
   ================================================================ */

/* ---------- search in the header ---------- */
.header-search {
  position: relative; display: flex; align-items: center;
  flex: 1 1 240px; max-width: 400px; min-width: 0;
}
.header-search .ask-icon {
  position: absolute; left: 13px; width: 17px; height: 17px;
  color: var(--ink-soft); pointer-events: none;
}
.header-search input {
  width: 100%; padding: 9px 42px 9px 38px;
  font-size: .92rem; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--ink); outline: none;
  transition: border-color var(--gecis), box-shadow var(--gecis);
}
.header-search input::placeholder { color: var(--ink-soft); opacity: .75; }
.header-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.header-search button {
  position: absolute; right: 4px;
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--accent); color: var(--bg); border: 0; border-radius: 50%;
  cursor: pointer; transition: background var(--gecis), transform 150ms ease;
}
:root[data-theme="light"] .header-search button { color: #fff; }
.header-search button svg { width: 16px; height: 16px; }
.header-search button:hover { background: var(--accent-dark); }
.header-search button:active { transform: scale(.92); }
.header-search button:disabled { opacity: .55; cursor: wait; }
/* The "no match" notice sits under the bar rather than in a dialog */
.site-header .ask-result { margin: 0 0 10px; }

/* ---------- next question ---------- */
.next-question {
  display: block; max-width: 820px; margin-top: 26px;
  padding: 18px 22px; text-decoration: none;
  background: var(--accent-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  transition: background var(--gecis), transform 150ms ease, box-shadow var(--gecis);
}
.next-question:hover { background: var(--card); box-shadow: var(--golge); transform: translateX(2px); }
.next-label {
  display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
.next-title {
  display: block; font-family: var(--serif); font-size: 1.12rem;
  line-height: 1.35; color: var(--ink);
}
.next-title::after { content: " \2192"; color: var(--accent); }

/* ---------- reading typography for long answers ---------- */
/* These answers run 3,000-6,000 characters. Line length, line height and
   size matter more here than anywhere else on the site: this is where a
   reader either settles in or gives up. */
.answer-article { max-width: 760px; padding: 32px 38px; }
.answer { font-size: 1.05rem; line-height: 1.78; }
.answer p { margin: 1.05em 0; }
.answer h1, .answer h2, .answer h3 { font-size: 1.18rem; margin: 1.6em 0 .5em; }
.answer ul, .answer ol { margin: 1em 0 1em 1.4em; }
.answer li { margin-bottom: .35em; }
.answer blockquote { margin: 1.3em 0; padding: .6em 0 .6em 1.15em; }
/* The footnote list stays smaller, but not so small it cannot be read */
.answer hr ~ p, .answer hr ~ ol, .answer hr ~ ul { font-size: .92rem; line-height: 1.6; }

/* ---------- footnotes that link both ways ---------- */
.answer sup a {
  color: var(--gold); text-decoration: none; padding: 0 1px;
  transition: color var(--gecis);
}
.answer sup a:hover { color: var(--accent); text-decoration: underline; }
/* The note the reader has just jumped to is briefly highlighted, so the
   eye finds it without hunting down the list. */
.answer hr ~ ol li:target { background: var(--gold-soft); border-radius: 6px; }
.fn-back {
  color: var(--gold); text-decoration: none; font-size: 1.05em;
  margin-left: 4px; transition: color var(--gecis);
}
.fn-back:hover { color: var(--accent); }

/* ================================================================
   Home page: one screen, one search box (23 Ağustos 2026, sahibinin
   kararı). The earlier version opened with an intro paragraph and
   required scrolling to reach "Most Asked" and "Topics" — but the nav
   already links to both, so repeating them here only pushed the search
   box down and made the page read as a typical AI-generated landing
   page. The header on the home page carries no search field of its own;
   the big centred one below is the only one, and it is what the visit
   is for.
   ================================================================ */
body.home-page { display: flex; flex-direction: column; min-height: 100vh; }
.home-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px 0 48px; position: relative;
  /* very faint eight-pointed star pattern on the background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 8l6 22 22 6-22 6-6 22-6-22-22-6 22-6z' fill='none' stroke='%23b9862b' stroke-opacity='.10'/%3E%3C/svg%3E");
}
.home-hero { width: 100%; text-align: center; }
.home-search {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto; position: relative;
}
.home-search .ask-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none;
}
.home-search input {
  width: 100%; padding: 18px 22px 18px 52px; font-size: 1.08rem; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--ink); outline: none;
  box-shadow: var(--golge-buyuk);
  transition: border-color var(--gecis), box-shadow var(--gecis);
}
.home-search input::placeholder { color: var(--ink-soft); opacity: .75; }
.home-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.home-search button {
  padding: 0 34px; font-size: 1.02rem; font-weight: 600;
  background: var(--accent); color: var(--bg); border: 0; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: background var(--gecis), transform 150ms ease;
}
:root[data-theme="light"] .home-search button { color: #fff; }
.home-search button:hover { background: var(--accent-dark); }
.home-search button:active { transform: scale(.97); }
.home-search button:disabled { opacity: .55; cursor: wait; }
.home-hero .ask-result { max-width: 640px; }
/* A handful of example questions, so a first-time visitor sees the site
   can answer something concrete before they have typed anything. A grid
   (not flex-wrap) keeps the rows aligned even though the questions
   themselves are different lengths — each card fills its column, so the
   edges line up instead of forming a ragged, mismatched row. */
.chips {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px;
  max-width: 640px; margin: 22px auto 0; text-align: left;
}
.chips a {
  display: block; padding: 10px 15px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  font-size: .83rem; line-height: 1.4; color: var(--ink-soft); text-decoration: none;
  transition: border-color var(--gecis), color var(--gecis), box-shadow var(--gecis);
}
.chips a:hover { border-color: var(--gold); color: var(--ink); box-shadow: var(--golge); }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .site-header nav { order: 2; }
}
@media (max-width: 640px) {
  .answer-article { padding: 22px 18px; }
  .answer { font-size: 1.02rem; }
  .next-question { padding: 15px 17px; }
  .home-search { flex-direction: column; }
  .home-search input { padding: 15px 18px 15px 46px; }
  .home-search .ask-icon { left: 17px; }
  .home-search button { padding: 13px; }
  .chips { grid-template-columns: 1fr; }
  .popular-list { grid-template-columns: 1fr; }
}
