.um-header *,
.um-header *::before,
.um-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  text-decoration: none;
  list-style: none;
}

.um-header {
  --um-primary-color: #333;
  --um-bg-color: #fff;
  --um-hover-color: inherit;
  --um-border-color: #ddd;
  --um-transition: 0.3s ease;
  --um-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  all: initial;
  font-family: inherit;
  display: block;
  position: relative;
  background-color: var(--um-bg-color);
  color: var(--um-primary-color);
}

.um-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 1rem;
  gap: 1rem;
}

.um-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.um-logo__image {
  display: block;
  max-width: 60px;
  height: auto;
}

.um-logo__text {
  font-size: 1.25rem;
}

.um-logo-text {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  font-size: 1.25rem;
}

.um-burger {
  --um-burger-width: 30px;
  --um-burger-height: 24px;

  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: var(--um-burger-width);
  height: var(--um-burger-height);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.um-burger__line {
  width: 100%;
  height: 3px;
  background-color: currentColor;
  border-radius: 1px;
  transition:
    transform var(--um-transition),
    opacity var(--um-transition);
}

.um-burger[aria-expanded='true'] .um-burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.um-burger[aria-expanded='true'] .um-burger__line:nth-child(2) {
  opacity: 0;
}

.um-burger[aria-expanded='true'] .um-burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.um-navigation {
  position: relative;
  z-index: 1000;
}

.um-menu {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.um-menu-item {
  position: relative;
}

.um-menu-item__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.um-menu-link {
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none !important;
  flex: 1;
  transition: color var(--um-transition);
  border-radius: 4px;
}

a.um-menu-link:hover {
  color: var(--um-hover-color);
  background-color: rgba(0, 0, 0, 0.03);
}

.um-menu-item--current > .um-menu-item__inner > .um-menu-link {
  color: var(--um-hover-color);
  font-weight: 600;
}

.um-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background-color var(--um-transition);
}

.um-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.um-menu-toggle__icon {
  transition: transform var(--um-transition);
}

.um-menu-toggle[aria-expanded='true'] .um-menu-toggle__icon {
  transform: rotate(180deg);
}

.um-sub-menu {
  display: none;
  min-width: 200px;
  padding: 0.5rem 0;
  background-color: var(--um-bg-color);
  box-shadow: var(--um-shadow);
  border: 1px solid var(--um-border-color);
  border-radius: 6px;
}

.um-sub-menu--depth-0 {
  position: static;
}

.um-sub-menu--depth-1 {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
}

.um-sub-menu--depth-2 {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
}

.um-sub-menu.active {
  display: block;
}

.um-sub-menu .um-menu-link {
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

@media (max-width: 1023px) {
  .um-burger {
    display: flex;
  }

  .um-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--um-bg-color);
    transition: left var(--um-transition);
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .um-navigation.active {
    left: 0;
  }

  .um-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .um-overlay.active {
    display: block;
  }

  .um-sub-menu--depth-1,
  .um-sub-menu--depth-2 {
    position: static;
    margin-left: 1rem;
    margin-top: 0.5rem;
    box-shadow: none;
    border: none;
    border-left: 1px solid var(--um-border-color);
  }
}

@media (min-width: 1024px) {
  .um-container {
    flex-wrap: nowrap;
  }

  .um-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .um-menu-toggle {
    display: none;
  }

  .um-menu-item--has-children:hover > .um-sub-menu {
    display: block;
  }

  .um-menu-item:last-child .um-sub-menu--depth-1,
  .um-menu-item:nth-last-child(2) .um-sub-menu--depth-1 {
    left: auto;
    right: 0;
  }
}

.um-menu-toggle:focus-visible,
.um-menu-link:focus-visible,
.um-burger:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--um-hover-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .um-header * {
    transition: none !important;
    animation: none !important;
  }
}

.um-header.um-theme-dark {
  --um-primary-color: inherit;
  --um-bg-color: inherit;
  --um-hover-color: inherit;
  --um-border-color: inherit;
}

.um-header.um-theme-minimal {
  --um-bg-color: transparent;
  --um-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.um-hide {
  display: none !important;
}

.um-show {
  display: block !important;
}

.um-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-meta time {
  margin: auto;
  font-size: 1rem;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: inherit;
}

.header-meta span {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-meta svg {
  width: 30px;
}
.articles-main {
  padding: 20px 0;
}

.articles-breadcrumbs {
  margin-bottom: 20px;
}

.articles-header {
  text-align: center;
  margin-bottom: 40px;
}

.articles-page-title {
  font-size: 2.5rem;
  margin: 0;
}

.articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.article-item {
  flex: 1 1 calc(50% - 30px);
  box-sizing: border-box;
}

.article-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sitemap-main h1 {
  text-align: center;
}

.articles-page-title {
  margin-bottom: 1rem;
}

.article-card__image-link {
  display: block;
  text-decoration: none;
}

.article-card__image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-card__img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__img {
  transform: scale(1.05);
}

.article-card__image--placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 60px;
  opacity: 0.7;
}

.article-card__content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__header {
  margin-bottom: 15px;
}

.article-card__title {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card__title a:hover {
  color: inherit;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.article-meta__separator {
  color: #999;
  font-size: 0.9em;
}

.article-meta__date,
.article-meta__author,
.article-meta__category,
.article-meta__time {
  display: inline-flex;
  align-items: center;
}

.article-card__excerpt {
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

.article-card__footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.article-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.article-card__read-more:hover {
  gap: 10px;
}

.read-more-arrow {
  transition: transform 0.3s ease;
}

.article-card__read-more:hover .read-more-arrow {
  transform: translateX(3px);
}

.articles-pagination {
  margin-top: 40px;
}

.articles-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.articles-pagination li {
  margin: 0;
}

.articles-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: all 0.3s ease;
}

.articles-pagination .current {
  background: inherit;
  color: inherit;
  border-color: inherit;
}

.articles-pagination a.page-numbers:hover {
  background: inherit;
  border-color: inherit;
  color: inherit;
}

.articles-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  text-align: center;
}

.articles-empty__content {
  max-width: 500px;
}

.articles-empty__title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
}

.articles-empty__text {
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.articles-empty__link {
  display: inline-block;
  padding: 12px 30px;
  background: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.articles-empty__link:hover {
  background: #005a87;
}

@media (max-width: 992px) {
  .article-item {
    flex: 1 1 calc(50% - 30px);
  }

  .articles-page-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    gap: 20px;
  }

  .article-item {
    flex: 1 1 100%;
  }

  .article-card__content {
    padding: 20px;
  }

  .article-card__image {
    height: 180px;
  }

  .articles-page-title {
    font-size: 1.8rem;
  }

  .article-meta {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .articles-container {
    padding: 0 15px;
  }

  .article-card__image {
    height: 160px;
  }

  .article-card__title {
    font-size: 1.2rem;
  }

  .articles-pagination .page-numbers {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 0.9rem;
  }
}

        /* ==========================================
           1. CSS VARIABLES & RESET
           ========================================== */
        :root {
            /* Colors from design spec */
            --color-primary: #4A1C7C;
            --color-accent: #006B3F;
            --color-secondary: #D4AF37;
            --color-neutral: #F5F3F0;
            --color-text: #2D2D2D;
            --color-bg: #FFFFFF;
            --color-surface: #F5F3F0;
            --color-border: #E0DDD8;
            --color-text-secondary: #5A5A5A;
            --color-success: #006B3F;
            --color-danger: #B8333D;
            
            /* Typography */
            --font-display: 'Playfair Display', Georgia, serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            
            /* Spacing */
            --section-gap: clamp(3rem, 6vw, 5rem);
            --content-max-width: 740px;
            --content-padding: clamp(1rem, 4vw, 2rem);
            
            /* Transitions */
            --transition-fast: 0.15s ease;
            --transition-base: 0.25s ease;
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --color-bg: #1A1A1D;
                --color-surface: #242428;
                --color-text: #E8E6E3;
                --color-text-secondary: #A8A5A0;
                --color-border: #3A3A3E;
                --color-neutral: #242428;
                --color-primary: #7B4AAE;
                --color-accent: #2E9B6D;
                --color-secondary: #E8C547;
            }
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 2vw, 1.125rem);
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ==========================================
           2. GENERAL TYPOGRAPHY
           ========================================== */
        h1, h2, h3, h4 {
            font-family: var(--font-display);
            font-weight: 600;
            line-height: 1.25;
            text-align: left;
        }

        h2 {
            font-size: clamp(1.75rem, 4vw, 2.5rem);
            margin-bottom: 1.25rem;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-size: clamp(1.25rem, 3vw, 1.75rem);
            margin-bottom: 1rem;
            scroll-margin-top: 2rem;
        }

        p {
            text-align: left;
            margin-bottom: 1.25rem;
        }

        p:last-child {
            margin-bottom: 0;
        }

        a {
            color: var(--color-accent);
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color var(--transition-fast);
        }

        a:hover {
            color: var(--color-primary);
        }

        a:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        ul, ol {
            text-align: left;
            margin-bottom: 1.25rem;
            padding-left: 1.5rem;
        }

        li {
            margin-bottom: 0.5rem;
        }

        li:last-child {
            margin-bottom: 0;
        }

        strong {
            font-weight: 600;
        }

        blockquote {
            text-align: left;
            border-left: 3px solid var(--color-primary);
            padding-left: 1.25rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: var(--color-text-secondary);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
        }

        th, td {
            text-align: left;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--color-border);
        }

        th {
            font-weight: 600;
            background-color: var(--color-surface);
        }

        figure {
            margin: 1.5rem auto;
            max-width: 100%;
        }

        figcaption {
            text-align: center;
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            margin-top: 0.75rem;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* ==========================================
           3. LAYOUT SECTIONS (data-content)
           ========================================== */
        header {
            padding: 0;
        }

        main {
            width: 100%;
        }

        [data-content] {
            max-width: var(--content-max-width);
            margin-left: auto;
            margin-right: auto;
            padding: var(--section-gap) var(--content-padding);
        }

        [data-content] + [data-content] {
            padding-top: 0;
        }

        /* ==========================================
           4. COMPONENTS
           ========================================== */
        
        /* --- Info Box --- */
        .info-box {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-accent);
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 4px 4px 0;
        }

        .info-box p {
            text-align: left;
            margin-bottom: 0.75rem;
        }

        .info-box p:last-child {
            margin-bottom: 0;
        }

        /* --- Odds Example --- */
        .odds-example {
            background-color: var(--color-text);
            color: var(--color-bg);
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .odds-example p {
            text-align: center;
            color: var(--color-bg);
            margin-bottom: 0.5rem;
        }

        .odds-example p:last-child {
            margin-bottom: 0;
        }

        .odds-example strong {
            color: var(--color-secondary);
        }

        @media (prefers-color-scheme: dark) {
            .odds-example {
                background-color: #2D2D2D;
                color: #E8E6E3;
            }

            .odds-example p {
                color: #E8E6E3;
            }
        }

        /* --- Callout --- */
        .callout,
        .callout-warning {
            background-color: transparent;
            border-left: 4px solid var(--color-secondary);
            padding: 1rem 1.25rem;
            margin: 1.5rem 0;
        }

        .callout p,
        .callout-warning p {
            text-align: left;
            margin-bottom: 0.75rem;
        }

        .callout p:last-child,
        .callout-warning p:last-child {
            margin-bottom: 0;
        }

        /* --- Card Grid --- */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.25rem;
            margin: 1.5rem 0;
        }

        .card-grid > div {
            background-color: var(--color-surface);
            padding: 1.25rem;
            border-radius: 6px;
            border: 1px solid var(--color-border);
        }

        .card-grid p {
            text-align: left;
        }

        /* --- Offer Card --- */
        .offer-card {
            background-color: var(--color-surface);
            padding: 1.25rem 1.5rem;
            margin: 1rem 0;
            border-radius: 6px;
            border: 1px solid var(--color-border);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }

        .offer-card p {
            text-align: left;
            margin-bottom: 0.75rem;
        }

        .offer-card p:last-child {
            margin-bottom: 0;
        }

        /* --- Comparison --- */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }

        @media (max-width: 600px) {
            .comparison {
                grid-template-columns: 1fr;
            }
        }

        .comparison > div {
            background-color: var(--color-surface);
            padding: 1.25rem;
            border-radius: 6px;
        }

        .comparison p {
            text-align: left;
        }

        .comparison h4 {
            font-size: 1rem;
            font-family: var(--font-body);
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--color-primary);
        }

        /* --- TL;DR --- */
        .tldr {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-primary);
            padding: 1.5rem;
            border-radius: 0 6px 6px 0;
        }

        .tldr h2 {
            font-size: clamp(1.125rem, 2.5vw, 1.25rem);
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .tldr h2[id] {
            scroll-margin-top: 2rem;
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr p {
            text-align: left;
        }

        /* --- Key Takeaway --- */
        .key-takeaway {
            border-top: 2px solid var(--color-accent);
            padding-top: 1rem;
            margin: 2rem 0;
        }

        .key-takeaway p {
            text-align: left;
            font-family: var(--font-display);
            font-size: clamp(1.125rem, 2.5vw, 1.375rem);
            font-weight: 600;
            line-height: 1.4;
            color: var(--color-text);
        }

        /* --- Fun Fact --- */
        .fun-fact {
            position: relative;
            padding-left: 1.25rem;
            margin: 1.5rem 0;
        }

        .fun-fact::before {
            content: '—';
            position: absolute;
            left: 0;
            color: var(--color-accent);
            font-weight: 600;
        }

        .fun-fact p {
            text-align: left;
            font-style: italic;
            color: var(--color-text-secondary);
            margin-bottom: 0;
        }

        /* --- Glossary Term --- */
        .glossary-term {
            display: flex;
            align-items: baseline;
            gap: 0.75rem;
            margin: 1rem 0;
        }

        @media (max-width: 500px) {
            .glossary-term {
                flex-direction: column;
                gap: 0.25rem;
            }
        }

        .glossary-term strong {
            font-family: 'SF Mono', 'Consolas', monospace;
            color: var(--color-accent);
            text-decoration: underline;
            text-underline-offset: 3px;
            white-space: nowrap;
        }

        .glossary-term span {
            color: var(--color-text-secondary);
        }

        /* --- Dos and Don'ts --- */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.25rem;
            margin: 1.5rem 0;
        }

        @media (max-width: 600px) {
            .dos-donts {
                grid-template-columns: 1fr;
            }
        }

        .dos-donts > div {
            padding: 1rem 1.25rem;
            border-radius: 6px;
        }

        .dos-donts > div:first-child {
            background-color: rgba(0, 107, 63, 0.08);
            border-left: 4px solid var(--color-success);
        }

        .dos-donts > div:last-child {
            background-color: rgba(184, 51, 61, 0.08);
            border-left: 4px solid var(--color-danger);
        }

        .dos-donts h4 {
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.75rem;
        }

        .dos-donts > div:first-child h4 {
            color: var(--color-success);
        }

        .dos-donts > div:last-child h4 {
            color: var(--color-danger);
        }

        .dos-donts ul {
            margin-bottom: 0;
            padding-left: 1.25rem;
        }

        .dos-donts p {
            text-align: left;
        }

        /* --- Pre-Bet Checklist --- */
        .pre-bet-checklist {
            margin: 1.5rem 0;
        }

        .pre-bet-checklist h4 {
            font-family: var(--font-display);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-accent);
            margin-bottom: 1rem;
        }

        .pre-bet-checklist ul {
            list-style: none;
            padding-left: 1.5rem;
            border-left: 2px solid var(--color-border);
            margin-bottom: 0;
        }

        .pre-bet-checklist li {
            position: relative;
            padding-left: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .pre-bet-checklist li::before {
            content: '☐';
            position: absolute;
            left: -1.25rem;
            color: var(--color-accent);
            background-color: var(--color-bg);
            padding: 0 2px;
        }

        /* --- At a Glance --- */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 0;
            margin: 1.5rem 0;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            overflow: hidden;
        }

        .at-a-glance > div {
            padding: 1rem 1.25rem;
            border-right: 1px solid var(--color-border);
            background-color: var(--color-surface);
        }

        .at-a-glance > div:last-child {
            border-right: none;
        }

        @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;
            }
        }

        .at-a-glance h4 {
            font-family: var(--font-display);
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-align: center;
            color: var(--color-primary);
        }

        .at-a-glance p {
            text-align: center;
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
        }

        /* --- Worked Example --- */
        .worked-example {
            background-color: var(--color-surface);
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .worked-example p {
            text-align: left;
            margin-bottom: 0.75rem;
        }

        .worked-example p:last-child {
            margin-bottom: 0;
        }

        .worked-example code,
        .worked-example .formula {
            font-family: 'SF Mono', 'Consolas', monospace;
            background-color: var(--color-bg);
            padding: 0.125rem 0.375rem;
            border-radius: 3px;
            font-size: 0.9em;
        }

        .worked-example .result {
            font-weight: 600;
            color: var(--color-accent);
        }

        .worked-example hr {
            border: none;
            border-top: 1px dashed var(--color-border);
            margin: 1rem 0;
        }

        /* --- Section Bridge --- */
        .section-bridge {
            text-align: center;
            font-family: var(--font-display);
            font-style: italic;
            color: var(--color-accent);
            margin: 2rem 0;
            position: relative;
            padding: 0 2rem;
        }

        .section-bridge::before,
        .section-bridge::after {
            content: '·  ·  ·';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: var(--color-border);
            letter-spacing: 0.25em;
        }

        .section-bridge::before {
            left: 0;
        }

        .section-bridge::after {
            right: 0;
        }

        /* --- Pro Tip --- */
        .pro-tip {
            background-color: rgba(74, 28, 124, 0.06);
            border-left: 4px solid var(--color-primary);
            padding: 1rem 1.25rem;
            margin: 1.5rem 0;
            border-radius: 0 4px 4px 0;
        }

        .pro-tip p {
            text-align: left;
            margin-bottom: 0.5rem;
        }

        .pro-tip p:last-child {
            margin-bottom: 0;
        }

        @media (prefers-color-scheme: dark) {
            .pro-tip {
                background-color: rgba(123, 74, 174, 0.12);
            }
        }

        /* ==========================================
           5. HERO SECTION
           ========================================== */
        [data-content="hero"] {
            width: 100vw;
            margin-left: calc(50% - 50vw);
            max-width: none;
            padding: clamp(3rem, 8vw, 6rem) var(--content-padding) clamp(2.5rem, 6vw, 4rem);
            background: linear-gradient(135deg, var(--color-primary) 0%, #2A1050 60%, #1A0A30 100%);
            position: relative;
            overflow: hidden;
        }

        [data-content="hero"]::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                repeating-linear-gradient(
                    -45deg,
                    transparent,
                    transparent 40px,
                    rgba(255, 255, 255, 0.015) 40px,
                    rgba(255, 255, 255, 0.015) 80px
                );
            pointer-events: none;
        }

        .hero-inner {
            max-width: var(--content-max-width);
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .hero-date {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.7);
            background-color: rgba(255, 255, 255, 0.1);
            padding: 0.375rem 0.75rem;
            border-radius: 3px;
        }

        .hero-trust {
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: rgba(255, 255, 255, 0.6);
        }

        [data-content="hero"] h1 {
            font-size: clamp(2.25rem, 5vw, 3.5rem);
            font-weight: 700;
            color: #FFFFFF;
            text-align: left;
            margin-bottom: 1.25rem;
            line-height: 1.15;
        }

        .hero-description {
            font-size: clamp(1rem, 2vw, 1.125rem);
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.7;
            max-width: 600px;
            margin-bottom: 0;
        }

        [data-content="hero"] figure {
            margin-top: 2rem;
            margin-bottom: 0;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        }

        [data-content="hero"] figure img {
            width: 100%;
            height: auto;
            display: block;
        }

        [data-content="hero"] figcaption {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
            padding: 0.75rem 0;
            text-align: center;
        }

        [data-content="offer-types-explained"] [data-content] {
          padding-left: 0;
          padding-right: 0;
        }

        .footer-copy {
          text-align: center !important;
        }

        /* ==========================================
           6. TOC - Horizontal Variant
           ========================================== */
        [data-content="toc"] {
            border-top: 1px solid var(--color-border);
            border-bottom: 1px solid var(--color-border);
            padding-top: 1.5rem !important;
            padding-bottom: 1.5rem;
            margin-bottom: var(--section-gap);
        }

        .toc-label {
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--color-text-secondary);
            margin-bottom: 0.75rem;
        }

        .toc-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem 1.25rem;
            align-items: center;
        }

        .toc-nav a {
            font-size: 0.9rem;
            color: var(--color-text);
            text-decoration: none;
            padding: 0.25rem 0;
            border-bottom: 1px solid transparent;
            transition: border-color var(--transition-fast), color var(--transition-fast);
        }

        .toc-nav a:hover {
            color: var(--color-primary);
            border-bottom-color: var(--color-primary);
        }

        @media (max-width: 600px) {
            .toc-nav {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }

        /* ==========================================
           7. FAQ ACCORDION
           ========================================== */
        [data-content="faq"] details {
            border-bottom: 1px solid var(--color-border);
            margin-bottom: 0;
        }

        [data-content="faq"] details:first-of-type {
            border-top: 1px solid var(--color-border);
        }

        [data-content="faq"] summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
            cursor: pointer;
            font-weight: 500;
            list-style: none;
            user-select: none;
        }

        [data-content="faq"] summary::-webkit-details-marker {
            display: none;
        }

        [data-content="faq"] summary::after {
            content: '+';
            font-size: 1.25rem;
            font-weight: 400;
            color: var(--color-text-secondary);
            transition: transform var(--transition-base);
            flex-shrink: 0;
            margin-left: 1rem;
        }

        [data-content="faq"] details[open] summary::after {
            transform: rotate(45deg);
        }

        [data-content="faq"] summary:hover {
            color: var(--color-primary);
        }

        [data-content="faq"] summary:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        /* Modern CSS accordion animation */
        [data-content="faq"] details {
            interpolate-size: allow-keywords;
        }

        [data-content="faq"] ::details-content {
            opacity: 0;
            block-size: 0;
            overflow: hidden;
            transition: 
                opacity var(--transition-base),
                block-size var(--transition-base),
                content-visibility var(--transition-base) allow-discrete;
        }

        [data-content="faq"] details[open] ::details-content {
            opacity: 1;
            block-size: auto;
        }

        /* Fallback for browsers without ::details-content */
        @supports not selector(::details-content) {
            [data-content="faq"] details[open] > *:not(summary) {
                animation: faq-fade-in 0.25s ease forwards;
            }

            @keyframes faq-fade-in {
                from {
                    opacity: 0;
                    transform: translateY(-4px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        }

        [data-content="faq"] details > div {
            padding-bottom: 1rem;
        }

        [data-content="faq"] details p {
            text-align: left;
            margin-bottom: 0;
        }

        /* ==========================================
           8. BACK TO TOP BUTTON
           ========================================== */
        .back-to-top {
            display: inline-block;
            font-size: 0.8rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-secondary);
            text-decoration: none;
            padding: 0.5rem 0;
            margin-top: 1rem;
            border-top: 1px solid var(--color-border);
            transition: color var(--transition-fast);
        }

        .back-to-top:hover {
            color: var(--color-primary);
        }

        /* ==========================================
           9. FOOTER
           ========================================== */
        footer {
            max-width: var(--content-max-width);
            margin: 0 auto;
            padding: 2rem var(--content-padding);
            border-top: 1px solid var(--color-border);
            font-size: 0.8125rem;
            color: var(--color-text-secondary);
        }

        /* ==========================================
           10. MEDIA QUERIES
           ========================================== */
        @media (max-width: 768px) {
            :root {
                --section-gap: 2.5rem;
            }

            h2 {
                font-size: clamp(1.5rem, 5vw, 2rem);
            }

            h3 {
                font-size: clamp(1.125rem, 4vw, 1.5rem);
            }

            table {
                font-size: 0.875rem;
            }

            th, td {
                padding: 0.5rem 0.75rem;
            }
        }

        @media (max-width: 480px) {
            [data-content="hero"] {
                padding: 2.5rem var(--content-padding) 2rem;
            }

            [data-content="hero"] h1 {
                font-size: 1.75rem;
            }

            .hero-badge {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }

        /* ==========================================
           11. IMAGES
           ========================================== */
        .hero-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }

        .article-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 1.5rem auto;
            border-radius: 6px;
        }

.um-sub-menu {
  position: absolute !important;
  top: 38px !important;
}

.um-sub-menu .um-menu-item {
  background: var(--color-bg) !important;
}

.um-burger[aria-expanded='true'] .um-burger__line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg) !important;
}

.um-navigation.active {
  background: var(--color-bg) !important;
}

main {
  overflow-x: hidden !important;
}

.um-menu-link {
  padding: 0.75rem 0.7rem !important;
}

h1 {
  margin-bottom: 1rem;
}

header {
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

footer {
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sitemap-main {
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs span {
  font-size: 1rem;
}

.articles-page-title {
  margin-bottom: 1rem;
}

main {
  min-height: 60vh;
}

footer h3,
footer li {
  text-align: center;
}

footer ul {
  list-style: none;
}

.articles-page-title {
  text-align: center;
}

/* ==========================================
   IMAGES STYLES - Royal Ascot Free Bets Guide
   ========================================== */

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Article Images */
.article-image, figure img {
    width: 100%;
    max-width: 740px;
    height: auto;
    aspect-ratio: 740 / 420;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image:hover, figure img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Figure Container */
figure {
    margin: 2rem 0;
    padding: 0;
    text-align: center;
}

/* Figure in Hero Section */
[data-content="hero"] figure {
    margin: 1.5rem 0 0;
}

/* Figcaption */
figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-secondary, #5A5A5A);
    font-style: italic;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Disclaimer */
.footer-disclaimer {
    max-width: var(--content-max-width, 740px);
    margin: 0 auto;
    padding: 2rem var(--content-padding, 1.5rem);
    border-top: 1px solid var(--color-border, #E0DDD8);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #5A5A5A);
}

.footer-disclaimer p {
    margin-bottom: 1rem;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-disclaimer strong {
    color: var(--color-text, #2D2D2D);
    font-weight: 600;
}

.footer-disclaimer a {
    color: var(--color-accent, #006B3F);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
    color: var(--color-primary, #4A1C7C);
}

[data-content="hero"] {
  margin-bottom: var(--section-gap);
}

footer ul {
  list-style: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-image {
        border-radius: 0;
        margin-left: calc(-1 * var(--content-padding, 1rem));
        margin-right: calc(-1 * var(--content-padding, 1rem));
        width: calc(100% + 2 * var(--content-padding, 1rem));
        max-width: none;
    }
    
    .article-image {
        border-radius: 4px;
    }
    
    figure {
        margin: 1.5rem 0;
    }
    
    figcaption {
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }
    
    .footer-disclaimer {
        padding: 1.5rem var(--content-padding, 1rem);
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .hero-image {
        aspect-ratio: 16 / 10;
    }
    
    .article-image {
        aspect-ratio: 16 / 10;
    }
    
    figcaption {
        font-size: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-image,
    .article-image {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .article-image:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    }
    
    figcaption {
        color: var(--color-text-secondary, #A8A5A0);
    }
    
    .footer-disclaimer {
        border-top-color: var(--color-border, #3A3A3E);
        color: var(--color-text-secondary, #A8A5A0);
    }
    
    .footer-disclaimer strong {
        color: var(--color-text, #E8E6E3);
    }
}

/* Print Styles */
@media print {
    .hero-image,
    .article-image {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    figure {
        page-break-inside: avoid;
    }
    
    .footer-disclaimer {
        border-top: 1px solid #999;
    }
}

/* Footer specific styles — matches your design tokens and layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.footer-section ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.footer-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--color-primary);
  outline: none;
}

/* Footer menu fallback styling (if WP menu outputs links) */
.footer-menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-menu a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Small copy at bottom */
.footer-copy {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-align: left;
  margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-section h3 {
    font-size: 1.125rem;
  }

  .footer-copy {
    text-align: center;
  }
}