.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 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 {
  --color-primary: #1B4332;
  --color-accent: #D4A843;
  --color-surface: #F5F3EF;
  --color-bg: #FAFAF8;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B7280;
  --color-border: #E5E2DC;
  --color-success: #2D6A4F;
  --color-danger: #9B2C2C;
  --color-hero-bg: #1B4332;
  --color-hero-text: #FFFFFF;
  --color-hero-subtitle: #D4A843;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --content-width: 740px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111311;
    --color-surface: #1A1D1A;
    --color-text: #E8E6E1;
    --color-text-secondary: #9CA3AF;
    --color-border: #2E332E;
    --color-hero-bg: #0D2818;
    --color-success: #52B788;
    --color-danger: #F87171;
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   2. General Typography
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  h2 { color: #52B788; }
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
  text-align: left;
}

p { margin-bottom: 1.25em; text-align: left; }
strong { font-weight: 600; }
em { font-style: italic; }
a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.2s; }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

@media (prefers-color-scheme: dark) {
  a { color: #52B788; }
  a:hover { color: var(--color-accent); }
}

ul, ol { padding-left: 1.5em; margin-bottom: 1.25em; }
li { margin-bottom: 0.4em; text-align: left; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: left;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92em;
}
th, td {
  padding: 0.65em 0.85em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (prefers-color-scheme: dark) {
  th { color: #52B788; }
}
tr:hover td { background: var(--color-surface); transition: background 0.2s; }

figure {
  margin: 2em auto;
  max-width: 100%;
}
figcaption {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.5em;
}

.hero-image { max-width: 100%; height: auto; display: block; margin: 0 auto; }
figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ============================================
   3. Layout — Sections
   ============================================ */
main { width: 100%; }

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-gap) 1.25rem 0;
}

[data-content="intro"] { padding-top: calc(var(--section-gap) * 0.5); }

/* ============================================
   4. Components
   ============================================ */

/* --- info-box --- */
.info-box {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.info-box p { margin-bottom: 0.5em; text-align: left; color: var(--color-text); }
.info-box p:last-child { margin-bottom: 0; }

/* --- data-card --- */
.data-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em 1.5em;
  margin: 1.25em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.data-card p { margin-bottom: 0; text-align: left; color: var(--color-text); }
.data-card strong { font-size: 1.35em; color: var(--color-primary); display: block; margin-bottom: 0.15em; }
@media (prefers-color-scheme: dark) {
  .data-card strong { color: #52B788; }
}

/* --- callout / callout-expert --- */
.callout-expert,
.callout {
  border-left: 3px solid var(--color-accent);
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
  background: transparent;
}
.callout-expert p,
.callout p { margin-bottom: 0.5em; text-align: left; color: var(--color-text); }
.callout-expert p:last-child,
.callout p:last-child { margin-bottom: 0; }

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1.25em;
  margin: 2em 0;
}
.key-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5em;
  margin: 1.5em 0;
}
.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.fun-fact p {
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}
.glossary-term strong {
  font-family: 'Courier New', monospace;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.glossary-term p { color: var(--color-text-secondary); margin-bottom: 0; text-align: left; }
@media (max-width: 600px) {
  .glossary-term { flex-direction: column; gap: 2px; }
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 1.75em 0;
}
.dos-donts > div:first-child { border-left: 3px solid var(--color-success); padding-left: 1em; }
.dos-donts > div:last-child { border-left: 3px solid var(--color-danger); padding-left: 1em; }
.dos-donts p { font-weight: 600; margin-bottom: 0.5em; text-align: left; color: var(--color-text); }
.dos-donts ul { padding-left: 1.25em; }
.dos-donts li { text-align: left; color: var(--color-text); }
@media (max-width: 600px) {
  .dos-donts { grid-template-columns: 1fr; }
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.75em 0;
}
.pre-bet-checklist > p:first-child {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75em;
  text-align: left;
}
.pre-bet-checklist ul {
  border-left: 2px solid var(--color-border);
  padding-left: 1.75em;
  list-style: none;
}
.pre-bet-checklist li {
  position: relative;
  padding: 0.35em 0;
  text-align: left;
  color: var(--color-text);
}
.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.75em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 1.75em 0;
}
.at-a-glance > div {
  padding: 1em 1.25em;
  border-right: 1px solid var(--color-border);
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance p { text-align: left; color: var(--color-text); margin-bottom: 0.25em; }
.at-a-glance p:first-child strong {
  font-family: var(--font-display);
  font-size: 1.2em;
}
@media (max-width: 600px) {
  .at-a-glance { grid-template-columns: 1fr; }
  .at-a-glance > div { border-right: none; border-bottom: 1px solid var(--color-border); }
  .at-a-glance > div:last-child { border-bottom: none; }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: 1.5em;
  margin: 1.75em 0;
  border-radius: var(--component-radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.worked-example p { text-align: left; color: var(--color-text); margin-bottom: 0.75em; }
.worked-example p:first-child strong { font-family: var(--font-display); }
.worked-example p:last-child { font-weight: 600; color: var(--color-primary); margin-bottom: 0; }
@media (prefers-color-scheme: dark) {
  .worked-example p:last-child { color: #52B788; }
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2em 0;
  color: var(--color-accent);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05em;
}
.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  margin: 0 0.5em;
  opacity: 0.4;
}
.section-bridge p { text-align: center; color: var(--color-accent); margin-bottom: 0; }

/* --- comparison-table wrapper --- */
.comparison-table { margin: 1.75em 0; overflow-x: auto; }

/* --- odds-example --- */
.odds-example {
  background: var(--color-primary);
  color: var(--color-hero-text);
  padding: 1.5em;
  margin: 1.75em 0;
  border-radius: var(--component-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.odds-example p { text-align: center; color: var(--color-hero-text); margin-bottom: 0.5em; }
.odds-example p:last-child { margin-bottom: 0; }
.odds-example strong { color: var(--color-accent); }
@media (prefers-color-scheme: dark) {
  .odds-example { background: #0D2818; }
  .odds-example p { color: #E8E6E1; }
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin: 1.75em 0;
}
.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-grid p { text-align: left; color: var(--color-text); margin-bottom: 0.25em; }

/* --- comparison (side-by-side) --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 1.75em 0;
}
.comparison > div {
  background: var(--color-surface);
  padding: 1.25em;
  border-radius: var(--component-radius);
  border: 1px solid var(--color-border);
}
.comparison p { text-align: left; color: var(--color-text); }
@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
}

/* --- TL;DR --- */
.tldr {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 1.5em 1.75em;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
}
.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75em;
}
.tldr ul { padding-left: 1.25em; }
.tldr li { font-size: 0.95em; margin-bottom: 0.6em; color: var(--color-text); text-align: left; }

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-hero-bg);
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.025) 60px,
      rgba(255,255,255,0.025) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 120px,
      rgba(255,255,255,0.015) 120px,
      rgba(255,255,255,0.015) 121px
    );
  pointer-events: none;
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212,168,67,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

[data-content="hero"] h1 {
  color: var(--color-hero-text) !important;
  margin-bottom: 0.6em;
  text-align: center;
}

.hero-subtitle {
  color: var(--color-hero-subtitle);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 0;
}

.hero-rubric {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 1.5em;
}

.hero-start {
  display: inline-block;
  margin-top: 2em;
  padding: 0.65em 1.8em;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.hero-start:hover { opacity: 0.88; transform: translateY(-1px); color: var(--color-primary); }

.hero-cta-wrap { text-align: center; }

/* ============================================
   6. Header, Footer, Date Badge, TOC
   ============================================ */
header {
  position: relative;
  z-index: 10;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  justify-content: center;
  padding: 0.75em 1.25em 0;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}
.trust-marker {
  line-height: .8 !important;
}


@media (max-width: 680px) {
.trust-marker {
  line-height: 2 !important;
}
}


.date-badge time { color: inherit; }
.trust-marker { color: var(--color-accent); opacity: 0.8; }

footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* --- Table of Contents (vertical) --- */
[data-content="toc"] {
  padding-top: calc(var(--section-gap) * 0.6);
}
.toc-nav {
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.5em 1.75em;
  background: var(--color-surface);
}
.toc-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
  margin-bottom: 1em;
}
.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-nav > ul > li {
  margin-bottom: 0.5em;
}
.toc-nav > ul > li > a {
  font-weight: 600;
  font-size: 0.92em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-nav > ul > li > a:hover { color: var(--color-accent); }
.toc-nav ul ul {
  padding-left: 1.25em;
  margin-top: 0.3em;
}
.toc-nav ul ul li { margin-bottom: 0.3em; }
.toc-nav ul ul a {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-nav ul ul a:hover { color: var(--color-accent); }

/* ============================================
   7. FAQ Accordion
   ============================================ */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
summary {
  padding: 1em 0;
  font-weight: 600;
  font-size: 1.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: var(--color-text);
  transition: color 0.2s;
}
summary:hover { color: var(--color-accent); }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ''; }
summary::after {
  content: '+';
  font-size: 1.3em;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1em;
}
details[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}

/* Modern details animation */
details { interpolate-size: allow-keywords; }
::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: clip;
  content-visibility: hidden;
}
details[open]::details-content {
  opacity: 1;
  block-size: auto;
  content-visibility: visible;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

details div[itemscope] p,
details > div > p {
  padding-bottom: 1em;
  text-align: left;
  color: var(--color-text);
  line-height: 1.72;
}

/* ============================================
   8. Media Queries
   ============================================ */
@media (max-width: 680px) {
  [data-content] { padding-left: 1rem; padding-right: 1rem; }
  [data-content="hero"] { padding-left: 1rem; padding-right: 1rem; }
  .header-meta { flex-direction: column; gap: 0.3em; }
  table { font-size: 0.82em; }
  th, td { padding: 0.5em 0.6em; }
}

.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;
  padding-top: 0 !important;
}

.um-menu-link {
  padding: 0.75rem 0.7rem !important;
}

h1 {
  color: var(--color-text) !important;
  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.css — Image styles for UK Horse Race Winner */

.hero-figure {
  margin: 2em auto 0;
  max-width: 100%;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

figure {
  margin: 2em auto;
  max-width: 100%;
}

figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

figure figcaption {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #6B7280);
  text-align: center;
  margin-top: 0.6em;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .hero-image,
  figure img {
    border-radius: 2px;
  }

  .hero-figure {
    margin-top: 1.5em;
  }

  .article-figure {
    margin: 1.5em auto;
  }
}

footer.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.site-footer section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: var(--color-primary);
}

@media (prefers-color-scheme: dark) {
  .site-footer h3 {
    color: #52B788;
  }
}

.site-footer ul,
.site-footer .footer-menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer .footer-copy {
  text-align: center;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  footer.site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

    .sitemap-content {
        margin: 30px 0;
    }

    .sitemap-section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }

    .sitemap-section h2 {
        color: inherit;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .sitemap-section h3 {
        color: #555;
        margin: 15px 0 10px 0;
    }

    .sitemap-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    @media (max-width: 1024px) {
        .sitemap-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.25rem;
        }
    }

    @media (max-width: 768px) {
        .sitemap-list {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }

    .sitemap-list li {
        margin-bottom: 8px;
        padding-left: 15px;
        position: relative;
    }

    .sitemap-list li:before {
        content: "›";
        position: absolute;
        left: 0;
        color: #007cba;
    }

    .sitemap-list a {
        text-decoration: none;
        color: inherit;
        transition: color 0.3s;
    }

    .sitemap-list a:hover {
        color: #007cba;
    }

    .category-group {
        margin-bottom: 20px;
    }

    .tags-cloud {
        line-height: 2;
    }

    .tag {
        display: inline-block;
        background: #e9e9e9;
        padding: 5px 10px;
        margin: 3px;
        border-radius: 3px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        transition: all 0.3s;
    }

    .tag:hover {
        background: #007cba;
        color: white;
    }

    @media (max-width: 768px) {
        .sitemap-section {
            padding: 15px;
        }

        .tag {
            font-size: 12px;
            padding: 3px 8px;
        }
    }