.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;
}

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: 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: 210px;
  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: 1330px) {
  .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);
  }
}

main:not([data-content]), .articles-container, .article-card__content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 1331px) {
  .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 {
  /* Colors (dark theme — design-spec.md) */
  --page-bg: #0f0d0b;
  --header-bg: #1a1613;
  --footer-bg: #0a0806;
  --text-primary: #f2ece5;
  --text-secondary: #a39891;
  --accent: #f6b355;
  --accent-secondary: #3a2e23;
  --border-muted: #2b2420;

  /* Semantic helpers for dos-donts */
  --success: #6fbf73;
  --danger: #e87360;

  /* Fonts */
  --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', system-ui, sans-serif;

  /* Layout */
  --content-width: 1000px;
  --wide-width: 1000px;
  --section-gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  --block-gap: 1.25rem;

  /* Sizes */
  --size-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --size-mono: 0.9375rem;
  --size-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --size-h2: clamp(1.6rem, 1rem + 2vw, 2.2rem);
  --size-h3: clamp(1.25rem, 0.95rem + 1vw, 1.5rem);
  --size-label: 0.72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   2) GENERAL TYPOGRAPHY
   ============================================================ */
p {
  text-align: left;
  margin-top: 0;
  margin-bottom: 1.1em;
  color: var(--text-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.2;
  margin-top: 0;
}

.toc-wrap {
  margin-bottom: 1.1em;
}

.sitemap-main {
  justify-content: flex-start;
}

[data-content="hero"] h1 {
  font-size: var(--size-h1);
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

main[data-content] h2 {
  margin-top: calc(var(--section-gap) * 0.6);
}

h1 {
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: var(--size-h2);
  letter-spacing: -0.015em;
  margin-top: 0;
  margin-bottom: 0.8em;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--size-h3);
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  scroll-margin-top: 2rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.18s ease;
}
a:hover { opacity: 0.75; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  text-align: left;
  padding-left: 1.3em;
  margin-top: 0;
  margin-bottom: 1.2em;
}
li { margin-bottom: 0.45em; text-align: left; }

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

blockquote {
  margin: 1.8em 0;
  padding: 0.5em 0 0.5em 1.4em;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-primary);
  text-align: left;
}
blockquote p:last-child { margin-bottom: 0; }

figure {
  margin: 1.5em auto;
  text-align: center;
}
figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
}
figcaption {
  margin-top: 0.6em;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--border-muted);
  text-align: left;
  vertical-align: top;
}
th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
}

/* ============================================================
   3) SECTION LAYOUT — [data-content]
   ============================================================ */
main { width: 100%; }

article { width: 100%; }

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: calc(var(--section-gap) * 0.6);
  padding-bottom: calc(var(--section-gap) * 0.6);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: static;
}

[data-content="toc"],
[data-content="panorama-mercado"],
[data-content="operadores-dgoj-vs-offshore"],
[data-content="criptomonedas-aceptadas"],
[data-content="perfil-jugador-espanol"] {
  max-width: var(--wide-width);
}

/* ============================================================
   4) COMPONENTS
   ============================================================ */

/* -- Labels / rúbricas --------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* -- info-box ------------------------------------------------ */
.info-box {
  background: var(--accent-secondary);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.6rem;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  color: var(--text-primary);
}
.info-box p { color: var(--text-primary); margin-bottom: 0.6em; }
.info-box p:last-child { margin-bottom: 0; }
.info-box h3, .info-box h4 { color: var(--accent); margin-top: 0; margin-bottom: 0.6em; font-size: 1rem; letter-spacing: 0.02em; }

/* -- callout ------------------------------------------------- */
.callout {
  background: transparent;
  border: 1px solid var(--accent);
  border-left-width: 4px;
  padding: 1.3rem 1.5rem 1.3rem 1.5rem;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  border-radius: 2px;
  position: relative;
  color: var(--text-primary);
}
.callout::before {
  content: "!";
  position: absolute;
  top: 1rem;
  left: -14px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: var(--page-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.callout p { color: var(--text-primary); margin-bottom: 0.6em; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }

/* -- key-takeaway -------------------------------------------- */
.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1.2rem;
  margin-top: 2em;
  margin-bottom: 1.8em;
  background: transparent;
}
.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 0.5em;
}
.key-takeaway p:last-child { margin-bottom: 0; }
.key-takeaway ul { margin-top: 0.6em; padding-left: 1.2em; }
.key-takeaway li {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5em;
}

/* -- fun-fact ------------------------------------------------ */
.fun-fact {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  font-style: italic;
  color: var(--text-secondary);
}
.fun-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.fun-fact p { color: var(--text-secondary); font-style: italic; margin-bottom: 0.5em; }
.fun-fact p:last-child { margin-bottom: 0; }
.fun-fact strong { color: var(--text-primary); font-style: normal; }

/* -- glossary-term ------------------------------------------- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  padding: 0.4rem 0;
  flex-wrap: wrap;
}
.glossary-term .term,
.glossary-term dt,
.glossary-term strong:first-child {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.glossary-term p,
.glossary-term dd,
.glossary-term span:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
  text-align: left;
}

/* -- pre-bet-checklist --------------------------------------- */
.pre-bet-checklist {
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  padding: 0.2rem 0 0.2rem 0;
}
.pre-bet-checklist h3,
.pre-bet-checklist h4,
.pre-bet-checklist > p:first-child strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
}
.pre-bet-checklist ul,
.pre-bet-checklist ol {
  list-style: none;
  padding-left: 1.6rem;
  border-left: 2px solid var(--border-muted);
  margin-top: 0;
  margin-bottom: 0;
}
.pre-bet-checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9em;
  color: var(--text-primary);
  text-align: left;
}
.pre-bet-checklist li::before {
  content: "☐";
  position: absolute;
  left: -0.1rem;
  top: 0;
  color: var(--accent);
  font-size: 1.05rem;
  background: var(--page-bg);
  padding: 0 2px;
}

/* -- odds-example -------------------------------------------- */
.odds-example {
  background: var(--accent-secondary);
  border: 1px solid var(--border-muted);
  border-top: 3px solid var(--accent);
  padding: 1.4rem 1.6rem;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  border-radius: 2px;
  font-family: var(--font-mono);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.odds-example h3, .odds-example h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.8em;
  text-align: center;
}
.odds-example p {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.4em;
  line-height: 1.7;
}
.odds-example p:last-child { margin-bottom: 0; }
.odds-example strong { color: var(--accent); }

/* -- comparison ---------------------------------------------- */
/* Default: block layout (works when inner is a table) */
.comparison {
  margin-top: 1.8em;
  margin-bottom: 1.8em;
}
.comparison > table {
  width: 100%;
  margin: 0;
}
/* Two-card layout: applied only when .comparison holds two+ direct divs/articles */
.comparison:has(> div + div),
.comparison:has(> article + article) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.comparison > div,
.comparison > article {
  background: transparent;
  border: 1px solid var(--border-muted);
  border-top: 3px solid var(--accent);
  padding: 1.3rem 1.4rem;
  border-radius: 2px;
}
.comparison h3, .comparison h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.7em;
  text-transform: uppercase;
}
.comparison p {
  color: var(--text-primary);
  font-size: 0.97rem;
  margin-bottom: 0.6em;
  text-align: left;
}
.comparison ul { margin-bottom: 0; padding-left: 1.1em; }
.comparison li { color: var(--text-primary); font-size: 0.95rem; }

/* -- dos-donts ----------------------------------------------- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
}
.dos-donts > div:first-child {
  border: 1px solid var(--border-muted);
  border-left: 3px solid var(--success);
  padding: 1.3rem 1.4rem;
  border-radius: 2px;
}
.dos-donts > div:last-child {
  border: 1px solid var(--border-muted);
  border-left: 3px solid var(--danger);
  padding: 1.3rem 1.4rem;
  border-radius: 2px;
}
.dos-donts h3, .dos-donts h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.7em;
}
.dos-donts > div:first-child h3,
.dos-donts > div:first-child h4 { color: var(--success); }
.dos-donts > div:last-child h3,
.dos-donts > div:last-child h4 { color: var(--danger); }
.dos-donts p, .dos-donts li { color: var(--text-primary); text-align: left; }
.dos-donts ul { padding-left: 1.1em; margin-bottom: 0; }

/* -- at-a-glance --------------------------------------------- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  padding: 0;
}
.at-a-glance > div,
.at-a-glance > article {
  padding: 1.3rem 1.4rem;
  border-right: 1px solid var(--border-muted);
  text-align: left;
}
.at-a-glance > div:last-child,
.at-a-glance > article:last-child { border-right: none; }
.at-a-glance h3, .at-a-glance h4,
.at-a-glance .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.6rem);
  font-weight: 500;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.3em;
  text-align: left;
  line-height: 1.2;
}
.at-a-glance p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.3em;
  text-align: left;
}
.at-a-glance p:last-child { margin-bottom: 0; }
.at-a-glance strong { color: var(--text-primary); }

/* -- worked-example ------------------------------------------ */
.worked-example {
  background: var(--accent-secondary);
  padding: 1.6rem 1.8rem;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.worked-example h3, .worked-example h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1em;
}
.worked-example p {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--text-primary);
  margin-bottom: 0.7em;
  text-align: left;
}
.worked-example p:last-child { margin-bottom: 0; }
.worked-example hr {
  border: none;
  border-top: 1px dashed var(--border-muted);
  margin: 0.9em 0;
}
.worked-example strong { color: var(--accent); }

/* -- section-bridge ------------------------------------------ */
.section-bridge {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent);
  margin-top: 2em;
  margin-bottom: 2em;
  position: relative;
  padding: 0.5em 0;
}
.section-bridge::before,
.section-bridge::after {
  content: "·";
  color: var(--border-muted);
  margin: 0 0.8em;
}
.section-bridge p { text-align: center; color: var(--accent); font-style: italic; margin: 0; }

/* -- card-grid ----------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
}
.card-grid > div,
.card-grid > article {
  background: transparent;
  border: 1px solid var(--border-muted);
  padding: 1.2rem 1.3rem;
  border-radius: 2px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card-grid > div:hover,
.card-grid > article:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-grid h3, .card-grid h4 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5em;
}
.card-grid p { color: var(--text-primary); margin-bottom: 0.4em; font-size: 0.95rem; }

/* -- tldr ---------------------------------------------------- */
.tldr {
  background: var(--accent-secondary);
  border-left: 3px solid var(--accent);
  padding: 1.6rem 1.8rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.tldr h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.8em;
  text-transform: none;
}
.tldr ul { padding-left: 1.2em; margin-bottom: 0; }
.tldr li { color: var(--text-primary); margin-bottom: 0.5em; font-size: 0.98rem; line-height: 1.55; }
.tldr p { color: var(--text-primary); margin-bottom: 0.6em; }
.tldr p:last-child { margin-bottom: 0; }

/* -- author-bio ---------------------------------------------- */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-muted);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
  width: 100%;
}
.author-bio p { color: var(--text-secondary); font-size: 0.8rem; font-style: italic; margin: 0; }

/* ============================================================
   5) HEADER
   ============================================================ */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-muted);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo img { display: block; height: auto; }
.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.78rem;
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.65em;
  background: var(--accent-secondary);
  border: 1px solid var(--border-muted);
  border-radius: 100px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.header-badge time { color: var(--accent); }
.trust-marker {
  font-family: var(--font-heading);
  font-size: var(--size-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================================
   6) HERO
   ============================================================ */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
  background: var(--page-bg);
  padding-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Blockchain node-pattern (simple primitives) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 28%, var(--accent) 1.5px, transparent 1.8px),
    radial-gradient(circle at 42% 62%, var(--accent) 1.5px, transparent 1.8px),
    radial-gradient(circle at 78% 22%, var(--accent) 1.5px, transparent 1.8px),
    radial-gradient(circle at 62% 86%, var(--accent) 1.5px, transparent 1.8px),
    radial-gradient(circle at 26% 78%, var(--accent) 1.5px, transparent 1.8px),
    radial-gradient(circle at 88% 54%, var(--accent) 1.5px, transparent 1.8px),
    linear-gradient(135deg, transparent 0, transparent calc(50% - 0.4px), var(--accent) calc(50% - 0.4px), var(--accent) calc(50% + 0.4px), transparent calc(50% + 0.4px), transparent 100%),
    linear-gradient(45deg, transparent 0, transparent calc(50% - 0.4px), var(--accent) calc(50% - 0.4px), var(--accent) calc(50% + 0.4px), transparent calc(50% + 0.4px), transparent 100%);
  background-size:
    auto, auto, auto, auto, auto, auto,
    280px 280px,
    280px 280px;
  opacity: 0.06;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 85%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}
.hero h1 {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}
.hero-lede {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  line-height: 1.55;
}
.hero-byline {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-byline span { color: var(--accent); }
.hero figure {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-width);
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.hero figure img { margin-left: auto; margin-right: auto; border-radius: 6px; }
.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75em 1.5em;
  background: var(--accent);
  color: var(--page-bg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hero-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* ============================================================
   7) TOC (vertical + column-count 2 on desktop)
   ============================================================ */
.toc-card {
  background: transparent;
  border: 1px solid var(--border-muted);
  padding: 1.6rem 1.8rem;
  border-radius: 3px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.toc-card > h2 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1.2rem;
}
.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  column-count: 2;
  column-gap: 2.2rem;
}
.toc-list > li {
  break-inside: avoid;
  margin-bottom: 0.7rem;
  counter-increment: toc;
}
.toc-list > li > a {
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  display: block;
  padding: 0.3em 0;
  transition: color 0.18s ease;
}
.toc-list > li > a:hover { color: var(--accent); }
.toc-list ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.2rem;
  margin-bottom: 0;
}
.toc-list ul li {
  margin-bottom: 0.3rem;
}
.toc-list ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 400;
  padding: 0.15em 0;
  display: block;
}
.toc-list ul li a:hover { color: var(--accent); }

/* ============================================================
   8) FAQ
   ============================================================ */
[data-content="faq"] details {
  border: 1px solid var(--border-muted);
  border-radius: 3px;
  margin-bottom: 0.7rem;
  background: transparent;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
[data-content="faq"] details[open] { border-color: var(--accent); }
[data-content="faq"] summary {
  padding: 1rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.18s ease;
}
[data-content="faq"] summary::-webkit-details-marker { display: none; }
[data-content="faq"] summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.28s ease;
  flex-shrink: 0;
  line-height: 1;
}
[data-content="faq"] details[open] summary::after {
  transform: rotate(45deg);
}
[data-content="faq"] summary:hover { color: var(--accent); }
[data-content="faq"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
[data-content="faq"] details[open] > div {
  max-height: 800px;
  opacity: 1;
}
[data-content="faq"] details > div > p {
  padding: 0 1.3rem 1.2rem 1.3rem;
  margin: 0;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.7;
}
[data-content="faq"] details > div > p + p {
  padding-top: 0.7em;
}

/* ============================================================
   9) BACK TO TOP + INLINE NAV BUTTONS
   ============================================================ */
.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6em 1.2em;
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   10) FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-secondary);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-muted);
}
.footer-inner {
  margin: 0 auto;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}
.footer-columns h2 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.9rem;
}
.footer-columns p,
.footer-columns li {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-align: left;
}
.footer-columns ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-columns a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-columns a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-muted);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.footer-bottom p { color: var(--text-secondary); font-size: 0.75rem; margin: 0; text-align: center; }

/* ============================================================
   11) HERO IMAGE / ARTICLE IMAGE
   ============================================================ */
.hero-image,
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
}

/* ============================================================
   12) MEDIA QUERIES
   ============================================================ */
@media (max-width: 900px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
}

@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .site-header { padding: 0.8rem 1rem; }
  .header-inner { gap: 0.6rem; }
  .header-meta { gap: 0.7rem; width: 100%; justify-content: flex-start; }
  .site-logo img { width: 160px !important; height: auto !important; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .toc-list { column-count: 1; column-gap: 0; }
  .comparison,
  .dos-donts,
  .card-grid { grid-template-columns: 1fr; }
  .at-a-glance { grid-template-columns: 1fr; }
  .at-a-glance > div,
  .at-a-glance > article {
    border-right: none;
    border-bottom: 1px solid var(--border-muted);
  }
  .at-a-glance > div:last-child,
  .at-a-glance > article:last-child { border-bottom: none; }
  .glossary-term { flex-direction: column; gap: 4px; }
  .footer-columns { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; }
  table { font-size: 0.88rem; }
  th, td { padding: 0.6em 0.7em; }
}

@media (max-width: 480px) {
  .hero-cta { font-size: 0.78rem; padding: 0.7em 1.2em; }
  [data-content="faq"] summary { font-size: 0.93rem; padding: 0.9rem 1rem; }
  [data-content="faq"] details > div > p { padding-left: 1rem; padding-right: 1rem; }
  .header-badge { font-size: 0.68rem; }
  .trust-marker { font-size: 0.65rem; }
}

/* Tables — default: natural table layout on desktop */
[data-content] table {
  display: table;
  width: 100%;
  white-space: normal;
}
/* On mobile: allow horizontal scroll for wide tables */
@media (max-width: 768px) {
  [data-content] table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* ============================================================
   IMAGES STYLES — BitApuesta
   ============================================================ */

/* Hero image — no caption, prominent placement */
.hero-figure {
  margin: 2rem 0 1.5rem 0;
  padding: 0;
  width: 100%;
}

.hero-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-muted);
  background: var(--accent-secondary);
}

/* Section images — with captions, inside data-content sections */
figure.section-figure {
  margin: 2rem 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

figure.section-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-muted);
  background: var(--accent-secondary);
}

figure.section-figure figcaption {
  margin-top: 0.75rem;
  padding: 0 0.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
  text-align: left;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero-figure {
    margin: 1.5rem 0 1rem 0;
  }

  .hero-figure img,
  figure.section-figure img {
    border-radius: 4px;
  }

  figure.section-figure {
    margin: 1.5rem 0;
  }

  figure.section-figure figcaption {
    font-size: 0.8125rem;
    padding-left: 0.6rem;
  }
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.18s ease; }
a:hover { opacity: 0.75; }
p { text-align: left; margin-top: 0; margin-bottom: 1.1em; }
h1, h2 { font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; text-align: left; }

h1 {
  font-size: clamp(2rem, 1.2rem + 2.5vw, 2.8rem);
}

section section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Main */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  flex-direction: column;
}
.error-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.error-code {
  font-family: var(--font-mono) !important;
  font-size: clamp(4rem, 3rem + 8vw, 7rem) !important;
  color: var(--accent) !important;
  margin: 0 0 0.4rem 0 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  font-weight: 500 !important;
}
.error-block h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem);
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.error-block p {
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.error-nav {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: var(--accent);
  color: var(--page-bg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-secondary {
  display: inline-block;
  padding: 0.75em 1.5em;
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }


.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(--footer-bg) !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;
        }
    }

