:root {
  --normal-blue: #155ee8;
  --normal-fill: #a9cdf7;
  --normal-axis: #111;
}

.normal-main {
  width: 100%;
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: clamp(.35rem, 1.4vw, 1.25rem) 0;
  overflow: hidden;
}

.normal-chart-wrap {
  width: 100%;
  max-width: none;
  display: grid;
  justify-items: stretch;
  overflow: hidden;
  position: relative;
}

.normal-chart {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;

  overflow: visible;
  user-select: none;
  touch-action: none;
}

.normal-curve {
  fill: none;
  stroke: var(--normal-blue);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

.normal-shade {
  fill: var(--normal-fill);
  opacity: .78;
}

.normal-axis {
  stroke: var(--normal-axis);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.normal-full-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 2.2px solid var(--normal-axis);
  pointer-events: none;
  z-index: 2;
}

.normal-tick {
  stroke: var(--normal-axis);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.normal-tick-label {
  fill: #111;
  font: 23px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.normal-selection {
  visibility: hidden;
  fill: none;
  stroke: #155ee8;
  stroke-width: 1.4;
  stroke-dasharray: 7 6;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.normal-selection.visible {
  visibility: visible;
}

.normal-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.normal-hit-area:focus-visible {
  outline: none;
}

.normal-info {
  display: block;
  margin-top: clamp(-.15rem, -.2vw, 0rem);
  min-height: 1.1em;
  color: var(--normal-blue);
  font: 800 clamp(2rem, 4.2vw, 4.2rem)/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  text-align: center;
  user-select: none;
}

@media (max-width: 700px) {
  .normal-main {
    min-height: calc(100vh - 80px);
    padding: .15rem;
  }

  .normal-chart {

  }

  .normal-tick-label {
    font-size: 28px;
  }

  .normal-info {
    font-size: clamp(1.8rem, 8vw, 3.4rem);
  }
}

html,
body {
  overflow-x: hidden;
}


/* De grafiek gebruikt automatisch alle ruimte onder de werkelijke hoogte van de blauwe balk. */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.bar {
  flex: 0 0 auto;
}

.normal-main {
  box-sizing: border-box;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.normal-chart-wrap {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.normal-chart {
  min-height: 0;
  height: 100%;
  width: 100%;
}

.normal-main {
  position: relative;
}

/* Help bij de interactieve grafiek: los van de menubalk. */
.chart-help {
  position: absolute;
  top: .55rem;
  right: .75rem;
  z-index: 20;
  margin: 0;
}

.chart-help summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(30, 45, 77, .30);
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  font: 800 1.65rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 2px 8px rgba(16, 33, 68, .10);
  user-select: none;
}

.chart-help summary::-webkit-details-marker {
  display: none;
}

.chart-help summary::marker {
  content: "";
}

.chart-help summary:hover,
.chart-help[open] summary {
  background: #fff;
}

.chart-help summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.chart-help-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 8rem);
  overflow-y: auto;
  padding: 14px 16px 15px;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 12px 30px rgba(16, 33, 68, .18);
  z-index: 30;
}

.chart-help-panel h2 {
  margin: 0 0 9px;
  font-size: 1.12rem;
}

.chart-help-panel dl {
  margin: 0;
}

.chart-help-panel dl > div {
  display: grid;
  grid-template-columns: minmax(7.3rem, auto) 1fr;
  gap: .7rem;
  padding: .32rem 0;
  border-top: 1px solid #dfe3ea;
}

.chart-help-panel dl > div:first-child {
  border-top: 0;
}

.chart-help-panel dt {
  font-weight: 800;
  white-space: nowrap;
}

.chart-help-panel dd {
  margin: 0;
}

.chart-help-panel p {
  margin: .7rem 0 0;
  padding-top: .65rem;
  border-top: 1px solid #dfe3ea;
}

@media (max-width: 560px) {
  .chart-help {
    top: .35rem;
    right: .4rem;
  }

  .chart-help-panel {
    width: min(360px, calc(100vw - 16px));
    padding: 12px 14px;
  }

  .chart-help-panel dl > div {
    grid-template-columns: 1fr;
    gap: .05rem;
  }
}
