.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;
}

main:not([data-content]), .articles-container, .article-card__content {
  padding-left: 0 !important;
  padding-right: 0 !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: 1195px) {
  .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: 1195px) {
  .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. ROOT VARIABLES AND RESET
   ============================================================ */
:root {
  /* Palette */
  --bg-page: #fafbfc;
  --bg-header: #ffffff;
  --bg-footer: #0f172a;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #197fe5;
  --accent-secondary: #0b62bd;
  --border: #e2e8f0;
  --muted: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-logo: 'Unbounded', 'Space Grotesk', sans-serif;

  /* Layout */
  --content-width: 1000px;
  --wide-width: 1000px;
  --section-gap: clamp(2.5rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

img, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
}
figure {
  max-width: 100%;
}
table {
  max-width: 100%;
}
pre, code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   2. TYPOGRAPHY (GLOBAL)
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  margin: 0 0 1.25rem;
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin: 2rem 0 0.75rem;
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  margin: 0 0 1.15em;
  text-align: left;
  font-size: 1rem;
}

ul, ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
  text-align: left;
}

li {
  margin-bottom: 0.4em;
  text-align: left;
}

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-secondary); }

blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
  font-style: italic;
  text-align: left;
}

figure {
  margin: 1.5em auto;
  max-width: 100%;
}
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
figcaption {
  margin-top: 0 !important;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

img { max-width: 100%; height: auto; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
main {
  width: 100%;
  display: block;
}

article {
  display: block;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
  position: static;
  scroll-margin-top: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

[data-content="market-snapshot-2025"],
[data-content="fees-structure"],
[data-content="regulatory-landscape"],
[data-content="alternatives-overview"],
[data-content="operator-comparison-overview"] {
  max-width: var(--content-width);
}

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-marker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.75em;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.date-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg-page);
  box-sizing: border-box;
}

/* Glow layer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(25, 127, 229, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Pattern: dot grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.5rem;
  text-align: center;
  max-width: 900px;
}

.hero-byline {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 700px;
}
.hero-byline .byline-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.3em;
}

.hero figure {
  position: relative;
  z-index: 1;
  margin: 2rem auto 0;
  max-width: var(--content-width);
}
.hero figure img,
.hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.18), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   6. TABLE OF CONTENTS (horizontal variant)
   ============================================================ */
.toc {
  margin-top: calc(var(--section-gap) * 0.6);
  margin-bottom: calc(var(--section-gap) * 0.6);
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.05);
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  display: block;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}
.toc-list > li { margin: 0; }
.toc-list a {
  display: inline-block;
  padding: 0.4em 0.85em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.toc-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.toc-nested { display: none; } /* H3 hidden in horizontal variant */

/* ============================================================
   7. COMPONENTS
   ============================================================ */

/* info-box */
.info-box {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}
.info-box p { color: var(--text-primary); text-align: left; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--accent-secondary); }

/* callout */
.callout {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem 1.35rem 3.5rem;
  background: var(--muted);
  border-radius: 10px;
  position: relative;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px transparent;
}
.callout::before {
  content: "!";
  position: absolute;
  top: -16px;
  left: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.callout p { color: var(--text-primary); text-align: left; }
.callout p:last-child { margin-bottom: 0; }

/* key-takeaway */
.key-takeaway {
  margin: 2.5rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.1);
  position: relative;
}
.key-takeaway::before {
  content: "Key takeaway";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 0;
}

/* fun-fact */
.fun-fact {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  background: rgba(25, 127, 229, 0.06);
  border-radius: 10px;
  position: relative;
}
.fun-fact::before {
  content: "Fact";
  position: absolute;
  top: -0.6rem;
  left: 1.25rem;
  padding: 0.2em 0.7em;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 4px;
}
.fun-fact p { color: var(--text-primary); text-align: left; }
.fun-fact p:last-child { margin-bottom: 0; }

/* glossary-term */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.5rem 0;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--border);
}
.glossary-term p {
  margin: 0;
  color: var(--text-secondary);
  text-align: left;
  flex: 1;
}
.glossary-term strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* pre-bet-checklist */
.pre-bet-checklist {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 0.25rem;
}
.pre-bet-checklist > p:first-child {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: left;
}
.pre-bet-checklist ul {
  list-style: none;
  padding: 0 0 0 1.5rem;
  margin: 0;
  border-left: 2px solid var(--border);
}
.pre-bet-checklist li {
  position: relative;
  padding: 0.55em 0 0.55em 2em;
  color: var(--text-primary);
  text-align: left;
  margin: 0;
}
.pre-bet-checklist li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.85em;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--bg-page);
  box-sizing: border-box;
}

/* odds-example */
.odds-example {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.06);
  text-align: center;
}
.odds-example p {
  text-align: center;
  color: var(--text-primary);
}
.odds-example p:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.odds-example p:last-child { margin-bottom: 0; text-align: left; }

/* comparison — table container */
.comparison {
  position: relative;
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06);
  -webkit-overflow-scrolling: touch;
}

/* Scroll hint — shown only on narrow viewports where the table may overflow */

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.comparison thead {
  background: var(--muted);
}
.comparison th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison td {
  padding: 12px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.comparison tbody tr:nth-child(even) { background: #f8fafc; }
.comparison tbody tr:last-child td { border-bottom: none; }
.comparison td:nth-child(n+2) {
  font-family: var(--font-mono);
  font-size: 0.87rem;
  font-weight: 400;
}

/* at-a-glance */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 2rem 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
}
.at-a-glance > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance p {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}
.at-a-glance p:first-child {
  margin-bottom: 0.4rem;
}
.at-a-glance p strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* dos-donts */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.dos-donts > div {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.dos-donts > div:first-child { border-top: 3px solid var(--success); }
.dos-donts > div:last-child { border-top: 3px solid var(--danger); }
.dos-donts h3 {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dos-donts > div:first-child h3 { color: var(--success); }
.dos-donts > div:last-child h3 { color: var(--danger); }
.dos-donts ul { list-style: none; padding: 0; margin: 0; }
.dos-donts li {
  padding: 0.4em 0 0.4em 1.5em;
  position: relative;
  color: var(--text-primary);
  text-align: left;
}
.dos-donts > div:first-child li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.dos-donts > div:last-child li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

/* card-grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.card-grid > * {
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.05);
}
.card-grid p { text-align: left; color: var(--text-primary); }

/* worked-example */
.worked-example {
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.worked-example p {
  color: var(--text-primary);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.worked-example p:last-child {
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

/* section-bridge */
.section-bridge {
  text-align: center;
  margin: 2.5rem auto;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent);
  font-size: 1.05rem;
  position: relative;
}
.section-bridge::before, .section-bridge::after {
  content: "···";
  display: inline-block;
  margin: 0 0.8em;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  vertical-align: middle;
}

/* tldr — uses data-content so no margin shorthand */
.tldr {
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.06);
}
.tldr h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: 0;
}
.tldr ul {
  margin-bottom: 0;
  padding-left: 1.2em;
}
.tldr li {
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 0.55em;
  text-align: left;
}
.tldr li:last-child { margin-bottom: 0; }

/* author-bio */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ============================================================
   8. FAQ
   ============================================================ */
details {
  margin: 0.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  interpolate-size: allow-keywords;
}
details[open] {
  box-shadow: 0 4px 14px -6px rgba(25, 127, 229, 0.15);
  border-color: rgba(25, 127, 229, 0.3);
}
summary {
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.4rem !important;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  line-height: 1.4;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}
details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
}
details[open] > div {
  max-height: 1000px;
  opacity: 1;
  padding: 0 1.4rem 1.2rem;
}
details p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: left;
}

/* ============================================================
   9. ARTICLE IMAGES
   ============================================================ */
.article-image {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.1);
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: var(--section-gap);
  font-size: 0.82rem;
  line-height: 1.55;
}
.footer-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.footer-col h2 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin: 0 0 0.9rem;
}
.footer-col p,
.footer-col li {
  color: #94a3b8;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
  max-width: var(--wide-width);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #64748b;
}
.footer-bottom p { margin: 0; color: #64748b; font-size: 0.72rem; }

/* ============================================================
   11. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.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;
}

/* ============================================================
   12. MEDIA QUERIES
   ============================================================ */
@media (max-width: 768px) {
  [data-content] { padding-left: 1rem; padding-right: 1rem; }
  .site-header { padding: 0.85rem 1rem; }
  .site-logo img { width: 160px; }
  .header-meta { gap: 0.7rem; }

  .hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-byline { margin-bottom: 1.5rem; }

  .dos-donts { grid-template-columns: 1fr; }
  .comparison table { font-size: 0.85rem; }
  .comparison th, .comparison td { padding: 10px 12px; }
  .at-a-glance { grid-template-columns: repeat(2, 1fr); }
  .at-a-glance > div { border-right: none; border-bottom: 1px solid var(--border); }
  .at-a-glance > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .at-a-glance > div:nth-last-child(-n+2) { border-bottom: none; }

  .glossary-term { flex-direction: column; gap: 2px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .info-box, .callout, .fun-fact, .key-takeaway,
  .tldr { padding-left: 1.1rem; padding-right: 1.1rem; }
  .callout { padding-left: 3rem; }
  .odds-example { padding: 1.2rem 1.1rem; }
  .worked-example { padding: 1.2rem; }
}

@media (max-width: 480px) {
  .at-a-glance { grid-template-columns: 1fr; }
  .at-a-glance > div { border-right: none; border-bottom: 1px solid var(--border); }
  .at-a-glance > div:nth-child(odd) { border-right: none; }
  .at-a-glance > div:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* FAQ fallback for browsers without ::details-content */
@supports not selector(::details-content) {
  [data-content="faq"] details[open] > *:not(summary) {
    animation: fade-in 0.3s ease;
  }
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* Hero on phones */
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.2; }
  .hero .hero-byline { font-size: 0.82rem; }
  .hero-eyebrow { font-size: 0.72rem; }

  /* Header / logo on phones */
  .site-header { padding: 0.6rem 0.9rem; gap: 0.5rem; }
  .site-logo img { width: 140px; height: auto; }
  .header-meta { flex-wrap: wrap; font-size: 0.72rem; gap: 0.4rem; }
  .trust-marker, .date-badge { font-size: 0.7rem; }

  /* Content padding / typography */
  [data-content] { padding-left: 0.9rem; padding-right: 0.9rem; }
  h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); line-height: 1.25; }
  h3 { font-size: 1.1rem; line-height: 1.3; }
  p, li { font-size: 0.95rem; }

  /* Wide blocks collapse to content width on phones */
  [data-content="market-snapshot-2025"],
  [data-content="fees-structure"],
  [data-content="regulatory-landscape"],
  [data-content="alternatives-overview"],
  [data-content="operator-comparison-overview"] {
    max-width: 100%;
  }

  /* Tables: container handles horizontal scroll */
  .comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison table { min-width: 520px; font-size: 0.8rem; }
  .comparison th, .comparison td { padding: 8px 10px; }

  /* TOC becomes a simple list on phones */
  .toc { padding: 0.9rem 1rem; }
  .toc-list { grid-template-columns: 1fr !important; gap: 0.3rem; }
  .toc-list a { font-size: 0.85rem; padding: 0.35rem 0; }

  /* FAQ */
  [data-content="faq"] summary { font-size: 0.95rem; padding: 0.85rem 2.2rem 0.85rem 0.9rem; }
  [data-content="faq"] details p { font-size: 0.9rem; }

  /* Figures */
  figure.content-figure { margin: 1rem 0; border-radius: 8px; }
  figure.content-figure figcaption { font-size: 0.78rem; padding: 0.55rem 0.8rem; }

  /* Hero image on small screens */
  .hero figure { margin-top: 1rem; }
  .hero figure img.hero-image { max-height: none; border-radius: 8px; }
}

@media (max-width: 375px) {
  :root { --section-gap: 2rem; }
  [data-content] { padding-left: 0.75rem; padding-right: 0.75rem; }
  .site-logo img { width: 120px; }
  .header-meta { font-size: 0.68rem; }
  .hero { padding: 1.5rem 0.75rem; }
  .hero h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  p, li { font-size: 0.92rem; }
  .comparison table { min-width: 460px; font-size: 0.76rem; }
}


.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;
}


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);
    }

    .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;
        }
    }

/* images-styles.css — стили для <figure> и <img> внутри статьи */

figure.content-figure {
  margin: 2rem 0;
  padding: 0;
  max-width: 100%;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
}

figure.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

figure.content-figure figcaption {
  padding: 0.875rem 1.125rem;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  background: var(--muted, #f1f5f9);
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Hero image — отдельные правила (внутри .hero-inner) */
.hero figure {
  margin: 1.5rem 0 0 0;
  padding: 0;
}

.hero figure img.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* Планшет */
@media (max-width: 900px) {
  figure.content-figure {
    margin: 1.5rem 0;
    border-radius: 10px;
  }
  figure.content-figure figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .hero figure img.hero-image {
    max-height: 380px;
    border-radius: 12px;
  }
}

/* Телефон */
@media (max-width: 480px) {
  figure.content-figure {
    margin: 1.25rem 0;
    border-radius: 8px;
  }
  figure.content-figure figcaption {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .hero figure img.hero-image {
    max-height: none;
    border-radius: 10px;
  }
}


*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-wrap h1, .error-wrap h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

p { margin: 0 0 1.1em; text-align: left; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-secondary); }


/* 404 hero */
main { flex: 1 0 auto; width: 100%; display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem; flex-direction: column; }

article {
  width: 100%;
}

.error-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: block;
}
.error-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}
[data-content="error-main"] h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  margin-bottom: 1rem;
  text-align: center;
}
[data-content="error-main"] p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  text-align: center;
}
.back-link {
  display: inline-block;
  padding: 0.85em 1.6em;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.back-link:hover {
  background: var(--accent-secondary);
  color: #ffffff;
  transform: translateY(-1px);
}

main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.toc-list {
  border: none;
}

.toc-wrap__title {
  margin-bottom: 1.1em;
  font-weight: 700;
}

article h2 {
  margin-top: var(--section-gap);
}

h1:not(.hero-inner h1) {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
}

main:not([data-content="error-main"]) {
  justify-content: flex-start;
}

.g-wrapper {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .g-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 375px) {
    .g-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

