/* Media News Comparator — responsive dark UI */

:root {
  --bg: #070b14;
  --bg-elev: #0c1220;
  --panel: rgba(18, 26, 43, 0.88);
  --panel-solid: #121a2b;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #eef3ff;
  --muted: #93a4bf;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --consensus: #16a34a;
  --disputed: #d97706;
  --unique: #7c3aed;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shell: min(1180px, calc(100% - 1.25rem));
  --header-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(129, 140, 248, 0.16), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(124, 58, 237, 0.08), transparent 45%),
    var(--bg);
  line-height: 1.45;
  padding-bottom: calc(1rem + var(--safe-b));
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: #7dd3fc;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #04111c;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 0 0 0.6rem 0;
}
.skip-link:focus {
  left: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-t);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.95rem 0 0.55rem;
}

.brand-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #04111c;
  background: linear-gradient(135deg, #38bdf8, #818cf8 55%, #c084fc);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0.05rem 0 0;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lede,
.muted,
.panel-sub {
  color: var(--muted);
}

.lede {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  font-size: 0.92rem;
}

.panel-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
}

.tight {
  margin: 0.35rem 0;
  font-size: 0.86rem;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  max-width: 22rem;
}

.meta-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.meta-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.meta-value {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.status-pill[data-state="loading"] {
  color: #fde68a;
}
.status-pill[data-state="error"] {
  color: #fecaca;
}
.status-pill[data-state="ready"] {
  color: #bbf7d0;
}

.feature-nav {
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.feature-nav::-webkit-scrollbar {
  display: none;
}
.feature-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.85);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.feature-nav a:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(30, 41, 59, 0.95);
}
.feature-nav a:active {
  transform: scale(0.98);
}

/* —— Layout —— */
#main.shell {
  padding-top: 0.85rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  padding: 0.95rem 1rem 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.stack-mobile {
  flex-wrap: wrap;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 0.9rem;
  align-items: start;
}

.primary-column,
.side-column {
  min-width: 0;
}

/* —— Spectrum —— */
.spectrum-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.spectrum-bar {
  width: 4.5rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #64748b, #dc2626);
}

.spectrum {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.outlet-chip {
  scroll-snap-align: start;
  border-radius: 0.95rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--chip, #64748b) 45%, transparent);
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--chip, #64748b) 34%, transparent),
      rgba(15, 23, 42, 0.92) 55%
    );
  min-height: 4.6rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.outlet-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--chip, #64748b) 70%, white);
}
.outlet-chip strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}
.outlet-chip span {
  display: block;
  margin-top: 0.3rem;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  font-size: 0.74rem;
}

/* —— Events / tables —— */
.heading-tools {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.heading-tools input[type="search"],
.premium-panel input,
.premium-panel select {
  width: min(100%, 16rem);
  min-width: 0;
  border-radius: 0.7rem;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  padding: 0.55rem 0.7rem;
}

.pill,
.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.pill.paid {
  color: #fde68a;
  border-color: color-mix(in srgb, var(--warn) 50%, transparent);
  background: color-mix(in srgb, var(--warn) 12%, #0f172a);
}

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 16, 28, 0.98));
}
.event-card:last-child {
  margin-bottom: 0;
}

.event-head {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

/* Desktop table */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.82rem;
}

table.compare th,
table.compare td {
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  padding: 0.55rem 0.45rem;
  vertical-align: top;
  text-align: left;
}

table.compare th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0f172a;
  font-weight: 700;
  font-size: 0.74rem;
}

table.compare th.outlet-col {
  border-top: 3px solid var(--chip, #64748b);
}

table.compare td.fact-key {
  min-width: 7.5rem;
  color: #dbe4f5;
  font-weight: 650;
}

table.compare tr.consensus td {
  background: color-mix(in srgb, var(--consensus) 9%, transparent);
}
table.compare tr.disputed td {
  background: color-mix(in srgb, var(--disputed) 11%, transparent);
}
table.compare tr.unique td {
  background: color-mix(in srgb, var(--unique) 11%, transparent);
}

/* Attributed publisher comparisons: quotation, citation and coverage gaps. */
.comparison-basis { font-size: 0.8rem; line-height: 1.55; }
.reported-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.source-citation { display: block; margin-top: 0.55rem; font-size: 0.7rem; color: var(--muted); }
.source-citation a { color: #93c5fd; text-decoration: underline; }
.missing-report { color: var(--muted); font-style: italic; font-size: 0.76rem; }
table.compare tr.framing td, table.compare tr.reported-detail td { min-width: 10rem; }
.tag.framing, .tag.reported-detail, .tag.shared-subject { background: #172554; color: #bfdbfe; }
.tag.reported-agreement { background: #064e3b; color: #a7f3d0; }
.tag.reported-difference { background: #451a03; color: #fed7aa; }

/* Mobile fact cards (shown via media query) */
.fact-cards {
  display: none;
  gap: 0.55rem;
}

.fact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
}
.fact-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.fact-card-head strong {
  font-size: 0.88rem;
}
.fact-claim {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: 0.45rem;
  align-items: start;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  font-size: 0.8rem;
}
.fact-claim:first-of-type {
  border-top: 0;
}
.fact-claim .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  margin-top: 0.35rem;
  background: var(--chip, #64748b);
}
.fact-claim .outlet-name {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--chip, #93a4bf);
}
.fact-claim .claim-text {
  color: var(--muted);
  margin-top: 0.1rem;
}

.coverage-details {
  margin-top: 0.75rem;
  color: var(--muted);
}
.coverage-details summary {
  cursor: pointer;
  color: #7dd3fc;
  font-weight: 600;
  list-style: none;
}
.coverage-details summary::-webkit-details-marker {
  display: none;
}
.coverage-details summary::before {
  content: "▸ ";
  color: var(--accent);
}
.coverage-details[open] summary::before {
  content: "▾ ";
}

.coverage-list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.coverage-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.82rem;
  color: var(--muted);
}
.coverage-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.35rem;
  background: var(--chip, #64748b);
}

/* —— Summaries —— */
.summary-card {
  border-left: 3px solid var(--accent);
  background: rgba(15, 23, 42, 0.92);
  border-radius: 0 0.85rem 0.85rem 0;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.6rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary-card:last-child {
  margin-bottom: 0;
}
.summary-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

/* —— Tags / legend —— */
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag.consensus {
  background: color-mix(in srgb, var(--consensus) 22%, #052e16);
  color: #bbf7d0;
}
.tag.disputed {
  background: color-mix(in srgb, var(--disputed) 22%, #451a03);
  color: #fde68a;
}
.tag.unique {
  background: color-mix(in srgb, var(--unique) 22%, #2e1065);
  color: #ddd6fe;
}

.legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.legend li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* —— Premium —— */
.premium-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0 0.35rem;
  padding: 0.25rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
}
.premium-tabs .tab {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.5rem 0.35rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.premium-tabs .tab.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.field {
  display: grid;
  gap: 0.3rem;
  margin: 0.65rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.optional {
  opacity: 0.7;
  font-weight: 500;
}

.btn-grid {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.55rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
button.secondary {
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1 70%);
  color: white;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22);
}
.btn-secondary,
button.secondary {
  background: rgba(30, 41, 59, 0.95);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost,
button.ghost {
  background: transparent;
  color: #bae6fd;
  border: 1px dashed var(--line-strong);
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  filter: brightness(1.06);
}
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1px);
}

.code-out {
  margin: 0.7rem 0 0;
  padding: 0.7rem;
  border-radius: 0.75rem;
  background: #070b14;
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.74rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow: auto;
}

.mcp-tools {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.mcp-meta {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
}
.mcp-tool-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.mcp-tool-list li {
  display: grid;
  gap: 0.12rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--line);
}
.mcp-tool-list code {
  color: #7dd3fc;
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* —— Ads / footer / toast —— */
.ad-slot {
  border: 1px dashed rgba(71, 85, 105, 0.9);
  border-radius: var(--radius-sm);
  min-height: 64px;
  margin: 0.65rem auto;
  display: grid;
  place-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(30, 41, 59, 0.55),
      rgba(30, 41, 59, 0.55) 8px,
      rgba(15, 23, 42, 0.55) 8px,
      rgba(15, 23, 42, 0.55) 16px
    );
}
.ad-sidebar {
  width: 100%;
  min-height: 180px;
  margin: 0 0 0.85rem;
}
.ad-inner {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  padding: 0.5rem;
}

.site-footer {
  margin-top: 0.5rem;
  padding: 0.75rem 0 calc(1.25rem + var(--safe-b));
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.45rem;
}
.footer-nav a {
  text-decoration: none;
  color: #7dd3fc;
  font-weight: 600;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-copy {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + var(--safe-b));
  transform: translateX(-50%);
  z-index: 80;
  width: min(24rem, calc(100vw - 1.5rem));
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.88rem;
  text-align: center;
}
.toast[data-kind="ok"] {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
}
.toast[data-kind="error"] {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
}

.error-box {
  color: #fecaca;
  border: 1px solid #7f1d1d;
  background: rgba(69, 10, 10, 0.35);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.skeleton-row {
  height: 4.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #1e293b 20%, #334155 50%, #1e293b 80%);
  background-size: 200% 100%;
  animation: shimmer 1.15s infinite linear;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading-copy {
  margin: 0.25rem 0;
}

/* Focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Legal pages reuse */
.legal-page .legal-shell {
  width: min(860px, calc(100% - 1.25rem));
  margin: 1rem auto 2rem;
}
.legal-article h2 {
  margin-top: 1.35rem;
  font-size: 1.05rem;
}
.legal-article p,
.legal-article li {
  line-height: 1.55;
  color: #dbe4f5;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .side-column {
    display: contents;
  }
  .premium-panel {
    order: 3;
  }
  .legend-panel {
    order: 4;
  }
  #events-panel {
    order: 1;
  }
  #summaries-panel {
    order: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100%, calc(100% - 0.9rem));
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .header-meta {
    justify-content: stretch;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .meta-value {
    max-width: none;
    white-space: normal;
  }

  .lede {
    font-size: 0.88rem;
  }

  .panel {
    padding: 0.85rem 0.8rem 0.95rem;
    border-radius: 0.95rem;
  }

  /* Mobile: card layout instead of wide tables */
  .compare-table-wrap {
    display: none;
  }
  .fact-cards {
    display: grid;
  }

  .event-head {
    flex-direction: column;
    align-items: stretch;
  }

  .heading-tools {
    width: 100%;
  }
  .heading-tools input[type="search"] {
    width: 100%;
    flex: 1 1 auto;
  }

  .spectrum {
    grid-auto-columns: minmax(118px, 42vw);
  }

  .hide-mobile {
    display: none !important;
  }

  .ad-header,
  .ad-footer {
    min-height: 52px;
    font-size: 0.75rem;
  }

  .toast {
    bottom: calc(0.75rem + var(--safe-b));
  }
}

@media (max-width: 420px) {
  .hide-xs {
    display: none !important;
  }
  .logo-mark {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.85rem;
  }
  h1 {
    font-size: 1.2rem;
  }
  .premium-tabs .tab {
    font-size: 0.74rem;
    padding: 0.48rem 0.2rem;
  }
}

@media (min-width: 721px) {
  .fact-cards {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skeleton-row {
    animation: none;
  }
  .outlet-chip,
  .feature-nav a,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
}

/* —— History (earlier windows) —— */
.history-list {
  display: grid;
  gap: 0.55rem;
}
.history-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: rgba(15, 23, 42, 0.9);
}
.history-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.history-titles {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
