/* Az ApaIránytű nyilvános oldalainak stílusai: a /valasz lista (statikus
   valasz.html) és a /valasz/<kód> permalink (functions/valasz/[code].js,
   szerveroldali render) is ezt tölti be, hogy a két nézet ne csússzon szét.
   A style.css után jön: az itteni szabályok annak :root változóira építenek. */

/* Levelesláda-rovat: a kérdés a levél, nagy szerifes betűvel és „ jellel,
   a válasz visszafogott kivonat. A lista magazinos osztás (bal oldali
   rail + olvasóhasáb), a válasz-oldal zöld "levélpapír" panelt kap.
   A site (style.css) csak sötét, ezért nincs prefers-color-scheme elágazás. */
.qa-shell { max-width: 1200px; margin: 0 auto; padding: 0 24px 56px; }
.qa-muted { opacity: 0.7; }
.qa-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.qa-when { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

/* ── Lista: rail + levelek ─────────────────────────────────────────── */
.qa-split { display: grid; grid-template-columns: 300px 1fr; }
.qa-rail {
  border-right: 1px solid var(--border); padding: 40px 32px 40px 0;
  display: flex; flex-direction: column; gap: 20px;
}
.qa-rail h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500; font-size: 44px; line-height: 1.04; margin: 0;
  letter-spacing: 0.005em; text-wrap: balance;
}
.qa-lede { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.qa-search { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.qa-search input {
  width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.qa-search input::placeholder { color: var(--muted-2); }
.qa-search select {
  width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2371717a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.qa-search input:focus-visible, .qa-search select:focus-visible { outline: 2px solid rgba(5, 150, 105, 0.55); outline-offset: 1px; }
.qa-search .btnrow { display: flex; gap: 8px; }
.qa-search button[type="submit"] {
  padding: 8px 18px; border: 0; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
  background: var(--emerald-600); color: #fff;
}
.qa-search button[type="submit"]:hover { background: var(--emerald-500); }
.qa-reset {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
  background: transparent; color: var(--muted);
}
.qa-reset:hover { color: var(--accent-bright); border-color: var(--accent); }
.qa-count {
  margin: 2px 0 0;
  color: var(--muted-2); font-size: 12.5px; font-variant-numeric: tabular-nums;
}

.qa-letters { padding: 34px 0 48px 52px; max-width: 880px; }
.qa-letter {
  display: block; text-decoration: none; color: inherit;
  padding: 32px 0 28px; border-top: 1px solid var(--border);
}
.qa-letter:first-child { border-top: 0; padding-top: 10px; }
.qa-letter .q {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 23px; line-height: 1.42; font-weight: 500; margin: 0 0 14px;
  max-width: 44ch; text-wrap: pretty; position: relative; padding-left: 34px;
  /* pre-line: a kérdező sortörései megmaradnak, a szóköz-futamok nem. */
  white-space: pre-line;
}
.qa-letter .q::before {
  content: "„"; position: absolute; left: 0; top: -0.28em;
  font-size: 52px; line-height: 1; color: var(--emerald-600);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.qa-letter .a {
  color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 64ch;
  margin: 0 0 16px 34px; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.qa-byline { display: flex; align-items: center; gap: 10px; margin-left: 34px; }
.qa-bava {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h, 150) 55% 52%), hsl(calc(var(--h, 150) + 26) 52% 38%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); user-select: none;
}
.qa-byline .who { font-size: 13px; color: var(--muted); }
.qa-byline .who b { color: var(--text); font-weight: 650; }
.qa-byline .more { margin-left: auto; font-size: 13px; font-weight: 650; color: var(--accent); white-space: nowrap; }
.qa-letter:hover .more { color: var(--accent-bright); }
.qa-letter:focus-visible { outline: 2px solid rgba(5, 150, 105, 0.55); outline-offset: 4px; border-radius: 8px; }

.qa-pager {
  display: flex; justify-content: space-between; margin-top: 4px; padding-top: 22px;
  border-top: 1px solid var(--border); font-size: 13.5px;
}
.qa-pager a { color: var(--accent); text-decoration: none; font-weight: 650; }
.qa-pager a:hover { color: var(--accent-bright); }
.qa-pager span { opacity: 0.35; }

/* ── Válasz-oldal (permalink) ──────────────────────────────────────── */
.qa-perma { max-width: 720px; margin: 0 auto; padding: 44px 0 56px; }
.qa-crumb { font-size: 13px; color: var(--muted-2); margin: 0 0 30px; }
.qa-crumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.qa-crumb a:hover { color: var(--accent-bright); }
.qa-qhead {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500; font-size: 32px; line-height: 1.32; margin: 0 0 10px;
  position: relative; padding-left: 44px; text-wrap: pretty; white-space: pre-wrap; color: var(--text);
}
.qa-qhead::before {
  content: "„"; position: absolute; left: 0; top: -0.3em;
  font-size: 74px; line-height: 1; color: var(--emerald-600);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.qa-asker { color: var(--muted-2); font-size: 13.5px; margin: 0 0 32px; padding-left: 44px; }

.qa-panel {
  border: 1px solid rgba(52, 211, 153, 0.22); border-radius: 18px;
  background: linear-gradient(170deg, #0e2b21, var(--surface) 55%);
  padding: 28px 30px 26px;
}
.qa-alabel {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.qa-alabel::after { content: ""; flex: 1; height: 1px; background: rgba(52, 211, 153, 0.18); }
.qa-answer { white-space: pre-wrap; color: #d4d4d8; font-size: 15.5px; line-height: 1.78; max-width: 62ch; margin: 0; }

.qa-coachrow {
  display: flex; align-items: center; gap: 14px; margin-top: 24px;
  border-top: 1px solid rgba(52, 211, 153, 0.14); padding-top: 18px;
  text-decoration: none; color: inherit;
}
.qa-coachrow .qa-bava { width: 46px; height: 46px; border-radius: 12px; font-size: 17px; overflow: hidden; }
.qa-coachrow .qa-bava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qa-coachrow .who { font-size: 14px; color: var(--muted); line-height: 1.4; min-width: 0; }
.qa-coachrow .who b { display: block; color: var(--text); font-size: 15px; }
.qa-coachrow .who .role { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.qa-coachrow .who .bio { display: block; font-size: 13px; line-height: 1.5; margin-top: 2px; }
.qa-visit {
  margin-left: auto; font-size: 13px; font-weight: 650; color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 999px; padding: 7px 16px;
  text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.qa-visit:hover { background: var(--accent-dim); }

.qa-footrow { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.qa-copy {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--muted); padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.qa-copy:hover { color: var(--accent); border-color: var(--accent); }
.qa-back { display: inline-block; color: var(--emerald-400); text-decoration: none; font-weight: 600; }
.qa-back:hover { text-decoration: underline; }

.qa-cta {
  margin-top: 28px; border-radius: 16px; padding: 20px 24px;
  background: var(--accent-dim); border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.qa-cta p { margin: 0; font-size: 14.5px; max-width: 46ch; color: var(--text); }
.qa-cta p b { color: var(--accent-bright); }
.qa-ctabtn {
  margin-left: auto; background: var(--emerald-600); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 10px 22px; text-decoration: none; white-space: nowrap;
}
.qa-ctabtn:hover { background: var(--emerald-500); }

@media (max-width: 900px) {
  .qa-split { grid-template-columns: 1fr; }
  .qa-rail { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 0 24px; }
  .qa-rail h1 { font-size: 36px; }
  .qa-letters { padding: 22px 0 40px; }
  .qa-letter .q { font-size: 20px; max-width: none; }
  .qa-perma { padding: 32px 0 44px; }
  .qa-qhead { font-size: 25px; padding-left: 36px; }
  .qa-asker { padding-left: 36px; }
  .qa-panel { padding: 22px 20px; }
  .qa-cta { padding: 18px 20px; }
  .qa-ctabtn { margin-left: 0; }
}
