/* ==========================================================================
   Kosovo ABC — Editorial Monograph & Cultural Atlas Stylesheet
   Self-hosted typography (Lora + Plus Jakarta Sans), WCAG AAA contrast,
   zero external requests, Core Web Vitals optimized.
   ========================================================================== */

/* --- Self-Hosted Fonts (Latin & Latin-Ext for č, ć, ž, š, đ) --- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jakarta-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jakarta-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design Tokens --- */
:root {
  --bg-paper: #FAF7F2;
  --bg-surface: #F2ECE2;
  --bg-card: #FFFFFF;
  --ink: #1A1E22;
  --ink-secondary: #3C444D;
  --ink-muted: #5C6570;
  --accent: #9E4427;
  --accent-hover: #7D331B;
  --accent-soft: #F6E9E3;
  --pine: #23473C;
  --pine-soft: #E5EFEA;
  --gold-rule: #C79E61;
  --border: #E3DBD0;
  --border-strong: #CFC4B4;
  --footer-bg: #161A1E;
  --footer-ink: #E8E3DA;
  --footer-muted: #A6A096;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 3px 14px rgba(24, 28, 32, 0.06);
  --shadow-elevated: 0 16px 38px rgba(24, 28, 32, 0.13);
  --max-width: 1260px;
  --header-height: 70px;
}

/* Reading Progress Bar (Article Pages) */
.reading-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 101;
  pointer-events: none;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold-rule) 100%);
  transition: width 0.08s linear;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--bg-surface);
  color: var(--accent);
}

.primary-nav a[aria-current="page"] {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
  min-width: 40px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

/* Mobile Nav Drawer */
@media (max-width: 1080px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-paper);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow-elevated);
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .search-btn-label {
    display: none;
  }
}

/* --- Native Search Dialog --- */
dialog.search-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: 82vh;
  margin-top: 8vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(15, 20, 24, 0.24);
  overflow: hidden;
}

dialog.search-dialog::backdrop {
  background: rgba(22, 26, 30, 0.56);
  backdrop-filter: blur(3px);
}

.search-dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.search-dialog-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 6px 4px;
  outline: none;
}

.search-results {
  padding: 12px 18px 20px;
  max-height: 62vh;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.search-result-item:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.search-result-hub {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pine);
  font-weight: 600;
  margin-bottom: 2px;
}

.search-result-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
}

.search-result-desc {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

.search-empty {
  color: var(--ink-muted);
  font-size: 0.94rem;
  padding: 14px 4px;
}

/* --- Homepage Hero (Cinematic Cultural Monograph) --- */
.hero-atlas {
  position: relative;
  padding-block: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(circle at 85% 15%, rgba(199, 158, 97, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(158, 68, 39, 0.18) 0%, transparent 48%),
    linear-gradient(135deg, #172722 0%, #1C2327 52%, #241D1A 100%);
  color: #F6F2EB;
  border-bottom: 3px solid var(--gold-rule);
  overflow: hidden;
}

.hero-atlas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--pine);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-rule);
}

.hero-atlas .eyebrow,
.hub-hero .eyebrow {
  color: var(--gold-rule);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #FFFFFF;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.74;
  color: #D7D2C8;
  margin: 0 0 26px;
  max-width: 56ch;
}

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(199, 158, 97, 0.35);
  color: #F4EFE6;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hero-topic-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(199, 158, 97, 0.38);
  background: #14181B;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: #CFC8BC;
  background: rgba(18, 22, 25, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Section Headings --- */
.section-block {
  padding-block: clamp(36px, 5vw, 64px);
}

.section-block--tinted {
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
}

.section-deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 420px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}

.section-sub {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin: 6px 0 0;
  max-width: 62ch;
}

/* --- Pillar / Hub Illustrated Bento Cards --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1080px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-elevated);
}

.hub-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1B2421;
}

.hub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hub-card:hover .hub-card-media img {
  transform: scale(1.06);
}

.hub-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 20, 0.05) 30%, rgba(16, 22, 20, 0.72) 100%);
}

.hub-card-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(22, 32, 28, 0.84);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(199, 158, 97, 0.45);
  color: #F5E6CC;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.hub-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hub-card h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.26;
}

.hub-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-card-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* --- Featured Spotlight Magazine Card --- */
.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }
}

.spotlight-media {
  position: relative;
  min-height: 280px;
  background: #1B2421;
  overflow: hidden;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.spotlight-card:hover .spotlight-media img {
  transform: scale(1.03);
}

.spotlight-body {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.24;
  margin: 0 0 12px;
}

.spotlight-title a {
  text-decoration: none;
  color: var(--ink);
}

.spotlight-title a:hover {
  color: var(--accent);
}

.spotlight-excerpt {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-secondary);
  margin: 0 0 20px;
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.16s ease;
}

.spotlight-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Article Cards Grid --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

.article-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.03);
}

.article-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--pine);
  margin-bottom: 6px;
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.32;
  margin: 0 0 10px;
}

.article-card-title a {
  text-decoration: none;
  color: var(--ink);
}

.article-card-title a:hover {
  color: var(--accent);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* --- Hub Header (Rich Atmospheric Banner) --- */
.hub-hero {
  position: relative;
  padding-block: clamp(34px, 5vw, 60px);
  background:
    radial-gradient(circle at 90% 20%, rgba(199, 158, 97, 0.18) 0%, transparent 46%),
    linear-gradient(135deg, #182924 0%, #1D2528 60%, #261E1B 100%);
  color: #F6F2EB;
  border-bottom: 3px solid var(--gold-rule);
  overflow: hidden;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

@media (max-width: 860px) {
  .hub-hero-grid {
    grid-template-columns: 1fr;
  }
}

.hub-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.16;
  margin: 0 0 14px;
  color: #FFFFFF;
}

.hub-hero-lead {
  font-size: 1.04rem;
  line-height: 1.72;
  color: #D7D2C8;
  max-width: 66ch;
  margin: 0;
}

.hub-hero .breadcrumbs {
  color: #B8B2A6;
}

.hub-hero .breadcrumbs a {
  color: #E2DACB;
}

.hub-hero .breadcrumbs a:hover {
  color: var(--gold-rule);
}

.hub-hero-frame {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(199, 158, 97, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.hub-hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
  list-style: none;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Article Page Layout --- */
.article-header {
  padding-block: clamp(24px, 3.5vw, 44px) 24px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 24ch;
}

.article-dek {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  margin: 0 0 20px;
  max-width: 68ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.article-hero-figure {
  margin: 28px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.article-hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero-figure figcaption {
  padding: 11px 18px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(28px, 4vw, 56px);
  padding-block: 36px 56px;
  align-items: start;
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    top: auto;
    order: -1;
  }
}

.article-prose {
  max-width: 72ch;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink);
}

.article-prose p {
  margin: 0 0 1.25em;
}

/* Editorial drop-cap on the opening paragraph */
.article-prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.35rem;
  line-height: 0.84;
  font-weight: 700;
  color: var(--accent);
  padding: 5px 10px 2px 0;
}

.article-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.2vw, 1.72rem);
  line-height: 1.26;
  margin: 2.1em 0 0.7em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.article-prose h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.32;
  margin: 1.6em 0 0.5em;
  color: var(--pine);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

.article-prose li {
  margin-bottom: 0.45em;
}

.article-prose blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 20px 24px 20px 30px;
  background: linear-gradient(135deg, #F5EFE6 0%, #EFE7DB 100%);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--ink-secondary);
}

.article-prose blockquote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 10px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(158, 68, 39, 0.25);
  font-style: normal;
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Key Takeaways Box */
.takeaways-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--pine);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.article-prose .takeaways-title,
.takeaways-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pine);
  margin: 0 0 12px;
  padding-top: 0;
  border-top: none;
  line-height: 1.3;
}

.takeaways-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.takeaways-box li {
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.takeaways-box li:last-child {
  margin-bottom: 0;
}

/* Sticky Sidebar & TOC (desktop only; static on mobile/tablet) */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 981px) {
  .article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
  }
}

.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.toc-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* --- Responsive Data Tables (Modern Web Guidance) --- */
.table-wrapper {
  overflow-x: auto;
  max-inline-size: 100%;
  margin: 1.8em 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  container-type: inline-size;
}

.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
}

.table-wrapper caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pine);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.table-wrapper thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--bg-surface);
  color: var(--ink);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.table-wrapper tbody th,
.table-wrapper tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-wrapper tbody tr:last-child th,
.table-wrapper tbody tr:last-child td {
  border-bottom: none;
}

.table-wrapper tbody th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-card);
}

.table-wrapper tbody tr:nth-child(even) td,
.table-wrapper tbody tr:nth-child(even) th {
  background: #FCFBF8;
}

/* --- FAQ Accordion (Native <details>/<summary>, Modern Web Guidance) --- */
.faq-accordion {
  margin-top: 2.6em;
  padding-top: 1.6em;
  border-top: 2px solid var(--border-strong);
}

.article-prose .faq-accordion h2,
.faq-accordion h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.faq-accordion details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.faq-accordion details[open] > summary::before {
  transform: rotate(45deg);
}

.faq-accordion summary:hover {
  background: var(--bg-surface);
}

.faq-answer {
  padding: 0 20px 18px 42px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-secondary);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Progressive enhancement smooth details reveal */
.faq-accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-accordion details:not([open])::details-content {
  block-size: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-accordion details::details-content {
    transition: block-size 0.25s ease, content-visibility 0.25s ease;
    transition-behavior: allow-discrete;
  }
}

/* --- Sources & References --- */
.sources-section {
  margin-top: 2.4em;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.article-prose .sources-section h2,
.sources-section h2 {
  font-size: 1.12rem;
  border-top: none;
  padding-top: 0;
  margin: 0 0 12px;
}

.sources-list {
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.sources-list li {
  margin-bottom: 6px;
}

/* --- Filter Pills --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: clamp(44px, 6vw, 68px) 32px;
  margin-top: 40px;
  border-top: 3px solid var(--gold-rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--footer-muted);
  margin: 0;
  max-width: 40ch;
}

.footer-heading {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold-rule);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

@media (max-width: 520px) {
  .footer-links--two-col {
    grid-template-columns: 1fr;
  }
}

.footer-links a {
  color: var(--footer-ink);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-links a:hover {
  color: var(--gold-rule);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.gallery-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* --- Error Pages (404 / 410) --- */
.status-page {
  padding-block: clamp(56px, 9vw, 100px);
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.status-code {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 12px;
}
