/*
Theme Name: gorzhett
Description: description
Version: 1.0
*/

.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;
    }
}

.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;
}

/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --color-bg: #f8f9fa;
  --color-header-bg: #ffffff;
  --color-footer-bg: #1a1a1a;
  --color-text: #1e2028;
  --color-accent: #13855f;
  --color-accent-light: #e6f5ef;
  --color-border: #d1d5db;
  --color-muted: #6b7280;
  --color-white: #ffffff;
  --color-danger: #b91c1c;
  --color-success: #15803d;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;

  --content-width: 740px;
  --section-gap: 4rem;

  --h1-size: clamp(2rem, 4vw, 2.75rem);
  --h2-size: clamp(1.5rem, 3vw, 2rem);
  --h3-size: clamp(1.25rem, 2.5vw, 1.5rem);
  --body-size: clamp(1rem, 1.8vw, 1.125rem);
  --mono-size: 0.875em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   2. General Typography
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
}

h1 {
  font-size: var(--h1-size);
  line-height: 1.15;
}

h2 {
  font-size: var(--h2-size);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--h3-size);
  line-height: 1.3;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-style: italic;
  text-align: left;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  font-weight: 400;
}

figure {
  margin: 1.5em auto;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

thead {
  border-bottom: 2px solid var(--color-accent);
}

th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--color-text);
}

td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

tbody tr:last-child td {
  border-bottom: none;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ============================================
   3. Layout — Sections
   ============================================ */
.site-header {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  margin-top: var(--section-gap);
  margin-bottom: 0;
}

[data-content]:first-child {
  margin-top: 0;
}

/* ============================================
   4. Components
   ============================================ */

/* --- info-box --- */
.info-box {
  background-color: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --- callout --- */
.callout {
  border-left: 4px solid #d97706;
  background-color: #fffbeb;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
}

.callout::before {
  content: "!";
  position: absolute;
  left: -14px;
  top: 1.15rem;
  width: 24px;
  height: 24px;
  background-color: #d97706;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
}

.callout p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1rem;
  margin: 2rem 0;
}

.key-takeaway p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.fun-fact::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1rem 0;
}

.glossary-term p {
  text-align: left;
  margin-bottom: 0;
}

.glossary-term strong {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.at-a-glance > div {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.at-a-glance > div:nth-child(3n) {
  border-right: none;
}

.at-a-glance > div:nth-last-child(-n+3) {
  border-bottom: none;
}

.at-a-glance p {
  text-align: left;
  margin-bottom: 0;
}

.at-a-glance p:first-child {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.at-a-glance p:last-child {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
}

/* --- odds-example --- */
.odds-example {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.odds-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.odds-example p:first-child {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.odds-example p:last-child {
  margin-bottom: 0;
}

.odds-example code,
.odds-example .mono {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  background-color: var(--color-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* --- comparison --- */
.comparison {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison table {
  min-width: 500px;
}

.comparison th {
  background-color: var(--color-accent-light);
}

.comparison td,
.comparison th {
  text-align: left;
  color: var(--color-text);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.card-grid > div {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-grid p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- tldr --- */
.tldr {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 2rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tldr h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-align: left;
}

.tldr ul {
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.tldr li {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tldr li:last-child {
  margin-bottom: 0;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.dos-donts > div:first-child {
  border-top: 3px solid var(--color-success);
  padding-top: 1rem;
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--color-danger);
  padding-top: 1rem;
}

.dos-donts h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.dos-donts > div:first-child h3 {
  color: var(--color-success);
}

.dos-donts > div:last-child h3 {
  color: var(--color-danger);
}

.dos-donts ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.dos-donts li {
  text-align: left;
  color: var(--color-text);
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.5rem 0;
}

.pre-bet-checklist > p:first-child,
.pre-bet-checklist > strong:first-child {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-border);
  margin-bottom: 0;
}

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.75rem;
  text-align: left;
  color: var(--color-text);
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.5rem;
  color: var(--color-accent);
  background-color: var(--color-bg);
  padding: 0 2px;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.worked-example p:last-child {
  margin-bottom: 0;
}

.worked-example code {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  background-color: var(--color-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.worked-example hr {
  border-top: 1px dashed var(--color-border);
  margin: 1.25rem 0;
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2.5rem 0 0.5rem;
}

.section-bridge p {
  text-align: center;
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.95rem;
  display: inline;
}

.section-bridge::before,
.section-bridge::after {
  content: "\00b7\00a0\00b7\00a0\00b7";
  color: var(--color-border);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  vertical-align: middle;
}

.section-bridge::before {
  margin-right: 0.75rem;
}

.section-bridge::after {
  margin-left: 0.75rem;
}

/* --- author-bio --- */
.author-bio {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-muted);
}

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: 100%;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, rgba(19, 133, 95, 0.05) 0%, transparent 70%), var(--color-bg);
  margin-top: 0;
}

[data-content="hero"] > * {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

[data-content="hero"] h1 {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 1rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-muted);
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.hero-meta span {
  font-family: var(--font-heading);
}

.hero-meta .separator {
  width: 4px;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 50%;
  display: inline-block;
}

[data-content="hero"] figure {
  margin: 0 auto;
  max-width: var(--content-width);
}

[data-content="hero"] figure img {
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ============================================
   6. Header
   ============================================ */
.site-header {
  position: relative;
  z-index: 10;
}

.custom-logo {
  display: block;
  max-width: 200px;
  height: auto;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--color-muted);
}

.header-badge time {
  background-color: var(--color-bg);
  padding: 0.3em 0.7em;
  border-radius: 3px;
  font-weight: 700;
  color: var(--color-text);
}

.header-trust {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.header-sep {
  width: 4px;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================
   7. TOC
   ============================================ */
[data-content="toc"] {
  margin-top: 2.5rem;
}

.toc-block {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
}

.toc-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0;
}

.toc-list > li > a {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}

.toc-list > li > a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.toc-sublist {
  list-style: none;
  padding-left: 1rem;
  margin: 0 0 0.25rem;
}

.toc-sublist a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-sublist a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ============================================
   8. FAQ Accordion
   ============================================ */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
}

[data-content="faq"] details:last-of-type {
  border-bottom: none;
}

[data-content="faq"] summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--color-text);
  padding: 1.15rem 2rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

[data-content="faq"] summary::-webkit-details-marker {
  display: none;
}

[data-content="faq"] summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-muted);
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  content: "\2212";
}

[data-content="faq"] summary:hover {
  color: var(--color-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: 500px;
  opacity: 1;
}

[data-content="faq"] details > div > p {
  padding-bottom: 1.15rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================
   9. Footer
   ============================================ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: #9ca3af;
  margin-top: var(--section-gap);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin: 0 0 0.75rem;
}

.footer-col p {
  text-align: left;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.footer-logo img {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

/* ============================================
   10. Media Queries
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
  }

  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content="hero"] {
    padding: 3rem 1rem 2rem;
  }

  .site-header {
    padding: 0.5rem 1rem;
  }

  .at-a-glance {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-a-glance > div:nth-child(3n) {
    border-right: 1px solid var(--color-border);
  }

  .at-a-glance > div:nth-child(2n) {
    border-right: none;
  }

  .at-a-glance > div:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--color-border);
  }

  .at-a-glance > div:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison {
    overflow-x: auto;
  }

  .hero-meta {
    gap: 0.5rem;
  }

  .tldr {
    padding: 1.25rem 1.25rem;
  }

  .callout::before {
    display: none;
  }

  .callout {
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }

  .at-a-glance > div {
    border-right: none;
  }

  .at-a-glance > div:nth-child(3n) {
    border-right: none;
  }

  .at-a-glance > div:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--color-border);
  }

  .at-a-glance > div:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-bridge::before,
  .section-bridge::after {
    display: none;
  }
}

/* Hero image classes */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0 auto;
}


/* images-styles.css — Article image styles for TRAPLINE */

figure {
  margin: 2rem 0;
}

figure img.article-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

figure img.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  figure {
    margin: 1.5rem 0;
  }

  figure img.article-image {
    border-radius: 3px;
  }

  figcaption {
    font-size: 0.8rem;
    padding: 0 0.25rem;
  }
}
