/* Styles for the answer pages, the aspirations register, the wanted-data board,
   the data API page and the verification notes on source cards. */

/* ---------- Answers ---------- */
.q-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .q-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.q-layout h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.q-intro { font-size: 1.08rem; max-width: 46rem; }
.q-figure { margin: 1.5rem 0 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.q-figure figcaption { font-weight: 700; color: var(--ink); margin-bottom: .75rem; }
.q-chart { display: block; width: 100%; height: auto; }
.q-bar { fill: var(--teal); }
.q-bar-hi { fill: var(--amber-600); }
.q-bar-name { font-size: 12.5px; fill: var(--ink); }
.q-bar-name.q-hi { font-weight: 700; }
.q-bar-val { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.q-chart-note { font-size: .85rem; color: var(--muted); margin: .75rem 0 .25rem; }
.q-scatter .q-pt-out circle { fill: #C2410C; fill-opacity: 1; }
.q-scatter .q-pt-out text { fill: var(--ink); font-weight: 700; }
.q-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; font-size: .82rem; color: var(--muted); margin: .75rem 0 0; }
.q-key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: -.7rem; }
.q-key-out { background: #C2410C; }
.q-key-hi { background: var(--amber-600); }
.q-key-trend { width: 22px; height: 0; border-radius: 0; border-top: 2px dashed var(--amber-600); }
.q-points { padding-left: 1.2rem; max-width: 46rem; }
.q-points li { margin-bottom: .6rem; }
.q-caveat { max-width: 46rem; }
.q-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.q-table th { text-align: left; background: var(--bg-soft); padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.q-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--line); }
.q-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.q-table tr:last-child td { border-bottom: 0; }
.q-side-h { font-size: 1.05rem; margin: 0 0 .6rem; }
.q-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.q-sources, .q-related { padding-left: 1.1rem; margin: 0 0 .75rem; }
.q-sources li, .q-related li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.q-card h3 { font-size: 1.08rem; margin: .75rem 0 .4rem; }
.q-card-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.q-home { display: grid; gap: 1rem; }
@media (min-width: 760px) { .q-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Register, wanted board, API page ---------- */
.board-tools { display: grid; gap: .25rem 2rem; margin: 1.5rem 0 1rem; align-items: start; }
@media (min-width: 900px) { .board-tools { grid-template-columns: minmax(220px, 300px) 1fr; } .board-tools .search-box { grid-row: span 2; } }
.board-tools .result-count { font-weight: 700; color: var(--ink); margin: 0; }
.board-tools .seg button .muted { font-weight: 400; font-size: .8em; }
.board-tools .seg button[aria-pressed="true"] .muted { color: #DCE3F7; }
.badge-stop { background: #FDE4DF; color: #8F2A14; }
.reg-list, .want-list { display: grid; gap: 1rem; }
@media (min-width: 900px) { .reg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reg-card .reg-text { font-size: 1.02rem; color: var(--ink); }
.reg-card .source-facts { display: grid; gap: .3rem; }
.reg-card.is-target, .want-card.is-target, .api-table tr.is-target td { outline: 2px solid var(--amber-600); outline-offset: -2px; }
.want-card { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.want-vote[hidden] + .want-body { grid-column: 1 / -1; }
.vote-btn { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 74px; padding: .55rem .5rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.vote-btn svg { width: 20px; height: 20px; }
.vote-btn strong { font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vote-btn span { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.2; }
.vote-btn:hover { border-color: var(--indigo-600); }
.vote-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.vote-btn.is-on { background: var(--indigo); border-color: var(--indigo); color: #fff; cursor: default; }
.vote-btn.is-on span { color: #DCE3F7; }
.api-table-wrap { max-height: 720px; overflow: auto; }
.api-table th { position: sticky; top: 0; z-index: 1; }
.api-table td { vertical-align: top; }
.api-table code { font-size: .8rem; color: var(--indigo-600); }
.api-level { display: block; font-size: .84rem; margin-bottom: .4rem; white-space: nowrap; }
.prose .code { margin: 0 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Verification notes on source cards ---------- */
.lic-found { color: var(--muted); font-size: .92em; }
.fact-checked strong { color: #05624F; }
.data-preview { font-size: .86rem; margin: .1rem 0 0; padding: .5rem .7rem; border-left: 3px solid var(--teal); background: var(--bg-soft); }

@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notice > span { display: block; }
.fact-unsure { color: var(--muted); }

/* ---------- Exchange guide ---------- */
.guide-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.guide-toc a { font-size: .88rem; font-weight: 600; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; }
.guide-toc a:hover { border-color: var(--indigo); }
.guide-table th[scope="row"] { background: #fff; font-size: .92rem; min-width: 11rem; }
.guide-table .guide-std { display: block; font-weight: 400; margin: .3rem 0; }
.guide-table .guide-group th { background: var(--mist); color: var(--indigo-600); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.guide-table .badge { margin-left: .3rem; vertical-align: middle; }
.guide-coming td:first-child { font-weight: 700; color: var(--ink); }
.nowrap { white-space: nowrap; }
.cite { font-size: .7em; margin-left: .15em; white-space: nowrap; }
.cite a { text-decoration: none; padding: 0 .1em; }
.stat .cite a { color: #B8C2E6; }
.guide-checks { max-width: 52rem; }
.guide-sources { padding-left: 1.4rem; columns: 2 24rem; column-gap: 2rem; }
.guide-sources li { margin-bottom: .35rem; break-inside: avoid; scroll-margin-top: 6rem; }
.guide-sources li:target { background: #FFF8E8; }

/* ---------- Visual polish (all pages) ---------- */
/* Gradient highlight for a phrase in a dark hero heading */
.hl-grad { background: linear-gradient(90deg, #7FE3D9 0%, #A9E8B8 45%, #FFD789 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Softer, deeper hero glow and a slow drifting aurora */
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 227, 217, .22), transparent 65%); pointer-events: none; animation: hl-drift 18s ease-in-out infinite alternate; }
@keyframes hl-drift { to { transform: translate(-120px, 90px) scale(1.15); } }
.hero-visual svg { filter: drop-shadow(0 20px 40px rgba(5, 10, 40, .35)); }
.hero-visual .hv-link:hover .hv-node, .hero-visual .hv-link:focus-visible .hv-node { filter: drop-shadow(0 0 10px currentColor); }
/* Cards: a coloured top edge and a smoother lift */
.card-link { position: relative; overflow: hidden; }
.card-link::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--d, var(--teal)), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card-link:hover::after, .card-link:focus-visible::after { transform: scaleX(1); }
/* Section heads: eyebrow rule in two colours */
.eyebrow::before { background: linear-gradient(90deg, var(--teal), var(--amber)); }
.hero .eyebrow::before, .page-hero .eyebrow::before { background: linear-gradient(90deg, #7FE3D9, #FFD789); }
/* Call-to-action band: a quiet light sweep */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40% auto -40% -30%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent); transform: skewX(-18deg); animation: hl-sweep 9s ease-in-out infinite; pointer-events: none; }
.cta-band > * { position: relative; }
@keyframes hl-sweep { 0%, 60% { left: -40%; } 100% { left: 130%; } }
/* Footer: a thin gradient line on top */
.site-footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, #0A9E92, #3B4FA8, #FFB938) 1; }
@media (prefers-reduced-motion: reduce) { .hero::after, .cta-band::before { animation: none; } .card-link::after { transition: none; } }
