/* ═══════════════════════════════════════════════════════════════
   SIDEWAYS
   Direction: a forensic instrument from a 1970s newsroom.
   Terminal manners, sodium-amber signal on ink, Riso-print warmth.
   The instrument is distinctive. The specimens inside it are bland.
   That contrast is the design.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── tokens ─────────────────────────────────────────────────── */
:root {
  --h: 62;                      /* one number re-themes the instrument */
  --h-dark: 46;                 /* hue rotates cooler into the shadows */

  /* ink ground — chroma arcs, never flat */
  --ink-950: oklch(12% 0.010 var(--h-dark));
  --ink-900: oklch(15% 0.014 var(--h-dark));
  --ink-850: oklch(18% 0.017 var(--h-dark));
  --ink-800: oklch(22% 0.019 var(--h-dark));
  --ink-700: oklch(30% 0.020 var(--h-dark));
  --ink-600: oklch(40% 0.018 var(--h-dark));
  --ink-500: oklch(52% 0.015 var(--h));
  --ink-400: oklch(64% 0.013 var(--h));
  --ink-300: oklch(76% 0.011 var(--h));
  --bone:    oklch(93% 0.011 82);
  --bone-dim:oklch(72% 0.012 78);

  /* signal — amber peaks in the midtones */
  --amber-300: oklch(88% 0.088 var(--h));
  --amber-400: oklch(82% 0.132 var(--h));
  --amber:     oklch(76% 0.152 var(--h));
  --amber-600: oklch(64% 0.140 var(--h));
  --amber-700: oklch(50% 0.112 calc(var(--h) - 4));

  --oxide:   oklch(60% 0.150 32);     /* vertical drift — the trap */
  --oxide-d: oklch(44% 0.120 30);
  --moss:    oklch(74% 0.130 152);    /* correct */
  --slate:   oklch(70% 0.090 235);    /* oracle */

  /* elevation — layered, hue-tinted, never black */
  --sh: var(--h-dark) 40% 6%;
  --elev-1: 0 1px 1px hsl(var(--sh)/.30), 0 2px 3px hsl(var(--sh)/.24);
  --elev-2: 0 1px 1px hsl(var(--sh)/.22), 0 2px 4px hsl(var(--sh)/.22),
            0 4px 8px hsl(var(--sh)/.22), 0 8px 16px hsl(var(--sh)/.20);
  --elev-3: 0 1px 2px hsl(var(--sh)/.20), 0 4px 8px hsl(var(--sh)/.20),
            0 8px 18px hsl(var(--sh)/.20), 0 18px 36px hsl(var(--sh)/.20),
            0 36px 72px hsl(var(--sh)/.18);
  --lip: inset 0 1px 0 oklch(100% 0 0 / .07);

  /* motion */
  --out: cubic-bezier(.16, 1, .30, 1);
  --out-soft: cubic-bezier(.25, 1, .50, 1);
  --in: cubic-bezier(.50, 0, .75, 0);

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --r: 10px;
  --pad: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--ink-950);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* paper grain — the Riso half of the direction */
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -10%, oklch(24% 0.030 var(--h)/.55), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: var(--amber-400); text-decoration: none; cursor: pointer; }

.hide { display: none !important; }

/* ── screens ────────────────────────────────────────────────── */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* ═══ TITLE ═════════════════════════════════════════════════ */
#s-title {
  align-items: center; justify-content: center;
  padding: 24px; text-align: center; overflow-y: auto;
}
.title-wrap { max-width: 640px; animation: rise .9s var(--out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.wordmark {
  font-family: var(--display);
  font-size: clamp(56px, 15vw, 132px);
  line-height: .92;
  letter-spacing: -.035em;      /* tracking tightens with size */
  font-weight: 400;
  color: var(--bone);
  position: relative;
  display: inline-block;
}
.wordmark em {
  font-style: italic;
  color: var(--amber);
  display: inline-block;
  transform: skewX(-9deg);
}
.tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 4.6vw, 27px);
  line-height: 1.28;
  letter-spacing: -.012em;
  color: var(--bone-dim);
  margin-top: 22px;
  text-wrap: balance;
}
.tagline b { color: var(--amber-400); font-style: normal; font-weight: 400; }

.premise {
  margin: 34px auto 0;
  max-width: 52ch;               /* measure */
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-400);
  text-wrap: pretty;
}
.premise strong { color: var(--bone); font-weight: 500; }

.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--ink-700), transparent); margin: 30px 0; }

.btn {
  font-family: var(--mono);
  font-size: 13px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  padding: 15px 30px 13px;       /* optical: less on top */
  border-radius: var(--r);
  background: var(--amber);
  color: var(--ink-950);
  box-shadow: var(--elev-2), var(--lip);
  transition: transform .16s var(--out), box-shadow .16s var(--out), background .16s var(--out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--elev-3), var(--lip); background: var(--amber-300); }
.btn:active { transform: translateY(0); transition-duration: .09s; }
.btn--ghost {
  background: transparent; color: var(--bone-dim);
  box-shadow: inset 0 0 0 1px var(--ink-700);
}
.btn--ghost:hover { background: var(--ink-850); color: var(--bone); box-shadow: inset 0 0 0 1px var(--ink-600); }

.stamp {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-500); margin-top: 34px;
}

/* ═══ CASE ══════════════════════════════════════════════════ */
#s-case { display: grid; grid-template-rows: auto 1fr; }

/* instrument bar */
.bar {
  display: flex; align-items: stretch; gap: 0;
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-800);
  box-shadow: var(--elev-1);
  position: relative; z-index: 20;
}
.bar-cell {
  padding: 9px 14px 8px;
  border-right: 1px solid var(--ink-800);
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.bar-k { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-500); }
.bar-v { font-size: 14px; font-weight: 700; color: var(--bone); font-variant-numeric: tabular-nums; }
.bar-v.hot { color: var(--oxide); }
.bar-v.good { color: var(--amber); }
.bar-cell--case { flex: 1; border-right: 1px solid var(--ink-800); }
.bar-cell--case .bar-v {
  font-family: var(--display); font-size: 17px; font-weight: 400; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-brand {
  font-family: var(--display); font-size: 17px; letter-spacing: -.02em;
  padding: 10px 16px 8px; color: var(--amber);
  border-right: 1px solid var(--ink-800); white-space: nowrap;
}

/* main */
.main { display: grid; grid-template-columns: 1fr 296px; min-height: 0; }

/* ── browser ──────────────────────────────────────────────── */
.browser { display: grid; grid-template-rows: auto auto 1fr; min-width: 0; min-height: 0; background: var(--ink-900); }

.tabs {
  display: flex; align-items: flex-end; gap: 3px;
  padding: 7px 8px 0; background: var(--ink-950);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 11px 7px;
  background: var(--ink-850);
  border-radius: 8px 8px 0 0;
  font-size: 11px; color: var(--ink-400);
  max-width: 190px; white-space: nowrap; flex: 0 0 auto;
  transition: background .14s var(--out), color .14s var(--out);
  animation: tabin .28s var(--out) both;
}
@keyframes tabin { from { opacity: 0; transform: translateY(6px) scaleX(.9); transform-origin: left bottom; } }
.tab:hover { background: var(--ink-800); color: var(--bone-dim); }
.tab.on { background: var(--ink-800); color: var(--bone); box-shadow: inset 0 1px 0 var(--amber-700); }
.tab-t { overflow: hidden; text-overflow: ellipsis; }
.tab-x { opacity: .4; font-size: 13px; line-height: 1; padding: 0 2px; }
.tab-x:hover { opacity: 1; color: var(--oxide); }
.tab-new {
  flex: 0 0 auto; padding: 8px 12px 7px; font-size: 11px; font-weight: 700;
  color: var(--amber); letter-spacing: .06em;
  border-radius: 8px 8px 0 0;
  transition: background .14s var(--out);
}
.tab-new:hover { background: var(--ink-850); }

.addr {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  background: var(--ink-800);
  border-bottom: 1px solid var(--ink-850);
  font-size: 11px;
}
.addr-lock { color: var(--ink-500); font-size: 11px; }
.addr-url {
  flex: 1; color: var(--ink-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--ink-850); padding: 6px 10px 5px;
  border-radius: 6px;            /* nested: 10 − 4 */
  box-shadow: inset 0 1px 2px hsl(var(--sh)/.35);
}
.addr-url b { color: var(--bone); font-weight: 500; }

.view {
  overflow-y: auto; overflow-x: hidden;
  background: var(--ink-800);
  padding: 0;
  scroll-behavior: smooth;
}
.view::-webkit-scrollbar { width: 10px; }
.view::-webkit-scrollbar-track { background: var(--ink-850); }
.view::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 6px; border: 2px solid var(--ink-850); }

.page { animation: pagein .34s var(--out) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }

/* ── panel ────────────────────────────────────────────────── */
.panel {
  background: var(--ink-900);
  border-left: 1px solid var(--ink-800);
  display: flex; flex-direction: column;
  overflow-y: auto; min-height: 0;
}
.pan-sec { padding: 14px; border-bottom: 1px solid var(--ink-850); }
.pan-h {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
}

/* the trace — signature visual */
.trace-box {
  background: var(--ink-950);
  border-radius: 8px;
  box-shadow: inset 0 1px 3px hsl(var(--sh)/.45), var(--lip);
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.trace-box::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-850) 1px, transparent 1px),
                    linear-gradient(90deg, var(--ink-850) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .5; pointer-events: none;
}
#trace { display: block; width: 100%; height: 132px; position: relative; }
.trace-legend { display: flex; gap: 12px; margin-top: 9px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.trace-legend i { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 5px; }
.lg-v i { background: var(--oxide); }
.lg-s i { background: var(--amber); }

/* metrics */
.met { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 11px; }
.met-k { color: var(--ink-400); }
.met-v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bone); }
.met-v.hot { color: var(--oxide); }
.met-v.good { color: var(--amber); }

/* oracle */
.oracle-btn {
  width: 100%; text-align: left;
  padding: 11px 12px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(30% 0.030 235), oklch(25% 0.026 235));
  box-shadow: var(--elev-1), var(--lip);
  display: flex; align-items: center; gap: 9px;
  transition: transform .15s var(--out), box-shadow .15s var(--out);
}
.oracle-btn:hover { transform: translateY(-1px); box-shadow: var(--elev-2), var(--lip); }
.oracle-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); box-shadow: 0 0 10px var(--slate); flex: 0 0 auto; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.oracle-btn > span:last-child { min-width: 0; }
.oracle-lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.oracle-sub { display: block; font-size: 10px; line-height: 1.4; color: var(--ink-400); margin-top: 2px; }

.oracle-out {
  margin-top: 10px; padding: 12px;
  border-radius: 8px;
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px oklch(45% 0.05 235 / .5);
  font-size: 11.5px; line-height: 1.65; color: var(--ink-300);
  animation: pagein .3s var(--out) both;
}
.oracle-out .who { display: block; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 7px; }
.flag-btn {
  margin-top: 10px; width: 100%; padding: 9px; border-radius: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--oxide); box-shadow: inset 0 0 0 1px var(--oxide-d);
  transition: background .14s var(--out), color .14s var(--out);
}
.flag-btn:hover { background: var(--oxide-d); color: var(--bone); }
.flag-btn.done { color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); pointer-events: none; }

/* verdict */
.verdicts { display: flex; flex-direction: column; gap: 7px; }
.vbtn {
  text-align: left; padding: 11px 13px 10px;
  border-radius: 8px;
  background: var(--ink-850);
  box-shadow: inset 0 0 0 1px var(--ink-700);
  transition: transform .15s var(--out), box-shadow .15s var(--out), background .15s var(--out);
}
.vbtn:hover { transform: translateX(3px); background: var(--ink-800); box-shadow: inset 0 0 0 1px var(--amber-700); }
.vbtn-l { font-size: 12px; font-weight: 700; color: var(--bone); }
.vbtn-s { font-size: 10px; color: var(--ink-500); margin-top: 2px; }
.vbtn[data-v="unverifiable"] .vbtn-l { color: var(--amber-300); }

/* ═══ DEBRIEF ═══════════════════════════════════════════════ */
#s-debrief { overflow-y: auto; display: block; padding: 0; }
.db { max-width: 860px; margin: 0 auto; padding: 40px 22px 80px; animation: rise .6s var(--out) both; }

.db-verdict { text-align: center; margin-bottom: 34px; }
.db-grade {
  font-family: var(--display);
  font-size: clamp(46px, 12vw, 92px); line-height: .95; letter-spacing: -.03em;
  color: var(--amber);
}
.db-grade.miss { color: var(--oxide); }
.db-gradesub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-500); margin-top: 10px; }

.db-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.cmp {
  background: var(--ink-900); border-radius: 12px; padding: 14px;
  box-shadow: var(--elev-2), var(--lip);
}
.cmp-h { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 9px; }
.cmp-box { background: var(--ink-950); border-radius: 8px; padding: 8px; box-shadow: inset 0 1px 3px hsl(var(--sh)/.45); }
.cmp svg { display: block; width: 100%; height: 116px; }
.cmp-cap { font-size: 10.5px; color: var(--ink-400); margin-top: 9px; line-height: 1.5; }

.db-sec { margin: 26px 0; }
.db-h {
  font-family: var(--display); font-size: 27px; letter-spacing: -.014em; line-height: 1.2;
  color: var(--bone); margin-bottom: 12px; text-wrap: balance;
}
.db-p { font-size: 13.5px; line-height: 1.72; color: var(--ink-300); max-width: 66ch; text-wrap: pretty; }
.db-p + .db-p { margin-top: 10px; }

.scorelist { display: flex; flex-direction: column; gap: 1px; background: var(--ink-800); border-radius: 10px; overflow: hidden; box-shadow: var(--elev-2); }
.scorerow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 15px; background: var(--ink-900); font-size: 12px; }
.scorerow b { font-variant-numeric: tabular-nums; font-size: 13px; }
.scorerow .sr-k { color: var(--ink-300); }
.scorerow .sr-n { color: var(--ink-500); font-size: 10.5px; margin-top: 2px; }
.plus { color: var(--moss); }
.minus { color: var(--oxide); }
.scorerow--total { background: var(--ink-850); }
.scorerow--total .sr-k { color: var(--bone); font-weight: 700; }
.scorerow--total b { color: var(--amber); font-size: 17px; }

.moves { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.moves li {
  padding: 10px 13px 9px; border-radius: 8px; font-size: 12px;
  background: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-800);
  display: flex; gap: 10px; align-items: baseline;
}
.moves li::before { content: '→'; color: var(--amber-700); flex: 0 0 auto; }
.moves li.hit { box-shadow: inset 0 0 0 1px var(--moss); }
.moves li.hit::before { content: '✓'; color: var(--moss); }

.oracle-verdict {
  border-radius: 10px; padding: 15px; margin-top: 14px;
  background: linear-gradient(180deg, oklch(24% 0.024 235), oklch(20% 0.020 235));
  box-shadow: var(--elev-2), var(--lip);
  font-size: 12.5px; line-height: 1.65; color: var(--ink-300);
}
.oracle-verdict .tag { display: inline-block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 5px; margin-bottom: 9px; }
.tag.fab { background: var(--oxide-d); color: var(--bone); }
.tag.ok { background: oklch(38% 0.07 152); color: var(--bone); }

.db-actions { display: flex; gap: 10px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ═══ FINAL ═════════════════════════════════════════════════ */
.final-num { font-family: var(--display); font-size: clamp(72px, 20vw, 168px); line-height: .9; letter-spacing: -.04em; color: var(--amber); }
.arch { font-family: var(--display); font-style: italic; font-size: clamp(26px, 7vw, 46px); letter-spacing: -.018em; color: var(--bone); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════
   SPECIMENS — the fake websites.
   Deliberately generic. That is the point: they look plausible
   because they look boring, and nothing about how a page looks
   tells you whether it is true.
   ═══════════════════════════════════════════════════════════ */
.site { min-height: 100%; padding: 26px 30px 60px; font-size: 15px; line-height: 1.6; }
.site h1 { font-size: 27px; line-height: 1.22; letter-spacing: -.015em; margin: 6px 0 12px; text-wrap: balance; }
.site h2 { font-size: 19px; margin: 22px 0 8px; }
.site p { margin: 11px 0; max-width: 68ch; }
.site ul, .site .headlines { margin: 12px 0 12px 20px; max-width: 68ch; }
.site li { margin: 6px 0; }
.site .kicker { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin: 0; }
.site .byline { font-size: 12px; opacity: .6; margin: 4px 0 16px; }
.site .dim { font-size: 12.5px; opacity: .62; font-style: italic; }
.site .cite { font-size: 12px; opacity: .55; margin-top: 20px; }
.site a { border-bottom: 1px solid currentColor; }

/* institute — clean corporate-academic */
.site--inst { background: #fdfdfb; color: #1c1c1a; font-family: Georgia, 'Times New Roman', serif; }
.site--inst .site-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #16324f; padding-bottom: 12px; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.site--inst .site-logo { font-family: Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: .06em; color: #16324f; font-size: 15px; }
.site--inst .site-logo span { font-weight: 400; color: #6a7a88; }
.site--inst nav { display: flex; gap: 16px; font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: #6a7a88; }
.site--inst .site-foot { margin-top: 34px; padding-top: 12px; border-top: 1px solid #ddd; font-size: 11px; color: #8a8a86; font-family: Helvetica, Arial, sans-serif; }
.site--inst .callout { background: #f0f4f8; border-left: 3px solid #16324f; padding: 14px 16px; margin: 16px 0; }
.site--inst a { color: #16324f; }

/* news — generic web-native outlet */
.site--news { background: #fff; color: #222; font-family: Helvetica, Arial, sans-serif; }
.site--news .kicker { color: #c0392b; font-weight: 700; }
.site--news h1 { font-family: Georgia, serif; font-size: 30px; }
.site--news .portrait { margin: 18px 0; }
.site--news .portrait-img { background: #eceff1; border: 1px solid #d8dde0; padding: 34px 16px; text-align: center; color: #90a0aa; font-size: 12px; font-style: italic; }
.site--news figcaption { font-size: 12px; color: #667; margin-top: 6px; }

/* social */
.site--social { background: #15181c; color: #e7e9ea; font-family: Helvetica, Arial, sans-serif; }
.site--social .post, .site--social .profile { max-width: 560px; border: 1px solid #2f3336; border-radius: 14px; padding: 16px; }
.site--social .post-head { display: flex; gap: 11px; align-items: center; margin-bottom: 11px; font-size: 14px; }
.site--social .avatar { width: 42px; height: 42px; border-radius: 50%; background: #3a6ea5; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.site--social .avatar.big { width: 68px; height: 68px; font-size: 22px; margin-bottom: 12px; }
.site--social .handle { color: #71767b; font-size: 13px; }
.site--social .verified { color: #1d9bf0; }
.site--social .post-body { font-size: 16px; line-height: 1.45; margin: 0 0 13px; }
.site--social .photo { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #2f3336; }
.site--social .photo-inner { background: linear-gradient(160deg, #3d4a52, #22303a); padding: 66px 16px; text-align: center; }
.site--social .photo-label { color: #9fb0bb; font-size: 12px; font-style: italic; }
.site--social .img-tool { position: absolute; right: 9px; bottom: 9px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; padding: 7px 11px 6px; border-radius: 7px; font-family: inherit; backdrop-filter: blur(6px); }
.site--social .img-tool:hover { background: #1d9bf0; }
.site--social .post-meta { color: #71767b; font-size: 13px; margin-top: 12px; }

/* broadsheet */
.site--broadsheet { background: #fbf9f4; color: #1a1a18; font-family: Georgia, 'Times New Roman', serif; }
.site--broadsheet .masthead { text-align: center; margin-bottom: 22px; }
.site--broadsheet .mast-name { font-size: 34px; letter-spacing: -.01em; font-weight: 400; }
.site--broadsheet .mast-rule { height: 3px; background: #1a1a18; margin: 8px 0 5px; }
.site--broadsheet .mast-sub { font-family: Helvetica, Arial, sans-serif; font-size: 10px; letter-spacing: .24em; color: #5a5a55; }
.site--broadsheet h1 { font-size: 32px; }
.site--broadsheet .share-bar { margin-top: 22px; background: #c0392b; color: #fff; text-align: center; padding: 11px; font-family: Helvetica, Arial, sans-serif; font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.site--broadsheet .headlines { list-style: none; margin-left: 0; }
.site--broadsheet .headlines li { border-bottom: 1px solid #e3ddd0; padding: 11px 0; font-size: 17px; }

/* blog — the ugly true one */
.site--blog { background: #f4f1e8; color: #2b2b26; font-family: Verdana, Geneva, sans-serif; font-size: 14px; }
.site--blog .blog-head { background: #24405c; color: #fff; padding: 11px 14px; font-weight: 700; letter-spacing: .04em; margin: -26px -30px 20px; font-size: 14px; }
.site--blog .blog-head span { font-weight: 400; opacity: .7; font-size: 11px; }
.site--blog h1 { font-size: 24px; color: #8a2b1e; letter-spacing: 0; }
.site--blog .blog-note { background: #fff6c9; border: 1px solid #e0d189; padding: 11px 13px; font-size: 13px; margin-top: 18px; }
.site--blog a { color: #1a5fa8; }

/* government / authority */
.site--gov { background: #f7f8f9; color: #1f2933; font-family: Helvetica, Arial, sans-serif; }
.site--gov h1 { font-size: 24px; border-bottom: 3px solid #1f6f43; padding-bottom: 9px; }
.site--gov .res { border-left: 3px solid #1f6f43; padding: 11px 14px; background: #fff; margin: 12px 0; box-shadow: 0 1px 2px rgba(31,41,51,.06), 0 2px 6px rgba(31,41,51,.05); }
.site--gov .noresult { border: none; color: #a33; font-size: 19px; }
.site--gov .data { border-collapse: collapse; width: 100%; max-width: 560px; margin: 16px 0; font-size: 13px; background: #fff; }
.site--gov .data th { background: #1f2933; color: #fff; text-align: left; padding: 9px 12px; font-size: 11px; letter-spacing: .06em; }
.site--gov .data td { padding: 9px 12px; border-bottom: 1px solid #e3e7ea; font-variant-numeric: tabular-nums; }
.site--gov .data .fail { color: #b3261e; font-weight: 700; }

/* journal */
.site--journal { background: #fff; color: #23282d; font-family: Georgia, serif; }
.site--journal .kicker { color: #1f6f43; font-weight: 700; }

/* in-app search engine */
.site--search { background: #fff; color: #202124; font-family: Arial, Helvetica, sans-serif; }
.site--search h1 { font-size: 21px; color: #202124; }
.site--search .noresult { color: #b3261e; }
.site--search .res { padding: 13px 0; border-bottom: 1px solid #ebebeb; max-width: 68ch; }
.site--search .res b { color: #1a0dab; font-size: 15px; display: block; margin-bottom: 3px; }
.site--search .res p { margin: 0; font-size: 13.5px; color: #4d5156; }
.site--search .dim { color: #5f6368; }

/* search input page */
.searchpage { padding: 40px 30px; background: #fff; min-height: 100%; font-family: Arial, Helvetica, sans-serif; color: #202124; }
.searchpage .sp-logo { font-size: 30px; letter-spacing: -.02em; color: #5f6368; margin-bottom: 20px; }
.searchpage .sp-logo b { color: #1a73e8; }
.sp-form { display: flex; gap: 8px; max-width: 620px; }
.sp-input {
  flex: 1; padding: 13px 16px; font-size: 15px; font-family: inherit;
  border: 1px solid #dfe1e5; border-radius: 24px; outline: none; color: #202124;
  box-shadow: 0 1px 3px rgba(32,33,36,.08);
}
.sp-input:focus { border-color: #1a73e8; box-shadow: 0 1px 6px rgba(32,33,36,.18); }
.sp-go { padding: 13px 22px; border-radius: 24px; background: #1a73e8; color: #fff; font-size: 14px; font-family: inherit; }
.sp-hint { margin-top: 22px; font-size: 13px; color: #5f6368; max-width: 60ch; }
.sp-hint b { color: #202124; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sp-chip { padding: 7px 13px 6px; border-radius: 18px; background: #f1f3f4; font-size: 12.5px; color: #3c4043; font-family: inherit; }
.sp-chip:hover { background: #e3e6e8; }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .panel {
    border-left: none; border-top: 1px solid var(--ink-800);
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    box-shadow: 0 -8px 24px hsl(var(--sh)/.4);
  }
  .pan-sec { border-bottom: none; border-right: 1px solid var(--ink-850); flex: 0 0 auto; min-width: 210px; }
  .pan-sec--trace { min-width: 190px; }
  #trace { height: 92px; }
  .db-cmp { grid-template-columns: 1fr; }
  .site { padding: 20px 18px 50px; }
  .bar-brand { display: none; }
}
@media (max-width: 560px) {
  .bar-cell { padding: 7px 10px 6px; }
  .bar-v { font-size: 12px; }
  .site h1 { font-size: 22px; }
  .db { padding: 26px 16px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── demo cursor (only present in ?demo=1) ─────────────────── */
.democursor {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 26px; height: 26px; margin: -3px 0 0 -3px;
  transition: transform .62s cubic-bezier(.22, 1, .30, 1), opacity .4s ease;
  filter: drop-shadow(0 3px 7px hsl(var(--sh)/.65));
}
.democursor .ring {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%;
  border: 2px solid var(--amber); opacity: 0; transform: scale(.3);
}
.democursor.tap .ring { animation: tap .5s cubic-bezier(.16,1,.30,1); }
@keyframes tap {
  0%   { opacity: .95; transform: scale(.3); }
  100% { opacity: 0;   transform: scale(3.6); }
}
