/* Weerspreuken: the JustBee look (paper, ink, yellow; Fredoka and Nunito Sans, as on justbee.nl)
   with a rainy petrol accent and a sky over the header. */
:root {
  --paper: #faf7ee;
  --panel: #fffdf6;
  --ink: #1f1f1f;
  --muted: #6a665d;
  --line: #e8dfc9;
  --yellow: #ffc629;
  --yellow-soft: #fff0b7;
  --petrol: #1d5f6b;
  --petrol-soft: #dceef0;
  --petrol-pale: #c9dfe2;
  --sky: #d7eaee;
  --cold: #2f6fb0;
  --klopt: #2f7d3a;
  --klopt-soft: #e2f1db;
  --zit: #1d5f6b;
  --zit-soft: #dceef0;
  --toeval: #7a6a4a;
  --toeval-soft: #f1ead8;
  --bijgeloof: #9b3d5a;
  --bijgeloof-soft: #f7e1e7;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-decoration-color: #d5a400;
  text-underline-offset: 4px;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .17em;
  font-weight: 800;
  text-transform: uppercase;
  color: #73654c;
}

/* ---------- JustBee return bar (as on the other subdomains) */

.justbee-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font: 800 14px 'Nunito Sans', sans-serif;
}

.justbee-return a {
  color: var(--ink);
  text-decoration: none;
}

.justbee-return .brand {
  display: block;
  width: 156px;
  line-height: 0;
}

.justbee-return .brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, #eaf3f1 55%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky-sun {
  fill: var(--yellow);
  opacity: .9;
}

.sky-cloud ellipse {
  fill: #fff;
}

.sky-cloud--far ellipse {
  fill: rgba(255, 255, 255, .75);
}

.sky-rain line {
  stroke: var(--cold);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .55;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--petrol);
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  max-width: 14ch;
}

.subline {
  margin: 16px 0 0;
  font-size: 19px;
  max-width: 46ch;
}

.scoreboard {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 246, .85);
  border: 1px solid var(--line);
}

.score-count {
  font: 600 24px 'Fredoka', sans-serif;
  line-height: 1;
}

.vane-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.vane {
  width: min(100%, 300px);
  height: auto;
  overflow: visible;
}

.vane-rooster {
  transform-origin: 130px 112px;
  animation: vane-swing 7s ease-in-out infinite;
}

.vane-rooster path,
.vane-rooster polygon,
.vane-rooster circle {
  fill: var(--ink);
}

.vane-rooster .vane-comb {
  fill: #c0392b;
}

.vane-rooster .vane-eye {
  fill: var(--yellow);
}

.vane-pole,
.vane-arm,
.vane-arrow,
.vane-leg {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}

.vane-arm,
.vane-arrow,
.vane-leg {
  stroke-width: 3;
}

.vane-knob {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 2;
}

.vane-letter {
  font: 700 15px 'Fredoka', sans-serif;
  fill: var(--petrol);
}

@keyframes vane-swing {
  0%, 100% { transform: rotate(-8deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(4deg); }
}

/* ---------- stamps */

.stamp {
  display: inline-block;
  padding: 3px 9px 2px;
  border: 2px solid currentColor;
  border-radius: 7px;
  font: 600 13px 'Fredoka', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.stamp--klopt { color: var(--klopt); background: var(--klopt-soft); }
.stamp--zit-wat-in { color: var(--zit); background: var(--zit-soft); }
.stamp--toeval { color: var(--toeval); background: var(--toeval-soft); }
.stamp--bijgeloof { color: var(--bijgeloof); background: var(--bijgeloof-soft); }

.stamp--big {
  font-size: 20px;
  padding: 6px 14px 4px;
  border-width: 3px;
  border-radius: 10px;
}

/* ---------- page */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  min-width: 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.section-head h2,
.explain h2,
.detail-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.sorter {
  display: flex;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--petrol);
}

.chip.is-active {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

.loading {
  color: var(--muted);
  margin: 0;
}

/* ---------- overview */

.sayings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.saying-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.saying-link:hover,
.saying-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--petrol-pale);
  box-shadow: 0 10px 24px rgba(29, 95, 107, .12);
}

.saying-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.saying-top .eyebrow {
  margin-top: 4px;
}

.saying-name {
  margin-top: 4px;
  font-size: 23px;
}

.saying-quote {
  margin: 8px 0 16px;
  font-style: italic;
  font-weight: 600;
  color: #3b3a36;
  flex: 1;
}

.saying-quote--plain {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- comparison bars */

.bars {
  display: grid;
  gap: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3.2em;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-label {
  color: var(--muted);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #f1ebdc;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--petrol);
}

.bar-fill--base {
  background: #b5ab93;
}

.bar-value {
  font-weight: 800;
  text-align: right;
}

.bars--big {
  margin-top: 16px;
  gap: 10px;
}

.bars--big .bar-row {
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 3.4em;
  font-size: 15px;
}

.bars--big .bar-track {
  height: 18px;
}

.bars--big .bar-value {
  font: 600 20px 'Fredoka', sans-serif;
}

/* ---------- detail */

.back {
  margin: 0 0 18px;
  font-weight: 800;
}

.back a {
  text-decoration: none;
  color: var(--petrol);
}

.detail-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-quote {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  border-left: 5px solid var(--yellow);
  font: 500 clamp(21px, 2.6vw, 28px) 'Fredoka', sans-serif;
  line-height: 1.3;
  max-width: 34ch;
}

.detail-quote--plain {
  border-left-color: var(--petrol-pale);
}

.quote-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.detail-verdict {
  margin-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.verdict-line {
  margin: 0;
  font-weight: 700;
  max-width: 52ch;
}

.detail-section {
  padding: 24px 0 4px;
  max-width: 900px;
}

.detail-section h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.detail-section p {
  margin: 0 0 10px;
  max-width: 70ch;
}

.rule-list {
  margin: 0;
  padding-left: 22px;
  max-width: 70ch;
}

.rule-list li {
  margin-bottom: 6px;
}

.rule-years {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px !important;
}

.result-text {
  font-weight: 700;
  font-size: 18px;
}

.chart-box {
  margin: 22px 0 0;
}

.chart-area {
  width: 100%;
  min-height: 60px;
}

.chart-box figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

.chart {
  display: block;
  overflow: visible;
}

.c-label { font: 600 12px 'Nunito Sans', sans-serif; fill: var(--muted); }
.c-label--small { font-size: 11px; }
.c-label--strong { fill: var(--ink); font-weight: 800; }
.c-label--cold { fill: var(--cold); }
.c-hit { fill: var(--petrol); }
.c-miss { fill: var(--petrol-pale); }
.c-base-hit { fill: #a79d84; }
.c-base-miss { fill: #ece4d0; }
.c-cold { fill: var(--cold); }
.c-grid { stroke: #efe8d6; stroke-width: 1; }
.c-zero { stroke: #b9ae94; stroke-width: 1; }
.c-axis { stroke: #b9ae94; stroke-width: 1; }
.c-threshold { stroke: var(--cold); stroke-width: 1.5; stroke-dasharray: 5 4; }
.c-band { fill: rgba(29, 95, 107, .12); }
.c-curve { fill: none; stroke: var(--petrol); stroke-width: 2.5; stroke-linejoin: round; }
.c-hover { fill: transparent; }
.c-hover:hover { fill: rgba(29, 95, 107, .25); }

.halves {
  border-collapse: collapse;
  font-size: 15px;
  min-width: min(100%, 420px);
}

.halves th,
.halves td {
  text-align: left;
  padding: 7px 18px 7px 0;
  border-bottom: 1px solid var(--line);
}

.halves th {
  font-size: 13px;
  color: var(--muted);
}

.halves td:not(:first-child) {
  font-weight: 800;
}

.sources {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.sources li {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.detail-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.pill {
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.pill:hover,
.pill:focus-visible {
  background: #ffb800;
}

.share-status {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.prev-next {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 800;
}

.prev-next a {
  text-decoration: none;
  color: var(--petrol);
}

/* ---------- how we test */

.explain p,
.how-list {
  max-width: 75ch;
}

.explain h2 {
  margin-bottom: 12px;
}

.explain h3 {
  font-size: 22px;
  margin: 26px 0 12px;
}

.how-list {
  padding-left: 20px;
}

.how-list li {
  margin-bottom: 8px;
}

.verdict-legend {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.verdict-legend div {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.verdict-legend dd {
  margin: 10px 0 0;
  font-size: 15px;
}

.small-print {
  font-size: 14px;
  color: var(--muted);
}

.small-print p {
  max-width: 90ch;
}

/* ---------- smaller screens */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 32px;
  }

  .vane-wrap {
    order: -1;
    justify-content: flex-start;
  }

  .vane {
    width: 120px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .justbee-return {
    padding-inline: 16px;
  }

  .justbee-return .brand {
    width: 126px;
  }

  .justbee-return > a:last-child {
    font-size: 12px;
  }

  .hero-inner,
  .page {
    padding-inline: 16px;
  }

  .page {
    padding-top: 20px;
    gap: 16px;
  }

  .card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .subline {
    font-size: 17px;
  }

  .bar-row {
    grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 3em;
  }

  .bars--big .bar-row {
    grid-template-columns: minmax(0, 1fr) 3.2em;
  }

  .bars--big .bar-label {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .prev-next {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
