/* Praisin Store Trust Check. Uses only the site's tokens (tokens.css) and riso variables
   from site.css (--x-amber, --x-ink-band, --x-paper-riso). Dark first, big type, nothing
   under 16px. Loaded by the trust check page only. */

.tc-hero h1 { max-width: 16ch; }
.tc-form { max-width: 820px; margin-top: 28px; }
.tc-label { display: block; font-weight: 700; margin: 0 0 8px; }
.tc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.tc-input {
  flex: 1 1 280px; min-width: 0; min-height: 60px; padding: 0 22px; font: inherit; font-size: 20px;
  color: var(--pr-text); background: var(--pr-surface); border: 2px solid var(--pr-text); border-radius: var(--pr-radius-pill, 999px);
  box-shadow: 3px 3px 0 var(--x-amber, var(--pr-accent));
}
.tc-input::placeholder { color: var(--pr-text-muted); opacity: 1; }
.tc-input:focus-visible { outline: 3px solid var(--pr-focus); outline-offset: 3px; }
.tc-go { min-height: 60px; flex: 0 0 auto; }
@media (max-width: 520px) { .tc-go { width: 100%; } }
.tc-more { margin: 18px 0 0; }
.tc-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tc-more[open] summary { margin-bottom: 10px; }
.tc-more .tc-input { width: 100%; max-width: 560px; }
.tc-turnstile { margin: 18px 0 0; min-height: 65px; }
.tc-fine { color: var(--pr-text-muted); font-size: 17px; margin: 18px 0 0; max-width: 58ch; }
@media (min-width: 720px) { .tc-fine { font-size: 18px; } }
.tc-error { margin: 14px 0 0; font-weight: 700; color: var(--pr-danger); }

/* progress */
.tc-out { padding-top: 24px; }
.tc-progress { display: grid; gap: 24px; margin-bottom: 8px; }
.tc-prog { background: var(--pr-surface); border: 2px solid var(--pr-border); border-radius: var(--pr-radius-lg, 18px); padding: 22px 24px; }
.tc-prog-title { font-family: var(--pr-font-display); font-weight: 800; font-size: 1.3em; margin: 0 0 12px; overflow-wrap: anywhere; }
.tc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tc-step { display: flex; gap: 12px; align-items: flex-start; color: var(--pr-text-muted); }
.tc-step[data-state="doing"], .tc-step[data-state="done"] { color: var(--pr-text); }
.tc-dot { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .3em; border-radius: 50%; border: 2px solid currentColor; }
.tc-step[data-state="doing"] .tc-dot { border-color: var(--x-amber, var(--pr-accent)); border-right-color: transparent; animation: tc-spin 1s linear infinite; }
.tc-step[data-state="done"] .tc-dot { background: var(--pr-success); border-color: var(--pr-success); }
.tc-step[data-state="fail"] .tc-dot { border-color: var(--pr-danger); }
@keyframes tc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tc-step[data-state="doing"] .tc-dot { animation: none; border-right-color: var(--x-amber, var(--pr-accent)); } }

/* result head: the dial */
.tc-result { display: grid; gap: 8px; margin: 0 0 56px; }
.tc-head { display: grid; gap: 24px; align-items: center; background: var(--pr-surface); border: 2px solid var(--pr-text); border-radius: var(--pr-radius-xl, 28px); padding: 28px 24px; box-shadow: 6px 5px 0 var(--x-amber, var(--pr-accent)); }
@media (min-width: 760px) { .tc-head { grid-template-columns: auto 1fr; gap: 40px; padding: 36px 40px; } }
.tc-dial { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.tc-dial--small { width: 150px; height: 150px; }
.tc-dial-svg { width: 100%; height: 100%; display: block; }
.tc-dial-track { fill: none; stroke: var(--pr-border); stroke-width: 12; }
.tc-dial-ink { fill: none; stroke: var(--x-amber, var(--pr-accent)); stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.tc-dial-ink.tc-band-strong { stroke: var(--pr-success); }
@media (prefers-reduced-motion: reduce) { .tc-dial-ink { transition: none; } }
.tc-dial-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 34%; font-family: var(--pr-font-display); font-weight: 800; }
.tc-dial-value { font-size: 72px; line-height: 1; letter-spacing: -0.03em; }
.tc-dial--small .tc-dial-value { font-size: 48px; }
.tc-dial-of { font-size: 20px; color: var(--pr-text-muted); margin-left: 2px; }
.tc-dial--small .tc-dial-of { font-size: 16px; }
.tc-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); margin: 0 0 8px; overflow-wrap: anywhere; }
.tc-band { font-family: var(--pr-font-display); font-weight: 800; font-size: 1.35em; margin: 0 0 4px; }
.tc-band-sub { margin: 0 0 12px; }
.tc-meta { color: var(--pr-text-muted); font-size: 17px; margin: 0 0 4px; }
@media (min-width: 720px) { .tc-meta { font-size: 18px; } }
.tc-note { background: var(--pr-surface); border-left: 5px solid var(--x-amber, var(--pr-accent)); padding: 14px 18px; border-radius: 6px; margin: 16px 0; }

/* blocks */
.tc-block { margin-top: 48px; }
.tc-block > h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem); margin-bottom: 18px; }
.tc-block > .muted { margin-top: -8px; }

/* fix cards */
.tc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.tc-card { background: var(--pr-surface); border: 2px solid var(--pr-border); border-radius: var(--pr-radius-lg, 18px); padding: 22px 20px 24px; max-width: none; }
@media (min-width: 720px) { .tc-card { padding: 28px 32px 30px; } }
.tc-card[data-status="fail"] { border-color: var(--pr-text); }
.tc-card-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-bottom: 14px; }
.tc-card-head h3 { margin: 0; }
.tc-num { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--pr-font-display); font-weight: 800; font-size: 20px; background: var(--x-amber, var(--pr-accent)); color: var(--x-ink-text, var(--pr-on-accent)); align-self: start; }
.tc-chip, .tc-gain { font-size: 16px; font-weight: 700; }
.tc-card-head .tc-chip { justify-self: start; }
.tc-chip { display: inline-block; padding: 2px 12px; border-radius: var(--pr-radius-pill, 999px); border: 1px solid currentColor; }
.tc-chip--partial { color: var(--pr-text); }
.tc-chip--fail { color: var(--pr-text); background: color-mix(in srgb, var(--x-amber, var(--pr-accent)) 22%, transparent); }
.tc-gain { grid-column: 2; color: var(--pr-text-muted); }
@media (min-width: 720px) { .tc-card-head { grid-template-columns: auto 1fr auto; } .tc-num { grid-row: auto; } .tc-gain { grid-column: auto; } .tc-card-head .tc-chip { grid-column: 3; grid-row: 1; justify-self: end; } .tc-gain { grid-column: 2 / 4; } }
.tc-card-body { display: grid; }
.tc-k { font-weight: 700; margin: 14px 0 2px; font-size: 17px; color: var(--pr-text-muted); }
@media (min-width: 720px) { .tc-k { font-size: 18px; } }
.tc-v { margin: 0; }
.tc-src { margin: 6px 0 0; font-size: 16px; color: var(--pr-text-muted); }
.tc-src a { color: var(--pr-link); }
.tc-praisin { margin-top: 16px; padding: 4px 0 4px 16px; border-left: 4px solid var(--x-amber, var(--pr-accent)); }
.tc-praisin .tc-k { margin-top: 6px; color: var(--pr-text); }
.tc-cta { margin: 18px 0 0; }
.tc-sub { margin: 10px 0 0; padding-left: 1.2em; color: var(--pr-text-muted); }

/* tips */
.tc-tips { display: grid; gap: 18px; }
@media (min-width: 960px) { .tc-tips { grid-template-columns: repeat(2, 1fr); } }
.tc-tip { background: var(--pr-surface); border-radius: var(--pr-radius-lg, 18px); border: 2px dashed var(--pr-border); padding: 22px 24px; }
.tc-tip h3 { margin-bottom: .4em; }
.tc-tip p { margin: 0 0 8px; }
.tc-tip-praisin { padding-left: 14px; border-left: 4px solid var(--x-amber, var(--pr-accent)); }

/* already working and not checked */
.tc-ok, .tc-unknown { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .tc-ok { grid-template-columns: repeat(2, 1fr); gap: 16px 32px; } }
.tc-ok li { display: flex; gap: 12px; align-items: flex-start; max-width: none; }
.tc-tick { flex: 0 0 26px; height: 26px; margin-top: .15em; border-radius: 50%; background: var(--pr-success); position: relative; }
.tc-tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 13px; border: solid var(--pr-bg); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tc-unknown li { color: var(--pr-text-muted); max-width: 70ch; }
.tc-unknown strong { color: var(--pr-text); }

/* re-check badge and actions */
.tc-recheck { display: grid; gap: 24px; align-items: center; background: var(--x-ink-band, var(--pr-band)); color: var(--x-paper-riso, var(--pr-on-band)); border-radius: var(--pr-radius-xl, 28px); padding: 28px 24px; }
.tc-recheck h2, .tc-recheck p { color: inherit; }
.tc-recheck .btn--line { border-color: currentColor; color: inherit; }
.tc-recheck .btn--main { background: var(--x-paper-riso, var(--pr-bg)); color: var(--x-ink-band, var(--pr-text)); }
@media (min-width: 760px) { .tc-recheck { grid-template-columns: auto 1fr; padding: 32px 40px; } }
.tc-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--x-amber, var(--pr-accent)); color: var(--x-ink-text, var(--pr-on-accent)); box-shadow: 4px 3px 0 var(--x-paper-riso, var(--pr-bg)); text-align: center; margin: 0 auto; }
.tc-badge-score { font-family: var(--pr-font-display); font-weight: 800; font-size: 56px; line-height: 1; }
.tc-badge-label { font-weight: 700; font-size: 16px; line-height: 1.2; max-width: 6.5em; margin-top: 6px; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
@media (max-width: 480px) { .tc-actions .btn { width: 100%; } }

/* compare */
.tc-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--pr-surface); border: 2px solid var(--pr-text); border-radius: var(--pr-radius-xl, 28px); padding: 24px 16px; box-shadow: 6px 5px 0 var(--x-amber, var(--pr-accent)); }
.tc-vs-col { text-align: center; min-width: 0; }
.tc-vs-name { font-weight: 700; margin: 8px 0 0; overflow-wrap: anywhere; }
.tc-vs .tc-band { font-size: 1.05em; }
.tc-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 17px; }
@media (min-width: 720px) { .tc-table { font-size: 18px; } }
.tc-table th, .tc-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--pr-border); vertical-align: top; }
.tc-table thead th { font-family: var(--pr-font-display); overflow-wrap: anywhere; }
.tc-cell--pass { color: var(--pr-success); font-weight: 700; }
.tc-cell--fail { font-weight: 700; }
.tc-cell--unknown { color: var(--pr-text-muted); }

/* keep an eye */
.tc-watch { background: var(--pr-surface); border: 2px solid var(--pr-border); border-radius: var(--pr-radius-lg, 18px); padding: 24px; max-width: 760px; }
.tc-watch .tc-input { width: 100%; margin-bottom: 14px; }
.tc-check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.tc-check input { flex: 0 0 24px; width: 24px; height: 24px; margin-top: .2em; accent-color: var(--x-amber, var(--pr-accent)); }
.tc-watch-msg { margin: 10px 0 0; font-weight: 700; }
.tc-watch-done { font-weight: 700; }

/* how it scores */
.tc-weights { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 18px; margin: 8px 0 24px; }
.tc-weights th, .tc-weights td { text-align: left; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.tc-weights .tc-w, .tc-weights th:last-child { text-align: right; font-weight: 800; font-family: var(--pr-font-display); white-space: nowrap; }
.tc-weights tfoot td { border-bottom: 0; font-weight: 800; }
.tc-sources { padding-left: 1.2em; display: grid; gap: 8px; }
.tc-sources a { color: var(--pr-link); overflow-wrap: anywhere; }

.tc-results [tabindex="-1"]:focus { outline: none; }
@media (min-width: 1100px) { .tc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.tc-progress[hidden], .tc-prog[hidden] { display: none; }
