/* The Crypto Register - Wise-inspired consumer-fintech UI */

:root {
  /* Trust + safety palette */
  --green: #9FE870;        /* primary accent, success, CTAs */
  --green-hover: #76d44a;
  --forest: #163300;       /* dark heading, deep emphasis */
  --forest-soft: #2c5b16;
  --ink: #0e1f0e;          /* text default */
  --ink-soft: #4d5852;     /* muted text */
  --paper: #ffffff;        /* card surface */
  --bg: #fafaf7;           /* page background (very light warm white) */
  --bg-edge: #f0f0e8;      /* section divider background */
  --rule: #e6e6dd;         /* hairline border */
  --rule-strong: #c8c8b8;
  --warn: #e96e3c;         /* caution/orange */
  --warn-soft: #fdf2ec;
  --danger: #dc2626;       /* not-licensed red */
  --danger-soft: #fef2f2;

  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --maxw: 1100px;
  --maxw-text: 720px;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-edge); padding: 2px 6px; border-radius: var(--r-sm); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: var(--r-sm); }
[aria-current="page"] { color: var(--forest) !important; font-weight: 700; }

/* Accessibility helpers */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--forest); color: var(--paper);
  padding: 12px 18px; z-index: 1000; font-weight: 700;
  border-radius: 0 0 var(--r-md) 0; text-decoration: none;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Buttons (button system) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; min-height: 52px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  border-radius: var(--r-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: all 0.15s ease;
  line-height: 1; letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--forest); }
.btn-primary:hover { background: var(--green-hover); color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--paper); }
.btn-dark:hover { background: var(--ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--forest); border: none; padding: 8px 14px; min-height: auto; }
.btn-ghost:hover { color: var(--ink); text-decoration: underline; }
.btn-lg { padding: 18px 32px; min-height: 60px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(250, 250, 247, 0.92);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 20px; flex-wrap: nowrap;
}
.brand {
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0; font-family: var(--sans);
}
.brand-mark {
  background: var(--forest); color: var(--paper);
  padding: 6px 12px; font-weight: 800; font-size: 0.92rem;
  letter-spacing: -0.01em; border-radius: var(--r-sm);
}
.brand-region {
  font-size: 0.78rem; color: var(--ink-soft);
  border: 1px solid var(--rule); padding: 3px 8px;
  border-radius: var(--r-sm); font-weight: 600;
}
.site-header nav {
  display: flex; gap: 32px;
  flex: 1 1 auto; justify-content: center;
}
.site-header nav a {
  text-decoration: none; font-size: 0.96rem; font-weight: 500;
  color: var(--ink); padding: 6px 2px;
}
.site-header nav a:hover { color: var(--forest); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--rule);
  padding: 8px 10px; cursor: pointer; flex-shrink: 0;
  border-radius: var(--r-sm);
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

.theme-toggle, .search-trigger {
  background: transparent; border: 1px solid var(--rule);
  padding: 7px 12px; cursor: pointer; flex-shrink: 0;
  border-radius: var(--r-pill); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem;
  font-family: var(--sans); font-weight: 600;
}
.theme-toggle:hover, .search-trigger:hover {
  color: var(--forest); border-color: var(--forest);
}
.search-trigger kbd {
  font-family: var(--mono); font-size: 0.72rem;
  background: var(--bg-edge); padding: 1px 5px; border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}

.lang-switcher { position: relative; flex-shrink: 0; }
.lang-switcher summary {
  cursor: pointer; list-style: none;
  font-size: 0.86rem; color: var(--ink-soft); font-weight: 600;
  padding: 7px 14px; border: 1px solid var(--rule);
  border-radius: var(--r-pill);
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher ul {
  position: absolute; right: 0; top: 100%; z-index: 60;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 8px 0; margin: 6px 0 0; list-style: none;
  min-width: 200px; max-height: 70vh; overflow: auto;
  border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.lang-switcher li a {
  display: block; padding: 8px 16px; text-decoration: none;
  font-size: 0.94rem; color: var(--ink); font-weight: 500;
}
.lang-switcher li a:hover { background: var(--bg); color: var(--forest); }

/* Sub-nav: regulatory verticals (Spot / Derivatives / Cards) */
.sub-nav {
  background: var(--bg-edge); border-bottom: 1px solid var(--rule);
  font-size: 0.86rem;
}
.sub-nav .container {
  display: flex; gap: 28px; padding: 10px 24px;
  flex-wrap: wrap; align-items: center;
}
.sub-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
  letter-spacing: 0.02em; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.sub-nav a:hover { color: var(--forest); border-bottom-color: var(--green); }
.sub-nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); }
@media (max-width: 700px) {
  .sub-nav .container { gap: 18px; font-size: 0.82rem; padding: 8px 16px; }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.86rem; color: var(--ink-soft);
}
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); }

main#main { display: block; }

/* Persistent context strip (shown when user has checked an exchange) */
.context-strip {
  background: var(--forest); color: var(--paper);
  padding: 10px 0; font-size: 0.92rem;
}
.context-strip[hidden] { display: none; }
.context-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.context-strip-left {
  display: flex; align-items: center; gap: 10px;
}
.context-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
}
.context-dot[data-status="absent"] { background: var(--warn); }
.context-name { font-weight: 700; }
.context-status { color: rgba(255,255,255,0.85); }
.context-actions { display: flex; gap: 14px; }
.context-actions a {
  color: var(--green); text-decoration: none; font-weight: 600; font-size: 0.88rem;
}
.context-actions a:hover { text-decoration: underline; }
.context-dismiss {
  background: transparent; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 4px 8px; font-size: 1rem;
}
.context-dismiss:hover { color: var(--paper); }

/* ===================== HOMEPAGE (Wise-inspired) ===================== */

.home-hero {
  padding: 64px 0 32px;
  background: var(--bg);
}
.home-hero .container { max-width: 980px; }
.home-hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--forest-soft);
  background: var(--green);
  padding: 6px 14px; border-radius: var(--r-pill);
  margin: 0 0 22px;
  width: fit-content;
}
.hero-h1 {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; font-weight: 800;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 0 0 18px; max-width: 900px;
}
.hero-h1 .highlight { background: linear-gradient(180deg, transparent 60%, var(--green) 60%); padding: 0 4px; }
.hero-lede {
  font-size: 1.18rem; color: var(--ink-soft);
  max-width: 640px; margin: 0 0 32px; line-height: 1.5;
}

/* Search card */
.checker-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px; margin: 0;
  box-shadow: 0 4px 24px rgba(22, 51, 0, 0.04);
}
.checker-label {
  display: block; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--ink-soft); margin: 0 0 12px;
}
.checker-input-wrap {
  position: relative;
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg);
  border: 2px solid var(--rule);
  border-radius: var(--r-pill);
  transition: border-color 0.15s ease;
}
.checker-input-wrap:focus-within {
  border-color: var(--forest);
  background: var(--paper);
}
.checker-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px 0 22px; color: var(--ink-soft); flex-shrink: 0;
}
.checker-input-wrap input {
  flex: 1 1 auto; min-width: 0;
  padding: 16px 8px 16px 0; font-size: 1.05rem;
  font-family: var(--sans); font-weight: 500;
  background: transparent; border: none; outline: none; color: var(--ink);
}
.checker-input-wrap input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.checker-submit {
  flex-shrink: 0;
  padding: 0 26px; font-size: 1rem; font-weight: 700;
  background: var(--forest); color: var(--paper); border: none; cursor: pointer;
  font-family: var(--sans); border-radius: var(--r-pill);
  margin: 4px; transition: background 0.15s ease;
}
.checker-submit:hover { background: var(--ink); }

.checker-suggestions {
  list-style: none; margin: 8px 0 0; padding: 8px;
  border: 1px solid var(--rule);
  background: var(--paper); max-height: 360px; overflow: auto;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.checker-suggestions[hidden] { display: none; }
.checker-suggestions li {
  padding: 12px 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-radius: var(--r-sm);
}
.checker-suggestions li[aria-selected="true"],
.checker-suggestions li:hover { background: var(--bg); }
.checker-suggestions li.checker-empty {
  color: var(--ink-soft); font-style: italic; cursor: default;
}
.checker-suggestions .sug-name { font-weight: 600; color: var(--ink); }
.checker-suggestions .sug-status {
  font-size: 0.78rem; padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 700; letter-spacing: 0.02em;
}
.sug-status-ok { background: var(--green); color: var(--forest); }
.sug-status-no { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }

.checker-hint {
  margin: 16px 0 0; font-size: 0.86rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.trust-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-hover); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Browse tiles - alternative to search */
.browse-tiles-section { padding: 24px 0 8px; }
.browse-tiles-label {
  font-size: 0.84rem; color: var(--ink-soft); margin: 0 0 14px;
  text-align: center; font-weight: 500;
}
.browse-tiles {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; max-width: 720px; margin: 0 auto;
}
.browse-tile {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 14px 10px;
  text-align: center; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all 0.15s ease;
}
.browse-tile:hover {
  border-color: var(--forest); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 51, 0, 0.06); color: var(--forest);
}
.browse-tile[data-status="authorized"]::after {
  content: "✓"; display: inline-block;
  width: 18px; height: 18px; line-height: 18px;
  background: var(--green); color: var(--forest);
  font-size: 0.7rem; font-weight: 800; border-radius: 50%;
}
.browse-tile[data-status="absent"]::after {
  content: "!"; display: inline-block;
  width: 18px; height: 18px; line-height: 18px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn);
  font-size: 0.7rem; font-weight: 800; border-radius: 50%;
}

/* Trust ribbon (text-only regulator wordmarks) */
.trust-ribbon {
  padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--paper); overflow: hidden;
}
.trust-ribbon-label {
  text-align: center; font-size: 0.78rem;
  color: var(--ink-soft); margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.trust-ribbon-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 38px; list-style: none; padding: 0; margin: 0;
}
.trust-ribbon-list li {
  font-family: var(--sans); font-weight: 700;
  color: var(--ink-soft); letter-spacing: -0.01em;
  font-size: 0.96rem;
  display: flex; align-items: baseline; gap: 8px;
}
.trust-ribbon-list li .trust-jur {
  font-size: 0.74rem; color: var(--rule-strong); font-weight: 600;
}

/* Result card (three-tier reveal) */
.result-card { margin: 32px 0 0; scroll-margin-top: 84px; }
.result-card[hidden] { display: none; }
.result-inner {
  background: var(--paper);
  border-radius: var(--r-lg); padding: 36px 36px 32px;
  position: relative; overflow: hidden;
  animation: slideUp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-inner[data-status="ok"] {
  background: linear-gradient(180deg, var(--green) 0%, var(--green) 8%, var(--paper) 8%);
  border: 1px solid var(--green-hover);
}
.result-inner[data-status="warn"] {
  background: linear-gradient(180deg, var(--warn) 0%, var(--warn) 8%, var(--paper) 8%);
  border: 1px solid var(--warn);
}
.result-verdict {
  display: flex; align-items: center; gap: 18px; margin-bottom: 8px;
}
.result-icon {
  flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
}
.result-inner[data-status="ok"] .result-icon { background: var(--green); color: var(--forest); }
.result-inner[data-status="warn"] .result-icon { background: var(--warn); color: var(--paper); }
.result-icon svg { width: 32px; height: 32px; }
.result-verdict-text {
  font-family: var(--sans); font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0; color: var(--ink);
}
.result-heading {
  font-size: 1.1rem; color: var(--ink-soft); font-weight: 500;
  margin: 6px 0 18px; line-height: 1.4;
}
.result-lead {
  font-size: 1.05rem; color: var(--ink); margin: 0 0 16px; line-height: 1.55;
}
.result-detail {
  margin: 14px 0 0; border-top: 1px solid var(--rule); padding-top: 14px;
}
.result-detail summary {
  cursor: pointer; font-size: 0.92rem; font-weight: 600;
  color: var(--forest); list-style: none; padding: 4px 0;
}
.result-detail summary::-webkit-details-marker { display: none; }
.result-detail summary::after {
  content: " ↓"; opacity: 0.6; font-weight: 700;
}
.result-detail[open] summary::after { content: " ↑"; }
.result-detail p {
  margin: 12px 0 0; color: var(--ink-soft); font-size: 0.94rem;
}

.result-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 4px;
}

.result-source {
  font-size: 0.84rem; color: var(--ink-soft); margin: 16px 0 0;
}

/* Orange caveat (Bybit-style) */
.result-caveat {
  margin: 20px 0 4px;
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
}
.caveat-badge {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--warn); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  margin-top: 2px;
}
.caveat-heading {
  font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; color: var(--ink);
}
.caveat-body p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.94rem; }
.caveat-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.92rem; color: var(--warn); font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
}
.caveat-link:hover { color: var(--ink); }

/* Compact countdown clock */
.trust-strip { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.countdown-clock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; max-width: 520px;
}
.cd-cell {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center;
}
.cd-num {
  font-family: var(--mono); font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cd-lbl {
  margin-top: 4px; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); font-weight: 700;
}
.trust-stats { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.trust-stats strong { color: var(--ink); font-weight: 700; }

/* How it works */
.home-how { padding: 72px 0; background: var(--paper); border-top: 1px solid var(--rule); }
.home-how h2 {
  font-family: var(--sans); font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin: 0 0 36px; text-align: center; font-weight: 800; letter-spacing: -0.02em;
}
.how-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.how-steps li {
  background: var(--bg); border-radius: var(--r-lg);
  padding: 28px 26px;
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: var(--forest);
  font-weight: 800; font-family: var(--sans); font-size: 1.1rem;
  margin-bottom: 14px;
}
.how-steps h3 {
  font-family: var(--sans); font-size: 1.18rem; margin: 0 0 8px;
  font-weight: 700; letter-spacing: -0.01em;
}
.how-steps p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Sources block (deprecated old version) */
.home-sources { padding: 64px 0; }
.home-sources h2 {
  font-family: var(--sans); font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 28px; font-weight: 800; letter-spacing: -0.02em;
}
.sources-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sources-grid li {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 22px 24px;
}
.sources-grid strong {
  display: block; font-size: 1.05rem; margin-bottom: 8px;
  font-weight: 800; letter-spacing: -0.01em;
}
.sources-grid p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.94rem; }
.sources-grid a {
  font-size: 0.92rem; color: var(--forest); text-decoration: none; font-weight: 700;
}
.sources-grid a:hover { text-decoration: underline; }

/* ===================== EXCHANGE PROFILE ===================== */
article.exchange-page { background: var(--bg); }
article.exchange-page .container { max-width: 920px; }
article.exchange-page section { padding: 40px 0; }
.exchange-hero { padding-top: 56px !important; padding-bottom: 32px !important; }
.exchange-hero .kicker {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; margin: 0 0 14px;
}
.exchange-hero h1 {
  font-family: var(--sans); font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em;
}
.exchange-hero .lede {
  font-size: 1.1rem; color: var(--ink-soft); max-width: 720px; margin: 0 0 24px;
}

.verdict-card {
  padding: 22px 26px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--rule);
}
.verdict-card[data-status="authorized"] {
  background: linear-gradient(180deg, var(--green) 0%, var(--green) 6px, var(--paper) 6px);
  border-color: var(--green-hover);
}
.verdict-card[data-status="absent"] {
  background: linear-gradient(180deg, var(--warn) 0%, var(--warn) 6px, var(--paper) 6px);
  border-color: var(--warn);
}
.verdict-card h2 {
  margin: 6px 0 14px; font-family: var(--sans);
  font-size: 1.35rem; line-height: 1.25; font-weight: 800;
}
.verdict-card p { margin: 0 0 12px; }
.verdict-card .verdict-source { font-size: 0.86rem; color: var(--ink-soft); }

/* Sticky mini-verdict */
.sticky-verdict {
  position: fixed; top: 76px; right: 24px; z-index: 40;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 0.88rem;
  display: none; box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  max-width: 280px;
}
.sticky-verdict.visible { display: inline-flex; align-items: center; gap: 10px; }
.sticky-verdict[data-status="authorized"] { border-color: var(--green-hover); }
.sticky-verdict[data-status="absent"] { border-color: var(--warn); }
.sticky-verdict-name { font-weight: 700; }
.sticky-verdict-badge { font-size: 0.78rem; color: var(--ink-soft); }

.copy-image-btn {
  display: inline-block; margin-top: 16px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 10px 18px; cursor: pointer; font-size: 0.88rem;
  font-family: var(--sans); font-weight: 600; color: var(--ink-soft);
}
.copy-image-btn:hover { color: var(--forest); border-color: var(--forest); }

/* Compliance Score card */
.exchange-score { padding-top: 32px !important; }
.score-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 28px 32px;
}
.score-number-wrap {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: linear-gradient(135deg, var(--forest) 0%, #1f4a05 100%);
  border-radius: var(--r-md); padding: 22px 24px; color: var(--paper);
}
.score-number {
  font-family: var(--sans); font-size: 4rem; font-weight: 800;
  line-height: 1; color: var(--green); letter-spacing: -0.03em;
}
.score-out-of { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; font-weight: 600; }
.score-explainer p { margin: 0 0 12px; color: var(--ink-soft); }
.score-breakdown {
  list-style: none; padding: 0; margin: 12px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.score-breakdown li {
  background: var(--bg); padding: 10px 12px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.score-breakdown strong { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.score-breakdown span { font-family: var(--mono); font-size: 1rem; color: var(--ink); font-weight: 700; }
.score-breakdown .of { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }

/* Regulator alerts list */
.exchange-alerts { padding-top: 32px !important; }
.alerts-list { list-style: none; padding: 0; margin: 0; }
.alert-item {
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md); padding: 22px 26px; margin-bottom: 14px;
}
.alert-item[data-action="mica-authorisation-granted"],
.alert-item[data-action="whitelist-addition"] {
  border-left-color: var(--green-hover);
}
.alert-item[data-action="fine"],
.alert-item[data-action="warning"] {
  border-left-color: var(--danger);
}
.alert-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 8px;
}
.alert-meta time { font-weight: 700; color: var(--ink); font-family: var(--mono); }
.alert-regulator { font-weight: 700; }
.alert-country { color: var(--ink-soft); font-weight: 500; }
.alert-tag {
  background: var(--bg-edge); padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.alert-item[data-action="fine"] .alert-tag,
.alert-item[data-action="warning"] .alert-tag {
  background: var(--danger-soft); color: var(--danger);
}
.alert-item[data-action="mica-authorisation-granted"] .alert-tag,
.alert-item[data-action="whitelist-addition"] .alert-tag {
  background: var(--green); color: var(--forest);
}
.alert-headline {
  font-family: var(--sans); font-size: 1.1rem; margin: 0 0 8px;
  font-weight: 700; line-height: 1.3;
}
.alert-summary { margin: 0 0 10px; color: var(--ink); font-size: 0.95rem; }
.alert-note {
  margin: 0 0 10px; padding: 10px 14px;
  background: var(--warn-soft); border-radius: var(--r-sm);
  font-size: 0.92rem; color: var(--ink);
}
.alert-source { font-size: 0.84rem; color: var(--ink-soft); margin: 6px 0 0; }

/* Behaviour snapshot */
.exchange-snapshot { padding-top: 32px !important; }
.snapshot-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
.snapshot-table th, .snapshot-table td {
  text-align: left; padding: 14px 16px; vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.snapshot-table tr:last-child th, .snapshot-table tr:last-child td { border-bottom: none; }
.snapshot-table th { width: 36%; font-weight: 600; color: var(--ink-soft); background: var(--bg); }
.snapshot-table code { font-size: 0.88em; }

@media (max-width: 700px) {
  .score-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .score-number { font-size: 3.2rem; }
  .snapshot-table th { width: auto; display: block; padding-bottom: 4px; }
  .snapshot-table td { display: block; padding-top: 0; padding-bottom: 14px; }
}

/* Key facts table */
table.key-facts { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 0.95rem; }
table.key-facts th, table.key-facts td {
  text-align: left; padding: 10px 12px; vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
table.key-facts tr:last-child th, table.key-facts tr:last-child td { border-bottom: none; }
table.key-facts th { font-weight: 600; color: var(--ink-soft); width: 38%; }

section h2 { font-family: var(--sans); font-size: 1.55rem; margin: 0 0 14px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
section h3 { font-family: var(--sans); font-size: 1.1rem; margin: 18px 0 6px; font-weight: 700; }
.section-lede { color: var(--ink-soft); margin: 0 0 20px; max-width: var(--maxw-text); }
.section-aside { color: var(--ink-soft); font-size: 0.88rem; margin-top: 14px; font-style: italic; }

.services-list { list-style: none; padding: 0; margin: 0; }
.services-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.services-list li:last-child { border-bottom: none; }
.services-list h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; }
.services-list p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ===================== TABLES (find / compare / news / migrate) ===================== */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--paper); }

table.find-table,
table.news-table,
table.alternatives-table,
table.compare-table,
table.feed-table {
  width: 100%; border-collapse: collapse; font-size: 0.94rem;
}
table.find-table th,
table.news-table th,
table.alternatives-table th,
table.compare-table th,
table.feed-table th {
  text-align: left; padding: 14px 16px;
  background: var(--bg); border-bottom: 1px solid var(--rule);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); font-weight: 700; white-space: nowrap;
}
table.find-table td,
table.news-table td,
table.alternatives-table td,
table.compare-table td,
table.feed-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.find-table tr:last-child td,
table.news-table tr:last-child td,
table.alternatives-table tr:last-child td,
table.compare-table tr:last-child td,
table.feed-table tr:last-child td { border-bottom: none; }

table.find-table th:nth-child(1) { width: 22%; }
table.find-table th:nth-child(2) { width: 18%; }
table.find-table th:nth-child(3) { width: 18%; }
table.find-table th:nth-child(4) { width: 30%; }
table.find-table th:nth-child(5) { width: 12%; }

.home-rumours table.news-table { table-layout: fixed; }
.home-rumours table.news-table th:nth-child(1),
.home-rumours table.news-table td:nth-child(1) { width: 38%; }
.home-rumours table.news-table th:nth-child(2),
.home-rumours table.news-table td:nth-child(2) { width: 62%; }
.home-rumours table.news-table td { white-space: normal; }

/* Status pills */
.badge {
  display: inline-block; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 700; border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.badge-authorized { background: var(--green); color: var(--forest); }
.badge-absent { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
.badge-regulator { background: var(--green); color: var(--forest); }
.badge-reported { background: var(--bg-edge); color: var(--ink-soft); }
.badge-claimed { background: #fff6d6; color: #7a5a00; }
.badge-chatter { background: var(--bg); color: var(--ink-soft); font-style: italic; }

.jurisdiction-pill, .service-pill {
  display: inline-block; padding: 4px 12px; margin: 0 4px 4px 0;
  background: var(--bg-edge); color: var(--ink-soft);
  border-radius: var(--r-pill); font-size: 0.82rem;
  text-decoration: none; white-space: nowrap; font-weight: 500;
}
.jurisdiction-pill:hover, .service-pill:hover {
  background: var(--forest); color: var(--paper);
}

.services-cell { font-size: 0.9rem; }
.services-count {
  display: block; font-weight: 700; color: var(--forest);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.services-list-inline { display: block; }

ol.action-list { padding-left: 22px; margin: 8px 0; }
ol.action-list li { margin: 8px 0; }

.faqs .faq-item { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.faqs .faq-item:last-child { border-bottom: none; }
.faqs h3 { font-family: var(--sans); margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.faqs p { margin: 0; color: var(--ink-soft); }

ol.sources-list { padding-left: 20px; margin: 0; }
ol.sources-list li { padding: 6px 0; }

/* Footer */
.site-footer {
  padding: 48px 0 64px; font-size: 0.92rem; color: var(--ink-soft);
  background: var(--paper); border-top: 1px solid var(--rule); margin-top: 64px;
}
.site-footer p { margin: 0 0 8px; }
.site-footer strong { color: var(--ink); font-weight: 700; }

/* AdSense side rails only (no in-content ads). Visible only on wide viewports
   so the main content area is never crowded. */
.ad-side-rail {
  display: none;
  position: fixed; top: 96px; z-index: 5;
  width: 160px;
}
.ad-side-rail::before {
  content: "Advertisement";
  display: block; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 6px; text-align: center;
}
.ad-side-left { left: max(16px, calc((100vw - var(--maxw)) / 2 - 180px)); }
.ad-side-right { right: max(16px, calc((100vw - var(--maxw)) / 2 - 180px)); }
@media (min-width: 1440px) {
  .ad-side-rail { display: block; }
}

.ad-slot { padding: 24px 0; }
.ad-slot .ad-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin: 0 0 8px;
}
.mt-disclosure {
  background: #fff6d6; padding: 12px 0;
  font-size: 0.9rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

/* Back-to-top */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 30;
  background: var(--forest); color: var(--green); border: none;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(22, 51, 0, 0.18);
  transition: all 0.2s ease;
}
.back-to-top.visible { display: inline-flex; }
.back-to-top:hover { background: var(--ink); transform: translateY(-2px); }

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--green); width: 0; z-index: 100;
  transition: width 0.1s ease-out;
}

/* Mobile sticky search bar */
.mobile-search-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: 12px 16px; display: none;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.05);
}
.mobile-search-bar.show { display: block; }
.mobile-search-bar-inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 2px solid var(--rule);
  border-radius: var(--r-pill); padding: 10px 20px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.96rem;
}
.mobile-search-bar-inner svg { flex-shrink: 0; }

/* Search palette (kept) */
.search-dialog { position: fixed; inset: 0; z-index: 1000; }
.search-dialog[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(14, 31, 14, 0.45); }
.search-panel {
  position: relative; max-width: 640px; margin: 80px auto 0;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}
.search-input {
  width: 100%; padding: 18px 22px; border: none; outline: none;
  font-size: 1.1rem; font-family: var(--sans); background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.search-results li a {
  display: block; padding: 12px 16px; text-decoration: none;
  border-radius: var(--r-sm); color: var(--ink);
}
.search-results li[aria-selected="true"] a,
.search-results li a:hover { background: var(--bg); color: var(--forest); }
.search-results em { font-style: normal; color: var(--ink-soft); font-size: 0.84rem; margin-left: 8px; }
.search-footer {
  padding: 12px 22px; border-top: 1px solid var(--rule);
  font-size: 0.78rem; color: var(--ink-soft); margin: 0; background: var(--bg);
}
.search-footer kbd {
  font-family: var(--mono); font-size: 0.72rem;
  background: var(--paper); padding: 2px 5px; border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}

table { max-width: 100%; }

/* Mobile-safe wide tables: any table not already wrapped scrolls horizontally */
@media (max-width: 700px) {
  table.alternatives-table,
  .home-rumours table.news-table,
  article.exchange-page table.news-table,
  article.migrate-page table.alternatives-table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    max-width: 100%; width: auto;
  }
}

/* ===================== SAFE-EU-EXCHANGES PAGE ===================== */
.safe-page { background: var(--bg); }
.safe-page .container { max-width: 1100px; }
.safe-hero { padding: 56px 0 24px !important; }
.safe-hero .kicker {
  display: inline-block; padding: 6px 14px;
  background: var(--green); color: var(--forest);
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: var(--r-pill); margin: 0 0 18px;
}
.safe-hero h1 {
  font-family: var(--sans); font-size: clamp(2.2rem, 4.6vw, 3rem);
  line-height: 1.1; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.025em;
}
.safe-hero .lede {
  font-size: 1.12rem; color: var(--ink-soft); max-width: 760px; margin: 0;
}

/* OUR PICK card */
.safe-recommendation { padding: 32px 0 16px !important; }
.reco-card {
  background: linear-gradient(135deg, var(--forest) 0%, #1f4a05 100%);
  border-radius: var(--r-lg);
  padding: 36px 40px; color: var(--paper);
  position: relative; overflow: hidden;
}
.reco-card::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; background: var(--green); opacity: 0.18;
  border-radius: 50%;
}
.reco-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: var(--forest);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: var(--r-pill);
  margin: 0 0 18px;
}
.reco-headline {
  font-family: var(--sans); font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 12px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
}
.reco-reason {
  font-size: 1.1rem; color: rgba(255,255,255,0.88); margin: 0 0 22px; max-width: 720px; line-height: 1.5;
}
.reco-bullets {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.reco-bullets li {
  padding: 14px 16px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(159, 232, 112, 0.18);
  border-radius: var(--r-md); font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}
.reco-bullets li strong { color: var(--green); font-weight: 700; }
.reco-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.reco-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; min-height: 56px;
  background: var(--green); color: var(--forest);
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  border-radius: var(--r-pill); transition: all 0.15s ease;
}
.reco-cta-primary:hover { background: var(--paper); color: var(--forest); transform: translateY(-2px); }
.reco-cta-secondary {
  display: inline-flex; align-items: center;
  padding: 16px 22px; color: var(--green); text-decoration: underline;
  font-size: 0.96rem; font-weight: 600;
}
.reco-cta-secondary:hover { color: var(--paper); }
.reco-disclosure {
  font-size: 0.82rem; color: rgba(255,255,255,0.72);
  margin: 6px 0 0; max-width: 720px;
}

/* "3 questions that matter" - horizontal comparison table (rows=questions, cols=exchanges) */
.safe-3q { padding: 48px 0; background: var(--bg); }
.safe-3q-h2 {
  font-family: var(--sans); font-size: clamp(1.8rem, 3.4vw, 2.2rem);
  margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em;
}
.safe-3q-lede {
  color: var(--ink-soft); margin: 0 0 28px; max-width: var(--maxw-text); font-size: 1.05rem;
}
.qtable-wrap {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden;
}
.qtable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qtable thead th {
  text-align: center; padding: 22px 16px;
  background: var(--bg); border-bottom: 2px solid var(--rule);
  font-family: var(--sans); font-weight: 800; vertical-align: middle;
  font-size: 1.1rem; letter-spacing: -0.01em;
}
.qtable thead .qtable-q {
  text-align: left; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); font-weight: 700; width: 32%;
}
.qtable-ex-name { display: block; }
.qtable-ex-featured {
  background: var(--green) !important; color: var(--forest);
}
.qtable-ex-subject { border-bottom-color: var(--forest) !important; }
.qtable-ex-absent .qtable-ex-name { color: var(--warn); }
.qtable-tag-subject {
  display: inline-block; margin-top: 6px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--forest); color: var(--green);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.qtable tbody th.qtable-q-cell {
  text-align: left; padding: 22px 18px; border-bottom: 1px solid var(--rule);
  background: var(--bg); width: 32%;
}
.qtable-q-title {
  display: block; font-family: var(--sans); font-size: 1rem;
  font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em;
}
.qtable-q-explain {
  display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5;
}
.qtable tbody td.qtable-val {
  text-align: center; padding: 22px 16px; border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.qtable tbody tr:last-child td,
.qtable tbody tr:last-child th { border-bottom: none; }
.qtable-val-number {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.qtable-val-winner { background: var(--green); }
.qtable-val-winner .qtable-val-number { color: var(--forest); }
.qtable-val-star {
  display: block; margin-top: 6px; color: var(--forest-soft);
  font-size: 0.9rem; font-weight: 700;
}
.qtable-val-absent { background: var(--warn-soft); }
.qtable-val-absent .qtable-val-number { color: var(--warn); font-size: 0.92rem; font-family: var(--sans); }

@media (max-width: 700px) {
  .qtable, .qtable thead, .qtable tbody, .qtable th, .qtable td, .qtable tr { display: block; }
  .qtable thead { display: none; }
  .qtable tbody tr {
    border-bottom: 1px solid var(--rule); padding: 18px 14px;
  }
  .qtable tbody tr:last-child { border-bottom: none; }
  .qtable tbody th.qtable-q-cell {
    width: auto; background: transparent; padding: 0 0 12px;
    border-bottom: none;
  }
  .qtable tbody td.qtable-val {
    padding: 10px 0; border-bottom: 1px dashed var(--rule);
    display: flex; align-items: center; justify-content: space-between;
    text-align: left;
  }
  .qtable tbody td.qtable-val::before {
    content: attr(data-label); font-weight: 700; color: var(--ink-soft);
    font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em;
  }
  .qtable-val-star { display: inline; margin-top: 0; margin-left: 6px; }
}

/* Folded dense table */
.safe-details-toggle { padding: 24px 0 48px; }
.safe-details {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 0;
}
.safe-details summary {
  padding: 22px 28px; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; color: var(--forest);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.safe-details summary::-webkit-details-marker { display: none; }
.safe-details summary::after { content: "↓"; opacity: 0.6; font-weight: 800; }
.safe-details[open] summary::after { content: "↑"; }
.safe-details-inner { padding: 4px 28px 28px; }
.safe-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  table-layout: fixed; font-size: 0.94rem;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
}
.safe-table colgroup col:nth-child(1) { width: 28%; }
.safe-table colgroup col:nth-child(2),
.safe-table colgroup col:nth-child(3),
.safe-table colgroup col:nth-child(4) { width: 24%; }

.safe-table th, .safe-table td {
  padding: 16px 18px; vertical-align: middle;
  border-bottom: 1px solid var(--rule);
}
.safe-table tr:last-child th, .safe-table tr:last-child td { border-bottom: none; }

/* Header row */
.safe-table thead th {
  background: var(--bg); padding: 24px 18px;
  text-align: center; vertical-align: middle;
  font-family: var(--sans); font-weight: 800;
  font-size: 1.18rem; letter-spacing: -0.015em;
  border-bottom: 2px solid var(--forest);
}
.safe-table thead th.row-label {
  background: transparent; text-align: left;
  font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
  border-bottom: 2px solid var(--rule);
}
.ex-header .ex-name { display: block; line-height: 1.1; margin-bottom: 6px; }
.ex-pill {
  display: inline-block; font-size: 0.68rem;
  background: var(--green); color: var(--forest);
  padding: 4px 10px; font-weight: 800; border-radius: var(--r-pill);
  letter-spacing: 0.02em; line-height: 1.3;
  max-width: 180px; white-space: normal;
}
.ex-header.ex-featured {
  background: var(--green); color: var(--forest);
  border-bottom-color: var(--forest);
}
.ex-header.ex-featured .ex-pill { background: var(--forest); color: var(--green); }
.ex-header.ex-subject { border-bottom: 3px solid var(--forest); }
.ex-header.ex-absent .ex-name { color: var(--warn); }
.ex-tag-subject {
  display: inline-block; font-size: 0.66rem;
  background: var(--forest); color: var(--green);
  padding: 3px 9px; font-weight: 800; border-radius: var(--r-pill);
  margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Row labels (left column) */
.safe-table tbody th {
  text-align: left; font-weight: 600; color: var(--ink);
  font-size: 0.94rem; background: var(--bg);
}
.safe-table tbody th .row-group {
  display: block; font-size: 0.68rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; margin-bottom: 4px;
}

/* Data cells */
.safe-table tbody td.safe-cell {
  text-align: center; font-weight: 500;
}
.safe-cell-featured { background: rgba(159, 232, 112, 0.10); }
.safe-cell-win {
  background: var(--green); color: var(--forest); font-weight: 800;
}
.safe-cell-win::after { content: " ★"; color: var(--forest-soft); }
.safe-cell-svc { font-family: var(--sans); }
.safe-cell-yes span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: var(--forest);
  font-weight: 800; font-size: 0.95rem;
}
.safe-cell-no span {
  display: inline-block; width: 28px; height: 28px; line-height: 28px;
  text-align: center; color: var(--rule-strong); font-weight: 700;
}

/* Section divider rows (visual group breaks) */
.safe-table tr.safe-section-break th,
.safe-table tr.safe-section-break td {
  background: var(--bg-edge); padding: 8px 18px;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); font-weight: 700; text-align: left;
  border-bottom: 1px solid var(--rule);
}
.q-row.q-absent .q-bar { background: var(--warn); }
.q-row.q-absent .q-value { color: var(--warn); }
.safe-cell-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--forest); font-weight: 700; font-size: 0.9rem;
}
.safe-cell-cta a:hover { text-decoration: underline; }
.services-big { display: block; font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.services-detail { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }

.safe-explainer { padding: 48px 0; }
.safe-explainer h2 {
  font-family: var(--sans); font-size: 1.5rem; margin: 28px 0 10px; font-weight: 800; letter-spacing: -0.015em;
}
.safe-explainer h2:first-child { margin-top: 0; }
.safe-explainer p { color: var(--ink-soft); margin: 0 0 12px; max-width: 780px; }
.safe-sources { padding: 40px 0 64px; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
  .browse-tiles { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header nav {
    display: none; flex-direction: column; gap: 12px;
    flex: 1 1 100%; padding-top: 14px;
  }
  .site-header nav.nav-open { display: flex; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .search-trigger { display: none; }
  .lang-switcher summary { padding: 6px 10px; font-size: 0.8rem; }

  .home-hero { padding: 36px 0 24px; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-lede { font-size: 1.05rem; }
  .checker-card { padding: 20px; border-radius: var(--r-md); }
  .checker-input-wrap input { font-size: 1rem; padding: 14px 6px 14px 0; }
  .checker-submit { padding: 0 18px; font-size: 0.96rem; }
  .checker-icon { padding: 0 12px 0 16px; }
  .browse-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .browse-tile { padding: 12px 8px; font-size: 0.88rem; }
  .trust-ribbon-list { gap: 16px 22px; }
  .trust-ribbon-list li { font-size: 0.84rem; }

  .result-inner { padding: 26px 22px 24px; border-radius: var(--r-md); }
  .result-verdict { gap: 14px; }
  .result-icon { width: 44px; height: 44px; }
  .result-verdict-text { font-size: 1.5rem; }
  .result-ctas { flex-direction: column; }
  .result-ctas a { width: 100%; text-align: center; }

  .reco-card { padding: 24px 22px; border-radius: var(--r-md); }
  .reco-headline { font-size: 1.7rem; }
  .reco-ctas { flex-direction: column; }
  .reco-cta-primary, .reco-cta-secondary { width: 100%; text-align: center; justify-content: center; }

  .q-row { grid-template-columns: 1fr; gap: 6px; }
  .q-bar-wrap { width: 100%; }
  .q-value { text-align: left; }

  .countdown-clock { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
  .home-how { padding: 48px 0; }
  .home-how h2, .safe-3q-h2 { text-align: left; }

  .sticky-verdict { right: 12px; left: 12px; top: 70px; max-width: none; }

  .mobile-search-bar.always { display: block; }

  .safe-table { font-size: 0.82rem; }
  .safe-table th, .safe-table td { padding: 8px 6px; }
  .safe-details-inner { padding: 4px 12px 18px; }
  .safe-details summary { padding: 18px 22px; font-size: 0.98rem; }
}

/* ===================== PRINT ===================== */
@media print {
  .skip-link, .nav-toggle, .theme-toggle, .search-trigger,
  .back-to-top, .reading-progress, .sticky-verdict,
  .lang-switcher, .ad-slot, .mobile-search-bar, .context-strip { display: none !important; }
  .site-header { position: static; border-bottom: 2px solid var(--ink); }
  body { color: #000; background: #fff; }
}


/* ============================================================
 * Contact form (added 13 May 2026)
 * ============================================================ */

.contact-page .container { max-width: 720px; }
.contact-hero { padding: 56px 0 24px; }
.contact-form-section { padding: 12px 0 80px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-required { color: var(--warn); margin-left: 2px; }
.form-hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-left: 4px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.4;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--forest);
}

.contact-form .form-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.form-status {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-honey {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Admin panel keeps its earlier layout. Counters + tables. */
.admin-page .container { max-width: 1080px; }
.admin-hero { padding: 40px 0 24px; }
.admin-auth { padding: 24px 0 80px; }
.admin-auth form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.admin-auth input { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; font-size: 1rem; }
.admin-panel { padding: 24px 0 80px; }
.admin-section { margin: 32px 0; }
.admin-section h2 { margin-bottom: 12px; }
.admin-section h3 { margin: 24px 0 10px; font-size: 1.05rem; }
.admin-counters { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.counter {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 12px; padding: 20px 24px; min-width: 220px;
  display: flex; flex-direction: column; gap: 4px;
}
.counter-num { font-size: 2rem; font-weight: 800; color: var(--forest); font-family: var(--sans); }
.counter-label { font-size: 0.88rem; color: var(--ink-soft); }
.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.admin-table th { background: var(--bg-edge, var(--paper)); font-weight: 700; }
.admin-msg { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.admin-msg-head { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 6px; }
.admin-msg-topic { background: var(--green); color: var(--forest); padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-msg-meta { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.admin-msg-body { font-size: 0.98rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.admin-msg-actions { display: flex; gap: 8px; margin-top: 12px; }
.badge-warn { background: var(--warn-soft, #fff0e0); color: var(--warn, #c25700); padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-ok   { background: #e6f4ec; color: #1e6a4a; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

@media (max-width: 700px) {
  .contact-form { padding: 24px; }
  .admin-counters { flex-direction: column; }
  .counter { min-width: 0; }
}
