/* ===== 1. CSS VARIABLES & RESET ===== */
:root {
  --color-bg: #F8F7F4;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-accent: #2D8A4E;
  --color-accent-hover: #1F6B3A;
  --color-surface: #EEECE7;
  --color-border: #D1CFC9;
  --color-hero-bg: #FFFFFF;
  --color-success: #2D8A4E;
  --color-danger: #C0392B;
  --color-calc-bg: #F2F1ED;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --content-width: 720px;
  --wide-width: 900px;
  --section-gap: clamp(60px, 8vw, 120px);
  --sidebar-width: 220px;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141413;
    --color-text: #E8E6E1;
    --color-text-secondary: #9A9890;
    --color-accent: #3FAF66;
    --color-accent-hover: #5CC77E;
    --color-surface: #1E1E1C;
    --color-border: #3A3935;
    --color-hero-bg: #1A1A18;
    --color-calc-bg: #1C1C1A;
}



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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 2. GENERAL TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2.4rem, 5vw + 1rem, 3.5rem);
  line-height: 1.1;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  line-height: 1.2;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.35rem);
  line-height: 1.35;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  text-align: left;
}

li {
  margin-bottom: 0.5em;
  text-align: left;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: left;
}

figure {
  margin: 2em 0;
  max-width: 100%;
}

figcaption {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.75em;
  letter-spacing: 0.02em;
}

.hero-image {
  margin: 0;
}

.hero-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

/* ===== 3. LAYOUT — MAIN & DATA-CONTENT ===== */
header {
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
  max-width: calc(var(--sidebar-width) + var(--wide-width) + 80px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

[data-content] {
  grid-column: 2;
  max-width: var(--content-width);
  width: 100%;
  padding: 0;
}

[data-content] + [data-content] {
  margin-top: var(--section-gap);
}

[data-content] h2 {
  margin-bottom: 1em;
}

[data-content] h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

/* Hero full-bleed override */
[data-content="hero"] {
  grid-column: 1 / -1;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  margin-top: 0;
}

/* TOC goes in sidebar column */
[data-content="toc"] {
  grid-column: 1;
  grid-row: 2 / 30;
  max-width: none;
  width: var(--sidebar-width);
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 0;
  margin-top: var(--section-gap);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

[data-content="toc"]::-webkit-scrollbar {
  width: 4px;
}

[data-content="toc"]::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 2px;
}

[data-content="toc"]::-webkit-scrollbar-track {
  background: transparent;
}

/* Wide components */
[data-content="casino-comparison"],
[data-content="crypto-payments"] {
  max-width: var(--wide-width);
}

@media (max-width: 900px) {
  main {
    display: block;
    padding: 0 clamp(16px, 4vw, 24px);
  }

  [data-content] {
    max-width: 100%;
  }

  [data-content="hero"] {
    width: 100vw;
    margin-left: calc(-1 * clamp(16px, 4vw, 24px));
  }

  [data-content="toc"] {
    position: static;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    margin-top: var(--section-gap);
  }

  [data-content="casino-comparison"],
  [data-content="crypto-payments"] {
    max-width: 100%;
  }
}

/* ===== 4. COMPONENT STYLES ===== */

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  margin: 2em 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-box p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  font-weight: 600;
  color: var(--color-text);
}

/* --- calc-example --- */
.calc-example {
  background: var(--color-calc-bg);
  border: 1px solid var(--color-border);
  padding: 28px 32px;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.calc-example::before {
  content: 'CALCULATION';
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.calc-example p {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
  padding-bottom: 0.75em;
  border-bottom: 1px dotted var(--color-border);
}

.calc-example p:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.calc-example strong {
  font-weight: 400;
  color: var(--color-text);
  font-family: var(--font-mono);
}

/* --- callout --- */
.callout {
  background: transparent;
  border: 2px solid var(--color-accent);
  padding: 20px 24px;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.callout p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
}

.callout p:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  font-weight: 600;
  color: var(--color-text);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 2em 0;
}

.card-grid > div {
  background: var(--color-hero-bg);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-grid > div:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.card-grid p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

.card-grid p:last-child {
  margin-bottom: 0;
}

.card-grid strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* --- at-a-glance --- */
.at-a-glance {
  display: flex;
  gap: 0;
  margin: 2em 0;
  overflow-x: auto;
}

.at-a-glance > div {
  min-width: 180px;
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--color-border);
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.35em;
}

.at-a-glance p:last-child {
  margin-bottom: 0;
}

.at-a-glance strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

@media (max-width: 700px) {
  .at-a-glance {
    flex-direction: column;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    min-width: auto;
  }
  .at-a-glance > div:last-child {
    border-bottom: none;
  }
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 20px;
  margin: 2em 0;
  border-left: 3px solid var(--color-border);
}

.fun-fact p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dos-donts > div {
  padding: 24px;
}

.dos-donts > div:first-child {
  background: rgba(45, 138, 78, 0.08);
  border-left: 4px solid var(--color-success);
}

.dos-donts > div:last-child {
  background: rgba(192, 57, 43, 0.08);
  border-left: 4px solid var(--color-danger);
}

.dos-donts p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
}

.dos-donts strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.dos-donts ul {
  padding-left: 1.2em;
  margin-bottom: 0;
}

.dos-donts li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  .dos-donts {
    grid-template-columns: 1fr;
  }
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2.5em 0;
  padding: 20px 0;
  position: relative;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--color-border);
}

.section-bridge::before {
  top: 0;
}

.section-bridge::after {
  bottom: 0;
}

.section-bridge p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: #888888;
  text-align: center;
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .section-bridge p {
    color: #777777;
  }
}

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 2em 0;
  padding-left: 0;
}

.pre-game-checklist > p:first-child,
.pre-game-checklist > p > strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-align: left;
  margin-bottom: 1em;
}

.pre-game-checklist ul {
  list-style: none;
  padding-left: 24px;
  margin-bottom: 0;
  border-left: 2px solid var(--color-border);
}

.pre-game-checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.75em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
}

.pre-game-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -2px;
  top: 0;
  color: var(--color-accent);
  font-size: 1.1rem;
  background: var(--color-bg);
  padding: 0 4px;
  margin-left: -14px;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
  margin: 2em 0;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}

.glossary-term .term {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.glossary-term .definition {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 500px) {
  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 2em 0;
}

.comparison > div {
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

.comparison p:last-child {
  margin-bottom: 0;
}

.comparison strong {
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: 32px;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.worked-example p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
}

.worked-example p:last-child {
  margin-bottom: 0;
}

.worked-example strong {
  font-weight: 600;
  color: var(--color-text);
}

.worked-example .mono {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
}

/* ===== 5. HERO SECTION ===== */
[data-content="hero"] {
  background: var(--color-hero-bg);
  padding: clamp(48px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 80px);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

[data-content="hero"] .hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

[data-content="hero"] h1 {
  max-width: 800px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

[data-content="hero"] .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

[data-content="hero"] .hero-divider {
  width: 60px;
  margin: 0 auto 1.5rem;
  border-top: 2px solid var(--color-accent);
}

[data-content="hero"] .hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

[data-content="hero"] .hero-meta time {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

[data-content="hero"] .hero-meta .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 10px;
}

[data-content="hero"] figure.hero-image {
  max-width: 900px;
  margin: 0 auto;
}

[data-content="hero"] figure.hero-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

[data-content="hero"] .start-reading {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-decoration: none;
  border: 1px solid var(--color-accent);
  padding: 10px 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

[data-content="hero"] .start-reading:hover {
  background: var(--color-accent);
  color: var(--color-hero-bg);
}

/* ===== 5b. TOC SIDEBAR STYLES ===== */
[data-content="toc"] nav {
  font-family: var(--font-body);
}

[data-content="toc"] nav > ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

[data-content="toc"] nav > ul > li {
  margin-bottom: 0.75em;
}

[data-content="toc"] nav > ul > li > a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.3;
  display: block;
}

[data-content="toc"] nav > ul > li > a:hover {
  color: var(--color-accent);
}

[data-content="toc"] nav > ul > li > ul {
  list-style: none;
  padding-left: 12px;
  margin: 0.35em 0 0 0;
}

[data-content="toc"] nav > ul > li > ul > li {
  margin-bottom: 0.35em;
}

[data-content="toc"] nav > ul > li > ul > li > a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
  display: block;
}

[data-content="toc"] nav > ul > li > ul > li > a:hover {
  color: var(--color-accent);
}

/* ===== 6. FAQ — DETAILS/SUMMARY ===== */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

[data-content="faq"] details + details {
  margin-top: 0;
}

[data-content="faq"] summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1.25em 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text);
  list-style: none;
  transition: color 0.2s ease;
}

[data-content="faq"] summary::-webkit-details-marker {
  display: none;
}

[data-content="faq"] summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

[data-content="faq"] details[open] > summary::after {
  transform: rotate(45deg);
}

[data-content="faq"] summary:hover {
  color: var(--color-accent);
}

[data-content="faq"] summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern animation: ::details-content */
@supports selector(::details-content) {
  [data-content="faq"] details ::details-content {
    transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
    opacity: 0;
    block-size: 0;
    overflow: clip;
  }

  [data-content="faq"] details[open] ::details-content {
    opacity: 1;
    block-size: auto;
  }
}

/* Fallback */
@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  [data-content="faq"] details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
}

[data-content="faq"] details > div {
  padding: 0 0 1.25em 0;
}

[data-content="faq"] details > div > p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
}

/* ===== 8. MEDIA QUERIES ===== */
@media (max-width: 900px) {
  [data-content="hero"] {
    width: 100vw;
    margin-left: calc(-1 * clamp(16px, 4vw, 24px));
    padding: clamp(32px, 6vw, 60px) clamp(16px, 4vw, 24px) clamp(28px, 5vw, 48px);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  body {
    font-size: 1rem;
  }
}

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navigation-bar {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
    padding: 15px var(--component-padding, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep mobile burger on the right */
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 769px) {
    .top-navigation-bar {
        justify-content: center; /* Center the desktop menu */
    }

    .site-nav--desktop {
        display: block;
    }
    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent);
    }
}

/* --- MOBILE BURGER BUTTON --- */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE MENU SLIDER --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; /* Slide in */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Footer Base Styles */
.site-footer {
    background-color: #0b0f19; /* Deep tech/crypto dark blue */
    color: #94a3b8; /* Slate gray text */
    padding: 60px 20px 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 2px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Full-width Disclaimer */
.footer-disclaimer {
    font-size: 0.85rem;
    line-height: 1.6;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 30px;
    margin-bottom: 40px;
    color: #64748b;
    text-align: justify;
}

.footer-disclaimer a {
    color: #0ea5e9; /* Light cyan accent for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-disclaimer a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* 4-Column Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 45px;
}

/* Responsive breakpoints */
@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Headings */
.footer-heading {
    color: #f8fafc;
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Lists and Links */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Subtle dash before list items */
.footer-list li::before {
    content: "—";
    color: #334155;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Remove prefix for the WP dynamic menu if needed */
.footer-wp-menu li::before {
    display: none;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #0ea5e9; /* Cyan hover */
    padding-left: 4px; /* Slight right shift on hover for modern feel */
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom p {
  text-align: center;
  color: #d2d6de;
}