/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --bg-page: #0f0f0f;
  --bg-header: #111111;
  --bg-footer: #0a0a0a;
  --text-primary: #e0e0e0;
  --text-secondary: #9a9a9a;
  --accent: #1cc864;
  --accent-muted: #15a050;
  --border-color: #2a2a2a;
  --surface: #1a1a1a;
  --content-width: 940px;
  --section-gap: 4.5rem;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --danger: #e74c3c;
  --danger-muted: #3a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. General Typography
   ============================================ */
h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  color: var(--text-primary);
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

strong {
  font-weight: 700;
  color: var(--text-primary);
}

em {
  font-style: italic;
}

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

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

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

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

li {
  margin-bottom: 0.5rem;
}

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

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

thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-align: left;
}

tbody tr:hover {
  background-color: rgba(28, 200, 100, 0.03);
}

figure {
  margin: 1.5em auto;
}

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

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

/* ============================================
   3. Layout — Sections
   ============================================ */
main {
  width: 100%;
}

article {
  width: 100%;
}

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

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

[data-content] figure {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Table overflow */
[data-content] .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.info-box p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

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

.info-box strong {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.95em;
}

/* --- callout --- */
.callout {
  background-color: rgba(28, 200, 100, 0.06);
  border: 1px solid rgba(28, 200, 100, 0.15);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  border-radius: 6px 0 0 6px;
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}

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

.callout strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
}

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

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

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

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

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

.glossary-term p {
  text-align: left;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(28, 200, 100, 0.4);
  white-space: nowrap;
}

/* --- odds-example --- */
.odds-example {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.odds-example p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

.odds-example strong {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.05em;
  display: block;
  margin-bottom: 0.5rem;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 2rem 0;
}

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

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

.at-a-glance p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.85em;
}

.at-a-glance strong {
  font-family: var(--font-mono);
  font-size: 1.6em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

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

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

.card-grid > div:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 2px 10px rgba(28, 200, 100, 0.08);
}

.card-grid p {
  text-align: left;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.92em;
}

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

.card-grid strong {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1em;
}

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

.comparison > div {
  background-color: var(--surface);
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.comparison p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.comparison strong {
  font-family: var(--font-heading);
  color: var(--accent);
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 2.5rem 0;
}

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

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

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

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

.dos-donts > div:first-child {
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--danger);
  padding-top: 1rem;
}

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

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

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

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

.dos-donts li {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.dos-donts > div:first-child li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

/* --- worked-example --- */
.worked-example {
  background-color: var(--surface);
  padding: 1.75rem;
  margin: 2rem 0;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

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

.worked-example strong {
  color: var(--accent);
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.05em;
}

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

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

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

.section-bridge p {
  text-align: center;
  display: inline;
  font-style: italic;
  color: var(--accent);
  font-size: 0.95em;
}

/* --- tldr --- */
.tldr {
  background-color: var(--surface);
  border-left: 3px solid var(--accent-muted);
  padding: 1.5rem 1.75rem;
  border-radius: 0 4px 4px 0;
}

.tldr h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

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

.tldr li {
  color: var(--text-secondary);
  font-size: 0.93em;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

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

/* --- author-bio --- */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 2rem;
}

.author-bio p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  padding: var(--section-gap) 1.25rem 3.5rem;
  text-align: center;
  position: relative;
  background-color: var(--bg-page);
  margin-top: 0;
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(28,200,100,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-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

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

[data-content="hero"] .hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  display: block;
  text-align: center;
}

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

[data-content="hero"] .hero-meta span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

[data-content="hero"] .hero-meta .date-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background-color: rgba(26,26,26,0.5);
}

[data-content="hero"] figure {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

[data-content="hero"] figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

[data-content="hero"] .hero-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bg-page);
  background-color: var(--accent);
  padding: 0.65rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

[data-content="hero"] .hero-cta:hover {
  background-color: var(--accent-muted);
  transform: translateY(-1px);
  opacity: 1;
}

/* ============================================
   5b. Site Header
   ============================================ */
.site-header {
  background-color: var(--bg-header);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.site-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-trust {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* ============================================
   6. TOC (Accordion)
   ============================================ */
[data-content="toc"] {
  margin-top: 3rem;
}

[data-content="toc"] details {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--surface);
  overflow: hidden;
  interpolate-size: allow-keywords;
}

[data-content="toc"] summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

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

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

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

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

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

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

@supports not selector(::details-content) {
  [data-content="toc"] details[open] > *:not(summary) {
    animation: toc-fade-in 0.3s ease forwards;
  }
  @keyframes toc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

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

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

[data-content="toc"] > details > div > ul > li {
  margin-bottom: 0.4rem;
}

[data-content="toc"] > details > div > ul > li > a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

[data-content="toc"] ul ul li {
  margin-bottom: 0.2rem;
}

[data-content="toc"] ul ul a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

[data-content="faq"] details:last-of-type {
  border-bottom: none;
}

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

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

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

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

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

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

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

@supports not selector(::details-content) {
  [data-content="faq"] details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
  @keyframes faq-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

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

[data-content="faq"] details > div p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   8. Footer
   ============================================ */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  margin-top: var(--section-gap);
  padding: 3rem 1.25rem 1.5rem;
}

.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.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.78rem;
  color: #707070;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0.5rem;
}

.footer-col a {
  display: block;
  font-size: 0.78rem;
  color: #707070;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

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

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

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

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

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

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

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

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

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

  [data-content="hero"] {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section-bridge::before,
  .section-bridge::after {
    width: 20px;
  }
}

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

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

  .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: 20px;
        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;
}
