/* AMSE prototype. Contemporary academic association: dense, editorial, restrained.
   Tokens: white paper, green-grey band, green-black ink, logo teal for action, logo bronze for dates only.
   Type: Markazi Text for titles (Latin + Arabic), Schibsted Grotesk for reading and interface. */
:root {
  --paper: #ffffff;
  --band: #f1f4f3;
  --ink: #1a2422;
  --slate: #4f5b58;
  --line: #d5dcda;
  --teal: #13605c;
  --teal-dark: #0d4744;
  --teal-tint: #e3eeec;
  --bronze: #8c6a28;
  --closed: #6b5d55;
  --serif: "Markazi Text", "Noto Naskh Arabic", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--teal); text-decoration: underline; }
p { margin: 0 0 .6em; }
sup { font-size: .68em; line-height: 0; vertical-align: .45em; }
address { font-style: normal; }
[lang="ar"] { font-family: var(--serif); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* --- buttons and links ------------------------------------------------------ */
.btn { display: inline-flex; align-items: baseline; gap: 8px; background: var(--teal); color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 3px; text-decoration: none; }
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-small { padding: 7px 12px; font-size: 14px; }
.btn-meta { font-weight: 400; font-size: 13px; opacity: .85; }
.link-strong { font-weight: 600; font-size: 15px; }
.doc, .ext { display: inline-flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-weight: 500; }
.doc-meta { color: var(--slate); font-size: 13px; font-weight: 400; }
.btn .doc-meta { color: #fff; opacity: .85; }
.unavailable { color: var(--slate); font-size: 14px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 2px; vertical-align: 1px; font-family: var(--sans); }
.status-closed { background: #ece8e4; color: var(--closed); }
.status-next { background: var(--teal-tint); color: var(--teal-dark); }

/* --- header ------------------------------------------------------------------ */
.proto-note { margin: 0; background: var(--band); color: var(--slate); font-size: 13px; padding-block: 5px; }
/* Anchors land just below the sticky header (its height is kept in --header-h by site.js). */
:target, [id] { scroll-margin-top: 0; }
.crumbs { font-size: 13px; color: var(--slate); padding-block: 10px 0; }
.crumbs a { color: var(--slate); }

/* --- shared blocks ----------------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.section-head h2 { font-size: 28px; }
.section-intro { color: var(--slate); font-size: 15px; max-width: 70ch; }
.kicker { font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.type { font-size: 12.5px; font-weight: 600; color: var(--teal-dark); margin-right: 8px; }
.type-cafeco { color: #6a4c1e; }
.type-debat { color: #3d4f7a; }
.type-annonce { color: var(--closed); }
.type-vie { color: var(--closed); }
.type-prix { color: #7a4a1e; }
.type-publication { color: #4f3d7a; }
.row-who { display: block; color: var(--slate); font-size: 14px; }
.row-note { display: block; color: var(--slate); font-size: 13.5px; font-style: italic; }
.row-link { display: block; font-size: 14px; font-weight: 500; }
.source-note { font-size: 13.5px; color: var(--slate); border-left: 3px solid var(--line); padding-left: 10px; max-width: 75ch; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 4px 0; }
.small { font-size: 14px; }

/* date block: bronze serif numerals, used for every dated activity */
.date-block { display: flex; flex-direction: column; align-items: flex-start; min-width: 74px; }
.date-day { font-family: var(--serif); font-size: 32px; line-height: .9; font-weight: 600; color: var(--bronze); font-variant-numeric: lining-nums tabular-nums; }
.date-my { font-size: 13px; color: var(--slate); margin-top: 3px; white-space: nowrap; }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.event-row:first-child { border-top: 0; }
.row-body { min-width: 0; }
.row-title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--ink); text-decoration: none; margin: 1px 0 2px; }
a.row-title:hover { color: var(--teal); text-decoration: underline; }
.event-list.compact .row-title { font-size: 18px; }
.event-list.compact .date-day { font-size: 24px; }
.event-list.wide .row-body .doc { margin-top: 4px; font-size: 14.5px; }
.event-row[hidden] { display: none; }

/* --- home: feature ----------------------------------------------------------- */
.home-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; padding-block: 24px 32px; }
.feature { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.feature-poster img { border: 1px solid var(--line); }
.feature-title { font-size: 42px; line-height: 1.02; font-weight: 700; }
.feature-sub { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--slate); margin: 6px 0 16px; }
/* Label column as wide as the longest label of the list (« Intervenants », « Modération »…), at most 40 % of the width
   (a longer label wraps); every row shares it (subgrid), so the values stay aligned and never run under a label. */
.facts { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); column-gap: 14px; row-gap: 6px; margin: 0 0 14px; }
.facts > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.facts dt { min-width: 84px; }
.facts dt { color: var(--slate); font-size: 14px; padding-top: 1px; }
.facts dd { margin: 0; font-size: 15.5px; }
.facts-wide dt { min-width: 160px; }
.axes { margin: 4px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.axes summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 0; color: var(--teal-dark); }
.axes ol { margin: 0 0 10px; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 14.5px; }
.axes li { break-inside: avoid; padding: 2px 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }

.feature-aside { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 18px; align-content: start; }
.aside-block + .aside-block { border-top: 1px solid var(--line); padding-top: 16px; }
.aside-head { font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.aside-block p { font-size: 15px; }
.mini-pub { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.mini-pub img { border: 1px solid var(--line); }
.mini-title { font-size: 22px; line-height: 1.08; margin-bottom: 4px; }
.mini-meta { font-size: 14px; color: var(--slate); }
.mini-links { font-size: 14.5px; }

/* --- home: activity + parti pris ------------------------------------------- */
.home-mid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; padding-bottom: 36px; }
.lead-event { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.lead-img img { border: 1px solid var(--line); }
.lead-meta { font-size: 14px; color: var(--slate); }
.lead-meta .type { margin-right: 6px; }
.lead-title { font-size: 30px; line-height: 1.05; margin-bottom: 4px; }
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pp-list li:first-child { border-top: 0; }
.pp-n { font-family: var(--serif); font-size: 20px; color: var(--bronze); font-weight: 600; }
.pp-list a, .pp-list .row-title { font-family: var(--serif); font-size: 19px; line-height: 1.15; display: block; }
.pp-full li { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 0; }
.pp-full .doc { margin-top: 4px; font-size: 14.5px; }

/* --- home: publications band ------------------------------------------------ */
.pubs-band { background: var(--band); padding-block: 26px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pubs-grid { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.cover-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cover-item a, .cat-item a { color: var(--ink); text-decoration: none; display: block; }
.cover-item img, .cat-item img { aspect-ratio: 160 / 226; object-fit: cover; width: 100%; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 1px 0 rgba(26, 36, 34, .08); }
.cover-title { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.1; margin-top: 8px; }
.cover-item a:hover .cover-title, .cat-item a:hover .cover-title { color: var(--teal); text-decoration: underline; }
.cover-meta { display: block; font-size: 13px; color: var(--slate); margin-top: 3px; }
.cover-flag { display: block; font-size: 12.5px; color: var(--bronze); margin-top: 2px; font-weight: 600; }
.rme-panel { background: var(--paper); border-top: 3px solid var(--teal); padding: 16px 18px; }
.rme-panel h3 { font-size: 26px; margin-bottom: 8px; }
.rme-panel p { font-size: 15px; }
.rme-host { color: var(--slate); font-size: 14px !important; }

/* --- home: past congresses + participate ----------------------------------- */
.home-low { padding-block: 32px 40px; display: grid; gap: 36px; }
.congress-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.congress-strip a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; color: var(--ink); text-decoration: none; }
.congress-strip img { border: 1px solid var(--line); }
.c-num { display: block; font-size: 13px; color: var(--bronze); font-weight: 600; }
.c-theme { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.1; margin-top: 2px; }
.congress-strip a:hover .c-theme { color: var(--teal); text-decoration: underline; }
.participate { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.participate h3 { font-size: 24px; margin-bottom: 8px; }
.participate p { font-size: 15px; }
.part-main { background: var(--teal-tint); padding: 18px 20px; }

/* --- footer ------------------------------------------------------------------ */
.site-footer { background: var(--band); border-top: 1px solid var(--line); padding-block: 28px 18px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 28px; }
.footer-name { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 2px; }
.footer-ar { font-size: 20px; color: var(--slate); text-align: left; }
.footer-head { font-weight: 700; font-size: 13.5px; color: var(--teal-dark); margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 2px 0; }
.footer-note { color: var(--slate); font-size: 13px; margin-top: 18px; }

/* --- inner pages -------------------------------------------------------------- */
.page-main { padding-block: 18px 48px; }
.page-main.narrow { max-width: 980px; }
.page-head { margin-bottom: 22px; max-width: 880px; }
.page-head h1 { font-size: 46px; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 17px; color: var(--slate); max-width: 75ch; }
.block { margin-bottom: 28px; }
.block > h2 { font-size: 26px; margin-bottom: 10px; }
.block h3 { font-size: 21px; margin: 16px 0 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.two-col.wide-left { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.rules { background: var(--band); padding: 18px 20px; align-self: start; }
.rules h2 { font-size: 22px; margin-bottom: 10px; }
.rules ol { padding-left: 20px; margin: 0 0 12px; font-size: 14.5px; }
.rules li { padding: 3px 0; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; font-weight: 500; font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filters button { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.year-filter { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.year-filter select { font: inherit; font-weight: 400; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; }
.filter-count { font-size: 13.5px; color: var(--slate); min-height: 1.2em; }

.upcoming-band { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; background: var(--teal-tint); padding: 18px; margin-bottom: 30px; align-items: center; }
.upcoming-band h2 { font-size: 30px; margin-bottom: 6px; }
.upcoming-band img { border: 1px solid var(--line); }
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hub-grid h2 { font-size: 26px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.hub-count { font-size: 13.5px; color: var(--slate); }

.cg-list { list-style: none; margin: 0; padding: 0; }
.cg-row { display: grid; grid-template-columns: 70px 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.cg-num { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: .95; color: var(--bronze); }
.cg-thumb-empty { width: 64px; height: 90px; background: var(--band); border: 1px solid var(--line); display: block; }
.cg-meta { font-size: 14px; color: var(--slate); margin-bottom: 2px; }
.cg-theme { font-family: var(--serif); font-size: 23px; line-height: 1.12; }
.cg-theme a { color: var(--ink); text-decoration: none; }
.cg-theme a:hover { color: var(--teal); text-decoration: underline; }
.cg-row .cg-theme { margin-bottom: 0; }
.cg-date { font-size: 14px; color: var(--slate); margin: 3px 0 0; }
.cg-missing .cg-theme { color: var(--slate); font-size: 19px; }
.cg-missing { grid-template-columns: 70px minmax(0, 1fr); }
.cg-row[hidden] { display: none; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; }
.pub-detail { grid-template-columns: 300px minmax(0, 1fr); }
.detail-title { font-size: 46px; font-weight: 700; line-height: 1.02; }
.detail-sub { font-family: var(--serif); font-size: 25px; line-height: 1.15; color: var(--slate); margin: 6px 0 10px; }
.detail-kind { font-size: 14.5px; font-weight: 600; color: var(--teal-dark); margin-bottom: 14px; }
.detail-figure { margin: 0; }
.detail-figure img { border: 1px solid var(--line); }
.detail-figure figcaption { font-size: 13px; color: var(--slate); margin-top: 6px; }
.axes-list { padding-left: 22px; margin: 0; }
.axes-list li { padding: 3px 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: 5px 0; border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.prev-next { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 500; }
.prev-next-3 { display: grid; grid-template-columns: 1fr auto 1fr; }
.prev-next-3 > :last-child { justify-self: end; }
.pp-list.pp-nonum li { grid-template-columns: minmax(0, 1fr); }
.toc { padding-left: 0; list-style: none; margin: 0; counter-reset: q; }
.toc li { padding: 7px 0; border-top: 1px solid var(--line); }
.toc-title { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.15; }

.cat-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 20px; }
.listed-only { background: var(--band); padding: 14px 18px; max-width: 820px; }
.listed-only h3 { margin-top: 0; }
.listed-only p { font-size: 14.5px; color: var(--slate); }
.series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.series { display: block; border-top: 3px solid var(--teal); padding: 12px 2px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.series-name { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 4px; }
.series:hover .series-name { color: var(--teal); text-decoration: underline; }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.ref-list .doc { margin-top: 4px; font-size: 14.5px; }

.prize-list { list-style: none; margin: 0; padding: 0; }
.prize-ed { padding: 14px 0; border-top: 1px solid var(--line); }
.prize-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.prize-head h3 { font-size: 24px; margin: 0; }
.laureate { margin: 0; font-size: 16px; }
.prize-book { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; margin: 8px 0; color: var(--ink); text-decoration: none; font-size: 15px; max-width: 520px; }
.prize-book img { border: 1px solid var(--line); }
.prize-ph { display: flex; align-items: center; justify-content: center; width: 64px; aspect-ratio: 160 / 226; background: var(--band); border: 1px solid var(--line); color: var(--slate); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.prize-book:hover span { color: var(--teal); text-decoration: underline; }
.prize-ed details summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--teal-dark); padding: 4px 0; }
.prize-ed h4 { font-family: var(--sans); font-size: 13.5px; margin: 8px 0 2px; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.people-list li { padding: 5px 0; border-top: 1px solid var(--line); }
.people-list .row-title { font-size: 19px; }
.name-cols { columns: 3; column-gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.name-cols li { padding: 2px 0; break-inside: avoid; }

.search-page { max-width: 720px; margin-bottom: 10px; }
.search-page label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; font: inherit; font-size: 17px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; }
.search-hits { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.search-hits li { padding: 10px 0; border-top: 1px solid var(--line); }
.search-hits .row-title { font-size: 20px; }
.search-hits mark { background: #f3e7c6; color: inherit; }

/* --- responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .home-top, .home-mid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .aside-block + .aside-block { border-top: 0; padding-top: 0; }
  .pubs-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-grid, .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .congress-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; }
  .feature-poster { order: 2; }
  .feature-text { order: 1; }
  .feature-title { font-size: 34px; }
  .feature-sub { font-size: 20px; }
  .axes ol { columns: 1; }
  .feature-aside { grid-template-columns: minmax(0, 1fr); }
  .aside-block + .aside-block { border-top: 1px solid var(--line); padding-top: 14px; }
  .lead-event { grid-template-columns: 180px minmax(0, 1fr); }
  .lead-title { font-size: 25px; }
  .participate, .two-col, .two-col.wide-left, .detail, .pub-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-figure { max-width: 320px; }
  .pub-detail .pub-figure { max-width: 220px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-cols { columns: 2; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .home-top { padding-top: 16px; }
  .feature { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .feature-title { font-size: 29px; }
  .feature-sub { font-size: 18px; margin-bottom: 12px; }
  .facts { column-gap: 10px; }
  .facts dt { min-width: 0; }
  .facts-wide { grid-template-columns: minmax(0, 1fr); }
  .facts-wide > div { grid-template-columns: minmax(0, 1fr); }
  .lead-event { grid-template-columns: minmax(0, 1fr); }
  .lead-img { max-width: 320px; }
  .cover-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .congress-strip { grid-template-columns: minmax(0, 1fr); }
  .hub-grid, .series-grid, .footer-grid, .people-list { grid-template-columns: minmax(0, 1fr); }
  .cg-row { grid-template-columns: 52px 48px minmax(0, 1fr); gap: 12px; }
  .cg-row img, .cg-thumb-empty { width: 48px; height: auto; }
  .cg-num { font-size: 26px; }
  .cg-theme { font-size: 20px; }
  .upcoming-band { grid-template-columns: 90px minmax(0, 1fr); }
  .upcoming-band h2 { font-size: 23px; }
  .page-head h1, .detail-title { font-size: 34px; }
  .section-head { flex-direction: column; gap: 2px; }
  .name-cols { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* --- WordPress additions ------------------------------------------------------ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.status-open { background: #e2f0e4; color: #24572d; }
.cover-missing { display: block; aspect-ratio: 160 / 226; background: var(--band); border: 1px solid var(--line); }
.page-article { max-width: 900px; }
.entry-content { font-size: 16.5px; max-width: 75ch; }
.entry-content > * + * { margin-top: .8em; }
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }
.entry-content h3 { font-size: 21px; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { padding: 2px 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry-content th, .entry-content td { border-top: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.entry-content img { border: 1px solid var(--line); }
.entry-content .wp-block-columns { gap: 32px; }
.lead p { margin: 0 0 .5em; }
.nav-links { display: flex; gap: 12px; margin-top: 18px; font-weight: 500; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { margin-inline: auto; }

/* === Header (v1.1) ============================================================
   Top of page: logo + tools on one row, menu on a second row.
   After scrolling (.is-compact): logo, menu and search on a single row. */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(26, 36, 34, .08); }
.header-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand . tools" "nav nav nav"; align-items: center; column-gap: 24px; padding-top: 12px; }
.brand { grid-area: brand; display: block; }
.brand img { width: 320px; height: auto; transition: width .2s; }
.header-tools { grid-area: tools; display: flex; align-items: center; gap: 10px; }
.header-search { display: flex; gap: 8px; }  /* gap: the focus ring of the field no longer covers the button */
.header-search input { width: 220px; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; transition: width .2s; }
.header-search input:focus-visible { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
.header-search button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); background: var(--band); color: var(--ink); border-radius: 3px; cursor: pointer; }
.menu-toggle { display: none; font: inherit; font-weight: 600; font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; cursor: pointer; }
.main-nav { grid-area: nav; margin-top: 10px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-list > li > a { padding: 9px 0 10px; border-bottom: 3px solid transparent; }
.nav-list a:hover { color: var(--teal); }
.nav-list > li.current-menu-item > a, .nav-list > li.current-menu-ancestor > a, .nav-list > li.current-menu-parent > a,
.nav-list > li > a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-dark); }
.nav-mobile-only { display: none !important; }
.sub-toggle { border: 0; background: none; padding: 4px 2px 4px 4px; margin-left: 2px; cursor: pointer; color: var(--slate); line-height: 1; }
.sub-toggle svg { display: block; transition: transform .15s; }
.nav-list li.open > .sub-toggle svg { transform: rotate(180deg); }
.nav-list .sub-menu { list-style: none; margin: 0; padding: 6px 0; display: none; position: absolute; top: 100%; left: -14px; min-width: 260px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(26, 36, 34, .12); z-index: 60; }
/* Sub-menus open on a click on the parent item (site.js), on computers and phones alike; the third level (Organes) is
   always shown, indented, inside its sub-menu. */
.nav-list li.open > .sub-menu { display: block; }
.nav-list .sub-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 4px 14px; border: 0; box-shadow: none; background: transparent; }
.nav-list .sub-menu a { padding: 8px 16px; font-size: 14.5px; font-weight: 400; }
.nav-list .sub-menu a:hover, .nav-list .sub-menu .current-menu-item > a { background: var(--band); color: var(--teal-dark); }

@media (min-width: 861px) {
  .site-header.is-compact .header-bar { grid-template-areas: "brand nav tools"; padding-block: 6px; }
  .site-header.is-compact .brand img { width: 150px; }
  .site-header.is-compact .main-nav { margin-top: 0; }
  .site-header.is-compact .nav-list { flex-wrap: nowrap; gap: 0 18px; justify-content: center; }
  .site-header.is-compact .nav-list > li > a { font-size: 14px; padding: 8px 0; white-space: nowrap; }
  .site-header.is-compact .header-search input { display: none; }
  .site-header.is-compact .header-search button { border-radius: 3px; }
  .site-header.is-compact .btn-label, .site-header.is-compact .btn-join { display: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .site-header.is-compact .nav-list { gap: 0 12px; }
  .site-header.is-compact .nav-list > li > a { font-size: 13.5px; }
  .site-header.is-compact .brand img { width: 120px; }
}
@media (max-width: 1100px) { .header-search input { width: 160px; } }
@media (max-width: 860px) {
  .header-bar { grid-template-areas: "brand tools" "nav nav"; grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; }
  .brand img { width: 220px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .header-search, .btn-label { display: none; }
  .main-nav { display: none; margin-top: 10px; border-top: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .nav-mobile-only { display: flex !important; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 12px 0; border-bottom: 0; }
  .nav-list > li.current-menu-item > a, .nav-list > li.current-menu-ancestor > a { border-left: 3px solid var(--teal); padding-left: 10px; }
  .sub-toggle { padding: 12px 6px; }
  .nav-list .sub-menu { position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); min-width: 0; width: 100%; padding: 4px 0 8px 14px; background: var(--band); }
  .nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: none; }
  .nav-list li.open > .sub-menu { display: block; }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 560px) { .brand img { width: 180px; } .btn-join { display: none; } }

/* === Video (privacy-friendly YouTube facade) =================================== */
.video-facade { max-width: 720px; }
.video-play { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-play:hover img { opacity: 1; }
.video-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(19, 96, 92, .92); }
.video-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-facade iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-note { font-size: 13px; color: var(--slate); margin-top: 6px; }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.video-grid h2 { font-size: 22px; margin: 10px 0 4px; }
.video-grid .row-who { margin-bottom: 4px; }

/* === Social links ============================================================== */
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); color: var(--teal-dark); }
.social a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* === Long texts converted from PDF ============================================ */
.doc-text h3 { font-size: 21px; margin-top: 1.3em; }
.doc-text h4 { font-family: var(--sans); font-size: 15.5px; margin-top: 1em; }
.doc-source { font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 20px; }

/* Publications without a cover (notes, reviews): one column, comfortable reading width. */
.pub-detail.no-figure { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* === Reading layout (Parti pris, Revue des livres, long pages) ================= */
html { scroll-padding-top: calc(var(--header-h, 96px) + 16px); }
.reading-head { padding-block: 22px 26px; border-bottom: 1px solid var(--line); max-width: var(--wrap); }
.reading-head .detail-title { max-width: 24ch; font-size: 48px; margin-bottom: 14px; }
.reading-by { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; margin: 0 0 6px; }
.reading-author { font-weight: 600; }
.reading-date { color: var(--bronze); font-weight: 600; }
.reading-ref { color: var(--slate); font-size: 15px; max-width: 70ch; margin: 0 0 6px; }
.reading-head .actions { margin: 12px 0 0; }
.reading-disclaimer { font-size: 13.5px; color: var(--slate); margin: 12px 0 0; max-width: 70ch; }
.reading-grid { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 56px; padding-block: 32px 24px; align-items: start; }
.reading-grid.no-toc { grid-template-columns: minmax(0, 720px); }
.reading-body { font-size: 17.5px; line-height: 1.65; max-width: none; }
.reading-body > * + * { margin-top: .9em; }
.reading-body p { margin: 0; }
.reading-body h2 { font-size: 29px; margin-top: 1.6em; padding-top: .2em; }
.reading-body h3 { font-size: 22.5px; margin-top: 1.4em; }
.reading-body h2 + h3 { margin-top: .6em; }
.reading-foot { padding-block: 8px 48px; }
.reading-foot p { max-width: 720px; margin-left: calc(260px + 56px); border-top: 1px solid var(--line); padding-top: 16px; }
.reading-grid.no-toc + .reading-foot p { margin-left: 0; }

.reading-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.toc-box summary { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); cursor: pointer; padding: 4px 0 10px; list-style: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc-box li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.3; }
.toc-box li.sub a { padding-left: 28px; font-size: 13.5px; color: var(--slate); }
.toc-box li a:hover { color: var(--teal); }
.toc-box li a.is-current { border-left-color: var(--teal); color: var(--teal); font-weight: 600; }

.doc-figure { margin: 1.6em 0; }
.doc-figure a { display: block; }
.doc-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.doc-figure figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.doc-box { background: var(--band); border-left: 3px solid var(--teal); padding: 18px 22px; font-size: 16px; line-height: 1.55; }
.doc-box > * + * { margin-top: .6em; }
.doc-box-title { font-weight: 600; font-size: 16.5px; }
.doc-small { font-size: 14px; color: var(--slate); line-height: 1.45; }
.reading-body .doc-notes-title { font-size: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.doc-notes { font-size: 14.5px; line-height: 1.5; color: var(--slate); padding-left: 1.4em; }
.doc-notes li + li { margin-top: 6px; }

@media (max-width: 1000px) {
  .reading-grid, .reading-grid.no-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .reading-toc { position: static; max-height: none; }
  .toc-box { border: 1px solid var(--line); background: var(--band); padding: 10px 14px; }
  .toc-box summary { padding: 4px 0; display: flex; justify-content: space-between; }
  .toc-box summary::after { content: "+"; font-size: 18px; line-height: 1; }
  .toc-box[open] summary::after { content: "–"; }
  .toc-box[open] summary { padding-bottom: 10px; }
  .reading-foot p { margin-left: 0; }
}
@media (max-width: 700px) {
  .reading-head .detail-title { font-size: 34px; }
  .reading-body { font-size: 17px; }
  .reading-body h2 { font-size: 25px; }
  .reading-body h3 { font-size: 20.5px; }
  .doc-box { padding: 14px 16px; }
}

/* === People: instance cards and personal pages ================================= */
.people-grid { list-style: none; margin: 20px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 140px); gap: 26px 22px; }
.people-grid.is-compact { grid-template-columns: repeat(auto-fill, 112px); gap: 20px 16px; }
.person-card { margin: 0; padding: 0; }
.person-photo { display: block; aspect-ratio: 4 / 5; background: var(--teal-tint); overflow: hidden; text-decoration: none; }
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.person-initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--teal); letter-spacing: .02em; }
.is-compact .person-initials { font-size: 28px; }
.person-name { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.25; margin: 9px 0 2px; }
.is-compact .person-name { font-size: 14px; }
.person-name a { color: var(--ink); text-decoration: none; }
.person-name a:hover { color: var(--teal); text-decoration: underline; }
.person-card .person-role { font-size: 14px; color: var(--teal); font-weight: 600; margin: 0; }
.person-card .person-inst { font-size: 13.5px; color: var(--slate); margin: 2px 0 0; line-height: 1.35; }
.entry-content .people-grid { max-width: none; padding-left: 0; }
.entry-content .people-grid > * + * { margin-top: 0; }

.person-page { max-width: 900px; }
.person-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.person-photo.is-large .person-initials { font-size: 64px; }
.person-functions { list-style: none; margin: 12px 0 0; padding: 0; font-size: 17px; }
.person-functions li { padding: 2px 0; }
.person-head .person-inst { color: var(--slate); margin: 6px 0 0; }
.person-pubs li { padding: 8px 0; border-top: 1px solid var(--line); }
.pub-kicker { display: block; font-size: 13px; font-weight: 600; color: var(--teal); }
@media (max-width: 600px) {
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .people-grid.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person-initials { font-size: 28px; }
  .person-head { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .person-photo.is-large .person-initials { font-size: 42px; }
}
/* specificity over .entry-content headings and .reading-body paragraphs */
.entry-content .person-name { font-family: var(--sans); font-size: 15px; margin: 9px 0 2px; overflow-wrap: anywhere; }
.entry-content .is-compact .person-name { font-size: 14px; }
.reading-body .doc-box > * + * { margin-top: .6em; }
@media (max-width: 600px) { .entry-content .person-name { font-size: 14px; } }

/* === v1.3 adjustments ========================================================= */
.reading-head .detail-title { max-width: 34ch; }
/* Arabic titles in French lists: right-to-left text, aligned with the other titles on the left */
.row-title[dir="rtl"], .pp-list [dir="rtl"], .ref-list [dir="rtl"] { text-align: left; unicode-bidi: plaintext; }
.pp-list a.doc, .ref-list a.doc { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--sans); font-size: 14.5px; line-height: 1.4; margin-top: 4px; }
/* card pages use the full width; their text keeps a reading measure */
.page-article:has(.people-grid), .entry-content:has(.people-grid) { max-width: none; }
.entry-content:has(.people-grid) > :not(.people-grid) { max-width: 75ch; }
.people-grid, .entry-content .people-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 22px; }
.people-grid.is-compact, .entry-content .people-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
@media (max-width: 600px) {
  .people-grid, .entry-content .people-grid, .people-grid.is-compact, .entry-content .people-grid.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
}
/* personal page: name, function and institution at the top, then the short biography */
.person-head { align-items: start; grid-template-columns: 180px minmax(0, 1fr); }
.person-head .detail-title { margin-top: 0; }
.person-meta { margin: 10px 0 0; font-size: 17px; }
.person-meta .person-inst { display: block; color: var(--slate); font-size: 16px; margin-top: 2px; }
.person-bio { margin-top: 18px; font-size: 16.5px; line-height: 1.6; max-width: 68ch; }
.person-bio > * + * { margin-top: .7em; }
.person-bio h2 { font-size: 21px; margin-top: 1.1em; }
.person-bio ul { padding-left: 1.2em; margin: .4em 0 0; }
.person-bio li + li { margin-top: 4px; }
@media (max-width: 600px) { .person-head { grid-template-columns: 96px minmax(0, 1fr); } .person-bio { grid-column: 1 / -1; } }
.collection-intro { max-width: 75ch; font-size: 16.5px; line-height: 1.6; margin-top: 10px; }
.collection-intro > * + * { margin-top: .7em; }
.collection-intro p:first-child { font-size: 18px; }
.collection-intro h2 { font-size: 22px; margin-top: 1.1em; }
.collection-intro ul, .collection-intro ol { padding-left: 1.3em; }
.collection-intro li + li { margin-top: 4px; }
/* Photothèque */
.album-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.album-card { display: block; color: var(--ink); text-decoration: none; }
.album-card img, .album-empty { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--band); }
.album-date { display: block; color: var(--bronze); font-weight: 600; font-size: 13.5px; margin-top: 10px; }
.album-title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.15; margin-top: 2px; }
.album-card:hover .album-title { color: var(--teal); text-decoration: underline; }
.album-count { display: block; color: var(--slate); font-size: 13.5px; margin-top: 2px; }
.poster-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
.poster-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.poster-cap { margin: 8px 0 0; font-size: 14.5px; }
.poster-cap a { font-weight: 600; }
.poster-cap span { display: block; color: var(--slate); font-size: 13px; }
/* Annuaire */
.directory-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 8px 0 22px; }
.directory-search { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.directory-search input { width: min(360px, 100%); padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-weight: 400; font-size: 15px; }
.directory-count { margin: 0; color: var(--slate); font-size: 14px; }
.directory .person-card[hidden] { display: none; }
@media (max-width: 600px) { .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .person-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .person-head .person-photo.is-large { width: 120px; }
}

/* === People v1.4: spacious cards (comité directeur) and portrait rows (conseil, annuaire) === */
.people-grid.is-cards, .entry-content .people-grid.is-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 28px; margin: 28px 0 16px; }
.person-card.is-card { display: flex; flex-direction: column; }
.is-card .person-photo { aspect-ratio: 3 / 2; background: #e4e9e8; }
.is-card .person-photo img { object-position: center 22%; }
.is-card .person-initials { font-size: 44px; }
.is-card .person-body { flex: 1; background: var(--band); padding: 22px 24px 26px; }
.entry-content .is-card .person-name, .is-card .person-name { font-size: 17px; margin: 0 0 8px; }
.is-card .person-role { color: var(--ink); font-weight: 400; font-size: 15.5px; margin: 0; }
.is-card .person-inst { color: var(--slate); font-size: 14.5px; margin: 2px 0 0; }

.people-grid.is-rows, .entry-content .people-grid.is-rows { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 44px; margin: 20px 0 16px; }
.person-card.is-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 0; border-top: 3px solid var(--band); }
.is-row .person-photo { width: 92px; height: 115px; aspect-ratio: auto; border-radius: 2px; }
.is-row .person-photo img { object-position: center 20%; }
.is-row .person-initials { font-size: 28px; }
.entry-content .is-row .person-name, .is-row .person-name { font-size: 17px; margin: 0 0 4px; }
.is-row .person-name a { color: var(--teal); }
.is-row .person-role { color: var(--slate); font-weight: 400; font-size: 15px; margin: 0; line-height: 1.4; }
.is-row .person-inst { font-size: 14px; }
@media (max-width: 600px) {
  .people-grid.is-cards, .entry-content .people-grid.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .is-card .person-body { padding: 14px 14px 18px; }
  .is-card .person-initials { font-size: 32px; }
  .people-grid.is-rows, .entry-content .people-grid.is-rows { grid-template-columns: minmax(0, 1fr); }
  .person-card.is-row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .is-row .person-photo { width: 72px; height: 72px; }
  .is-row .person-initials { font-size: 22px; }
}

/* mandates on a personal page */
.mandate-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.mandate-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.mandate-years { color: var(--bronze); font-weight: 600; }

/* directory search and pages */
.directory-tools { display: grid; gap: 8px; margin: 4px 0 8px; max-width: 720px; }
.directory-tools .search-row input { font-size: 16px; }
.directory-count { margin: 4px 0 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 28px 0 8px; font-size: 15px; }
.pager ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pager li a, .pager li span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; }
.pager li span[aria-current] { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.pager-step { font-weight: 600; }

/* === Photo albums ============================================================== */
.album-meta { color: var(--slate); font-size: 14.5px; }
.album-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 1.2em; max-width: none; }
.entry-content:has(.album-photos), .page-article:has(.album-photos) { max-width: none; }
.entry-content:has(.album-photos) > :not(.album-photos) { max-width: 75ch; }
.album-photo { margin: 0; }
.album-photo img, .entry-content .album-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 0; }
.event-photos { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.event-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.album-grid { gap: 34px 28px; }
.album-card img, .album-empty { border-radius: 2px; }
@media (max-width: 600px) { .event-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.directory-tools .search-row { width: 100%; max-width: 560px; }
.directory-tools .search-row input { min-width: 0; }

/* Photo viewer (site.js): full-screen image with previous / next / close. */
.lb-open, .lb-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 18, 17, .94); display: flex; align-items: center; justify-content: center; padding: 56px 72px 40px; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; background: #222; }
.lb-cap { color: #e8eeec; font-size: 14.5px; text-align: center; max-width: 70ch; }
.lb-count { position: absolute; top: 14px; left: 20px; margin: 0; color: #cfd8d6; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font: 400 34px/1 var(--sans); width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 8px; right: 12px; font-size: 30px; width: 44px; height: 44px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.album-photo a, .event-photos a, .poster-list a { cursor: zoom-in; }
@media (max-width: 600px) {
  .lightbox { padding: 52px 8px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-img { max-height: calc(100vh - 170px); }
}

/* Flyers, programmes and call documents published by the association (opened in the photo viewer). */
.poster-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 14px 0 24px; max-width: none; }
.entry-content .poster-list { max-width: none; }
.poster { margin: 0; }
.poster a { display: block; border: 1px solid var(--line); background: #fff; }
.poster a:hover { border-color: var(--teal); }
.poster img, .entry-content .poster img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 0; }
.detail-figure a { display: block; cursor: zoom-in; }
.programme { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.programme th, .programme td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.programme th { width: 9.5em; font-weight: 600; color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-content h3 + .programme { margin-top: 2px; }
.programme-note { color: var(--slate); font-size: 14.5px; }
@media (max-width: 600px) {
  .poster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .programme th { width: auto; white-space: normal; display: block; padding-bottom: 0; border-bottom: 0; }
  .programme td { display: block; padding-top: 2px; }
}

/* Links to PDF and other documents (amse_doc_link): the same button everywhere. */
a.doc { background: var(--teal); color: #fff; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 3px; text-decoration: none; gap: 0 8px; line-height: 1.3; }
a.doc:hover { background: var(--teal-dark); color: #fff; }
a.doc .doc-meta { color: #fff; opacity: .85; }
.event-list .doc, .event-list.wide .row-body .doc, .pp-full .doc, .ref-list .doc, .mini-links .doc, .prize-list .doc { padding: 7px 12px; font-size: 14px; }
.doc-list { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-list li, .doc-list li:first-child { padding: 0; border-top: 0; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 8px; }
.list-tools .filter-count { margin: 0; }
.pager-gap { display: inline-grid; place-items: center; min-width: 20px; height: 38px; color: var(--slate); }
.programme.calendar th { width: 22em; white-space: normal; color: var(--ink); font-weight: 500; }
.programme.calendar td { font-weight: 600; white-space: nowrap; }

/* Abstracts in a congress programme: the title of the paper opens and closes its abstract in place. */
.programme details.abstract > summary { cursor: pointer; list-style: none; }
.programme details.abstract > summary::-webkit-details-marker { display: none; }
.programme details.abstract > summary::before { content: "+"; display: inline-block; width: 1.1em; margin-left: -1.1em; color: var(--teal); font-weight: 700; }
.programme details.abstract[open] > summary::before { content: "–"; }
.programme details.abstract > summary:hover { color: var(--teal-dark); }
.programme td:has(> details.abstract) { padding-left: 1.1em; }
.abstract-hint { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--teal); border-radius: 2px; color: var(--teal); font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
details.abstract[open] .abstract-hint { background: var(--teal); color: #fff; }
.abstract-body { margin: 8px 0 4px; padding: 10px 14px; background: var(--band); border-left: 3px solid var(--teal); font-size: 14.5px; line-height: 1.55; }
.abstract-body p { margin: 0 0 8px; }
.abstract-body p:last-child { margin-bottom: 0; }
.abstract-body .abstract-kw { color: var(--slate); font-size: 13.5px; }
.programme-hint { color: var(--slate); font-size: 14.5px; }
.abstract-body p[lang="ar"] { font-size: 16.5px; line-height: 1.8; text-align: right; }

/* --- baromètre ----------------------------------------------------------------
   Series colours: first three slots of the validated reference palette (fixed order). */
.bx-page { --bx-1: #2a78d6; --bx-2: #eb6834; --bx-3: #1baf7a; --bx-grid: #e1e0d9; --bx-axis: #c3c2b7; --bx-muted: #6f6d67; }
.bx-updated { color: var(--slate); font-size: 14px; margin: 0 0 10px; }
.bx-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 500; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.bx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bx-tiles li { background: var(--band); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bx-tile-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.bx-tile-value { font-size: 28px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.bx-tile-when, .bx-tile-more { font-size: 13px; color: var(--slate); }
/* Code d’éthique: list of signatories in columns */
.sig-list { columns: 2 320px; column-gap: 32px; padding-left: 1.1em; }
.sig-list li { break-inside: avoid; margin-bottom: 4px; }
.home-baro { padding-bottom: 36px; }
.bx-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bx-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bx-tiles-4 { grid-template-columns: minmax(0, 1fr); } }
.bx-home-note { font-size: 14px; color: var(--slate); margin-top: 10px; max-width: 80ch; }
.bx-section h2 { margin-bottom: 8px; }
.bx-reading { max-width: 75ch; color: var(--ink); margin: 0 0 14px; }
.bx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px 28px; }
.bx-chart { margin: 0; min-width: 0; }
.bx-chart figcaption { display: flex; flex-direction: column; margin-bottom: 4px; }
.bx-title { font-weight: 600; font-size: 16px; }
.bx-unit { font-size: 13px; color: var(--slate); }
.bx-legend { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--slate); }
.bx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bx-key { display: inline-block; width: 16px; height: 0; border-top: 2px solid currentColor; flex: none; }
.bx-k1 { color: var(--bx-1); } .bx-k2 { color: var(--bx-2); } .bx-k3 { color: var(--bx-3); }
.bx-plot { position: relative; }
.bx-plot svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); touch-action: pan-y; }
.bx-plot svg:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.bx-plot .bx-gline { stroke: var(--bx-grid); stroke-width: 1; }
.bx-plot .bx-zero { stroke: var(--bx-axis); stroke-width: 1; }
.bx-plot .bx-tick { fill: var(--bx-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bx-plot .bx-end { fill: var(--ink); font-size: 12px; font-weight: 600; }
.bx-plot .bx-proj { fill: var(--band); }
.bx-plot .bx-proj-label { fill: var(--bx-muted); font-size: 11px; }
.bx-plot .bx-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bx-plot .bx-dash { stroke-dasharray: 5 4; }
.bx-plot .bx-s1 { stroke: var(--bx-1); } .bx-plot .bx-s2 { stroke: var(--bx-2); } .bx-plot .bx-s3 { stroke: var(--bx-3); }
.bx-plot .bx-dot { stroke: var(--paper); stroke-width: 2; }
.bx-plot .bx-f1 { fill: var(--bx-1); } .bx-plot .bx-f2 { fill: var(--bx-2); } .bx-plot .bx-f3 { fill: var(--bx-3); }
.bx-plot .bx-cross { stroke: var(--bx-axis); stroke-width: 1; pointer-events: none; }
.bx-tip { position: absolute; z-index: 2; background: var(--paper); border: 1px solid rgba(11, 11, 11, .12); border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); padding: 6px 9px; font-size: 13px; pointer-events: none; white-space: nowrap; }
.bx-tip-x { color: var(--slate); margin-bottom: 2px; }
.bx-tip-row { display: flex; align-items: center; gap: 6px; }
.bx-tip-row strong { font-variant-numeric: tabular-nums; }
.bx-tip-row span:last-child { color: var(--slate); }
.bx-source { font-size: 12.5px; color: var(--slate); margin: 4px 0 0; }
.bx-data { margin-top: 4px; font-size: 13.5px; }
.bx-data summary { cursor: pointer; color: var(--teal); }
.bx-table-wrap { overflow-x: auto; max-height: 320px; overflow-y: auto; }
.bx-table { border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; width: 100%; }
.bx-table th, .bx-table td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.bx-table th:first-child { text-align: left; }
.bx-table thead th { position: sticky; top: 0; background: var(--paper); font-weight: 600; }
.bx-compare { font-size: 14px; }
.bx-compare .bx-us th, .bx-compare .bx-us td { font-weight: 700; background: var(--teal-tint); }
.bx-compare .bx-group th { font-style: italic; color: var(--slate); }
/* Comparisons: names on one line in their column. Once the table scrolls sideways, a frozen label as
   wide as « Jordanie » keeps the start of each name in view (« Moyen-Orient… »). */
.bx-compare th[scope="row"], .bx-compare thead th:nth-child(2) { text-align: left; }
.bx-compare .bx-pin { position: sticky; left: 0; z-index: 2; width: 0; min-width: 0; max-width: 0; padding: 0; border: 0; }
.bx-compare thead .bx-pin { z-index: 4; }
.bx-compare .bx-pin > span { display: none; position: absolute; top: 0; bottom: 0; left: 0; width: 77px; align-items: center; padding: 0 6px 0 8px; background: var(--paper); box-shadow: 1px 0 0 var(--line), inset 0 -1px 0 var(--line); text-align: left; }
.bx-compare .bx-pin > span > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-compare-wrap.bx-scrolled .bx-pin > span { display: flex; }
.bx-compare thead .bx-pin > span { font-weight: 600; }
.bx-compare .bx-us .bx-pin > span { background: var(--teal-tint); font-weight: 700; }
.bx-compare .bx-group .bx-pin > span { font-style: italic; color: var(--slate); }
.bx-bars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.bx-bars li { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.bx-bar-track { display: flex; align-items: center; gap: 6px; }
.bx-bar { display: block; height: 18px; background: var(--bx-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.bx-bar-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-method ul { max-width: 80ch; padding-left: 18px; }
.bx-method li { margin-bottom: 6px; }
@media (max-width: 600px) { .bx-bars li { grid-template-columns: 1fr; gap: 2px; } .bx-tile-value { font-size: 24px; } }

/* === Menu: group title inside a sub-menu (« Organes ») ======================== */
.nav-list .sub-menu .sub-menu { display: block !important; position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 4px; background: transparent; }
.nav-list .sub-menu .sub-menu a { padding-left: 30px; }
.nav-group-label { display: block; padding: 8px 16px 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
@media (max-width: 860px) { .nav-list .sub-menu .sub-menu a { padding-left: 16px; } }

/* === L'Association: reference texts ============================================ */
.ref-texts { list-style: none; padding: 0; display: grid; gap: 10px; }
.ref-texts li { border-left: 3px solid var(--teal); background: var(--band); padding: 12px 16px; }
.ref-texts li a { font-weight: 600; }

/* === Annuaire des économistes ================================================== */
.eco-cta { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 14px; }
.eco-list { list-style: none; margin: 18px 0; padding: 0; }
.eco-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.eco-row .person-photo { width: 64px; height: 80px; aspect-ratio: auto; border-radius: 2px; }
.eco-name { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 3px; }
.eco-name a { color: var(--ink); text-decoration: none; }
.eco-name a:hover { color: var(--teal); text-decoration: underline; }
.eco-year { display: inline-block; font-size: 12px; font-weight: 600; color: var(--bronze); border: 1px solid currentColor; border-radius: 2px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; }
.eco-role, .eco-spec, .eco-contact { margin: 2px 0; font-size: 14.5px; color: var(--slate); }
.eco-c-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--slate); margin-right: 4px; }
.eco-masked { letter-spacing: .12em; color: var(--slate); user-select: none; }
.eco-ask { font-weight: 600; }
.eco-fiche h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 22px 0 6px; }
.eco-old { background: var(--band); border-left: 3px solid var(--bronze); padding: 10px 14px; font-size: 14.5px; max-width: 80ch; }
.eco-dl { margin: 12px 0 0; display: grid; gap: 6px; max-width: 900px; }
.eco-dl div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 6px 0; border-top: 1px solid var(--line); }
.eco-dl dt { font-size: 13.5px; font-weight: 600; color: var(--slate); }
.eco-dl dd { margin: 0; }
.eco-items { max-width: 80ch; padding-left: 1.1em; }
.eco-items li { margin-bottom: 4px; }
.eco-contact-list { list-style: none; padding: 0; margin: 0 0 6px; }
.eco-contact-list li { padding: 3px 0; }
.eco-update { margin-top: 22px; font-size: 14.5px; }
@media (max-width: 600px) { .eco-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* === Forms (annuaire, demandes de coordonnées) ================================= */
.amse-form { max-width: 720px; margin-top: 18px; }
.amse-form-short { max-width: 520px; }
.amse-form fieldset { border: 0; border-top: 3px solid var(--band); margin: 0 0 18px; padding: 14px 0 0; }
.amse-form legend { font-family: var(--serif); font-size: 22px; font-weight: 600; padding: 0 10px 0 0; }
.form-row { display: grid; gap: 4px; margin: 0 0 14px; }
.form-row label { font-weight: 600; font-size: 15px; }
.amse-form input[type="text"], .amse-form input[type="email"], .amse-form input[type="tel"], .amse-form input[type="url"], .amse-form select, .amse-form textarea {
  font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); width: 100%; box-sizing: border-box; }
.amse-form input:focus, .amse-form select:focus, .amse-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form-help { display: block; font-size: 13.5px; color: var(--slate); }
.form-check { margin: 0 0 14px; }
.form-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.form-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.form-check .form-help { padding-left: 28px; }
.form-check.consent { background: var(--band); padding: 12px 14px; }
.req { color: #9b2c2c; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-context { background: var(--band); padding: 10px 14px; border-left: 3px solid var(--teal); }
.form-msg { padding: 12px 16px; margin: 14px 0; border-left: 4px solid; }
.form-msg p { margin: 0; }
.form-msg.is-ok { border-color: var(--teal); background: #e6f1ef; }
.form-msg.is-error { border-color: #9b2c2c; background: #f8e9e9; }

/* Directory filter (links that look like the filter buttons), working-paper keywords, text after a collection list */
.filters .filter-link { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; color: var(--ink); text-decoration: none; }
.filters .filter-link:hover { border-color: var(--teal); color: var(--teal); }
.filters .filter-link[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.directory-tools .filters { margin-bottom: 16px; }
.wp-keys { font-size: 15px; color: var(--slate); }
.collection-after { max-width: 860px; margin-top: 36px; padding-top: 8px; border-top: 3px solid var(--band); }
.form-choice .form-check { margin-bottom: 8px; }

/* Publication page: authors under the title, contents with parts and links, citation */
.pub-authors { font-size: 18px; line-height: 1.4; margin: 14px 0 22px; color: var(--ink); }
.pub-detail .detail-sub { margin-bottom: 4px; }
.toc li.toc-part { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-dark); padding-top: 16px; border-top: 0; }
.toc-chapters li { display: grid; gap: 3px; padding: 10px 0; }
.toc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--bronze); }
.toc-chapters a.toc-title { color: var(--ink); text-decoration: none; }
.toc-chapters a.toc-title:hover { color: var(--teal); text-decoration: underline; }
.cite-block .cite-text { background: var(--band); border-left: 3px solid var(--teal); padding: 12px 16px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.cite-note { font-size: 13.5px; color: var(--slate); }
.cite-copy { font: inherit; font-size: 13.5px; margin-left: 8px; padding: 3px 10px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; cursor: pointer; color: var(--ink); }
.cite-copy:hover { border-color: var(--teal); color: var(--teal); }
.pub-actions { margin-top: 28px; }
.event-row .row-body .row-who { display: block; margin-top: 6px; }
.event-row .row-body .row-title { line-height: 1.3; }
.person-death { font-weight: 400; color: var(--slate); font-size: .55em; vertical-align: middle; white-space: nowrap; }
.eco-name .person-death { font-size: 14px; }

/* Directory: one row (all / members / Filtrer), filters folded in a panel */
.dir-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
.dir-bar .filters { margin-bottom: 0; }
.dir-filter summary { cursor: pointer; list-style: none; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); }
.dir-filter summary::-webkit-details-marker { display: none; }
.dir-filter summary::after { content: " ▾"; color: var(--slate); }
.dir-filter[open] summary { border-color: var(--teal); color: var(--teal); }
.dir-filter-n { font-weight: 600; }
.dir-filter[open] { flex-basis: 100%; }
.dir-filter-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; margin-top: 10px; padding: 14px 16px 4px; border: 1px solid var(--line); background: var(--band); }
.dir-filter-body input, .dir-filter-body select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); width: 100%; box-sizing: border-box; }
.dir-filter-actions { display: flex; gap: 14px; align-items: center; align-self: end; margin-bottom: 14px; }
/* Ouvrages page sections, AI summaries */
.coll-section { margin-top: 34px; }
.coll-section-intro { color: var(--slate); max-width: 80ch; }
.ai-note { font-size: 13px; color: var(--slate); font-style: italic; margin-top: 10px; }
.dir-members { grid-column: 1 / -1; margin-bottom: 8px; }
.dir-members label { align-items: center; font-weight: 600; }
.dir-filter-body .dir-members input { width: 18px; height: 18px; margin: 0; padding: 0; }
.directory-tools .dir-bar { margin-top: 10px; }
#dir-results.is-loading { opacity: .5; transition: opacity .15s; }

/* Home: the Revue Marocaine d'Économie box in the right column (in place of the Parti pris notes). */
.rme-home .rme-panel { background: var(--band); }
.rme-home .rme-panel h2 { font-size: 26px; margin-bottom: 8px; }
.rme-last { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; margin: 14px 0 6px; align-items: start; }
.rme-last .mini-title { font-size: 18px; line-height: 1.15; }
.rme-kicker { font-size: 13px; color: var(--bronze); margin: 0 0 3px !important; }
.rme-links { margin-top: 10px; }
/* One box, as tall as the « Activités récentes » column: the call sits at the bottom, its last line level with
   the last line of the activities (the panel stops short of the column by the bottom padding of an activity row). */
.home-mid { align-items: stretch; }
.rme-home { display: flex; flex-direction: column; }
.rme-home .rme-panel { flex: 1; display: flex; flex-direction: column; padding-bottom: 13px; }
.rme-home .rme-panel h2 a { color: inherit; text-decoration: none; }
.rme-home .rme-panel h2 a:hover { color: var(--teal); text-decoration: underline; }
.rme-call { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.rme-call p:last-child { margin-bottom: 0; }
.rme-call h3 { font-size: 20px; margin-bottom: 6px; }
.rme-call p { font-size: 15px; }
/* Publications band without the RME panel: the covers take the whole width. */
.pubs-grid.pubs-full { grid-template-columns: minmax(0, 1fr); }
.pubs-full .cover-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pubs-full .cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pubs-full .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* « Les instances depuis 2006 » */
.inst-presidents { margin: 8px 0 30px; }
.inst-pres-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.inst-pres-list li { display: grid; grid-template-columns: 72px auto; gap: 14px; align-items: center; }
.inst-pres-photo { display: block; width: 72px; aspect-ratio: 4 / 5; background: var(--teal-tint); overflow: hidden; text-decoration: none; }
.inst-pres-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inst-pres-photo .person-initials { font-size: 24px; }
.inst-pres-list li > span { display: grid; gap: 2px; }
.inst-pres-name { font-family: var(--serif); font-size: 22px; color: var(--ink); text-decoration: none; }
.inst-pres-name:hover { color: var(--teal); text-decoration: underline; }
.inst-years { font-size: 13px; color: var(--slate); letter-spacing: .02em; }
.inst-terms { margin-bottom: 34px; }
.inst-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 12px 0 18px; border-bottom: 1px solid var(--line); }
.inst-tabs button { font: inherit; font-size: 15px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px 7px; color: var(--slate); cursor: pointer; margin-bottom: -1px; }
.inst-tabs button:hover { color: var(--ink); }
.inst-tabs button[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.inst-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.inst-term { padding-bottom: 8px; }
.inst-terms:not(.has-tabs) .inst-term + .inst-term { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.has-tabs .inst-term-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inst-term-title { font-size: 24px; margin: 0 0 10px; }
.inst-now { font-family: var(--sans, inherit); font-size: 13px; color: var(--bronze); font-weight: 600; margin-left: 6px; }
.inst-term h4 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin: 22px 0 12px; font-weight: 600; }
.inst-n { font-family: var(--sans, inherit); font-size: 15px; color: var(--slate); font-weight: 400; margin-left: 8px; }
.inst-cd { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.inst-cd li { background: var(--band); border-top: 3px solid var(--teal); padding: 10px 12px; display: grid; gap: 3px; }
.inst-cd a { font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--ink); text-decoration: none; }
.inst-cd a:hover { color: var(--teal); text-decoration: underline; }
.inst-role { font-size: 15px; color: var(--slate); }
.inst-ca { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 28px; }
.inst-ca li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 17px; }
.inst-ca a { color: var(--ink); text-decoration: none; }
.inst-ca a:hover { color: var(--teal); text-decoration: underline; }
.inst-note { font-size: 14px; color: var(--slate); font-style: italic; margin: -2px 0 8px; }
.inst-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 12px; }
.inst-filters label { font-size: 14px; color: var(--slate); }
.inst-filters input, .inst-filters select { font: inherit; font-size: 15px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.inst-count { font-size: 14px; color: var(--slate); margin-left: auto; }
.inst-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.inst-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.inst-table th, .inst-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.inst-table thead th { font-size: 13px; color: var(--slate); font-weight: 600; background: var(--band); position: sticky; top: 0; }
.inst-table tbody th { text-align: left; font-weight: 400; }
.inst-table tbody th a { color: var(--ink); text-decoration: none; }
.inst-table tbody th a:hover { color: var(--teal); text-decoration: underline; }
.inst-table tbody tr:hover { background: var(--band); }
.inst-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.inst-dot.is-cd { background: var(--teal); }
.inst-dot.is-ca { border: 2px solid var(--teal); box-sizing: border-box; }
.inst-sources { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 560px) { .inst-count { margin-left: 0; width: 100%; } .inst-pres-name { font-size: 19px; } }
.inst-table thead th:first-child { text-align: left; }

/* === Usability and accessibility fixes (audits of 10 November 2026) ============ */
/* Skip link: above the sticky header (z-index 50) and clearly visible when focused. */
.skip:focus { position: fixed; left: 8px; top: 8px; z-index: 1000; background: var(--paper); color: var(--ink); padding: 10px 16px; border: 2px solid var(--teal); outline: 3px solid var(--teal); outline-offset: 2px; font-weight: 600; text-decoration: underline; }
/* Phone menu: « Adhérer » and « Contact » first. */
/* Compact header on wide screens keeps a small « Adhérer ». */
@media (min-width: 1181px) { .site-header.is-compact .btn-join { display: inline-flex; padding: 5px 10px; font-size: 13px; } }
/* Submenu arrows: at least 24 × 24 px. */
.sub-toggle { min-width: 24px; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; }
/* Catalogue of the Publications page: four columns, more room for long titles. The collection
   pages (QEM, Ouvrages…) and the PEM page keep the denser grid. */
#catalogue .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
#catalogue .cat-grid .cover-title { font-size: 19px; line-height: 1.15; }
#catalogue .cat-grid .cover-meta { font-size: 13.5px; }
@media (max-width: 1100px) { #catalogue .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { #catalogue .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } #catalogue .cat-grid .cover-title { font-size: 17px; } }
/* A cover that is not available: a deliberate typographic card, same proportions. */
.cover-placeholder { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; aspect-ratio: 160 / 226; padding: 14% 11%; background: var(--band); border: 1px solid var(--line); color: var(--ink); overflow: hidden; }
.cp-title { font-family: var(--serif); font-size: 16px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.cp-meta { font-size: 12px; color: var(--slate); }
.cp-note { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); border-top: 1px solid var(--line); padding-top: 6px; }
.cover-grid .cp-title { font-size: 13px; -webkit-line-clamp: 6; }
/* Video grid: never wider than its container (320 px screens). */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
/* Very narrow screens: the congress text takes the full width, the poster goes below it. */
@media (max-width: 400px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-poster { order: 2; max-width: 140px; }
  .feature .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* Main actions next to the title of detail pages. */
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 16px 0 8px; }
/* Search: type filter and context line. */
.search-types a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; color: var(--ink); text-decoration: none; }
.search-types a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.search-hits .row-who { display: block; font-size: 14.5px; color: var(--slate); margin-top: 2px; }
/* Form errors: the message and the field concerned. */
.form-msg:focus { outline: 3px solid var(--teal); outline-offset: 2px; }
.amse-form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.cp-title { flex: 0 1 auto; min-height: 0; }
@media (max-width: 560px) { .cp-meta { display: none; } .cp-title { -webkit-line-clamp: 6; } }
/* Comfortable targets for the sub-navigation and the pager (24 px at least). */
.sub-nav a, .pager a, .pager span { display: inline-flex; align-items: center; min-height: 24px; }
/* Baromètre: downloads, and the whole page laid out for printing or « Enregistrer en PDF ». */
.bx-downloads { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 14px; }
.bx-downloads .btn { cursor: pointer; border: 0; font: inherit; font-size: 14px; }
.bx-dl { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0 6px; }
.bx-dl button { font: inherit; font-size: 13px; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; color: var(--teal-dark); cursor: pointer; }
.bx-dl button:hover { border-color: var(--teal); }
@media print {
  .site-header, .site-footer, .crumbs, .skip, .bx-toc, .bx-downloads, .bx-dl, details.bx-data, .bx-pin { display: none !important; }
  body { font-size: 10.5pt; background: #fff; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .bx-chart, .bx-tiles li, .bx-compare tr { break-inside: avoid; }
  .bx-section h2 { break-after: avoid; }
  .bx-page::after { content: "Association Marocaine de Sciences Économiques · Baromètre de l’économie marocaine · amse.ma/barometre/"; display: block; margin-top: 12px; font-size: 9pt; color: #555; }
  @page { margin: 14mm; }
}

/* Arabic full texts (Parti pris n° 21 and 23) and committees of the congresses */
.text-ar { direction: rtl; text-align: right; font-size: 1.12em; line-height: 1.9; }
.text-ar h2 { text-align: right; }
.text-ar ul { padding-right: 1.4em; padding-left: 0; }
.congress-committees h4 { margin: 1em 0 .3em; }
/* Arabic notes: header and table of contents from right to left */
.reading-head[dir=rtl], .reading-grid[dir=rtl] .reading-toc { text-align: right; }
.reading-head[dir=rtl] .reading-by { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.reading-head[dir=rtl] .reading-affiliation { color: var(--slate); }
.reading-head[dir=rtl] .reading-disclaimer { text-align: right; }
.reading-grid[dir=rtl] .reading-toc ol { padding-right: 1.2em; padding-left: 0; }
/* Names linked to the people's pages (congresses, events, prize juries): bold, not styled as links */
a.person-link { color: inherit; font-weight: 700; text-decoration: none; }
a.person-link:hover, a.person-link:focus-visible { text-decoration: underline; }
/* Language icons of the header (ع · EN · ES) and the presentation pages */
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; line-height: 1; }
.lang-switch a[lang=ar] { font-size: 17px; font-family: 'Markazi Text', serif; }
.lang-switch a:hover, .lang-switch a[aria-current] { background: var(--teal); color: #fff; border-color: var(--teal); }
.lang-page[dir=rtl] { text-align: right; font-size: 1.1em; line-height: 1.9; }
.lang-page[dir=rtl] ul { padding-right: 1.3em; padding-left: 0; }
@media (max-width: 600px) { .lang-switch a { min-width: 26px; height: 26px; font-size: 12px; } }
.lang-switch-page { margin: 0 0 18px; }
.lang-switch-page a { min-width: 34px; height: 34px; }
.lang-page[dir=rtl] .lang-switch-page { justify-content: flex-end; }

/* === Phones (560 px and less): header and first block of the home page ===========
   Logo centred, full-width menu bar; the next congress opens on its poster as a banner, then a
   coloured panel (title, facts, button). Nothing here applies above 560 px. */
@media (max-width: 560px) {
  .header-bar { grid-template-areas: "brand" "tools" "nav"; grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding-block: 14px 0; }
  .brand { justify-self: center; }
  .brand img { width: 260px; }
  .header-tools { margin-inline: -16px; background: var(--teal); justify-content: center; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-radius: 0;
    background: transparent; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .menu-toggle[aria-expanded="true"] { background: var(--teal-dark); }
  .menu-toggle:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
  .main-nav { margin-top: 0; border-top: 0; }
  .site-header { border-bottom: 0; }
  /* Scrolled: only the menu bar stays at the top of the screen. */
  .site-header.is-compact .brand { display: none; }
  .site-header.is-compact .header-bar { row-gap: 0; padding-top: 0; }

  .home-top { padding-top: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 0; margin-inline: -16px; background: var(--teal-dark); color: #fff; }
  /* Banner in the proportions of the text band of an A4 poster (congress, theme, subtitle), so the cut falls in its margins. */
  .feature-poster { order: 0; max-width: none; display: block; aspect-ratio: 672 / 392; overflow: hidden; }
  .feature-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; border: 0; }
  /* Banner made for the phone (home page): shown whole, in its own proportions. */
  .feature-poster.has-phone-banner { aspect-ratio: 16 / 9; }
  .feature-poster.has-phone-banner picture { display: block; width: 100%; height: 100%; }
  .feature-poster.has-phone-banner img { object-position: 50% 50%; }
  .feature-text { order: 1; padding: 22px 20px 26px; }
  .feature .kicker { color: rgba(255, 255, 255, .78); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
  .feature-title { font-size: 31px; line-height: 1.08; }
  .feature-title a { color: #fff; text-decoration: none; }
  .feature-sub { color: rgba(255, 255, 255, .86); font-size: 18px; }
  .feature .facts { grid-template-columns: minmax(0, 1fr); }
  .feature .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .feature .facts dt { color: rgba(255, 255, 255, .7); font-size: 13px; }
  .feature .facts dd { color: #fff; }
  .feature .status-closed { background: rgba(255, 255, 255, .16); color: #fff; }
  .feature .axes { border-color: rgba(255, 255, 255, .25); }
  .feature .axes summary { color: #fff; }
  .feature .axes ol { color: rgba(255, 255, 255, .92); }
  .feature .actions .btn { background: #fff; color: var(--teal-dark); }
  .feature .actions .btn:hover { background: var(--teal-tint); color: var(--teal-dark); }
  .feature .actions .link-strong { color: #fff; }
  .feature a:focus-visible { outline-color: #fff; }
}
