/*
Theme Name: yellow_fork
Description: description
Version: 1.0.1
*/
[data-content="page"] p {
  overflow-wrap: break-word;
}
.articles-sitemap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sitemap-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: unset !important;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.0) 100%);
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff;
    padding: 1rem;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.article-link:hover {
    color: #64b5f6;
}

.article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0.9;
}

.article-children {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.children-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.child-item {
    margin: 0;
}

.child-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.child-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.child-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.child-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.grandchildren-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 52px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grandchild-item {
    margin: 0;
}

.grandchild-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    display: block;
}

.grandchild-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.article-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-date {
    font-style: italic;
}

.has-thumbnail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-thumbnail svg {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.has-thumbnail:hover svg {
    opacity: 1;
}

.sitemap-footer {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.articles-count,
.last-updated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
}

.no-articles {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

.no-articles p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .articles-sitemap {
        padding: 30px 15px;
    }
    
    .sitemap-header h1 {
        font-size: 2.2rem;
    }
    
    .sitemap-header p {
        font-size: 1.1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        min-height: 350px;
    }
    
    .article-card-content {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sitemap-header h1 {
        font-size: 1.8rem;
    }
    
    .article-card {
        min-height: 320px;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .child-link {
        padding: 6px 10px;
    }
    
    .child-thumbnail {
        width: 35px;
        height: 35px;
    }
}

.article-card:not([style*="background-image"]) {
    background: linear-gradient(135deg, #ffffff 0%, #000000 100%);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(n+6) { animation-delay: 0.6s; }

.article-card {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .article-card {
        background-attachment: scroll;
    }
}

/* ============================================
   1. RESET & CSS VARIABLES
   ============================================ */
:root {
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-logo: 'Major Mono Display', 'Space Grotesk', sans-serif;

  --fs-h1: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;
  --lh-body: 1.65;
  --lh-heading: 1.15;

  --content-width: 760px;
  --max-width: 1200px;
  --section-gap: clamp(3rem, 2rem + 3vw, 5rem);

  --color-page-bg: #fbfaf7;
  --color-header-bg: #ffffff;
  --color-footer-bg: #1a1a1a;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #5a534b;
  --color-accent: #e58619;
  --color-accent-secondary: #b8630a;
  --color-border: #e8e2d8;
  --color-code-bg: #f4efe7;
  --color-footer-text: #fbfaf7;
  --color-success: #3b7a3d;
  --color-danger: #a8352f;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background: var(--color-page-bg);
  overflow-x: hidden;
}

/* ============================================
   2. GLOBAL TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--fs-h1);
  margin: 0 0 0.5em;
  text-align: center;
}

h2 {
  font-size: var(--fs-h2);
  margin: 0 0 0.75em;
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--fs-h3);
  margin: 1.75em 0 0.6em;
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  margin: 0 0 1.1em;
  text-align: left;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  text-align: left;
}

li {
  margin-bottom: 0.5em;
  text-align: left;
}

strong { font-weight: 700; }
em { font-style: italic; color: var(--color-text-secondary); }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.25em;
  border-left: 3px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
}

a {
  color: var(--color-accent-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover { color: var(--color-accent); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Figure and images global */
figure {
  margin: 1.5em auto;
  max-width: 100%;
}

figure img,
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

figcaption {
  margin-top: 0.6em;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  text-align: center;
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--color-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ============================================
   3. LAYOUT — main and sections
   ============================================ */
main {
  width: 100%;
  padding: 0;
  margin: 0;
}

article {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-gap) 1.5rem;
  position: static;
}

[data-content] + [data-content] {
  padding-top: 0;
}

/* Hero is full-bleed — first section after it needs its own top padding restored */
.hero + [data-content] {
  padding-top: var(--section-gap);
}

/* ============================================
   4. HEADER
   ============================================ */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
}

.custom-logo {
  display: block;
  width: 220px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.header-date-badge time { color: var(--color-text-primary); }

.header-trust {
  font-family: var(--font-heading);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   5. TL;DR
   ============================================ */
.tldr {
  max-width: var(--content-width);
  margin-top: var(--section-gap);
  margin-bottom: calc(var(--section-gap) * 0.6);
  margin-left: auto;
  margin-right: auto;
  padding: 1.75rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
}

.tldr h2 {
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem);
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  scroll-margin-top: 2rem;
  line-height: 1.3;
}

.tldr ul {
  margin: 0;
  padding-left: 1.2rem;
}

.tldr li {
  margin-bottom: 0.6em;
  text-align: left;
}

.tldr li:last-child { margin-bottom: 0; }

/* ============================================
   8. TOC (vertical)
   ============================================ */
.toc {
  padding-top: 0;
}

.toc-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
}

.toc h2 {
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem);
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
  text-align: left;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 2.5rem;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
}

.toc-list > li > a {
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.toc-list > li > a:hover {
  color: var(--color-accent-secondary);
  border-bottom-color: var(--color-accent);
}

.toc-sub {
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0 0;
  border-left: 1px solid var(--color-border);
}

.toc-sub li {
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
}

.toc-sub a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-sub a:hover { color: var(--color-accent-secondary); }

/* ============================================
   9. COMPONENTS — distinct visual treatments
   ============================================ */

/* INFO-BOX: subtle bordered box */
.info-box {
  margin: 1.75em 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-code-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
}

.info-box p { margin: 0 0 0.6em; text-align: left; }
.info-box p:last-child { margin-bottom: 0; }

/* CALLOUT: white card with shadow */
.callout {
  margin: 2em 0;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-danger);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.06);
  position: relative;
}

.callout::before {
  content: "!";
  position: absolute;
  top: -14px;
  left: 1.5rem;
  width: 26px;
  height: 26px;
  background: var(--color-danger);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

.callout p { margin: 0 0 0.5em; text-align: left; }
.callout p:last-child { margin-bottom: 0; }
.callout strong {
  font-family: var(--font-heading);
  font-size: 1.05em;
  display: inline-block;
  margin-bottom: 0.15em;
}

/* KEY-TAKEAWAY: full-width dark band, no box */
.key-takeaway {
  margin: 2.5em 0;
  padding: 0;
  border-top: 2px solid var(--color-accent);
  background: transparent;
  box-shadow: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin: 1.25rem 0 0;
  text-align: left;
  letter-spacing: -0.005em;
}

/* FUN-FACT: marginalia, italic, no background */
.fun-fact {
  margin: 1.75em 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
}

.fun-fact::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 0;
  width: 0.85rem;
  height: 2px;
  background: var(--color-accent);
}

.fun-fact p {
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 0.97em;
  margin: 0;
  text-align: left;
}

/* GLOSSARY-TERM: inline-ish definition row */
.glossary-term {
  margin: 1.25em 0;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--color-border);
  background: transparent;
  box-shadow: none;
}

.glossary-term p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 0;
  text-align: left;
}

.glossary-term strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-accent-secondary);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  font-size: 0.95em;
  flex-shrink: 0;
}

/* DOS-DONTS: two-column grid */
.dos-donts {
  margin: 2em 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dos-donts > div {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04);
}

.dos-donts > div:first-child { border-top: 3px solid var(--color-success); }
.dos-donts > div:last-child { border-top: 3px solid var(--color-danger); }

.dos-donts p {
  margin: 0 0 0.75rem;
  text-align: left;
}

.dos-donts p strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dos-donts > div:first-child p strong { color: var(--color-success); }
.dos-donts > div:last-child p strong { color: var(--color-danger); }

.dos-donts > div:first-child p strong::before { content: "✓"; font-size: 1.1em; }
.dos-donts > div:last-child p strong::before { content: "✗"; font-size: 1.1em; }

.dos-donts ul {
  margin: 0;
  padding-left: 1.2rem;
}

.dos-donts li {
  margin-bottom: 0.6em;
  font-size: 0.95em;
  text-align: left;
}

.dos-donts li:last-child { margin-bottom: 0; }

/* PRE-BET-CHECKLIST: vertical list with connector line */
.pre-bet-checklist {
  margin: 2em 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.pre-bet-checklist p {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-secondary);
  margin: 0 0 1rem;
  text-align: left;
}

.pre-bet-checklist p strong { font-weight: 700; }

.pre-bet-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  border-left: 2px solid var(--color-border);
  position: relative;
}

.pre-bet-checklist li {
  position: relative;
  padding: 0.3rem 0 0.3rem 0;
  margin-bottom: 0.6em;
  text-align: left;
}

.pre-bet-checklist li::before {
  content: "☐";
  position: absolute;
  left: -2.1rem;
  top: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.15em;
  background: var(--color-page-bg);
  line-height: 1;
  padding: 0 0.1rem;
}

/* ODDS-EXAMPLE: styled example card */
.odds-example {
  margin: 2em 0;
  padding: 1.5rem 1.75rem;
  background: var(--color-text-primary);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.12);
  position: relative;
}

.odds-example::before {
  content: "EJEMPLO";
  position: absolute;
  top: -10px;
  left: 1.25rem;
  padding: 0.15rem 0.6rem;
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 2px;
}

.odds-example p {
  color: var(--color-page-bg);
  margin: 0.4em 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95em;
  line-height: 1.6;
}

.odds-example p:first-child {
  text-align: center;
  margin-top: 0.5rem;
}

.odds-example p strong {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}

/* CARD-GRID: not used in this article but defined */
.card-grid {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card-grid > div {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04);
}

.card-grid p { text-align: left; margin: 0 0 0.5em; }

/* COMPARISON: table wrapper */
.comparison {
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04);
  background: #ffffff;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  table-layout: auto;
}

.comparison th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-page-bg);
  background: var(--color-text-primary);
  padding: 0.7rem 0.7rem;
  text-align: left;
  border-right: 1px solid var(--color-text-secondary);
  line-height: 1.3;
}

.comparison th:last-child { border-right: none; }

.comparison td {
  padding: 0.7rem 0.7rem;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
}

.comparison td:last-child { border-right: none; }

.comparison tr:nth-child(even) td { background: #fbfaf7; }

.comparison td:first-child {
  font-weight: 600;
  font-family: var(--font-heading);
}

/* AT-A-GLANCE: horizontal 3-4 cell grid */
.at-a-glance {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.05);
}

.at-a-glance > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.at-a-glance > div:last-child { border-right: none; }

.at-a-glance p {
  text-align: center;
  margin: 0 0 0.5rem;
}

.at-a-glance p:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  color: var(--color-accent-secondary);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}

.at-a-glance p:first-child strong { font-weight: 700; }

.at-a-glance p:last-child {
  font-size: 0.85em;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
  text-align: center;
}

/* WORKED-EXAMPLE: step calculation (defined, not used) */
.worked-example {
  margin: 2em 0;
  padding: 1.75rem 2rem;
  background: var(--color-code-bg);
  border-radius: 2px;
  font-family: var(--font-mono);
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.05);
}

.worked-example p {
  margin: 0 0 0.8em;
  font-family: var(--font-mono);
  font-size: 0.95em;
  text-align: left;
}

.worked-example p:last-child {
  border-top: 1px solid var(--color-border);
  padding-top: 0.8rem;
  color: var(--color-accent-secondary);
  font-weight: 700;
  font-size: 1.05em;
}

/* SECTION-BRIDGE: decorative transition (defined, not used) */
.section-bridge {
  margin: 2.5em 0;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-accent-secondary);
  position: relative;
  padding: 0 3rem;
}

.section-bridge::before,
.section-bridge::after {
  content: "•";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-border);
}
.section-bridge::before { left: 1rem; }
.section-bridge::after { right: 1rem; }

/* AUTHOR-BIO */
.author-bio {
  max-width: var(--content-width);
  margin: var(--section-gap) auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.55;
}

.author-bio strong {
  font-style: normal;
  color: var(--color-text-primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* ============================================
   10. FAQ — details/summary accordion
   ============================================ */
[data-content="faq"] details {
  margin: 0 0 0.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

[data-content="faq"] details[open] {
  box-shadow: 0 3px 10px rgba(26, 26, 26, 0.07);
  border-color: var(--color-accent);
}

[data-content="faq"] summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02em;
  color: var(--color-text-primary);
  position: relative;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

[data-content="faq"] summary:hover {
  background: var(--color-code-bg);
  color: var(--color-accent-secondary);
}

[data-content="faq"] summary::-webkit-details-marker { display: none; }
[data-content="faq"] summary::marker { content: ""; }

[data-content="faq"] summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  font-family: var(--font-body);
  line-height: 1;
  transition: transform 0.25s ease;
}

[data-content="faq"] details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

[data-content="faq"] 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.25rem;
}

[data-content="faq"] details[open] > div {
  max-height: 800px;
  opacity: 1;
  padding: 0 1.25rem 1.2rem;
}

[data-content="faq"] details > div p {
  margin: 0.25rem 0 0.5em;
  text-align: left;
  color: var(--color-text-primary);
}

[data-content="faq"] details > div p:last-child { margin-bottom: 0; }

/* ============================================
   10b. HERO SECTION — placed AFTER components
   so hero selectors always win the cascade
   ============================================ */
.hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-page-bg);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(3rem, 4vw + 1rem, 5.5rem) 1.5rem clamp(3rem, 4vw + 1rem, 5rem);
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-secondary);
  font-weight: 500;
  margin: 0 0 1.4rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.25rem;
  text-align: center;
  max-width: 22ch;
  letter-spacing: -0.015em;
}

.hero-hook {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin: 0 auto 2rem;
  max-width: 38ch;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin: 0 auto;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-border);
  max-width: 520px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.hero-meta .sep {
  color: var(--color-border);
  font-weight: 400;
}

.hero-byline { color: var(--color-text-primary); font-weight: 700; }

.hero-cta {
  display: inline-block;
  margin: 2.25rem auto 0;
  padding: 0.85rem 2rem;
  background: var(--color-text-primary);
  color: var(--color-page-bg);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 1;
}

.hero-cta-wrap {
  display: block;
  text-align: center;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--color-accent-secondary);
  border-color: var(--color-accent-secondary);
  color: var(--color-page-bg);
}

/* Intro section — extra spacing adjustment */
[data-content="intro"] {
  padding-top: clamp(2.5rem, 3vw, 3.5rem);
}

/* ============================================
   11. BACK TO TOP BUTTON
   ============================================ */
.back-to-top-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem var(--section-gap);
  text-align: center;
}

.back-to-top {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.back-to-top:hover {
  color: var(--color-page-bg);
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  transform: translateY(-1px);
}

/* ============================================
   12. FOOTER
   ============================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: var(--section-gap);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #333;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 1.1rem;
  scroll-margin-top: 2rem;
  text-align: left;
}

.footer-col p,
.footer-col li {
  font-size: var(--fs-micro);
  color: #b8b2aa;
  line-height: 1.6;
  text-align: left;
}

.footer-col p { margin: 0 0 0.6em; }

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.55em; }

.footer-col a {
  color: #d9d4cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-micro);
  color: #8a857d;
  line-height: 1.5;
}

.footer-bottom p { margin: 0; text-align: left; }

/* ============================================
   13. RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-gap: 3rem; }

  [data-content] { padding-left: 1rem; padding-right: 1rem; }

  .header-inner { gap: 0.75rem; justify-content: center; }

  .custom-logo { width: 180px; max-height: 40px; }

  .header-meta { gap: 0.5rem; justify-content: center; }

  .hero { padding: 2.5rem 1rem 3rem; }

  .hero h1 { max-width: 100%; }

  .hero-meta {
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.85rem;
  }

  .hero-meta .sep { display: none; }

  .toc-list { column-count: 1; }

  .tldr { padding: 1.25rem 1rem; }

  .toc-card { padding: 1.25rem 1.1rem; }

  .dos-donts { grid-template-columns: 1fr; }

  .glossary-term p { flex-direction: column; gap: 0.25rem; }

  .comparison { margin-left: 0; margin-right: 0; }

  .comparison th, .comparison td {
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
  }

  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }

  .at-a-glance > div { border-right: 1px solid var(--color-border); }
  .at-a-glance > div:nth-child(2n) { border-right: none; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .odds-example { padding: 1.25rem 1rem; }

  .pre-bet-checklist ul { padding-left: 1.5rem; }

  [data-content="faq"] summary { font-size: 0.98em; padding: 0.85rem 2.5rem 0.85rem 1rem; }

  .callout { padding: 1.25rem 1.1rem; }

  img, .article-image { max-width: 100%; height: auto; }
}

@media (max-width: 480px) {
  .at-a-glance { grid-template-columns: 1fr; }
  .at-a-glance > div { border-right: none; }
}


/* ============================================
   Image styles — Satostaker pillar
   ============================================ */

/* Hero figure — inside .hero .hero-inner, sits between <h1> and hero-hook */
.hero-figure {
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-code-bg);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Article figures — inside <section data-content="..."> */
.article-figure {
  margin: 2rem 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.article-figure figcaption {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  padding: 0.85rem 1.1rem 0.95rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-code-bg);
}

/* Mobile */
@media (max-width: 640px) {
  .hero-figure {
    margin: 1.25rem 0 1.25rem;
    border-radius: 8px;
  }
  .article-figure {
    margin: 1.5rem 0;
    border-radius: 8px;
  }
  .article-figure figcaption {
    font-size: 0.8125rem;
    padding: 0.75rem 0.9rem 0.85rem;
  }
}
