.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(--accent);
  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: 1380px) {
  .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: 1381px) {
  .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 {
  --page-bg: #0f0d0b;
  --header-bg: #161311;
  --footer-bg: #0a0907;
  --surface: #1c1917;
  --surface-elevated: #252220;
  --text-primary: #f5f2ee;
  --text-muted: #a19a94;
  --border: #2a2724;
  --accent: #ed852a;
  --accent-hover: #f29543;
  --accent-soft: rgba(237, 133, 42, 0.08);
  --accent-secondary: #f3b661;
  --success: #7db26e;
  --warning: #e8a53a;
  --error: #d45555;

  --content-width: 1000px;
  --wide-width: 1000px;
  --section-gap: clamp(3rem, 2rem + 3vw, 5rem);

  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.sitemap-main {
  justify-content: flex-start;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

figure {
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* =========================================================
   2. GLOBAL TYPOGRAPHY
   ========================================================= */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
  text-align: left;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
  margin-top: 0;
  scroll-margin-top: 5rem;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.25;
  scroll-margin-top: 5rem;
}

p {
  margin: 0 0 1.25rem;
  text-align: left;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

em {
  font-style: italic;
  color: var(--text-primary);
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-style: italic;
  text-align: left;
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  text-align: left;
}

li {
  margin-bottom: 0.5rem;
  text-align: left;
}

figure {
  margin: 1.5em auto;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--accent-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--section-gap) auto;
  max-width: var(--content-width);
}

::selection {
  background: var(--accent);
  color: var(--page-bg);
}

/* =========================================================
   3. LAYOUT: MAIN, ARTICLE, SECTIONS
   ========================================================= */
main {
  width: 100%;
  display: block;
}

article {
  display: block;
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  position: static;
  margin-top: var(--section-gap);
  margin-bottom: 0;
}

[data-content="intro"] {
  margin-top: var(--section-gap);
}

/* Section bridge pill between big sections */
.section-bridge {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--wide-width);
  margin: var(--section-gap) auto 0;
  padding: 0 1.25rem;
}

.section-bridge span {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

.section-bridge::before,
.section-bridge::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 180px;
}

.section-bridge::before {
  margin-right: 1rem;
}

.section-bridge::after {
  margin-left: 1rem;
}

/* =========================================================
   4. HEADER
   ========================================================= */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  border: none;
}

.site-logo img {
  display: block;
  width: 180px;
  height: auto;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-meta .trust-marker {
  color: var(--accent);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
}

.date-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: var(--page-bg);
  padding: clamp(3rem, 2rem + 4vw, 6rem) 1.25rem clamp(3rem, 2rem + 3vw, 5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 600px at 30% 40%, rgba(237, 133, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-rubric {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-rubric::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  text-align: left;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 2rem;
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-byline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2.5rem;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-byline .sep {
  color: var(--border);
}

.hero-byline strong {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem);
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hero-stat .stat-label {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.7rem 1.3rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--page-bg);
  border-bottom: 1px solid var(--accent);
  transform: translateY(-1px);
}

.hero-cta::after {
  content: "↓";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.hero-cta:hover::after {
  transform: translateY(2px);
}

/* =========================================================
   6. INTRO
   ========================================================= */
[data-content="intro"] p:first-of-type::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 4.25rem;
  line-height: 0.9;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   7. TLDR
   ========================================================= */
.tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  margin-top: var(--section-gap);
}

.tldr h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 1rem;
  scroll-margin-top: 5rem;
}

.tldr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tldr li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
}

.tldr li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

.tldr li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   8. TABLE OF CONTENTS
   ========================================================= */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem 1.25rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.toc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.toc h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
  scroll-margin-top: 2rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 2.25rem;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 1rem;
  padding-left: 0;
}

.toc-list > li > a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: none;
  display: block;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.toc-list > li > a:hover {
  color: var(--accent);
}

.toc-list .toc-sub {
  list-style: none;
  padding: 0.5rem 0 0 0.9rem;
  margin: 0;
  border-left: 1px solid var(--border);
}

.toc-list .toc-sub li {
  margin-bottom: 0.35rem;
  padding-left: 0.7rem;
}

.toc-list .toc-sub a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: none;
  line-height: 1.4;
}

.toc-list .toc-sub a:hover {
  color: var(--accent);
}

/* =========================================================
   9. COMPONENTS
   ========================================================= */

/* .info-box — outlined card with left accent stripe */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.info-box p {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-align: left;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box p:first-child strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* .callout — accent-soft wash, no border */
.callout {
  background: var(--accent-soft);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  border-radius: 2px;
  position: relative;
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: var(--accent);
}

.callout p {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* .key-takeaway — border-top only, large display text */
.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
  margin: 2rem 0;
}

.key-takeaway p {
  text-align: left;
}

.key-takeaway p:first-child {
  margin-bottom: 0.5rem;
}

.key-takeaway p:first-child strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.key-takeaway p:nth-child(n+2) {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-primary);
}

.key-takeaway p:last-child {
  margin-bottom: 0;
}

/* .fun-fact — italic marginal note, no container */
.fun-fact {
  position: relative;
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 2rem;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.fun-fact::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.fun-fact p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

/* .glossary-term — row with term + definition */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.1rem 0;
  padding: 0.4rem 0;
  flex-wrap: wrap;
}

.glossary-term p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
}

.glossary-term p strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--accent-secondary);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  margin-right: 0.35rem;
}

/* .pre-bet-checklist — vertical list with border-left */
.pre-bet-checklist {
  margin: 1.75rem 0;
  padding: 0;
}

.pre-bet-checklist p:first-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: left;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  margin: 0;
}

.pre-bet-checklist ul li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.7rem;
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: left;
  color: var(--text-primary);
}

.pre-bet-checklist ul li::before {
  content: "☐";
  position: absolute;
  left: -0.85rem;
  top: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  font-family: var(--font-mono);
}

/* .at-a-glance — grid of stat tiles */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.at-a-glance > div {
  padding: 1.1rem 1rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance > div p {
  text-align: center;
  margin: 0;
}

.at-a-glance > div p:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.at-a-glance > div p:last-child {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* .odds-example — two-column mono layout */
.odds-example {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  font-family: var(--font-mono);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.odds-example p {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.odds-example p:last-child {
  margin-bottom: 0;
}

/* .comparison — horizontal-scroll table */
.comparison {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison th,
.comparison td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.comparison th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface-elevated);
  font-weight: 700;
}

.comparison td {
  color: var(--text-primary);
}

.comparison tr:last-child td {
  border-bottom: none;
}

/* .worked-example — timeline / scenario panel */
.worked-example {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 1.5rem 1.6rem;
  margin: 1.75rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  position: relative;
}

.worked-example::before {
  content: "SCENARIO";
  position: absolute;
  top: -0.6rem;
  left: 1.2rem;
  background: var(--page-bg);
  padding: 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

.worked-example p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: left;
}

.worked-example p:first-child {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.worked-example p:first-child strong {
  color: var(--accent);
}

.worked-example p:last-child {
  margin-bottom: 0;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--accent-secondary);
}

.worked-example p strong {
  color: var(--accent-secondary);
}

/* .dos-donts — two-column good/bad */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}

.dos-donts > div {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.dos-donts > div:first-child {
  border-top: 3px solid var(--success);
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--error);
}

.dos-donts > div p:first-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-align: left;
}

.dos-donts > div:first-child p:first-child {
  color: var(--success);
}

.dos-donts > div:last-child p:first-child {
  color: var(--error);
}

.dos-donts > div p:first-child::before {
  display: inline-block;
  margin-right: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.dos-donts > div:first-child p:first-child::before {
  content: "✓";
  color: var(--success);
}

.dos-donts > div:last-child p:first-child::before {
  content: "✗";
  color: var(--error);
}

.dos-donts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dos-donts li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: left;
}

.dos-donts > div:first-child li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--success);
  font-family: var(--font-mono);
  font-weight: 700;
}

.dos-donts > div:last-child li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--error);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* .card-grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.card-grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-grid > div:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card-grid > div p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-align: left;
}

.card-grid > div p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Inline article images */
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =========================================================
   10. FAQ
   ========================================================= */
[data-content="faq"] > div {
  margin-top: 1.5rem;
}

details {
  border: 1px solid var(--border);
  background: var(--surface) !important;
  margin-bottom: 0.75rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

details[open] {
  border-color: var(--accent) !important;
  background: var(--surface-elevated) !important;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.75rem 1rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-primary);
  position: relative;
  transition: color 0.2s ease;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease, content 0.3s ease;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

summary:hover {
  color: var(--accent);
}

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.3rem;
}

details[open] > div {
  max-height: 800px;
  opacity: 1;
  padding: 0 1.3rem 1.2rem;
}

details > div p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  padding-top: 0.25rem;
  text-align: left;
}

/* Fallback keyframe */
@supports not selector(::details-content) {
  @keyframes fade-in-details {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* =========================================================
   11. 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;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2.5rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.author-bio strong {
  color: var(--text-primary);
  font-weight: 700;
  font-style: normal;
}

.author-bio .sep {
  color: var(--border);
  font-style: normal;
}

/* =========================================================
   12. BACK TO TOP
   ========================================================= */
.back-to-top-wrap {
  text-align: center;
  margin: var(--section-gap) auto 0;
  padding: 0 1.25rem;
  max-width: var(--content-width);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-to-top:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.back-to-top::before {
  content: "↑";
  font-size: 0.95rem;
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: var(--section-gap);
  padding: 3rem 1.25rem 1.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 700;
}

.footer-col p,
.footer-col ul li {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-col p {
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  border-bottom: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  border-bottom: none;
}

.footer-col .helpline {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================
   14. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .at-a-glance {
    grid-template-columns: repeat(2, minmax(0, 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;
  }
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero {
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 1rem clamp(2.5rem, 2rem + 2vw, 4rem);
  }
  .site-header-inner {
    gap: 0.75rem;
  }
  .header-meta {
    font-size: 0.65rem;
    gap: 0.6rem;
  }
  .date-badge {
    padding: 0.25rem 0.5rem;
  }
  .hero-byline {
    font-size: 0.7rem;
    gap: 0.6rem;
  }
  .toc-list {
    column-count: 1;
  }
  .dos-donts {
    grid-template-columns: 1fr;
  }
  .comparison {
    font-size: 0.85rem;
  }
  .comparison th,
  .comparison td {
    padding: 0.6rem 0.8rem;
  }
  .glossary-term {
    flex-direction: column;
    gap: 4px;
    padding: 0.3rem 0;
  }
  .section-bridge::before,
  .section-bridge::after {
    max-width: 80px;
  }
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-top: 1.5rem;
    margin-top: 1.75rem;
  }
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div,
  .at-a-glance > div:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .at-a-glance > div:last-child {
    border-bottom: none;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  h1 {
    font-size: clamp(1.85rem, 1.2rem + 4vw, 2.5rem);
  }
  .site-logo img {
    width: 150px;
  }
  [data-content="intro"] p:first-of-type::first-letter {
    font-size: 3rem;
  }
}

.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(--page-bg) !important;
}

main {
  overflow-x: hidden !important;
  flex-direction: column;
  margin-top: 0 !important;
}

article h2 {
  margin-top: var(--section-gap);
}

h1:not(.hero h1) {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
}

.toc-wrap__title {
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
}

.toc-wrap {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

.toc-list {
  border: none !important;
}

.toc-list {
  outline: none !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;
        }
    }

  /* =========================================================
   IMAGE STYLES — Punterail
   Hero image and in-article figures
   ========================================================= */

/* Hero image: sits at the top of the hero inner stack, above the rubric */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  margin: 0 0 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(237, 133, 42, 0.08);
}

/* In-article figures */
figure {
  margin: 2.5rem 0;
  padding: 0;
  display: block;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface);
}

figure figcaption {
  margin-top: 0.85rem;
  padding: 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero-img {
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }

  figure {
    margin: 2rem 0;
  }

  figure img {
    border-radius: 8px;
  }

  figure figcaption {
    font-size: 0.85rem;
    padding-left: 0.75rem;
  }
}


*, *::before, *::after { 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: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

.hero {
  margin-top: 0 !important;
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  position: relative;
  overflow: hidden;
  padding-top: 0 !important;
}
[data-content="error-main"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 600px at 30% 40%, rgba(237, 133, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.error-inner {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}
.error-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  line-height: 0.9;
  color: var(--accent);
  margin: 0 0 1.5rem;
  letter-spacing: -0.04em;
}
.error-rubric {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.error-rubric::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);
}
.error-inner h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}
.error-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 0 2.5rem;
}
.error-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border-bottom: none;
}
.btn-primary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--page-bg);
  transform: translateY(-1px);
  border-bottom: none;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  border-bottom: none;
}

.g-wrapper {
  padding: 0 1.25rem;
}

@media (max-width: 768px) {
    .g-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

strong {
  word-break: break-all;
}