/* Quiet surfaces: the colour and reflection arrive with interaction. */
.primary-link, .plan-button, .closing-button {
  background: #202225;
  border-color: #363a40;
  box-shadow: inset 0 1px 0 #ffffff14;
}
.closing-button { background: #fff; border-color: #fff; }
.primary-link:focus-visible, .plan-button:focus-visible, .closing-button:focus-visible {
  color: #fff;
  background: #1647ff;
  outline: 2px solid #1647ff;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .primary-link:hover, .plan-button:hover, .closing-button:hover {
    color: #fff;
    background: #1647ff;
    border-color: #1647ff;
    box-shadow: inset 0 1px 0 #ffffff20;
  }
}

.closing-button { position: relative; isolation: isolate; overflow: hidden; color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease, scale 150ms ease; }
.closing-button::after { content: ''; position: absolute; inset: -1px; pointer-events: none; background: linear-gradient(110deg, transparent 28%, #08a9e72e 42%, #ffffff5c 49%, #ffd35b33 55%, transparent 70%); transform: translateX(-110%); }
.closing-button:active { scale: .96; }
@media (hover: hover) and (pointer: fine) { .closing-button:hover::after { transform: translateX(110%); transition: transform 650ms cubic-bezier(.2, 0, .2, 1); } }
.closing-heading { position: relative; isolation: isolate; overflow: hidden; }
.closing-heading > * { position: relative; z-index: 1; }
.closing-heading::after { content: ''; position: absolute; inset: 0 -100% 0 0; background: linear-gradient(90deg, #1647ff 0%, #1647ff 28%, #08a9e7 36%, #39cabe 40%, #ffd35b 44%, #ff7b30 47%, #ff3c18 50%, #1647ff 64%, #1647ff 78%, #08a9e7 86%, #39cabe 90%, #ffd35b 94%, #ff7b30 97%, #ff3c18 100%); pointer-events: none; }
.closing-spectrum-pass::after { animation: closing-traverse 2400ms cubic-bezier(.2, 0, .2, 1) forwards; }
@keyframes closing-traverse { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Connector endpoints use the actual column centres, including the grid gap. */
.study-source::after { left: 50%; transform: translateX(-50%); width: 1px; background: #aeb8c4; }
.study-split { column-gap: 20px; }
.study-split::before { left: calc(25% - 5px); right: calc(25% - 5px); background: #aeb8c4; opacity: 1; }
.study-split > div { background: none; box-shadow: none; padding-top: 28px; }
.study-split > div::before { left: 50%; transform: translateX(-50%); background: #aeb8c4; width: 1px; height: 18px; }
.study-model { background: #202326; box-shadow: none; }

.report-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.report-result { min-width: 0; padding: 26px 24px 30px; }
.report-result + .report-result { border-left: 1px solid var(--rule); }
.report-result > .label { margin: 0 0 24px; color: var(--ink); }
.report-result > .label span { color: #1647ff; margin-right: 12px; }
.result-graphic { height: 264px; margin-bottom: 28px; background: #f0f2f2; border: 1px solid #dde2e4; overflow: hidden; }
.report-result h3 { font-size: clamp(23px, 2.1vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; }
.report-result > p:not(.label) { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.report-result > p.result-note { font-size: 12px; margin-top: 18px; }
.result-score { padding: 32px 22px 20px; background: #202326; color: #fff; border-color: #202326; }
.result-score-value { font-size: 90px; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.result-score-value span { font-size: 20px; letter-spacing: -.03em; color: #bdc5cc; margin-left: 8px; }
.result-meter { position: relative; height: 4px; margin-top: 25px; background: var(--spectrum); }
.result-meter i { position: absolute; left: 57.7778%; width: 2px; height: 14px; top: -5px; background: #fff; box-shadow: 0 0 0 3px #202326; }
.result-scale, .result-context { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #bfc7ce; }
.result-scale { margin-top: 12px; }
.result-context { border-top: 1px solid #ffffff26; margin-top: 23px; padding-top: 12px; }
.result-map { padding: 10px 10px 15px; background: #edf1f3; }
.result-map svg { display: block; width: 100%; height: 208px; font-family: inherit; }
.result-map-key { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 10px; color: #59636c; }
.result-map-key i { width: 50px; height: 3px; background: var(--spectrum); }
.result-revision { padding: 18px 12px; }
.revision-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.revision-example > span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.revision-example:last-child > span { color: #1647ff; }
.revision-poster { position: relative; height: 170px; background: #e1b286; padding: 12px; overflow: hidden; color: #252820; }
.revision-poster > b { font-size: 19px; letter-spacing: -.06em; }
.revision-poster > p { position: absolute; top: 58px; left: 10px; font-size: 10px; line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.revision-badge { position: absolute; top: 40px; right: 9px; font-size: 7px; font-style: normal; border: 1px solid #252820; border-radius: 50%; padding: 5px; }
.revision-can { position: absolute; bottom: 12px; right: 12px; width: 25px; height: 48px; background: linear-gradient(90deg,#a5b5a4,#e1e7cb,#aab8a6); border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-style: normal; font-weight: 600; }
.revision-after .revision-can { height: 85px; width: 44px; font-size: 15px; }
.revision-after > p { top: 40px; }
.revision-caption { font-size: 10px; text-align: center; color: var(--muted); margin: 15px 0 0; }
@media (max-width: 1100px) and (min-width: 761px) { .report-result { padding-inline: 14px; } .result-score { padding-inline: 16px; } .revision-poster { padding-inline: 7px; } }
@media (max-width: 760px) {
  .report-overview { grid-template-columns: 1fr; }
  .report-result { padding: 26px 0; }
  .report-result + .report-result { border-left: 0; border-top: 1px solid var(--rule); }
  .result-graphic { height: 264px; }
  .revision-poster { height: 170px; }
}

@media (forced-colors: active) {
  .closing-heading::after, .closing-button::after { display: none; }
  .result-score, .closing-button { background: Canvas; color: CanvasText; border-color: CanvasText; }
}

/* Controls float on the film; only the spectrum timeline touches its edge. */
.player-ready .player-controls { position: absolute; inset: auto 0 0; z-index: 2; height: 86px; min-height: 0; padding: 0 18px 24px; gap: 8px; border: 0; background: linear-gradient(transparent, #00000065); pointer-events: none; }
.player-controls button { pointer-events: auto; background: #15191ed9; color: #fff; border: 1px solid #ffffff50; border-radius: 50%; }
.player-controls button:hover, .player-controls button[aria-pressed='true'] { background: #1647ff; color: #fff; }
.player-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.player-controls .player-captions { margin-left: auto; }
.player-time { display: none; }
.player-seek { position: absolute; left: 0; bottom: -12px; margin: 0; width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: auto; z-index: 3; border: 0; border-radius: 0; }
.player-seek::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, transparent var(--played, 0%), #15191eb3 var(--played, 0%)), var(--spectrum); }
.player-seek::-moz-range-track { height: 4px; background: linear-gradient(to right, transparent var(--played, 0%), #15191eb3 var(--played, 0%)), var(--spectrum); }
.player-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 3px; height: 12px; margin-top: -4px; border: 0; border-radius: 0; background: #fff; }
.player-seek::-moz-range-thumb { width: 3px; height: 12px; border: 0; border-radius: 0; background: #fff; }
.player-seek:focus-visible { outline: 2px solid #1647ff; outline-offset: -2px; }
