/* =========================================================================
   Éditions Hashtag — news.css
   Actualités (page 368, /actualites/N/), single posts, post archives,
   search results (search.php), 404. Requires base.css. Mobile first.
   Breakpoints: md 760px · lg 1100px. Consumes base tokens only; the few
   area tokens below are new names, scoped to the area's page wrappers.
   Contents
     1  Area tokens               6  Single post: head, media, body (stored HTML)
     2  .media / .media-frame     7  Embeds (facade), document links
     3  Actualités head + frieze  8  Post navigation
     4  Post card + post grid     9  Search page, tally, result rows
     5  Press releases           10  404, shelf
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Area tokens
   ------------------------------------------------------------------------- */
.site-main--news, .site-main--article, .site-main--search, .site-main--404 {
  --frame-card: 1.25;            /* post card image frame, w/h (5:4) */
  --frame-thumb: 1;              /* row thumbnails (square) */
  --thumb-w: 96px;               /* phone row thumbnail */
  --thumb-row: 56px;             /* search result thumbnail */
  --fs-title-s: var(--fs-h1);                                   /* article h1 ≤ 32 chars: 36 → 68 */
  --fs-title-m: clamp(1.875rem, 1.45rem + 1.75vw, 3.125rem);    /* ≤ 72 chars: 30 → 50 */
  --fs-title-l: clamp(1.625rem, 1.25rem + 1.45vw, 2.75rem);     /* > 72 chars: 26 → 44 */
  --fs-numeral: clamp(1.75rem, 1.2rem + 2vw, 3rem);             /* tally numerals 28 → 48 */
  --media-max-h: 72svh;          /* a portrait poster never fills more than ~3/4 of the screen */
}
@media (min-width: 1100px) {
  .site-main--article { --media-max-h: calc(100svh - var(--sticky-top) - 2 * var(--s-6)); }
}

/* -------------------------------------------------------------------------
   2. .media — a news image.
   In a frame (.media-frame: post cards; .search-result__thumb: search rows)
   every image takes the frame's size, cropped to fit: all images of a list
   are the same size (client decision of 2026-11-19). Tall images are cut a
   little above the middle, where faces and poster titles sit; wide ones are
   cut evenly on both sides. One image can be framed differently from the
   media library (« Cadrage dans les listes »): PHP then prints an inline
   object-position, or the class media__img--whole.
   The article's own image (.media--hero, single.php) stays whole: sized from
   --ratio (w/h of the file), never wider than --natural (the file width).
   --frame = frame w/h.
   ------------------------------------------------------------------------- */
.media-frame { --frame: var(--frame-card); position: relative; display: flex; align-items: flex-end; justify-content: flex-start; aspect-ratio: var(--frame); width: 100%; }
.media {
  --ratio: 1; --natural: 2000px;
  position: relative; display: block; flex: none;
  width: min(100%, calc(100% * var(--ratio) / var(--frame, var(--ratio))), var(--natural)); aspect-ratio: var(--ratio);
  background: var(--color-panel); box-shadow: var(--sh-hung);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--color-cover-edge); pointer-events: none; }
.media__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-frame .media { width: 100%; aspect-ratio: var(--frame); }
.media-frame .media__img, .search-result__thumb .media__img { object-fit: cover; object-position: 50% 30%; }
/* an image set to « Image entière » in the media library (a logo, for instance): whole, on the panel colour, in the same frame */
.media-frame .media__img--whole, .search-result__thumb .media__img--whole { object-fit: contain; object-position: 50% 50%; padding: 8%; }
/* no featured image (theme fallback): the logo on the quiet panel, in the same frame */
.media-frame--empty { align-items: center; justify-content: center; background: var(--color-panel); }
.media-frame__logo { width: 46%; max-width: 160px; opacity: .9; }

/* -------------------------------------------------------------------------
   3. Actualités — head (page title + double bar) and the frieze
   (page 368 banner, attachment 370: text-free group photo, shown whole)
   ------------------------------------------------------------------------- */
/* head: base .page-head */
.news-frieze { margin-bottom: var(--s-6); padding-inline: 0; }
.news-frieze__img { width: 100%; height: auto; }
@media (min-width: 760px) {
  .news-frieze { padding-inline: var(--margin); margin-bottom: var(--s-7); }
}

/* -------------------------------------------------------------------------
   4. Post card (template-parts/post-card.php) + post grid
   Phone: first card large, then rows (text left, thumbnail right).
   Tablet: 2 columns, first card spans both (horizontal). Desktop: 3 × 3,
   newspaper column rules, frames on one hang line so titles align.
   The title link is stretched over the card; "En savoir plus →" (base
   .link-arrow--small) is its visual echo (aria-hidden): one link per card.
   Hover / focus = the house's one card state: the image lifts like a cover
   (--lift, --sh-lift; the drawn # stays reserved for covers) and the
   link-arrow draws its red rule.
   ------------------------------------------------------------------------- */
.post-grid { border-top: var(--rule-bold) solid var(--color-line-strong); }
.post-grid__item { position: relative; border-bottom: var(--rule-hair) solid var(--color-line); }
.post-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-w); grid-template-areas: "body media";
  column-gap: var(--s-4); align-items: start; padding: var(--s-5) 0;
}
.post-card__media { grid-area: media; }
.post-card__media .media-frame { --frame: var(--frame-thumb); align-items: flex-start; justify-content: flex-end; }
.post-card__body { grid-area: body; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.post-card__date { font: var(--fw-medium) var(--fs-label)/1.2 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.post-card__title {
  margin-top: var(--s-2); font: var(--fw-regular) 1.25rem/1.2 var(--font-serif); font-variation-settings: "opsz" 32;
  letter-spacing: -.003em; text-wrap: balance; overflow-wrap: break-word;
}
.post-card__link { text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; z-index: var(--z-raised); }
.post-card__excerpt { margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.5; color: var(--color-text-muted); }
.post-card__more { margin-top: auto; padding-top: var(--s-2); align-self: flex-start; }
@media (hover: hover) {
  .post-card:hover .media { transform: translateY(var(--lift)); box-shadow: var(--sh-lift); }
  .post-card:hover .post-card__more { background-size: calc(100% - 1.6em) var(--rule-mid); }
  .post-card:hover .post-card__more .icon--arrow { transform: translateX(4px); }
}
.post-card:focus-within .media { transform: translateY(var(--lift)); box-shadow: var(--sh-lift); }
.post-card:focus-within .post-card__more { background-size: calc(100% - 1.6em) var(--rule-mid); }
.post-card__link:focus-visible { outline-offset: 3px; }

/* phone: the latest post opens the list in full */
.post-grid__item:first-child .post-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media" "body"; row-gap: var(--s-4); padding-top: var(--s-5); }
.post-grid__item:first-child .post-card__media .media-frame { --frame: 1.3333; align-items: flex-end; justify-content: flex-start; }
.post-grid__item:first-child .post-card__title { font-size: 1.625rem; line-height: 1.16; font-variation-settings: "opsz" 48; }
.post-grid__item:first-child .post-card__excerpt { font-size: var(--fs-body); line-height: var(--lh-body); }

@media (min-width: 760px) {
  .post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .post-grid__item { border-bottom: 0; }
  .post-grid__item:nth-child(n + 2) { border-top: var(--rule-hair) solid var(--color-line); }
  .post-grid__item:nth-child(2n + 3)::before {
    content: ""; position: absolute; top: var(--s-5); bottom: var(--s-6); left: calc(-.5 * var(--gutter)); width: var(--rule-hair); background: var(--color-line-soft);
  }
  .post-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media" "body"; row-gap: var(--s-4); height: 100%; padding: var(--s-5) 0 var(--s-6); }
  .post-card__media .media-frame { --frame: var(--frame-card); align-items: flex-end; justify-content: flex-start; }
  .post-card__title { font-size: 1.5rem; font-variation-settings: "opsz" 36; }
  .post-grid__item:first-child { grid-column: 1 / -1; }
  .post-grid__item:first-child .post-card { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto; grid-template-areas: none; column-gap: var(--gutter); padding: var(--s-6) 0 var(--s-7); }
  .post-grid__item:first-child .post-card__media { grid-column: 1 / span 7; grid-row: 1; }
  .post-grid__item:first-child .post-card__body { grid-column: 8 / -1; grid-row: 1; padding-top: var(--s-2); }
  .post-grid__item:first-child .post-card__title { font-size: 2rem; }
}
@media (min-width: 1100px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-grid__item:first-child { grid-column: auto; }
  .post-grid__item:nth-child(n + 2) { border-top: 0; }
  .post-grid__item:nth-child(n + 4) { border-top: var(--rule-hair) solid var(--color-line); }
  .post-grid__item:nth-child(2n + 3)::before { content: none; }
  .post-grid__item:not(:nth-child(3n + 1))::before {
    content: ""; position: absolute; top: var(--s-5); bottom: var(--s-6); left: calc(-.5 * var(--gutter)); width: var(--rule-hair); background: var(--color-line-soft);
  }
  .post-grid__item:first-child .post-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media" "body"; column-gap: 0; padding: var(--s-6) 0 var(--s-7); }
  .post-grid__item:first-child .post-card__media, .post-grid__item:first-child .post-card__body { grid-column: auto; grid-row: auto; padding-top: 0; }
  .post-grid__item:first-child .post-card__media .media-frame { --frame: var(--frame-card); }
  .post-grid__item:first-child .post-card__title { font-size: 1.5rem; line-height: 1.2; font-variation-settings: "opsz" 36; }
  .post-grid__item:first-child .post-card__excerpt { font-size: var(--fs-small); line-height: 1.5; }
  .post-card { padding: var(--s-6) 0 var(--s-7); }
}

/* -------------------------------------------------------------------------
   5. Press releases (page 368 post_content) + document links (.doc-list,
   also the PDF-only paragraphs of posts)
   ------------------------------------------------------------------------- */
.press-releases .section-head { margin-bottom: 0; }
.doc-list { margin: 0; padding: 0; list-style: none; }
.doc-list__item { border-bottom: var(--rule-hair) solid var(--color-line); }
.doc-link {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0; text-decoration: none; color: var(--color-text);
}
.doc-link .icon { color: var(--color-accent); }
.doc-link__label {
  font: var(--fw-regular) 1.25rem/1.25 var(--font-serif); font-variation-settings: "opsz" 28; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .16em;
  transition: text-decoration-color var(--dur-fast);
}
.doc-link__meta { font: var(--fw-medium) var(--fs-micro)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-link:hover .doc-link__label { text-decoration-color: var(--color-accent); }
@media (min-width: 760px) {
  .doc-list--releases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .doc-link { min-height: 76px; }
}

/* -------------------------------------------------------------------------
   6. Single post (single.php): breadcrumbs, head, featured image shown
   whole, content typeset for reading. Desktop: title over 9 columns, image
   in columns 1–5 (sticky while the text runs), text in columns 7–12.
   ------------------------------------------------------------------------- */
.site-main--article .breadcrumbs { padding-top: 0; }
.article__inner { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
/* head: base .page-head with its kicker (the date carries the bar). A post title is a headline,
   not a page name: its size follows its length (t-s / t-m / t-l), the one exception to the
   page-head scale. .page-head--article drops the head's own padding (the article grid spaces it). */
.article-head.page-head { padding-block: 0; margin-top: var(--s-3); }
.article-head__date { font: var(--fw-medium) var(--fs-label)/1.2 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.article-head .page-head__title {
  font-family: var(--font-serif); font-weight: var(--fw-regular); font-size: var(--fs-title-m); line-height: 1.08;
  font-variation-settings: "opsz" var(--opsz-display); letter-spacing: -.018em; text-wrap: balance;
}
.article-head .page-head__title.t-s { font-size: var(--fs-title-s); line-height: 1.02; letter-spacing: -.022em; }
.article-head .page-head__title.t-l { font-size: var(--fs-title-l); line-height: 1.12; letter-spacing: -.012em; }

.article-media { margin: 0; }
.media--hero { width: min(100%, var(--natural), calc(var(--media-max-h) * var(--ratio))); }

.article-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.article-body > * + * { margin-top: .9em; }
.article-body { overflow-wrap: break-word; } /* a bare URL in running text wraps instead of widening the page */
.article-body a { overflow-wrap: anywhere; }
/* TinyMCE nesting wrapper (<li style="list-style-type:none"><ul>…, the style is not kept): no bullet of its own */
.article-body li:has(> ul:only-child, > ol:only-child) { list-style: none; }
/* headings pasted in posts (h1 is demoted to h2 by the normaliser) */
.article-body h2, .article-body h3 {
  margin-top: 1.8em; font-family: var(--font-serif); font-weight: var(--fw-regular); font-size: 1.5rem; line-height: 1.2;
  font-variation-settings: "opsz" 36; text-wrap: balance;
}
.article-body h3 { font-size: 1.3125rem; font-weight: var(--fw-medium); }
.article-body h4, .article-body h5, .article-body h6 { margin-top: 1.4em; font: var(--fw-semibold) var(--fs-body)/var(--lh-body) var(--font-serif); }
/* a short <strong> line alone = de-facto subhead (render rule R6) */
.article-body .subhead { margin-top: 2em; font: var(--fw-semibold) var(--fs-label)/1.35 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--c-grey-313); }
.article-body .subhead strong, .article-body .subhead b { font-weight: inherit; }
.article-body .subhead::before { content: ""; display: block; width: var(--double-w); height: var(--double-h); margin-bottom: var(--s-3); border-top: var(--rule-mid) solid var(--color-accent); border-bottom: var(--rule-mid) solid var(--color-accent); }
/* quotations = the house press quote (base §14), never a coloured left rule (that is the notice device):
   « … » paragraphs and blockquotes opening on « become .press-quote (render rule R10: red « hung in
   the margin); other stored blockquotes (book excerpts) keep a quiet indent, no rule. Body size. */
.article-body blockquote:not(.wp-embedded-content), .article-body .press-quote { margin-block: 1.6em; }
.article-body blockquote:not(.wp-embedded-content):not(.press-quote) { padding-left: 1.25em; }
.article-body blockquote.press-quote { padding-left: .62em; }
.article-body blockquote:not(.wp-embedded-content) > * + * { margin-top: .6em; }
.article-body .press-quote__text { font-size: inherit; line-height: inherit; }
.article-body .press-quote__source { margin-top: var(--s-2); }
.article-body cite {
  display: inline-block; margin-top: var(--s-1); font-style: normal; font-size: var(--fs-small); line-height: 1.45; color: var(--color-text-muted);
}
.article-body cite br { display: none; }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li + li { margin-top: .35em; }
.article-body hr {
  width: var(--double-w); height: var(--double-h); margin-block: 2em; border: 0;
  border-top: var(--rule-mid) solid var(--color-accent); border-bottom: var(--rule-mid) solid var(--color-accent);
}
.article-body sup { font-size: .68em; line-height: 0; }
/* images of the content (all 259 px or less in the data): hung plates; floats only from md */
.article-body img { height: auto; box-shadow: var(--sh-small); }
.article-body img[width="16"], .article-body img[height="16"] { display: inline; box-shadow: none; vertical-align: -.15em; } /* emoji left by a paste */
.article-body p:has(> img:only-child) { line-height: 0; }
.article-body .aligncenter { margin-inline: auto; }
.article-body .alignleft, .article-body .alignright, .article-body .alignnone { margin-block: var(--s-2); }
.article-body figure, .article-body .wp-caption { max-width: 100%; margin-block: 1.5em; }
.article-body figcaption:not(.press-quote__source), .article-body .wp-caption-text {
  margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.45; color: var(--color-text-muted);
}
.article-body figcaption:not(.press-quote__source)::before, .article-body .wp-caption-text::before { content: "— "; color: var(--color-accent); }
@media (min-width: 760px) {
  .article-body .alignleft { float: left; max-width: 45%; margin: .35em var(--s-6) var(--s-4) 0; }
  .article-body .alignright { float: right; max-width: 45%; margin: .35em 0 var(--s-4) var(--s-6); }
  .article-body::after { content: ""; display: table; clear: both; }
  .article-body p:has(> img.alignleft:only-child), .article-body p:has(> img.alignright:only-child) { margin: 0; }
}
/* very short posts (≤ 60 words): the sentence is set as a lead next to / under the image */
.article--short .article-body { font-size: var(--fs-lead); line-height: 1.48; }
/* the source URL alone on its line (unknown oEmbed provider) — verbatim text, now a link */
.article-body .source-link { font-size: var(--fs-small); line-height: 1.45; color: var(--color-text-muted); }
.article-body .source-link a { color: var(--color-text); }

@media (min-width: 760px) {
  .article__inner { row-gap: var(--s-7); }
  .article-head, .article-body { max-width: 40rem; }
}
@media (min-width: 1100px) {
  .site-main--article .breadcrumbs { padding-top: var(--s-3); }
  .article__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-8); align-items: start; }
  .article-head { grid-column: 1 / span 9; max-width: none; margin-top: var(--s-6); }
  .article-media { grid-column: 1 / span 5; grid-row: 2; position: sticky; top: calc(var(--sticky-top) + var(--s-6)); }
  .article-body { grid-column: 7 / -1; grid-row: 2; max-width: var(--measure); }
  .article--no-media .article-body { grid-column: 1 / span 8; }
  .article--short .article-body { padding-top: var(--s-2); }
}

/* -------------------------------------------------------------------------
   7. Embeds (theme filter embed_oembed_html): click-to-load facade
   (no third-party request before the reader asks), responsive frame.
   ------------------------------------------------------------------------- */
.embed { margin-block: 1.6em; }
.embed__facade {
  position: relative; display: flex; align-items: flex-end; gap: var(--s-4); width: 100%; padding: var(--s-4);
  background: var(--c-ink); color: var(--c-white); text-decoration: none;
}
.embed--video .embed__facade, .embed--video .embed__frame { aspect-ratio: 16 / 9; }
.embed--audio .embed__facade, .embed--audio .embed__frame { height: 166px; }
.embed__play {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  background: var(--color-accent); color: var(--c-white); transition: background-color var(--dur-fast), color var(--dur-fast);
}
.embed__facade:hover .embed__play { background: var(--c-white); color: var(--color-accent); }
.embed__facade:focus-visible { outline-offset: 3px; }
.embed__text { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; padding-bottom: 2px; }
.embed__provider { font: var(--fw-medium) var(--fs-micro)/1.2 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--color-inverse-muted); }
.embed__title { font: var(--fw-regular) 1.0625rem/1.3 var(--font-serif); color: var(--c-white); text-wrap: balance; }
.embed__frame { background: var(--c-ink); }
.embed__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 760px) {
  .embed__facade { padding: var(--s-5); gap: var(--s-5); }
  .embed__play { width: 72px; height: 72px; }
  .embed__title { font-size: 1.25rem; }
}
/* WordPress post embed: the fallback blockquote is the embed (its iframe is http:// — not printed) */
.embed--post .wp-embedded-content { margin: 0; }
.embed--post a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "provider icon" "title icon"; align-items: center; gap: 2px var(--s-4);
  padding: var(--s-4) var(--s-5); border: var(--rule-hair) solid var(--c-ink); border-left: var(--rule-bold) solid var(--c-ink);
  text-decoration: none; color: var(--color-text); transition: border-color var(--dur-fast);
}
.embed--post .embed__provider { grid-area: provider; color: var(--color-text-muted); }
.embed--post .embed__title { grid-area: title; color: var(--color-text); font-size: 1.25rem; }
.embed--post .icon { grid-area: icon; color: var(--color-accent); }
.embed--post a:hover { border-left-color: var(--color-accent); }
.embed--post a:hover .embed__title { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: .16em; }
/* inside stored text */
.article-body .doc-list { padding-left: 0; list-style: none; border-top: var(--rule-hair) solid var(--c-ink); }
.article-body .doc-list li + li { margin-top: 0; }
.article-body .doc-link { text-decoration: none; }

/* -------------------------------------------------------------------------
   8. Post navigation: back to Actualités + previous / next (same category)
   Not a section (no heading): the ink rule only, no double bar.
   ------------------------------------------------------------------------- */
.post-nav { position: relative; margin-top: var(--section-space); padding-top: calc(var(--rule-bold) + var(--s-2)); }
.post-nav::after { content: ""; position: absolute; top: 0; left: var(--margin); right: var(--margin); height: var(--rule-bold); background: var(--color-line-strong); }
.link-arrow--back:hover .icon--back { transform: translateX(-4px); }
.link-arrow--back { background-position: 1.6em calc(100% - 9px); }
.link-arrow--back:hover { background-size: calc(100% - 1.6em) var(--rule-mid); }
.post-nav__cells { display: grid; margin-top: var(--s-2); border-top: var(--rule-hair) solid var(--color-line); }
.post-nav__cell { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5) 0; text-decoration: none; color: var(--color-text); }
.post-nav__cell + .post-nav__cell, .post-nav__cell--empty + .post-nav__cell { border-top: var(--rule-hair) solid var(--color-line); }
.post-nav__cell--empty { display: none; }
.post-nav__dir { font: var(--fw-semibold) var(--fs-label)/1.2 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--c-grey-313); }
.post-nav__cell--prev .post-nav__dir::before { content: "‹ "; color: var(--color-accent); }
.post-nav__cell--next .post-nav__dir::after { content: " ›"; color: var(--color-accent); }
.post-nav__date { font: var(--fw-medium) var(--fs-micro)/1.2 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-accent); }
.post-nav__title {
  margin-top: var(--s-1); font: var(--fw-regular) 1.25rem/1.22 var(--font-serif); font-variation-settings: "opsz" 32; text-wrap: balance;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .14em;
  transition: text-decoration-color var(--dur-fast);
}
.post-nav__cell:hover .post-nav__title { text-decoration-color: var(--color-accent); }
@media (min-width: 760px) {
  .post-nav__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .post-nav__cell--empty { display: block; }
  .post-nav__cell + .post-nav__cell, .post-nav__cell--empty + .post-nav__cell { border-top: 0; }
  .post-nav__cell--next { align-items: flex-end; text-align: right; position: relative; }
  .post-nav__cell--next::before { content: ""; position: absolute; top: var(--s-5); bottom: var(--s-5); left: calc(-.5 * var(--gutter)); width: var(--rule-hair); background: var(--color-line); }
  .post-nav__cell--empty + .post-nav__cell--next::before { content: none; }
  .post-nav__title { font-size: 1.5rem; max-width: 26em; }
}

/* -------------------------------------------------------------------------
   9. Search results (search.php), search without result, 404 — on the
   12-column container like every page, left on --margin: base .page-head
   (kicker carries the bar, the query is the title: red guillemets with
   U+202F inside, printed by the template), then count / sentence / refine
   form, tally of the groups (big numerals = catalogue genre bar), grouped
   rows. Desktop: everything under the title sits in columns 1–8 (a
   reading column; the title alone runs across the 12) and the tally turns
   into a sticky index in columns 10–12 (result groups, or the genres
   beside the Nouveautés shelf).
   ------------------------------------------------------------------------- */
.search-head__title { overflow-wrap: anywhere; }
.search-head__mark { font-style: normal; color: var(--color-accent); }
@media (min-width: 1100px) {
  .search-head > :not(.page-head__kicker):not(.page-head__title) { grid-column: 1 / span 8; }
  .search-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .search-page > * { grid-column: 1 / span 8; min-width: 0; }
  /* the index's ink rule sits on the first section-head's ink rule (under its double bar) */
  .search-page > .tally {
    grid-column: 10 / -1; grid-row: 1 / span 6; position: sticky; top: calc(var(--sticky-top) + var(--s-6));
    margin-top: calc(var(--double-h) + var(--double-gap));
  }
  .search-page > .tally + .result-group, .search-page > .tally + .news-shelf { padding-top: 0; }
}
/* the count belongs to the title (one line of meta under it); the head's grid gap spaces the rest */
.search-head__count {
  margin-top: calc(var(--s-1) - var(--s-5));
  font: var(--fw-medium) var(--fs-label)/1.2 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--color-text-muted);
}
.search-panel {
  display: flex; align-items: center; gap: var(--s-2); padding-bottom: var(--s-1);
  border-bottom: var(--rule-bold) solid var(--color-line-strong); transition: border-color var(--dur-fast);
}
.search-panel:focus-within { border-bottom-color: var(--color-accent); }
.search-panel > .icon { color: var(--color-accent); }
.search-panel input.search-panel__field[type="search"] {
  flex: 1 1 auto; min-width: 0; width: auto; height: 56px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none;
  font: var(--fw-regular) 1.375rem/1 var(--font-serif); font-variation-settings: "opsz" 36; color: var(--color-text); -webkit-appearance: none; appearance: none;
}
.search-panel__field::placeholder { color: var(--color-text-large-soft); font-style: italic; }
.search-panel__field::-webkit-search-cancel-button { display: none; }
.search-panel__submit { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--fs-meta); }
@media (min-width: 760px) {
  .search-panel input.search-panel__field[type="search"] { height: 64px; font-size: 1.75rem; }
}

/* .tally — counts as big tabular Oswald numerals in ruled cells (the catalogue genre bar's language) */
.tally { border-top: var(--rule-bold) solid var(--color-line-strong); border-bottom: var(--rule-hair) solid var(--color-line-strong); }
.tally__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tally__list > li:nth-child(2n) { border-left: var(--rule-hair) solid var(--color-line-strong); }
.tally__list > li:nth-child(n + 3) { border-top: var(--rule-hair) solid var(--color-line-strong); }
.tally__list > li:nth-child(2n + 1) .tally__link { padding-left: 0; }
.tally__link {
  display: flex; flex-direction: row; align-items: center; gap: var(--s-3); min-height: 64px; height: 100%; padding: var(--s-2) var(--s-4);
  text-decoration: none; color: var(--color-text); transition: background-color var(--dur-fast), color var(--dur-fast);
}
.tally__count { font: var(--fw-semibold) var(--fs-numeral)/.9 var(--font-sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.tally__label { font: var(--fw-medium) var(--fs-micro)/1.15 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.tally__link:hover { color: var(--color-accent); }
@media (min-width: 760px) {
  .tally__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tally__list > li:nth-child(n) { border-top: 0; border-left: var(--rule-hair) solid var(--color-line-strong); }
  .tally__list > li:first-child { border-left: 0; }
  .tally__list > li:nth-child(n) .tally__link { padding: var(--s-3) var(--s-4); }
  .tally__list > li:first-child .tally__link { padding-left: 0; }
  .tally__link { min-height: 72px; }
  .tally__label { font-size: var(--fs-label); letter-spacing: var(--track-label); }
}
@media (min-width: 1100px) {   /* index column: one row per cell */
  .search-page > .tally .tally__list { grid-auto-flow: row; }
  .search-page > .tally .tally__list > li:nth-child(n) { border-left: 0; }
  .search-page > .tally .tally__list > li + li { border-top: var(--rule-hair) solid var(--color-line); }
  .search-page > .tally .tally__list > li:nth-child(n) .tally__link { padding: var(--s-3) 0; min-height: 68px; }
  .search-page > .tally .tally__count { min-width: 2.1ch; }
}

/* result groups: section opener with count, then base .search-result rows */
.result-group { padding-top: var(--s-8); }
.tally + .result-group { padding-top: var(--s-7); }
.result-group:focus { outline: none; }
.result-group .section-head { margin-bottom: 0; }
.search-results--page .search-result__link { padding: var(--s-4) 0; }
.search-results--page .search-result__title { font-size: 1.25rem; }
.search-results--page .search-result__price .woocommerce-Price-amount { font-family: var(--font-sans); }
.search-result__date { display: block; font: var(--fw-medium) var(--fs-micro)/1.3 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.search-result--post .search-result__link { grid-template-columns: var(--thumb-row) minmax(0, 1fr); }
.search-result__thumb { display: flex; align-items: center; justify-content: center; width: var(--thumb-row); aspect-ratio: 1; }
.search-result__thumb .media { --frame: var(--frame-thumb); width: 100%; aspect-ratio: 1; box-shadow: var(--sh-small); }
.search-result__thumb--empty { background: var(--color-panel); }
.search-result--author .search-result__link { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
.search-result__photo {
  display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--color-panel);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.search-result__link:hover .search-result__photo, .search-result__link:hover .search-result__thumb .media,
.search-result__link:focus-visible .search-result__photo { transform: translateY(var(--lift)); box-shadow: var(--sh-lift); }
.search-result__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.04); }
.search-result__name { display: block; font: var(--fw-regular) 1.5rem/1.15 var(--font-serif); font-variation-settings: "opsz" 36; }
.search-result__excerpt { display: block; margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.5; color: var(--color-text-muted); }
.search-result--author .icon, .search-result--page .icon { color: var(--color-accent); transition: transform var(--dur-mid) var(--ease-out); }
.search-result__link:hover .icon--arrow { transform: translateX(4px); }
.search-result--author .search-result__link:hover .search-result__name { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: .14em; }
.search-result--page .search-result__link { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; }
.result-group .pagination { margin-top: var(--s-6); }
@media (min-width: 760px) {
  .search-results--page .search-result__title { font-size: 1.375rem; }
  .search-result--author .search-result__link { grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-5); }
  .site-main--search { --thumb-row: 64px; }
}

/* empty state (search without result, 404): the site's sentence */
.search-empty {
  max-width: 30em; font-size: var(--fs-lead); line-height: 1.45; font-style: italic; color: var(--color-text-muted);
  hyphens: manual; text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   10. 404 (the search-without-result page with its own title; "404" is
   the kicker) + the "Nouveautés" shelf (search without result, 404)
   ------------------------------------------------------------------------- */
.tally--links { margin-bottom: 0; }

.news-shelf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-3); }
/* cards: base .book-card--compact */
@media (min-width: 760px) {
  .news-shelf__grid { column-gap: var(--gutter); }
  .news-shelf__grid > .book-card + .book-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-.5 * var(--gutter)); width: var(--rule-hair); background: var(--color-line-soft); }
}
