/* =====================================================================
   Tilburg University — Agile Playbook
   Centrale styling & branding. Pas hier kleuren/typografie aan
   om de hele site te herthemen (zie :root variabelen).
   ===================================================================== */

:root {
  /* --- Brand kleuren (Tilburg University) --- */
  --tiu-navy:      #003366;   /* Primaire kleur */
  --tiu-navy-800:  #012a52;
  --tiu-navy-600:  #0a4a86;
  --tiu-gold:      #CC9933;   /* Accent */
  --tiu-gold-soft: #e9c877;
  --white:         #ffffff;
  --black:         #1a1a1a;

  /* --- Content-area (licht thema) --- */
  --bg:            #f5f7fa;   /* Achtergrond content-area */
  --surface:       #ffffff;   /* Kaarten / content-blok */
  --text:          #23303d;   /* Bodytekst */
  --text-soft:     #556270;   /* Secundaire tekst */
  --border:        #dfe5ec;   /* Randen / scheidingslijnen */

  /* --- Callout kleuren --- */
  --tip-bg:        #eef7f0;  --tip-border:  #2e8b57;  --tip-ink:  #1f5e3a;
  --warn-bg:       #fdf3e7;  --warn-border: #d98324;  --warn-ink: #8a4b12;
  --note-bg:       #eef2fb;  --note-border: #3457a6;  --note-ink: #1f3873;
  --best-bg:       #fbf4e6;  --best-border: var(--tiu-gold); --best-ink: #7a5a15;

  /* --- Layout maten --- */
  --sidebar-w:     320px;
  --header-h:      64px;
  --content-max:   860px;
  --radius:        8px;
  --shadow:        0 1px 3px rgba(0,32,64,.08), 0 4px 16px rgba(0,32,64,.06);

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* ============================ Reset ================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tiu-navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ====================== Diagonal-cut motief ========================= */
/* TiU-signatuur: linksonder diagonaal afgesneden hoek.
   clip-path variabele hergebruikt op headers & dividers. */
.tiu-cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }

/* ============================ Topbar =============================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--tiu-navy);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,32,64,.18);
}
.topbar .hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 6px; color: var(--white);
}
.topbar .hamburger:hover { background: rgba(255,255,255,.12); }
.topbar .hamburger svg { width: 24px; height: 24px; }

.topbar .brand {
  display: flex; align-items: center; gap: 12px; color: var(--white);
  cursor: pointer; user-select: none;
}
.topbar .brand .logo-chip {
  background: var(--white); border-radius: 6px; padding: 5px 8px; line-height: 0;
}
.topbar .brand .logo-chip img { height: 26px; display: block; }
.topbar .brand .title { font-size: 17px; font-weight: bold; letter-spacing: .2px; }
.topbar .brand .title span { color: var(--tiu-gold); }

/* Search */
.search-wrap { margin-left: auto; position: relative; width: min(420px, 42vw); }
.search-wrap input {
  width: 100%; height: 40px; border: 0; border-radius: 20px;
  padding: 0 44px 0 42px; font-family: var(--font); font-size: 14.5px;
  background: rgba(255,255,255,.14); color: var(--white); outline: none;
  transition: background .15s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,.7); }
.search-wrap input:focus { background: var(--white); color: var(--black); }
.search-wrap input:focus::placeholder { color: var(--text-soft); }
.search-wrap .s-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: rgba(255,255,255,.8); pointer-events: none;
}
.search-wrap input:focus ~ .s-icon { color: var(--tiu-navy); }
.search-wrap .s-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.12); color: #fff; display: none; align-items: center; justify-content: center;
}
.search-wrap input:focus ~ .s-clear { color: var(--tiu-navy); }

/* Search results dropdown */
.search-results {
  position: absolute; top: 48px; left: 0; right: 0; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); display: none; z-index: 200;
}
.search-results.open { display: block; }
.search-results .sr-empty { padding: 18px; color: var(--text-soft); font-size: 14px; }
.search-results .sr-item {
  display: block; padding: 11px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.search-results .sr-item:last-child { border-bottom: 0; }
.search-results .sr-item:hover, .search-results .sr-item.active { background: #eef2f7; }
.search-results .sr-crumb { font-size: 11.5px; color: var(--tiu-gold); font-weight: bold; text-transform: uppercase; letter-spacing: .4px; }
.search-results .sr-title { font-size: 15px; color: var(--tiu-navy); font-weight: bold; margin: 2px 0; }
.search-results .sr-snippet { font-size: 13px; color: var(--text-soft); }
.search-results mark { background: var(--tiu-gold-soft); color: var(--black); padding: 0 1px; border-radius: 2px; }

/* ============================ Layout =============================== */
.layout { display: flex; padding-top: var(--header-h); }

/* Sidebar */
.sidebar {
  position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 14px 10px 40px; z-index: 90;
}
.sidebar .home-btn, .sidebar .quick-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; font-family: var(--font);
  color: var(--tiu-navy); font-weight: bold; font-size: 14px;
  padding: 10px 10px; margin-bottom: 2px; border-radius: 6px;
  border-left: 2px solid transparent;
}
.sidebar .home-btn svg, .sidebar .quick-btn svg { width: 18px; height: 18px; color: var(--tiu-gold); flex: none; }
.sidebar .home-btn:hover, .sidebar .quick-btn:hover { background: #eef2f7; }
.sidebar .home-btn.active, .sidebar .quick-btn.active {
  background: #e8eef6; color: var(--tiu-navy); border-left-color: var(--tiu-gold);
}
.sidebar .nav-divider { height: 1px; background: var(--border); margin: 8px 10px 10px; }

.sidebar .nav-part { margin-bottom: 6px; }
.sidebar .part-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: 0; border-left: 2px solid transparent; cursor: pointer; font-family: var(--font);
  color: var(--tiu-navy); font-weight: bold; font-size: 14px;
  padding: 10px 10px; border-radius: 6px;
}
.sidebar .part-btn:hover { background: #eef2f7; }
.sidebar .nav-ico { width: 18px; height: 18px; flex: none; color: var(--tiu-gold); }
.sidebar .part-btn.active { background: #e8eef6; border-left-color: var(--tiu-gold); }
.sidebar .part-btn .chev-wrap {
  margin-left: auto; display: flex; align-items: center; flex: none;
  padding: 3px 2px 3px 7px; border-radius: 5px;
}
.sidebar .part-btn .chev-wrap:hover { background: rgba(0,51,102,.10); }
.sidebar .part-btn .chev { transition: transform .18s; width: 16px; height: 16px; color: var(--tiu-gold); }
.sidebar .nav-part.collapsed .chev { transform: rotate(-90deg); }
.sidebar .nav-part.collapsed .chapters { display: none; }

.sidebar .chapters { padding: 2px 0 8px; }
.sidebar .chapter-btn {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; font-family: var(--font);
  color: var(--text); font-weight: bold; font-size: 14px; padding: 7px 10px 7px 18px; border-radius: 6px;
}
.sidebar .chapter-btn:hover { background: #eef2f7; }
.sidebar .chapter-btn .chev { margin-left: auto; transition: transform .18s; width: 14px; height: 14px; color: var(--text-soft); }
.sidebar .nav-chapter.collapsed .chev { transform: rotate(-90deg); }
.sidebar .nav-chapter.collapsed .sections { display: none; }

.sidebar .sections { padding-bottom: 4px; }
.sidebar .section-link {
  display: block; text-align: left; width: 100%;
  background: none; border: 0; border-left: 2px solid transparent; cursor: pointer;
  font-family: var(--font); color: var(--text-soft); font-size: 13.5px;
  padding: 6px 10px 6px 30px; border-radius: 0 6px 6px 0; line-height: 1.4;
}
.sidebar .section-link:hover { background: #eef2f7; color: var(--text); }
.sidebar .section-link.active {
  background: #e8eef6; color: var(--tiu-navy); font-weight: bold;
  border-left-color: var(--tiu-gold);
}
.sidebar .todo-badge {
  font-size: 10px; background: var(--tiu-gold-soft); color: #6b4e12; font-weight: bold;
  padding: 1px 5px; border-radius: 8px; margin-left: 6px; vertical-align: middle;
}

/* Scrim voor mobiel */
.scrim {
  position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,20,40,.4);
  z-index: 80; display: none;
}
.scrim.open { display: block; }

/* ============================ Content ============================== */
.content {
  margin-left: var(--sidebar-w); flex: 1; min-width: 0;
  padding: 26px clamp(18px, 5vw, 64px) 90px;
}
.content-inner { max-width: var(--content-max); margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb .sep { color: var(--tiu-gold); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb b { color: var(--tiu-navy); }

/* Section header met diagonal cut */
.section-head {
  background: var(--tiu-navy); color: var(--white);
  padding: 20px 26px; border-radius: var(--radius);
  margin-bottom: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 26px;
  background: var(--bg);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.section-head .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--tiu-gold-soft); font-weight: bold; margin-bottom: 4px; }
.section-head h1 { margin: 0; font-size: 27px; line-height: 1.2; }
.section-head .lead { margin: 8px 0 0; font-size: 15px; color: #cfe0f0; max-width: 62ch; }

/* Prose */
.prose h2 {
  color: var(--tiu-navy); font-size: 21px; margin: 30px 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--border); scroll-margin-top: 84px;
}
.prose h3 { color: var(--tiu-navy-800); font-size: 17px; margin: 22px 0 8px; scroll-margin-top: 84px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
/* Checklist: het ☐-teken ís de opsomming, dus geen bolletje ervoor */
.prose ul.checklist { list-style: none; padding-left: 2px; }
.prose ul.checklist li { margin: 6px 0; }
.prose strong { color: var(--tiu-navy-800); }
.prose a.xref { font-weight: bold; border-bottom: 1px dashed var(--tiu-gold); }

/* Callouts */
.callout {
  border-left: 4px solid; border-radius: 6px; padding: 12px 16px; margin: 16px 0;
  font-size: 14.5px;
}
.callout .c-title { font-weight: bold; display: block; margin-bottom: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout.tip  { background: var(--tip-bg);  border-color: var(--tip-border);  color: var(--tip-ink); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.callout.note { background: var(--note-bg); border-color: var(--note-border); color: var(--note-ink); }
.callout.best { background: var(--best-bg); border-color: var(--best-border); color: var(--best-ink); }
.callout.tip .c-title  { color: var(--tip-border); }
.callout.warn .c-title { color: var(--warn-border); }
.callout.note .c-title { color: var(--note-border); }
.callout.best .c-title { color: #a2761a; }

/* --- Anti-patroon: eigen rode signatuur (moet ná .callout.warn staan) --- */
.callout.anti { background: #fdf0ef; border-color: #b23b3b; color: #7d2b2b; }
.callout.anti .c-title { color: #b23b3b; }

/* --- Icoon bij tip- en anti-patroonblokken --- */
.callout.tip .c-title,
.callout.anti .c-title { position: relative; padding-left: 26px; }
.callout.tip .c-title::before,
.callout.anti .c-title::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
/* Lampje */
.callout.tip .c-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5a7 7 0 0 0-4-12z'/%3E%3C/svg%3E");
}
/* Rood kruis in cirkel */
.callout.anti .c-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b23b3b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='8.5' y1='8.5' x2='15.5' y2='15.5'/%3E%3Cline x1='15.5' y1='8.5' x2='8.5' y2='15.5'/%3E%3C/svg%3E");
}

/* Use-case / voorbeeld blok */
.example {
  background: #f0f4f9; border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 16px; margin: 16px 0;
}
.example .ex-label {
  display: inline-block; font-size: 11px; font-weight: bold; text-transform: uppercase;
  letter-spacing: .6px; color: var(--white); background: var(--tiu-navy);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}

/* Code / template blok */
.prose code {
  background: #e9edf2; color: var(--tiu-navy-800); padding: 1px 5px;
  border-radius: 4px; font-family: "SF Mono", Consolas, "Roboto Mono", monospace; font-size: 13px;
}
.prose pre {
  background: #0d2136; color: #e6edf3; padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; margin: 14px 0; font-size: 13px; line-height: 1.5;
}
.prose pre code { background: none; color: inherit; padding: 0; }

/* Tabellen */
.table-scroll { overflow-x: auto; margin: 18px 0; border-radius: 8px; box-shadow: var(--shadow); }
table.tiu-table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); font-size: 14px; }
table.tiu-table thead th {
  background: var(--tiu-navy); color: var(--white); text-align: left;
  padding: 11px 14px; font-size: 13.5px; position: sticky; top: 0;
}
table.tiu-table tbody td, table.tiu-table tbody th { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tiu-table tbody th { text-align: left; background: #eef2f7; color: var(--tiu-navy); font-weight: bold; white-space: nowrap; }
table.tiu-table tbody tr:nth-child(even) td { background: #f7f9fc; }
table.tiu-table tbody tr:hover td { background: #eef4fb; }
.cell-yes { color: #2e8b57; font-weight: bold; }
.cell-no  { color: #b23b3b; font-weight: bold; }

/* Meta-grid voor rollen/ceremonies (tijd, deelnemers, output) */
.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 16px 0;
}
.meta-grid .meta-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--tiu-gold); border-radius: 6px; padding: 10px 14px;
}
.meta-grid .meta-card .m-k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-soft); font-weight: bold; }
.meta-grid .meta-card .m-v { font-size: 14.5px; color: var(--tiu-navy); font-weight: bold; margin-top: 2px; }

/* Pager (prev/next) */
.pager { display: flex; gap: 14px; margin-top: 40px; }
.pager a {
  flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.pager a:hover { border-color: var(--tiu-gold); box-shadow: var(--shadow); text-decoration: none; }
.pager a.next { text-align: right; align-items: flex-end; }
.pager a .p-dir { font-size: 12px; color: var(--tiu-gold); font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.pager a .p-title { font-size: 15px; color: var(--tiu-navy); font-weight: bold; }
.pager a.disabled { opacity: .4; pointer-events: none; }

/* ==================== Home / TOC pagina ============================= */
.content-inner.home-wide { max-width: 1120px; }

.home-hero {
  color: var(--white); border-radius: var(--radius);
  padding: clamp(30px,5vw,56px) clamp(22px,4vw,48px); position: relative; overflow: hidden;
  margin-bottom: 26px; box-shadow: var(--shadow);
  background:
    linear-gradient(115deg, rgba(0,25,51,.94) 0%, rgba(0,40,80,.80) 45%, rgba(0,40,80,.42) 100%),
    var(--tiu-navy);
}
/* Foto-hero (campus) */
.home-hero.with-photo {
  background:
    linear-gradient(105deg, rgba(0,22,46,.95) 0%, rgba(0,34,68,.82) 46%, rgba(0,34,68,.38) 100%),
    url("../assets/img/context/campus-hero.jpg") center 38% / cover no-repeat, var(--tiu-navy);
  min-height: 320px; display: flex; flex-direction: column; justify-content: center;
}
.home-hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 34px;
  background: var(--bg); clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.home-hero .eyebrow { color: var(--tiu-gold-soft); text-transform: uppercase; letter-spacing: 1.4px; font-size: 12.5px; font-weight: bold; }
.home-hero h1 { margin: 8px 0 12px; font-size: clamp(24px,3.2vw,38px); line-height: 1.12; white-space: nowrap; }
@media (max-width: 560px) { .home-hero h1 { white-space: normal; } }
.home-hero p { margin: 0; max-width: 66ch; color: #e4eefa; font-size: clamp(15px,1.4vw,17px); }
.home-hero .gold-rule { width: 72px; height: 4px; background: var(--tiu-gold); border-radius: 2px; margin: 18px 0 0; }

/* ---- Sectie-koppen op de homepagina ---- */
.home-sec-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 4px; }
.home-sec-title h2 { color: var(--tiu-navy); font-size: 22px; margin: 0; }
.home-sec-title .hs-eyebrow { color: var(--tiu-gold); font-weight: bold; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.home-sec-sub {
  color: var(--text-soft); font-size: 14.5px; margin: 0 0 16px;
  max-width: 100ch;      /* ruim genoeg voor een subtitel van één regel */
  text-wrap: balance;    /* moet hij tóch afbreken, dan in gelijke regels */
}

/* ---- Taakgerichte instap op de home ---- */
.start-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin: 12px 0 8px;
}
.start-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--tiu-gold); border-radius: 10px;
  padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.start-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,32,64,.12);
  border-color: var(--tiu-gold-soft); border-left-color: var(--tiu-navy); text-decoration: none;
}
.start-card .s-h { color: var(--tiu-navy); font-weight: bold; font-size: 15.5px; line-height: 1.25; }
.start-card .s-h::after { content: " →"; color: var(--tiu-gold); }
.start-card .s-t { color: var(--text-soft); font-size: 13px; line-height: 1.45; }

/* ---- Zoekveld op de homepagina (licht thema) ---- */
.home-search { margin: 22px auto 6px; width: min(560px, 100%); position: relative; }
.home-search input {
  width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 23px;
  padding: 0 44px 0 46px; font-family: var(--font); font-size: 15px;
  background: var(--surface); color: var(--text); outline: none;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.home-search input::placeholder { color: var(--text-soft); }
.home-search input:focus { border-color: var(--tiu-gold); box-shadow: 0 0 0 3px rgba(204,153,51,.18); }
.home-search .s-icon {
  position: absolute; left: 16px; top: 23px; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--tiu-navy); pointer-events: none;
}
.home-search .s-clear {
  position: absolute; right: 12px; top: 23px; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; border-radius: 50%; cursor: pointer;
  background: #e3e9f0; color: var(--tiu-navy); display: none;
  align-items: center; justify-content: center; font-size: 12px;
}
.home-search input:not(:placeholder-shown) ~ .s-clear { display: flex; }
.home-search .search-results { top: 52px; text-align: left; }

/* ---- Expeditie / verandering-reis ---- */
.journey {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: 12px 0 8px;
}
.journey .j-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.journey .j-img { aspect-ratio: 3/2; background: #16324f center/cover no-repeat; }
.journey .j-body { padding: 10px 12px 14px; }
.journey .j-n { color: var(--tiu-gold); font-weight: bold; font-size: 12px; letter-spacing: .5px; }
.journey .j-h { color: var(--tiu-navy); font-weight: bold; font-size: 14.5px; margin: 1px 0 3px; }
.journey .j-t { color: var(--text-soft); font-size: 12.5px; line-height: 1.45; }
.journey .j-more {
  margin-top: 8px; font-size: 11.5px; font-weight: bold; color: var(--tiu-gold);
  text-transform: uppercase; letter-spacing: .4px;
}
.journey .j-more::after { content: " ›"; }

/* ---- Hover-paneel per etappe ---- */
.journey { position: relative; }                 /* referentiepunt voor het paneel */
.journey .j-step { position: static; cursor: pointer; outline: none; }
.journey .j-step:hover, .journey .j-step:focus-visible { border-color: var(--tiu-gold-soft); }
.journey .j-step:focus-visible { box-shadow: 0 0 0 3px rgba(204,153,51,.28); }
.journey .j-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px);
  display: none; z-index: 40; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 4px solid var(--tiu-gold); border-radius: 10px;
  padding: 18px 22px 20px; box-shadow: 0 10px 30px rgba(0,32,64,.16);
}
.journey .j-step:hover .j-pop,
.journey .j-step:focus .j-pop,
.journey .j-step:focus-within .j-pop { display: block; }
.journey .j-pop .jp-eyebrow {
  font-size: 11.5px; font-weight: bold; text-transform: uppercase; letter-spacing: .7px;
  color: var(--tiu-gold);
}
.journey .j-pop .jp-kop { font-size: 16.5px; font-weight: bold; color: var(--tiu-navy); margin: 3px 0 10px; }
.journey .j-pop ul { list-style: none; margin: 0; padding: 0; }
.journey .j-pop li {
  font-size: 13.5px; color: var(--text); line-height: 1.5;
  padding: 4px 0 4px 15px; position: relative;
}
.journey .j-pop li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tiu-navy);
}
.journey .j-pop li b { color: var(--tiu-navy); }
.journey .j-pop .jp-slot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--tiu-navy-800); font-style: italic;
}

/* Zonder hover (telefoon/tablet): panelen gewoon onder de kaart tonen */
@media (hover: none), (max-width: 900px) {
  .journey .j-step { position: relative; cursor: default; }
  .journey .j-more { display: none; }
  .journey .j-pop {
    position: static; display: block; margin: 0 13px 14px;
    padding: 12px 14px 14px; box-shadow: none; border-top-width: 3px;
  }
  .journey .j-pop .jp-kop { font-size: 14.5px; }
  .journey .j-pop li, .journey .j-pop .jp-slot { font-size: 12.5px; }
}

.toc-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 18px; }
.toc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.toc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,32,64,.12); border-color: var(--tiu-gold-soft); }
.toc-card::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--tiu-gold); }
.toc-card .toc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.toc-card .toc-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tiu-navy); color: var(--white); font-weight: bold; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.toc-card .toc-part { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--tiu-gold); font-weight: bold; }
.toc-card h3 { margin: 1px 0 0; color: var(--tiu-navy); font-size: 19px; line-height: 1.15; }
.toc-card .toc-desc { font-size: 13.5px; color: var(--text-soft); margin-bottom: 10px; }
.toc-card .toc-chapter { margin: 10px 0 2px; font-weight: bold; color: var(--tiu-navy-800); font-size: 14px; }
.toc-card ul { list-style: none; margin: 0 0 6px; padding: 0; }
.toc-card li { padding: 3px 0; }
.toc-card li a { font-size: 13.5px; }

/* ============ Landingspagina per deel (menu-item 1 t/m 7) ========== */
.part-head {
  background: var(--tiu-navy); color: var(--white);
  padding: 26px 30px 28px; border-radius: var(--radius);
  margin-bottom: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.part-head::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 28px;
  background: var(--bg); clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.part-head .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--tiu-gold-soft); font-weight: bold; }
.part-head h1 { margin: 5px 0 0; font-size: clamp(24px,3vw,31px); line-height: 1.15; }
.part-head .lead { margin: 11px 0 0; font-size: 15.5px; color: #d3e1f0; max-width: 72ch; }
.part-meta { font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .6px; color: var(--text-soft); margin: 0 0 18px; }

/* Altijd twee kaarten naast elkaar; daarna een nieuwe rij. */
/* align-items: stretch (de standaard) houdt de kaarten per rij even hoog. */
.land-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.land-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.land-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,32,64,.14); border-color: var(--tiu-gold-soft); }
/* Foto met navy overlay en de titel eroverheen, zelfde signatuur als de banner op de home. */
.land-card .lc-img {
  display: flex; align-items: flex-end; position: relative; aspect-ratio: 16 / 9;
  background: var(--tiu-navy) center / cover no-repeat;
  border-bottom: 3px solid var(--tiu-gold); text-decoration: none;
}
.land-card .lc-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,20,42,.93) 0%, rgba(0,26,54,.64) 40%, rgba(0,34,68,.14) 78%, rgba(0,40,80,0) 100%),
    linear-gradient(105deg, rgba(0,22,46,.52) 0%, rgba(0,34,68,.18) 55%, rgba(0,40,80,0) 100%);
  transition: opacity .18s;
}
.land-card:hover .lc-img::after { opacity: .86; }
.land-card .lc-h {
  position: relative; z-index: 1; margin: 0; padding: 0 18px 15px;
  color: var(--white); font-size: 21px; line-height: 1.18;
  text-shadow: 0 1px 12px rgba(0,16,34,.6);
}
.land-card .lc-img:hover .lc-h { color: var(--tiu-gold-soft); }
/* Kaart zonder foto: titel gewoon boven de tekst. */
.land-card .lc-h.plain { padding: 16px 18px 0; color: var(--tiu-navy); text-shadow: none; font-size: 18.5px; }
.land-card .lc-h.plain a { color: inherit; text-decoration: none; }
.land-card .lc-h.plain a:hover { color: var(--tiu-gold); text-decoration: underline; }
.land-card .lc-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 14px 18px 18px; }
.land-card .lc-t { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.55; }
.land-card .lc-links {
  list-style: none; margin: 12px 0 0; padding: 11px 0 0;
  border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px;
}
.land-card .lc-links li { margin: 0; }
.land-card .lc-links a {
  display: block; font-size: 13.5px; color: var(--tiu-navy-600); text-decoration: none;
  padding: 4px 8px 4px 16px; border-radius: 6px; position: relative;
}
.land-card .lc-links a::before {
  content: "›"; position: absolute; left: 3px; color: var(--tiu-gold); font-weight: bold;
}
.land-card .lc-links a:hover { background: var(--bg); color: var(--tiu-gold); text-decoration: none; }
@media (max-width: 720px) { .land-cards { grid-template-columns: 1fr; } }

/* Deel-titel op de home linkt naar de landingspagina */
.toc-card h3 a { color: inherit; }
.toc-card h3 a:hover { text-decoration: none; color: var(--tiu-navy-600); }
.toc-card h3 a::after { content: " ›"; color: var(--tiu-gold); }

/* ==================== Sectie-header met icoon ====================== */
.section-head.has-icon { padding-right: 116px; }
.section-head .sh-icon {
  position: absolute; top: 50%; right: 22px; transform: translateY(-50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.22); padding: 8px;
}
.section-head .sh-icon img { width: 100%; height: 100%; object-fit: contain; }

/* ==================== Figure / afbeelding-component ================ */
figure.fig { margin: 22px 0; }
figure.fig img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--white);
}
figure.fig.plain img { border: 0; box-shadow: none; }
figure.fig figcaption {
  font-size: 12.5px; color: var(--text-soft); margin-top: 8px; text-align: center;
  padding: 0 8px; line-height: 1.5;
}
figure.fig figcaption b, figure.fig figcaption strong { color: var(--tiu-navy); }
/* Foto-figure (echte foto's, geen witruimte-rand) */
figure.fig.photo img { border: 0; }

/* ==================== Icoon-kaarten (rollen/ceremonies) =========== */
.icon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 20px 0; }
.icon-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--tiu-gold);
  border-radius: 10px; padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.icon-card .ic-badge {
  width: 64px; height: 64px; border-radius: 50%; background: #f0f4f9;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; padding: 8px;
}
.icon-card .ic-badge img { width: 100%; height: 100%; object-fit: contain; }
.icon-card h4 { margin: 0 0 4px; color: var(--tiu-navy); font-size: 16px; }
.icon-card p { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }
.icon-card .ic-tag { display: inline-block; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; color: var(--tiu-gold); margin-bottom: 6px; }

/* Vier kaarten naast elkaar (compacter, past binnen de tekstkolom) */
.icon-cards.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.icon-cards.cols-4 .icon-card { padding: 14px 13px 15px; }
.icon-cards.cols-4 .ic-badge { width: 50px; height: 50px; margin-bottom: 10px; padding: 7px; }
.icon-cards.cols-4 .ic-tag { font-size: 10px; letter-spacing: .3px; margin-bottom: 4px; }
.icon-cards.cols-4 h4 { font-size: 14.5px; line-height: 1.2; }
.icon-cards.cols-4 p { font-size: 12.5px; line-height: 1.45; }
@media (max-width: 900px) { .icon-cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .icon-cards.cols-4 { grid-template-columns: 1fr; } }
/* Klikbare icoon-kaart (link naar detailpagina) */
a.icon-card { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.icon-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,32,64,.12); border-color: var(--tiu-gold-soft); text-decoration: none; }
a.icon-card .ic-tag { display: block; }
a.icon-card h4 { display: block; }
a.icon-card h4::after { content: " →"; color: var(--tiu-gold); font-weight: bold; }
a.icon-card p { text-decoration: none; }

/* ==================== Obeya — de vier wanden ====================== */
.obeya-room {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 24px 0 8px; align-items: stretch;
}
.obeya-room .wall {
  --accent: var(--tiu-navy);
  background: #fbfcfe; border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: 10px; padding: 14px 13px 15px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-width: 0;
}
.obeya-room .wall.w4 { --accent: var(--tiu-gold); }
.obeya-room .wall .w-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.obeya-room .wall .w-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: bold; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.obeya-room .wall h5 { margin: 0; font-size: 14.5px; color: var(--tiu-navy); line-height: 1.15; }
.obeya-room .wall .w-goal { font-size: 12px; color: var(--text-soft); margin: 0 0 10px; line-height: 1.45; }
.obeya-room .wall .w-stickies { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.obeya-room .wall .w-stickies span { width: 14px; height: 14px; border-radius: 3px; background: #e5ebf2; }
.obeya-room .wall .w-stickies span.g { background: #cfe0cf; }
.obeya-room .wall .w-stickies span.o { background: #f0d9b0; }
.obeya-room .wall .w-stickies span.r { background: #edccc8; }
.obeya-room .wall ul.w-list { list-style: none; margin: 0; padding: 0; }
.obeya-room .wall ul.w-list li {
  font-size: 12px; color: var(--text); padding: 3px 0 3px 13px; position: relative; line-height: 1.4;
}
.obeya-room .wall ul.w-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.obeya-room .wall .w-flow { font-size: 11.5px; color: var(--tiu-navy-800); font-weight: bold; margin-top: auto; padding-top: 10px; }
.obeya-caption { font-size: 12.5px; color: var(--text-soft); text-align: center; margin: 4px 0 22px; }
.obeya-caption b { color: var(--tiu-navy); }

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

/* ============ Keuzekaarten met hover-paneel (retro-formats) ======== */
.fmt-cards { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin: 20px 0 8px; }
.fmt-card {
  position: static; cursor: pointer; outline: none;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--tiu-gold); border-radius: 9px; padding: 12px 13px 13px;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.fmt-card:hover, .fmt-card:focus-visible { border-color: var(--tiu-gold-soft); box-shadow: 0 4px 16px rgba(0,32,64,.12); }
.fmt-card:focus-visible { box-shadow: 0 0 0 3px rgba(204,153,51,.28); }
.fmt-card .f-n { display: block; font-size: 13.5px; font-weight: bold; color: var(--tiu-navy); line-height: 1.25; }
.fmt-card .f-w { display: block; font-size: 11.5px; color: var(--text-soft); margin-top: 3px; line-height: 1.4; }
.fmt-card .f-hint { display: block; font-size: 10.5px; font-weight: bold; color: var(--tiu-gold); text-transform: uppercase; letter-spacing: .4px; margin-top: 7px; }
.fmt-card .f-hint::after { content: " ›"; }
.fmt-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px); display: none; z-index: 40;
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--tiu-gold);
  border-radius: 10px; padding: 18px 22px 20px; box-shadow: 0 10px 30px rgba(0,32,64,.16); text-align: left;
}
.fmt-card:hover .fmt-pop, .fmt-card:focus .fmt-pop, .fmt-card:focus-within .fmt-pop { display: block; }
.fmt-pop .fp-kop { font-size: 16.5px; font-weight: bold; color: var(--tiu-navy); margin-bottom: 6px; }
.fmt-pop p { font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.fmt-pop img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
@media (hover: none), (max-width: 900px) {
  .fmt-cards { grid-template-columns: 1fr; }
  .fmt-card { position: relative; cursor: default; }
  .fmt-card .f-hint { display: none; }
  .fmt-pop { position: static; display: block; margin-top: 12px; padding: 12px 0 0; box-shadow: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
  .fmt-pop .fp-kop { display: none; }
}

/* ==================== Downloads (templates) ======================= */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 20px 0; }
a.dl-card {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--tiu-gold); border-radius: 10px;
  padding: 14px 16px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.dl-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,32,64,.12);
  border-color: var(--tiu-gold-soft); text-decoration: none;
}
a.dl-card .dl-ico {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: #eef2f7; color: var(--tiu-navy);
  display: flex; align-items: center; justify-content: center;
}
a.dl-card .dl-ico svg { width: 21px; height: 21px; }
a.dl-card .dl-naam { display: block; font-size: 14.5px; font-weight: bold; color: var(--tiu-navy); line-height: 1.25; }
a.dl-card .dl-meta { display: block; font-size: 12px; color: var(--text-soft); margin-top: 2px; }
a.dl-card .dl-naam::after { content: " ↓"; color: var(--tiu-gold); }

/* ==================== QBR — twee kernvragen ======================= */
.qbr-lens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 8px; }
.qbr-lens .lens {
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--tiu-navy);
  border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow);
}
.qbr-lens .lens.fwd { border-top-color: var(--tiu-gold); }
.qbr-lens .lens .l-dir {
  font-size: 11.5px; font-weight: bold; text-transform: uppercase; letter-spacing: .8px;
  color: var(--tiu-navy-600);
}
.qbr-lens .lens.fwd .l-dir { color: var(--tiu-gold); }
.qbr-lens .lens h5 { margin: 4px 0 2px; font-size: 16px; color: var(--tiu-navy); }
.qbr-lens .lens .l-q { font-size: 14px; color: var(--text); font-style: italic; margin: 0 0 10px; }
.qbr-lens .lens ul { list-style: none; margin: 0; padding: 0; }
.qbr-lens .lens li { font-size: 13.5px; padding: 3px 0 3px 14px; position: relative; line-height: 1.45; }
.qbr-lens .lens li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--tiu-navy);
}
.qbr-lens .lens.fwd li::before { background: var(--tiu-gold); }
@media (max-width: 640px) { .qbr-lens { grid-template-columns: 1fr; } }

/* ============================ Responsive ========================== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 300px; }
}
@media (max-width: 860px) {
  .topbar .hamburger { display: flex; align-items: center; justify-content: center; }
  .topbar .brand .title { font-size: 15px; }
  .sidebar {
    transform: translateX(-100%); transition: transform .24s ease;
    box-shadow: 4px 0 24px rgba(0,20,40,.18); width: min(86vw, 340px);
  }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; }
  .search-wrap { width: min(240px, 40vw); }
  .topbar .brand .title { display: none; }
}
@media (max-width: 640px) {
  .section-head.has-icon { padding-right: 26px; }
  .section-head .sh-icon { display: none; }
}
@media (max-width: 520px) {
  .search-wrap { width: 44vw; }
  .section-head h1 { font-size: 22px; }
  .pager { flex-direction: column; }
  .journey { grid-template-columns: repeat(2, 1fr); }
}

/* Print */
@media print {
  .topbar, .sidebar, .pager, .scrim { display: none; }
  .content { margin: 0; padding: 0; }
  figure.fig img, .icon-card { box-shadow: none; }
  .home-hero.with-photo { background: var(--tiu-navy); }
}
