.reference.wrap {
  --reference-ink: #11294a;
  --reference-muted: #47627f;
  --reference-blue: #174ca1;
  --reference-line: #dce6f0;
  width: min(1200px, calc(100% - 2 * clamp(16px, 4vw, 48px)));
  padding-block: clamp(32px, 4.8vw, 72px) clamp(64px, 9vw, 128px);
  color: var(--reference-ink);
}
.reference [hidden] { display: none !important; }
.reference-sr-only, .reference-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.reference :is(a, button, summary, input, select):focus-visible {
  outline: 2px solid #2057b5;
  outline-offset: 3px;
}
.reference-hero {
  margin-bottom: clamp(26px, 4vw, 56px);
}
.reference-hero--illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(186px, 26vw, 326px);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
}
.reference-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--reference-line);
  border-radius: 100px;
  background: #f3f7fb;
}
.reference-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
  color: var(--reference-muted);
}
.reference-switch a:hover { color: var(--reference-ink); }
.reference-switch a[aria-current] {
  color: var(--reference-ink);
  background: #fff;
  box-shadow: 0 1px 3px #183c721c;
}
.reference h1 {
  margin: clamp(16px, 2.2vw, 29px) 0 0;
  font-size: clamp(45px, 7.3vw, 96px);
  line-height: 1.03;
  letter-spacing: -.067em;
  overflow-wrap: break-word;
}
.reference h1 span { color: #ed1644; }
.reference-hero-copy > p {
  margin-top: 15px;
  max-width: 54ch;
  color: var(--reference-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}
.reference-hero-art {
  --illustration-size: clamp(102px, 13vw, 155px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: clamp(162px, 20vw, 234px);
  overflow: hidden;
  border: 1px solid #deebf8;
  border-radius: clamp(20px, 3vw, 35px);
  background: radial-gradient(circle at 1px 1px, #3979b82d 1px, transparent 1.45px) 0 0 / 17px 17px,
    linear-gradient(147deg, #f2f9ff, #dfefff);
}
.reference-hero-art::before {
  position: absolute;
  z-index: -1;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid #92bbe47a;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #ffffff51, 0 0 0 17px #92bbe34a;
  content: "";
}
.reference-illustration {
  display: grid;
  place-items: center;
  width: var(--illustration-size, 77px);
  aspect-ratio: 1;
  border: 1px solid var(--illustration-rim, #71a6ba);
  border-radius: 26%;
  color: var(--illustration-ink, #173e4a);
  background: var(--illustration-face, linear-gradient(159deg, #dcf5fa, #addce8 40%, #91c8d9 76%, #7cb9cd));
  box-shadow: inset 0 1px 1px #fffdf7d6,
    inset 0 -4px 0 var(--illustration-edge, #6aa9bf), 0 6px 12px #153f532b;
  transition: transform .19s ease-out;
}

.reference-illustration svg {
  display: block;
  width: 55%;
  height: auto;
}
.reference-panel {
  overflow: clip;
  border: 1px solid var(--reference-line);
  border-radius: 20px;
  background: #f9fbfe;
}
.reference-search {
  display: flex;
  align-items: stretch;
  gap: 13px;
  padding: 14px;
}
.reference-search-field { position: relative; flex: 1; min-width: 0; }
.reference-search-field::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 13px;
  height: 13px;
  border: 1.8px solid var(--reference-blue);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.reference-search-field::after {
  position: absolute;
  top: 29px;
  left: 28px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--reference-blue);
  content: "";
  transform: rotate(45deg);
  pointer-events: none;
}
.reference-search input, .reference-letter select {
  width: 100%;
  min-height: 47px;
  border: 1px solid #bacde0;
  border-radius: 11px;
  background: #fff;
  color: var(--reference-ink);
  font: inherit;
}
.reference-search input { padding: 9px 14px 9px 42px; }
.reference-search input::placeholder { color: var(--reference-muted); opacity: 1; }
.reference-letter { display: flex; align-items: center; gap: 9px; }
.reference-letter > span { color: var(--reference-muted); font-size: 13px; font-weight: 750; }
.reference-letter select { padding: 6px 8px; }
.reference-filter-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid #dce9f4;
  background: #eaf5fd;
}
.reference-filter-row + .reference-filter-row { background: #f0f2fb; }
.reference-filter-label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--reference-muted);
  font-weight: 800;
}
.reference-filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.reference-option { position: relative; display: inline-flex; cursor: pointer; }
.reference-option > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #becee0;
  border-radius: 100px;
  background: #ffffff80;
  color: var(--reference-ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  white-space: nowrap;
}
.reference-option:hover > span { border-color: #7999bd; background: #fff; }
.reference-option > input:checked + span { color: #fff; background: #153d79; border-color: #153d79; }
.reference-option > input:focus-visible + span { outline: 2px solid #2057b5; outline-offset: 2px; }
.reference-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  min-height: 64px;
  padding-block: 10px;
}
.reference-result-count {
  color: var(--reference-muted);
  font-size: 14px;
  font-weight: 760;
}
.reference-clear {
  min-height: 38px;
  padding: 3px 5px;
  background: transparent;
  color: var(--reference-blue);
  border: 0;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.reference-view {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--reference-line);
  border-radius: 12px;
  background: #f2f6fa;
}
.reference-view .reference-option > span {
  min-height: 31px;
  padding-inline: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--reference-muted);
}
.reference-view .reference-option > input:checked + span {
  color: var(--reference-ink);
  background: #fff;
  box-shadow: 0 1px 4px #183c7220;
}
.reference-glyph { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; }
.reference-glyph--grid {
  background: linear-gradient(currentColor, currentColor) 0 0 / 5px 5px,
    linear-gradient(currentColor, currentColor) 100% 0 / 5px 5px,
    linear-gradient(currentColor, currentColor) 0 100% / 5px 5px,
    linear-gradient(currentColor, currentColor) 100% 100% / 5px 5px;
  background-repeat: no-repeat;
}
.reference-glyph--list {
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px) center / 12px 12px no-repeat;
}
.reference-cards {
  --reference-columns: 4;
  --reference-gap: 15px;
  display: grid;
  grid-template-columns: repeat(var(--reference-columns), minmax(0, 1fr));
  align-items: start;
  gap: var(--reference-gap);
}
@media screen {
  .reference-cards[data-independent-cards] {
    --reference-card-width: calc((100% - (var(--reference-columns) - 1) * var(--reference-gap)) / var(--reference-columns));
    position: relative;
    display: block;
    height: var(--reference-results-height, 0px);
    overflow-anchor: none;
  }
  .reference-cards[data-independent-cards] > .reference-entry {
    position: absolute;
    inset-block-start: var(--reference-card-top, 0px);
    inset-inline-start: calc(var(--reference-card-column, 0) * (var(--reference-card-width) + var(--reference-gap)));
    width: var(--reference-card-width);
  }
}
.reference-controls[hidden] ~ .reference-cards { margin-top: 26px; }
.reference-entry {
  --cover: #d6eaf3;
  --cover-light: #f2f9fc;
  min-width: 0;
  border: 1px solid var(--reference-line);
  border-radius: 17px;
  background: #fff;
  scroll-margin-top: 108px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.reference-tone--rose {
  --cover: #f6e0e4;
  --cover-light: #fff6f6;
  --illustration-face: linear-gradient(159deg, #ffede7, #f7bbbf 45%, #eda6b2 78%, #e492a2);
  --illustration-rim: #bd7b89;
  --illustration-edge: #cc8293;
  --illustration-ink: #552b38;
}
.reference-tone--mint {
  --cover: #d7ebe1;
  --cover-light: #f2fbf5;
  --illustration-face: linear-gradient(155deg, #e9f9f0, #caeddb 28%, #acddc6 73%, #9bcdb7);
  --illustration-rim: #79a994;
  --illustration-edge: #78ad97;
  --illustration-ink: #174e3b;
}
.reference-anchor { display: block; height: 0; scroll-margin-top: 108px; }
.reference-entry:target { border-color: #5b8fc5; box-shadow: 0 0 0 2px #dcecff; }
.reference-entry summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}
.reference-entry details { border-radius: inherit; }
.reference-entry summary::-webkit-details-marker { display: none; }
.reference-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 134px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: radial-gradient(ellipse at 50% 8%, var(--cover-light), var(--cover));
}
.reference-card-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  padding: 15px 16px 17px;
}
.reference-card-topic {
  font-size: 12px;
  font-weight: 800;
  color: var(--reference-blue);
  line-height: 1.35;
}
.reference-card-title {
  color: var(--reference-ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.027em;
  overflow-wrap: anywhere;
}
.reference-card-intro {
  color: var(--reference-muted);
  font-size: 14px;
  line-height: 1.53;
}
.reference-byline { font-size: 13px; }
.reference-brand { display: inline-block; width: 16px; height: 16px; margin-right: 5px; vertical-align: -.15em; }
.reference-disclosure {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #c5d7ea;
  border-radius: 50%;
  background: #fffffff2;
  color: var(--reference-ink);
}
.reference-disclosure::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}
.reference-entry details[open] .reference-disclosure::after { transform: translateY(2px) rotate(225deg); }
.reference-entry:has(summary:focus-visible) { border-color: #9db6d4; }
.reference-detail {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-inline: 16px;
  padding-block: 13px 16px;
  border-top: 1px solid var(--reference-line);
  color: var(--reference-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.reference-detail strong { color: var(--reference-ink); }
.reference-source, .reference-entry-link, .reference-next {
  color: var(--reference-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reference-source { font-weight: 760; }
.reference-source svg, .reference-next svg { display: inline; width: 15px; height: 15px; margin-left: 5px; vertical-align: -.15em; }
.reference-entry-link { font-size: 13px; }
.reference-source:hover, .reference-entry-link:hover, .reference-next:hover { color: var(--reference-ink); }
.reference-cards[data-view="lijst"] { grid-template-columns: 1fr; gap: 8px; }
.reference-cards[data-view="lijst"] summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 85px;
  padding: 9px 48px 9px 10px;
}
.reference-cards[data-view="lijst"] .reference-cover {
  --illustration-size: 42px;
  height: 62px;
  border-radius: 10px;
}
.reference-cards[data-view="lijst"] .reference-illustration {
  box-shadow: inset 0 1px 1px #fffdf7d6, inset 0 -2px 0 var(--illustration-edge, #6aa9bf);
}
.reference-cards[data-view="lijst"] .reference-card-copy { min-height: 0; padding: 0; gap: 3px; }
.reference-cards[data-view="lijst"] .reference-card-title { font-size: clamp(17px, 2vw, 21px); }
.reference-cards[data-view="lijst"] .reference-disclosure { top: 50%; transform: translateY(-50%); }
.reference-cards[data-view="lijst"] .reference-detail { margin-inline: 95px 16px; }
.reference-cards[data-view="lijst"] .reference-detail p { max-width: 72ch; }
.reference-empty, .reference-answer {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--reference-line);
  border-radius: 16px;
  background: #f5f9fd;
}
.reference-answer {
  max-width: 76ch;
  margin-top: 37px;
}
.reference-empty h2, .reference-answer h2 {
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -.025em;
  line-height: 1.28;
}
.reference-empty p, .reference-answer p { margin-top: 6px; color: var(--reference-muted); line-height: 1.5; }
.reference-reset {
  min-height: 44px;
  margin-top: 13px;
  padding: 6px 13px;
  border: 1px solid #adc4e0;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  color: var(--reference-blue);
  background: #fff;
  cursor: pointer;
}
.reference-end { margin-top: 32px; }
.reference-next { display: inline-block; padding-block: 12px; font-weight: 750; }
@media (hover: hover) and (pointer: fine) {
  .reference-entry:hover { border-color: #9bb7d4; box-shadow: 0 7px 19px #173f6910; }
  .reference-entry summary:hover .reference-illustration { transform: translateY(-3px); }
}
@media (max-width: 1080px) {
  .reference-cards { --reference-columns: 3; }
}
@media (max-width: 810px) {
  .reference-hero--illustrated { gap: 20px; }
  .reference-cards { --reference-columns: 2; }
  .reference-filter-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 550px) {
  .reference-hero--illustrated { grid-template-columns: minmax(0, 1fr); }
  .reference-hero-art { display: none; }
  .reference h1 { font-size: clamp(38px, 10.8vw, 55px); }
  .reference-switch a { min-height: 44px; padding-inline: 11px; }
  .reference-search { gap: 8px; padding: 11px; }
  .reference-letter > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .reference-letter select { max-width: 120px; font-size: 16px; }
  .reference-search input { font-size: 16px; }
  .reference-filter-row { padding: 9px 11px 11px; }
  .reference-option > span { min-height: 42px; padding-inline: 9px; }
  .reference-view .reference-option > span { min-height: 40px; }
  .reference-result-count { font-size: 13px; }
  .reference-results-bar { gap: 5px 8px; }
}
@media (max-width: 435px) {
  .reference-cards { --reference-columns: 1; --reference-gap: 10px; }
  .reference-card-copy { min-height: 0; }
  .reference-cover { --illustration-size: 69px; height: 116px; }
  .reference-cards[data-view="lijst"] summary { grid-template-columns: 52px minmax(0, 1fr); gap: 9px; }
  .reference-cards[data-view="lijst"] .reference-cover { --illustration-size: 36px; height: 52px; }
  .reference-cards[data-view="lijst"] .reference-detail { margin-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-entry, .reference-illustration { transition: none; }
  .reference-entry summary:hover .reference-illustration { transform: none; }
}
@media (forced-colors: active) {
  .reference-illustration { color: CanvasText; border-color: CanvasText; }
}
