/* =========================================================
   Onion Markets — Dark Cyber-Noir Template
   ========================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Tokens ---- */
:root {
  --bg:           #000000;
  --bg-1:         #060a08;
  --bg-card:      #0a110d;
  --bg-card-2:    #0e1612;
  --bg-card-3:    #121b16;

  --border:       #1a2620;
  --border-hi:    #2a3d34;
  --border-green: rgba(0,255,122,.22);

  --green:        #00ff7a;
  --green-2:      #1eff8c;
  --green-dim:    #00b657;
  --green-deep:   #006932;
  --green-glow:   rgba(0,255,122,.18);
  --green-soft:   rgba(0,255,122,.07);

  --amber:        #ff9a3c;
  --amber-2:      #ff7a1c;
  --amber-glow:   rgba(255,154,60,.22);

  --text:         #e8efe9;
  --text-soft:    #a3aea6;
  --text-mute:    #66726b;
  --text-dim:     #4a554f;

  --radius:       10px;
  --radius-lg:    14px;
  --radius-pill:  999px;

  --container:    1200px;
  --gap:          1.5rem;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --t-fast:       150ms cubic-bezier(.4,0,.2,1);
  --t:            240ms cubic-bezier(.4,0,.2,1);
  --t-slow:       380ms cubic-bezier(.4,0,.2,1);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Anchor offset for sticky header (works for both JS scroll and native jumps) */
section[id], div[id], h2[id], h3[id] { scroll-margin-top: 84px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Atmospheric layer: subtle noise + radial green glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(0,255,122,.06), transparent 60%),
    radial-gradient(700px 500px at 92% 8%,  rgba(0,255,122,.04), transparent 70%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

/* Make all layout sit above atmospheric layer */
header, main, section, footer, nav, article, aside, div { position: relative; z-index: 1; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); }
p  { color: var(--text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .81rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  padding: .5rem .75rem;
  border: 1px solid var(--border-green);
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  margin-bottom: inherit;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.85); } }

.text-mono   { font-family: var(--font-mono); }
.text-green  { color: var(--green); }
.text-soft   { color: var(--text-soft); }
.text-mute   { color: var(--text-mute); }
.text-small  { font-size: .875rem; }
.text-xs     { font-size: .8rem; }

/* =========================================================
   Site header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dim) 100%);
  color: #001e0d;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 18px var(--green-glow);
}
.brand-mark::after {
  content: "";
  display: block;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='12' r='3.5' fill='black' stroke='none'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='12' r='3.5' fill='black' stroke='none'/></svg>") center/contain no-repeat;
}
.brand-name .accent { color: var(--green); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--t);
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; }
.nav-toggle span::after  { content: ""; position: absolute; top:  6px; left: 0; right: 0; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  display: flex; gap: .25rem;
  align-items: center;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: .55rem .9rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 7px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-list a:hover { color: var(--green); background: var(--green-soft); }
.nav-list a.active {
  color: var(--green);
}
.nav-list a.active::after {
  content: ""; position: absolute;
  left: .9rem; right: .9rem; bottom: .3rem;
  height: 1px; background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
}

/* =========================================================
   Hero / Intro
   ========================================================= */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 0%, var(--green-soft), transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: start;
}
.hero h1 {
  margin-top: 1rem;
  max-width: 880px;
}
.hero h1 .hl { color: var(--green); }
.hero .lead {
  margin-top: 1.1rem;
  max-width: 780px;
  font-size: 1.04rem;
  color: var(--text-soft);
}
.hero .lead + .lead { margin-top: .8rem; }
.hero-aside .sidebar-card { margin-top: .25rem; }

/* =========================================================
   Stat strip
   ========================================================= */
.stats {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 50%, transparent 100%);
  opacity: .55;
}
.stat-label {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .9rem;
}
.stat-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 0 24px var(--green-glow);
}
.stat-foot {
  margin-top: .65rem;
  font-size: .82rem;
  color: var(--text-mute);
}

/* =========================================================
   Featured markets (wraps getShopsHtml output)
   ========================================================= */
.markets {
  padding: 3rem 0;
}
.section-head {
  margin-bottom: 1.6rem;
  display: flex; flex-direction: column; gap: .65rem;
}
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.section-head p { max-width: 720px; font-size: .96rem; }

/* =========================================================
   shops.php injected markup — dark theme overrides
   (shops.php emits h2.wp-block-heading + blockquote + figure.wp-block-table)
   ========================================================= */
.shops-wrap h2.wp-block-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--text);
}
.shops-wrap blockquote.pb-1 {
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-soft);
  font-style: normal;
}
.shops-wrap blockquote.pb-1 a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,255,122,.45);
}
.shops-wrap blockquote.pb-1 a u { text-decoration: none; }

.shops-wrap figure.wp-block-table {
  margin: 0 0 1.2rem;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hi);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  /* Override the blue glow that shops.php hardcodes */
  box-shadow: 0 14px 50px -22px rgba(0,255,122,.22),
              inset 0 1px 0 rgba(0,255,122,.06) !important;
}
.shops-wrap figure.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .94rem;
}
.shops-wrap figure.wp-block-table thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,255,122,.06);
  border-bottom: 1px solid var(--border-green);
  white-space: nowrap;
}
.shops-wrap figure.wp-block-table tbody td {
  padding: .85rem 1rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.shops-wrap figure.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.shops-wrap figure.wp-block-table tbody tr {
  transition: background var(--t-fast);
}
.shops-wrap figure.wp-block-table tbody tr:hover {
  background: rgba(0,255,122,.04);
}
/* Market name (col 1) */
.shops-wrap figure.wp-block-table tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
/* Established / total listings (col 2-3) — mono */
.shops-wrap figure.wp-block-table tbody td:nth-child(2),
.shops-wrap figure.wp-block-table tbody td:nth-child(3) {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text-soft);
  white-space: nowrap;
}
/* Onion Link button (col 4) */
.shops-wrap figure.wp-block-table tbody td:last-child { text-align: right; }
.shops-wrap figure.wp-block-table tbody td:last-child a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #00170a;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px -8px var(--green-glow),
              inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.shops-wrap figure.wp-block-table tbody td:last-child a::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") center/contain no-repeat;
}
.shops-wrap figure.wp-block-table tbody td:last-child a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px var(--green),
              inset 0 1px 0 rgba(255,255,255,.25);
}
/* "Updated YYYY-MM-DD" footer */
.shops-wrap > p {
  margin: .8rem 0 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-mute);
  letter-spacing: .06em;
}
.shops-wrap > p strong { color: var(--green); font-weight: 600; }
.shops-wrap > p:empty { display: none; }

/* =========================================================
   70/30 main grid + sidebar
   ========================================================= */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: start;
}
.main-grid > .main-col > section { padding-left: 0; padding-right: 0; }
.main-grid > .main-col > section .container { padding: 0; max-width: none; }

.sidebar-col {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-card {
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.sidebar-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 50%, transparent 100%);
  opacity: .55;
}
.sidebar-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
  display: flex; align-items: center; gap: .55rem;
}
.sidebar-card h3::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Checked list (replacement for example_macro_main.html .list-check) */
.list-check {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: .55rem;
}
.list-check li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.list-check li::before {
  content: "";
  position: absolute; left: 0; top: .25rem;
  width: 16px; height: 16px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--green) 0%, var(--green-dim) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat,
    linear-gradient(180deg, var(--bg-card-3), var(--bg-card-2));
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat,
            linear-gradient(180deg, var(--bg-card-3), var(--bg-card-2));
  box-shadow: 0 0 8px var(--green-glow);
}
.list-check li a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast);
}
.list-check li a:hover { color: var(--green); }

/* Utility classes used by example block */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem !important; }
.text-muted { color: var(--text-mute); }

/* =========================================================
   Content sections
   ========================================================= */
.content-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.prose {
  max-width: 880px;
}
.prose p {
  margin-bottom: 1rem;
  font-size: .98rem;
}
.prose a { color: var(--green); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }

.two-col-list {
  display: grid; gap: .85rem 2.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;
}
.two-col-list li {
  display: flex; gap: .8rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--text-soft);
  padding: .15rem 0;
}
.two-col-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, var(--green) 0%, var(--green-dim) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat,
    linear-gradient(180deg, var(--bg-card-3), var(--bg-card-2));
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat,
            linear-gradient(180deg, var(--bg-card-3), var(--bg-card-2));
  box-shadow: 0 0 10px var(--green-glow);
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  display: flex; flex-direction: column; gap: .65rem;
  margin-top: 1.6rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.faq-item.is-open {
  border-color: var(--border-green);
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  color: var(--green);
  transition: transform var(--t), background var(--t-fast);
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; transition: transform var(--t); }
.faq-item.is-open .faq-icon { background: var(--green-soft); border-color: var(--border-green); }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-a-inner {
  padding: 0 1.2rem 1.2rem;
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-a-inner p + p { margin-top: .8rem; }

/* =========================================================
   Explore grid (4 cards)
   ========================================================= */
.explore {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}
.explore-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.6rem;
}
.explore-card {
  padding: 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), transform var(--t);
}
.explore-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-green);
}
.explore-card h3 {
  font-size: 1.02rem;
  color: var(--green);
  margin-bottom: .55rem;
  display: flex; align-items: center; gap: .5rem;
}
.explore-card h3::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 14px; height: 14px;
  background: var(--green);
  opacity: .85;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><rect x='8' y='8' width='8' height='8' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><rect x='8' y='8' width='8' height='8' fill='black'/></svg>") center/contain no-repeat;
}
.explore-card p { font-size: .9rem; color: var(--text-soft); line-height: 1.6; }

/* =========================================================
   Page-specific (single profile)
   ========================================================= */
.page-head {
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 0%, var(--green-soft), transparent 55%);
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-mute);
  margin-bottom: 1.1rem;
}
.crumbs a { color: var(--text-soft); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--green); }
.crumbs .sep { color: var(--text-dim); }
.crumbs .current { color: var(--text); }

.page-title {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  max-width: 920px;
}
.page-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  margin-top: 1.05rem;
  font-size: .85rem;
  color: var(--text-mute);
}
.page-meta .dot { color: var(--text-dim); }

/* ---- Lead-keys (keyword pills under page lead) ---- */
.lead-keys {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 780px;
}
.lead-keys a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color var(--t-fast),
              border-color var(--t-fast),
              background var(--t-fast),
              transform var(--t-fast);
}
.lead-keys a::before {
  content: "#";
  color: var(--green);
  font-weight: 600;
}
.lead-keys a:hover {
  color: var(--green);
  border-color: var(--border-green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

/* Article + cards */
.article {
  padding: 2.4rem 0 1rem;
}
.article-content {
  max-width: 880px;
}
.article-content p {
  margin-bottom: 1.05rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.article-content h2,
.article-content h3 { margin: 2rem 0 .9rem; }
.article-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
.article-content ul { margin: 1rem 0 1.5rem 0; }
.article-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.7;
}
.article-content ul li::before {
  content: ""; position: absolute; left: 0; top: .65rem;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--green-glow);
}
.article-content ol { counter-reset: step; margin: 1.2rem 0; }
.article-content ol li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 1.1rem;
  font-size: .98rem;
  color: var(--text-soft);
  line-height: 1.7;
  min-height: 2.4rem;
}
.article-content ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--border-green);
  border-radius: 8px;
}
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -22px rgba(0,0,0,.8);
}
.article-content a:not(.btn) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,255,122,.4);
  transition: text-decoration-color var(--t-fast);
}
.article-content a:not(.btn):hover { text-decoration-color: var(--green); }
/* Keep btn pill colors intact when nested inside article-content */
.article-content a.btn-green { color: #00170a; }
.article-content a.btn-amber { color: #1a0a00; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content em { color: var(--green-2); font-style: italic; }
.article-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .12em .4em;
  background: var(--green-soft);
  border: 1px solid var(--border-green);
  border-radius: 4px;
  color: var(--green);
}
.article-content pre {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.article-content table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .92rem;
}
.article-content th,
.article-content td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--bg-card-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green);
  font-weight: 600;
}
.article-content tr:last-child td { border-bottom: 0; }
.article-content blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
  font-style: italic;
}

.poster {
  margin: 1.6rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hi);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 60px -30px var(--green-glow);
}
.poster img { width: 100%; height: auto; display: block; }

/* ---- Onion address card ---- */
.onion-card {
  margin: 2rem auto;
  max-width: 720px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 32px -8px var(--green-glow), inset 0 1px 0 rgba(0,255,122,.08);
  text-align: center;
}
.onion-card .label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--green);
  margin-bottom: .65rem;
}
.onion-card .label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.onion-card h3 {
  font-size: 1.18rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.onion-input {
  width: 100%;
  resize: none;
  min-height: 70px;
  padding: .85rem 1rem;
  background: #04060500;
  border: 1px dashed var(--border-hi);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.55;
  letter-spacing: .01em;
  text-align: center;
  word-break: break-all;
  outline: none;
  transition: border-color var(--t-fast);
}
.onion-input:focus { border-color: var(--green); border-style: solid; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .75rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .94rem;
  letter-spacing: .02em;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #00170a;
  box-shadow: 0 8px 24px -10px var(--green-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px var(--green), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-2) 100%);
  color: #1a0a00;
  box-shadow: 0 8px 24px -10px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px var(--amber), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn:active { transform: translateY(0); }
.btn-row { margin-top: 1rem; display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.btn-copied { background: var(--green-dim); color: #001e0d; }

/* ---- CTA card ---- */
.cta-card {
  margin: 2.4rem auto;
  max-width: 720px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, var(--green-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border-green);
  box-shadow: 0 0 40px -16px var(--green-glow);
}
.cta-card .eyebrow { margin-bottom: 1rem; }
.cta-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-bottom: 1.2rem;
}

/* =========================================================
   Comment form
   ========================================================= */
.comments {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}
.comments h2 { margin-bottom: 1.4rem; }
.comment-form {
  max-width: 720px;
  display: grid; gap: 1rem;
}
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-mute);
  margin-bottom: .4rem;
}
.field-input,
.field-textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .96rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-input:focus,
.field-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.field-textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.form-msg {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--green);
  min-height: 1.2em;
}

/* Banner shown after server-side form submit (?m=ok) */
.form-banner {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.2rem;
  margin: 0 0 1.6rem;
  border-radius: var(--radius);
  font-size: .96rem;
  line-height: 1.45;
  color: var(--text);
}
.form-banner strong { color: var(--green); }
.form-banner::before {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='8 12 11 15 16 9'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='8 12 11 15 16 9'/></svg>") center/contain no-repeat;
}
.form-banner.is-ok {
  background: var(--green-soft);
  border: 1px solid var(--border-green);
  box-shadow: 0 0 24px -10px var(--green-glow);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-1) 80%);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .85rem;
  color: var(--text-mute);
}
.foot-nav {
  display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
}
.foot-nav a {
  padding: .35rem .65rem;
  border-radius: 6px;
  color: var(--text-soft);
  transition: color var(--t-fast), background var(--t-fast);
}
.foot-nav a:hover { color: var(--green); background: var(--green-soft); }
.foot-nav .sep { color: var(--text-dim); padding: 0 .25rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .stats-grid     { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .two-col-list   { grid-template-columns: 1fr; }
  .explore-grid   { grid-template-columns: repeat(2, 1fr); }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 1rem; }

  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: 1rem;
    background: #000;
    border-bottom: 1px solid var(--border-hi);
    box-shadow: 0 14px 40px -10px rgba(0,0,0,.85);
    transform: translateY(-105%);
    transition: transform var(--t), visibility 0s linear var(--t);
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
  }
  .nav-list.is-open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform var(--t), visibility 0s linear 0s;
  }
  .nav-list a { padding: .85rem 1rem; font-size: 1rem; }
  .nav-list a.active::after { display: none; }

  .hero { padding: 2.5rem 0 1.8rem; }
  .stats { padding: 1.8rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.1rem 1.2rem; }

  .markets, .content-section, .faq, .explore, .comments { padding: 2.2rem 0; }

  .explore-grid { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; }

  .article-content ol li { padding-left: 3rem; }
  .article-content ol li::before { width: 2.2rem; height: 2.2rem; font-size: .92rem; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.05rem; }
  .site-header .container { min-height: 58px; }
  .nav-list { top: 58px; }

  .hero h1   { font-size: 1.7rem; }
  h2         { font-size: 1.3rem; }
  .stat-value{ font-size: 2rem; }

  .faq-q     { font-size: .95rem; padding: .85rem 1rem; }
  .faq-icon  { width: 24px; height: 24px; }
  .faq-icon::before { width: 10px; }
  .faq-icon::after  { height: 10px; }
  .faq-a-inner { padding: 0 1rem 1rem; }

  .onion-card, .cta-card { padding: 1.3rem 1rem; }
  .onion-input { font-size: .82rem; min-height: 90px; }
  .btn { font-size: .85rem; padding: .7rem 1.2rem; }

  .site-footer .container { flex-direction: column; text-align: center; gap: .8rem; }
}

/* ---- Utility ---- */
.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;
}
