:root {
  --bg-page: #faf8f5;
  --bg-header: #ffffff;
  --bg-footer: #2a2520;
  --text-primary: #2d2926;
  --text-secondary: #6b6560;
  --accent: #e59019;
  --accent-dark: #c47a10;
  --border: #d9d3cc;
  --surface: #f5f1ec;
  --content-width: 830px;
  --section-gap: 4rem;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Bebas Neue', sans-serif;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(45,41,38,0.06);
  --shadow-md: 0 2px 8px rgba(45,41,38,0.08);
}

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

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

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

/* ========================================
   HEADER
   ======================================== */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.site-logo img {
  width: 180px;
  height: auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.header-badge {
  background: var(--surface);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.header-trust {
  color: var(--accent-dark);
  white-space: nowrap;
}

/* ========================================
   GENERAL TYPOGRAPHY
   ======================================== */

h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: #ffffff;
  text-align: left;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

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

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

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

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

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

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

figure {
  margin: 1.5em auto;
}

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

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

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

/* ========================================
   LAYOUT — SECTIONS
   ======================================== */

main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  margin-top: var(--section-gap);
}

[data-content]:first-child {
  margin-top: 0;
}

[data-content] + [data-content] h3:first-child {
  margin-top: 0;
}

/* ========================================
   COMPONENTS — info-box
   ======================================== */

.info-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================
   COMPONENTS — callout
   ======================================== */

.callout {
  background: rgba(229, 144, 25, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ========================================
   COMPONENTS — key-takeaway
   ======================================== */

.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
  margin: 2rem 0;
}

.key-takeaway p {
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0;
}

/* ========================================
   COMPONENTS — fun-fact
   ======================================== */

.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.fun-fact::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.fun-fact p {
  text-align: left;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================
   COMPONENTS — glossary-term
   ======================================== */

.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.25rem 0;
}

.glossary-term p {
  margin-bottom: 0;
  text-align: left;
}

.glossary-term strong {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.glossary-term p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ========================================
   COMPONENTS — odds-example
   ======================================== */

.odds-example {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.odds-example table {
  margin-bottom: 0.75rem;
}

.odds-example th {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: transparent;
  border-bottom: 2px solid var(--accent);
  text-align: center;
  vertical-align: middle;
}

.odds-example td {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: center;
}

.odds-example tr:last-child td {
  border-bottom: none;
}

.odds-example > p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 0;
}

.odds-example > p em {
  font-style: italic;
}

/* ========================================
   COMPONENTS — comparison
   ======================================== */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison > div {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
}

.comparison > div:first-child {
  border-right: 3px solid var(--accent);
}

.comparison > div p {
  text-align: left;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

.comparison > div p strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  text-align: center;
}

/* ========================================
   COMPONENTS — pre-bet-checklist
   ======================================== */

.pre-bet-checklist {
  margin: 2rem 0;
}

.pre-bet-checklist > p {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  color: var(--text-primary);
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.75rem;
  top: 0;
  color: var(--accent);
  font-size: 1rem;
  background: var(--bg-page);
  padding: 0 2px;
}

.pre-bet-checklist li:last-child {
  margin-bottom: 0;
}

/* ========================================
   COMPONENTS — at-a-glance
   ======================================== */

.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.at-a-glance > div {
  padding: 1rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

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

.at-a-glance > div p {
  text-align: center;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.at-a-glance > div p:first-child {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.at-a-glance > div p:last-child {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ========================================
   COMPONENTS — worked-example
   ======================================== */

.worked-example {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
}

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

.worked-example p:last-child {
  margin-bottom: 0;
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* ========================================
   COMPONENTS — section-bridge
   ======================================== */

.section-bridge {
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
  padding: 0.5rem 0;
}

.section-bridge p {
  text-align: center;
  font-style: italic;
  color: var(--accent-dark);
  font-size: 0.92rem;
  margin-bottom: 0;
  display: inline;
}

.section-bridge::before,
.section-bridge::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  background: var(--border);
}

.section-bridge::before {
  right: calc(50% + 10rem);
}

.section-bridge::after {
  left: calc(50% + 10rem);
}

/* ========================================
   COMPONENTS — dos-donts
   ======================================== */

.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dos-donts > div {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
}

.dos-donts > div:first-child {
  border-right: 1px solid var(--border);
}

.dos-donts > div p {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.dos-donts > div:first-child p {
  color: #3d7a4a;
}

.dos-donts > div:last-child p {
  color: #a63d3d;
}

.dos-donts ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.dos-donts li {
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.dos-donts > div:first-child li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #3d7a4a;
  font-weight: 700;
}

.dos-donts > div:last-child li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: #a63d3d;
  font-weight: 700;
}

/* ========================================
   COMPONENTS — card-grid
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.card-grid > div {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-grid > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-grid > div p {
  text-align: left;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.card-grid > div p strong {
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 0.3rem;
}

/* ========================================
   COMPONENTS — tldr
   ======================================== */

.tldr {
  background: var(--surface);
  border-left: 4px solid var(--accent-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.tldr h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--accent-dark);
  text-align: left;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.tldr ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.tldr li {
  text-align: left;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.tldr li:last-child {
  margin-bottom: 0;
}

/* ========================================
   COMPONENTS — author-bio
   ======================================== */

.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ========================================
   TOC
   ======================================== */

[data-content="toc"] {
  margin-top: 2.5rem;
}

.toc-card {
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
  text-align: left;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  column-count: 2;
  column-gap: 2.5rem;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

.toc-list > li > a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-list > li > a:hover {
  color: var(--accent);
}

.toc-sublist {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.toc-sublist li {
  margin-bottom: 0.3rem;
}

.toc-sublist a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ========================================
   HERO SECTION
   ======================================== */

[data-content="hero"] {
  max-width: 100%;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(229, 144, 25, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"] > * {
  position: relative;
  z-index: 1;
}

[data-content="hero"] .hero-rubric {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  text-align: center;
}

[data-content="hero"] h1 {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 1rem;
}

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

[data-content="hero"] .hero-byline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

[data-content="hero"] .hero-byline span {
  font-weight: 600;
  color: var(--text-primary);
}

[data-content="hero"] figure {
  margin: 0 auto;
  max-width: var(--content-width);
}

[data-content="hero"] figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ========================================
   FAQ SECTION
   ======================================== */

[data-content="faq"] details {
  border-bottom: 1px solid var(--border);
  interpolate-size: allow-keywords;
}

[data-content="faq"] details:first-of-type {
  border-top: 1px solid var(--border);
}

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

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

[data-content="faq"] summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  content: "\2013";
}

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

[data-content="faq"] details::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, block-size 0.35s ease, content-visibility 0.35s ease allow-discrete;
}

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

@supports not selector(::details-content) {
  [data-content="faq"] details > div {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }
  [data-content="faq"] details[open] > div {
    max-height: 500px;
    opacity: 1;
  }
}

[data-content="faq"] details > div {
  padding-bottom: 1.1rem;
}

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

/* FAQ inner glossary-term */
[data-content="faq"] .glossary-term {
  margin-top: 0.75rem;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 2rem;
}

.back-to-top:hover {
  background: var(--surface);
  color: var(--accent);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--bg-footer);
  color: #c8c0b8;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: var(--section-gap);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e8e2db;
  margin-bottom: 0.85rem;
}

.footer-col p {
  text-align: left;
  color: #a09890;
  font-size: 0.75rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

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

.footer-col a {
  color: #c8c0b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.75rem;
}

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

.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
  text-align: left;
}

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200,192,184,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: #d9cdc1;
  font-size: 0.7rem;
  margin-bottom: 0;
  text-align: center;
}

.footer-logo img {
  width: 120px;
  height: auto;
  opacity: 0.7;
  filter: brightness(2);
  transition: opacity 0.2s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

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

@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content="hero"] {
    padding: 2.5rem 1rem 2rem;
  }

  .site-header {
    padding: 0.6rem 1rem;
  }

  .header-meta {
    gap: 0.5rem;
    font-size: 0.6rem;
  }

  .toc-list {
    column-count: 1;
  }

  .toc-card {
    padding: 1.25rem 1.5rem;
  }

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

  .comparison > div:first-child {
    border-right: none;
    border-bottom: 3px solid var(--accent);
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .dos-donts > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }

  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .at-a-glance > div:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .odds-example {
    padding: 1rem;
  }

  .tldr {
    padding: 1.25rem 1.5rem;
  }

  .section-bridge::before,
  .section-bridge::after {
    display: none;
  }

  .worked-example {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }

  .at-a-glance > div {
    border-bottom: 1px solid var(--border);
  }

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

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

  .site-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

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

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

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Fixes */
.site-logo img {
    max-height: 55px; 
    width: auto !important; 
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* Desktop Menu */
.site-nav--desktop {
    display: none; 
}

/* Desktop Grid Layout: Logo left, Menu center */
@media (min-width: 1024px) {
    .top-navigation-bar {
        max-width: 100%;
        padding: 15px 40px; 
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .site-logo {
        grid-column: 1;
        justify-self: start; 
        margin: 0;
    }

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; 
    }

    .mobile-controls {
        display: none; 
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text, #ffffff);
        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, #eab308);
    }
}

/* 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, #ffffff);
    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%; 
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg, #121212);
    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; 
}

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

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

.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, #ffffff);
    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, #eab308);
    padding-left: 10px; 
}

/* 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); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

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

#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(13, 11, 11);
}
