/* Answers only: the /question/ archive and the single answer template.
   Linked from those pages alone. */

/* ---- hero: the question is the page ---- */
.an-hero { padding: 54px 0 104px; background:
    radial-gradient(640px 420px at 100% 0%, rgba(53,223,212,.55), transparent 60%),
    radial-gradient(700px 520px at 0% 110%, rgba(139,63,240,.6), transparent 58%),
    linear-gradient(120deg, #1d8fe6, #2b7ff0 60%, #3a6df0); }
.an-hero h1 { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; max-width: 900px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); text-wrap: balance; }
.an-q, .an-label span { font-family: var(--font-display); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; }
.an-q { width: 58px; height: 58px; font-size: 1.9rem; background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(10,30,80,.25); margin-top: 2px; }

/* ---- the answer card, lifted over the hero ---- */
.an-answer-wrap { margin-top: -66px; position: relative; z-index: 2; }
.an-answer { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px 30px 24px;
  border-top: 5px solid var(--g-green); max-width: 920px; }
.an-label { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1e7e34; margin-bottom: 12px; }
.an-label span { width: 30px; height: 30px; font-size: 1rem; background: rgba(52,168,83,.14); color: #1e7e34; border-radius: 9px; }
.an-short { font-family: var(--font-display); font-size: clamp(1.08rem, 2vw, 1.32rem); font-weight: 600; line-height: 1.55; color: var(--ink); max-width: 66ch; }
.an-by { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.an-by img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.an-by a { font-weight: 700; }

/* ---- body ---- */
.an-body-sec { padding-top: 46px; }
.an-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.an-prose { max-width: 70ch; }
.an-points { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 32px; }
.an-points h2 { font-size: .78rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px !important; }
.an-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an-points li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.an-points li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--g-green); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; }
.an-next { margin: 34px 0; padding: 24px 26px; border-radius: 18px; color: #fff;
  background: radial-gradient(420px 260px at 100% 0%, rgba(53,223,212,.4), transparent 60%), linear-gradient(135deg, #0e1b33, #1a2f63); }
.an-next-k { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal) !important; margin-bottom: 6px !important; }
.an-next-t { color: #dbe8ff !important; margin-bottom: 16px !important; max-width: 56ch; }

/* ---- people also ask ---- */
.an-also { margin-top: 40px; }
.an-acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.an-acc[open] { border-color: #bcd6fb; box-shadow: var(--shadow); }
.an-acc summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; position: relative; color: var(--ink); }
.an-acc summary::-webkit-details-marker { display: none; }
.an-acc summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s ease; }
.an-acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.an-acc summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 14px; }
.an-acc > div { padding: 0 18px 16px; }
.an-acc > div p:last-child { margin-bottom: 0; font-weight: 700; font-size: .9rem; }

/* ---- sidebar ---- */
.an-more { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.an-more li { border-bottom: 1px solid var(--line); }
.an-more li:last-child { border-bottom: 0; }
.an-more a { display: block; padding: 11px 0 11px 26px; position: relative; font-weight: 600; font-size: .9rem; line-height: 1.4; color: var(--ink); text-decoration: none; }
.an-more a::before { content: "Q"; position: absolute; left: 0; top: 11px; font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--brand); }
.an-more a:hover { color: var(--brand); }
.an-all { margin-top: 12px; font-weight: 700; font-size: .88rem; }

/* ---- archive: live search ---- */
.an-find { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.an-find label { position: absolute; left: 18px; color: var(--muted); }
.an-find input { flex: 1; font: inherit; font-size: 1rem; padding: 15px 18px 15px 46px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-width: 0; }
.an-find input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43,127,240,.14); }
.an-count { font-size: .84rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.qa-row[hidden] { display: none; }

@media (min-width: 960px) {
  .an-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .an-side { position: sticky; top: 96px; }
}
@media (max-width: 600px) {
  .an-hero h1 { grid-template-columns: 1fr; gap: 12px; }
  .an-q { width: 46px; height: 46px; font-size: 1.5rem; }
  .an-answer { padding: 22px 20px 20px; }
  .an-by { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .an-acc summary::after { transition: none; } }
/* the article's link colour must not reach the button inside the dark box */
.an-prose .an-next .btn, .an-prose .an-next .btn:hover { color: #fff; text-decoration: none; }
