/* ============================================================
   ManagerRH Magazine — main stylesheet
   Extracted from v9.html (editorial magazine layout)
   ============================================================ */

:root {
  --ink: #1F2A24;
  --forest: #1F3A2E;
  --forest-2: #2D5544;
  --cream: #F8F5EE;
  --cream-2: #EFEAE0;
  --ocre: #C99A3F;
  --ocre-soft: #E8C77A;
  --rule: #D4CCB8;
  --muted: #5A5E55; /* AA contrast on cream */
  --max: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--cream);
  /* Subtle SVG paper grain */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0.32 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
  background-repeat: repeat;
  background-size: 240px 240px;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--forest-2); }

:focus-visible {
  outline: 2px solid var(--ocre);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wrap,
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ocre);
  z-index: 200;
  transition: width 0.06s linear;
  pointer-events: none;
}

/* Generic kicker mono */
.kicker {
  font-family: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.kicker.with-rule::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ocre);
}

.issue-number {
  font-family: 'Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0;
}

/* ============= HEADER ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner,
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  height: 76px;
}
.site-header__brand,
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.site-header__brand a,
.wordmark { color: var(--ink); text-decoration: none; }
.site-header__brand a:hover,
.wordmark:hover { color: var(--forest); }
.site-header__brand img { max-height: 40px; width: auto; }

.site-header__nav,
.main-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.site-header__nav ul,
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 36px;
}
.site-header__nav a,
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
}
.site-header__nav a::after,
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.site-header__nav a:hover,
.main-nav a:hover { color: var(--forest); }
.site-header__nav a:hover::after,
.main-nav a:hover::after { transform: scaleX(1); }

.site-header__actions,
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-header__search,
.search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}
.site-header__search:hover,
.search-btn:hover { border-color: var(--forest); color: var(--forest); background: var(--cream-2); }
.site-header__search svg,
.search-btn svg { width: 18px; height: 18px; stroke: currentColor; }

.site-header__burger { display: none; }

/* Polylang switcher */
.mrh-lang { display: inline-flex; gap: 6px; align-items: center; }
.mrh-lang__item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: 2px;
  text-decoration: none;
}
.mrh-lang__item.is-current { color: var(--ink); background: var(--cream-2); }
.mrh-lang__item:hover { color: var(--forest); }

/* Mobile nav (details/summary) */
.mobile-nav-toggle { display: none; }
.mobile-nav-toggle summary {
  list-style: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-nav-toggle summary::-webkit-details-marker { display: none; }
.mobile-nav-toggle summary svg { width: 18px; height: 18px; stroke: var(--ink); }
.mobile-nav-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 18px 24px 24px;
}
.mobile-nav-panel a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mobile-nav-panel a:last-child { border-bottom: none; }

/* ============= ISSUE BAR ============= */
.issue-bar { border-bottom: 1px solid var(--rule); background: rgba(239, 234, 224, 0.5); }
.issue-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 0;
  font-family: 'Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.issue-bar .issue-num { color: var(--ink); font-weight: 500; }
.issue-bar .issue-tag { color: var(--ocre); }

/* ============= LAYOUT WITH SIDEBAR (TOC) ============= */
.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  padding-top: 64px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-right: 16px;
  border-right: 1px solid var(--rule);
}
.toc-label {
  font-family: 'Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0 0 18px;
  display: block;
}
.toc ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  padding-left: 32px;
  position: relative;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: 'Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ocre);
  letter-spacing: 0.08em;
}
.toc li a {
  color: var(--ink);
  transition: color 0.2s;
}
.toc li a:hover { color: var(--forest); }

/* ============= HERO (magazine spread) ============= */
.hero {
  position: relative;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 11;
  max-height: 520px;
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(232, 199, 122, 0.45) 0%, transparent 55%),
    radial-gradient(110% 80% at 85% 80%, rgba(45, 85, 68, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #2D5544 0%, #1F3A2E 45%, #1F2A24 100%);
  overflow: hidden;
  display: block;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-body { display: flex; flex-direction: column; gap: 20px; }

.hero-eyebrow { display: flex; flex-direction: column; gap: 14px; }
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--ocre);
}
.hero-kicker {
  font-family: 'Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0;
}
.hero-kicker .sep { opacity: 0.5; margin: 0 8px; }
.hero-kicker .min { color: var(--muted); }

.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.hero-title a {
  color: inherit;
  background-image: linear-gradient(to right, var(--forest), var(--forest));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: left bottom 0.04em;
  transition: background-size 0.4s ease, color 0.2s ease;
}
.hero-title a:hover { color: var(--forest); background-size: 100% 1px; }

.hero-excerpt {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
  margin: 4px 0 0;
}
.hero-excerpt::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 84px;
  line-height: 0.86;
  color: var(--ocre);
  float: left;
  margin: 8px 14px -4px 0;
  font-variation-settings: "opsz" 144;
}

.byline {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
.byline time { color: var(--muted); }
.story .byline,
.dossier-supporting-byline,
.card .byline { font-size: 10.5px; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 20px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: background 0.2s;
  text-decoration: none;
}
.hero-cta:hover { background: var(--forest-2); color: var(--cream); }
.hero-cta::after { content: "→"; }

/* ============= À LIRE AUSSI (mini-cards strip) ============= */
.mini-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.mini-strip-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mini {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}
.mini-media {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: linear-gradient(135deg, #2D5544 0%, #1F3A2E 100%);
  display: block;
  overflow: hidden;
}
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini:nth-child(2) .mini-media {
  background: linear-gradient(160deg, #1F3A2E 0%, #1F2A24 100%);
}
.mini:nth-child(3) .mini-media {
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(232, 199, 122, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #2D5544 0%, #1F2A24 100%);
}
.mini-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  margin: 4px 0 0;
  color: var(--ink);
}
.mini-title a { color: inherit; }
.mini-title a:hover { color: var(--forest); }
.mini-meta {
  font-family: 'Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre);
}

/* ============= PULL QUOTE ============= */
.pullquote-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.pullquote-section figure { margin: 0; }
.pullquote {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 8px 32px;
  border-left: 2px solid var(--ocre);
}
.pullquote-text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--forest);
  margin: 0;
  max-width: 70ch;
  font-variation-settings: "opsz" 144;
}
.pullquote-attribution {
  display: block;
  margin-top: 22px;
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
}
.pullquote-attribution strong { color: var(--ink); font-weight: 500; }

/* ============= DOSSIER ============= */
.dossier {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.dossier-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.dossier-head-left { display: flex; flex-direction: column; gap: 8px; }
.dossier-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.dossier-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.dossier-lead { display: flex; flex-direction: column; gap: 16px; }
.dossier-lead-media {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  background:
    radial-gradient(80% 80% at 30% 70%, rgba(201, 154, 63, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #1F3A2E 0%, #1F2A24 100%);
  margin-bottom: 8px;
  display: block;
  overflow: hidden;
}
.dossier-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.dossier-lead-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 4px 0;
  color: var(--ink);
}
.dossier-lead-title a { color: inherit; }
.dossier-lead-title a:hover { color: var(--forest); }
.dossier-lead-excerpt {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

.dossier-supporting {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.support {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.support:last-child { border-bottom: none; padding-bottom: 0; }
.support-media {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: linear-gradient(135deg, #2D5544 0%, #1F2A24 100%);
  display: block;
  overflow: hidden;
}
.support-media img { width: 100%; height: 100%; object-fit: cover; }
.support:nth-child(2) .support-media {
  background:
    radial-gradient(100% 80% at 75% 25%, rgba(232, 199, 122, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #1F3A2E 0%, #2D5544 100%);
}
.support:nth-child(3) .support-media {
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(232, 199, 122, 0.35) 0%, transparent 60%),
    linear-gradient(200deg, #1F2A24 0%, #1F3A2E 100%);
}
.support-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  margin: 6px 0 6px;
  color: var(--ink);
}
.support-title a { color: inherit; }
.support-title a:hover { color: var(--forest); }
.support-meta {
  font-family: 'Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre);
}

/* Category teasers row */
.cat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 8px;
}
.cat-card {
  padding: 24px 20px;
  border: 1px solid var(--rule);
  background: rgba(248, 245, 238, 0.6);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--ocre);
  background: var(--cream);
}
.cat-card-label {
  font-family: 'Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre);
}
.cat-card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.cat-card-count {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============= STORIES GRID ============= */
.stories { padding: 56px 0 72px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.section-head-left { display: flex; flex-direction: column; gap: 6px; }
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}
.section-link {
  font-family: 'Plex Mono', monospace;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 200ms ease;
}
.section-link:hover {
  color: var(--forest-2);
  border-bottom-color: var(--ocre);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.story {
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
}
.story:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; right: -28px;
  width: 1px;
  background: var(--rule);
  opacity: 0.6;
}

.story-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1px;
  background: linear-gradient(135deg, #2D5544 0%, #1F3A2E 100%);
  overflow: hidden;
  display: block;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media[data-issue]::after {
  content: attr(data-issue);
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--cream);
  background: rgba(31, 42, 36, 0.5);
  padding: 4px 8px;
  border-radius: 1px;
}
.story:nth-child(1) .story-media:not([data-issue]) { background: radial-gradient(100% 80% at 75% 25%, rgba(232, 199, 122, 0.45) 0%, transparent 60%), linear-gradient(160deg, #2D5544 0%, #1F2A24 100%); }
.story:nth-child(2) .story-media:not([data-issue]) { background: radial-gradient(110% 90% at 25% 75%, rgba(201, 154, 63, 0.35) 0%, transparent 55%), linear-gradient(135deg, #1F3A2E 0%, #2D5544 50%, #1F2A24 100%); }
.story:nth-child(3) .story-media:not([data-issue]) { background: radial-gradient(120% 100% at 50% 100%, rgba(232, 199, 122, 0.4) 0%, transparent 60%), linear-gradient(200deg, #1F2A24 0%, #1F3A2E 100%); }

.story-body { display: flex; flex-direction: column; gap: 12px; }
.story-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 2px 0 0;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.story-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--ocre), var(--ocre));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 220ms ease;
}
.story-title a:hover {
  color: var(--forest);
  background-size: 100% 1px;
}
.story-excerpt {
  font-size: 14.5px; line-height: 1.65;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card (parts/card-article.php — uses story markup) */
.card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.card__media {
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 2px;
  background: linear-gradient(135deg, #2D5544 0%, #1F3A2E 100%);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
  color: var(--ink);
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--forest); }
.card__excerpt { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.card__meta {
  font-family: 'Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre);
}

/* Badge category (parts/badge-category.php) */
.badge-cat {
  font-family: 'Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre);
  text-decoration: none;
}
.badge-cat:hover { color: var(--forest); }

/* Thumbnail fallback (helpers.php mrh_post_thumbnail) */
.thumb-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  gap: 4px;
  background:
    radial-gradient(110% 80% at 85% 80%, rgba(45, 85, 68, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #2D5544 0%, #1F3A2E 45%, #1F2A24 100%);
  color: var(--cream);
  padding: 20px;
}
.thumb-fallback__cat {
  font-family: 'Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre-soft);
  opacity: 0.85;
}
.thumb-fallback__initials {
  display: none;
}

/* ============= VOIX DRH ============= */
.voix {
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 88px 0;
}
.voix-head {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 48px;
  text-align: center;
  align-items: center;
}
.voix-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.voix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.voix-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 32px 28px 28px;
  border-radius: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}
.voix-card::before {
  content: "\201C";
  position: absolute;
  top: -28px;
  left: 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 120px;
  line-height: 1;
  color: var(--ocre);
  font-variation-settings: "opsz" 144;
}
.voix-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.voix-byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-style: normal;
}
.voix-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D5544 0%, #1F2A24 100%);
  flex-shrink: 0;
}
.voix-card:nth-child(2) .voix-photo {
  background: linear-gradient(135deg, #C99A3F 0%, #1F3A2E 100%);
}
.voix-card:nth-child(3) .voix-photo {
  background: linear-gradient(135deg, #1F3A2E 0%, #2D5544 100%);
}
.voix-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.voix-role {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2px 0 0;
}

/* ============= PULSE RH (datavis) ============= */
.pulse {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}
.pulse-head {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 56px;
}
.pulse-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.pulse-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat:last-child { border-right: none; }
.stat-label {
  font-family: 'Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0;
}
.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(60px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.stat-value .unit {
  font-size: 0.4em;
  color: var(--ocre);
  font-weight: 500;
}
.stat-spark {
  width: 100%;
  height: 32px;
  margin-top: 6px;
  color: var(--forest);
}
.stat-caption {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ============= À RETENIR (callout) ============= */
.retenir-section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.retenir {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--ocre);
  border-bottom: 1px solid var(--ocre);
  text-align: center;
}
.retenir-label {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0 0 18px;
}
.retenir-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  font-variation-settings: "opsz" 144;
}

/* ============= FOOTER ============= */
.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
  padding: 72px 0 36px;
}
.site-footer__cols,
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.site-footer__col h3,
.site-footer__col h4,
.footer-col h4,
.footer-brand h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.footer-brand .wordmark {
  font-size: 24px;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-brand p,
.site-footer__col--about p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
}
.site-footer__col ul,
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.site-footer__col a,
.footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer__col a:hover,
.footer-col a:hover { color: var(--forest); }
.footer-newsletter p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.newsletter-form {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--cream);
  overflow: hidden;
}
.newsletter-form input {
  flex: 1; border: none; background: transparent;
  padding: 12px 14px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  border: none;
  background: var(--forest-2);
  color: var(--cream);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--forest); }
.footer-bottom,
.site-footer__credits {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 24px; }

/* ============= SINGLE / ARTICLE ============= */
.single { padding-top: 48px; padding-bottom: 64px; }
.single__header { margin-bottom: 32px; }
.single__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.single__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 16px;
}
.single__meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.single__hero {
  margin: 24px 0 40px;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, #2D5544 0%, #1F2A24 100%);
}
.single__hero img { width: 100%; height: 100%; object-fit: cover; }
.single__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
}
.single__toc-wrap { position: sticky; top: 96px; align-self: start; }
.single__body {
  font-size: 18px;
  line-height: 1.7;
  max-width: 68ch;
}
.single__body h2,
.single__body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.single__body h2 { font-size: 30px; line-height: 1.18; }
.single__body h3 { font-size: 22px; line-height: 1.25; }
.single__body p { margin: 0 0 1.2em; }
.single__body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.single__body blockquote {
  margin: 1.6em 0;
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--ocre);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--forest);
}

.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.reading-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ocre);
  transition: width 0.06s linear;
}

.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ============= RESPONSIVE ============= */
@media (max-width: 1280px) {
  .layout { grid-template-columns: 180px 1fr; gap: 48px; }
}

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .toc { display: none; }
  .site-footer__cols,
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: 1 / -1; max-width: 480px; }
  .dossier-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .voix-grid { grid-template-columns: 1fr; gap: 28px; }
  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .single__layout { grid-template-columns: 1fr; gap: 24px; }
  .single__toc-wrap { position: static; }
}

@media (max-width: 768px) {
  .wrap,
  .container { padding: 0 24px; }
  .site-header__inner,
  .header-inner { grid-template-columns: auto 1fr auto; gap: 16px; height: 64px; }
  .site-header__nav,
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; position: relative; }
  .issue-bar-inner { font-size: 10px; letter-spacing: 0.12em; }
  .issue-bar .issue-edition { display: none; }
  .hero { padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-excerpt { font-size: 17px; }
  .hero-excerpt::first-letter { font-size: 64px; margin-right: 10px; }
  .mini-grid { grid-template-columns: 1fr; gap: 18px; }
  .pullquote-section { padding: 48px 0; }
  .pullquote { padding-left: 22px; }
  .stories { padding: 56px 0; }
  .stories-grid { grid-template-columns: 1fr; gap: 36px; }
  .story:not(:last-child)::after {
    top: auto; right: 0; left: 0; bottom: -18px;
    width: auto; height: 1px;
  }
  .dossier { padding: 56px 0; }
  .dossier-lead-title { font-size: 26px; }
  .voix { padding: 56px 0; }
  .pulse { padding: 56px 0; }
  .site-footer__cols,
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .wrap,
  .container { padding: 0 20px; }
  .hero-excerpt::first-letter { font-size: 56px; margin-right: 8px; }
  .cat-row { grid-template-columns: 1fr; }
  .pulse-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: none; }
  .site-footer__cols,
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom nav { flex-wrap: wrap; gap: 14px 20px; }
  .voix-title, .pulse-title { font-size: 26px; }
}

@media (max-width: 375px) {
  .wrap,
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .stat-value { font-size: 56px; }
}

/* Reduced motion (a11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-progress,
  .reading-progress > span { transition: none; }
}
