/* Nederland op schaal: the JustBee look (paper, ink, yellow; Fredoka and Nunito Sans, as on
   justbee.nl) with Dutch orange, polder blue and a measuring tape. */
:root {
  --paper: #faf7ee;
  --panel: #fffdf6;
  --ink: #1f1f1f;
  --muted: #6a665d;
  --line: #e8dfc9;
  --yellow: #ffc629;
  --yellow-soft: #fff0b7;
  --orange: #ff6b1a;
  --orange-deep: #d9520a;
  --orange-soft: #ffe2cf;
  --blue: #1f5fa6;
  --blue-soft: #dbe8f6;
  --water: #7fb2e0;
  --land: #f1e6c8;
  --land-line: #d9c99c;
  --cheese: #ffcf4a;
  --wax: #d8312f;
}

* {
  box-sizing: border-box;
}

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

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

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: var(--orange);
  text-underline-offset: 4px;
}

button,
select,
input {
  font: inherit;
}

.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;
  background:
    radial-gradient(circle at 88% 30%, rgba(255, 198, 41, .35), transparent 40%),
    linear-gradient(170deg, #fff3e6 0%, var(--paper) 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* A measuring tape along the top: long ticks every 10, short ticks every 2. */
.tape {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 60px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat,
    var(--yellow);
  border-bottom: 2px solid var(--ink);
}

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

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

.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 700;
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button.ghost {
  background: var(--panel);
  color: var(--ink);
}

.button.small {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 15px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  font: 600 24px 'Fredoka', sans-serif;
  letter-spacing: -.02em;
}

.hero-map {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.nlmap {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.prov {
  fill: var(--orange);
  stroke: #fff3e6;
  stroke-width: .9;
  stroke-linejoin: round;
}

.hero-map .prov {
  fill: var(--orange);
}

.tape-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
}

.tape-end {
  fill: var(--ink);
}

.tape-label {
  font: 700 13px 'Nunito Sans', sans-serif;
  fill: var(--ink);
}

.tape-badge {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 2;
}

/* ---------- layout */

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

.section {
  min-width: 0;
}

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

.section-head {
  margin-bottom: 22px;
  max-width: 70ch;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- scenarios */

.scenarios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  counter-reset: scenario;
}

.scenario {
  counter-increment: scenario;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 24px 20px;
  min-width: 0;
  scroll-margin-top: 16px;
}

.scenario::before {
  content: counter(scenario);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font: 700 16px/28px 'Fredoka', sans-serif;
  text-align: center;
}

.scenario h3 {
  font-size: 23px;
  margin-top: 6px;
}

.scenario h3 a {
  text-decoration: none;
}

.scenario h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
}

.visual {
  margin: 16px 0 4px;
  border-radius: 16px;
  background: var(--blue-soft);
  overflow: hidden;
}

.visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.big {
  margin: 14px 0 0;
  font: 700 clamp(28px, 4vw, 38px)/1.05 'Fredoka', sans-serif;
  letter-spacing: -.02em;
  color: var(--orange-deep);
}

.punch {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.math {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--yellow-soft);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.math::before {
  content: '= ';
  font-weight: 800;
  color: var(--orange-deep);
}

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

.sources {
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.sources a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* SVG pieces of the scenario visuals */

.v-sky {
  fill: var(--blue-soft);
}

.v-sea {
  fill: var(--water);
}

.v-earth {
  fill: #9fd18b;
  stroke: #5e9a4b;
  stroke-width: 1.5;
}

.v-track {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-dasharray: 2 4;
  opacity: .9;
}

.v-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
}

.v-line-2 {
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 7;
  stroke-linecap: round;
}

.v-text {
  font: 700 12px 'Nunito Sans', sans-serif;
  fill: var(--ink);
}

.v-text-big {
  font: 600 18px 'Fredoka', sans-serif;
  fill: var(--ink);
}

.v-text-light {
  font: 700 11px 'Nunito Sans', sans-serif;
  fill: #3c5a7a;
}

.v-land {
  fill: var(--land);
  stroke: var(--land-line);
  stroke-width: .6;
  stroke-linejoin: round;
}

.v-spot {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: .6;
}

.v-ring {
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 2;
}

.v-ground {
  fill: #9fd18b;
}

.v-tower {
  fill: var(--orange);
}

.v-mark {
  stroke: #3c5a7a;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.v-dike {
  fill: #b8d79c;
  stroke: #7ea661;
  stroke-width: 1.5;
}

.v-road {
  fill: #8c8c8c;
}

.v-wafel {
  fill: #d9973f;
  stroke: #8a5a1c;
  stroke-width: 1.2;
}

.v-wafel-grid {
  fill: none;
  stroke: #8a5a1c;
  stroke-width: .7;
}

.v-dom {
  fill: #a7896a;
  stroke: #6b5238;
  stroke-width: 1;
}

.v-dom-ghost {
  fill: none;
  stroke: #6b5238;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}

.v-mast {
  fill: #e9eef2;
  stroke: #536472;
  stroke-width: 1.2;
}

.v-cheese {
  fill: var(--cheese);
  stroke: var(--wax);
  stroke-width: 5;
}

.v-hole {
  fill: #f0b52c;
}

.v-water {
  fill: var(--water);
}

.v-ruler {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.v-tick {
  stroke: var(--ink);
  stroke-width: 1;
}

.v-bath {
  fill: #fff;
  stroke: #536472;
  stroke-width: 3;
}

.v-foot {
  fill: #536472;
}

.v-field {
  fill: #6fbf5a;
}

.v-field-line {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

.v-share {
  fill: var(--orange);
  opacity: .85;
}

/* ---------- converter */

.converter {
  scroll-margin-top: 16px;
}

.converter-input {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  min-width: 0;
}

.field input,
.field select {
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.field input {
  width: 11ch;
  font-family: 'Fredoka', sans-serif;
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

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

.converter-error {
  margin: 14px 0 0;
  color: var(--wax);
  font-weight: 700;
}

.converter-sentence {
  margin: 22px 0 0;
  font: 600 clamp(22px, 3.4vw, 32px)/1.2 'Fredoka', sans-serif;
  letter-spacing: -.02em;
}

.results {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.result {
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--paper);
  min-width: 0;
}

.result:first-child {
  background: var(--yellow-soft);
}

.result-count {
  display: block;
  font: 700 28px/1.1 'Fredoka', sans-serif;
  color: var(--orange-deep);
}

.result-unit {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.result-size {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.all-units {
  margin-top: 18px;
}

.all-units summary {
  cursor: pointer;
  font-weight: 800;
}

.units-table,
.figures-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

.units-table th,
.units-table td,
.figures-table th,
.figures-table td {
  text-align: left;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.units-table td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.share {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

/* ---------- figures */

.table-wrap {
  overflow-x: auto;
}

.figures-table td:nth-child(2) {
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.figures-table td:nth-child(3) {
  font-size: 14px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.small-print p {
  margin: 0 0 10px;
}

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

.small-print strong {
  color: var(--ink);
}

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

@media (max-width: 980px) {
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero-map {
    max-width: 300px;
  }

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

@media (max-width: 560px) {
  .justbee-return {
    padding: 8px 16px;
  }

  .hero-inner {
    padding: 30px 16px 40px;
  }

  .subline {
    font-size: 18px;
  }

  .page {
    padding: 28px 16px 48px;
    gap: 30px;
  }

  .card {
    padding: 22px 16px;
  }

  .scenario {
    padding: 22px 16px 16px;
  }

  .field input {
    width: 8ch;
  }

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

  .figures-table thead {
    display: none;
  }

  .figures-table tr,
  .figures-table td {
    display: block;
  }

  .figures-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .figures-table td {
    border: 0;
    padding: 0;
  }

  .figures-table td:nth-child(2) {
    white-space: normal;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

.visual-map svg {
  max-width: 300px;
  margin: 0 auto;
  padding: 10px 0;
}
