/* /check/ page. Tokens, buttons and marks come from ridgeseek.css; the nav,
   footer, .cta, .ctas and .note from site.css. */

/* The display rules below would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

.check { display: grid; gap: 20px; padding: 40px var(--gutter) 48px; border-block-end: 1px solid var(--rule-strong); }
.check h1 { font-size: 44px; line-height: 0.95; letter-spacing: -0.04em; max-inline-size: 14ch; text-wrap: balance; }
.check__lede { font-size: 17px; line-height: 1.4; max-inline-size: 34em; text-wrap: pretty; }

.check__form { display: grid; gap: 10px; max-inline-size: 40rem; padding-block-start: 8px; }
.check__row { display: grid; gap: 10px; }
.check__form input {
  min-inline-size: 0;
  min-block-size: 52px;
  padding-inline: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--bg-inset);
  color: var(--fg);
  font: 400 16px/1.2 var(--font-mono);
}
.check__form input::placeholder { color: var(--fg-muted); }
.check__form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.check__form .btn { justify-content: center; min-block-size: 52px; padding-inline: 24px; font-size: 17px; }
.check__form .btn:disabled { opacity: 0.55; cursor: progress; }

.check__status {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  max-inline-size: 40rem;
  padding: 16px;
  border: 1px solid var(--rule-strong);
  background: var(--bg-inset);
}
.check__status--note { grid-template-columns: minmax(0, 1fr); }
.check__status .mark { align-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .check__status .mark--running { animation: check-sweep 1.2s steps(2, jump-none) infinite; }
}
@keyframes check-sweep { to { scale: -1 1; } }

.result { display: grid; gap: 32px; padding: 40px var(--gutter) 56px; border-block-end: 1px solid var(--rule-strong); }
.result__head { display: grid; gap: 10px; align-content: start; }
.result__head h2 { font-size: 34px; line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.result__meta { font-size: 12px; }
.result__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.result__share a { font-size: 12px; overflow-wrap: anywhere; }
.result .chip { min-block-size: 32px; padding-inline: 14px; font: 400 12px/1 var(--font-mono); }
.result__body { display: grid; gap: 36px; min-inline-size: 0; }
.result__block { display: grid; gap: 12px; min-inline-size: 0; }

.markets { border-block-start: 1px solid var(--rule); }
.markets li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  padding-block: 12px;
  border-block-end: 1px solid var(--rule);
}
.markets .mark { align-self: center; }
.markets__name { display: grid; gap: 2px; min-inline-size: 0; }
.markets__name .mono { font-size: 12px; overflow-wrap: anywhere; }
.markets__state { font-size: 12px; text-align: end; }

.issues { border-block-start: 1px solid var(--rule); }
.issues li { display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding-block: 16px; border-block-end: 1px solid var(--rule); }
.issues li > :not(.issues__rank) { grid-column: 2; }
.issues li:not(:has(.issues__rank)) > * { grid-column: 1 / -1; }
.issues__rank { color: var(--fg-muted); font-size: 12px; line-height: 1.6; }
.issues__text { font-size: 17px; line-height: 1.35; text-wrap: pretty; }
.evidence { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
a.evidence { color: var(--fg-muted); }
a.evidence:active { color: var(--accent); }
.more { font-size: 15px; }

.nav__links [aria-current="page"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  a.evidence:hover { color: var(--accent); }
}

@media (width > 560px) {
  .check__row { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (width > 760px) {
  .check { padding-block: 72px 64px; }
  .check h1 { font-size: 80px; line-height: 0.9; letter-spacing: -0.05em; }
  .result { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; padding-block: 72px; }
  .result__head { position: sticky; inset-block-start: 96px; }
  .result__head h2 { font-size: 44px; }
}
