/* ============================================
   ManA — Maison des Mondes Africains
   Brutalist editorial — Mobile-first
   ============================================ */

:root {
  --bg: #f5f1ea;
  --bg-elev: #ece6db;
  --fg: #0a0a0a;
  --fg-dim: #5a5651;
  --rule: #0a0a0a;
  --accent: #c4502a;
  --paper: #ffffff;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 20px;
  --hairline: 1px;

  /* Vertical rhythm tokens — used systematically */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Section vertical padding */
  --sec-y: 48px;
  /* Card internal padding */
  --card-p: 20px;
  /* Header height for offset calculations if needed */
  --hdr-h: 56px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 28px;
    --sec-y: 72px;
    --card-p: 24px;
    --hdr-h: 56px;
  }
}
@media (min-width: 1100px) {
  :root {
    --gutter: 36px;
    --sec-y: 96px;
    --hdr-h: 96px;
  }
}
@media (min-width: 1440px) {
  :root { --gutter: 48px; --sec-y: 112px; }
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #161513;
  --fg: #f5f1ea;
  --fg-dim: #8a857d;
  --rule: #f5f1ea;
  --paper: #161513;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[style*="grid-template-columns"] > *,
.section-head > *,
.footer-top > *,
.fsmenu-body > *,
.event-hero > *,
.filters > * { min-width: 0; }
img, .placeholder-img { max-width: 100%; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Typography */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (min-width: 760px) { .eyebrow { font-size: 11px; } }

.display-xl { font-family: var(--serif); font-size: clamp(56px, 14vw, 240px); line-height: 0.88; letter-spacing: -0.03em; font-weight: 400; }
.display-l  { font-family: var(--serif); font-size: clamp(42px, 9vw, 140px); line-height: 0.92; letter-spacing: -0.02em; }
.display-m  { font-family: var(--serif); font-size: clamp(32px, 6vw, 84px);  line-height: 0.96; letter-spacing: -0.02em; }
.display-s  { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 48px); line-height: 1.02; letter-spacing: -0.015em; }
.italic { font-style: italic; }

.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { border-top: var(--hairline) solid var(--rule); }
.rule-b { border-bottom: var(--hairline) solid var(--rule); }

/* ============================================
   Header (mobile-first)
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--hairline) solid var(--rule);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.header-top { display: none; }
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 56px;
  padding: 0 var(--gutter);
  gap: 12px;
}
.header-main-l { display: flex; align-items: center; gap: 12px; }
.header-main-r { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.header-nav { display: none; }

.burger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
}
.burger-icon {
  display: inline-flex; flex-direction: column; gap: 3px; width: 18px;
}
.burger-icon span {
  display: block; height: 1.5px; background: currentColor; width: 100%;
}
.burger-label { display: none; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.back-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.back-btn .back-arrow { font-size: 14px; line-height: 1; }
.back-btn .back-label { display: none; }
@media (min-width: 900px) {
  .back-btn .back-label { display: inline; }
}

/* Explorer dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-caret { font-size: 10px; transition: transform 0.2s; opacity: 0.7; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--bg); border: var(--hairline) solid var(--rule);
  min-width: 240px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  z-index: 60;
  display: flex; flex-direction: column;
  padding: 6px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-dropdown-item {
  display: block; width: 100%;
  text-align: left;
  padding: 10px 18px;
  font-family: var(--serif); font-size: 17px; line-height: 1.2; letter-spacing: -0.005em;
  background: transparent; color: var(--fg); border: none; cursor: pointer;
  text-transform: none;
  transition: background 0.15s, padding-left 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: var(--bg-elev); padding-left: 24px; color: var(--accent); }
.nav-dropdown-label {
  display: block;
  padding: 10px 18px 6px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  pointer-events: none;
}
@media (max-width: 1099px) {
  .nav-dropdown { display: none; }
}

.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 22px; width: auto; display: block;
  filter: invert(1);
  transition: filter 0.2s ease;
}
[data-theme="dark"] .logo-img { filter: invert(0); }

.icon-only { font-size: 18px; padding: 4px 8px; }
.header-cta { padding: 9px 16px; font-size: 10px; letter-spacing: 0.08em; }

.header .lang { display: inline-flex; gap: 2px; align-items: center; }
.header .lang span { padding: 2px 4px; cursor: pointer; }
.header .lang span.active { background: var(--fg); color: var(--bg); }
.header .sep { color: var(--fg-dim); }
.header .link { padding: 4px 0; transition: color 0.15s; }
.header .link:hover { color: var(--accent); }
.header .link.active { color: var(--accent); }
.header .link.active::after { content: " ●"; font-size: 8px; }

/* Tablet header */
@media (min-width: 760px) {
  .burger-label { display: inline; }
  .logo-img { height: 26px; }
}

/* Desktop header: utility bar + primary nav */
@media (min-width: 1100px) {
  .header-top {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    min-height: 32px; padding: 4px var(--gutter);
    border-bottom: var(--hairline) solid var(--rule);
    font-size: 10px; white-space: nowrap;
  }
  .header-top-l, .header-top-r { white-space: nowrap; }
  .header-top-r { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; }
  .header-top-r .link { white-space: nowrap; }
  .header-main {
    grid-template-columns: auto 1fr auto;
    height: 72px;
  }
  .header-main-l { gap: 28px; }
  .header-nav {
    display: flex; gap: 26px; justify-content: center;
    font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
    overflow: visible;
  }
  .header-nav .link { white-space: nowrap; padding: 8px 0; }
  .burger-label { font-size: 12px; }
  .logo-img { height: 32px; }
  .header-cta { font-size: 12px; padding: 11px 20px; letter-spacing: 0.08em; }
}

/* On mobile, expose key actions inline */
@media (max-width: 1099px) {
  .lang-mobile { display: inline-flex; gap: 2px; align-items: center; font-family: var(--mono); font-size: 11px; }
  .lang-mobile span { padding: 2px 4px; cursor: pointer; }
  .lang-mobile span.active { background: var(--fg); color: var(--bg); }
}
@media (min-width: 1100px) {
  .lang-mobile { display: none; }
}

/* Marquee */
.marquee {
  height: 36px; overflow: hidden; display: flex; align-items: center;
  border-bottom: var(--hairline) solid var(--rule);
  background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 48px; padding-left: 48px; animation: scrollx 40s linear infinite; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { display: inline-flex; align-items: center; gap: 24px; }
.marquee-track .dotw { width: 5px; height: 5px; border-radius: 50%; background: var(--bg); }

/* Hero */
.hero {
  padding: var(--sp-5) var(--gutter) var(--sp-5);
  position: relative;
}
.hero h1 { font-family: var(--serif); font-weight: 400; }
.hero .meta {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.hero .meta-l { max-width: 380px; }
.hero .meta-r { text-align: left; }
@media (min-width: 760px) {
  .hero { padding: var(--sp-7) var(--gutter) var(--sp-7); }
  .hero .meta {
    flex-direction: row; justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-7);
  }
  .hero .meta-r { text-align: right; }
}

/* Section head — more breathing room */
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  padding: var(--sp-3) var(--gutter) var(--sp-2);
  gap: var(--sp-2);
  border-top: var(--hairline) solid var(--rule);
}
.section-head .num { display: none; }
.section-head .title { font-family: var(--serif); font-size: clamp(22px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.02em; }
.section-head .right {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap;
  padding-bottom: 4px;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 80px 1fr auto;
    gap: var(--sp-3); padding: var(--sp-4) var(--gutter) var(--sp-3);
  }
  .section-head .num { display: block; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  background: transparent;
  min-height: 44px;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-accent:hover { filter: brightness(1.08); }

/* Pills / filters */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  min-height: 36px;
}
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Filters strip */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-2) var(--gutter);
  border-bottom: var(--hairline) solid var(--rule);
  align-items: center; justify-content: flex-start;
}
.filters + .filters { border-top: none; padding-top: 0; padding-bottom: var(--sp-3); }
.filters.scroll-x {
  display: flex; flex-wrap: nowrap; overflow-x: auto; 
  padding: var(--sp-2) var(--gutter);
  scrollbar-width: none;
  align-items: center; justify-content: flex-start;
  gap: var(--sp-1);
}
.filters.scroll-x::-webkit-scrollbar { display: none; }
.filters .label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  margin-right: var(--sp-1); color: var(--fg-dim); flex-shrink: 0;
}
.filters .search {
  display: flex; align-items: center; gap: var(--sp-1);
  border: 1px solid var(--rule); padding: var(--sp-1) var(--sp-2); border-radius: 999px;
  flex: 1; min-width: 180px; max-width: 320px;
  margin-left: auto;
}
.filters .search input {
  border: none; background: transparent; font: inherit; color: inherit; outline: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; flex: 1;
}

/* Placeholder image */
.placeholder-img {
  width: 100%; height: 100%; background-image:
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,0.04) 8px 9px);
  background-color: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-family: var(--mono); font-size: 10px;
  text-align: center; padding: 16px; letter-spacing: 0.08em; text-transform: uppercase;
}
[data-theme="dark"] .placeholder-img {
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,0.04) 8px 9px);
}

/* Hide all images when data-no-images is set */
[data-no-images="true"] img,
[data-no-images="true"] .real-img img { display: none !important; }
[data-no-images="true"] .real-img {
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,0.04) 8px 9px);
}
[data-no-images="true"][data-theme="dark"] .real-img {
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,0.04) 8px 9px);
}
[data-no-images="true"] .logo-img { display: inline-block !important; }

/* Real image wrapper */
.real-img {
  width: 100%; height: 100%;
  background: var(--bg-elev);
  overflow: hidden; position: relative;
}
.real-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
[data-theme="dark"] .real-img img { filter: brightness(0.92); }
.real-img.img-fallback::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,0.04) 8px 9px);
  color: var(--fg-dim); font-family: var(--mono); font-size: 10px;
  text-align: center; padding: 16px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Footer */
.footer {
  background: var(--fg); color: var(--bg);
  padding: var(--sp-7) var(--gutter) var(--sp-4);
  margin-top: var(--sec-y);
}
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--bg);
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer { padding: var(--sp-8) var(--gutter) var(--sp-4); }
}
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-2); opacity: 0.6; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--sp-1); font-size: 14px; }
.footer ul li:hover { color: var(--accent); cursor: pointer; }
/* Footer newsletter input — focus state */
.footer-nl-wrap {
  display: flex; gap: 0;
  border: 1px solid var(--bg); max-width: 380px;
  transition: box-shadow 0.2s;
}
.footer-nl-wrap:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.footer-nl-input {
  flex: 1; background: transparent; color: var(--bg); border: none;
  padding: 12px 14px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  outline: none;
}
.footer-nl-btn {
  padding: 12px 18px; border: none;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer;
}
.footer-big {
  font-family: var(--serif); font-size: clamp(48px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.03em;
  padding: var(--sp-6) 0; text-align: center;
}
.footer-bot {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-top: var(--sp-3); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6;
}
@media (min-width: 760px) { .footer-bot { flex-direction: row; justify-content: space-between; } }

/* Fullscreen menu */
.fsmenu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}
.fsmenu.open { transform: translateY(0); }
.fsmenu-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.fsmenu-head-l { display: flex; align-items: center; gap: 12px; }
.fsmenu-head-l > span { display: none; }
@media (min-width: 760px) { .fsmenu-head-l > span { display: inline; } }
.fsmenu-body {
  flex: 1; display: grid; grid-template-columns: 1fr;
  overflow-y: auto;
}
@media (min-width: 900px) { .fsmenu-body { grid-template-columns: 1.6fr 1fr; overflow: hidden; } }
.fsmenu-nav {
  padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 0;
  justify-content: center;
}
.fsmenu-nav a {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: baseline; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-dim); transition: color 0.2s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.fsmenu-nav a .n { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.fsmenu-nav a .label { font-family: var(--serif); font-size: clamp(32px, 7vw, 84px); line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
.fsmenu-nav a .desc { display: none; font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--fg-dim); }
.fsmenu-nav a .arrow { font-family: var(--sans); font-size: 24px; transition: transform 0.3s; }
.fsmenu-nav a:hover { color: var(--fg); }
.fsmenu-nav a:hover .label { font-style: italic; }
.fsmenu-nav a:hover .arrow { transform: translateX(8px); }
@media (min-width: 760px) {
  .fsmenu-nav a { grid-template-columns: 56px 1fr 1.4fr auto; padding: 20px 0; }
  .fsmenu-nav a .desc { display: block; }
}
.fsmenu-aside {
  background: var(--fg); color: var(--bg);
  padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
}
.fsmenu-aside .aside-feature h3 {
  font-family: var(--serif); font-size: clamp(24px, 3.5vw, 56px); line-height: 1.05; letter-spacing: -0.015em;
}
.fsmenu-aside .aside-secondary ul { list-style: none; padding: 0; }
.fsmenu-aside .aside-secondary li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: var(--serif); font-size: 18px; cursor: pointer;
}
.fsmenu-aside .aside-secondary li:hover { color: var(--accent); }
.fsmenu-aside .aside-auth { display: flex; gap: 8px; }
.fsmenu-aside .aside-auth .btn { justify-content: center; padding: 14px; font-size: 11px; }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Reveal-on-scroll micro-animation (IntersectionObserver-driven) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Agenda rows */
.agenda-row {
  display: grid; grid-template-columns: 90px 1fr;
  align-items: center; gap: 12px;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--rule);
  cursor: pointer; transition: background 0.2s, padding 0.2s;
  font-size: 14px;
}
.agenda-row:hover { background: var(--bg-elev); }
.agenda-row .date { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.agenda-row .date b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1; font-weight: 400; }
.agenda-row .kind, .agenda-row .place, .agenda-row .price, .agenda-row .speakers, .agenda-row .cta { display: none; }
.agenda-row .title { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; }
@media (min-width: 760px) {
  .agenda-row { grid-template-columns: 110px 1fr 160px 120px; padding: 22px var(--gutter); }
  .agenda-row .kind, .agenda-row .place { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-dim); }
  .agenda-row .title { font-size: 26px; }
}
@media (min-width: 1100px) {
  .agenda-row { grid-template-columns: 110px 90px 1fr 200px 200px 1fr 120px; }
  .agenda-row .price { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
  .agenda-row .speakers { display: block; font-size: 13px; color: var(--fg-dim); }
  .agenda-row .cta { display: block; text-align: right; }
  .agenda-row:hover { padding-left: calc(var(--gutter) + 8px); }
}

/* Video player */
.video-wrap { position: relative; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.7) 100%);
  color: #fff; pointer-events: none;
}
.video-overlay > * { pointer-events: auto; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #000;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; pointer-events: auto; border: none; cursor: pointer;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--accent); color: #fff; }
.video-play.playing { opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .video-play { width: 96px; height: 96px; } .video-overlay { padding: 24px; } }
.video-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
}
.video-progress { flex: 1; min-width: 100px; height: 2px; background: rgba(255,255,255,0.3); position: relative; cursor: pointer; }
.video-progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: #fff; }
.video-progress:hover { height: 4px; }

/* Carousel */
.carousel { display: flex; overflow-x: auto; gap: 16px; padding: 24px var(--gutter) 32px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 280px; scroll-snap-align: start; }

/* Event detail */
.event-hero {
  display: grid; grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
}
.event-hero-img { background: var(--bg-elev); aspect-ratio: 4/3; }
.event-hero-body { padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) {
  .event-hero { grid-template-columns: 1fr 1fr; min-height: 80vh; }
  .event-hero-img { aspect-ratio: auto; }
  .event-hero-body { padding: 48px var(--gutter); justify-content: space-between; gap: 32px; }
}

/* Bigquote */
.bigquote {
  padding: var(--sp-6) var(--gutter);
  font-family: var(--serif); font-size: clamp(28px, 6vw, 96px); line-height: 1.05; letter-spacing: -0.02em;
  border-top: var(--hairline) solid var(--rule); border-bottom: var(--hairline) solid var(--rule);
  text-wrap: balance;
}
@media (min-width: 760px) { .bigquote { padding: var(--sp-7) var(--gutter); line-height: 1; } }
@media (min-width: 1100px) { .bigquote { padding: var(--sp-8) var(--gutter); } }

/* Selection */
::selection { background: var(--accent); color: var(--paper); }

/* Focus management — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:focus-visible,
.pill:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Underline link */
.ulink { position: relative; display: inline-block; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ulink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ============================================
   Hero mosaic — 4-card featured grid
   ============================================ */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
@media (min-width: 760px) {
  .hero-mosaic {
    grid-template-columns: 1.7fr 1fr;
    grid-template-areas:
      "A B"
      "A C"
      "D C";
    gap: var(--sp-3);
  }
  .hm-a { grid-area: A; }
  .hm-b { grid-area: B; }
  .hm-c { grid-area: C; }
  .hm-d { grid-area: D; }
}
@media (min-width: 1100px) {
  .hero-mosaic {
    grid-template-columns: 1.7fr 1fr 1fr;
    grid-template-areas:
      "A B C"
      "A D C";
    gap: var(--sp-2);
  }
}

.hm-card {
  position: relative;
  border: var(--hairline) solid var(--rule);
  background: var(--bg);
  cursor: pointer;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background 0.2s;
}
.hm-card:hover { background: var(--bg-elev); }
.hm-card:hover .hm-media .placeholder-img,
.hm-card:hover .hm-media .real-img img { transform: scale(1.03); }
.hm-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elev);
}
.hm-media .placeholder-img,
.hm-media .real-img img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-media.small { aspect-ratio: 16/9; }
@media (min-width: 760px) {
  .hm-a .hm-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .hm-c .hm-media { aspect-ratio: 4/3; }
}
@media (min-width: 1100px) {
  .hm-a .hm-media { min-height: 420px; }
}

.hm-tag {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--fg); color: var(--bg);
  padding: 6px 10px; border-radius: 999px;
}
.hm-dur {
  position: absolute; bottom: var(--sp-2); right: var(--sp-2);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 4px 8px;
  font-size: 10px;
}
.hm-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #000;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.hm-card:hover .hm-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #fff; }
@media (min-width: 760px) { .hm-play { width: 84px; height: 84px; } }

.hm-body {
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  flex: 1;
}
.hm-title-xl {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.hm-title {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08; letter-spacing: -0.015em;
}
.hm-title-d {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1; letter-spacing: -0.02em;
}
.hm-meta { color: var(--fg-dim); margin-top: auto; }

.hm-d {
  background: var(--fg); color: var(--bg);
  border-color: var(--fg);
}
.hm-d .hm-body { justify-content: center; }
.hm-d .hm-body .eyebrow { color: rgba(255,255,255,0.7); }

/* ============================================
   Magazine feature section (home)
   ============================================ */
.mag-feature {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 760px) {
  .mag-feature { grid-template-columns: 1fr 1.2fr; }
}
.mag-feature-img {
  background: #d4cfc1;
  aspect-ratio: 3/4;
  max-height: 56vh;
  overflow: hidden;
}
@media (min-width: 760px) {
  .mag-feature-img { aspect-ratio: auto; max-height: none; min-height: 460px; }
}
.mag-feature-body {
  padding: var(--sp-5) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--sp-4);
}
@media (min-width: 1100px) {
  .mag-feature-body { padding: var(--sp-6) var(--sp-6); }
}
.mag-feature-eyebrow {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  opacity: 0.72;
  margin-bottom: var(--sp-3);
}
.mag-feature-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-3);
}
.mag-feature-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.4;
  opacity: 0.85;
  max-width: 44ch;
}

/* Compact upcoming-event cards on home */
.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .upcoming-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.upcoming-item {
  padding: var(--sp-3);
  cursor: pointer;
  border-top: var(--hairline) solid var(--rule);
  transition: background 0.2s;
}
.upcoming-item:hover { background: var(--bg-elev); }
@media (min-width: 600px) {
  .upcoming-item:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .upcoming-item:not(:nth-child(2n)) { border-right: none; }
  .upcoming-item:not(:nth-child(4n)) { border-right: var(--hairline) solid var(--rule); }
}
.upcoming-grid .placeholder-img,
.upcoming-grid .real-img { aspect-ratio: 4/3; }

/* Cards generic */
.cat-hero { padding: var(--sp-6) var(--gutter) var(--sp-5); border-bottom: var(--hairline) solid var(--rule); }

/* ============================================
   MansA Éditorial (home — restructured)
   ============================================ */
.edito-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 1100px) {
  .edito-grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-4); }
}
.edito-featured {
  display: grid; grid-template-columns: 1fr;
  border: var(--hairline) solid var(--rule);
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s;
}
.edito-featured:hover { background: var(--bg-elev); }
@media (min-width: 760px) {
  .edito-featured { grid-template-columns: 1fr 1fr; }
}
.edito-featured-img {
  position: relative;
  background: var(--bg-elev);
  aspect-ratio: 4/3;
  overflow: hidden;
}
@media (min-width: 760px) {
  .edito-featured-img { aspect-ratio: auto; min-height: 100%; }
}
.edito-tag {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  background: var(--fg); color: var(--bg);
  padding: 6px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.1em;
}
.edito-featured-body {
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  justify-content: space-between;
}
@media (min-width: 1100px) {
  .edito-featured-body { padding: var(--sp-5); gap: var(--sp-3); }
}
.edito-featured-title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.06; letter-spacing: -0.02em;
  margin: var(--sp-2) 0 var(--sp-3);
}
.edito-featured-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.4;
  color: var(--fg-dim);
  max-width: 52ch;
}
.edito-meta { color: var(--fg-dim); margin-top: 4px; }
.edito-cta { align-self: flex-start; margin-top: var(--sp-2); }

.edito-rail {
  display: flex; flex-direction: column;
  border: var(--hairline) solid var(--rule);
  background: var(--bg);
}
.edito-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-bottom: var(--hairline) solid var(--rule);
  cursor: pointer; align-items: center;
  transition: background 0.2s, padding 0.2s;
}
.edito-row:last-child { border-bottom: none; }
.edito-row:hover { background: var(--bg-elev); padding-left: calc(var(--sp-3) + 6px); }
@media (min-width: 760px) {
  .edito-row { grid-template-columns: 140px 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3); }
}
.edito-row-img {
  background: var(--bg-elev);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.edito-row-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.edito-row-title {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 2px 0;
}

/* ============================================
   Home — MansA Média video grid
   ============================================ */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.media-card {
  padding: var(--card-p);
  border-top: var(--hairline) solid var(--rule);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background 0.2s;
}
.media-card:hover { background: var(--bg-elev); }
@media (min-width: 600px) {
  .media-card:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .media-card:not(:nth-child(2n)) { border-right: none; }
  .media-card:not(:nth-child(4n)) { border-right: var(--hairline) solid var(--rule); }
  /* Featured video spans 2 cols × 2 rows */
  .media-card.featured { grid-column: span 2; grid-row: span 2; }
  .media-card.featured .media-thumb { aspect-ratio: auto; flex: 1; min-height: 360px; }
  .media-card.featured .media-title { font-size: clamp(28px, 3vw, 40px); }
}
.media-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elev);
}
.media-card .media-thumb .placeholder-img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.media-card:hover .placeholder-img { transform: scale(1.04); }
.media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.media-card:hover .media-play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); color: #fff; }
.media-card.featured .media-play { width: 72px; height: 72px; }
.media-dur {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.65); color: #fff;
  padding: 3px 8px;
  font-size: 10px;
}
.media-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--fg); color: var(--bg);
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.1em;
}
.media-title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.12; letter-spacing: -0.01em;
}

/* ============================================
   Home — Articles grid
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
  gap: 0;
}
@media (min-width: 760px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .art-featured {
    grid-column: span 2; grid-row: span 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  }
  .art-featured .art-img { aspect-ratio: auto; min-height: 100%; }
}
.art-card {
  border-top: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background 0.2s;
}
.art-card:hover { background: var(--bg-elev); }
@media (min-width: 760px) {
  .art-card:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .art-card:not(:nth-child(2n)) { border-right: none; }
  .art-card:not(:last-child) { border-right: var(--hairline) solid var(--rule); }
}
.art-img { background: var(--bg-elev); aspect-ratio: 4/3; }
.art-img-small { background: var(--bg-elev); }
.art-img-small .placeholder-img { aspect-ratio: 4/3; }
.art-body { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-2); }
.art-featured .art-body { padding: var(--card-p); justify-content: center; }
.art-title-xl {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.art-title {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.12; letter-spacing: -0.015em;
}

/* ============================================
   Home — MansA Radio podcasts
   ============================================ */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sp-5);
}
@media (min-width: 760px) { .radio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .radio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.radio-card {
  padding: var(--card-p);
  border-top: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: background 0.2s;
}
.radio-card:hover { background: rgba(255,255,255,0.05); }
@media (min-width: 760px) {
  .radio-card:not(:nth-child(2n)) { border-right: 1px solid rgba(255,255,255,0.2); }
}
@media (min-width: 1100px) {
  .radio-card:not(:nth-child(2n)) { border-right: none; }
  .radio-card:not(:nth-child(4n)) { border-right: 1px solid rgba(255,255,255,0.2); }
}
.radio-art {
  aspect-ratio: 1/1;
  background: var(--bg-elev);
  overflow: hidden;
}
.radio-body { display: flex; flex-direction: column; }
.radio-play {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--bg); background: var(--bg); color: var(--fg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; cursor: pointer;
}
.radio-play:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.radio-title {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.1; letter-spacing: -0.015em;
}
@media (min-width: 760px) { .cat-hero { padding: var(--sp-7) var(--gutter) var(--sp-5); } }
@media (min-width: 1100px) { .cat-hero { padding: var(--sp-8) var(--gutter) var(--sp-6); } }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Shop Grid Styles */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.shop-card {
  background: var(--bg);
  border-top: var(--hairline) solid var(--rule);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  position: relative;
}
.shop-card:hover { background: var(--bg-elev); }
.shop-card.featured { border-top-width: 2px; }

.shop-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-elev);
}
.shop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.shop-card:hover .shop-img { transform: scale(1.03); }

.badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.shop-body {
  padding: var(--card-p);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-cat {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.shop-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.shop-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
  margin: 0;
}

.shop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.btn-add {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

@media (min-width: 600px) {
  .shop-card:not(:nth-child(2n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .shop-card:not(:nth-child(2n)) { border-right: none; }
  .shop-card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 1280px) {
  .shop-card:not(:nth-child(3n)) { border-right: none; }
  .shop-card:not(:nth-child(4n)) { border-right: 1px solid var(--rule); }
}

.cat-card {
  border-top: var(--hairline) solid var(--rule);
  padding: var(--card-p) var(--card-p);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 0;
}

.card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--fg-dim);
  border: 1px solid var(--rule);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.card-fav:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: scale(1.08); }
.card-fav.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-row-fav {
  background: none; border: none; color: var(--fg-dim);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
  transition: color 0.15s, transform 0.15s;
}
.cat-row-fav:hover { color: var(--fg); transform: scale(1.15); }
.cat-row-fav.active { color: var(--accent); }
.cat-card:hover { background: var(--bg-elev); }
.cat-card .placeholder-img { aspect-ratio: 4/3; }
.cat-card h3 { margin-top: 8px; }

@media (min-width: 600px) {
  .cat-card:not(:nth-child(2n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .cat-card:not(:nth-child(2n)) { border-right: none; }
  .cat-card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 1280px) {
  .cat-card:not(:nth-child(3n)) { border-right: none; }
  .cat-card:not(:nth-child(4n)) { border-right: 1px solid var(--rule); }
}

.cat-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 12px; padding: 18px var(--gutter); border-top: 1px solid var(--rule);
  cursor: pointer;
}
.cat-row:hover { background: var(--bg-elev); }
.cat-row .cat-row-date { color: var(--fg-dim); }
.cat-row .cat-row-tag, .cat-row .cat-row-kind, .cat-row .cat-row-cta { display: none; }
.cat-row .cat-row-title { font-size: 22px; line-height: 1.1; }
@media (min-width: 760px) {
  .cat-row { grid-template-columns: 110px 140px 1fr 180px 40px; padding: 22px var(--gutter); align-items: baseline; }
  .cat-row .cat-row-tag { display: block; color: var(--fg-dim); }
  .cat-row .cat-row-kind { display: block; color: var(--fg-dim); text-align: right; }
  .cat-row .cat-row-cta { display: block; text-align: right; }
  .cat-row .cat-row-title { font-size: 26px; }
}

/* Magazine page */
.mag-hero {
  display: grid; grid-template-columns: 1fr;
  padding: 48px var(--gutter);
  gap: 32px;
  align-items: center;
}
.mag-cover { background: var(--bg-elev); }
@media (min-width: 900px) {
  .mag-hero { grid-template-columns: 1.2fr 1fr; padding: 80px var(--gutter); gap: 64px; min-height: 80vh; }
}

.mag-toc {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.mag-toc-row {
  display: grid; grid-template-columns: 50px 1fr;
  gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: padding 0.2s;
}
.mag-toc-row:hover { padding-left: 8px; }
.mag-toc-row .p { color: var(--fg-dim); }
.mag-toc-row .k, .mag-toc-row .by, .mag-toc-row .arrow { display: none; }
.mag-toc-row .title { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
@media (min-width: 760px) {
  .mag-toc-row { grid-template-columns: 70px 110px 1fr 200px 40px; align-items: baseline; }
  .mag-toc-row .k { display: block; color: var(--fg-dim); }
  .mag-toc-row .by { display: block; color: var(--fg-dim); text-align: right; }
  .mag-toc-row .arrow { display: block; text-align: right; }
  .mag-toc-row .title { font-size: 28px; letter-spacing: -0.015em; }
}

/* Info grid (resources) */
.info-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--hairline) solid var(--rule);
}
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card {
  padding: var(--card-p);
  border-bottom: var(--hairline) solid var(--rule);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: background 0.2s, padding 0.2s;
}
.info-card:hover { background: var(--bg-elev); padding-left: calc(var(--card-p) + 8px); }
@media (min-width: 600px) {
  .info-card:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .info-card:not(:nth-child(2n)) { border-right: none; }
  .info-card:not(:nth-child(3n)) { border-right: var(--hairline) solid var(--rule); }
}

/* FAQ */
.faq-row {
  border-bottom: var(--hairline) solid var(--rule);
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) var(--gutter);
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: baseline; gap: var(--sp-2);
  transition: background 0.2s;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary:hover { background: var(--bg-elev); }
.faq-row summary .mono { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; }
.faq-row summary .serif { font-size: clamp(18px, 2vw, 28px); line-height: 1.15; }
.faq-row summary .faq-toggle { font-family: var(--mono); font-size: 18px; transition: transform 0.3s; }
.faq-row[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-row p {
  padding: 0 var(--gutter) var(--sp-4) calc(var(--gutter) + 36px + var(--sp-2));
  font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--fg-dim); max-width: 72ch;
}

/* Presse download cards */
.presse-row {
  display: flex; flex-direction: column;
  padding: var(--card-p);
  border: var(--hairline) solid var(--rule);
  cursor: pointer;
  transition: background 0.2s, transform 0.25s;
}
.presse-row:hover { background: var(--bg-elev); }

/* ============================================
   User chip in header
   ============================================ */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.user-chip-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0;
}
.user-chip-avatar.small { width: 28px; height: 28px; font-size: 11px; }
.user-chip-mobile { padding: 4px; }

/* ============================================
   Auth pages
   ============================================ */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--hdr-h));
  border-top: var(--hairline) solid var(--rule);
}
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: 1fr 1.1fr; }
}
.auth-side {
  background: var(--fg); color: var(--bg);
  padding: var(--sp-6) var(--gutter);
  display: flex; align-items: center;
}
.auth-side-inner { max-width: 460px; }
.auth-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.auth-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  opacity: 0.85;
  max-width: 44ch;
}
.auth-side-foot { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,0.18); }

.auth-form-wrap {
  padding: var(--sp-6) var(--gutter);
  display: flex; align-items: center; justify-content: center;
}
.auth-form { width: 100%; max-width: 460px; }
.auth-h {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-2); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.auth-steps {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-4); font-size: 10px;
}
.auth-steps .step { color: var(--fg-dim); white-space: nowrap; }
.auth-steps .step.active { color: var(--fg); }
.auth-steps .step.done { color: var(--accent); }
.auth-steps .step-line { flex: 1; height: 1px; background: var(--rule); opacity: 0.3; min-width: 12px; }

.field {
  display: block; margin-bottom: var(--sp-3);
}
.field-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.field-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.field-hint {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.field input {
  width: 100%; border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--fg);
  padding: 10px 0;
  font-family: var(--serif); font-size: 22px; line-height: 1.2;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-bottom-color: var(--accent); border-bottom-width: 2px; }
.field input::placeholder { color: var(--fg-dim); opacity: 0.45; font-style: italic; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

.auth-options {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-4); flex-wrap: wrap; gap: var(--sp-2);
}
.check {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 16px;
  cursor: pointer; margin-bottom: 12px;
}
.check input { width: 16px; height: 16px; accent-color: var(--fg); }

.auth-cta {
  width: 100%; justify-content: center;
  padding: 18px 24px; font-size: 12px;
}
.auth-cta[disabled] { opacity: 0.4; cursor: not-allowed; }

.auth-divider {
  text-align: center; margin: var(--sp-4) 0;
  position: relative;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--fg-dim);
}
.auth-divider::before, .auth-divider::after {
  content: ""; position: absolute; top: 50%; width: calc(50% - 30px); height: 1px; background: var(--rule); opacity: 0.4;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social { display: flex; flex-direction: column; gap: var(--sp-2); }
.auth-social-btn { justify-content: center; padding: 14px 18px; }
.auth-social-btn span:first-child {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-family: var(--serif); font-size: 14px;
  background: var(--fg); color: var(--bg); border-radius: 4px;
  margin-right: 8px;
}

.theme-pills {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.theme-pill { min-height: 40px; padding: 10px 16px; font-size: 11px; }

/* ============================================
   Account page
   ============================================ */
.account-hero {
  padding: var(--sp-6) var(--gutter);
  border-bottom: var(--hairline) solid var(--rule);
}
.account-hero-inner {
  display: flex; flex-direction: column; gap: var(--sp-3);
}
@media (min-width: 900px) {
  .account-hero-inner { flex-direction: row; align-items: flex-end; gap: var(--sp-5); }
  .account-hero-r { margin-left: auto; }
}
.account-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 28px; letter-spacing: 0;
  flex-shrink: 0;
}
@media (min-width: 900px) { .account-avatar { width: 96px; height: 96px; font-size: 32px; } }

.plan-badge {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--rule);
}
.plan-badge.plan-adherent { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.plan-badge.plan-mecene { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.plan-badge.plan-current { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.account-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .account-body { grid-template-columns: 240px 1fr; }
}
.account-nav {
  display: flex; flex-direction: row; overflow-x: auto;
  gap: 0;
  border-bottom: var(--hairline) solid var(--rule);
  scrollbar-width: none;
}
.account-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .account-nav {
    flex-direction: column;
    border-right: var(--hairline) solid var(--rule);
    border-bottom: none;
    overflow: visible;
    position: sticky;
    top: var(--hdr-h);
    height: max-content;
  }
}
.account-nav-btn {
  flex: 0 0 auto;
  padding: 14px var(--gutter);
  text-align: left;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-right: var(--hairline) solid var(--rule);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
@media (min-width: 900px) {
  .account-nav-btn {
    border-right: none;
    border-bottom: var(--hairline) solid var(--rule);
  }
}
.account-nav-btn:hover { background: var(--bg-elev); color: var(--fg); }
.account-nav-btn.active { color: var(--fg); background: var(--bg-elev); }
/* Active indicator: underline on mobile, left border on desktop */
@media (max-width: 899px) {
  .account-nav-btn.active { box-shadow: inset 0 -2px 0 var(--accent); }
}
@media (min-width: 900px) {
  .account-nav-btn.active {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: calc(var(--gutter) - 3px);
  }
}
.account-badge { background: var(--fg); color: var(--bg); padding: 2px 8px; border-radius: 999px; font-size: 9px; }
.account-nav-sep { display: none; }
@media (min-width: 900px) { .account-nav-sep { display: block; height: var(--sp-4); border-bottom: var(--hairline) solid var(--rule); } }
.account-logout { color: var(--accent); }
.account-logout:hover { background: var(--accent); color: var(--paper); }

.account-content { padding: var(--sp-5) var(--gutter); min-width: 0; }
.account-section { max-width: 1100px; }
.account-h {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.account-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; margin-bottom: var(--sp-6);
  border-top: var(--hairline) solid var(--rule);
  border-bottom: var(--hairline) solid var(--rule);
}
@media (min-width: 760px) { .account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.account-stat {
  text-align: left;
  padding: var(--sp-3) var(--card-p);
  display: flex; flex-direction: column; gap: 6px;
  border-right: var(--hairline) solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
}
.account-stat:nth-child(2n) { border-right: none; }
@media (min-width: 760px) {
  .account-stat:nth-child(2n) { border-right: var(--hairline) solid var(--rule); }
  .account-stat:nth-child(4n) { border-right: none; }
}
.account-stat:hover { background: var(--bg-elev); }
.account-stat .serif { font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.account-stat .mono { color: var(--fg-dim); }

.account-block { margin-bottom: var(--sp-6); }
.account-block-h {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--sp-3); gap: var(--sp-2);
  border-bottom: var(--hairline) solid var(--rule); padding-bottom: var(--sp-2);
}
.account-block-h .serif { font-size: 24px; letter-spacing: -0.015em; }

.account-activity {
  list-style: none; padding: 0;
}
.account-activity li {
  display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: var(--hairline) solid var(--rule);
  align-items: baseline;
  font-family: var(--serif); font-size: 18px;
}
.account-activity li .mono { color: var(--fg-dim); font-size: 11px; }

/* Tickets */
.ticket {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--card-p);
  border: var(--hairline) solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
}
.ticket:hover { background: var(--bg-elev); }
.ticket-date { display: flex; flex-direction: column; align-items: flex-start; }
.ticket-date .serif { font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.ticket-date .mono { font-size: 10px; color: var(--fg-dim); margin-top: 4px; }
.ticket-body h4 { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; margin: 4px 0; }
.ticket-side { text-align: right; }
.ticket-qr {
  display: grid; grid-template-columns: repeat(6, 7px); grid-template-rows: repeat(6, 7px);
  gap: 2px;
  background: var(--bg-elev); padding: 5px;
  border: 1px solid var(--rule);
  width: max-content; margin-left: auto;
}
.ticket-qr span { border-radius: 1px; }

/* Favorites grid */
.fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
@media (min-width: 760px) { .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fav-card {
  position: relative; border: var(--hairline) solid var(--rule);
  padding: var(--card-p); cursor: pointer;
  transition: background 0.2s, transform 0.25s;
}
.fav-card:hover { background: var(--bg-elev); }
.fav-img { background: var(--bg-elev); margin-bottom: var(--sp-2); }
.fav-star {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--accent);
  border: 1px solid var(--rule);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.fav-star:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.fav-body { display: flex; flex-direction: column; gap: 6px; }

/* Plans */
.plans {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
}
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-card {
  border: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  display: flex; flex-direction: column;
}
.plan-card.current { background: var(--bg-elev); border-color: var(--fg); border-width: 2px; padding: calc(var(--card-p) - 1px); }
.plan-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plan-perks { list-style: none; padding: 0; font-family: var(--serif); font-size: 17px; line-height: 1.7; flex: 1; }
.plan-perks li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.plan-perks li:last-child { border-bottom: none; }

/* Pref */
.pref-block {
  padding: var(--sp-4) 0;
  border-bottom: var(--hairline) solid var(--rule);
}
.pref-block:last-child { border-bottom: none; }
.pref-block h3 { font-size: 24px; letter-spacing: -0.015em; }
.row-toggle {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-2); padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.row-toggle:last-child { border-bottom: none; }
.row-toggle input[type="checkbox"] {
  width: 44px; height: 24px;
  appearance: none; background: var(--bg-elev);
  border-radius: 999px; position: relative; cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--rule);
}
.row-toggle input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--fg); transition: transform 0.2s;
}
.row-toggle input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.row-toggle input[type="checkbox"]:checked::after { transform: translateX(20px); background: var(--paper); }

.empty-state {
  padding: var(--sp-6) var(--gutter);
  text-align: center;
  border: 1px dashed var(--rule);
  border-radius: 2px;
  margin-top: var(--sp-3);
  background: var(--bg-elev);
  opacity: 0.9;
}
.empty-state .serif { font-size: clamp(18px, 2vw, 22px); color: var(--fg-dim); letter-spacing: -0.01em; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: var(--gutter); left: var(--gutter); right: var(--gutter);
  z-index: 80;
  background: var(--bg); border: var(--hairline) solid var(--rule);
  padding: var(--sp-3) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 640px; margin: 0 auto;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 760px) {
  .cookie-banner { flex-direction: row; align-items: center; }
}
.cookie-msg { flex: 1; }
.cookie-actions { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 14px; font-size: 10px; min-height: 38px; }

.search-hero {
  padding: var(--sp-6) var(--gutter) var(--sp-4);
  border-bottom: var(--hairline) solid var(--rule);
}
.search-box {
  display: flex; align-items: center; gap: var(--sp-2);
  border-bottom: 2px solid var(--rule);
  padding: 8px 0;
}
.search-prefix { font-family: var(--mono); font-size: 18px; color: var(--fg-dim); opacity: 0.7; }
.search-input {
  flex: 1;
  border: none;
  background: transparent; color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 64px); line-height: 1.1; letter-spacing: -0.02em;
  padding: 8px 0; outline: none;
}
.search-input::placeholder { color: var(--fg-dim); opacity: 0.5; }
.search-clear {
  padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px;
  cursor: pointer; background: transparent; color: inherit;
  font-size: 10px; transition: background 0.2s;
}
.search-clear:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.search-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-4) var(--gutter) var(--sp-2);
  border-top: var(--hairline) solid var(--rule);
}
.search-row {
  display: grid;
  grid-template-columns: 90px 1fr 32px;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--gutter);
  border-top: var(--hairline) solid var(--rule);
  cursor: pointer; align-items: baseline;
  transition: padding 0.2s, background 0.2s;
}
.search-row:hover { background: var(--bg-elev); padding-left: calc(var(--gutter) + 6px); }
.search-row .serif { font-size: 22px; line-height: 1.12; letter-spacing: -0.015em; }
.search-row > .mono:first-child { color: var(--fg-dim); }
.search-row > .mono:nth-child(3) { display: none; }
@media (min-width: 900px) {
  .search-row { grid-template-columns: 100px 1fr 240px 32px; }
  .search-row > .mono:nth-child(3) { display: block; color: var(--fg-dim); text-align: right; }
}

/* ============================================
   Soutenir / Mécénat
   ============================================ */
.soutien-tiers {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
}
@media (min-width: 760px) { .soutien-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .soutien-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.soutien-tier {
  position: relative;
  border: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  display: flex; flex-direction: column;
  transition: background 0.2s, transform 0.25s;
}
.soutien-tier:hover { background: var(--bg-elev); transform: translateY(-3px); }
.soutien-tier.popular { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.soutien-tier.popular:hover { background: var(--accent); border-color: var(--accent); }
.soutien-tier.popular .plan-perks li { border-bottom-color: rgba(255,255,255,0.18); }
.soutien-pop {
  position: absolute; top: -12px; left: var(--card-p);
  background: var(--accent); color: var(--paper);
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.soutien-tier-h { font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.soutien-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: var(--sp-2); margin-bottom: var(--sp-1);
}
.soutien-price .serif { font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.soutien-price .mono { font-size: 11px; opacity: 0.7; }
.soutien-deduct {
  font-size: 10px; margin-bottom: var(--sp-3); opacity: 0.8;
}
.soutien-tier.popular .soutien-deduct { opacity: 0.85; }

.patrons-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--hairline) solid var(--rule);
}
@media (min-width: 760px) { .patrons-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.patron-card {
  padding: var(--card-p);
  border-right: var(--hairline) solid var(--rule);
  border-bottom: var(--hairline) solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 140px;
  transition: background 0.2s;
}
.patron-card:hover { background: var(--bg-elev); }
.patron-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin-top: auto; }

/* ============================================
   Jobs / Carrières
   ============================================ */
.job-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--gutter);
  border-top: var(--hairline) solid var(--rule);
  cursor: pointer; align-items: baseline;
  transition: background 0.2s, padding 0.2s;
}
.job-row:hover { background: var(--bg-elev); padding-left: calc(var(--gutter) + 8px); }
.job-row .job-dept { color: var(--accent); font-size: 11px; margin-bottom: 4px; }
.job-row .job-title { font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.job-row .job-type, .job-row .job-loc, .job-row .job-date { display: none; color: var(--fg-dim); }
.job-row .job-cta { text-align: right; padding: 0; background: none; border: none; cursor: pointer; }
@media (min-width: 900px) {
  .job-row { grid-template-columns: 130px 1fr 110px 100px 110px 80px; }
  .job-row .job-type, .job-row .job-loc, .job-row .job-date { display: block; }
}

/* Empty state */
.empty {
  grid-column: 1 / -1;
  padding: 80px var(--gutter); text-align: center; color: var(--fg-dim);
}

/* Misc */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ============================================
   Home — Responsive layout classes
   ============================================ */

/* 2-column promo split */
.home-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 900px) { .home-split { grid-template-columns: 1fr 1.4fr; } }
@media (min-width: 900px) { .home-split.flip { grid-template-columns: 1.4fr 1fr; } }

/* 3-column info blocks */
.home-3col-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 760px) { .home-3col-info { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .home-3col-info { grid-template-columns: 1.4fr 1fr 1fr; } }

/* 4 pillars section */
.home-pillars {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--hairline) solid var(--rule);
}
@media (min-width: 600px) { .home-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .home-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.home-pillar {
  padding: var(--card-p);
  display: flex; flex-direction: column; gap: 16px;
  border-bottom: var(--hairline) solid var(--rule);
}
@media (min-width: 600px) {
  .home-pillar:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .home-pillar { border-bottom: none; }
  .home-pillar:not(:nth-child(2n)) { border-right: none; }
  .home-pillar:not(:nth-child(4n)) { border-right: var(--hairline) solid var(--rule); }
}

/* 2-column manifesto intro */
.home-manifesto-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
  align-items: end;
}
@media (min-width: 1100px) { .home-manifesto-intro { grid-template-columns: 1fr 2fr; } }

/* Publications 4-col grid on home */
.home-pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .home-pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .home-pub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.home-pub-item {
  border-top: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.home-pub-item:hover { background: var(--bg-elev); }
@media (min-width: 600px) {
  .home-pub-item:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .home-pub-item:not(:nth-child(2n)) { border-right: none; }
  .home-pub-item:not(:nth-child(4n)) { border-right: var(--hairline) solid var(--rule); }
}

/* Agenda grid view */
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .agenda-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.agenda-grid-item {
  border-top: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.agenda-grid-item:hover { background: var(--bg-elev); }
@media (min-width: 600px) {
  .agenda-grid-item:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .agenda-grid-item:not(:nth-child(2n)) { border-right: none; }
  .agenda-grid-item:not(:nth-child(3n)) { border-right: var(--hairline) solid var(--rule); }
}

/* Fullscreen menu logo — dark mode aware (same as header .logo-img) */
.fsmenu-logo {
  height: 22px; width: auto; display: block;
  filter: invert(1);
  transition: filter 0.2s ease;
}
[data-theme="dark"] .fsmenu-logo { filter: invert(0); }

/* ============================================
   Responsive fallback overrides for remaining inline grids
   ============================================ */
@media (max-width: 759px) {
  /* Multi-column inline grids → single column */
  main section > div[style*="repeat(4, 1fr)"],
  main section > div[style*="repeat(3, 1fr)"],
  main section > div[style*="repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }

  main section > div[style*="1.4fr 1fr"],
  main section > div[style*="1.2fr 1fr"],
  main section > div[style*="1fr 1.2fr"],
  main section > div[style*="1fr 1.4fr"],
  main section > div[style*="1fr 1.5fr"],
  main section > div[style*="1.5fr 1fr"],
  main section > div[style*="2fr 1fr"],
  main section > div[style*="1fr 2fr"] { grid-template-columns: 1fr !important; gap: var(--sp-4) !important; }

  /* Remove stray right borders when items collapse to 1 col */
  main section > div[style*="repeat(4, 1fr)"] > div,
  main section > div[style*="repeat(3, 1fr)"] > div {
    border-right: none !important;
    border-bottom: var(--hairline) solid var(--rule) !important;
  }

  .filters { padding: 12px var(--gutter); overflow-x: auto; flex-wrap: nowrap; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .search { display: none; }
}

@media (min-width: 760px) and (max-width: 1099px) {
  /* 4-col → 2-col on tablet */
  main section > div[style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Wide asymmetric → stack */
  main section > div[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ============================================
   Explorer publication cards — improved
   ============================================ */
.pub-meta {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-top: 14px;
  margin-bottom: 6px;
  line-height: 1;
}
.pub-tag-pill {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 1px;
  margin-right: 8px;
  white-space: nowrap;
}
.pub-kind-txt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-card-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}
.pub-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--hairline) solid var(--rule);
}
.pub-card-date {
  font-size: 10px;
  color: var(--fg-dim);
}
.pub-card-cta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.18s, color 0.18s;
}
.home-pub-item:hover .pub-card-cta { opacity: 1; color: var(--fg); }

/* ============================================
   Banque d'archives — mosaic grid
   ============================================ */
.archive-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.archive-mosaic-item {
  position: relative;
  overflow: hidden;
}
.archive-mosaic-item .placeholder-img {
  filter: saturate(0.6) contrast(1.08);
  transition: filter 0.35s;
}
.archive-mosaic-item:hover .placeholder-img { filter: saturate(1) contrast(1); }
.archive-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.archive-mosaic-item:hover .archive-overlay { opacity: 1; }

/* ============================================
   Page-level responsive grid classes (replaces inline grids)
   ============================================ */

/* CreationPage — 3 programme pillars */
.creation-pillars {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  padding: var(--sp-5) var(--gutter);
  gap: 0;
}
.creation-pillar { padding: 24px; }
.creation-pillar:not(:last-child) { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .creation-pillars { grid-template-columns: repeat(3, 1fr); }
  .creation-pillar:not(:last-child) { border-bottom: none; border-right: 1px solid var(--rule); }
}

/* LabPage — project cards grid */
.lab-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.lab-project-card { border-top: 1px solid var(--rule); padding: 16px; }
@media (min-width: 760px) { .lab-projects { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .lab-projects { grid-template-columns: repeat(4, 1fr); } }

/* InfosPage — 3-col access/pricing/F&B */
.infos-access {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  padding: var(--sp-5) var(--gutter);
  gap: 0;
}
.infos-access-col { padding: var(--card-p); }
.infos-access-col:not(:last-child) { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .infos-access { grid-template-columns: repeat(3, 1fr); }
  .infos-access-col:not(:last-child) { border-bottom: none; border-right: 1px solid var(--rule); }
}

/* ResourcePage — press downloads 3-col */
.presse-downloads {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 600px) { .presse-downloads { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .presse-downloads { grid-template-columns: repeat(3, 1fr); } }

/* ResourcePage — contact 2-col */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid > div:nth-child(odd) { border-right: 1px solid var(--rule); }
}

/* ResourcePage apropos — 4-col stats */
.apropos-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 900px) { .apropos-stats { grid-template-columns: repeat(4, 1fr); } }
.apropos-stats > div { padding: var(--sp-3) 0; border-top: 1px solid var(--rule); }

/* ResourcePage apropos — 2-col leadership */
.apropos-leadership {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}
@media (min-width: 760px) { .apropos-leadership { grid-template-columns: repeat(2, 1fr); } }

/* SoutenirPage — tax section */
.soutien-tax-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 900px) { .soutien-tax-wrap { grid-template-columns: 1fr 1.4fr; } }
.soutien-tax-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 479px) { .soutien-tax-grid { grid-template-columns: 1fr; } }

/* SoutenirPage — patronage contact */
.soutien-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: end;
}
@media (min-width: 760px) { .soutien-contact { grid-template-columns: 1fr 1fr; } }

/* CarrieresPage — spontaneous application section */
.carrieres-spontaneous {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 760px) { .carrieres-spontaneous { grid-template-columns: 1.4fr 1fr; } }

/* ============================================
   Agenda — hero meta row (description + view toggle)
   ============================================ */
.agenda-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-3);
  margin-top: 24px;
  flex-wrap: wrap;
}
.agenda-view-toggle { display: flex; gap: 4px; flex-shrink: 0; }

/* Agenda grid card sub-elements */
.agenda-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 6px;
}
.agenda-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: var(--hairline) solid var(--rule);
}
.agenda-card-price { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); }
.agenda-card-cta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.18s, color 0.18s;
}
.agenda-grid-item:hover .agenda-card-cta { opacity: 1; color: var(--fg); }

/* ============================================
   EventDetail — responsive grids
   ============================================ */

/* When / Where / Price / Capacity meta 2×2 */
.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

/* Speakers portrait grid */
.event-speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 900px) { .event-speakers-grid { grid-template-columns: repeat(4, 1fr); } }

/* Program + About 2-col */
.event-program {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: var(--sp-7) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) { .event-program { grid-template-columns: 1fr 1.5fr; } }

/* Related events grid */
.event-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .event-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .event-related-grid { grid-template-columns: repeat(3, 1fr); } }
.event-related-card {
  border-top: 1px solid var(--rule);
  padding: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.event-related-card:hover { background: var(--bg-elev); }
@media (min-width: 600px) {
  .event-related-card:not(:nth-child(2n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .event-related-card:not(:nth-child(2n)) { border-right: none; }
  .event-related-card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}

/* ============================================
   MansA Lab — restructured page sections
   ============================================ */
.lab-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) { .lab-stats-strip { grid-template-columns: repeat(4, 1fr); } }
.lab-stats-strip > div {
  padding: var(--sp-4) var(--sp-3);
  border-right: 1px solid var(--rule);
}
.lab-stats-strip > div:last-child { border-right: none; }
@media (max-width: 759px) {
  .lab-stats-strip > div:nth-child(even) { border-right: none; }
}

.lab-opencall-box {
  background: var(--accent);
  color: #fff;
  padding: var(--sec-y) var(--gutter);
}

.lab-quote {
  padding: var(--sec-y) var(--gutter);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.lab-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.35;
  font-style: italic;
  margin: 0 0 var(--sp-3);
}
.lab-quote cite {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  font-style: normal;
}

/* Création Africa — initiatives grid */
.initiative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: var(--sp-4);
}
@media (min-width: 760px) { .initiative-grid { grid-template-columns: repeat(3, 1fr); } }
.initiative-card {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
}
.initiative-card:hover { background: var(--bg-elev); }
@media (min-width: 760px) {
  .initiative-card { border-bottom: none; }
  .initiative-card:not(:last-child) { border-right: 1px solid var(--rule); }
}
.initiative-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 1px;
  margin-bottom: 14px;
}
.initiative-deadline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: var(--sp-2);
}

/* Agenda — date filter empty message */
.agenda-no-date {
  padding: 10px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  border-top: 1px solid var(--rule);
}
