/* Analyse screens (analysis, scoring, site audit, content). Tokens from core/css/tokens.css only:
   the five colours and their mixes, no other hue. */
.an-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-end: var(--s-5); }
.an-tabs a { padding: 6px var(--s-3); border-radius: var(--r-pill); font-size: var(--t-13); color: var(--ink-2);
  border: 1px solid var(--line); transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out); }
.an-tabs a[aria-current="page"] { background: var(--abyss); color: var(--ice); border-color: var(--abyss); }
@media (hover: hover) { .an-tabs a:not([aria-current]):hover { background: var(--surface-2); } }
.an-cycle { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: var(--t-13); color: var(--ink-3); }
.an-cycle select { min-height: 32px; }

.bandbar { position: relative; display: inline-block; inline-size: 120px; block-size: 10px; border-radius: var(--r-pill);
  background: var(--surface-3); vertical-align: middle; }
.bandbar .band { position: absolute; inset-block: 0; border-radius: var(--r-pill); background: color-mix(in oklab, var(--azure) 35%, transparent); }
.bandbar .mark { position: absolute; inset-block: -3px; inline-size: 3px; margin-inline-start: -1px; border-radius: 2px; background: var(--abyss); }
.card.night .bandbar { background: color-mix(in oklab, var(--ice) 18%, transparent); }
.card.night .bandbar .band { background: color-mix(in oklab, var(--ice) 45%, transparent); }
.card.night .bandbar .mark { background: var(--ice); }

.sharebar { display: inline-block; inline-size: 100%; min-inline-size: 80px; block-size: 8px; border-radius: var(--r-pill);
  background: var(--surface-3); overflow: hidden; vertical-align: middle; }
.sharebar > span { display: block; block-size: 100%; background: var(--navy); border-radius: inherit;
  transform-origin: left center; animation: an-grow var(--d-enter) var(--ease-out) both; }
[dir="rtl"] .sharebar > span { transform-origin: right center; }
.sharebar.us > span { background: var(--azure); }
@keyframes an-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.trend { inline-size: 100%; block-size: auto; overflow: visible; }
.trend .grid { stroke: var(--line); stroke-width: 1; }
.trend .band { fill: color-mix(in oklab, var(--azure) 18%, transparent); }
.trend .line { fill: none; stroke: var(--azure); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: an-draw 900ms var(--ease-out) 120ms forwards; }
.trend .pt circle { fill: var(--ice); stroke: var(--azure); stroke-width: 2; }
.trend .pt.base circle { fill: var(--abyss); stroke: var(--abyss); }
.trend text { font-size: 0.75rem; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.trend text.x { fill: var(--ink-3); font-size: 0.6875rem; }
@keyframes an-draw { to { stroke-dashoffset: 0; } }

.score-hero { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.score-hero .big { font-size: var(--t-61); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--on-night); font-variant-numeric: tabular-nums; }
.score-hero .big small { font-size: var(--t-20); color: var(--on-night-3); font-weight: 400; }
.score-hero .meta { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-13); color: var(--on-night-2); }
.score-hero .meta .badge.outline { color: var(--on-night); border-color: color-mix(in oklab, var(--ice) 40%, transparent); }

.verdicts { display: flex; gap: 2px; block-size: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); min-inline-size: 120px; }
.verdicts span { display: block; }
.verdicts .v-knows { background: var(--azure); } .verdicts .v-partial { background: color-mix(in srgb, var(--azure) 45%, transparent); }
.verdicts .v-confuses { background: var(--abyss); } .verdicts .v-unknown { background: color-mix(in srgb, var(--navy) 25%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-12); color: var(--ink-3); }
.legend i { display: inline-block; inline-size: 10px; block-size: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: -1px; }

.quote { border-inline-start: 2px solid var(--line-strong); padding-inline-start: var(--s-3); color: var(--ink-2); font-size: var(--t-13); }
.claim-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); font-size: var(--t-13); }
.claim-pair .said { color: var(--royal); } .claim-pair .true { color: var(--ink); }
.claim-pair .lbl { display: block; font-size: var(--t-12); color: var(--ink-3); }
.tick { display: inline-flex; align-items: center; justify-content: center; inline-size: 20px; block-size: 20px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.tick.yes { background: var(--navy); color: var(--ice); } .tick.no { background: var(--surface-3); color: var(--royal); border: 1px solid var(--royal); }
/* inline-block, not inline-flex: a long domain wraps inside the chip instead of widening the page (C5) */
.phrase { display: inline-block; max-width: 100%; overflow-wrap: break-word; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--t-13); margin: 0 6px 6px 0; }
.phrase b { margin-inline-start: 6px; font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 500; }
.answer-text { white-space: pre-wrap; font-size: var(--t-14); line-height: 1.6; background: var(--surface-2); border-radius: var(--r-2); padding: var(--s-4); }
.dial { --v: 0; inline-size: 132px; block-size: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--azure) calc(var(--v) * 1%), color-mix(in oklab, var(--ice) 25%, transparent) 0); }
.dial > span { inline-size: 104px; block-size: 104px; border-radius: 50%; background: var(--night); display: grid; place-items: center;
  font-size: var(--t-39); font-weight: 600; color: var(--on-night); font-variant-numeric: tabular-nums; }
.an-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .score-hero, .an-split, .claim-pair { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sharebar > span, .trend .line { animation: none; stroke-dashoffset: 0; } }
