/* MashriQ Archive — MashriQ's own design system: white ground, one strong red,
   near-black ink, a humanist sans, and the red calligraphic swoosh as motif.
   Light (brand-true) + a neutral, branded dark theme. No web fonts, no
   external requests: every url() below points at a same-origin brand asset. */
:root {
  /* --- Surfaces + ink ------------------------------------------------- */
  --paper: #FFFFFF;
  --paper-alt: #F6F4F2;
  --ink: #232323;
  --ink-soft: #5C5C5C;
  --line: #E6E1DD;

  /* --- MashriQ red ----------------------------------------------------- */
  --red: #C51731;        /* red used for TEXT (links, badges, accents)      */
  --red-dark: #9E1227;   /* hover / pressed                                 */
  --red-solid: #C51731;  /* solid fills that carry --on-red text            */
  --red-line: #C51731;   /* decorative rules, underlines, focus ring        */
  --red-tint: #FBEDEF;   /* soft red wash behind badges and hovers          */
  --on-red: #FFFFFF;
  --ok: #1B6E36;         /* success state (semantic, not a brand colour)    */

  --shadow: 0 1px 2px rgba(35,35,35,.06), 0 6px 18px rgba(35,35,35,.07);
  --shadow-lift: 0 3px 8px rgba(35,35,35,.10), 0 16px 34px rgba(35,35,35,.13);
  --photo-ring: 0 0 0 1px #E6E1DD, 0 1px 3px rgba(35,35,35,.10);

  --radius: 10px;
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141414;
    --paper-alt: #1C1C1C;
    --ink: #F2EFEC;
    --ink-soft: #B4AFAB;
    --line: #2C2C2C;

    /* #E8394F is the brand red lightened for dark; it clears AA only against
       pure --paper, so text uses a further +6% lightness step of the same hue
       (#ED6274) and #E8394F stays on decorative rules and the focus ring. */
    --red: #ED6274;
    --red-dark: #F49AA6;
    --red-solid: #C51731;
    --red-line: #E8394F;
    --red-tint: rgba(232,57,79,.14);
    --on-red: #FFFFFF;
    --ok: #7BC98D;

    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.40);
    --shadow-lift: 0 3px 8px rgba(0,0,0,.50), 0 16px 34px rgba(0,0,0,.45);
    --photo-ring: 0 0 0 1px #2C2C2C, 0 1px 3px rgba(0,0,0,.50);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  /* The swoosh motif deliberately bleeds past the content column; keep that
     from ever producing a horizontal scrollbar. `clip` (no scroll container)
     wins where supported, `hidden` is the fallback. Neither clips the
     fixed-position lightbox, whose containing block is the viewport. */
  overflow-x: hidden;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-weight: 600; letter-spacing: -.01em; line-height: 1.25;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 56px; }

/* Keyboard accessibility: visible focus ring + skip-to-content link. */
:focus-visible { outline: 2px solid var(--red-line); outline-offset: 2px; }
a:focus-visible, button:focus-visible,
.filter:focus-visible, .tag:focus-visible, .card:focus-visible,
.album-cell:focus-visible, .quick-link:focus-visible,
.site-nav a:focus-visible, .notfound-btn:focus-visible {
  outline: 2px solid var(--red-line); outline-offset: 2px; border-radius: 8px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--red-solid); color: var(--on-red); padding: 10px 16px;
  border-radius: 8px; box-shadow: var(--shadow);
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px; outline: 2px solid #fff; outline-offset: 2px; text-decoration: none;
}

/* --- Site header: wordmark lockup + the swoosh bleeding off the edge --- */
.site-header {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* One restrained red band echoing the ribbon: a rule that fades out to the
   right, sitting on the header's bottom edge. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg,
    var(--red-line) 0, var(--red-line) 18%, rgba(197,23,49,0) 62%);
  pointer-events: none;
}
/* The calligraphic mark, clipped by the header and bleeding off the right
   page edge. Decorative only: aria-hidden in the markup, never interactive. */
.header-swoosh {
  position: absolute; top: -30px; right: -58px;
  width: 268px; height: 194px;
  background: url("mashriq-mark.png") no-repeat center / contain;
  opacity: .11; pointer-events: none;
}
.header-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; }
.brand-logo img {
  display: block; width: 160px; height: auto;
}
.brand-sub {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--ink-soft); padding-top: 6px;
}
.tagline {
  margin: 10px 0 0; color: var(--ink-soft); font-size: .93rem;
}

/* Site navigation */
.site-nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 2px;
}
.site-nav a {
  color: var(--ink); font-size: .97rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover {
  text-decoration: none; color: var(--red); border-color: var(--red-line);
}
.site-nav a.is-current {
  color: var(--red); border-color: var(--red-line);
}

/* Intro */
.intro { padding: 30px 0 8px; }
.intro h1 { margin: 0 0 6px; font-size: 1.6rem; }
.intro p { margin: 0; color: var(--ink-soft); }

/* Homepage hero / lede — the swoosh sits softly behind it. */
.hero { position: relative; padding: 34px 0 6px; }
.hero::after {
  content: ""; position: absolute; z-index: -1;
  top: 18px; right: -140px; width: 480px; height: 347px;
  background: url("mashriq-mark.png") no-repeat center / contain;
  opacity: .07; pointer-events: none;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.hero-lede {
  margin: 0; max-width: 60ch; font-size: 1.12rem; color: var(--ink);
}
.hero-lede em { color: var(--red); font-style: italic; }
.hero-stats {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.hero-stats li {
  color: var(--ink-soft); font-size: .88rem; letter-spacing: .01em;
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 13px;
}
.hero-links { margin: 16px 0 0; }
.hero-links a { font-size: .97rem; font-weight: 600; }

/* Timeline (tijdlijn.html) */
.year-group { padding: 6px 0 18px; }
.year-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 26px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.year-num {
  font-size: 1.45rem; color: var(--ink); font-weight: 600;
  letter-spacing: -.01em;
}
.year-count { font-size: .87rem; color: var(--ink-soft); }
.grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.grid-compact .card-title { font-size: .97rem; }
.grid-compact .card-body { padding: 10px 12px 13px; }

/* Over (over.html) */
.about { max-width: 760px; margin: 0 auto; }
.about-lede { font-size: 1.12rem; color: var(--ink); max-width: 60ch; }
.about-lede em { color: var(--red); font-style: italic; }
.about-body p { font-size: 1.03rem; }
.about-what { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.about-words { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.about-what h2, .about-cta h2, .about-words h2 { font-size: 1.3rem; margin: 24px 0 14px; }
.about-words-intro { color: var(--ink-soft); margin: 0 0 14px; }
.about-quote {
  margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red);
  max-width: 62ch;
}
.about-quote h3 {
  margin: 18px 0 6px; font-size: 1rem; color: var(--red);
  letter-spacing: .04em; text-transform: uppercase;
}
.about-quote h3:first-child { margin-top: 0; }
.about-quote p { margin: 0 0 10px; font-size: 1.03rem; }
.about-quote-source {
  margin-top: 14px; color: var(--ink-soft); font-size: .9rem; font-style: normal;
}
.about-activities {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.about-activity {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.about-activity h3 { margin: 0 0 5px; font-size: 1.03rem; color: var(--red); }
.about-activity p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.about-cta {
  margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 8px;
}
.about-cta p { max-width: 60ch; }
.about-explore { color: var(--ink-soft); }

/* Category filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 24px; }
.filter {
  font: inherit; font-size: .93rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper-alt); color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px; text-transform: capitalize;
  transition: background .15s, color .15s, border-color .15s;
}
.filter:hover {
  border-color: var(--red-line); color: var(--red); background: var(--red-tint);
}
.filter.is-active {
  background: var(--red-solid); color: var(--on-red); border-color: var(--red-solid);
}
.filter.is-active:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* --- Grid of cards: each card is a framed snapshot -------------------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover {
  text-decoration: none; color: inherit;
  transform: translateY(-2px) rotate(-.4deg);
  box-shadow: var(--shadow-lift); border-color: var(--line);
}
.card.is-hidden { display: none; }
/* The white mount: a few px of paper all round, so the image reads as a
   snapshot laid on the card rather than a bleed-to-edge tile. */
.card-media {
  /* A4 portrait (210x297) — the ratio most of the collection actually is
     (posters/flyers), so artwork fills the tile instead of being cropped to a
     band. Photo-album covers centre-crop into it, which reads fine. */
  aspect-ratio: 210 / 297; background: var(--paper); padding: 6px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media img.thumb {
  border-radius: 3px; box-shadow: var(--photo-ring);
  /* if anything does get trimmed, trim the foot — headlines live at the top */
  object-position: center top;
}
.thumb-doc {
  color: var(--red); background: var(--paper-alt); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--photo-ring);
}
.doc-icon { width: 46%; height: 46%; }
.card-body { padding: 12px 14px 16px; }
.card-title {
  margin: 8px 0 2px; font-size: 1.04rem; line-height: 1.32;
  font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.card-date { margin: 0; color: var(--ink-soft); font-size: .87rem; }

/* Category badge: red wash, red text. */
.badge {
  display: inline-block; font-size: .69rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--red-tint); color: var(--red);
}

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-soft); }
.empty-state h1 { color: var(--ink); }
.empty-state code {
  background: var(--paper-alt); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px;
}

/* --- Item detail ------------------------------------------------------ */
.backlink { padding: 24px 0 6px; }
.backlink a { font-weight: 600; font-size: .95rem; }
.detail { max-width: 820px; margin: 0 auto; }
.detail-head { margin-bottom: 10px; }
.detail-head h1 { margin: 10px 0 0; font-size: clamp(1.5rem, 4vw, 2.15rem); }
.description { color: var(--ink); font-size: 1.06rem; max-width: 62ch; }
.assets { margin: 24px 0; display: flex; flex-direction: column; gap: 24px; }
.asset { margin: 0; }
/* Detail images are mounted the same way: white paper, hairline, soft lift. */
.asset img {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
  border: 6px solid var(--paper); border-radius: var(--radius);
  box-shadow: var(--photo-ring), var(--shadow);
  background: var(--paper);
}
.pdf-embed {
  width: 100%; height: 78vh; min-height: 420px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-alt);
}
.asset-link { margin: 8px 0 0; }

/* Photo-album thumbnail grid (multi-image items) */
.album-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.album-cell {
  /* album grids hold event photographs, which are landscape — 4:3 crops far
     less than a square did */
  aspect-ratio: 4 / 3; overflow: hidden; padding: 5px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.album-cell:hover {
  transform: translateY(-2px) rotate(-.4deg);
  border-color: var(--line); box-shadow: var(--shadow-lift);
}
.album-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  margin: 0; border: 0; border-radius: 3px;
  box-shadow: var(--photo-ring); background: var(--paper-alt);
}

/* PDF page-1 preview + download affordance (detail page) */
.asset-pdf { margin: 0; }
.asset-pdf img { max-height: 78vh; width: auto; margin: 0 auto; }
.pdf-download { margin-top: 16px; text-align: center; }
.pdf-download a {
  display: inline-block; font: inherit; font-weight: 600;
  background: var(--red-solid); color: var(--on-red);
  border: 1px solid var(--red-solid); border-radius: 999px;
  padding: 10px 22px; transition: background .15s, border-color .15s;
}
.pdf-download a:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  color: var(--on-red); text-decoration: none;
}

.meta {
  margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 16px;
}
.meta-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.meta-row dt { color: var(--ink-soft); text-transform: capitalize; font-size: .93rem; }
.meta-row dd { margin: 0; }
.tags { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  font-size: .82rem; padding: 4px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}
a.tag:hover {
  text-decoration: none; color: var(--red);
  border-color: var(--red-line); background: var(--red-tint);
}

/* Tag pages, tag index, people page */
.tag-badge {
  display: inline-block; font-size: .69rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: var(--red-tint); color: var(--red); margin-bottom: 8px;
}
.intro .tag-badge + h1 { margin-top: 0; }

.tag-group { padding: 8px 0 18px; border-top: 1px solid var(--line); }
.tag-group:first-of-type { border-top: none; }
.tag-group h2 { margin: 20px 0 12px; font-size: 1.22rem; }
.tag-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.tag-list li {
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px;
  transition: border-color .15s, background .15s;
}
.tag-list li:hover { border-color: var(--red-line); background: var(--red-tint); }
.tag-list a { color: var(--ink); }
.tag-list a:hover { color: var(--red); text-decoration: none; }
.tag-count { color: var(--ink-soft); font-size: .8rem; margin-left: 4px; }

/* Footer */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 44px;
  border-top: 1px solid var(--line); color: var(--ink-soft);
}
.site-footer p { margin: 4px 0; font-size: .95rem; }
.muted { color: var(--ink-soft); font-size: .87rem; }

/* --- Contribute + visitor contributions ------------------------------- */
.contribute {
  max-width: 820px; margin: 44px auto 0;
  border-top: 1px solid var(--line); padding-top: 8px;
}
.contribute h2 { font-size: 1.22rem; margin: 26px 0 10px; }

.bevestigd-banner {
  margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius);
  background: var(--paper-alt); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--red-line);
}

/* Visitor contributions list */
.comments-list { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px; }
.comment {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow);
}
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 10px; margin-bottom: 4px; }
.comment-name { font-weight: 600; color: var(--ink); }
.comment-date { color: var(--ink-soft); font-size: .85rem; }
.comment-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Contribute form */
.contribute-intro { color: var(--ink-soft); margin: 0 0 16px; }
.contribute-form { display: flex; flex-direction: column; gap: 14px;
  max-width: 560px; }
.cf-label { display: flex; flex-direction: column; gap: 6px;
  color: var(--ink-soft); font-size: .92rem; }
.cf-label input, .cf-label textarea {
  font: inherit; color: var(--ink); background: var(--paper-alt);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px;
  width: 100%; resize: vertical;
}
.cf-label input:focus, .cf-label textarea:focus {
  outline: none; border-color: var(--red-line);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.cf-submit {
  align-self: flex-start; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--red-solid); color: var(--on-red);
  border: 1px solid var(--red-solid);
  padding: 10px 22px; border-radius: 999px;
  transition: background .15s, border-color .15s, opacity .15s;
}
.cf-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.cf-submit:disabled { opacity: .6; cursor: default; }

/* Honeypot: visually hidden, kept in the a11y tree off-screen for bots. */
.cf-hp {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.contribute-status { margin: 4px 0 0; min-height: 1.2em; font-size: .95rem; }
.contribute-status.is-ok { color: var(--ok); }
.contribute-status.is-error { color: var(--red); }

/* Homepage faceted quick-links (blader op afdeling / gelegenheid) */
.quick-links {
  display: grid; gap: 14px 28px; margin: 24px 0 4px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.quick-head {
  margin: 0 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.quick-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.quick-link {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px; color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.quick-link:hover {
  text-decoration: none; color: var(--red);
  border-color: var(--red-line); background: var(--red-tint);
}
.quick-count { color: var(--ink-soft); font-size: .8rem; }

/* Search page (zoeken.html) */
.search-form {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 20px 0 6px;
}
.search-label {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.search-input {
  flex: 1 1 320px; min-width: 0; font: inherit;
  color: var(--ink); background: var(--paper-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px;
}
.search-input::placeholder { color: var(--ink-soft); opacity: 1; }
.search-input:focus {
  outline: none; border-color: var(--red-line);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.search-submit {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--red-solid); color: var(--on-red);
  border: 1px solid var(--red-solid);
  padding: 10px 22px; border-radius: 999px;
}
.search-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.search-status { margin: 6px 0 16px; color: var(--ink-soft); min-height: 1.2em; }
.search-results { margin: 0 0 8px; }
.search-empty {
  text-align: center; padding: 40px 20px; color: var(--ink-soft);
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Custom 404 page */
.notfound {
  position: relative;
  text-align: center; padding: 60px 20px 76px; max-width: 620px; margin: 0 auto;
}
.notfound-code {
  margin: 0; font-size: clamp(3.4rem, 12vw, 5.6rem); font-weight: 700;
  line-height: 1; letter-spacing: -.03em; color: var(--red);
}
.notfound h1 { margin: 8px 0 12px; font-size: clamp(1.4rem, 4vw, 2rem); }
.notfound-lede { margin: 0 auto 28px; max-width: 46ch; color: var(--ink-soft); }
.notfound-actions {
  margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.notfound-btn {
  display: inline-block; font: inherit; font-weight: 600;
  background: var(--red-solid); color: var(--on-red);
  border: 1px solid var(--red-solid); border-radius: 999px;
  padding: 10px 22px; transition: background .15s, border-color .15s;
}
.notfound-btn:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  color: var(--on-red); text-decoration: none;
}
.notfound-btn-soft {
  background: var(--paper-alt); color: var(--ink); border-color: var(--line);
}
.notfound-btn-soft:hover {
  background: var(--red-tint); color: var(--red); border-color: var(--red-line);
}

/* --- Lightbox (image viewer on detail pages) --------------------------- */
/* The backdrop stays deliberately dark in both themes — photographs and
   scanned posters read best on near-black — but its chrome is on brand. */
.lightbox-trigger {
  display: block; width: 100%; padding: 0; margin: 0; border: 0;
  background: none; font: inherit; color: inherit; cursor: zoom-in;
}
.lightbox-trigger:focus-visible {
  outline: 2px solid var(--red-line); outline-offset: 3px; border-radius: 10px;
}
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .94); padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-img {
  max-width: min(100%, 1400px); max-height: 82vh;
  width: auto; height: auto; object-fit: contain;
  border: 6px solid #FFFFFF; border-radius: 6px;
  box-shadow: 0 10px 44px rgba(0, 0, 0, .6);
  background: #FFFFFF;
}
.lightbox-caption {
  color: #F2EFEC; font-size: .95rem; text-align: center;
  max-width: 60ch; margin: 0;
}
.lightbox-counter {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  color: #B4AFAB; font-size: .84rem; margin: 0; letter-spacing: .06em;
}
.lightbox-btn {
  position: absolute; cursor: pointer; font: inherit;
  color: #fff; background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  width: 48px; height: 48px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.lightbox-btn:hover {
  background: #C51731; border-color: #C51731;
}
.lightbox-btn:focus-visible { outline: 2px solid #E8394F; outline-offset: 2px; }
.lightbox-close { top: 14px; right: 14px; font-size: 1.9rem; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); font-size: 2.1rem; }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); font-size: 2.1rem; }

/* --- Upload page (/upload.html, share-only) ---------------------------- */
.upload { max-width: 720px; margin: 8px auto 0; }
.upload-lead { color: var(--ink-soft); margin: 0 0 18px; }
.upload-resume {
  margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--paper-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--red-line); color: var(--ink);
}
.upload-noscript {
  margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--red-tint); border: 1px solid var(--red-line);
}
.upload-form { display: flex; flex-direction: column; gap: 18px; }
.upload-fields { display: flex; flex-direction: column; gap: 12px; }
.upload-h2 { font-size: 1.15rem; margin: 10px 0 0; }
.up-req { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.upload-help {
  margin: -4px 0 4px; color: var(--ink-soft); font-size: .87rem;
  max-width: 60ch;
}

/* Consent + privacy: an opt-in the eye can find, never pre-checked. */
.upload-consent { margin: 6px 0 0; }
.up-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper-alt);
}
.up-check:hover { border-color: var(--red-line); }
.up-check input { margin: 2px 0 0; width: 17px; height: 17px; flex: none;
  accent-color: var(--red-solid); }
.up-check span { color: var(--ink); }
.up-check input:focus-visible {
  outline: 2px solid var(--red-line); outline-offset: 2px;
}
.upload-privacy {
  margin: 0; color: var(--ink-soft); font-size: .85rem; max-width: 62ch;
  line-height: 1.55;
}

/* Drop zone: a real <button>, so it is keyboard-operable for free. */
.upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; font: inherit; text-align: center; cursor: pointer;
  padding: 30px 18px; color: var(--ink);
  background: var(--paper-alt);
  border: 2px dashed var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.upload-drop:hover, .upload-drop.is-over {
  border-color: var(--red-line); background: var(--red-tint);
}
.upload-drop:focus-visible {
  outline: 2px solid var(--red-line); outline-offset: 3px;
}
.upload-drop-title { font-weight: 600; }
.upload-drop-sub { color: var(--ink-soft); font-size: .88rem; max-width: 42ch; }
/* The native input stays in the a11y tree (off-screen) — the button drives it. */
.upload-file-input {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Per-file rows */
.upload-list { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px; }
.upload-list:empty { display: none; }
.up-item {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius); padding: 11px 14px 13px;
}
.up-item-head { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 12px; margin-bottom: 8px; }
.up-item-name { font-weight: 600; overflow-wrap: anywhere; flex: 1 1 12ch; }
.up-item-size { color: var(--ink-soft); font-size: .85rem; }
.up-item-state { color: var(--ink-soft); font-size: .85rem; }
.up-item-detail { margin: 7px 0 0; color: var(--ink-soft); font-size: .82rem; }

.up-bar {
  height: 8px; border-radius: 999px; background: var(--paper-alt);
  border: 1px solid var(--line); overflow: hidden;
}
.up-bar-fill {
  display: block; height: 100%; width: 0;
  background: var(--red-solid); transition: width .2s linear;
}
.up-item[data-state="klaar"] { border-left-color: var(--ok); }
.up-item[data-state="klaar"] .up-bar-fill { background: var(--ok); }
.up-item[data-state="klaar"] .up-item-state { color: var(--ok); font-weight: 600; }
.up-item[data-state="bezig"] { border-left-color: var(--red-line); }
.up-item[data-state="hervat"] { border-left-color: var(--red-line); }
.up-item[data-state="mislukt"] { border-left-color: var(--red); }
.up-item[data-state="mislukt"] .up-item-state { color: var(--red); font-weight: 600; }
.up-item[data-state="gepauzeerd"] .up-bar-fill { opacity: .55; }

.up-retry {
  margin-top: 10px; font: inherit; font-size: .88rem; cursor: pointer;
  background: transparent; color: var(--red);
  border: 1px solid var(--red-line); border-radius: 999px; padding: 5px 14px;
}
.up-retry:hover { background: var(--red-tint); }

.upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upload-pause {
  font: inherit; cursor: pointer; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
}
.upload-pause:hover { border-color: var(--red-line); color: var(--red); }

.up-status { margin: 0; min-height: 1.3em; font-size: .95rem;
  color: var(--ink-soft); }
.up-status.is-error { color: var(--red); }
.up-status.is-busy { color: var(--ink); }

.upload-summary {
  margin: 6px 0 0; padding: 16px 18px; border-radius: var(--radius);
  background: var(--paper-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
}
.upload-summary p { margin: 8px 0 0; }
.upload-batch { color: var(--ink-soft); font-size: .88rem; }
.upload-batch code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem; color: var(--ink); overflow-wrap: anywhere;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .header-swoosh { width: 220px; height: 159px; top: -22px; right: -50px; opacity: .10; }
  .hero::after { width: 380px; height: 275px; right: -90px; opacity: .06; }
}
@media (max-width: 640px) {
  /* Never let the motif compete with text on small screens. */
  .header-swoosh, .hero::after { display: none; }
  .brand-logo img { width: 132px; }
  .brand { gap: 10px; }
}
@media (max-width: 520px) {
  .meta-row { grid-template-columns: 1fr; gap: 0; }
  .meta-row dt { font-size: .82rem; }
  .lightbox { padding: 10px; }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .album-cell:hover { transform: none; }
}
