/* ============================================================================
   blog.css — shared styles for blog.html and post.html.
   The FOUNDATION section is copied from index.html's <style> so the blog pages
   match the homepage exactly. The BLOG section below adds listing + article
   styles built from the same design tokens.
   ============================================================================ */

/* ── Tokens (dark = default) ── */
:root {
  --bg-deep: #070F1E;
  --bg: #0A1628;
  --bg-card: #14253F;
  --bg-elev: #182E4D;
  --border: rgba(244, 230, 200, 0.10);
  --text: #F0EADB;
  --text-mute: #93A4BF;
  --text-dim: #6A7993;
  --gold: #D4A24C;
  --gold-soft: #E8C887;
  --gold-deep: #B8862E;
  --maroon: #5C1A20;
  --maroon-soft: #7A2530;
  --grain: 0.04;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-display-weight: 700;
  --font-display-letter: -0.02em;
}
html[data-mode="light"] {
  --bg-deep: #EDE5D2;
  --bg: #F5EFE3;
  --bg-card: #FFFCF4;
  --bg-elev: #F0E8D5;
  --border: rgba(10, 22, 40, 0.10);
  --text: #0A1628;
  --text-mute: #4A5B78;
  --text-dim: #7B8AA4;
  --gold: #B8862E;
  --gold-soft: #C99D3F;
  --gold-deep: #8C621A;
  --maroon: #6B1F26;
  --maroon-soft: #8B2A33;
  --grain: 0.025;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
  padding-left: 92px;
}
@media (max-width: 820px) { body { padding-left: 0; padding-top: 0; } }
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
::selection { background: var(--gold); color: var(--bg); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  letter-spacing: var(--font-display-letter);
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
p { margin: 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon-soft);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--maroon-soft); opacity: 0.8; }
html[data-mode="light"] .eyebrow { color: var(--maroon); }
html[data-mode="light"] .eyebrow::before { background: var(--maroon); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 820px) { .container { padding: 0 24px; } }

/* ── Mobile topbar / theme toggle ── */
.topbar { display: none; }
.theme-toggle {
  appearance: none; border: 0; background: transparent; padding: 0;
  color: var(--text-mute); width: 32px; height: 32px;
  border-radius: 6px; cursor: pointer;
  display: grid; place-items: center; transition: color .2s ease, background .2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); background: rgba(255,255,255,0.06); }

/* ── Mobile floating menu ── */
.mob-menu { display: none; }
@media (max-width: 820px) {
  .mob-menu { display: block; position: fixed; bottom: 18px; right: 18px; z-index: 300; }
  .mob-menu-btn {
    appearance: none; width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    color: var(--gold); font-family: var(--font-display);
    font-size: 20px; font-weight: 700; font-style: italic;
    cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: background .2s, color .2s, border-color .2s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  }
  .mob-letter { font-family: var(--font-display); font-size: 18px; font-weight: 700; font-style: italic; line-height: 1; }
  .mob-lines { display: flex; flex-direction: column; gap: 2.5px; }
  .mob-lines i { display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
  .mob-menu-btn[aria-expanded="true"] { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
  .mob-menu-btn[aria-expanded="true"] .mob-lines i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .mob-menu-btn[aria-expanded="true"] .mob-lines i:nth-child(2) { opacity: 0; }
  .mob-menu-btn[aria-expanded="true"] .mob-lines i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .mob-menu-panel {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    width: 200px;
    background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
    backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(212,162,76,0.2); border-radius: 14px;
    padding: 6px; pointer-events: none;
    opacity: 0; transform: translateY(6px) scale(0.97);
    transition: opacity .22s ease, transform .22s ease;
  }
  .mob-menu-panel.open { opacity: 1; transform: none; pointer-events: auto; }
  .mob-menu-link {
    display: block; padding: 11px 14px;
    color: var(--text-mute); text-decoration: none;
    font-size: 15px; border-radius: 9px; transition: color .18s ease, background .18s ease;
  }
  .mob-menu-link:hover, .mob-menu-link.active { color: var(--gold); background: rgba(212,162,76,0.08); }
  .mob-menu-divider { height: 1px; background: var(--border); margin: 4px 8px; }
  .mob-menu-foot { display: flex; align-items: center; justify-content: flex-end; padding: 4px 6px 2px; }
}

/* ── Side rail ── */
.sidenav {
  --rail-bg: #0A1628;
  --rail-text: #C7B68A;
  --rail-text-mute: #8A95AB;
  --rail-border: rgba(244, 230, 200, 0.14);
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 92px; z-index: 100;
  background: var(--rail-bg);
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 0 24px;
  border-right: 1px solid var(--rail-border);
  box-shadow: inset -1px 0 0 0 rgba(255,255,255,0.04), 8px 0 40px -16px rgba(0,0,0,0.35);
  overflow-y: auto; overflow-x: hidden;
}
@media (max-height: 820px) {
  .sidenav { padding: 16px 0 16px; }
  .sidenav-channel { margin: 16px 0; }
  .sidenav-links { gap: 18px; }
  .sidenav-foot { gap: 8px; padding-top: 4px; }
}
@media (max-width: 820px) { .sidenav { display: none; } }
.sidenav-brand { display: grid; place-items: center; text-decoration: none; margin-bottom: 8px; }
.sidenav-brand .brand-mark { width: 44px; height: 44px; font-size: 18px; border-color: var(--gold); color: var(--gold); }
.sidenav-channel {
  flex: 1; width: 60px; margin: 32px 0; border-radius: 32px;
  background: linear-gradient(180deg, #4A1318 0%, #5C1A20 50%, #4A1318 100%);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,200,160,0.06), inset 0 -1px 0 rgba(255,255,255,0.06), 0 1px 0 rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 0; position: relative;
}
.sidenav-channel::before, .sidenav-channel::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px color-mix(in srgb, var(--gold) 80%, transparent);
}
.sidenav-channel::before { top: 12px; }
.sidenav-channel::after  { bottom: 12px; }
.sidenav-links { display: flex; flex-direction: column; align-items: center; gap: 32px; height: 100%; justify-content: center; }
.sidenav-link {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; color: var(--rail-text); transition: color .25s ease;
  cursor: pointer; position: relative;
}
.sidenav-link:hover { color: #FFF8E6; }
.sidenav-link.active { color: var(--gold); }
.sidenav-link-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.55; transition: all .25s ease; }
.sidenav-link:hover .sidenav-link-dot { opacity: 1; transform: scale(1.15); }
.sidenav-link.active .sidenav-link-dot {
  opacity: 1;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent), 0 0 14px color-mix(in srgb, var(--gold) 90%, transparent);
}
.sidenav-link-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-body); font-size: 11.5px;
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 700; line-height: 1;
}
.sidenav-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.sidenav-foot a {
  color: var(--rail-text-mute); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 6px; transition: color .2s ease, background .2s ease;
}
.sidenav-foot a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }

/* ── Brand ── */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: grid; place-items: center;
  font-family: var(--font-display); color: var(--gold);
  font-size: 16px; font-weight: 700; letter-spacing: 0; font-style: italic;
}
.brand-sub {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500;
  display: block; line-height: 1; margin-top: 3px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: all .25s ease; background: none;
}
.btn-primary { background: var(--gold); color: #1A0F00; border-color: var(--gold); }
.btn-primary:hover {
  background: var(--gold-soft); border-color: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--gold) 60%, transparent);
}
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-mute); background: color-mix(in srgb, var(--text) 4%, transparent); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Footer ── */
footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: var(--bg-deep); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .foot-col:nth-child(2) { display: none; } }
.foot-brand p { color: var(--text-mute); font-size: 14px; margin-top: 16px; max-width: 360px; line-height: 1.6; }
.foot-col h5 { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--text-mute); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); gap: 20px; flex-wrap: wrap; }
.foot-bottom p { font-size: 12.5px; color: var(--text-dim); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   BLOG-SPECIFIC STYLES
   ============================================================================ */

/* ── Blog masthead ── */
.blog-head { padding: 80px 0 40px; }
@media (max-width: 820px) { .blog-head { padding: 48px 0 24px; } }
.blog-head .eyebrow { margin-bottom: 22px; }
.blog-head h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.98; margin-bottom: 24px; }
.blog-head h1 .accent { font-style: italic; color: var(--gold); font-weight: 400; }
.blog-head .lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-mute); max-width: 560px; line-height: 1.6; }

/* ── Featured post (first, larger) ── */
.blog-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; margin: 8px 0 56px;
  text-decoration: none; color: inherit; transition: border-color .3s ease, transform .3s ease;
}
.blog-feature:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); transform: translateY(-3px); }
@media (max-width: 820px) { .blog-feature { grid-template-columns: 1fr; } }
.blog-feature-img { position: relative; background: var(--bg-elev); aspect-ratio: 16/9; overflow: hidden; }
.blog-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature-body { padding: 44px 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
@media (max-width: 820px) { .blog-feature-body { padding: 28px 24px; } }
.blog-feature-body h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; }
.blog-feature-body h2 .accent { font-style: italic; color: var(--gold); font-weight: 400; }
.blog-feature-body p { color: var(--text-mute); font-size: 16px; line-height: 1.6; }

/* ── Post sections (grid grouped by category, collapsible) ── */
.post-cat-section { scroll-margin-top: 32px; }
.post-cat-section + .post-cat-section { margin-top: 88px; }
.post-cat-toggle {
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin: 0 0 32px; padding: 0 0 18px; border: none;
  border-bottom: 1px solid var(--border); border-radius: 0;
  background: none; font: inherit;
  color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .3s ease;
}
.post-cat-toggle:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.post-cat-toggle:hover .post-cat-heading { color: var(--gold); }
html[data-mode="light"] .post-cat-toggle:hover .post-cat-heading { color: var(--gold-deep); }
.post-cat-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 2px; }
.post-cat-heading {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px); color: var(--text); margin: 0;
  transition: color .3s ease;
}
.post-cat-chevron {
  flex: none; color: var(--gold); transition: transform .35s ease;
}
html[data-mode="light"] .post-cat-chevron { color: var(--gold-deep); }
.post-cat-section.is-collapsed .post-cat-chevron { transform: rotate(-90deg); }
.post-cat-panel {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .4s ease;
}
.post-cat-panel-inner { overflow: hidden; min-height: 0; }
.post-cat-section.is-collapsed .post-cat-panel { grid-template-rows: 0fr; }

/* ── Post grid + cards (built on the .resource card pattern) ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: all .3s ease; position: relative;
}
.post-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; z-index: 2; }
.post-card:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); transform: translateY(-4px); background: var(--bg-elev); }
.post-card:hover::before { transform: scaleX(1); }
.post-card-img { position: relative; aspect-ratio: 16/10; background: var(--bg-elev); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img.is-empty::after {
  content: "N"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 48px;
  color: color-mix(in srgb, var(--gold) 45%, transparent);
}
.post-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-cat { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em; font-style: italic; font-weight: 700; color: var(--gold); }
html[data-mode="light"] .post-card-cat { color: var(--gold-deep); }
.post-card h3 { font-size: 21px; line-height: 1.2; }
.post-card p { font-size: 14px; color: var(--text-mute); line-height: 1.55; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-top: 4px; }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ── States (loading / error / empty) ── */
.blog-state { padding: 64px 0 96px; text-align: center; color: var(--text-mute); }
.blog-state h3 { font-family: var(--font-display); font-size: 26px; color: var(--text); margin-bottom: 12px; }
.blog-state p { max-width: 460px; margin: 0 auto; line-height: 1.6; font-size: 15px; }
.blog-state code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); padding: 2px 6px; border-radius: 5px; }
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elev) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 320px; }

/* ============================================================================
   ARTICLE (post.html)
   ============================================================================ */
.article-wrap { padding: 56px 0 40px; }
@media (max-width: 820px) { .article-wrap { padding: 32px 0 24px; } }
.article-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mute); text-decoration: none; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: color .2s ease; margin-bottom: 40px; }
.article-back:hover { color: var(--gold); }
.article-back svg { transition: transform .2s ease; }
.article-back:hover svg { transform: translateX(-3px); }

.article-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.article-cat { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--gold); font-size: 15px; letter-spacing: 0.04em; margin-bottom: 18px; display: block; }
html[data-mode="light"] .article-cat { color: var(--gold-deep); }
.article-header h1 { font-size: clamp(34px, 5.5vw, 68px); line-height: 1.03; margin-bottom: 24px; }
.article-header .article-excerpt { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-mute); line-height: 1.6; font-family: var(--font-display); font-style: italic; }
.article-meta { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.article-cover { max-width: 1000px; margin: 0 auto 56px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-caption { text-align: center; font-size: 13px; color: var(--text-dim); margin: 14px auto 0; max-width: 720px; font-style: italic; }

/* Takeaways highlight box */
.takeaways { max-width: 720px; margin: 0 auto 48px; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 12px; padding: 28px 32px; }
.takeaways h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; margin-bottom: 16px; }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.takeaways li { position: relative; padding-left: 26px; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ── Downloads / attachments block on an article ── */
.article-downloads { max-width: 720px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }
.article-downloads h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; margin-bottom: 18px; }
.article-downloads ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-downloads a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15.5px; transition: border-color .2s, transform .2s; }
.article-downloads a:hover { border-color: var(--gold); transform: translateY(-1px); }
.article-downloads .dl-label { font-weight: 600; }
.article-downloads .dl-meta { margin-left: auto; font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim); white-space: nowrap; }
.article-downloads a svg { flex-shrink: 0; color: var(--gold); }

/* ── The article body (Portable Text output) ── */
.article-body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--text); }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 26px; color: var(--text); }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 66px; line-height: 0.85;
  float: left; margin: 6px 12px 0 0; color: var(--gold); font-weight: 600;
}
.article-body h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 52px 0 18px; }
.article-body h3 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; margin: 40px 0 14px; }
.article-body h4 { font-size: 19px; margin: 32px 0 12px; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s ease; }
.article-body a:hover { color: var(--gold-soft); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-soft); padding: 2px 7px; border-radius: 5px; }
html[data-mode="light"] .article-body code { color: var(--gold-deep); }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 26px; }
.article-body li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); font-family: var(--font-display); font-style: italic; }
.article-body blockquote {
  margin: 32px 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.4; color: var(--text);
}
.article-body .post-figure { margin: 40px 0; }
.article-body .post-figure img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--border); }
.article-body .post-figure figcaption { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 12px; font-style: italic; }

/* Editorial pull-quote inside body (from the pullQuote block) */
.article-body .post-pullquote {
  border: 0; padding: 40px 0; margin: 44px 0; text-align: center; font-style: normal;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.article-body .post-pullquote .post-pq-mark { display: block; font-family: var(--font-display); font-size: 80px; line-height: 0.4; color: var(--gold); font-style: italic; height: 42px; }
.article-body .post-pullquote .post-pq-attr { display: block; margin-top: 22px; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); font-style: normal; }

/* Author card at the end */
.article-author { max-width: 720px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--border); display: flex; gap: 20px; align-items: center; }
.article-author-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-elev); flex-shrink: 0; border: 1px solid var(--border); }
.article-author-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-author-name { font-family: var(--font-display); font-size: 19px; color: var(--text); }
.article-author-role { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 4px; }
html[data-mode="light"] .article-author-role { color: var(--gold-deep); }
.article-author-bio { color: var(--text-mute); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
