/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --color-primary: #0F1B2D;
  --color-accent: #00D4FF;
  --color-accent-gold: #FFB800;
  --color-bg: #F4F5F7;
  --color-bg-white: #FFFFFF;
  --color-text: #2D3142;
  --color-text-secondary: #6B7280;
  --color-border: #E0E3E8;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EBF5FF;
  --color-warning-bg: #FFF8E1;
  --color-warning-border: #FFB800;
  --color-success: #16A34A;
  --color-danger: #DC2626;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --h1-size: clamp(2rem, 4vw, 3.5rem);
  --h2-size: clamp(1.5rem, 3vw, 2.25rem);
  --h3-size: clamp(1.2rem, 2.5vw, 1.75rem);
  --body-size: clamp(1rem, 1.5vw, 1.125rem);
  --caption-size: clamp(0.8rem, 1.2vw, 0.875rem);
  --content-width: 830px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
  --transition-base: 0.25s ease;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #0D1117;
    --color-bg-white: #161B22;
    --color-text: #E6EDF3;
    --color-text-secondary: #8B949E;
    --color-border: #30363D;
    --color-surface: #161B22;
    --color-surface-alt: #1A2332;
    --color-warning-bg: #2A2215;
    --color-warning-border: #FFB800;
    --color-primary: #0F1B2D;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.3);
}



*, *::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: var(--body-size);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ============================================
   2. General Typography
   ============================================ */
p {
  text-align: justify;
  margin-bottom: 1.25em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-align: left;
  line-height: 1.2;
  color: var(--color-text);
}

h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 1em;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 0.75em;
  scroll-margin-top: 2rem;
}

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

li {
  margin-bottom: 0.4em;
  text-align: justify;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

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

strong {
  font-weight: 600;
}

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

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

figcaption {
  text-align: center;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  margin-top: 0.5em;
}

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

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

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

th {
  font-weight: 600;
  background: var(--color-surface-alt);
}

tr:nth-child(even) {
  background: var(--color-surface);
}

tr:hover {
  background: var(--color-surface-alt);
  transition: background var(--transition-base);
}

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: var(--section-gap) 1.25rem;
}

[data-content] + [data-content] {
  padding-top: 0;
}

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

/* --- info-box --- */
.info-box {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--component-radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  text-align: justify;
  color: var(--color-text);
  margin-bottom: 0.5em;
  font-size: var(--body-size);
  line-height: 1.7;
}

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

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

/* --- calc-example --- */
.calc-example {
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--component-radius);
  padding: 1.5em 2em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}

.calc-example p {
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 0.75em;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: var(--body-size);
  line-height: 1.6;
}

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

.calc-example strong {
  color: var(--color-accent);
}

.calc-example hr {
  border-color: rgba(255,255,255,0.15);
  margin: 1em 0;
}

@media (prefers-color-scheme: dark) {
  .calc-example {
    background: #0A1220;
    color: #E6EDF3;
  }
  .calc-example p {
    color: #E6EDF3;
  }
}

/* --- callout --- */
.callout {
  border-left: 4px solid var(--color-warning-border);
  background: var(--color-warning-bg);
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.callout p {
  text-align: justify;
  color: var(--color-text);
  background: transparent;
  font-size: var(--body-size);
  line-height: 1.7;
  margin-bottom: 0.5em;
}

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

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

.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-grid > div p {
  text-align: justify;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.6;
  margin-bottom: 0.5em;
}

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

.card-grid > div strong {
  display: block;
  font-size: var(--h3-size);
  font-family: var(--font-display);
  color: var(--color-text);
  margin-bottom: 0.25em;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5em 0;
}

.comparison > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em;
  box-shadow: var(--shadow-sm);
}

.comparison > div p {
  text-align: justify;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.6;
  margin-bottom: 0.5em;
}

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

.comparison > div strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

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

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  padding: 1.5em 2em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

[data-content="tldr"] {
  padding-top: 0;
  padding-bottom: 0;
}

[data-content="tldr"] + [data-content] {
  padding-top: var(--section-gap);
}

[data-content="tldr"] {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.75em;
  text-align: left;
  color: var(--color-text);
}

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

.tldr li {
  text-align: justify;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.7;
  margin-bottom: 0.6em;
}

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

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

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

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

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

.fun-fact p {
  text-align: justify;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-size: var(--body-size);
  line-height: 1.7;
}

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

.glossary-term strong {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  font-size: var(--body-size);
}

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

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

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5em 0;
}

.dos-donts > div {
  padding: 1.25em;
  border-radius: var(--component-radius);
}

.dos-donts > div:first-child {
  border-top: 3px solid var(--color-success);
  background: var(--color-surface);
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--color-danger);
  background: var(--color-surface);
}

.dos-donts > div strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.dos-donts > div:first-child strong {
  color: var(--color-success);
}

.dos-donts > div:last-child strong {
  color: var(--color-danger);
}

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

.dos-donts li {
  text-align: justify;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.6;
  margin-bottom: 0.4em;
}

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

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 1.5em 0;
}

.pre-game-checklist strong:first-child {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--caption-size);
  color: var(--color-accent);
  margin-bottom: 0.75em;
}

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

.pre-game-checklist li {
  position: relative;
  text-align: left;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.7;
  margin-bottom: 0.6em;
  padding-left: 0;
}

.pre-game-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.75em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  overflow: hidden;
}

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

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

.at-a-glance > div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25em;
}

.at-a-glance > div p {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--caption-size);
  line-height: 1.5;
  margin-bottom: 0;
}

@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;
  }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.75em 2em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.worked-example p {
  text-align: justify;
  color: var(--color-text);
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: var(--caption-size);
  line-height: 1.8;
  margin-bottom: 0.75em;
}

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

.worked-example strong {
  color: var(--color-accent);
  font-size: var(--body-size);
}

.worked-example hr {
  border-color: var(--color-border);
  margin: 1em 0;
  position: relative;
}

.worked-example hr::after {
  content: "\2193";
  position: absolute;
  left: 50%;
  top: -0.6em;
  transform: translateX(-50%);
  background: var(--color-surface);
  padding: 0 0.5em;
  color: var(--color-text-secondary);
  font-size: 0.9em;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 1.5em 0;
  position: relative;
  padding: 0.5em 2em;
}

.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  color: var(--color-border);
  font-size: 0.8em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

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

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

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

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(170deg, #0F1B2D 0%, #1A2940 100%);
  padding: clamp(4rem, 10vw, 7rem) 1.25rem clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(0, 212, 255, 0.12) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 184, 0, 0.08) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(0, 212, 255, 0.1) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 184, 0, 0.06) 50%, transparent 50%),
    radial-gradient(2px 2px at 10% 60%, rgba(0, 212, 255, 0.07) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 50%, rgba(0, 212, 255, 0.09) 50%, transparent 50%);
  background-size: 180px 160px, 220px 200px, 150px 180px, 200px 140px, 170px 190px, 190px 170px;
  pointer-events: none;
  opacity: 1;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 20%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 20%, black 70%);
}

[data-content="hero"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

[data-content="hero"] .date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1.5em;
}

[data-content="hero"] .date-badge time {
  font-size: var(--caption-size);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-content="hero"] .trust-marker {
  font-size: var(--caption-size);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

[data-content="hero"] .badge-divider {
  color: rgba(255,255,255,0.25);
}

[data-content="hero"] h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.75em;
  text-align: left;
}

[data-content="hero"] .subtitle-hook {
  font-size: var(--caption-size);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 2em;
  text-align: left;
}

[data-content="hero"] figure {
  margin: 2em auto 0;
  max-width: 100%;
}

[data-content="hero"] img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
}

[data-content="hero"] figcaption {
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 0.75em;
}

/* --- stat-bar --- */
[data-content="stat-bar"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-primary);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 1.25rem;
}

.stat-bar-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 0.25em;
}

@media (max-width: 480px) {
  .stat-bar-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  .stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    text-align: left;
  }
}

/* ============================================
   5b. TOC Section
   ============================================ */
[data-content="toc"] {
  padding-top: var(--section-gap);
}

[data-content="toc"] nav {
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  background: var(--color-surface);
  padding: 1.5em 2em;
}

[data-content="toc"] nav strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--caption-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 1em;
}

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

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

[data-content="toc"] nav > ul > li > a {
  font-weight: 600;
  font-size: var(--body-size);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

[data-content="toc"] nav ul ul {
  list-style: none;
  padding-left: 1.25em;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

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

[data-content="toc"] nav ul ul a {
  font-size: var(--caption-size);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* ============================================
   6. FAQ Accordion
   ============================================ */
details {
  border-bottom: 1px solid var(--color-border);
  padding: 1em 0;
  interpolate-size: allow-keywords;
}

summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  transition: color var(--transition-base);
  padding: 0.25em 0;
}

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

summary::after {
  content: "+";
  font-size: 1.25em;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

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

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

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

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

@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;
  }
}

details > div > p {
  text-align: justify;
  margin-top: 0.75em;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.7;
}

/* ============================================
   7. Article Image Classes
   ============================================ */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

/* ============================================
   8. Back to Top Button
   ============================================ */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--caption-size);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  transition: color var(--transition-base), border-color var(--transition-base);
  margin-top: 2em;
}

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

/* ============================================
   10. Media Queries
   ============================================ */
@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content="hero"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content="stat-bar"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .stat-bar-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    text-align: left;
  }
}

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

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    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: 75px; /* Optimal height for most logos */
    width: auto !important; /* Prevents squishing */
    display: block;
    transition: transform 0.2s ease;
}

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

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

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

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; /* Locks menu perfectly in the center */
    }

    .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;
}

/* =========================================
   4-COLUMN FOOTER (US Sweepstakes Slots)
   ========================================= */
.site-footer-4col {
    background-color: #0b1120; /* Deep navy background matching your screenshot */
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #38bdf8); /* Bright Sky Blue accent */
}

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

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimers p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.footer-disclaimers a {
    color: var(--color-accent, #38bdf8);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-disclaimers a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

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

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

/* Blue Titles */
.widget-title {
    color: var(--color-accent, #38bdf8); 
    font-family: var(--font-display, sans-serif); 
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.widget-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.widget-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--color-accent, #38bdf8);
}

/* Bullets */
.bullet-list li {
    position: relative;
    padding-left: 16px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #38bdf8); 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li {
    padding-left: 0;
    padding-bottom: 0.8rem;
}

.clean-list li::before {
    display: none;
}

.footer-4col-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

.footer-4col-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent, #38bdf8);
    color: #0b1120;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #0284c7; /* Darker blue on hover */
    transform: translateY(-5px);
    color: #ffffff;
}