:root {
  color-scheme: dark;

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

  --color-accent: #2E7D32;
  --color-accent-light: #1B3A1B;

  --color-bg: #121212;
  --color-bg-hero: #1A2E1A;

  --color-text: #E8E8E8;
  --color-text-secondary: #A0A0A0;

  --color-surface: #1E1E1E;
  --color-border: #3A3A3A;

  --color-danger: #C62828;
  --color-danger-light: #3A1A1A;

  --color-success: #2E7D32;
  --color-success-light: #1B3A1B;

  --content-width: 780px;
  --wide-width: 1100px;
  --section-gap: clamp(64px, 8vw, 120px);
  --component-padding: 24px;

  --h1-size: clamp(32px, 5vw, 56px);
  --h2-size: clamp(24px, 3vw, 36px);
  --h3-size: clamp(18px, 2vw, 24px);
  --body-size: clamp(16px, 1.1vw, 18px);
}

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

/* ========================
   2. General Typography
   ======================== */
body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h1-size);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--h2-size);
  line-height: 1.15;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 1em;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.2em;
  color: var(--color-text);
}

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

a:hover {
  opacity: 0.75;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

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

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

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

/* ========================
   3. Layout — Sections
   ======================== */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

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

[data-content] + [data-content] {
  /* consistent vertical rhythm handled by padding-bottom on each section */
}

/* ========================
   4. Components
   ======================== */

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

.info-box p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
  background: transparent;
}

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

.info-box p strong:first-child {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

@media (prefers-color-scheme: dark) {
  .info-box {
    background: var(--color-surface);
    border-left-color: var(--color-accent);
  }
  .info-box p {
    color: var(--color-text);
  }
  .info-box p strong:first-child {
    color: var(--color-accent);
  }
}

/* --- odds-example --- */
.odds-example {
  background: #1A1A1A;
  padding: 32px;
  border-radius: 4px;
  margin: 2em 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.odds-example p {
  text-align: left;
  color: #CCCCCC;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  background: transparent;
  margin-bottom: 0.75em;
}

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

.odds-example p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.odds-example table {
  width: 100%;
  margin: 16px 0;
}

.odds-example th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A0A0A0;
  background: transparent;
  border-bottom: 1px solid #333;
  padding: 10px 16px;
}

.odds-example td {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 28px;
  color: #2E7D32;
  background: transparent;
  border-bottom: 1px solid #2A2A2A;
  padding: 14px 16px;
}

.odds-example tr td:first-child {
  font-family: var(--font-body);
  font-size: 14px;
  color: #CCCCCC;
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0D0D0D;
  }
  .odds-example p {
    color: #CCCCCC;
  }
  .odds-example p strong {
    color: #FFFFFF;
  }
  .odds-example th {
    color: #A0A0A0;
    border-bottom-color: #333;
  }
  .odds-example td {
    color: #2E7D32;
    border-bottom-color: #222;
  }
  .odds-example tr td:first-child {
    color: #CCCCCC;
  }
}

/* --- callout --- */
.callout {
  background: transparent;
  border: 2px solid var(--color-border);
  padding: 24px;
  border-radius: 0;
  margin: 2em 0;
  position: relative;
  padding-left: 56px;
}

.callout::before {
  content: '!';
  position: absolute;
  left: 20px;
  top: 22px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-secondary);
  line-height: 1;
}

.callout p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  margin-bottom: 0.5em;
}

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

.callout p strong {
  color: var(--color-text);
}

.callout--warning {
  border-color: var(--color-danger);
  background: var(--color-danger-light);
}

.callout--warning::before {
  color: var(--color-danger);
}

@media (prefers-color-scheme: dark) {
  .callout {
    border-color: var(--color-border);
  }
  .callout p {
    color: var(--color-text);
  }
  .callout--warning {
    border-color: var(--color-danger);
    background: var(--color-danger-light);
  }
  .callout--warning p {
    color: var(--color-text);
  }
}

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

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

.card-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-grid p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  margin-bottom: 0.5em;
}

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

.card-grid p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
}

@media (prefers-color-scheme: dark) {
  .card-grid > div {
    background: var(--color-surface);
    border-color: var(--color-border);
  }
  .card-grid p {
    color: var(--color-text);
  }
}

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

.comparison::after {
  content: 'VS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  padding: 8px 10px;
  border-radius: 50%;
  line-height: 1;
  z-index: 1;
}

.comparison > div {
  background: var(--color-surface);
  padding: 28px 24px;
}

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

.comparison p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  margin-bottom: 0.75em;
}

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

.comparison p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .comparison::after {
    top: auto;
    left: 50%;
    transform: translate(-50%, 0);
    top: calc(50% - 14px);
  }
}

@media (prefers-color-scheme: dark) {
  .comparison > div {
    background: var(--color-surface);
  }
  .comparison > div:first-child {
    border-right-color: var(--color-border);
  }
  .comparison::after {
    background: var(--color-surface);
    color: var(--color-text-secondary);
  }
  .comparison p {
    color: var(--color-text);
  }
}

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

.key-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .key-takeaway {
    border-top-color: var(--color-accent);
  }
  .key-takeaway p {
    color: var(--color-text);
  }
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 20px;
  margin: 2em 0;
}

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

.fun-fact p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: left;
  background: transparent;
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .fun-fact::before {
    color: var(--color-accent);
  }
  .fun-fact p {
    color: var(--color-text-secondary);
  }
}

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

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

.glossary-term span {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  font-size: 15px;
}

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

@media (prefers-color-scheme: dark) {
  .glossary-term strong {
    color: var(--color-accent);
  }
  .glossary-term span {
    color: var(--color-text-secondary);
  }
}

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

.dos-donts > div:first-child {
  background: #E8F5E9;
  padding: 24px;
}

.dos-donts > div:last-child {
  background: #FFEBEE;
  padding: 24px;
}

.dos-donts p {
  text-align: left;
  background: transparent;
  margin-bottom: 12px;
}

.dos-donts > div:first-child p strong {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: #2E7D32;
}

.dos-donts > div:last-child p strong {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: #C62828;
}

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

.dos-donts > div:first-child li {
  font-family: var(--font-body);
  font-size: 15px;
  color: #1A1A1A;
  text-align: left;
  background: transparent;
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 10px;
}

.dos-donts > div:first-child li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #2E7D32;
  font-weight: 700;
}

.dos-donts > div:last-child li {
  font-family: var(--font-body);
  font-size: 15px;
  color: #1A1A1A;
  text-align: left;
  background: transparent;
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 10px;
}

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

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

@media (prefers-color-scheme: dark) {
  .dos-donts > div:first-child {
    background: #1B3A1B;
  }
  .dos-donts > div:last-child {
    background: #3A1A1A;
  }
  .dos-donts > div:first-child p strong {
    color: #4CAF50;
  }
  .dos-donts > div:last-child p strong {
    color: #EF5350;
  }
  .dos-donts > div:first-child li {
    color: var(--color-text);
  }
  .dos-donts > div:first-child li::before {
    color: #4CAF50;
  }
  .dos-donts > div:last-child li {
    color: var(--color-text);
  }
  .dos-donts > div:last-child li::before {
    color: #EF5350;
  }
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 2em 0;
}

.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.pre-bet-checklist p {
  text-align: left;
  background: transparent;
  margin-bottom: 0;
}

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

.pre-bet-checklist li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 18px;
  background: var(--color-bg);
  margin-left: -37px;
  padding: 0 4px;
}

@media (prefers-color-scheme: dark) {
  .pre-bet-checklist p strong {
    color: var(--color-accent);
  }
  .pre-bet-checklist li {
    color: var(--color-text);
  }
  .pre-bet-checklist li::before {
    background: var(--color-bg);
    color: var(--color-accent);
  }
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 2em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.at-a-glance > div {
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

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

.at-a-glance p:first-child {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 8px;
}

.at-a-glance p {
  font-family: var(--font-body);
  font-size: 14px;
  text-align: center;
  color: var(--color-text-secondary);
  background: transparent;
  line-height: 1.5;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child {
    border-bottom: none;
  }
}

@media (prefers-color-scheme: dark) {
  .at-a-glance {
    border-color: var(--color-border);
  }
  .at-a-glance > div {
    border-right-color: var(--color-border);
  }
  .at-a-glance p:first-child {
    color: var(--color-text);
  }
  .at-a-glance p {
    color: var(--color-text-secondary);
  }
}

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

.worked-example p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  margin-bottom: 0.75em;
}

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

.worked-example p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent);
}

.worked-example p + p:not(:last-child) {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--color-text);
}

.worked-example hr {
  border: none;
  text-align: center;
  margin: 16px 0;
}

.worked-example hr::after {
  content: '\2192';
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  .worked-example {
    background: var(--color-surface);
  }
  .worked-example p {
    color: var(--color-text);
  }
  .worked-example p strong {
    color: var(--color-accent);
  }
}

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

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 16px;
}

.section-bridge::after {
  margin: 16px auto 0;
}

.section-bridge p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
  background: transparent;
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .section-bridge::before,
  .section-bridge::after {
    background: var(--color-border);
  }
  .section-bridge p {
    color: var(--color-text-secondary);
  }
}

/* ========================
   5. Hero Section
   ======================== */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-bg-hero);
  padding: clamp(48px, 8vw, 100px) 24px clamp(24px, 4vw, 40px);
  text-align: center;
  position: relative;
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 20px;
}

[data-content="hero"] h1 {
  max-width: 900px;
  margin: 0 auto 24px;
}

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

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 40px;
  border: none;
}

.hero-meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

.hero-meta time {
  display: inline;
}

.badge-updated {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 12px;
  vertical-align: middle;
}

[data-content="hero"] figure {
  max-width: var(--wide-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

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

@media (prefers-color-scheme: dark) {
  [data-content="hero"]::after {
    background: linear-gradient(to bottom, transparent, var(--color-bg));
  }
}

/* ========================
   5b. TOC — Grid 2-column
   ======================== */
[data-content="toc"] {
  max-width: var(--content-width);
  padding-top: var(--section-gap);
}

.toc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.toc-list {
  column-count: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 20px;
}

.toc-list > li > a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.toc-list > li > a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.toc-sub {
  list-style: none;
  padding: 6px 0 0 16px;
  margin: 0;
  border-left: 1px solid var(--color-border);
}

.toc-sub li {
  margin-bottom: 6px;
}

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

.toc-sub a:hover {
  color: var(--color-accent);
  opacity: 1;
}

@media (max-width: 600px) {
  .toc-list {
    column-count: 1;
  }
}

/* ========================
   5c. Buttons — Start Reading / Back to Top
   ======================== */
.btn-start-reading {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 12px 28px;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-top: 12px;
}

.btn-start-reading:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn-start-reading:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.btn-back-to-top {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease;
  margin-top: 1em;
}

.btn-back-to-top::before {
  content: '\2191 ';
}

.btn-back-to-top:hover {
  color: var(--color-accent);
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .btn-start-reading {
    color: #FFFFFF;
    background: var(--color-accent);
  }
}

/* ========================
   6. FAQ Accordion
   ======================== */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: '';
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
}

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

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

/* Modern ::details-content animation */
details {
  interpolate-size: allow-keywords;
}

::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

details[open] > div > p,
details[open] > div {
  padding-bottom: 20px;
}

details[open] > div > p {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
}


/* ========================
   8. Media Queries
   ======================== */
@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
    --component-padding: 16px;
  }

  [data-content] {
    padding-left: 16px;
    padding-right: 16px;
  }

  [data-content="hero"] {
    padding-left: 16px;
    padding-right: 16px;
  }

  .odds-example {
    padding: 20px;
  }

  .odds-example td {
    font-size: 20px;
    padding: 10px 12px;
  }

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

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

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

@media (max-width: 480px) {
  [data-content="hero"] h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

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

  .hero-meta {
    font-size: 12px;
  }

  .badge-updated {
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Header container styling */
.site-header {
    background-color: #141414; /* Dark background matching your theme */
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border at the bottom */
}

/* Flexbox layout for the navigation bar */
.top-navigation-bar {
    display: flex;
    justify-content: center; /* Centers the menu horizontally */
    align-items: center;
    max-width: 1200px; /* Limits the maximum width */
    margin: 0 auto; /* Centers the container */
}

/* Main desktop menu list */
.menu-desktop {
    list-style-type: none; /* Removes default bullets */
    margin: 0;
    padding: 0;
    display: flex; /* Makes the list items display horizontally */
    gap: 40px; /* Space between each menu item */
    align-items: center;
}

/* Individual list items */
.menu-desktop li {
    margin: 0;
    padding: 0;
}

/* Link styling */
.menu-desktop a {
    color: #3f9b45; /* Green color matching your text */
    text-decoration: none; /* Removes default link underline */
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase; /* Makes text uppercase for a modern look */
    letter-spacing: 0.5px;
    position: relative; /* Required for the hover pseudo-element */
    padding: 5px 0;
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Hover state for links */
.menu-desktop a:hover {
    color: #66bb6a; /* Lighter green on hover */
}

/* Animated bottom line on hover */
.menu-desktop a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Position slightly below the text */
    width: 0;
    height: 2px;
    background-color: #66bb6a; /* Line color matches hover color */
    transition: width 0.3s ease; /* Smooth width expansion */
}

/* Expand the line to full width on hover */
.menu-desktop a:hover::after {
    width: 100%;
}

/* Hide mobile controls on desktop screens */
@media screen and (min-width: 992px) {
    .mobile-controls,
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
}

/* Footer Container Styles */
.site-footer {
    background-color: #1a1a1a; /* Dark background matching your site */
    color: #cccccc;
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #333;
}

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

/* Footer Grid Layout */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Column Elements */
.footer-col-title {
    color: #4CAF50; /* Green accent color instead of yellow to match your site */
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-list,
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li,
.footer-menu-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

/* Custom bullet points for a unique style */
.footer-list li::before,
.footer-menu-list li::before {
    content: "▪";
    color: #4CAF50;
    position: absolute;
    left: 0;
    top: 0;
}

/* Red accents specifically for important warnings to stand out slightly */
.important-notes li::before {
    color: #e53935;
}
.important-notes a {
    color: #e53935;
    text-decoration: underline;
}

/* Link Styles */
.site-footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888888;
}

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

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .site-footer {
        padding: 40px 15px 20px;
    }
}

/* ==========================================================================
   Mobile Menu & Header Styles
   ========================================================================== */

/* Prevent horizontal scroll issues on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Variables for dark theme */
:root {
    --mobile-menu-bg: #1a1a1a;
    --mobile-menu-text: #cccccc;
    --mobile-menu-accent: #4CAF50;
}

/* 1. Hide mobile elements on desktop by default */
.mobile-controls,
.mobile-menu-overlay,
.mobile-menu {
    display: none; 
}

/* 2. Show desktop nav by default */
.site-nav--desktop {
    display: block;
}

/* ==========================================================================
   Mobile Breakpoint (992px)
   ========================================================================== */
@media (max-width: 992px) {
    
    /* --- Header Layout --- */
    .top-navigation-bar {
        display: flex;
        justify-content: flex-end; /* Aligns the burger to the right */
        align-items: center;
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide desktop nav on mobile screens */
    .site-nav--desktop {
        display: none;
    }

    /* Show burger icon container */
    .mobile-controls {
        display: flex;
        align-items: center;
    }

    /* --- Burger Button Styling --- */
    .burger {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0; /* Removed padding to fix squished lines */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Spreads lines evenly */
        height: 22px; /* Fixed height for the icon */
        width: 32px;  /* Fixed width for the icon */
        z-index: 1000; /* Ensure it stays on top */
    }

    /* Burger lines */
    .burger span {
        display: block;
        width: 100%;
        height: 3px; /* Slightly thicker lines */
        background-color: var(--mobile-menu-text);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        transform-origin: left center;
    }

    /* Burger Animation when active (transforms into an X) */
    .burger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(0, -2px);
    }
    .burger.is-active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    .burger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(0, 2px);
    }

    /* --- Overlay Styling --- */
    .mobile-menu-overlay {
        display: block; /* Override desktop hidden state */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998; /* Just below the menu */
    }

    /* Overlay active state */
    .mobile-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* --- Mobile Menu Drawer Styling --- */
    .mobile-menu {
        display: block; /* Override desktop hidden state */
        position: fixed;
        top: 0;
        right: 0; /* Menu slides in from the right */
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--mobile-menu-bg);
        z-index: 999;
        transform: translateX(100%); /* Hidden off-screen right by default */
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        overflow-y: auto; /* Allow scrolling */
    }

    /* Menu open state */
    .mobile-menu.is-open {
        transform: translateX(0); /* Bring on-screen */
    }

    /* --- Close Button Inside Menu --- */
    .mobile-menu__close {
        position: absolute;
        top: 20px;
        right: 25px;
        background: transparent;
        border: none;
        font-size: 40px;
        line-height: 1;
        color: var(--mobile-menu-text);
        cursor: pointer;
        transition: color 0.3s ease;
    }

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

    /* --- Mobile Menu Links Styling --- */
    .mobile-menu__inner {
        padding: 80px 30px 40px; /* Top padding clears the close button */
    }

    .menu-mobile {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-mobile li {
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
    }

    .menu-mobile li:last-child {
        border-bottom: none;
    }

    .menu-mobile a {
        color: var(--mobile-menu-text);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        display: block;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

    /* Hover effect for mobile links */
    .menu-mobile a:hover,
    .menu-mobile a:active {
        color: var(--mobile-menu-accent);
        padding-left: 10px; /* Slight indent on interaction */
    }
}

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

/* ==========================================================================
   404 Error Page Styles
   ========================================================================== */

/* Wrapper to center content vertically and horizontally */
.error-404-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Takes up at least 60% of the screen height */
    padding: 60px 20px;
    text-align: center;
    background-color: transparent; /* Inherits the dark background from body */
}

.error-404__content {
    max-width: 650px;
    margin: 0 auto;
}

/* Big green 404 numbers */
.error-404__title {
    font-size: 10rem;
    font-weight: 800;
    color: #4CAF50; /* Green matching your site's accent */
    margin: 0 0 10px;
    line-height: 1;
    text-shadow: 0px 4px 15px rgba(76, 175, 80, 0.15); /* Slight green glow */
}

/* Subtitle styling */
.error-404__subtitle {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Paragraph text */
.error-404__text {
    font-size: 1.15rem;
    color: #cccccc;
    margin: 0 0 40px;
    line-height: 1.6;
}

/* Home Button Styling */
.error-404__button {
    display: inline-block;
    background-color: #4CAF50;
    color: #ffffff;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button hover effect */
.error-404__button:hover,
.error-404__button:focus {
    background-color: #45a049;
    color: #ffffff;
    transform: translateY(-3px); /* Slight lift on hover */
}

/* ==========================================================================
   Responsive Adjustments for Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .error-404-wrap {
        min-height: 50vh;
        padding: 40px 15px;
    }

    .error-404__title {
        font-size: 6.5rem;
    }

    .error-404__subtitle {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .error-404__text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .error-404__button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}