.qa-page { background: var(--soft); }
.q-head .q-wrap { max-width: 1080px; }
.q-head h1 { max-width: 22ch; }
.q-head h1 em { color: #7cc4f5; }
.q-head .lede { color: #b4bdd3; max-width: 620px; margin: 16px 0 0; }
.q-head .g-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; font-size: 15px; color: #9aa5c0; }
.q-head .g-meta b { color: #fff; font-size: 20px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.q-by { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; font-size: 15px; color: #9aa5c0; }
.q-by b { color: #fff; }

.av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-ink); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.av.ghost { background: rgba(255,255,255,.12); color: #c3cbe0; }

.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-block: 40px 88px; max-width: 1080px; }
.q-main { min-width: 0; display: grid; gap: 20px; }
.q-main > section > h2, .q-main h2.serif { font-size: 26px; margin: 0 0 16px; }
.q-main h2 em { color: var(--link); }

.bubble-q { position: relative; padding: 24px 28px; border-radius: 22px 22px 22px 6px; background: #fff; border: 1px solid var(--line); font-size: 18px; }
.bubble-q > * + * { margin-top: .8em; }
.ans-h { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.answer { padding: 24px 28px; border-radius: 22px 22px 6px 22px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 96px; }
.answer.best { background: var(--tint-blue); border-color: transparent; }
.answer header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.answer header b { display: block; color: var(--ink); }
.answer header span:not(.av):not(.label) { font-size: 14px; color: var(--muted); }
.answer .label { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.a-body { font-size: 17px; }
.no-answer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 20px; border: 1px dashed #c6cfde; background: #fff; }
.no-answer p { margin: 0; flex: 1 1 320px; color: var(--text); }
.no-answer b { color: var(--ink); }

.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qrow a { display: block; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.qrow a:hover { border-color: #b9c3d6; transform: translateX(3px); }
.qrow h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.qrow p { margin: 0 0 10px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--soft); font-weight: 700; color: var(--muted); }
.badge.ok { background: #e3f5ea; color: #12723b; }
.qlist.compact p, .qlist.compact .qmeta span:not(.badge):nth-child(n+3) { display: none; }
.qlist.compact h3 { font-size: 16px; margin-bottom: 8px; }
.q-related { margin-top: 28px; }
.q-related .more { display: inline-block; margin-top: 14px; }

.ask-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.ask-side .ask-card { background: var(--navy); color: #b4bdd3; padding: 28px; }
.ask-side .ask-card h3 { color: #fff; font-size: 24px; }
.ask-side .ask-card p { color: #b4bdd3; font-size: 15px; margin-bottom: 20px; }
.side-links { display: grid; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.side-links p { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.side-links a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.side-links a:last-child { border-bottom: 0; color: var(--link); }
.side-links a:hover { color: var(--link); }
.side-links small { color: var(--muted); font-variant-numeric: tabular-nums; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.topic-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.topic-grid a:hover { border-color: var(--blue); color: var(--link); }
.topic-more { margin-top: 12px; }
.topic-more summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--link); cursor: pointer; list-style: none; }
.topic-more summary::-webkit-details-marker { display: none; }
.topic-more summary::after { content: "▾"; transition: transform .15s; }
.topic-more[open] summary::after { transform: rotate(180deg); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.topic-chips a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.topic-chips a:hover { border-color: var(--blue); color: var(--link); }
.topic-chips small { color: var(--muted); font-weight: 600; }
.topic-grid small { flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--soft); text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.two-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; }

.q-find { display: flex; align-items: center; gap: 12px; max-width: 640px; height: 56px; margin-top: 28px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--muted); box-shadow: 0 12px 30px -16px rgba(0,0,0,.5); }
.q-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.q-results { max-width: 640px; margin-top: 10px; max-height: 420px; overflow-y: auto; }
.q-results .qrow a { padding: 14px 18px; }
.q-results .qrow h3 { font-size: 16px; margin: 0 0 6px; }
.q-results .none { padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.08); color: #c3cbe0; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pager div { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pager span { border: 0; background: transparent; color: var(--muted); }
.pager a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a:hover:not([aria-current]) { border-color: var(--blue); }

@media (max-width: 980px) {
  .q-grid { grid-template-columns: minmax(0, 1fr); }
  .ask-side { position: static; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bubble-q, .answer { padding: 20px; font-size: 16px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-step { display: none !important; }
}
.search-out .search-results { list-style: none; padding: 0; display: grid; gap: 10px; }
.search-out .search-results li { margin: 0 !important; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.search-out .search-results a { text-decoration: none; color: var(--ink); }
.search-out .search-results span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.doc-lede { color: #b4bdd3; margin: 16px 0 0; max-width: 640px; }
.prose.legal { font-size: 16px; }
.qlist > li, .q-main > * { min-width: 0; }
.qrow h3, .qrow p, .a-body, .bubble-q { overflow-wrap: anywhere; }

.answer .label.old { background: var(--soft); color: var(--muted); }
.answer.archive { background: #fff; }
.q-main .stale { margin: 0; padding: 16px 20px; border-radius: 16px; background: #fff8e8; border: 1px solid #f3dfa8; font-size: 15px; }
.q-main .stale-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #7a4a06; }
.q-main .stale p { margin: 0; color: #4d3a12; }
.q-main .stale ul { margin: 6px 0 0; padding-left: 1.2em; color: #4d3a12; }
