.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;
}

html {
  scroll-behavior: smooth;
}

main:not([data-content]), .articles-container, .article-card__content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

h1:not([data-content="hero"] h1) {
  font-size: clamp(28px, 5vw, 42px);
}

.toc-wrap__title {
  font-weight: 700;
  font-size: var(--h3-size) !important;
}

header {
  width: 100% !important;
}

.um-logo__text {
  display: none !important;;
}

.breadcrumbs {
  width: 100% !important;
}

.sitemap-main {
  padding-left: 1rem;
  padding-right: 1rem;
}

.container {
  width: 100%;
}

.um-header {
  --um-primary-color: inherit;
  --um-bg-color: inherit;
  --um-hover-color: inherit;
  --um-border-color: inherit;
  --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: 2rem;
}

.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: 175px;
  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: 1295px) {
  .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: 1296px) {
  .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-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 {
  --bg-page: #f4f7f9;
  --bg-header: #ffffff;
  --bg-footer: #1a1e23;
  --text-primary: #1e2328;
  --text-secondary: #5a6370;
  --accent: #19e5bc;
  --accent-text: #0c8068;
  --accent-secondary: #3a4a5c;
  --border-color: #d8dee6;
  --bg-card: #ffffff;
  --bg-surface: #eef3f7;
  --accent-5: rgba(25, 229, 188, 0.05);
  --accent-8: rgba(25, 229, 188, 0.08);
  --accent-12: rgba(25, 229, 188, 0.12);
  --success: #2a9d6c;
  --danger: #d14343;
  --content-width: 1000px;
  --section-gap: 4rem;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Archivo Black', sans-serif;
  --h1-size: clamp(32px, 4vw, 48px);
  --h2-size: clamp(24px, 3vw, 34px);
  --h3-size: clamp(19px, 2.2vw, 24px);
  --body-size: 18px;
  --body-lh: 1.7;
  --mono-size: 15px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  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); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-secondary); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ========================================
   2. General Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

h2 { font-size: var(--h2-size); margin-top: 0; margin-bottom: 1rem; text-align: left; }
h3 { font-size: var(--h3-size); margin-top: 0; margin-bottom: 0.75rem; text-align: left; }

p {
  text-align: left;
  margin-bottom: 1.25em;
}

ul, ol { padding-left: 1.5em; margin-bottom: 1.25em; }
li { margin-bottom: 0.4em; text-align: left; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-secondary);
}

strong { font-weight: 700; }
em { font-style: italic; }

figure {
  margin: 1.5em auto;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5em 0;
}

thead { background-color: var(--accent-secondary); color: #ffffff; }
th { padding: 0.75rem 1rem; text-align: left; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); text-align: left; }
tbody tr:nth-child(even) { background-color: var(--bg-surface); }

/* ========================================
   3. Layout — Sections
   ======================================== */
main { width: 100%; }

article { width: 100%; }

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  margin-bottom: var(--section-gap);
}

h2, h3 { scroll-margin-top: 2rem; }

/* ========================================
   4. Header
   ======================================== */
.site-header {
  background-color: 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 {
  height: 51px;
  width: auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.header-trust {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

/* ========================================
   5. Components
   ======================================== */

/* --- info-box --- */
.info-box {
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- callout --- */
.callout {
  background-color: var(--accent-5);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
  margin: 2em 0;
}

.key-takeaway p {
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5em 0;
}

.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.fun-fact p {
  text-align: left;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.25em 0;
}

.glossary-term p {
  margin-bottom: 0;
  text-align: left;
}

.glossary-term strong {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5em 0;
}

.dos-donts > div {
  padding: 1.25rem;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.dos-donts > div:first-child {
  background-color: rgba(42, 157, 108, 0.05);
  border-top: 3px solid var(--success);
}

.dos-donts > div:last-child {
  background-color: rgba(209, 67, 67, 0.05);
  border-top: 3px solid var(--danger);
}

.dos-donts p {
  text-align: left;
  margin-bottom: 0.75rem;
}

.dos-donts strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.dos-donts > div:first-child strong { color: var(--success); }
.dos-donts > div:last-child strong { color: var(--danger); }

.dos-donts ul {
  padding-left: 1.25em;
  margin-bottom: 0;
}

.dos-donts li {
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

/* --- comparison --- */
.comparison {
  margin: 1.5em 0;
  overflow-x: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.comparison table { margin: 0; }

.comparison th {
  background-color: var(--accent-secondary);
  color: #ffffff;
}

.comparison td {
  color: var(--text-primary);
  background-color: transparent;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5em 0;
  background: var(--bg-card);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.at-a-glance > div {
  padding: 1.25rem 1rem;
  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;
  margin-bottom: 0.25rem;
}

.at-a-glance p:first-child {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.at-a-glance p:last-child {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-text);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding: 1rem 0;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

.section-bridge::before { left: 0; }
.section-bridge::after { right: 0; }

.section-bridge p {
  text-align: center;
  color: var(--accent-text);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0;
  display: inline;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5em 0;
}

.card-grid > div {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-grid p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

/* --- odds-example --- */
.odds-example {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.odds-example p {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
}

/* --- worked-example --- */
.worked-example {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 1.75rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.worked-example p {
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  line-height: 1.8;
  margin-bottom: 0.75em;
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 1rem 0;
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.5em 0;
}

.pre-bet-checklist p:first-child {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
  text-align: left;
}

.pre-bet-checklist ul {
  border-left: 2px solid var(--border-color);
  padding-left: 1.75rem;
  list-style: none;
}

.pre-bet-checklist li {
  position: relative;
  margin-bottom: 0.6em;
  text-align: left;
  font-size: 0.95rem;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.75rem;
  color: var(--accent-text);
  background: var(--bg-page);
  padding: 0 2px;
  font-size: 0.9rem;
}

/* --- tldr --- */
.tldr {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.tldr h2 {
  font-size: clamp(17px, 2vw, 20px);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  text-align: left;
}

.tldr ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.tldr li {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.6em;
  color: var(--text-primary);
}

.tldr li:last-child { margin-bottom: 0; }

/* --- author-bio --- */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ========================================
   6. Hero Section
   ======================================== */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  background: var(--bg-header);
  overflow: hidden;
  margin-bottom: var(--section-gap);
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(25, 229, 188, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"] > * {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}

[data-content="hero"] h1 {
  font-size: var(--h1-size);
  max-width: var(--content-width);
  margin: 0 auto 1rem;
  text-align: center;
  line-height: 1.15;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-byline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

[data-content="hero"] figure {
  margin: 0 auto;
  max-width: var(--content-width);
}

[data-content="hero"] figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.hero-cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--accent);
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

/* ========================================
   7. TOC
   ======================================== */
[data-content="toc"] {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

[data-content="toc"] ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  column-count: 2;
  column-gap: 2rem;
}

[data-content="toc"] > ul > li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

[data-content="toc"] > ul > li > a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

[data-content="toc"] > ul > li > a:hover { color: var(--accent-text); }

[data-content="toc"] ul ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.3rem;
  margin-bottom: 0;
  column-count: 1;
}

[data-content="toc"] ul ul li {
  margin-bottom: 0.3rem;
}

[data-content="toc"] ul ul a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
}

[data-content="toc"] ul ul a:hover { color: var(--accent-text); }

/* ========================================
   8. FAQ Accordion
   ======================================== */
details {
  border-bottom: 1px solid var(--border-color);
}

details:first-of-type {
  border-top: 1px solid var(--border-color);
}

article h2 {
  margin-top: var(--section-gap);
}

summary {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

summary:hover { color: var(--accent-text); }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ''; }

summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-text);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s ease;
}

details[open] summary::after {
  content: '\2212';
  transform: rotate(0deg);
}

details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

details[open] > div {
  max-height: 500px;
  opacity: 1;
}

details > div > p {
  padding-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: left;
}

/* ========================================
   9. Footer
   ======================================== */
.site-footer {
  background-color: var(--bg-footer);
  color: #a0a8b4;
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: var(--section-gap);
}

.footer-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h2 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d0d5dc;
  margin-bottom: 0.75rem;
}

.footer-col p {
  color: #a0a8b4;
  text-align: left;
  font-size: 0.78rem;
  margin-bottom: 0.5em;
  line-height: 1.55;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.4em; }

.footer-col a {
  color: #a0a8b4;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.72rem;
  color: #6b7280;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

/* ========================================
   10. Media Queries
   ======================================== */
@media (max-width: 768px) {
  [data-content] { padding-left: 1rem; padding-right: 1rem; }
  [data-content="hero"] { padding: 3.5rem 1rem 2.5rem; }

  .site-header { padding: 0.6rem 1rem; }
  .header-trust { display: none; }

  .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; }

  .dos-donts { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: 1fr; }

  .glossary-term { flex-direction: column; gap: 4px; }

  .comparison { margin-left: -0.5rem; margin-right: -0.5rem; border-radius: 0; }

  [data-content="toc"] ul { column-count: 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .tldr { padding: 1.25rem 1.25rem; }

  .section-bridge::before,
  .section-bridge::after { width: 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-logo img { height: 38px; }
}

.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(--bg-page) !important;
}

main {
  overflow-x: hidden !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;
  flex: 1;
}


footer ul {
  list-style: none;
}

.articles-page-title {
  text-align: center;
}


    .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: var(--accent-text);
    }

    .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;
        }
    }

/* ========================================
   Article Images
   ======================================== */

figure {
  margin: 2rem auto;
  max-width: 100%;
}

figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #5a6370;
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 768px) {
  figure {
    margin: 1.5rem auto;
  }

  figure img {
    border-radius: 6px;
  }

  figcaption {
    font-size: 0.8rem;
    padding: 0 0.25rem;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-secondary); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 540px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 700;
  color: var(--border-color);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 1rem;
}
.error-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.error-cta {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--accent);
  border-radius: 5px;
  transition: transform 0.2s ease;
}
.error-cta:hover { transform: translateY(-1px); color: var(--text-primary); }

.g-wrapper {
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .g-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}