.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-logo-text {
  white-space: nowrap;
}

.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;
  color: #333;
}

.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: #1B5E20;
  --color-primary-dark: #0D3311;
  --color-accent: #FF8F00;
  --color-neutral: #263238;
  --color-bg: #F5F5F5;
  --color-surface: #FFFFFF;
  --color-danger: #C62828;
  --color-success: #2E7D32;
  --color-info-bg: #E8F5E9;
  --color-warning-bg: #FFF3E0;
  --color-funfact-bg: #E3F2FD;
  --color-text: #263238;
  --color-text-secondary: #546E7A;
  --color-border: #CFD8DC;
  --color-hero-text: #FFFFFF;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --h1-size: clamp(2rem, 5vw, 3.5rem);
  --h2-size: clamp(1.5rem, 3.5vw, 2.25rem);
  --h3-size: clamp(1.125rem, 2.5vw, 1.5rem);
  --body-size: clamp(1rem, 2vw, 1.125rem);
  --caption-size: 0.875rem;

  --content-width: 740px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1f23;
    --color-surface: #242a30;
    --color-text: #E0E0E0;
    --color-text-secondary: #90A4AE;
    --color-border: #37474F;
    --color-neutral: #E0E0E0;
    --color-info-bg: #1B3320;
    --color-warning-bg: #332200;
    --color-funfact-bg: #172a3a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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: #66BB6A; }
  a:hover { color: var(--color-accent); }
}

/* ===== 2. General Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  text-align: left;
  line-height: 1.2;
}

h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1em;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

li {
  text-align: left;
  margin-bottom: 0.4em;
}

blockquote {
  text-align: left;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

strong {
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--caption-size);
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
}

tr:nth-child(even) {
  background-color: color-mix(in srgb, var(--color-surface) 60%, var(--color-bg));
}

figure {
  margin: 1.5em auto;
}

figcaption {
  text-align: center;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ===== 3. Layout: data-content sections ===== */
main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  margin-bottom: var(--section-gap);
}

[data-content="hero"],
[data-content="toc"] {
  max-width: none;
  padding: 0;
  margin-bottom: 0;
}

/* ===== 4. Visual Components ===== */

/* --- info-box --- */
.info-box {
  background-color: var(--color-info-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--component-radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--color-text);
}

/* --- odds-example --- */
.odds-example {
  background-color: var(--color-primary-dark);
  color: var(--color-hero-text);
  border-radius: var(--component-radius);
  padding: 1.5rem 2rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.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-color: #0D3311;
    color: #E0E0E0;
  }
  .odds-example p {
    color: #E0E0E0;
  }
  .odds-example strong {
    color: var(--color-accent);
  }
}

/* --- callout / callout-warning --- */
.callout,
.callout-warning {
  background-color: var(--color-warning-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--component-radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.callout p,
.callout-warning p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.callout p:last-child,
.callout-warning p:last-child {
  margin-bottom: 0;
}

.callout strong,
.callout-warning strong {
  color: var(--color-text);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5em 0;
}

.card-grid > div,
.card-grid > article {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-grid > div:hover,
.card-grid > article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-grid p {
  text-align: left;
  color: var(--color-text);
}

/* --- step-card --- */
.step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  padding-left: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.step-card p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.step-card p:last-child {
  margin-bottom: 0;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5em 0;
}

.comparison > div {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.comparison p {
  text-align: left;
  color: var(--color-text);
}

.comparison strong {
  color: var(--color-text);
}

@media (max-width: 600px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}

/* --- tldr --- */
.tldr {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--component-radius);
  padding: 1.5rem 2rem;
  margin: 1.5em auto;
  box-shadow: var(--shadow-sm);

}

@media (max-width: 768px) {
  .tldr {
    padding: 1rem !important;
    margin-left: 15px;
    margin-right: 15px;
  }
}

.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.tldr p {
  text-align: left;
  color: var(--color-text);
}

.tldr ul {
  padding-left: 1.25em;
}

.tldr li {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1rem;
  margin: 2em 0;
}

.key-takeaway p {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

/* --- 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(--color-accent);
  font-weight: 700;
}

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0.75em 0;
}

.glossary-term p {
  text-align: left;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .glossary-term strong {
    color: #66BB6A;
  }
}

@media (max-width: 600px) {
  .glossary-term {
    flex-direction: column;
    gap: 2px;
  }
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5em 0;
}

.dos-donts > div:first-child {
  border-left: 4px solid var(--color-success);
  padding-left: 1.25rem;
}

.dos-donts > div:last-child {
  border-left: 4px solid var(--color-danger);
  padding-left: 1.25rem;
}

.dos-donts p {
  text-align: left;
  color: var(--color-text);
}

.dos-donts strong {
  color: var(--color-text);
}

.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.5em 0;
}

.pre-bet-checklist p:first-child,
.pre-bet-checklist > strong:first-child {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--caption-size);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-border);
}

.pre-bet-checklist li {
  position: relative;
  padding-left: 1.25rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.6em;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -0.85rem;
  top: 0;
  color: var(--color-accent);
  background-color: var(--color-bg);
  padding: 0 2px;
  font-size: 0.9em;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.at-a-glance > div {
  padding: 1.25rem;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance p:first-child {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25em;
}

.at-a-glance p {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--caption-size);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.75rem 2rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
  font-family: var(--font-mono);
  font-size: var(--caption-size);
  line-height: 1.8;
}

.worked-example p:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--body-size);
}

.worked-example p:last-child {
  margin-bottom: 0;
  color: var(--color-primary);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .worked-example p:last-child {
    color: #66BB6A;
  }
}

.worked-example hr {
  border-top-color: var(--color-border);
  margin: 0.75rem 0;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--body-size);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* ===== 5. Hero Section ===== */
[data-content="hero"] {
  background: linear-gradient(170deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--section-gap);
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='260' viewBox='0 0 400 260'%3E%3Cline x1='0' y1='130' x2='400' y2='130' stroke='%23fff' stroke-width='1.5'/%3E%3Cline x1='200' y1='0' x2='200' y2='260' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='200' cy='130' r='50' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='200' cy='130' r='3' fill='%23fff'/%3E%3Crect x='0' y='80' width='60' height='100' fill='none' stroke='%23fff' stroke-width='1'/%3E%3Crect x='340' y='80' width='60' height='100' fill='none' stroke='%23fff' stroke-width='1'/%3E%3Crect x='0' y='100' width='25' height='60' fill='none' stroke='%23fff' stroke-width='1'/%3E%3Crect x='375' y='100' width='25' height='60' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 260px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 10%, black 70%);
  mask-image: radial-gradient(ellipse at center, transparent 10%, black 70%);
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"]::after {
    background: linear-gradient(to bottom, transparent, #1a1f23);
  }
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.articles-page-title {
  color: var(--color-text);
}

.hero-inner h1 {
  color: #fff !important;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 0.3em 0.8em;
  border-radius: 3px;
}

.hero-trust {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

[data-content="hero"] h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 800;
  color: var(--color-hero-text);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-align: left;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--caption-size);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.hero-description {
  text-align: left;
  color: rgba(255,255,255,0.85);
  font-size: var(--body-size);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

[data-content="hero"] figure {
  margin-top: 2rem;
  border-radius: var(--component-radius);
  overflow: hidden;
}

[data-content="hero"] .hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--component-radius);
}

[data-content="hero"] figcaption {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== 5b. TOC — Compact Horizontal Strip ===== */
[data-content="toc"] {
  max-width: var(--content-width);
  margin: 0 auto calc(var(--section-gap) * 0.5);
  padding: 0 1.25rem;
}

.toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.toc-nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.35em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.toc-nav a:hover {
  background-color: var(--color-primary);
  color: var(--color-hero-text);
  border-color: var(--color-primary);
}

.toc-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== 6. Media Queries ===== */
@media (max-width: 768px) {
  [data-content] {
    padding: 0 1rem;
  }

  [data-content="hero"] {
    padding: clamp(2.5rem, 6vw, 4rem) 1rem clamp(2rem, 4vw, 3rem);
  }

  .toc-nav {
    gap: 0.4rem;
  }

  .toc-nav a {
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== 7. FAQ Accordion ===== */
details {
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

summary {
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--body-size);
  color: var(--color-text);
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: '\2212';
  transform: translateY(-50%) rotate(0deg);
}

summary:hover {
  color: var(--color-primary);
}

@media (prefers-color-scheme: dark) {
  summary:hover {
    color: #66BB6A;
  }
}

summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern animated details */
details {
  interpolate-size: allow-keywords;
}

::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  details[open] > *:not(summary) {
    animation: fadeInFaq 0.3s ease forwards;
  }
  @keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

details > div {
  padding: 0 0 1.25rem;
}

details > div > p {
  text-align: left;
  color: var(--color-text);
}

/* ===== 8. Article Images ===== */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
}

/* ===== 9. Back to Top ===== */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  margin-top: 1rem;
}

.back-to-top:hover {
  background-color: var(--color-primary);
  color: var(--color-hero-text);
  border-color: var(--color-primary);
}

/* ===== 10. Footer ===== */
footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ===== 11. Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 3px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.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: 1480px !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;
}

.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease, transform 0.12s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--color-primary);
  transform: translateX(2px);
  outline: none;
}

.footer-menu a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, var(--color-surface));
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 1.25rem;
  }

  .footer-col h3 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
  }

  .footer-copy {
    font-size: 0.8rem;
  }
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: var(--color-surface);
    color: var(--color-text-secondary);
  }
}