/* AI, Claudius — Imperial Bronze Theme
   Typography: Cinzel (display), EB Garamond (body)
   Color: Imperial Bronze dark / Vestal Broadsheet light / High-Contrast */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Custom Properties ── */
:root {
    /* Dark / Imperial Bronze — default */
    --bg:             #1a1511;
    --bg-deep:        #0e0b08;
    --surface:        #211a14;
    --surface-2:      #2a2218;

    --text:           #e8d9b5;
    --text-muted:     #a89472;
    --text-faint:     #8a7352;
    --text-whisper:   #5a4a35;

    --rule:           #3a2f23;
    --accent-gold:    #c9a961;
    --accent-gold-bright: #e8d9b5;

    --myths:          #8b1a1a;
    --myths-fg:       #c96b5c;
    --myths-fg-muted: #a85c4c;

    --up:             #6b9c6b;
    --down:           #b05c5c;

    /* Typography */
    --font-display:   'Cinzel', 'Trajan Pro', Georgia, serif;
    --font-body:      'EB Garamond', Georgia, 'Times New Roman', serif;

    /* Spacing (4px scale, unchanged) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;

    /* Fluid type (kept at current values; CSS further down uses clamp() where needed) */
    --text-xs:   0.72rem;
    --text-sm:   0.85rem;
    --text-base: 1rem;
    --text-lg:   1.15rem;
    --text-xl:   1.35rem;
    --text-2xl:  1.6rem;
    --text-3xl:  2rem;
    --text-4xl:  2.6rem;

    --content-max:   1200px;
    --sidebar-width: 320px;
}

/* ── Light Theme ── */
[data-theme="light"] {
    --bg:             #f4ede0;
    --bg-deep:        #ebe2d0;
    --surface:        #ffffff;
    --surface-2:      #d9ceb5;

    --text:           #1a1a1a;
    --text-muted:     #3a3228;
    --text-faint:     #6b5841;
    --text-whisper:   #8a7b63;

    --rule:           #c5b79a;
    --accent-gold:    #8a6a1f;
    --accent-gold-bright: #1a1a1a;

    --myths:          #8b1a1a;
    --myths-fg:       #8b1a1a;
    --myths-fg-muted: #a83020;

    --up:             #3d7a3d;
    --down:           #a83020;
}

[data-theme="light"] body::after {
  opacity: 0.015;
}

[data-theme="light"] .ticker {
  background: oklch(0.20 0.02 270);
  color: oklch(0.90 0.02 270);
}

[data-theme="light"] .ticker__price {
  color: oklch(0.60 0.25 280);
}

[data-theme="light"] .search-bar button {
  color: oklch(0.98 0.005 270);
}

[data-theme="light"] .btn--primary {
  color: oklch(0.98 0.005 270);
}

[data-theme="light"] .pagination .current {
  color: oklch(0.98 0.005 270);
}

[data-theme="light"] .article-update-banner {
  color: oklch(0.18 0.02 270);
}

[data-theme="light"] .article-update-banner a {
  color: oklch(0.18 0.02 270);
}

[data-theme="light"] .article-body > p:first-of-type::first-letter {
  color: var(--accent-gold);
}

/* ── High Contrast Theme ── */
[data-theme="high-contrast"] {
    --bg:             #000000;
    --bg-deep:        #000000;
    --surface:        #000000;
    --surface-2:      #111111;

    --text:           #ffffff;
    --text-muted:     #e8e8e8;
    --text-faint:     #bbbbbb;
    --text-whisper:   #888888;

    --rule:           #555555;
    --accent-gold:    #f5c842;
    --accent-gold-bright: #ffffff;

    --myths:          #ff4c4c;
    --myths-fg:       #ff4c4c;
    --myths-fg-muted: #ff8080;

    --up:             #00ff88;
    --down:           #ff4c4c;
}

[data-theme="high-contrast"] body {
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

[data-theme="high-contrast"] body::after {
  display: none;
}

[data-theme="high-contrast"] .article-body {
  line-height: 2;
}

/* Theme switcher (icon buttons) */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-switcher__label { color: var(--text-whisper); }
.theme-switcher button {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--text-faint);
    width: 28px;
    height: 28px;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.theme-switcher button svg { width: 14px; height: 14px; }
.theme-switcher button:hover {
    color: var(--text);
    border-color: var(--accent-gold);
}
.theme-switcher button.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg);
}
[data-theme="light"] .theme-switcher button.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.12;
    margin: 0;
    color: var(--text);
}

.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;
}

.page-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Wordmark */
.wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}
.wordmark__diamond {
    margin: 0 0.15em 0 0;
    flex-shrink: 0;
    fill: var(--accent-gold);
}
.wordmark--large         { font-size: 44px; }
.wordmark--large .wordmark__diamond  { width: 11px; height: 11px; }
.wordmark--medium        { font-size: 36px; }
.wordmark--medium .wordmark__diamond { width: 9px;  height: 9px; }
.wordmark--small         { font-size: 14px; color: var(--accent-gold); }
.wordmark--small .wordmark__diamond  { width: 5px;  height: 5px; fill: var(--text); }

/* Dateline (top strip) */
.dateline {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
}
.dateline__date { color: var(--accent-gold); }
.dateline__time { color: var(--text-faint); }

/* Masthead */
.site-header {
    background: transparent;
    padding: 30px var(--space-xl) 18px;
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}
.site-header .site-logo { display: inline-block; }
.site-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 22px;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.04em;
    text-align: right;
    white-space: nowrap;
}

/* Primary nav (between rules) */
.site-nav {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 13px var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--content-max);
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}
.site-nav__links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 30px;
}
.site-nav__links a {
    color: var(--text-muted);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav__links a:hover { color: var(--text); }
.site-nav__links a.is-active,
.site-nav__links a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--accent-gold);
}
.site-nav__search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
}
.site-nav__search-icon { width: 12px; height: 12px; color: var(--accent-gold); }
.site-nav__search input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    width: 100px;
}
.site-nav__search input::placeholder { color: var(--text-faint); }

/* ── Search Bar ── */
.search-bar {
  display: flex;
  gap: 0;
}

.search-bar input {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-right: none;
  border-radius: 2px 0 0 2px;
  color: var(--text);
  width: 200px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-bar input:focus {
  border-color: var(--accent-gold);
}

.search-bar button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-gold);
  color: oklch(0.12 0.02 270);
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-bar button:hover {
  background: var(--accent-gold-bright);
}

/* Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 50px;
    right: 14px;
    z-index: 200;
    width: 38px;
    height: 38px;
    background: var(--bg-deep);
    border: 1px solid var(--rule);
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--accent-gold);
}

/* Mobile overlay */
.mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 150;
    padding: 60px var(--space-xl) var(--space-xl);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text);
}
.mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}
.mobile-menu__search {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--rule);
    background: var(--surface);
    padding: 10px 14px;
}
.mobile-menu__search svg { width: 14px; height: 14px; color: var(--accent-gold); }
.mobile-menu__search input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
}
.mobile-menu__search input::placeholder { color: var(--text-faint); }

/* ── Article Cards Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* ── Article Update Banner ── */
.article-update-banner {
  background: var(--accent-gold);
  color: oklch(0.12 0.02 270);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}

.article-update-banner a {
  color: oklch(0.12 0.02 270);
  text-decoration: underline;
}

/* ── Admin forms ── */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: inline-block;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent-gold);
  color: oklch(0.12 0.02 270);
}

.btn--primary:hover {
  background: var(--accent-gold-bright);
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--rule);
}

.btn--danger {
  background: var(--down);
  color: var(--text);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
  font-family: 'Barlow', sans-serif;
}

.pagination a,
.pagination span {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.pagination a {
  color: var(--text-muted);
  background: var(--surface);
  transition: color 0.15s ease, background 0.15s ease;
}

.pagination a:hover {
  color: var(--accent-gold);
  background: var(--surface-2);
}

.pagination .current {
  background: var(--accent-gold);
  color: oklch(0.12 0.02 270);
}

/* ── Gossip Tint (full page background for gossip pages) ── */
body.gossip-tint {
  background: oklch(0.15 0.06 350);
}

[data-theme="light"] body.gossip-tint {
  background: oklch(0.94 0.04 350);
}

[data-theme="high-contrast"] body.gossip-tint {
  background: oklch(0.07 0.06 350);
}

/* ── Category Page Header ── */
.category-header {
  padding-top: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

/* Subcategory nav (News / Myths pages) */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0 0 var(--space-2xl);
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule);
}
.category-nav__item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.category-nav__item:hover { color: var(--text); }
.category-nav__item.is-active { color: var(--accent-gold); }

/* Mobile dropdown variant — shown below 720px */
.category-nav-mobile { display: none; }
.category-nav-mobile__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-deep);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23c9a961' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    border: 1px solid var(--rule);
    padding: 14px 42px 14px 16px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    cursor: pointer;
    transition: border-color 0.15s;
}
.category-nav-mobile__select:focus {
    outline: none;
    border-color: var(--accent-gold);
}
@media (max-width: 720px) {
    .category-nav { display: none; }
    .category-nav-mobile { display: block; margin: 0 0 var(--space-2xl); }
}

.category-header__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.category-header__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Search Results ── */
.search-header {
  padding-top: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.search-header__query {
  color: var(--accent-gold);
}

.search-header__count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.search-highlight {
  background: oklch(0.75 0.18 70 / 0.2);
  padding: 1px 3px;
}

.no-results {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.no-results h2 {
  margin-bottom: var(--space-md);
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Footer */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--rule);
    padding: 36px var(--space-xl);
    color: var(--text-muted);
    font-family: var(--font-body);
    margin: 48px 0 0;
    width: 100%;
}
.site-footer__top {
    max-width: var(--content-max);
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}
.site-footer__brand { flex: 1; }
.site-footer__brand .wordmark { margin-bottom: 10px; }
.site-footer__disclaimer {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 620px;
    margin: 0;
}
.site-footer__links {
    display: flex;
    gap: 18px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.site-footer__links a { color: var(--text-muted); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__bottom {
    max-width: var(--content-max);
    margin: 0 auto;
    border-top: 1px solid var(--surface-2);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.site-footer__copyright { margin: 0; }

/* ── 404 ── */
.error-page {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.error-page h1 {
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ── Utility ── */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ── Noise Texture Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Page load animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card,
.article-card {
  animation: fadeInUp 0.4s ease both;
}

.hero-card:nth-child(2) { animation-delay: 0.08s; }
.article-card:nth-child(2) { animation-delay: 0.06s; }
.article-card:nth-child(3) { animation-delay: 0.12s; }
.article-card:nth-child(4) { animation-delay: 0.18s; }
.article-card:nth-child(5) { animation-delay: 0.24s; }
.article-card:nth-child(6) { animation-delay: 0.30s; }

/* ── Ad Slots ── */
.ad-slot {
  /* background: var(--surface-2); */
  padding: var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-2xl) 0;
}

.ad-slot:empty {
  display: none;
}

/* ══════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════ */

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

@media (max-width: 800px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

/* Admin Sidebar Nav */
.admin-sidebar {
  background: oklch(0.08 0.015 70);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--rule);
}

.admin-sidebar__logo span {
  color: var(--accent-gold);
}

.admin-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.admin-nav a.active {
  color: var(--accent-gold);
  background: var(--surface);
}

.admin-nav__section {
  font-family: 'Barlow', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  padding: 0 var(--space-md);
}

.admin-sidebar__footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Admin Main Content */
.admin-main {
  padding: var(--space-2xl);
  max-width: 1100px;
}

.admin-page-header {
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.admin-page-header h1 {
  font-size: var(--text-2xl);
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Barlow', sans-serif;
  font-size: var(--text-sm);
}

.admin-table th {
  text-align: left;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid var(--rule);
}

.admin-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--surface);
}

.admin-table .actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* Badges */
.badge {
  font-family: 'Barlow', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px var(--space-sm);
  border-radius: 2px;
  display: inline-block;
}

.badge--published { background: oklch(0.35 0.10 145); color: var(--up); }
.badge--draft { background: oklch(0.25 0.05 70); color: var(--accent-gold); }
.badge--deleted { background: oklch(0.25 0.05 25); color: var(--down); }
.badge--approved { background: oklch(0.35 0.10 145); color: var(--up); }
.badge--spam { background: oklch(0.25 0.05 25); color: var(--down); }
.badge--pending { background: oklch(0.25 0.05 70); color: var(--accent-gold); }
.badge--auto { background: oklch(0.25 0.08 250); color: oklch(0.70 0.15 250); }
.badge--manual { background: oklch(0.25 0.05 70); color: var(--text-muted); }
.badge--featured { background: oklch(0.35 0.12 70); color: var(--accent-gold); }

/* Admin Filters */
.admin-filters {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  align-items: end;
}

.admin-filters select,
.admin-filters input[type="text"] {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--text);
}

.admin-filters select {
  min-width: 140px;
}

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--surface);
  padding: var(--space-lg);
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent-gold);
}

.stat-card__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Alert messages */
.alert {
  font-family: 'Barlow', sans-serif;
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: 2px;
}

.alert--success {
  background: oklch(0.20 0.06 145);
  color: var(--up);
}

.alert--error {
  background: oklch(0.20 0.06 25);
  color: var(--down);
}

/* Admin Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-lg);
}

.login-card {
  background: var(--surface);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 400px;
}

.login-card__title {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.login-card__title span {
  color: var(--accent-gold);
}

/* Inline form for small actions */
.inline-form {
  display: inline;
}

.btn--xs {
  font-size: var(--text-xs);
  padding: 2px var(--space-sm);
}

/* Admin textarea for editorial notes etc */
.admin-textarea {
  min-height: 200px;
}

/* ── Traffic dashboard ── */
.traffic-stats { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.traffic-stat-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent-gold);
    padding: var(--space-md) var(--space-lg);
    min-width: 150px;
}
.traffic-stat-card__num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.traffic-stat-card__label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 2px;
}
.traffic-stat-card--warn { border-left-color: var(--down); }
.traffic-chart-wrap {
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: var(--space-lg) var(--space-lg) var(--space-sm);
    overflow-x: auto;
}
.traffic-chart { width: 100%; min-width: 600px; height: auto; display: block; }
.traffic-chart__axis { font-size: 11px; fill: var(--text-faint); font-family: 'Barlow', sans-serif; letter-spacing: 0.04em; }
.traffic-chart__grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; }
.traffic-legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); margin: var(--space-md) 0 var(--space-2xl); }
.traffic-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: var(--text-xs);
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 3px 10px 3px 7px;
    white-space: nowrap;
}
.traffic-legend__item i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.traffic-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: var(--space-lg); align-items: start; }
.traffic-panel { background: var(--surface); border: 1px solid var(--rule); padding: var(--space-lg); }
.traffic-panel--wide { grid-column: 1 / -1; }
.traffic-panel h2 {
    font-family: 'Barlow', sans-serif;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin: 0;
}
.traffic-panel__sub {
    font-family: 'Barlow', sans-serif;
    font-size: var(--text-xs);
    color: var(--text-faint);
    letter-spacing: 0.03em;
    margin: 2px 0 var(--space-md);
}
.traffic-rows { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.traffic-rows th {
    font-family: 'Barlow', sans-serif;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: left;
    padding: 0 0 var(--space-sm);
}
.traffic-rows th.t-num-h { text-align: right; }
.traffic-rows td { padding: 5px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.traffic-rows tr:last-child td { border-bottom: 0; }
.traffic-rows tr:hover td { background: var(--surface-2); }
.traffic-rows .t-label {
    width: 50%;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: var(--space-sm);
}
.traffic-rows .t-label em { font-size: var(--text-xs); color: var(--text-faint); }
.traffic-rows .t-bar { width: 38%; }
.traffic-rows .t-bar i { display: block; height: 8px; border-radius: 2px; min-width: 2px; opacity: 0.7; }
.traffic-rows .t-num {
    width: 12%;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    padding-left: var(--space-sm);
    white-space: nowrap;
}
.traffic-rows .t-empty { color: var(--text-faint); font-style: italic; }

/* Hero card (lead story on homepage) */
.hero-card {
    margin: 0 0 36px;
}
.hero-card__image {
    aspect-ratio: 21 / 10;
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--rule) 60%, var(--bg) 100%);
    border-bottom: 2px solid var(--accent-gold);
    position: relative;
    margin-bottom: 22px;
    overflow: hidden;
}
.hero-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-card__stamp {
    position: absolute;
    top: 14px; left: 14px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(10, 8, 6, 0.85);
    padding: 5px 10px;
}
[data-theme="light"] .hero-card__stamp {
    color: var(--bg);
    background: rgba(26, 26, 26, 0.85);
}
.hero-card__category {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}
.hero-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
    text-transform: uppercase;
}
.hero-card__deck {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 14px;
    max-width: 640px;
}
.hero-card__meta {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Article card (grid tiles) */
.article-card { margin: 0; }
.article-card__image {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    margin-bottom: 10px;
    overflow: hidden;
}
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__category {
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 6px;
}
.article-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.article-card__title a { color: var(--text); }
.article-card__title a:hover { color: var(--accent-gold-bright); }
.article-card__meta {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0;
}

/* "Medium" article card — used in the 2-col secondary row on the homepage */
.article-card--medium .article-card__title { font-size: 20px; letter-spacing: 0.02em; }
.article-card--medium .article-card__category { font-size: 9px; }
.article-card--medium .article-card__deck {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0;
}

/* Section label (e.g. "LATEST · DISPATCHES") */
.section-banner {
    border-top: 2px solid var(--accent-gold);
    padding-top: 18px;
    margin: 0 0 24px;
}
.section-banner__heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0;
}

/* Decorative divider ( · · · between rules ) */
.ornament-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 32px;
}
.ornament-divider__rule { flex: 1; height: 1px; background: var(--rule); }
.ornament-divider__dots {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.4em;
    color: var(--accent-gold);
}

/* Home grid */
.home-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 40px;
    padding: 36px 0;
}
.home-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}
.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ============================================================
   Sidebar widgets — shared
   ============================================================ */
.sidebar-widget {
    border-top: 1px solid var(--rule);
    padding-top: 18px;
    margin-bottom: 36px;
}
.sidebar-widget__heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 16px;
}
.sidebar-widget__heading--myths { color: var(--myths-fg); }
.sidebar-widget--myths { border-top: 2px solid var(--myths); padding-top: 18px; }

/* Myths items */
.sidebar-myths__item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}
.sidebar-myths__item.is-last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.sidebar-myths__tag {
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--myths-fg-muted);
    margin: 0 0 6px;
}
.sidebar-myths__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.sidebar-myths__title a { color: var(--text); }
.sidebar-myths__title a:hover { color: var(--accent-gold-bright); }
.sidebar-myths__deck {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
}

/* Topics chips */
.sidebar-topics__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-topics__chip {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 5px 9px;
    border: 1px solid var(--rule);
}
.sidebar-topics__chip:hover {
    color: var(--text);
    border-color: var(--accent-gold);
}

/* Article page */
.article-page {
    display: grid;
    grid-template-columns: minmax(0, 680px) 1fr;
    gap: 48px;
    padding: 30px 0 44px;
}

.article-header { padding: 20px 0 28px; }
.article-header__category {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 16px;
}
.article-header__category a {
    color: inherit;
    text-decoration: none;
}
.article-header__category a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-header__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.06;
    letter-spacing: 0.015em;
    margin: 0 0 20px;
    text-transform: uppercase;
    max-width: 860px;
}
.article-header__deck {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 720px;
}
.article-header__meta {
    display: flex;
    gap: 18px;
    align-items: center;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    flex-wrap: wrap;
}
.article-header__meta-dot {
    width: 4px; height: 4px;
    background: var(--rule);
    border-radius: 50%;
}
.article-header__author-name { color: var(--accent-gold); }

.article-hero {
    position: relative;
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--rule) 60%, var(--bg) 100%);
    border-bottom: 2px solid var(--accent-gold);
    margin: 0 0 36px;
    overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__caption {
    position: absolute;
    bottom: -28px; right: 14px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    color: var(--text-faint);
}

/* Body */
.article-body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 17px;
    line-height: 1.65;
}
.article-body a{
  text-decoration: underline;
}
.article-body a:hover{
  opacity: 0.8;
}
[data-theme="dark"] .article-body { color: #d4c4a2; }
.article-body > p { margin: 0 0 18px; }
.article-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 70px;
    line-height: 0.85;
    float: left;
    margin: 6px 10px 0 0;
}
.article-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin: 28px 0 14px;
}
.article-body blockquote {
    margin: 28px 0;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
}
.article-body blockquote::before {
    content: '— — —';
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: 12px;
}
.article-body blockquote cite {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    margin-top: 12px;
}

/* FINIS ornament */
.finis {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 36px 0 28px;
}
.finis__rule { flex: 1; height: 1px; background: var(--rule); }
.finis__text {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

/* Sources */
.sources {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.sources__heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 14px;
}
.sources__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sources__item {
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
}
.sources__item:last-child { border-bottom: 0; }
.sources__numeral {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    min-width: 24px;
}

/* Comments */
.commentarii {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
}
.commentarii__heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 20px;
}
.comment {
    border-left: 2px solid var(--rule);
    padding: 6px 0 6px 16px;
    margin-bottom: 20px;
}
.comment__author {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 4px;
}
.comment__body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}
.comment-form {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--rule);
    background: var(--surface);
}
.comment-form__heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 14px;
}
.comment-form input, .comment-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-form button {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 20px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    cursor: pointer;
}
.comment-form button:hover {
    background: var(--accent-gold);
    color: var(--bg);
}

/* Article sidebar */
.article-sidebar { position: sticky; top: 20px; }
.article-related__item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.article-related__item:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.article-related__category {
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 6px;
}
.article-related__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
}
.article-related__title a { color: var(--text); }
.article-related__title a:hover { color: var(--accent-gold-bright); }

.article-share__buttons { display: flex; gap: 10px; }
.article-share__button {
    flex: 1;
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--text-muted);
    padding: 8px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .home-grid,
    .article-page {
        grid-template-columns: 1fr;
    }
    .home-secondary-grid { grid-template-columns: 1fr; }
    .home-latest-grid { grid-template-columns: 1fr 1fr; }
    .article-sidebar { position: static; margin-top: 36px; }
}

@media (max-width: 720px) {
    .site-nav { display: none; }
    .hamburger { display: inline-flex; }
    .home-latest-grid { grid-template-columns: 1fr; }
    .site-header {
        padding-top: 20px;
        display: block;
    }
    .site-tagline {
        font-size: 14px;
        margin: 8px 0 0;
        text-align: left;
        white-space: normal;
    }
    .wordmark--large { font-size: 32px; }
    .wordmark--large .wordmark__diamond { width: 9px; height: 9px; }
    .article-hero { aspect-ratio: 16 / 10; }
    .site-footer__top { flex-direction: column; gap: 18px; }
    .site-footer__bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* HORA label hidden on narrow viewports */
@media (max-width: 640px) {
    .dateline {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 9px;
        letter-spacing: 0.2em;
    }
    .dateline__time-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.article-share__button:hover { color: var(--text); border-color: var(--accent-gold); }

/* ─── AI Stocks sidebar widget (T17) ─────────────────────────────────────── */
.stocks-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text);
}
.stocks-table tr { border-bottom: 1px solid var(--rule); }
.stocks-table tr:last-child { border-bottom: 0; }
.stocks-table td { padding: 9px 0; }
.stocks-table__symbol { color: var(--text); }
.stocks-table__price  { text-align: right; color: var(--text-muted); }
.stocks-table__change { text-align: right; font-size: 10px; }
.stocks-table__change--up   { color: var(--up); }
.stocks-table__change--down { color: var(--down); }

/* ─── Legal pages (privacy, terms, disclaimer) ─────────────────────────── */
.legal-page {
    max-width: 720px;
    margin: 0 auto 80px;
    padding: 56px var(--space-xl) 0;
    line-height: 1.65;
}
.legal-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 8px;
    color: var(--text);
}
.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    color: var(--text);
}
.legal-page h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 28px 0 8px;
    color: var(--text);
}
.legal-page p { margin: 0 0 16px; color: var(--text); }
.legal-page p em { color: var(--text-muted); }
.legal-page ul,
.legal-page ol { margin: 0 0 16px; padding-left: 22px; color: var(--text); }
.legal-page li { margin-bottom: 6px; }
.legal-page a {
    color: var(--accent-gold, var(--text));
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--text); }
.legal-page strong { color: var(--text); }
.legal-page code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--surface-2);
    padding: 2px 5px;
    border-radius: 3px;
}
.legal-page hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 32px 0;
}
.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.95em;
}
.legal-page th,
.legal-page td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
    color: var(--text);
}
.legal-page th {
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--surface-2);
}
.legal-page img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 3px solid var(--accent-gold);
    margin: 24px 0;
}

/* ─── Footer nav column (main links + legal links stacked) ─────────────── */
.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.site-footer__legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.site-footer__legal a { color: var(--text-muted); }
.site-footer__legal a:hover { color: var(--text); }
@media (max-width: 720px) {
    .site-footer__nav { align-items: flex-start; }
}
