/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  --bg-page: #0f0f0f;
  --bg-header: #111111;
  --bg-footer: #0a0a0a;
  --text-primary: #e4e4e7;
  --accent: #22c55e;
  --accent-secondary: #16a34a;
  --border-color: #2a2a2e;
  --bg-card: #1a1a1e;
  --text-secondary: #a1a1aa;
  --danger: #ef4444;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --h1-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  --h2-size: clamp(1.4rem, 1.5vw + 0.8rem, 2rem);
  --h3-size: clamp(1.15rem, 1vw + 0.7rem, 1.5rem);
  --body-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem);
  --lh-body: 1.7;
  --lh-heading: 1.2;
  --content-width: 830px;
  --section-gap: clamp(3rem, 5vw, 5rem);
}

*, *::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);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =============================================
   2. General Typography
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--text-primary);
  text-align: left;
}

h1 { font-size: var(--h1-size); }

h2 {
  font-size: var(--h2-size);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

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

h2 { scroll-margin-top: 2rem; }

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

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

a:hover { opacity: 0.8; }

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

strong { font-weight: 700; }
em { font-style: italic; }

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

li {
  text-align: left;
  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.9rem;
}

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

th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td { color: var(--text-primary); }

tr:hover td { background-color: rgba(34, 197, 94, 0.03); }

figure {
  margin: 1.5em auto;
}

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

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

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

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

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

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

/* --- info-box --- */
.info-box {
  background-color: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 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.5rem;
}

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

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

/* --- callout --- */
.callout {
  background-color: rgba(34, 197, 94, 0.05);
  border-left: 4px solid var(--accent-secondary);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 4px 4px 0;
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0;
  font-weight: 400;
}

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

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

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

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

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

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1rem 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(34, 197, 94, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.odds-example p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

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

.odds-example p:first-child {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.odds-example strong {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* --- comparison --- */
.comparison {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison table {
  min-width: 500px;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

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

.card-grid > div:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

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

.card-grid > div p:first-child strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-card);
}

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

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

.at-a-glance > div p {
  text-align: left;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.at-a-glance > div p:first-child strong {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.dos-donts > div:first-child { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
.dos-donts > div:last-child { border-left: 3px solid var(--danger); padding-left: 1.25rem; }

.dos-donts p {
  text-align: left;
  margin-bottom: 0.75rem;
}

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

.dos-donts ul {
  text-align: left;
  padding-left: 1rem;
}

.dos-donts li {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
}

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

.pre-bet-checklist ul {
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.pre-bet-checklist li {
  text-align: left;
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

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

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

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

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

.worked-example p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.worked-example strong {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2rem 0 0.5rem;
}

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

.section-bridge::before,
.section-bridge::after {
  content: '\00B7\00A0\00B7\00A0\00B7';
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-bridge::after {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

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

.tldr h2 {
  font-size: clamp(1.05rem, 0.3vw + 0.95rem, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

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

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

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

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

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

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

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

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

.header-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background-color: rgba(34, 197, 94, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* =============================================
   6. Hero Section
   ============================================= */
[data-content="hero"] {
  max-width: none;
  width: 100%;
  padding: clamp(3rem, 6vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--section-gap);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
  background-color: var(--bg-page);
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(228, 228, 231, 0.035) 28px,
    rgba(228, 228, 231, 0.035) 29px
  );
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, black 100%);
}

[data-content="hero"] .hero-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

[data-content="hero"] h1 {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 1rem;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
}

[data-content="hero"] .hero-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 auto 1.5rem;
  text-align: center;
}

[data-content="hero"] .hero-byline {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  text-align: center;
}

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

[data-content="hero"] figure img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* =============================================
   7. TOC (Accordion)
   ============================================= */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

[data-content="toc"] details {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

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

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

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

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

[data-content="toc"] summary:hover { background-color: rgba(34, 197, 94, 0.04); }

[data-content="toc"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

[data-content="toc"] details[open] > div {
  max-height: 600px;
  opacity: 1;
}

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

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

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

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

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

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

[data-content="toc"] nav ul ul a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

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

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

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

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

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

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

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

[data-content="faq"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

[data-content="faq"] details[open] > div {
  max-height: 500px;
  opacity: 1;
}

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

/* =============================================
   9. Back to Top
   ============================================= */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: 1rem;
}

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

/* =============================================
   10. Footer
   ============================================= */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-col p {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

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

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.78rem;
}

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

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

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 120px;
  height: auto;
  display: block;
  opacity: 0.6;
}

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

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

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

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

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

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

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

  .comparison { overflow-x: auto; }
  .comparison table { min-width: 400px; }

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

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

  .header-meta { gap: 0.5rem; }

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

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-meta { flex-wrap: wrap; }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mobile-menu.is-open {
    right: 0; 
}

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

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

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

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

.menu-mobile a:hover {
    color: var(--color-accent, #eab308);
    padding-left: 10px; 
}

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

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