/* Guess the decade. Uses the site tokens when present; the fallbacks are the same A11 values. */
.gq {
  --gq-wall: var(--wall, #EDF1F4);
  --gq-card: var(--card, #FFFFFF);
  --gq-blanket: var(--blanket, #1F3559);
  --gq-ink: var(--ink, #17202C);
  --gq-slate: var(--slate, #55657A);
  --gq-rule: var(--rule, #C9D3DD);
  --gq-tape: var(--tape, #FFC629);
  --gq-save: #1F8A5B;
  --gq-walk: #C9342B;
  color: var(--gq-ink);
  margin: 2rem 0;
}
.gq [hidden] { display: none !important; }

.gq-bar {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--gq-blanket);
  padding-bottom: .5rem; margin-bottom: 1.25rem;
}
.gq-progress, .gq-score { margin: 0; font-weight: 650; }
.gq-score { color: var(--gq-slate); }

.gq-play { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .gq-play { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .gq-pic { order: 2; }
}

.gq-pic {
  margin: 0; background: var(--gq-card);
  border: 2px solid var(--gq-blanket); border-radius: 6px; padding: 1rem;
}
.gq-pic img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 220; }
.gq-pic figcaption { margin-top: .75rem; color: var(--gq-slate); font-size: .95rem; }

.gq-title {
  margin: 0 0 .35rem; color: var(--gq-blanket);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); line-height: 1.12;
  font-stretch: 72%; font-weight: 750;
}
.gq-title:focus { outline: none; }
.gq-hint { margin: 0 0 1rem; color: var(--gq-slate); max-width: 34rem; }

.gq-choices { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 26rem) { .gq-choices { grid-template-columns: minmax(0, 1fr); } }

.gq-choice {
  appearance: none; font: inherit; color: var(--gq-ink); text-align: left; cursor: pointer;
  background: var(--gq-card); border: 2px solid var(--gq-blanket); border-radius: 6px;
  min-height: 3.5rem; padding: .7rem .9rem;
  display: flex; flex-direction: column; justify-content: center; gap: .2rem;
}
.gq-choice .gq-range { font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.gq-choice:hover { background: #F6F8FA; }
.gq-choice:focus-visible, .gq-next:focus-visible, .gq-again:focus-visible {
  outline: 3px solid var(--gq-tape); outline-offset: 2px;
}
.gq-choice[aria-disabled="true"] { cursor: default; }
.gq-choice[aria-disabled="true"]:hover { background: var(--gq-card); }
.gq-choice.is-dim { opacity: .5; }
.gq-choice.is-right, .gq-choice.is-right:hover { background: #E4F3EC; border-color: var(--gq-save); }
.gq-choice.is-wrong, .gq-choice.is-wrong:hover { background: #FBE9E7; border-color: var(--gq-walk); }

.gq-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 650; }
.gq-badge svg, .gq-mark svg { flex: none; width: 1rem; height: 1rem; display: block; }
.is-right .gq-badge { color: #146646; }
.is-wrong .gq-badge { color: #A12A22; }

.gq-answer {
  margin-top: 1rem; background: var(--gq-card);
  border-left: 6px solid var(--gq-tape); padding: .9rem 1rem;
}
.gq-answer p { margin: 0 0 .5rem; max-width: 36rem; }
.gq-answer p:last-child { margin-bottom: 0; }
.gq-answer .gq-src { color: var(--gq-slate); font-size: .9rem; }
.gq-answer a, .gq-result a { color: var(--gq-blanket); font-weight: 650; }

.gq-next, .gq-again {
  appearance: none; font: inherit; font-weight: 700; color: var(--gq-ink); cursor: pointer;
  background: var(--gq-tape); border: 2px solid var(--gq-ink); border-radius: 6px;
  box-shadow: 3px 3px 0 var(--gq-ink);
  min-height: 3.25rem; padding: .7rem 1.4rem; margin-top: 1.1rem;
}
.gq-next:active, .gq-again:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gq-ink); }

.gq-result { background: var(--gq-card); border: 2px solid var(--gq-blanket); border-radius: 6px; padding: 1.25rem; }
.gq-result h2 {
  margin: 0 0 .35rem; color: var(--gq-blanket);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); line-height: 1.1; font-stretch: 72%; font-weight: 750;
}
.gq-result h2:focus { outline: none; }
.gq-result > p { margin: 0 0 1rem; color: var(--gq-slate); max-width: 38rem; }
.gq-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gq-rule); }
.gq-list li {
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .15rem .6rem;
  padding: .65rem 0; border-bottom: 1px solid var(--gq-rule);
}
.gq-mark { padding-top: .25rem; }
.gq-list .gq-what { font-weight: 650; }
.gq-list .gq-meta { grid-column: 2; color: var(--gq-slate); font-size: .95rem; }
.gq-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.gq-actions a { margin-top: 1.1rem; }

.gq-streak { margin: 1rem 0 0; color: var(--gq-slate); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { .gq-next:active, .gq-again:active { transform: none; } }
