/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  --bg-page: #fafaf8;
  --bg-header: #ffffff;
  --bg-footer: #1a1a1a;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6963;
  --accent: #0a8451;
  --accent-dark: #065c3d;
  --border-color: #d4d2cc;
  --surface: #f2f1ed;
  --content-width: 940px;
  --section-gap: clamp(3rem, 6vw, 4.5rem);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --danger: #c0392b;
  --success: #0a8451;
}

*, *::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;
}

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

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

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

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

/* ============================================
   2. GENERAL TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: left;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  scroll-margin-top: 2rem;
  color: #e0ddd8;
}

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

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

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

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

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

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

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

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

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

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

/* ============================================
   3. LAYOUT SECTIONS
   ============================================ */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.header-date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.3em 0.7em;
  border-radius: 3px;
}

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

main {
  width: 100%;
}

article {
  padding-bottom: var(--section-gap);
}

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

[data-content] h2 {
  margin-bottom: 1.25em;
}

[data-content] h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

[data-content="hero"] {
  max-width: 100%;
  margin-top: 0;
  padding: 0;
}

[data-content="intro"] {
  margin-top: calc(var(--section-gap) * 0.6);
}

[data-content="toc"] {
  margin-top: calc(var(--section-gap) * 0.8);
}

[data-content="faq"] {
  margin-top: var(--section-gap);
  padding-bottom: 1rem;
}

/* ============================================
   4. COMPONENTS
   ============================================ */

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

.info-box p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75em;
  font-size: 0.95em;
}

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

/* --- callout --- */
.callout {
  background: rgba(10, 132, 81, 0.08);
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
  border-radius: 4px;
  border: 1px solid rgba(10, 132, 81, 0.15);
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75em;
  font-size: 0.95em;
}

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

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1em;
  margin: 2em 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
}

.key-takeaway p {
  text-align: left;
  color: var(--text-primary);
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5em;
  margin: 1.75em 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);
  font-size: 0.95em;
}

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

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  font-size: 0.9em;
}

.glossary-term span {
  color: var(--text-secondary);
  font-size: 0.95em;
}

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

.odds-example p {
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88em;
  line-height: 1.8;
  margin-bottom: 0.5em;
}

.odds-example p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: -0.01em;
  margin-bottom: 0.75em;
}

.odds-example p:last-child {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
}

/* --- comparison --- */
.comparison {
  margin: 2em 0;
  overflow-x: auto;
}

.comparison h3 {
  font-size: 1rem;
  margin-bottom: 0.75em;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison table {
  font-size: 0.9em;
}

.comparison th {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8em;
}

.comparison td {
  text-align: left;
  color: var(--text-primary);
}

.comparison tr:nth-child(even) td {
  background: var(--surface);
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 2em 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

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

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

.at-a-glance p {
  text-align: center;
  color: var(--text-primary);
}

.at-a-glance p:first-child {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3em;
}

.at-a-glance p:last-child {
  font-size: 0.8em;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

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

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  font-size: 0.95em;
  text-align: left;
  color: var(--text-primary);
}

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

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

.dos-donts > div:first-child p:first-child {
  color: var(--success);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 0.75em;
  text-align: left;
}

.dos-donts > div:last-child p:first-child {
  color: var(--danger);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 0.75em;
  text-align: left;
}

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

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

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

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

/* --- worked-example --- */
.worked-example {
  background: var(--surface);
  padding: 1.75em;
  margin: 2em 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.worked-example p {
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88em;
  line-height: 1.8;
}

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

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

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

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

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

.tldr h2 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 0.75em;
  color: var(--accent-dark);
}

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

.tldr li {
  font-size: 0.92em;
  margin-bottom: 0.6em;
  color: var(--text-primary);
}

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

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

.card-grid > div {
  background: var(--surface);
  padding: 1.25em;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.card-grid p {
  text-align: left;
  color: var(--text-primary);
  font-size: 0.9em;
}

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

/* --- TOC --- */
.toc-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5em 1.75em;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1em;
}

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

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 0.85em;
}

.toc-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: color 0.2s ease;
}

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

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

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

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

.toc-sublist a {
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 0.82em;
  color: var(--text-secondary);
}

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

/* ============================================
   5. HERO SECTION
   ============================================ */
[data-content="hero"] {
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 14px,
    rgba(10, 132, 81, 0.03) 14px,
    rgba(10, 132, 81, 0.03) 15px
  );
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"] .hero-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  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;
}

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

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

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

[data-content="hero"] figure {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: var(--content-width);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

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

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

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

[data-content="faq"] summary::after {
  content: "+";
  font-size: 1.3em;
  font-weight: 400;
  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"] summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[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 {
  padding-bottom: 1.25em;
  font-size: 0.95em;
  color: var(--text-primary);
  text-align: left;
}

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

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

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

.footer-col p {
  color: #b0ada6;
  text-align: left;
  margin-bottom: 0.6em;
  font-size: 0.76rem;
}

.footer-col a {
  color: #b0ada6;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.footer-col li {
  margin-bottom: 0.4em;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  color: #7a776f;
  font-size: 0.72rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo img {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  margin-bottom: 0.5em;
}

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

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

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

  .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-child(odd) {
    border-right: 1px solid var(--border-color);
  }

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

  .comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

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

  .site-logo img {
    width: 140px;
  }

  .header-trust {
    display: none;
  }

  [data-content="hero"] {
    padding: clamp(2rem, 6vw, 3.5rem) 1rem clamp(1.5rem, 4vw, 2.5rem);
  }

  .section-bridge::before,
  .section-bridge::after {
    width: 1em;
  }
}

@media (max-width: 480px) {
  .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;
  }

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

  .header-date {
    font-size: 0.6rem;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

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

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

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

/* =========================================
   LIGHT HEADER FIX FOR LOGO VISIBILITY
   ========================================= */

/* Change header background to white and add a subtle gray border */
.site-header,
.top-navigation-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Change menu links to dark gray so they are visible on white */
.menu-desktop a,
.site-header a {
    color: #111827 !important;
    font-weight: 500;
}

/* Add a green hover effect to match the Turfkante logo color */
.menu-desktop a:hover,
.site-header a:hover {
    color: #16a34a !important; 
}

/* Change the mobile burger menu icon lines to dark gray */
.burger span {
    background-color: #111827 !important;
}