:root {
  color-scheme: dark;
  --page: #000000;
  --ink: #f5f5f7;
  --soft: rgba(235, 235, 245, 0.76);
  --mute: rgba(235, 235, 245, 0.56);
  --glass: rgba(22, 22, 26, 0.62);
  --solid: #1c1c1f;
  --hairline: rgba(255, 255, 255, 0.14);
  --sheen: rgba(255, 255, 255, 0.2);
  --fill: rgba(255, 255, 255, 0.1);
  --fill-strong: rgba(255, 255, 255, 0.18);
  --primary: #f5f5f7;
  --on-primary: #000000;
  --true: #30d158;
  --misleading: #ff9f0a;
  --false: #ff453a;
  --unverified: #a1a1a6;
  --seal-ink: #08080a;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);
  --focus: #ffffff;
}
@media (prefers-color-scheme: light) {
  :root {
  color-scheme: light;
  --page: #f5f5f7;
  --ink: #1d1d1f;
  --soft: rgba(29, 29, 31, 0.8);
  --mute: rgba(29, 29, 31, 0.58);
  --glass: rgba(255, 255, 255, 0.72);
  --solid: #ffffff;
  --hairline: rgba(0, 0, 0, 0.1);
  --sheen: rgba(255, 255, 255, 0.9);
  --fill: rgba(0, 0, 0, 0.05);
  --fill-strong: rgba(0, 0, 0, 0.1);
  --primary: #1d1d1f;
  --on-primary: #ffffff;
  --true: #1f9d4c;
  --misleading: #c96a00;
  --false: #d92d20;
  --unverified: #76767b;
  --seal-ink: #ffffff;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  --focus: #0a66d8;
}
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--sheen), inset 0 0 0 1px var(--hairline), var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

[data-label="true"] { --signal: var(--true); }
[data-label="misleading"] { --signal: var(--misleading); }
[data-label="false"] { --signal: var(--false); }
[data-label="unverified"] { --signal: var(--unverified); }

.stamp {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
}
.seal {
  width: 18px; height: 18px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--signal, var(--unverified));
  color: var(--seal-ink);
}
.seal svg { display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.stamp[data-label="checking"] { color: var(--mute); font-weight: 500; }
.stamp[data-label="checking"] .seal {
  background: none;
  border: 2px solid var(--fill-strong); border-top-color: var(--ink);
  animation: ii-spin 0.9s linear infinite;
}
.stamp.landed .seal { animation: ii-land 460ms cubic-bezier(0.2, 0.9, 0.25, 1.15); }

.why { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
.sources { list-style: none; margin: 12px 0 0; padding: 11px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 9px; }
.sources a {
  color: var(--ink); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--mute); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.sources a:hover { text-decoration-color: currentColor; }
.publisher { display: block; margin-top: 1px; color: var(--mute); font-size: 0.885em; }
.method { margin: 10px 0 0; color: var(--mute); font-size: 0.885em; }
/* how to check a claim like this yourself: a habit to learn, set apart from the verdict */
.tip { margin: 10px 0 0; padding: 9px 11px 10px; border-radius: 12px; background: color-mix(in srgb, var(--true) 10%, var(--fill)); font-size: 0.93em; line-height: 1.42; overflow-wrap: anywhere; }
.tip strong { display: block; margin-bottom: 1px; font-weight: 650; }
/* how a false or misleading claim fools people: the lesson, in the verdict's own colour */
.trick { margin: 10px 0 0; padding: 9px 11px 10px; border-radius: 12px; background: color-mix(in srgb, var(--signal, var(--misleading)) 9%, var(--fill)); font-size: 0.93em; line-height: 1.42; overflow-wrap: anywhere; }
.trick p { margin: 0; }
.trick p + p { margin-top: 5px; }
.trick strong { font-weight: 650; }
/* a passage read on the source page itself, word for word */
.quote { display: block; margin-top: 4px; padding-left: 9px; border-left: 2px solid var(--hairline); color: var(--soft); font-size: 0.885em; font-style: italic; quotes: "“" "”"; }

@keyframes ii-spin { to { transform: rotate(360deg); } }
@keyframes ii-land {
  0% { transform: scale(0.3); box-shadow: 0 0 0 0 var(--signal); }
  60% { transform: scale(1.08); }
  100% { transform: none; box-shadow: 0 0 0 9px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp.landed .seal { animation: none; }
  .stamp[data-label="checking"] .seal { animation: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page); color: var(--ink);
  font: 400 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.soft { color: var(--soft); }
.mute { color: var(--mute); }
.tabular { font-variant-numeric: tabular-nums; }

.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background-color 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { opacity: 0.86; }
.btn-quiet { background: var(--fill); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: var(--fill-strong); }
.btn:disabled { background: var(--fill); color: var(--mute); cursor: default; transform: none; }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--fill);
  color: var(--soft); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--unverified); }
.chip[data-state="live"]::before { background: var(--true); }
.chip[data-state="demo"]::before { background: var(--misleading); }
.chip[data-state="off"]::before { background: var(--false); }

.field {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--solid);
  font-size: 15px;
}
.field::placeholder { color: var(--mute); }
textarea.field { resize: vertical; line-height: 1.45; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* an on/off switch drawn over a real checkbox */
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-strong); transition: background-color 160ms ease; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 160ms ease; }
.switch input:checked + span { background: var(--true); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

/* settings rows grouped on one surface, separated by hairlines */
.group { border-radius: 18px; background: var(--solid); overflow: hidden; }
.group > * { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.group > * + * { border-top: 1px solid var(--hairline); }

@media (prefers-reduced-motion: reduce) {
  .btn, .switch span, .switch span::after { transition: none; }
}
