/* ==========================================================================
   Handleiding — Monitoring Cultureel Talent naar de Top
   Standalone page with its own layout (shares palette from styles.css tokens)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&display=swap');

:root {
  color-scheme: light only;

  --salmon: #8caef4;
  --salmon-light: #c5d6f8;
  --salmon-dark: #467ded;
  --sand: #e1e9f4;
  --sand-light: #f1f4f8;
  --sand-dark: #adbcd2;
  --terracotta: #111162;
  --terracotta-dark: #07072f;
  --brown: #08091e;
  --cream: #fafbfc;
  --text: #1d1d30;
  --text-light: #3c3c5d;
  --text-muted: #7a7a96;
  --teal: #d27b4b;
  --teal-dark: #c15f29;

  --void-1: #f3ece2;
  --void-2: #f0e6d1;
  --void-3: #f8f5f2;

  --brown-rgb: 8, 9, 30;
  --terracotta-rgb: 17, 17, 98;
  --salmon-rgb: 140, 174, 244;
  --sand-rgb: 225, 233, 244;
  --teal-rgb: 210, 123, 75;

  --outline-width: 6px;
  --serif: 'Fraunces', 'Georgia', 'Cambria', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--sans);
  background: linear-gradient(135deg, var(--void-1) 0%, var(--void-2) 50%, var(--void-3) 100%);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Decorative logo shapes (shared background, matches login)
   ========================================================================== */

.logo-decor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

@keyframes float-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(15px, -20px) scale(1.03);
  }
  40% {
    transform: translate(-10px, -13px);
  }
  60% {
    transform: translate(-20px, 10px) scale(0.97);
  }
  80% {
    transform: translate(8px, 15px);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-18px, -10px) scale(1.03);
  }
  50% {
    transform: translate(13px, -23px);
  }
  75% {
    transform: translate(-8px, 13px) scale(0.97);
  }
}

@keyframes float-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(13px, 18px) scale(1.03);
  }
  60% {
    transform: translate(-15px, -8px) scale(0.97);
  }
}

.logo-decor-shape {
  position: absolute;
  width: 450px;
  height: 520px;
  opacity: 0.18;
}

.logo-decor-shape svg {
  width: 100%;
  height: 100%;
}

.logo-decor-bottom-left {
  bottom: -180px;
  left: -120px;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  animation: float-1 20s ease-in-out infinite;
}

.logo-decor-top-right {
  top: -200px;
  right: -140px;
  -webkit-mask-image: linear-gradient(315deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(315deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  animation: float-2 25s ease-in-out infinite;
}

.logo-decor-center-right {
  top: 50%;
  right: -200px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  animation: float-3 22s ease-in-out infinite;
}

@media (max-width: 900px) and (min-width: 769px) {
  .logo-decor-shape {
    width: 320px;
    height: 370px;
    opacity: 0.12;
    animation: none !important;
  }

  .logo-decor-center-right {
    display: none;
  }
}

/* ==========================================================================
   Page layout
   ========================================================================== */

.handleiding-page {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.handleiding-card {
  position: relative;
  background: var(--cream);
  border-radius: 12px;
  padding: 64px 72px;
}

.handleiding-card::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--outline-width));
  left: calc(-1 * var(--outline-width));
  right: calc(-1 * var(--outline-width));
  bottom: calc(-1 * var(--outline-width));
  background: var(--cream);
  border-radius: calc(12px + var(--outline-width));
  box-shadow:
    0 8px 32px rgba(var(--brown-rgb), 0.15),
    0 2px 8px rgba(var(--brown-rgb), 0.1);
  z-index: -1;
}

/* ==========================================================================
   Top bar with back link + print
   ========================================================================== */

.handleiding-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 16px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.handleiding-back,
.handleiding-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--brown-rgb), 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.handleiding-back:hover,
.handleiding-print:hover {
  background: #fff;
  color: var(--terracotta);
  border-color: rgba(var(--terracotta-rgb), 0.2);
  transform: translateY(-1px);
}

.handleiding-back svg,
.handleiding-print svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.handleiding-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(var(--brown-rgb), 0.1);
}

.handleiding-hero-text {
  flex: 1;
}

.handleiding-kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(var(--teal-rgb), 0.1);
  border-radius: 4px;
}

.handleiding-hero h1 {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--terracotta);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.handleiding-hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--teal);
}

.handleiding-hero-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-light);
}

/* Brand box — solid navy panel with the doll + wordmark */
.handleiding-brand {
  flex-shrink: 0;
  width: 200px;
  padding: 22px 18px;
  border-radius: 10px;
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  box-shadow:
    0 6px 20px rgba(var(--brown-rgb), 0.22),
    0 1px 3px rgba(var(--brown-rgb), 0.1);
}

.handleiding-brand-top {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 14px;
}

.handleiding-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2px;
}

.handleiding-brand-mark svg {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.handleiding-brand-main {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-align: left;
}

/* ==========================================================================
   Lede paragraphs
   ========================================================================== */

.handleiding-lede {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 48px;
}

.handleiding-lede p {
  margin-bottom: 14px;
}

.handleiding-lede p:last-child {
  margin-bottom: 0;
}

.handleiding-lede p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--terracotta);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  margin-top: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--brown-rgb), 0.1);
}

.section-number {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.section h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 10px;
}

.section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

.section ul,
.section ol {
  margin: 12px 0 16px 0;
  padding-left: 24px;
}

.section li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 4px;
}

.section ol li::marker {
  color: var(--teal);
  font-weight: 600;
  font-family: var(--serif);
}

.section ul li::marker {
  color: var(--salmon-dark);
}

.section strong {
  color: var(--terracotta);
  font-weight: 600;
}

.section em {
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
}

/* ==========================================================================
   Definition callout
   ========================================================================== */

.callout {
  margin: 16px 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(var(--salmon-rgb), 0.08) 0%, rgba(var(--sand-rgb), 0.35) 100%);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-title {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.callout p {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--text);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--terracotta);
}

/* ==========================================================================
   Answer scale cards
   ========================================================================== */

.scale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 28px;
  list-style: none;
  padding: 0;
}

.scale-grid li {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: #fff;
  border: 1px solid rgba(var(--brown-rgb), 0.08);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(var(--brown-rgb), 0.04);
  transition: box-shadow 0.2s ease;
  margin: 0;
}

.scale-grid li::marker {
  content: none;
}

.scale-grid li:hover {
  box-shadow: 0 4px 12px rgba(var(--brown-rgb), 0.08);
}

.scale-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.scale-grid li:nth-child(1) .scale-badge { background: #cee5da; color: #182e57; }
.scale-grid li:nth-child(2) .scale-badge { background: #6ec5cd; }
.scale-grid li:nth-child(3) .scale-badge { background: #076c98; }
.scale-grid li:nth-child(4) .scale-badge { background: #182e57; }

.scale-term {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 2px;
}

.scale-phase {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 8px;
}

.scale-desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-light);
}

.scale-desc q {
  font-style: italic;
  color: var(--text);
  quotes: '"' '"';
}

/* ==========================================================================
   Tip / aside
   ========================================================================== */

.aside-box {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(var(--salmon-rgb), 0.06);
  border-radius: 8px;
  border: 1px dashed rgba(var(--salmon-rgb), 0.4);
}

.aside-box p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-light);
}

.aside-box strong {
  color: var(--salmon-dark);
}

/* ==========================================================================
   Contact / footnote
   ========================================================================== */

.contact-card {
  margin-top: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  border-radius: 10px;
  color: #fff;
}

.contact-card strong {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.contact-card a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.contact-card a:hover {
  text-decoration-color: #fff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 14px;
}

.footnote {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--brown-rgb), 0.1);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

.footnote sup {
  font-style: normal;
  color: var(--teal);
  font-weight: 600;
  margin-right: 3px;
}

sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--teal);
  font-weight: 600;
}

.doc-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--brown-rgb), 0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(var(--terracotta-rgb), 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--terracotta);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .handleiding-page {
    padding: 16px 12px 48px;
  }

  .handleiding-card {
    padding: 32px 24px;
  }

  .handleiding-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .handleiding-hero h1 {
    font-size: 28px;
  }

  .handleiding-hero-year {
    font-size: 18px;
  }

  .handleiding-lede {
    font-size: 15px;
  }

  .handleiding-lede p:first-child::first-letter {
    font-size: 44px;
  }

  .section h2 {
    font-size: 20px;
  }

  .scale-grid {
    grid-template-columns: 1fr;
  }

  .handleiding-topbar {
    padding: 0 12px;
  }

  .logo-decor {
    display: none;
  }
}

/* ==========================================================================
   Print (PDF-optimised A4)
   ========================================================================== */

@page {
  size: A4;
  margin: 16mm 16mm 18mm 16mm;
}

@media print {
  html, body {
    background: #fff;
    font-family: var(--sans);
    font-size: 10.5pt;
    color: #1d1d30;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .handleiding-hero h1,
  .section h2,
  .section h3,
  .handleiding-kicker,
  .handleiding-brand-top,
  .handleiding-brand-main,
  .section-number,
  .callout-title,
  .scale-term,
  .doc-footer {
    font-family: var(--sans);
  }

  .handleiding-hero h1 em,
  .handleiding-hero-year,
  .handleiding-lede,
  .scale-phase,
  .footnote {
    font-family: var(--serif);
  }

  .logo-decor,
  .handleiding-topbar,
  .no-print {
    display: none !important;
  }

  .handleiding-page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .handleiding-card {
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .handleiding-card::before {
    display: none;
  }

  .handleiding-hero {
    margin-bottom: 20pt;
    padding-bottom: 14pt;
    border-bottom: 0.5pt solid rgba(17, 17, 98, 0.18);
    break-after: avoid;
    page-break-after: avoid;
  }

  .handleiding-hero h1 {
    font-size: 22pt;
    color: #111162;
    font-weight: 700;
  }

  .handleiding-hero h1 em {
    color: #c15f29;
    font-weight: 400;
  }

  .handleiding-hero-year {
    font-size: 13pt;
    color: #3c3c5d;
  }

  .handleiding-kicker {
    background: transparent;
    padding: 0;
    color: #c15f29;
    font-size: 8pt;
  }

  .handleiding-brand {
    background: #111162 !important;
    color: #fff !important;
    box-shadow: none;
    padding: 14pt 12pt;
    width: 170pt;
  }

  .handleiding-brand-top,
  .handleiding-brand-main {
    color: #fff !important;
  }

  .handleiding-brand-mark svg path {
    fill: #fff !important;
  }

  .handleiding-lede {
    font-size: 11pt;
    margin-bottom: 16pt;
    color: #1d1d30;
  }

  .handleiding-lede p:first-child::first-letter {
    font-size: 28pt;
    color: #111162;
  }

  .section {
    margin-top: 18pt;
    break-inside: avoid-page;
  }

  .section-header {
    border-bottom: 0.5pt solid rgba(17, 17, 98, 0.18);
    break-after: avoid;
    page-break-after: avoid;
  }

  .section h2 {
    font-size: 14pt;
    color: #111162;
    font-weight: 700;
    break-after: avoid;
    page-break-after: avoid;
  }

  .section h3 {
    font-size: 11pt;
    color: #1d1d30;
    break-after: avoid;
    page-break-after: avoid;
  }

  .section-number {
    color: #c15f29;
    font-size: 20pt;
    font-weight: 700;
  }

  .section p,
  .section li {
    font-size: 10.5pt;
    color: #1d1d30;
  }

  .section strong {
    color: #111162;
  }

  .section em {
    color: #c15f29;
  }

  .section ol li::marker {
    color: #c15f29;
  }

  .section ul li::marker {
    color: #467ded;
  }

  .callout {
    background: #f1f4f8;
    border-left: 2pt solid #d27b4b;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 10pt 14pt;
  }

  .callout-title {
    color: #c15f29;
  }

  .callout strong {
    color: #111162;
  }

  .scale-grid {
    grid-template-columns: 1fr;
    gap: 6pt;
    break-inside: avoid;
  }

  .scale-grid li {
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff;
    border: 0.5pt solid rgba(17, 17, 98, 0.22);
    box-shadow: none;
    padding: 10pt 12pt 10pt 44pt;
  }

  .scale-badge {
    color: #fff !important;
    top: 10pt;
    left: 12pt;
    width: 22pt;
    height: 22pt;
    font-size: 11pt;
  }

  .scale-grid li:nth-child(1) .scale-badge { background: #cee5da !important; color: #182e57 !important; }
  .scale-grid li:nth-child(2) .scale-badge { background: #6ec5cd !important; }
  .scale-grid li:nth-child(3) .scale-badge { background: #076c98 !important; }
  .scale-grid li:nth-child(4) .scale-badge { background: #182e57 !important; }

  .scale-term {
    color: #111162;
  }

  .scale-phase {
    color: #c15f29;
  }

  .scale-desc {
    color: #3c3c5d;
  }

  .aside-box {
    background: #f1f4f8;
    border: 0.5pt dashed rgba(70, 125, 237, 0.5);
    break-inside: avoid;
  }

  .aside-box strong {
    color: #467ded;
  }

  .contact-card {
    background: #111162 !important;
    color: #fff !important;
    border: none;
    break-inside: avoid;
  }

  .contact-card strong,
  .contact-card p,
  .contact-card a {
    color: #fff !important;
  }

  .contact-card a {
    text-decoration-color: rgba(255, 255, 255, 0.5);
  }

  .footnote,
  .doc-footer {
    color: #7a7a96;
    break-inside: avoid;
    border-top-color: rgba(17, 17, 98, 0.18);
  }

  .footnote sup,
  sup {
    color: #c15f29;
  }

  a {
    color: #111162;
    text-decoration: underline;
    text-decoration-color: rgba(17, 17, 98, 0.35);
  }

  a[href^="mailto:"]::after {
    content: '';
  }
}
