/* Promotiepagina dr. Josine Görtzen
   Kleuren ontleend aan de presentatie (marineblauw, warm grijs) en de omslag (blauwgroen verloop). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-italic.woff2") format("woff2");
}

:root {
  --navy: #002060;
  --navy-2: #0b2e78;
  --ink: #1d2733;
  --ink-soft: #4a5868;
  --paper: #f1ecea;
  --paper-2: #e8e1de;
  --card: #ffffff;
  --line: #d9d1cd;
  --teal: #2b93b8;
  --teal-dark: #1c6f8f;
  --sky: #7cc5d4;
  --sky-soft: #e3f2f6;
  --focus: #2b93b8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 32, 96, .06), 0 8px 24px rgba(0, 32, 96, .08);
  --nav-h: 60px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", Calibri, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Taalschakeling: inhoud staat in beide talen in de pagina */
html[data-lang="nl"] body [lang="en"],
html[data-lang="en"] body [lang="nl"] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--navy); padding: .5rem 1rem; z-index: 10000; outline: 3px solid var(--teal);
}
.skip:focus { left: 1rem; top: .5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Navigatie ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  height: 100%;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  font-weight: 800; color: var(--navy); text-decoration: none; white-space: nowrap;
  font-size: 1.05rem;
}
.brand:hover { color: var(--teal-dark); }
.topbar nav { flex: 1; min-width: 0; }
#nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2px; flex: 1; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
}
#nav::-webkit-scrollbar { display: none; }
#nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
#nav a:hover { background: var(--sky-soft); }
#nav a.current { background: var(--navy); color: #fff; }

.langswitch { display: flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; flex: none; }
.langswitch button {
  font: inherit; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--navy); padding: 4px 11px; cursor: pointer;
}
.langswitch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

@media (max-width: 900px) {
  :root { --nav-h: 92px; }
  .topbar .wrap { flex-wrap: wrap; align-content: center; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .brand { flex: 1; }
  .topbar nav { order: 3; flex: 0 0 calc(100% + 40px); margin: 0 -20px; }
  #nav { justify-content: flex-start; padding: 0 14px; }
  #nav a { padding: 5px 10px; font-size: .9rem; }
}

/* ---------- Algemene secties ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-alt { background: #fff; }

.eyebrow {
  display: inline-block; margin: 0 0 .6rem;
  background: var(--navy); color: #fff;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 1.2rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 .7rem; }
h4 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: .7em 1.15em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-sun { background: #fff; color: var(--navy); }
.btn-sun:hover { background: var(--sky-soft); color: var(--navy); }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--sky-soft); color: var(--navy); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0 0; }

/* ---------- Home ---------- */
#home {
  padding: calc(var(--nav-h) + 56px) 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(124, 197, 212, .25), transparent 60%),
    var(--navy);
  color: #fff;
  border-top: 0;
}
.hero {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center;
}
.hero-cover {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transform: rotate(-1.5deg);
  background: var(--teal);
}
.hero .kicker { color: var(--sky); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .8rem; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0 0 .8rem; letter-spacing: -.01em; }
.hero .author { font-size: 1.35rem; font-weight: 700; margin: 0 0 1.4rem; color: #fff; }
.question {
  background: #fff; color: var(--navy);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.2rem;
  font-size: 1.12rem; font-weight: 700; line-height: 1.45;
  border-left: 8px solid var(--teal);
}
.question .q-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); margin-bottom: .3rem; font-weight: 800; }
.hero .meta { color: #dfe7f5; margin: 0; }
.hero .meta strong { color: #fff; }
.hero .funding { color: #b9c6e0; font-size: .9rem; margin-top: 1.6rem; max-width: 62ch; }
.hero .funding a { color: #fff; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-cover { max-width: 240px; margin: 0 auto; }
}

/* ---------- Samenvatting ---------- */
.intro-text { max-width: 760px; }

.programme {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start;
  margin: 2.4rem 0 1rem;
}
.panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 26px;
}
.panel h3 { margin-top: 0; }
figure { margin: 0; }
figure img { border-radius: 10px; }
figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; }
@media (max-width: 860px) { .programme { grid-template-columns: 1fr; } }

.studies { display: grid; gap: 22px; margin: 2.4rem 0; }
.study {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px;
}
.study-ill {
  width: 190px; height: 190px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 6px solid var(--sky-soft);
  display: grid; place-items: center;
}
.study-ill img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.study h3 { margin: .2rem 0 .7rem; font-size: 1.25rem; }
.study .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .2rem; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  padding: 2px 9px; border-radius: 4px; background: var(--navy); color: #fff;
}
.tag.light { background: var(--sky-soft); color: var(--navy); }
.study .pubnote { font-size: .92rem; color: var(--ink-soft); margin: .4rem 0 0; }
.study .readlink {
  font: inherit; font-weight: 800; color: var(--teal-dark); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .15em;
}
.study .readlink:hover { color: var(--navy); }
blockquote.quote {
  margin: 1rem 0 .6rem; padding: 14px 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-style: italic; font-size: 1.05rem;
}
blockquote.quote p { margin: 0; }
blockquote.quote footer { font-style: normal; font-size: .85rem; color: #c9d4ea; margin-top: .4rem; }
@media (max-width: 700px) {
  .study { grid-template-columns: 1fr; padding: 22px 20px; gap: 16px; }
  .study-ill { width: 150px; height: 150px; }
}

.conclusion {
  background: var(--sky-soft); border-radius: var(--radius);
  padding: 28px 30px; border-left: 8px solid var(--teal);
}
.conclusion h3 { margin-top: 0; }
.conclusion p:last-child { margin-bottom: 0; }

/* ---------- PDF-viewer ---------- */
.reader { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .reader { grid-template-columns: 1fr; } }
.toc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 12px; }
.toc h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { border-top: 1px solid #eee7e4; }
.toc button {
  font: inherit; font-size: .92rem; line-height: 1.35; text-align: left; width: 100%;
  background: none; border: 0; padding: 8px 4px; color: var(--ink); cursor: pointer; display: flex; gap: 8px;
}
.toc button:hover { color: var(--navy); background: var(--sky-soft); }
.toc .num { font-weight: 800; color: var(--teal-dark); min-width: 1.6em; }
.biblio { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.biblio dt { font-weight: 800; color: var(--ink); }
.biblio dd { margin: 0 0 .5rem; word-break: break-word; }

.viewer {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.viewer-stage {
  position: relative; background: #e9e4e2;
  display: grid; place-items: center; overflow: hidden;
}
.viewer[data-kind="book"] .viewer-stage { height: min(82vh, calc((100vw - 40px) * 1.412)); }
.viewer[data-kind="slides"] .viewer-stage { aspect-ratio: 16 / 9; }
.viewer canvas { display: block; max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.viewer-poster {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(180deg, #2b93b8, #7cc5d4);
}
.viewer-poster[hidden] { display: none; }
.viewer-poster > div { display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.viewer-poster img { max-height: min(48vh, 420px); max-width: 70%; width: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); margin: 0 auto 16px; }
.viewer-poster .btn { margin: 0 auto; }
.viewer-poster .size { display: block; color: #fff; font-size: .85rem; margin-top: 8px; }
.viewer-msg { position: absolute; inset: auto 0 0 0; padding: 10px; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.viewer-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-top: 1px solid var(--line); background: #faf8f7;
}
.viewer-bar .spacer { flex: 1; }
.vbtn {
  font: inherit; font-weight: 800; font-size: .95rem; line-height: 1;
  min-width: 40px; height: 38px; padding: 0 12px; border-radius: 999px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.vbtn:hover { background: var(--sky-soft); color: var(--navy); }
.vbtn[disabled] { opacity: .35; cursor: default; background: #fff; }
.vbtn.solid { background: var(--navy); color: #fff; }
.vbtn.solid:hover { background: var(--navy-2); color: #fff; }
.vbtn svg { width: 18px; height: 18px; }
.pageinfo { font-size: .95rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.pageinfo input {
  width: 3.6em; font: inherit; font-weight: 700; text-align: center; padding: 4px 2px;
  border: 2px solid var(--line); border-radius: 8px; color: var(--navy);
}
.viewer:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.viewer:fullscreen .viewer-stage { flex: 1; aspect-ratio: auto; max-height: none; }
@media (max-width: 520px) {
  .vbtn .lbl { display: none; }
}

/* ---------- Over Josine ---------- */
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; }
.portrait { border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; width: 260px; }
.about-side { display: grid; gap: 20px; justify-items: center; text-align: center; }
.about-side .card { width: 100%; text-align: left; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.card h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.linklist { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.linklist li { padding: 3px 0; }
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0; border-left: 3px solid var(--sky); }
.timeline li { position: relative; padding: 0 0 .9rem 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: .45em; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
}
.timeline .when { display: block; font-weight: 800; color: var(--navy); font-size: .92rem; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: 200px; }
}

/* ---------- Publicaties ---------- */
.pubgroup { margin-bottom: 2rem; }
.pubgroup h3 { border-bottom: 3px solid var(--sky); padding-bottom: .3rem; margin-bottom: .8rem; }
.publist { list-style: none; margin: 0; padding: 0; }
.publist li {
  padding: 12px 0 12px 1.6em; text-indent: -1.6em; border-bottom: 1px solid #eee7e4; word-break: break-word;
}
.publist li > * { text-indent: 0; }
.publist .me { font-weight: 800; }
.publist .kind {
  display: inline-block; text-indent: 0; margin-left: .3em; font-size: .75rem; font-weight: 800; letter-spacing: .03em;
  background: var(--sky-soft); color: var(--navy); border-radius: 4px; padding: 0 7px; vertical-align: .1em;
}

/* ---------- Promotie ---------- */
.defence { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .defence { grid-template-columns: 1fr; } }
.committee { list-style: none; margin: 0; padding: 0; }
.committee li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee7e4; }
.committee .role { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 480px) { .committee li { grid-template-columns: 1fr; gap: 0; } }
details.explain { margin-top: 1.4rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 22px; }
details.explain summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 16px 0; }
details.explain[open] { padding-bottom: 8px; }
.slides-block { margin-top: 3rem; }

/* Fotogalerij promotie */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery a {
  display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px;
  background: var(--paper-2); box-shadow: var(--shadow); cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.gallery a.pos-top img { object-position: 50% 18%; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

dialog.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0, 18, 54, .94); color: #fff;
}
dialog.lightbox::backdrop { background: rgba(0, 18, 54, .94); }
dialog.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 56px 72px 20px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.lightbox figcaption { color: #dfe7f5; text-align: center; margin-top: .8rem; font-size: .95rem; }
.lightbox .lb-credit { display: block; font-size: .8rem; color: #a9b8d4; margin-top: .2rem; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 14px; top: 14px; }
.lightbox :focus-visible { outline-color: var(--sky); }
@media (max-width: 600px) {
  .lightbox figure { padding: 64px 12px 76px; }
  .lightbox img { max-height: calc(100vh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

/* ---------- Referenties ---------- */
.reflist { list-style: none; margin: 0; padding: 0; font-size: .95rem; columns: 1; }
.reflist li { padding: 6px 0 6px 2em; text-indent: -2em; word-break: break-word; }
.reflist li a { word-break: break-all; }

/* ---------- Voet ---------- */
.footer-art { background: var(--paper); border-top: 1px solid var(--line); }
.footer-art img { max-width: 760px; width: 100%; margin: 0 auto; display: block; }
footer.site {
  background: var(--navy); color: #c9d4ea; padding: 28px 0; font-size: .92rem;
}
footer.site a { color: #fff; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .topbar nav { flex-basis: calc(100% + 32px); margin: 0 -16px; }
  #nav { padding: 0 10px; }
  .panel, .conclusion { padding: 20px; }
}

@media print {
  .topbar, .viewer, .langswitch, .footer-art, dialog.lightbox { display: none !important; }
  #home { background: #fff; color: #000; padding-top: 20px; }
  .hero h1, .hero .author { color: #000; }
}

#home :focus-visible, footer.site :focus-visible { outline-color: var(--sky); }
