/* Stroomtij - tokens from the validated data-viz palette (light/dark selected, not flipped).
   Type: Inter, the same face as the videos (OFL, subset to Latin, see OFL-Inter.txt). */
@font-face { font-family: "Inter"; src: url("/static/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/inter-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  color-scheme: light;
  --page: #f2f5f8;      /* mistwit: cool, like the coast in the morning */
  --surface: #ffffff;
  --ink: #0f1a2b;       /* diepzee, the video surface */
  --ink-2: #52514e;
  --muted: #6f6d68;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --cheap: #2a78d6;   /* categorical slot 1 */
  --peak: #eb6834;    /* categorical slot 2 */
  --other: #898781;   /* de-emphasis, 3.5:1 on surface */
  --good: #006300;
  --bad: #b02a2a;
  --accent: #2a78d6;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0b1422;
    --surface: #132036;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #a3a29b;
    --grid: #22324a;
    --axis: #3a4a66;
    --border: rgba(255, 255, 255, 0.10);
    --cheap: #3987e5;
    --peak: #d95926;
    --other: #6b6a65;
    --good: #0ca30c;
    --bad: #e66767;
    --accent: #3987e5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1422; --surface: #132036; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #a3a29b; --grid: #22324a;
  --axis: #3a4a66; --border: rgba(255, 255, 255, 0.10); --cheap: #3987e5; --peak: #d95926; --other: #6b6a65;
  --good: #0ca30c; --bad: #e66767; --accent: #3987e5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1;  /* prices and times line up */
}
a { color: var(--accent); text-underline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }
main, .top, .foot { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
.brand svg path { fill: none; stroke-width: 3; stroke-linecap: round; }
.brand .tide1 { stroke: var(--cheap); } .brand .tide2 { stroke: var(--ink-2); }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 12px; }
.crumbs a { color: var(--muted); }
.hero { padding: 18px 0 6px; }
.hero h1 { font-size: clamp(26px, 6vw, 40px); line-height: 1.15; margin: 4px 0 10px; letter-spacing: -0.01em; }
.eyebrow { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 8px; max-width: 70ch; }
.nowrap { white-space: nowrap; }
h2 { font-size: 20px; margin: 28px 0 10px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 12px 22px; }
.tile .lbl { margin: 0; color: var(--ink-2); font-size: 14px; }
.tile .val { margin: 2px 0; font-size: 30px; font-weight: 700; }
.tile .sub { margin: 0; color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.tile .sw { position: absolute; left: 10px; top: 14px; bottom: 14px; width: 5px; border-radius: 3px; }
.delta .arrow { font-size: 11px; }
.delta.up .arrow { color: var(--bad); } .delta.down .arrow { color: var(--good); }
@media (max-width: 640px) {
  .tiles { gap: 6px; margin: 12px 0; }
  .tile { padding: 9px 8px 9px 15px; border-radius: 12px; }
  .tile .lbl, .tile .sub { font-size: 12px; line-height: 1.3; }
  .tile .val { font-size: 22px; }
  .tile .sw { left: 6px; top: 10px; bottom: 10px; width: 4px; }
  .tile .delta { font-size: 11px; }
}

.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.sw-cheap { background: var(--cheap); } .sw-peak { background: var(--peak); } .sw-other { background: var(--other); }

.chartfig { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 12px 10px; }
.chartfig figcaption { font-size: 14px; color: var(--ink-2); margin: 0 4px 6px; }
.chartwrap { position: relative; }
.pricechart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.pricechart:focus { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.pricechart .grid { stroke: var(--grid); stroke-width: 1; }
.pricechart .axis { stroke: var(--axis); stroke-width: 1.5; }
.pricechart .tick { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pricechart .b-cheap { fill: var(--cheap); } .pricechart .b-peak { fill: var(--peak); } .pricechart .b-other { fill: var(--other); }
.pricechart .bar.hover { opacity: .7; }
.pricechart.m { display: none; }
.pricechart.m .tick { font-size: 17px; }
@media (max-width: 640px) { .pricechart.d { display: none; } .pricechart.m { display: block; } }
.pricechart .cursor { stroke: var(--ink-2); stroke-width: 1; }
.tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.15); white-space: nowrap; transform: translate(-50%, -110%); }
.tip strong { font-size: 15px; display: block; }
.tip .k { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--ink-2); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 4px 2px; font-size: 14px; color: var(--ink-2); }

.note { background: var(--surface); border-left: 4px solid var(--peak); padding: 10px 12px; border-radius: 8px; }
.windows ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.windows li { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .windows ul { grid-template-columns: 1fr 1fr; }
  .windows li { grid-template-columns: 1fr; gap: 0; padding: 8px 10px; font-size: 14px; }
  .windows li strong { font-size: 16px; }
}
.muted { color: var(--muted); font-size: 14px; }
.assume { color: var(--muted); font-size: 13px; margin-top: 14px; }

.suppliers { margin-top: 22px; }
.scroll { overflow-x: auto; }
.suppliers td, .suppliers th { white-space: nowrap; }

details.table { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
details.table summary { cursor: pointer; font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; font-size: 14px; }
caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 6px; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--grid); }
tr.hour th, tr.hour td { font-weight: 600; }
tr.q td { color: var(--ink-2); padding-left: 18px; }
tr.is-cheap th { box-shadow: inset 4px 0 var(--cheap); } tr.is-peak th { box-shadow: inset 4px 0 var(--peak); }

.video video { width: min(360px, 100%); height: auto; border-radius: var(--radius); background: #000; }
.more { margin: 20px 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn { background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.pager { display: flex; justify-content: space-between; margin: 24px 0; }

.days { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.days a { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.days a:hover { border-color: var(--accent); }
.days .c { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.mini { width: 100%; max-width: 160px; height: 28px; } .mini rect { fill: var(--other); }
@media (max-width: 560px) { .days a { grid-template-columns: 1fr; } }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); text-decoration: none; }
.cards span { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; }

.partners { margin: 26px 0; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px 14px; }
.partners ul { padding-left: 18px; } .partners li span { display: block; color: var(--ink-2); font-size: 14px; }
.adlabel { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }

.prose { max-width: 70ch; } .prose h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
.prose li { margin: 4px 0; }
.planner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.planner label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.planner input, .planner select { font: inherit; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
@media (max-width: 560px) { .planner { grid-template-columns: 1fr; } }
.planner-out .res { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.planner-out .res strong { font-size: 20px; }
.foot { color: var(--muted); font-size: 13px; margin-top: 40px; padding-bottom: 30px; border-top: 1px solid var(--grid); padding-top: 14px; }
.foot a { color: var(--ink-2); }

/* live price right now (filled by site.js from /data/latest.json; hidden without data) */
.now { margin: 14px 0 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.now p { margin: 0; }
.now-main { font-size: 17px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.now-main strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.now-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); align-self: center;
  box-shadow: 0 0 0 0 rgba(12, 163, 12, .5); animation: pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .now-dot { animation: none; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(12, 163, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0); } }
#now-until { color: var(--ink-2); font-size: 15px; }
.now-level { font-size: 14px; color: var(--ink-2); }
.now-level .arrow { font-size: 11px; margin-right: 3px; }
.now-level.up .arrow { color: var(--bad); } .now-level.down .arrow { color: var(--good); }
.now-next { color: var(--ink-2); font-size: 15px; margin-top: 2px !important; }

/* --- getijdenlijn hero ------------------------------------------------------------------- */
.tij { padding: 28px 0 8px; }
.tij-dag { margin: 0 0 6px; color: var(--ink-2); font-weight: 600; font-size: 16px; }
.tij h1 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.tij-zin { display: block; font-size: clamp(22px, 4.2vw, 32px); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 4px; }
.tij-tijd { display: block; font-size: clamp(44px, 14.5vw, 148px); letter-spacing: -0.045em; line-height: .95;
  color: var(--ink); white-space: nowrap; }
.tij-sub { max-width: 60ch; margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.tij-lijn { margin: 22px 0 6px; }
.tideline { display: block; width: 100%; height: 88px; }
.tideline .t-all { fill: var(--other); opacity: .35; }
.tideline .t-cheap { fill: var(--cheap); }
.tideline .t-peak { fill: var(--peak); }
.tideline .t-zero { stroke: var(--axis); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tij-uren { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding-top: 6px;
  border-top: 1px solid var(--grid); }
@media (max-width: 640px) { .tideline { height: 64px; } .tij { padding-top: 16px; } }

/* --- quiet document flow: no card kit ---------------------------------------------------------- */
.tiles { gap: 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); margin: 18px 0; }
.tile { background: none; border: 0; border-radius: 0; padding: 12px 14px 12px 18px; }
.tile + .tile { border-left: 1px solid var(--grid); }
.tile .sw { left: 0; top: 16px; bottom: 16px; }
.windows ul { gap: 0; border-top: 1px solid var(--grid); }
.windows li { background: none; border: 0; border-bottom: 1px solid var(--grid); border-radius: 0; padding: 10px 2px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 15px; }
.now { border-radius: 10px; }
@media (max-width: 640px) {
  .tile { padding: 9px 6px 9px 12px; }
  .windows ul { grid-template-columns: 1fr 1fr; column-gap: 14px; }
}
