/* Jens Søndergaard og Hustrus Mindelegat */

:root {
  --paper: #f4f1ea;
  --ink: #1a1a1a;
  --placeholder: #cfc8b8;
  --line: #d9d4c8;
  --nav: #444;
  --muted: #555;
  --soft: #777;
  --label: #888;
  --ph-text: #6a6458;
  --max: 1440px;
  --pad: 48px;
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --chrome-header: 64px;
  --chrome-footer: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Scroll: vertical always allowed when content is taller than the viewport; never horizontal */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-y: auto; }
body.mindelegat { overflow-x: hidden; overflow-x: clip; overflow-y: visible; }

body.mindelegat {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { max-width: 100%; margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Header — fixed top chrome */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--chrome-header);
  padding: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--chrome-header);
  padding: 0;
  border-bottom: none;
}
.brand {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.menu {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  font-size: 13px;
}
.menu a { color: var(--nav); white-space: nowrap; }
.menu a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  padding: 28px 0 24px;
}
.hero-copy { display: flex; flex-direction: column; justify-content: flex-start; }
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.hero-media {
  margin: 0;
  width: 100%;
  height: 200px;
  background: var(--placeholder);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text);
}

.section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.section-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}
.section-heading {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  margin-top: 10px;
}
.story-copy { min-width: 0; }
.story-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.prose { margin-top: 8px; }
.prose p {
  margin: 0 0 0.55rem;
  font-size: 12.5px;
  line-height: 1.4;
  color: #333;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }
.story-media {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: var(--placeholder);
  overflow: hidden;
}
.story-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.story-media .ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 180px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text);
}

.recipients-intro { max-width: 42rem; margin: 8px 0 0; }
.recipients-intro p {
  margin: 0 0 0.4rem;
  font-size: 12.5px;
  line-height: 1.4;
  color: #333;
}
.source-link {
  font-size: 12px;
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.gallery-card {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-card a.card-media { display: block; color: inherit; }
.gallery-card .frame {
  width: 100%;
  height: 88px;
  background: var(--placeholder);
  overflow: hidden;
}
.gallery-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card .frame .ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text);
}
.gallery-card .name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}
.gallery-card .year {
  margin: 0;
  font-size: 11px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.recipients-also {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.recipients-also a {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.purpose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 10px;
}
.purpose-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.purpose-grid p,
.purpose-grid li {
  font-size: 12.5px;
  line-height: 1.4;
  color: #333;
}
.purpose-grid p { margin: 0 0 0.45rem; }
.purpose-grid p:last-child { margin-bottom: 0; }
.purpose-grid ol { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.purpose-grid li { margin: 0.25rem 0; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.board-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.board-card > a {
  display: flex;
  flex-direction: column;
  gap: inherit;
  color: inherit;
}
.board-card > a:hover h3 { color: var(--muted); }
.board-card .frame {
  width: 100%;
  height: 72px;
  background: var(--placeholder);
  overflow: hidden;
}
.board-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.board-card .frame .ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text);
}
.board-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
}
.board-card p {
  margin: 0;
  font-size: 11px;
  color: var(--soft);
}

.contact p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Footer — fixed bottom chrome */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--chrome-footer);
  padding: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  height: var(--chrome-footer);
  padding: 0;
  border-top: none;
}
.site-footer p { margin: 0; font-size: 11px; color: var(--soft); }

/* Main clears fixed chrome */
body.mindelegat > main {
  padding-top: var(--chrome-header);
  padding-bottom: var(--chrome-footer);
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* Board person pages — identical frame for every member */
.person-page .person-hero {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 40px 0 32px;
  width: 100%;
  max-width: var(--max);
  box-sizing: border-box;
}
.person-page .person-portrait {
  margin: 0;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  background: var(--placeholder);
  overflow: hidden;
}
.person-page .person-portrait img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  max-height: none;
  object-fit: cover;
  object-position: center 20%;
}
.person-page .person-portrait .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  aspect-ratio: unset;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ph-text);
}
.person-page .person-copy {
  min-width: 0;
  max-width: 36rem;
  padding-top: 4px;
}
.person-page .person-copy .section-heading {
  margin-top: 10px;
  font-size: 28px;
}
.person-page .person-role {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--soft);
  min-height: 1.4em;
}
.person-page .person-bio {
  margin-top: 20px;
  min-height: 6.5rem;
}
.person-page .person-bio p {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.person-page .person-bio p:last-child { margin-bottom: 0; }
.person-page .back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.person-page .back-link:hover { color: var(--ink); }

/* —— Desktop fit: MUST come last so it wins —— */
@media (min-width: 1100px) and (min-height: 800px) {
  /* Fit look on desktop, but no scroll lock: grow + scroll vertically if content is taller */
  body.mindelegat:not(.person-page):not(.subpage) {
    min-height: 100vh;
    min-height: 100dvh;
  }

  :root { --pad: 56px; }


  body.mindelegat:not(.person-page):not(.subpage) .hero {
    padding: 10px 0 8px;
    gap: 28px;
  }
  body.mindelegat:not(.person-page):not(.subpage) .hero h1 { font-size: 24px; }
  body.mindelegat:not(.person-page):not(.subpage) .hero-lead { margin-top: 6px; font-size: 12px; line-height: 1.35; }
  body.mindelegat:not(.person-page):not(.subpage) .hero-media {
    height: 96px !important;
    min-height: 0 !important;
  }
  body.mindelegat:not(.person-page):not(.subpage) .hero-media img {
    height: 100% !important;
    min-height: 0 !important;
  }

  body.mindelegat:not(.person-page):not(.subpage) .section { padding: 8px 0; }
  body.mindelegat:not(.person-page):not(.subpage) .section-label { font-size: 9px; }
  body.mindelegat:not(.person-page):not(.subpage) .section-heading { margin-top: 4px; font-size: 18px; }

  body.mindelegat:not(.person-page):not(.subpage) .story-grid { margin-top: 6px; gap: 28px; }
  body.mindelegat:not(.person-page):not(.subpage) .story-copy h2 { font-size: 18px; }
  body.mindelegat:not(.person-page):not(.subpage) .prose { margin-top: 4px; max-height: 110px; overflow: hidden; }
  body.mindelegat:not(.person-page):not(.subpage) .prose p { margin: 0 0 0.3rem; font-size: 11px; line-height: 1.3; }
  body.mindelegat:not(.person-page):not(.subpage) .story-media {
    min-height: 0 !important;
    height: 110px !important;
  }
  body.mindelegat:not(.person-page):not(.subpage) .story-media img {
    min-height: 0 !important;
    height: 100% !important;
  }

  body.mindelegat:not(.person-page):not(.subpage) .recipients-intro { margin-top: 4px; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-intro p { margin: 0 0 0.25rem; font-size: 11px; line-height: 1.3; }
  body.mindelegat:not(.person-page):not(.subpage) .gallery-grid { margin-top: 8px; gap: 8px 14px; }
  body.mindelegat:not(.person-page):not(.subpage) .gallery-card { gap: 2px; }
  body.mindelegat:not(.person-page):not(.subpage) .gallery-card .frame { height: 52px !important; aspect-ratio: auto; }
  body.mindelegat:not(.person-page):not(.subpage) .gallery-card .name { font-size: 11px; }
  body.mindelegat:not(.person-page):not(.subpage) .gallery-card .year { font-size: 10px; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-also { margin-top: 6px; font-size: 10px; }

  body.mindelegat:not(.person-page):not(.subpage) .purpose-grid { margin-top: 6px; gap: 28px; }
  body.mindelegat:not(.person-page):not(.subpage) .purpose-grid h3 { font-size: 16px; margin-bottom: 0.3rem; }
  body.mindelegat:not(.person-page):not(.subpage) .purpose-grid p,
  body.mindelegat:not(.person-page):not(.subpage) .purpose-grid li { font-size: 11px; line-height: 1.3; margin-bottom: 0.3rem; }
  body.mindelegat:not(.person-page):not(.subpage) .purpose-grid ol { margin-bottom: 0.3rem; }

  body.mindelegat:not(.person-page):not(.subpage) .board-grid { margin-top: 6px; gap: 14px; }
  body.mindelegat:not(.person-page):not(.subpage) .board-card { gap: 3px; }
  body.mindelegat:not(.person-page):not(.subpage) .board-card .frame { height: 44px !important; aspect-ratio: auto; }
  body.mindelegat:not(.person-page):not(.subpage) .board-card h3 { font-size: 12px; }
  body.mindelegat:not(.person-page):not(.subpage) .board-card p { font-size: 10px; }

  body.mindelegat:not(.person-page):not(.subpage) .contact p { margin-top: 4px; font-size: 11px; }
}

/* Tall desktop: a bit more air if height ≥ 1000 */
@media (min-width: 1100px) and (min-height: 1000px) {
  body.mindelegat:not(.person-page):not(.subpage) .hero-media { height: 120px !important; }
  body.mindelegat:not(.person-page):not(.subpage) .gallery-card .frame { height: 64px !important; }
  body.mindelegat:not(.person-page):not(.subpage) .board-card .frame { height: 56px !important; }
  body.mindelegat:not(.person-page):not(.subpage) .prose { max-height: 140px; }
  body.mindelegat:not(.person-page):not(.subpage) .story-media { height: 140px !important; }
}

/* Below fit breakpoint: allow scroll (mobile/tablet) */
@media (max-width: 1099px), (max-height: 799px) {
  html, body.mindelegat { height: auto; max-height: none; }
}

@media (max-width: 900px) {
  :root { --pad: 28px; }
  :root { --chrome-header: 88px; --chrome-footer: 56px; }
  .site-header-inner { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .person-page .person-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .person-page .person-portrait { max-width: 280px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-media { height: 180px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-media, .story-media img { min-height: 160px; height: 160px; }
  .purpose-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card .frame { height: 120px; }
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-card .frame { height: 80px; }
}

@media (max-width: 520px) {
  :root { --pad: 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; max-width: 260px; }
  .hero h1 { font-size: 26px; }
}


/* Board hub page frames */
.person-page .board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.person-page .board-card .frame {
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: none;
}
.person-page .board-card h3 { font-size: 16px; }
.person-page .board-card p { font-size: 13px; }


/* Bestyrelse hub */
.board-hub-main {
  padding: 36px 0 40px;
}
.board-hub-lead {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}
.board-hub-grid {
  margin-top: 28px;
}
.board-hub .board-card .frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto !important;
  max-height: none;
}
.board-hub .board-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.board-hub .board-card h3 { font-size: 16px; }
.board-hub .board-card p { font-size: 13px; min-height: 2.6em; }
.board-hub .back-link { margin-top: 32px; }


/* === Historie vs Modtagere differentiation === */

/* HISTORIE — editorial narrative, one key image */
.story-section {
  padding-top: 28px;
  padding-bottom: 36px;
}
.story-head {
  max-width: 40rem;
  margin-bottom: 28px;
}
.story-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.story-dek {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 28rem;
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: start;
}
.story-section .story-copy.prose {
  margin-top: 0;
}
.story-section .prose p {
  margin: 0 0 1.15rem;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: #2a2a2a;
}
.story-section .prose p:last-child { margin-bottom: 0; }
.story-key-image {
  margin: 0;
  position: sticky;
  top: calc(var(--chrome-header) + 16px);
  background: var(--placeholder);
  overflow: hidden;
}
.story-key-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.story-key-image figcaption {
  margin: 10px 0 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--soft);
  line-height: 1.4;
}

/* MODTAGERE — catalog gallery, dense grid */
.recipients-section {
  padding-top: 22px;
  padding-bottom: 28px;
  background: transparent;
}
.recipients-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.recipients-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.recipients-meta {
  margin: 0;
  max-width: 28rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--soft);
  text-align: right;
}
.recipients-section .gallery-grid {
  margin-top: 20px;
  gap: 28px 24px;
}
.recipients-section .gallery-card {
  gap: 8px;
}
.recipients-section .gallery-card .frame {
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
}
.recipients-section .gallery-card .name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.recipients-section .gallery-card .year {
  font-size: 12px;
  color: var(--soft);
}
.recipients-section .recipients-also {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

/* Desktop fit: keep the two sections distinct under compression */
@media (min-width: 1100px) and (min-height: 800px) {
  body.mindelegat:not(.person-page):not(.subpage) .story-head h2 { font-size: 26px; }
  body.mindelegat:not(.person-page):not(.subpage) .story-dek { font-size: 12px; margin-top: 6px; }
  body.mindelegat:not(.person-page):not(.subpage) .story-layout { gap: 28px; margin-top: 0; }
  body.mindelegat:not(.person-page):not(.subpage) .story-section .prose {
    max-height: 160px;
    overflow: hidden;
  }
  body.mindelegat:not(.person-page):not(.subpage) .story-section .prose p {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    font-family: var(--font-serif);
  }
  body.mindelegat:not(.person-page):not(.subpage) .story-key-image {
    position: static;
  }
  body.mindelegat:not(.person-page):not(.subpage) .story-key-image img {
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: 160px;
    width: 100%;
    object-fit: cover;
  }
  body.mindelegat:not(.person-page):not(.subpage) .story-key-image figcaption { display: none; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-head { padding-bottom: 8px; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-head h2 { font-size: 11px; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-meta { font-size: 10px; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-section .gallery-grid { margin-top: 10px; gap: 10px 14px; }
  body.mindelegat:not(.person-page):not(.subpage) .recipients-section .gallery-card .frame {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; gap: 24px; }
  .story-key-image { position: static; max-width: 320px; }
  .story-head h2 { font-size: 28px; }
  .recipients-head { align-items: flex-start; }
  .recipients-meta { text-align: left; max-width: none; }
}


/* Home teasers */
.home-teasers { border-top: 1px solid var(--line); }
.teaser-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}
.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
}
.teaser-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.teaser-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  flex: 1 1 auto;
}
.teaser-card .source-link { margin-top: 8px; }

/* Subpages — room under fixed chrome, allow scroll */
.subpage > main {
  padding-top: var(--chrome-header);
  padding-bottom: calc(var(--chrome-footer) + 24px);
}
.subpage-main { padding-top: 36px; }
.story-page .story-title,
.recipients-page .recipients-title,
.contact-page #kontakt-heading {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.recipients-page .recipients-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-panel {
  margin-top: 24px;
  max-width: 28rem;
}
.contact-panel p {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.contact-email { font-size: 16px !important; }
.contact-note {
  font-size: 12px !important;
  color: var(--soft) !important;
}

@media (min-width: 1100px) and (min-height: 800px) {
  body.home-page .hero { padding: 28px 0 20px; }
  body.home-page .hero-media { height: 280px; min-height: 0; }
  body.home-page .hero-media img { min-height: 0; height: 100%; }
  body.home-page .teaser-grid { gap: 20px; }
  body.home-page .teaser-card h2 { font-size: 18px; }
}

@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .teaser-grid { grid-template-columns: 1fr; }
}


/* Board hub — cards without person-page links */
.board-hub .board-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.board-hub .board-role {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
  min-height: 2.6em;
}
.board-hub .board-blurb {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}
.board-hub .board-card {
  gap: 8px;
}
.board-hub .board-card .frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto !important;
  overflow: hidden;
  background: var(--placeholder);
}
.board-hub .board-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}


.board-hub .board-blurb p {
  margin: 0 0 0.55rem;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}
.board-hub .board-blurb p:last-child { margin-bottom: 0; }
.board-hub .board-hub-grid { align-items: start; }


.hero-media { position: relative; }
.hero-credit {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--soft);
  line-height: 1.35;
}
.gallery-card .cite {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.gallery-card .cite a {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Bestyrelse: portrætter samme størrelse som modtagernes billeder (2026-10-07) */
.board-hub .board-hub-grid { gap: 14px 20px; }
.board-hub .board-card .frame { aspect-ratio: 1 / 1; }

.board-card a.card-media { display: block; color: inherit; }

/* === Margener: centreret container med symmetriske sidemargener (2026-10-07) ===
   Flere ældre regler (fx .hero/.section { padding: X 0 }) nulstillede .wrap's sidepadding,
   så indholdet ramte vinduets kanter. Alle sider (også forsiden) bruger nu samme .wrap
   med de eksisterende --max/--pad-værdier. Denne blok skal ligge sidst. */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad) !important;
  padding-right: var(--pad) !important;
  box-sizing: border-box;
}

/* Forsidens heltebillede: galleriproportion i stedet for en tynd stribe */
body.mindelegat .hero { align-items: start; }
body.mindelegat.home-page:not(.person-page):not(.subpage) .hero-media,
body.mindelegat .hero-media {
  height: auto !important;
  min-height: 0 !important;
  background: none;
  overflow: visible;
}
body.mindelegat.home-page:not(.person-page):not(.subpage) .hero-media img,
body.mindelegat .hero-media img {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--placeholder);
}

/* Bestyrelsens portrætter: samme kolonneafstand som modtagernes gitter, så de aldrig bliver større */
.board-hub .board-hub-grid { column-gap: 24px; }
