/* Promystical, the open picture library. Thème clair, un seul accent : jaune surligneur. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted";
  src: url("fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --sunk: #ECEEF2;
  --ink: #15171B;
  --ink-2: #464C56;
  --ink-3: #5B626D;
  --rule: #DCDFE4;
  --rule-strong: #B9BEC6;
  --hl: #F2C230;
  --hl-edge: #D6A616;
  --hl-wash: rgba(242, 194, 48, 0.45);

  --display: "Bricolage", "Schibsted", system-ui, sans-serif;
  --text: "Schibsted", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 6px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; margin: 0; letter-spacing: -0.02em; font-stretch: 92%; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
a, button, summary { -webkit-tap-highlight-color: rgba(242, 194, 48, 0.3); }
select { color: var(--ink); background-color: var(--surface); }
.tile-link, .chip { scroll-margin-top: 210px; }
::selection { background: var(--hl); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--hl-wash);
  border-radius: 2px;
}

mark {
  background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 94%, transparent 94%);
  color: inherit;
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: var(--r);
}
.skip:focus { top: 12px; }
.toast-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 30; }
.head-row { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { display: block; height: 40px; width: auto; margin-left: -6px; flex: none; }
picture { display: contents; }
.brand-name { font-family: var(--display); font-weight: 720; font-size: 1.4rem; letter-spacing: -0.03em; font-stretch: 88%; line-height: 1; }
.brand-sub { font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a, .menu a {
  text-decoration: none; font-weight: 520; font-size: 0.95rem;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 100% / 0 3px;
  transition: background-size 200ms var(--ease-out);
  padding-block: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background-size: 100% 3px; }
}
.head-tools { display: flex; align-items: center; gap: 8px; }

.lang, .menu { position: relative; }
.lang summary, .menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r);
  font-size: 0.9rem; font-weight: 600; background: var(--surface);
  transition: border-color 150ms ease;
}
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang summary svg { transition: transform 200ms var(--ease-out); }
.lang[open] summary svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .lang summary:hover, .menu summary:hover { border-color: var(--ink); } }
.lang ul, .menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 12px 32px -12px rgba(21, 23, 27, 0.18);
  transform-origin: top right;
}
.lang[open] ul, .menu[open] ul { animation: pop 160ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(-2px); } }
.lang a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 4px; text-decoration: none; font-size: 0.95rem; }
.lang a:hover { background: var(--sunk); }
.lang a[aria-current] { background: var(--hl); }
.lang-code { font-size: 0.75rem; font-weight: 700; width: 22px; color: var(--ink-2); }
.lang a[aria-current] .lang-code { color: var(--ink); }
.menu { display: none; }
.menu ul { display: grid; }
.menu a { display: block; padding: 10px; }

/* ---------- intro ---------- */
.intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 24px;
  padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(28px, 3.5vw, 44px); align-items: end;
}
.intro h1 {
  grid-column: 1 / span 8;
  padding-bottom: 0.06em;
  font-size: clamp(2.15rem, 1rem + 3.3vw, 4rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 640; font-stretch: 86%;
  max-width: 21ch;
}
.intro-side { grid-column: 9 / span 4; display: grid; gap: 20px; }
.lede { color: var(--ink-2); font-size: 1.06rem; max-width: 40ch; }

.search label, .field > span { display: block; font-size: 0.82rem; font-weight: 620; margin-bottom: 6px; }
.search-row { display: flex; }
.search input, .field input, .field select {
  height: 48px; border: 1px solid var(--rule-strong); background: var(--surface);
  border-radius: var(--r); padding: 0 14px; min-width: 0; width: 100%;
}
.search input { border-radius: var(--r) 0 0 var(--r); border-right: 0; }
.search input::placeholder, .field input::placeholder { color: #737A85; }
.search button {
  height: 48px; padding: 0 18px; border: 0; border-radius: 0 var(--r) var(--r) 0;
  background: var(--ink); color: var(--surface); font-weight: 620; cursor: pointer;
  transition: transform 140ms var(--ease-press), background-color 150ms ease;
}
.search button:active { transform: scale(0.97); }

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r); font-weight: 620; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: transform 140ms var(--ease-press), background-color 150ms ease, border-color 150ms ease;
}
.btn { background: var(--ink); color: var(--surface); border: 1px solid var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong); }
.btn:active, .btn-ghost:active, .chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2A2E35; }
  .btn-ghost:hover { border-color: var(--ink); }
}
.btn-ghost.is-done { background: var(--hl); border-color: var(--hl-edge); }
.text-link { font-weight: 600; text-decoration-color: var(--hl-edge); text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- picture of the day ---------- */
.potd {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 48px; row-gap: 24px;
  padding-top: 28px; padding-bottom: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule);
  align-items: start;
}
.potd-fig { grid-column: 1 / span 7; margin: 0; }
.potd-img { display: block; background: var(--surface); border: 1px solid var(--rule); padding: clamp(12px, 2vw, 28px); }
.potd-img img { width: 100%; max-height: 66vh; object-fit: contain; }
.potd-text { grid-column: 8 / span 5; display: grid; gap: 18px; align-content: start; }
.label { font-size: 0.95rem; font-weight: 640; }
.potd-text h2 { font-size: clamp(1.9rem, 1rem + 2.2vw, 2.9rem); line-height: 1.04; letter-spacing: -0.03em; }
.potd-text h2 a { text-decoration: none; }
.potd-text h2 a:hover { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 4px; }
.meta { margin: 0; display: grid; grid-template-columns: max-content 1fr; column-gap: 20px; row-gap: 6px; padding-top: 14px; border-top: 1px solid var(--rule); }
.meta > div { display: contents; }
.meta dt { font-size: 0.85rem; color: var(--ink-3); padding-top: 2px; }
.meta dd { margin: 0; font-size: 0.95rem; }
.potd-story { display: grid; gap: 10px; color: var(--ink-2); max-width: 60ch; }
.potd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- wall ---------- */
.wall { padding-bottom: clamp(56px, 7vw, 104px); }
.wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 2px solid var(--ink); }
.wall-head h2, .collections > h2, .reuse h2, .near h2 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.3rem); line-height: 1.1; }
.count { font-size: 0.95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.filters {
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  padding: 16px 0 14px; margin-bottom: 20px; display: grid; gap: 12px;
  border-bottom: 1px solid var(--rule);
}
.no-js .filters, .no-js .count { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 13px; border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--surface); font-size: 0.9rem; font-weight: 520; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-press);
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.chip[aria-pressed="true"] { background: var(--hl); border-color: var(--hl-edge); font-weight: 620; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field { display: block; }
.field select, .field input { height: 40px; width: auto; min-width: 190px; }
.field select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%2315171B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field-q { flex: 1 1 220px; }
.field-q input { width: 100%; }
.reset { height: 40px; padding: 0 6px; border: 0; background: none; font-weight: 600; text-decoration: underline; text-decoration-color: var(--hl-edge); text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; }

.masonry { columns: 4 240px; column-gap: 28px; }
.tile { break-inside: avoid; margin-bottom: 30px; }
.tile[hidden] { display: none; }
.tile-link { display: grid; gap: 4px; text-decoration: none; }
.tile-img { display: block; background: var(--sunk); overflow: hidden; border: 1px solid var(--rule); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.tile-title { font-weight: 620; font-size: 0.95rem; line-height: 1.3; margin-top: 8px; }
.tile-meta { font-size: 0.85rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .tile-img img { transform: scale(1.025); }
  .tile-link:hover .tile-title { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
}

/* reveal: the final state is the default; JS only adds .pre before the first paint of off-screen tiles */
.tile.pre { opacity: 0; transform: translateY(14px); }
.tile.in { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out); }
.tile.flash { animation: flash 180ms ease-out; }
@keyframes flash { from { opacity: 0.35; } }

.empty { border: 1px dashed var(--rule-strong); background: var(--surface); padding: 28px; display: grid; gap: 10px; justify-items: start; max-width: 640px; }
.empty-title { font-family: var(--display); font-weight: 640; font-size: 1.3rem; letter-spacing: -0.02em; }
.empty p:not(.empty-title) { color: var(--ink-2); }

/* ---------- collections ---------- */
.collections { padding-bottom: clamp(56px, 7vw, 104px); display: grid; gap: 28px; }
.collections > h2 { padding-top: 28px; border-top: 2px solid var(--ink); }
.col-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: 40px; }
.col { grid-column: span 4; display: grid; gap: 12px; align-content: start; }
.col-lead { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto auto auto; column-gap: 40px; }
.col-lead .col-thumbs { grid-column: 1 / span 8; grid-row: 1 / 5; }
.col-lead h3 { grid-row: 2; } .col-lead p { grid-row: 3; } .col-lead .text-link { grid-row: 4; }
.col-lead h3, .col-lead p, .col-lead .text-link { grid-column: 9 / span 4; }
.col-lead .text-link { justify-self: start; }
.col h3 { font-size: 1.5rem; line-height: 1.15; }
.col-lead h3 { font-size: clamp(1.7rem, 1rem + 1.4vw, 2.2rem); }
.col p { color: var(--ink-2); max-width: 58ch; }
.col-thumbs { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 10px; }
.col-thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sunk); border: 1px solid var(--rule); }
.col:not(.col-lead) .col-thumb { aspect-ratio: calc(4 / var(--n, 3)); }
.col-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .col-thumb:hover img { transform: scale(1.03); } }

/* ---------- reuse ---------- */
.reuse { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: 28px; padding-bottom: clamp(56px, 7vw, 104px); }
.reuse-lead { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; padding-top: 28px; border-top: 2px solid var(--ink); }
.reuse-points { grid-column: 7 / span 6; display: grid; gap: 26px; padding-top: 28px; border-top: 2px solid var(--ink); }
.reuse-points h3 { font-size: 1.15rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.reuse-points p { color: var(--ink-2); max-width: 62ch; }
.credit-box { background: var(--surface); border: 1px solid var(--rule); padding: 20px; display: grid; gap: 12px; justify-items: start; }
.credit-label { font-size: 0.85rem; font-weight: 620; }
.credit-text { font-size: 0.98rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: 32px; }
.foot-about { grid-column: 1 / span 7; display: grid; gap: 12px; align-content: start; }
.foot-about p { color: var(--ink-2); font-size: 0.95rem; }
.foot-brand { font-size: 1.5rem; color: var(--ink) !important; }
.foot-h { font-size: 1.05rem; letter-spacing: -0.01em; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-langs a { font-weight: 600; }

/* ---------- notice ---------- */
.crumbs { padding: 20px 0 8px; font-size: 0.88rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); }

.notice-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 48px; row-gap: 28px; padding: 16px 0 clamp(48px, 6vw, 88px); align-items: start; }
.notice-media { grid-column: 1 / span 7; position: sticky; top: 16px; display: grid; gap: 14px; }
.notice-fig { margin: 0; display: grid; gap: 10px; }
.zoom-trigger { display: block; width: 100%; border: 1px solid var(--rule); background: var(--surface); padding: clamp(12px, 2vw, 24px); cursor: zoom-in; }
.zoom-trigger img { margin-inline: auto; max-height: 76vh; width: auto; object-fit: contain; }
.notice-fig figcaption { font-size: 0.85rem; color: var(--ink-3); }
.media-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.media-actions .text-link { font-size: 0.9rem; }
.notice-text { grid-column: 8 / span 5; display: grid; gap: 20px; }
.notice-text h1 { font-size: clamp(1.9rem, 1rem + 2.1vw, 2.9rem); line-height: 1.05; letter-spacing: -0.03em; }
.notice-sub { color: var(--ink-2); font-size: 1.05rem; margin-top: -8px; }
.meta-full { row-gap: 9px; }
.meta-full dd a { font-weight: 560; }
.lic dd { color: var(--ink-2); }
.lic mark { color: var(--ink); font-weight: 640; }
.block { display: grid; gap: 10px; justify-items: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.block h2 { font-size: 1.2rem; letter-spacing: -0.015em; }
.block p { max-width: 62ch; }
.block p + p { margin-top: 2px; }
.cite { font-size: 0.88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.near { padding-bottom: clamp(56px, 7vw, 96px); display: grid; gap: 22px; }
.near h2 { padding-top: 28px; border-top: 2px solid var(--ink); }
.masonry-near { columns: 6 170px; column-gap: 22px; }
.masonry-near .tile-title { font-size: 0.88rem; }

/* zoom viewer */
.zoom {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.zoom[open] { display: grid; grid-template-rows: auto 1fr; animation: zoom-in 220ms var(--ease-out); }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.985); } }
.zoom::backdrop { background: rgba(21, 23, 27, 0.4); }
.zoom-bar { display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter); border-bottom: 1px solid var(--rule); background: var(--surface); }
.zoom-hint { margin-right: auto; font-size: 0.88rem; color: var(--ink-2); }
.zoom-stage { overflow: auto; display: grid; place-items: center; padding: 16px; cursor: zoom-in; overscroll-behavior: contain; }
.zoom-stage [hidden] { display: none !important; }
img { max-width: 100%; max-height: calc(100dvh - 100px); width: auto; height: auto; }
.zoom-stage.full { place-items: start; cursor: zoom-out; }
.zoom-stage.full img { max-width: none; max-height: none; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .head-tools { margin-left: auto; }
  .intro h1 { grid-column: 1 / -1; max-width: 20ch; }
  .intro-side { grid-column: 1 / span 8; }
  .potd-fig { grid-column: 1 / -1; }
  .potd-text { grid-column: 1 / -1; }
  .col-lead .col-thumbs { grid-column: 1 / span 7; }
  .col-lead h3, .col-lead p, .col-lead .text-link { grid-column: 8 / span 5; }
  .reuse-lead, .reuse-points { grid-column: 1 / -1; }
  .notice-media { grid-column: 1 / -1; position: static; }
  .notice-text { grid-column: 1 / -1; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .head-row { gap: 12px; min-height: 60px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand-logo { height: 32px; margin-left: -5px; }
  .brand-sub { font-size: 0.8rem; }
  .intro { padding-top: 28px; }
  .intro-side { grid-column: 1 / -1; }
  .potd { column-gap: 0; }
  .potd-img { padding: 10px; }
  .potd-img img { max-height: none; }
  .filters { position: static; }
  .field select { min-width: 0; width: 100%; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; }
  .field-q { grid-column: 1 / -1; }
  .masonry { columns: 2; column-gap: 14px; }
  .tile { margin-bottom: 20px; }
  .tile-title { font-size: 0.88rem; }
  .tile-meta { font-size: 0.8rem; }
  .intro, .potd, .col-grid, .col-lead, .reuse, .foot-grid, .notice-grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .intro > *, .potd > *, .col-grid > *, .col-lead > *, .reuse > *, .foot-grid > *, .notice-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .col-lead { gap: 12px; }
  .masonry-near { columns: 2; column-gap: 14px; }
  .meta { column-gap: 14px; }
  .zoom-hint { display: none; }
  .zoom-bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .tile.pre { transform: none; }
  .tile.in { transition: opacity 200ms ease; }
  .tile-img img, .col-thumb img { transition: none; }
  .tile-link:hover .tile-img img, .col-thumb:hover img { transform: none; }
  .tile.flash, .zoom[open], .lang[open] ul, .menu[open] ul { animation: none; }
}

cite { font-style: italic; }

/* ---------- footer additions ---------- */
.foot-logo { display: block; height: 40px; width: auto; margin-left: -6px; }


/* ---------- 404 ---------- */
.nf { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); display: grid; gap: 18px; justify-items: start; }
.nf h1 { font-size: clamp(2.2rem, 1rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; font-stretch: 86%; }
.nf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 980px; margin-top: 12px; }
.nf-list a { display: grid; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; transition: border-color 150ms ease; }
.nf-list a:hover { border-color: var(--ink); }
.nf-lang { font-weight: 640; }
.nf-sub { font-size: 0.88rem; color: var(--ink-3); }
.nf-others { color: var(--ink-3); font-size: 0.88rem; max-width: 80ch; }
.nf-others span + span::before { content: " / "; color: var(--rule-strong); }
@media (max-width: 720px) { .nf-list { grid-template-columns: 1fr; } }

.sources { display: grid; gap: 6px; font-size: 0.9rem; }
.sources a { color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- rubriques (thèmes, collections, réutiliser) : composants existants ---------- */
a.chip { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
a.chip[aria-current="page"] { background: var(--hl); border-color: var(--hl-edge); font-weight: 620; }
.nav a[aria-current="page"] { background-size: 100% 3px; }
.intro-hub { align-items: start; }
.intro-hub .intro-side { grid-column: 1 / span 8; gap: 12px; }
.intro-hub .lede { max-width: 66ch; }
.hub .crumbs { padding-bottom: 0; }
.col h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .col h3 a:hover { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; } }
.wall .chips { margin-top: 8px; }
.notice-text .lede { max-width: 62ch; font-size: 1rem; }
