/*
  ltfsolutions.com, taken over from design 1.1.1 ("Demo tour")
  The pages share this stylesheet. The front page has four cards, how we work and
  security; each of the four applications has its own page. On the page of
  LTF Winter Ops the de-icing board follows the product head, and its four modules
  follow the board, each with a small window of its own.
  Palette: frost #F2F6F9, ink #0F2B3D, brand blue #0075B2, light blue #A4C2DB.
  Colour always means something. On the de-icing board orange #E9761B and green #1E9A68
  are the two fluids, Type I and Type IV. In the other demos blue, orange, green and a
  plum #A93C86 name a series or a client. Green also means in order, amber #DB9A00 means
  waiting, crimson means below the minimum or wrong. Text stays in the ink colours.
  Type: Hanken Grotesk, tabular figures inside the board. The font is served from
  public/fonts (variable, weights 400 to 800, SIL Open Font License 1.1), so a visit
  sends nothing to Google.
  The demo windows are the loud elements. Everything else stays quiet.
  The title bar of a window is blue and fades from #005E90 on the left to #0075B2 on the
  right, as the top bar of the Instructie.net application does. The main button is ink,
  so that it stands apart from the blue bars.
*/
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --frost: #F2F6F9;
  --paper: #FFFFFF;
  --ink: #0F2B3D;
  --ink-2: #44596B;
  --line: #D3DEE7;
  --line-2: #E4ECF2;
  --blue: #0075B2;
  --blue-dark: #005E90;
  --sky: #A4C2DB;
  --sky-tint: #E4EFF7;
  --t1: #E9761B;
  --t1-tint: #FCEBDB;
  --t1-text: #9A4307;
  --t4: #1E9A68;
  --t4-tint: #DDF3EA;
  --t4-text: #0E6B46;
  --alert: #B4233C;
  --alert-tint: #FAE6EA;
  --alert-text: #8C1730;
  --plum: #A93C86;
  --plum-tint: #F6E4F0;
  --plum-text: #7E2562;
  --ok: var(--t4);
  --ok-tint: var(--t4-tint);
  --ok-text: var(--t4-text);
  --wait: #DB9A00;
  --wait-tint: #FBF0D0;
  --wait-text: #7A5200;
  --rain: #5590BE;
  --edge: #7C93A6;
  --wrap: 1240px;
  --pad: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(.3, .7, .2, 1);
  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 4px; }
.skip:focus { top: 1rem; color: #fff; }

.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.375rem;
  border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky); color: var(--ink); }
.text-link { font-weight: 600; }

/* Header */
.top { background: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.logo { display: inline-flex; }
.logo img { display: block; width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.nav a:hover { color: var(--blue-dark); text-decoration: underline; }
.nav { margin-left: auto; }
.nav-cta { border: 1.5px solid var(--ink); border-radius: 6px; padding: .4rem .9rem; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: start; }
.hero h1 {
  font-size: clamp(2.125rem, 4.4vw, 3.75rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.026em;
  max-width: 19ch;
}
.hero-lede { font-size: 1.1875rem; line-height: 1.5; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }

/* Applications: one card per application, at the top of the page.
   The picture is a small window of the demo in its own colours, the text is the name. */
.apps { margin-top: clamp(2rem, 4.5vw, 3.25rem); }
.apps-title { font-size: 1.0625rem; font-weight: 600; color: var(--ink-2); margin-bottom: .875rem; }
.apps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.apps-else { margin-top: .875rem; font-size: .9375rem; color: var(--ink-2); }
.app-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 16px 30px -24px rgba(15, 43, 61, .55);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.app-shot { flex: 1; display: flex; align-items: center; background: var(--paper); }
.app-name { display: block; padding: .75rem .875rem .875rem; border-top: 1px solid var(--line); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.app-card:hover { border-color: var(--blue); box-shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 20px 34px -20px rgba(15, 43, 61, .6); transform: translateY(-2px); }
.app-card:hover .app-name { color: var(--blue-dark); }
.app-card:focus-visible { border-radius: 10px; }
.sk { display: block; width: 100%; height: auto; }
.sk text { font-family: var(--font); }
.sk .t { font-size: 10px; font-weight: 700; fill: #0F2B3D; }
.sk .s { font-size: 8.5px; font-weight: 500; fill: #44596B; }
.sk .w { font-size: 9px; font-weight: 700; fill: #fff; }
.sk .h { font-size: 11px; font-weight: 700; fill: #fff; }
.sk .m { font-size: 8.5px; font-weight: 500; fill: #EAF4FB; }
.sk .fade-a { stop-color: var(--blue-dark); }
.sk .fade-b { stop-color: var(--blue); }
.sk .b { font-size: 13px; font-weight: 800; fill: #0F2B3D; }
.sk .o, .sk .g, .sk .p, .sk .u, .sk .r, .sk .a { font-size: 8px; font-weight: 700; }
.sk .o { fill: #9A4307; }
.sk .g { fill: #0E6B46; }
.sk .p { fill: #7E2562; }
.sk .u { fill: #005E90; }
.sk .r { fill: #8C1730; }
.sk .a { fill: #7A5200; }
.sk .big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; fill: #0F2B3D; }
.sk .rule, .sk .rule line { stroke: #D3DEE7; stroke-width: 1; }
@media (max-width: 900px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .app-name { padding: .625rem .75rem .75rem; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
  .app-card:hover { transform: none; }
}

/* The band behind the board on the front page */
.stage { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(.5rem, 2vw, 1rem); background: var(--frost); }
.stage-lead { max-width: 60ch; font-size: 1.1875rem; line-height: 1.5; }
.stage-lead strong { font-weight: 700; }
.stage .board, .winter-top .board { margin-top: 1.5rem; }
.winter-top .stage-lead { margin-top: clamp(2rem, 5vw, 3rem); }
.winter-top .product-head h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); }

/* The board */
.board {
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 43, 61, .04), 0 30px 60px -34px rgba(15, 43, 61, .5);
  font-variant-numeric: tabular-nums;
}
.board-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1.25rem;
  padding: .875rem 1.25rem;
  background: linear-gradient(to right, var(--blue-dark), var(--blue)); color: #fff;
}
.board-title { font-size: 1.0625rem; font-weight: 700; }
.board-role { color: #EAF4FB; }
.board-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1.25rem; margin-left: auto; color: #EAF4FB; }
.board-clock { color: #fff; font-size: 1.125rem; font-weight: 700; }
.board-toggle {
  font: inherit; font-size: .875rem; font-weight: 600; color: #fff; cursor: pointer;
  background: none; border: 1px solid rgba(255, 255, 255, .7); border-radius: 6px; padding: .3rem .7rem;
}
.board-toggle:hover { background: rgba(255, 255, 255, .16); }
.board-toggle:focus-visible { outline-color: #fff; }

.board-cols,
.req {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 138px 440px 108px;
  column-gap: 14px;
  align-items: center;
  padding: 0 1.25rem;
}
.board-cols { height: 2.5rem; border-bottom: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); align-self: stretch; }
.lane { display: flex; align-items: center; gap: .375rem; padding-left: 10px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.lane b { color: var(--ink); font-weight: 700; }

.rows { list-style: none; margin: 0; padding: 0; }
.req { min-height: 60px; border-bottom: 1px solid var(--line-2); }
.req:last-child { border-bottom: 0; }
.req:focus-visible { outline-offset: -3px; }

.req-stand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.req-flight, .req-by { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.req-flight strong { font-weight: 700; }
.req-flight span, .req-by span + span { font-size: .8125rem; color: var(--ink-2); }
.req-by span:first-child { font-weight: 500; }

.req-fluid { display: flex; flex-wrap: wrap; gap: 6px; }
.fluid {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 6px; border-radius: 4px;
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.fluid::before { content: ""; width: 7px; height: 14px; border-radius: 2px; }
.fluid-1 { background: var(--t1-tint); color: var(--t1-text); }
.fluid-1::before { background: var(--t1); }
.fluid-4 { background: var(--t4-tint); color: var(--t4-text); }
.fluid-4::before { background: var(--t4); }

.req-track {
  position: relative; align-self: stretch; min-height: 60px;
  background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px);
  background-size: 25% 100%;
}
.trail {
  position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px;
  width: calc(var(--s, 0) * 25% + 10px);
  background: var(--sky);
  transition: width .55s var(--ease);
}
.slot {
  position: absolute; left: 0; top: 0; bottom: 0; width: 25%;
  display: flex; align-items: center; padding-left: 10px;
  transform: translateX(calc(var(--s, 0) * 100%));
  transition: transform .55s var(--ease);
}
.puck {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px 0 8px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--blue);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  transition: background-color .3s, border-color .3s;
}
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); }
.dot-4 { display: none; }
.req[data-status="1"] .puck { background: var(--sky-tint); border-color: var(--sky); }
.req[data-status="1"] .dot { background: var(--blue); }
.req[data-status="2"] .puck { background: var(--t1-tint); border-color: #F3C59B; }
.req[data-status="2"] .dot { background: var(--t1); border-color: var(--t1); }
.req[data-status="2"] .dot-4 { display: block; background: var(--t4); border-color: var(--t4); margin-left: -2px; }
.req[data-status="3"] .puck { background: var(--frost); border-color: var(--line); }
.req[data-status="3"] .dot { position: relative; width: 14px; height: 14px; background: var(--ink); border-color: var(--ink); }
.req[data-status="3"] .dot::after {
  content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

.approve {
  position: absolute; left: calc(25% + 10px); top: 50%; transform: translateY(-50%);
  height: 32px; padding: 0 14px; border: 0; border-radius: 6px;
  background: var(--blue); color: #fff; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer;
}
.approve:hover { background: var(--blue-dark); }
.approve[hidden] { display: none; }

.req-litres { display: flex; flex-direction: column; gap: 1px; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.lit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t1); }
.lit-4::before { background: var(--t4); }

.board-notes {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem;
  padding: 1.5rem 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: .9375rem; color: var(--ink-2);
}
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; align-content: start; }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.legend i { width: 9px; height: 18px; border-radius: 2px; background: var(--t1); }
.legend .legend-4 i { background: var(--t4); }
.board-notes p { max-width: 66ch; }
.board-notes strong { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-frost { background: var(--frost); }
/* A short section between two larger ones: less air above, below and inside */
.section-compact { padding: clamp(3rem, 6vw, 4rem) 0; }
.section-compact .section-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section h2, .product-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.875rem); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head p { max-width: 62ch; }
/* Above three steps the head follows their columns: the title over the first, the text from the second */
.section-head-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
.section-head-thirds p { grid-column: 2 / 4; }

/* A section that sells one product: its name, who it is for, who works with it and how you start */
.product-for { margin-top: .5rem; font-size: 1.0625rem; font-weight: 600; color: var(--ink-2); }
.product-head { align-items: start; }
.product-head .lede { font-size: 1.1875rem; line-height: 1.5; }
.product-head p + p { margin-top: .75rem; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.product-head p + .section-actions { margin-top: 1.5rem; }
.sub { margin-bottom: .875rem; font-size: 1.3125rem; font-weight: 700; letter-spacing: -.01em; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1rem; }
.mod-shot {
  display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 16px 30px -24px rgba(15, 43, 61, .55);
}
.mod h3 { margin-top: 1rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.mod p { margin-top: .375rem; font-size: 1rem; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.roles { border-top: 1px solid var(--line); }
.roles > div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.roles dt { font-weight: 700; }
.roles dd { max-width: 54ch; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { position: relative; padding: .75rem 0 .75rem 2.5rem; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .8rem; width: 1.625rem; height: 1.625rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .875rem; font-weight: 700; line-height: 1.625rem; text-align: center;
  font-variant-numeric: tabular-nums;
}
.steps strong { font-weight: 700; }
.fine { margin-top: 1rem; max-width: 54ch; font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mods { grid-template-columns: minmax(0, 1fr); }
}

.facts { margin-top: 1.25rem; padding-left: 1.15rem; max-width: 58ch; }
.facts li { padding-left: .15rem; }
.facts li + li { margin-top: .3rem; }
.facts li::marker { color: var(--blue); }

/* Three steps side by side, each with an illustration: how we work, and security,
   where a dotted line joins them */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path-step { padding-right: 2.5rem; }
.path-art { display: flex; align-items: center; margin: 0 -2.5rem 1.5rem 0; }
/* Each drawing is 84 high, starts flush with the text below it and stands on the same line */
.path-art svg { flex: none; }
/* The dotted line stops 1rem short of the icon on either side */
.path-line { flex: 1; margin: 0 1rem; border-top: 2px dotted var(--sky); }
.path-step:last-child .path-art { margin-right: 0; }
.path-step h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .5rem; }
.path-step p { max-width: 40ch; }
.path-also { margin-top: clamp(2rem, 4vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Screens from the real applications, in a row that scrolls sideways. All are equally high,
   so a phone is narrow and a desktop wide; a caption is as wide as its picture. */
.shots-block { --shot-h: 17.5rem; margin-top: clamp(2.25rem, 5vw, 3rem); }
.shots-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.25rem; margin-bottom: .875rem; }
.shots-title { font-size: 1.0625rem; font-weight: 600; color: var(--ink-2); }
.shots-nav { display: flex; gap: .5rem; }
.shots-nav[hidden] { display: none; }
.shots-btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
}
.shots-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shots-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.shots-btn:disabled { border-color: var(--line); color: var(--ink); opacity: .4; cursor: default; }
.shots-btn:focus-visible { border-radius: 50%; }
.shots { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--sky) transparent; }
.shots:focus-visible { outline-offset: -3px; }
.shots-row { display: flex; gap: 1.5rem; width: max-content; margin: 0; padding: 0 0 1.25rem; list-style: none; }
.shot { flex: none; scroll-snap-align: start; }
.shot figure { display: table; margin: 0; }
.shot figcaption { display: table-caption; caption-side: bottom; padding-top: .75rem; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.shot figcaption strong { display: block; font-weight: 600; color: var(--ink); }
.shot img { display: block; width: auto; max-width: none; height: var(--shot-h); }
.shot-window img { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 16px 30px -24px rgba(15, 43, 61, .55); }
.shot-pair { display: flex; gap: 1rem; }
/* The row fades out on the right while it goes on there, and on the left once it has reached its end:
   that is where a picture is cut off, the other side starts with a whole one */
.shots-block.can-next .shots { mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); }
.shots-block.can-prev:not(.can-next) .shots { mask-image: linear-gradient(to left, #000 calc(100% - 3rem), transparent); }

/* Contact */
.contact { background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 1.5rem 3rem; align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.875rem); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; max-width: 16ch; }
.contact p { max-width: 48ch; color: #DCE8F1; }
.contact-actions { margin-top: 1.5rem; }
.contact-else { margin-top: 1.5rem; }
.contact a:not(.btn) { color: #fff; }
.contact a:not(.btn):hover { color: var(--sky); }
.contact :focus-visible { outline-color: var(--sky); }

/* Footer */
.foot { padding: 2rem 0; font-size: .9375rem; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot img { display: block; width: 131px; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-left: auto; }
.foot-nav a { color: var(--ink); }
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-2); font-size: .875rem; }
.foot-legal a { color: var(--ink-2); text-underline-offset: .2em; }
/* The address on the left; contact, registration and privacy stay together on the right, under the menu */
.foot-ids { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.5rem; margin-left: auto; }

/* Privacy statement and other running text */
.prose { max-width: 70ch; margin-top: 2.5rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h2 { margin-top: 2rem; font-size: 1.3125rem; font-weight: 700; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: .625rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose a { color: var(--blue-dark); text-underline-offset: .2em; }

/* Variant 1.1, "Demo tour": chapters and four more demo windows */
[hidden] { display: none !important; }
h4, h5, dl, dd, ol, fieldset { margin: 0; }
html:not(.js) .needs-js { display: none; }
[id] { scroll-margin-top: 1.25rem; }

/* Chapters */
.chapter-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.chapter-head > p { max-width: 62ch; }
.section-head + .chapter-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.chapter-title { font-size: clamp(1.5rem, 2.5vw, 2.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -.018em; }
.kicker { font-size: .9375rem; font-weight: 600; color: var(--ink-2); margin-bottom: .375rem; }
.chapter-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 3rem; align-items: start; }
.chapter-split.demo-first { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.chapter-split.demo-first .chapter-text { order: 2; }
.chapter-demo { min-width: 0; }
.chapter-text h2, .chapter-text .chapter-title { margin-bottom: 1rem; }
.chapter-text p + p, .chapter-text .facts + p { margin-top: .875rem; }
.chapter-text .try { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--blue); font-size: .9375rem; }
.try strong, .demo-note strong { color: var(--ink); font-weight: 600; }
.demo-note { margin-top: 1rem; font-size: .9375rem; color: var(--ink-2); max-width: 66ch; }

/* The window: same frame as the board */
.win {
  container-type: inline-size;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 43, 61, .04), 0 30px 60px -34px rgba(15, 43, 61, .5);
  font-variant-numeric: tabular-nums;
}
.board-toggle[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.board-toggle + .board-toggle { margin-left: 0; }
.tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: .625rem 2rem;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--line);
}
.tools label, .seg-label, .pl-open-label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.tools input[type="range"] { flex: 1 1 10rem; min-width: 8rem; height: 2rem; margin: 0; accent-color: var(--blue); }
.tools output { min-width: 3.25rem; text-align: right; font-size: 1.125rem; font-weight: 800; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; }
.seg-label { margin-right: .25rem; }
.seg-btn {
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink); cursor: pointer;
  min-height: 2.25rem; padding: 0 .75rem; border: 1px solid var(--edge); border-radius: 6px; background: var(--paper);
}
.seg-btn:hover { border-color: var(--blue); }
.seg-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-s {
  font: inherit; font-size: .875rem; font-weight: 700; color: #fff; cursor: pointer;
  min-height: 2.25rem; padding: 0 .875rem; border: 0; border-radius: 6px; background: var(--blue);
}
.btn-s:hover { background: var(--blue-dark); }
.btn-s.is-quiet { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-s.is-quiet:hover { background: var(--ink); color: #fff; }
.btn-s[aria-disabled="true"] { background: var(--line); color: var(--ink-2); cursor: not-allowed; }
.rep-title { font-size: .9375rem; font-weight: 700; margin-bottom: .625rem; }
.chart-read { margin-top: .5rem; min-height: 2.9em; font-size: .9375rem; }
.legend-small { margin-top: .625rem; gap: .25rem 1rem; font-size: .8125rem; color: var(--ink-2); }
.section .board-notes { padding-bottom: 0; }

/* Legend keys: the same colours as the marks they explain. */
i.key { flex: none; display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--blue); }
i.key-cod { background: var(--plum); }
i.key-rain { width: 8px; height: 12px; background: var(--rain); }
i.key-dei { width: 8px; height: 12px; background: var(--t1); }
i.key-norm { width: 19px; height: 2px; border-radius: 0; background: repeating-linear-gradient(to right, var(--ink-2) 0 5px, transparent 5px 9px); }
i.key-low { height: 10px; border-radius: 0; background: var(--alert-tint); border-top: 3px solid var(--alert); }
i.key-reg, i.key-eve, i.key-open, i.key-todo, i.key-plan, i.key-ok, i.key-soon, i.key-bad { width: 12px; height: 12px; }
i.key-eve { background: var(--plum); }
i.key-open { background: rgba(68, 89, 107, .25); border: 1.5px solid var(--ink-2); }
i.key-todo { background: var(--paper); border: 1.5px dashed var(--ink-2); }
i.key-plan { background: var(--ink-2); }
i.key-ok { background: var(--ok); }
i.key-soon { background: var(--wait); }
i.key-bad { background: var(--alert); }

/* Charts: inline SVG drawn by the script */
.chart { -webkit-tap-highlight-color: transparent; }
.chart svg { display: block; max-width: none; }
.chart:focus-visible { outline-offset: 2px; }
.pick-chart { cursor: pointer; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--ink-2); }
.chart .c-name { font-weight: 600; fill: var(--ink); }
.chart .c-tick { font-size: 11.5px; }
.chart .c-grid { stroke: var(--line-2); }
.chart .c-base { stroke: var(--line); }
.chart .c-band { fill: var(--frost); }
.chart .c-band.is-sel { fill: var(--sky-tint); }
.chart .c-label { font-size: 13px; fill: var(--ink); }
.chart .c-value { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.chart .c-num { font-size: 11.5px; fill: var(--ink); }
.chart .is-sel { font-weight: 700; }
.chart .c-reg { fill: var(--blue); }
.chart .c-eve { fill: var(--plum); }
.chart .c-bar.is-open { fill-opacity: .3; stroke-width: 1.5; }
.chart .c-reg.is-open { stroke: var(--blue); }
.chart .c-eve.is-open { stroke: var(--plum); }
.chart .c-todo { fill: var(--paper); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .c-ok { fill: var(--ok); }
.chart .c-soon { fill: var(--wait); }
.chart .c-bad { fill: var(--alert); }
.chart .c-cl { fill: var(--c); }
.chart .c-cltodo { fill: var(--paper); stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* Water quality */
.wq { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; }
.wq-plot { min-width: 0; padding: .875rem .5rem .5rem .625rem; }
.wq-chart { touch-action: pan-y; cursor: crosshair; min-height: 20rem; }
.wq-read { display: flex; flex-direction: column; gap: .875rem; padding: 1.125rem 1.25rem 1.25rem; border-left: 1px solid var(--line); }
.wq-time { font-size: 1.125rem; font-weight: 700; }
.wq-where { margin-top: -.75rem; font-size: .875rem; color: var(--ink-2); }
.wq-values { display: grid; gap: .5rem; }
.wq-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line-2); }
.wq-values dt { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--ink-2); }
.wq-values dd { font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
.wq-values b { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.wq-status { align-self: flex-start; padding: .375rem .625rem; border-radius: 6px; background: var(--ok-tint); color: var(--ok-text); font-size: .9375rem; font-weight: 700; }
.wq-status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: currentColor; vertical-align: .08em; }
.wq-status.is-low { background: var(--alert-tint); color: var(--alert-text); }
.wq-week { font-size: .9375rem; color: var(--ink-2); }
.chart .wq-day { stroke: var(--line-2); }
.chart .wq-rain { fill: var(--rain); }
.chart .wq-dei { fill: var(--t1); }
.chart .wq-hi-rain { fill: var(--blue-dark); }
.chart .wq-hi-dei { fill: var(--t1-text); }
.chart .wq-cod-area { fill: var(--plum-tint); }
.chart .wq-cod { fill: none; stroke: var(--plum); stroke-width: 2; stroke-linejoin: round; }
.chart .wq-norm { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .wq-low-area { fill: var(--alert); fill-opacity: .14; }
.chart .wq-o2 { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .wq-o2-low { stroke: var(--alert); }
.chart .wq-x { stroke: var(--ink); stroke-width: 1; }
.chart .wq-dot { stroke: #fff; stroke-width: 2; }
.chart .wq-dot-o2 { fill: var(--blue); }
.chart .wq-dot-low { fill: var(--alert); }
.chart .wq-dot-cod { fill: var(--plum); }
.chart .wq-val { font-size: 12.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart .wq-clean line { stroke: var(--ok); stroke-width: 2; }
.chart .wq-clean text { font-weight: 600; fill: var(--ok-text); }

/* Contractor work orders */
.wo-list { list-style: none; margin: 0; padding: 0; }
.wo-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 6.75rem 6.5rem; gap: .25rem 1rem; align-items: center;
  min-height: 60px; padding: .5rem 1.25rem; border-bottom: 1px solid var(--line-2);
}
.wo-row.is-sel { background: var(--frost); box-shadow: inset 3px 0 0 var(--blue); }
.wo-pick {
  appearance: none; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: .25rem 0;
  border: 0; background: none; font: inherit; line-height: 1.3; color: inherit; text-align: left; cursor: pointer;
}
.wo-pick strong { font-weight: 700; }
.wo-pick:hover strong { color: var(--blue-dark); text-decoration: underline; }
.wo-pick span, .wo-hours { font-size: .8125rem; color: var(--ink-2); }
.wo-times { display: flex; flex-direction: column; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.wo-state {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px 0 8px; border: 1px solid var(--edge); border-radius: 14px; background: var(--paper);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.wo-state::before { content: ""; flex: none; width: 10px; height: 10px; border: 2px solid var(--ink-2); border-radius: 50%; }
[data-state="expected"] .wo-state { border-color: var(--edge); border-style: dashed; }
[data-state="expected"] .wo-state::before { border-color: var(--ink-2); }
[data-state="onsite"] .wo-state { background: var(--sky-tint); border-color: var(--sky); }
[data-state="onsite"] .wo-state::before { background: var(--blue); border-color: var(--blue); }
[data-state="toapprove"] .wo-state { background: var(--wait-tint); border-color: #E3C36B; }
[data-state="toapprove"] .wo-state::before { border-width: 3px; border-color: var(--wait); }
[data-state="approved"] .wo-state { background: var(--ok-tint); border-color: #A9DCC5; }
[data-state="approved"] .wo-state::before {
  width: 14px; height: 14px; border: 0;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.3l2.3 2.3 4.5-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.wo-end { justify-self: end; text-align: right; }
.wo-amount { font-weight: 800; }
.wo-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.wo-list > li:last-child { border-bottom: 0; }
.wo-calc { min-height: 22rem; padding: 1.125rem 1.25rem 1.25rem; border-right: 1px solid var(--line); }
.wo-calc .rep-title { margin-bottom: .125rem; }
.wo-report, .tr-report, .pl-report { min-width: 0; padding: 1.125rem 1.25rem 1.25rem; }
.calc-when { margin-bottom: .625rem; font-size: .875rem; color: var(--ink-2); }
.calc { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.calc th { padding: .3125rem 0; text-align: left; font-weight: 600; vertical-align: top; }
.calc th span { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-2); }
.calc th i.key { margin-right: .4375rem; }
.calc tfoot[data-state="approved"] th span { font-weight: 600; color: var(--ok-text); }
.calc tfoot[data-state="toapprove"] th span { font-weight: 600; color: var(--wait-text); }
.calc td { padding: .3125rem 0 .3125rem .75rem; text-align: right; font-weight: 600; white-space: nowrap; vertical-align: top; }
.calc tbody tr + tr > * { border-top: 1px solid var(--line-2); }
.calc tfoot > tr > * { padding-top: .5rem; border-top: 2px solid var(--ink); font-size: 1.125rem; font-weight: 800; }

/* Training */
.tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.quiz { display: flex; flex-direction: column; gap: .875rem; min-width: 0; padding: 1.125rem 1.25rem 1.25rem; border-right: 1px solid var(--line); }
.quiz-step { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.quiz-prog { display: inline-flex; gap: 4px; }
.quiz-prog i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.quiz-prog .is-now { background: var(--ink); }
.quiz-prog .is-done { background: var(--blue); }
.quiz-prog .is-ok { background: var(--ok); }
.quiz-prog .is-wrong { background: var(--alert); }
.quiz fieldset { min-width: 0; padding: 0; border: 0; }
.quiz legend { padding: 0; margin-bottom: .875rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.opt { display: flex; align-items: flex-start; gap: .625rem; padding: .625rem .75rem; border: 1px solid var(--edge); border-radius: 8px; line-height: 1.35; cursor: pointer; }
.opt + .opt { margin-top: .5rem; }
.opt input { flex: none; width: 1.0625rem; height: 1.0625rem; margin: .125rem 0 0; accent-color: var(--blue); }
.opt:hover { border-color: var(--blue); }
.opt.is-picked { border-color: var(--blue); background: var(--sky-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.quiz-score { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.quiz-score.is-pass { color: var(--ok-text); }
.quiz-score.is-fail { color: var(--alert-text); }
.quiz-fb { min-height: 4.5rem; font-size: .9375rem; }
#quiz-body { min-height: 15rem; }
.quiz-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.quiz .rep-title { margin-bottom: 0; }
.quiz-count { margin-top: .375rem; font-weight: 600; }
/* The result lists the questions that went wrong: what was chosen, and what is correct. */
.rv { list-style: none; margin: .875rem 0 0; padding: 0; font-size: .9375rem; line-height: 1.4; }
.rv li { padding: .625rem 0; border-top: 1px solid var(--line-2); }
.rv span { display: block; margin-top: .3125rem; padding-left: .625rem; font-size: .875rem; }
.rv-given { border-left: 3px solid var(--alert); color: var(--alert-text); }
.rv-right { border-left: 3px solid var(--ok); color: var(--ok-text); }

/* Status of a test: green is valid, amber expires within 60 days, crimson is expired or not taken. */
.st {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px;
  border: 1px solid var(--edge); border-radius: 13px; background: var(--paper);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.st::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.st-ok { background: var(--ok-tint); border-color: #A9DCC5; }
.st-ok::before { background: var(--ok); }
.st-wait { background: var(--wait-tint); border-color: #E3C36B; }
.st-wait::before { background: var(--wait); }
.st-bad { background: var(--alert-tint); border-color: #E9B5BF; }
.st-bad::before { background: var(--alert); }

/* Employee view: the learning profile */
.view-switch { display: inline-flex; gap: .375rem; }
.lp-group { margin: .875rem 0 .125rem; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.lp-group:first-child { margin-top: 0; }
.lp { list-style: none; margin: 0; padding: 0; }
.lp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .625rem .5rem; margin: 0 -.5rem; border-top: 1px solid var(--line-2); }
.lp-row:first-child { border-top: 0; }
.lp-ico { width: 2.25rem; height: 2.25rem; padding: .375rem; border-radius: 8px; background: var(--frost); fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-row[data-state="ok"] .lp-ico { background: var(--ok-tint); stroke: var(--ok); }
.lp-row[data-state="wait"] .lp-ico { background: var(--wait-tint); stroke: #B07C00; }
.lp-row[data-state="bad"] .lp-ico { background: var(--alert-tint); stroke: var(--alert); }
.lp-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lp-main strong { font-weight: 700; }
.lp-sub { margin-top: .1875rem; font-size: .8125rem; color: var(--ink-2); }
.lp-cert { display: flex; align-items: center; gap: .375rem; margin-top: .25rem; font-size: .8125rem; font-weight: 600; }
.lp-cert svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-row.is-new { border-radius: 8px; border-top-color: transparent; background: var(--ok-tint); }
.lp-row.is-new + .lp-row { border-top-color: transparent; }
.lp-row.is-new .lp-ico { background: var(--paper); }
.lp-row.is-new .st { background: var(--paper); }

/* Management view: totals, two reports and who is due first */
.mg-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mg-tiles li { padding: .875rem 1.25rem 1rem; border-left: 1px solid var(--line); }
.mg-tiles li:first-child { border-left: 0; }
.mg-tiles b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.mg-tiles span { display: flex; align-items: center; gap: .5rem; font-size: .875rem; line-height: 1.3; color: var(--ink-2); }
.mg-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.mg-charts > :first-child { border-right: 1px solid var(--line); }
.mg-charts .chart-read { min-height: 4.4em; }
.due { list-style: none; margin: 0; padding: 0; font-size: .9375rem; line-height: 1.3; }
.due li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 7.75rem; gap: .25rem 1rem; align-items: center; padding: .5rem; margin: 0 -.5rem; border-top: 1px solid var(--line-2); }
.due li:first-child { border-top: 0; }
.due-who, .due-what { display: flex; flex-direction: column; min-width: 0; }
.due-who strong { font-weight: 700; }
.due-tag, .due-what span { font-size: .8125rem; color: var(--ink-2); }
.due .is-you { border-radius: 8px; border-top-color: transparent; background: var(--frost); }
.due .is-you + li { border-top-color: transparent; }
.due .st { justify-self: end; }
.due li.due-gap { display: block; padding: .3125rem .5rem; font-size: .8125rem; color: var(--ink-2); }
.due li.due-gap::before { content: "\22EE"; margin-right: .5rem; }
.due li.due-gap + li { border-top-color: transparent; }

/* Planning */
.pl { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; }
.pl-main { min-width: 0; border-right: 1px solid var(--line); }
/* One colour per client: the same on the chips, on the board and in the chart. */
.c0 { --c: var(--blue); --c-tint: var(--sky-tint); --c-text: var(--blue-dark); }
.c1 { --c: var(--t1); --c-tint: var(--t1-tint); --c-text: var(--t1-text); }
.c2 { --c: var(--t4); --c-tint: var(--t4-tint); --c-text: var(--t4-text); }
.c3 { --c: var(--plum); --c-tint: var(--plum-tint); --c-text: var(--plum-text); }
.pl-open { padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.pl-open-label { display: block; margin-bottom: .5rem; }
.pl-chips { display: grid; justify-items: start; gap: .375rem; }
.pl-chip {
  font: inherit; font-size: .875rem; color: var(--ink); text-align: left; cursor: pointer;
  min-height: 2.25rem; padding: .25rem .625rem; border: 1.5px dashed var(--c, var(--blue)); border-radius: 6px; background: var(--paper);
}
.pl-dot { display: inline-block; width: .625rem; height: .625rem; margin-right: .5rem; border-radius: 50%; background: var(--c, var(--blue)); }
.pl-chip strong { font-weight: 700; }
.pl-chip:hover { background: var(--c-tint, var(--sky-tint)); }
.pl-chip[aria-pressed="true"] { border-style: solid; background: var(--c-tint, var(--sky-tint)); box-shadow: inset 0 0 0 1px var(--c, var(--blue)); }
.pl-chip.is-done { padding: .4375rem .625rem; border: 1.5px solid var(--line); background: var(--frost); color: var(--ink-2); cursor: default; }
.pl-done { font-size: .9375rem; font-weight: 600; }
.pl-scroll { overflow-x: auto; position: relative; } /* relative: houdt de verborgen labels binnen het scrollvak */
.pl-scroll:focus-visible { outline-offset: -3px; }
.pl-table { width: 100%; min-width: 30rem; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pl-table th, .pl-table td { padding: 0; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.pl-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 7rem; border-left: 0; background: var(--paper); }
.pl-table thead th { height: 2.25rem; padding: 0 .5rem; font-size: .8125rem; font-weight: 600; color: var(--ink-2); text-align: left; }
.pl-table thead th:first-child { padding-left: 1rem; }
.pl-table thead .is-today { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.pl-table thead .is-pick { background: var(--sky-tint); color: var(--ink); }
.pl-table tbody th { padding: .5rem .375rem .5rem 1rem; font-weight: 400; line-height: 1.25; text-align: left; vertical-align: middle; }
.pl-table tbody th strong { display: block; font-weight: 700; }
.pl-table tbody th span { display: block; font-size: .8125rem; color: var(--ink-2); }
.pl-table tbody th .pl-now { font-weight: 600; color: var(--blue-dark); }
.pl-table tbody th .pl-now.is-done { color: var(--ok-text); }
.pl-table tbody th .pl-now.is-wait { color: var(--wait-text); }
.pl-table tbody th .pl-now.is-free { font-weight: 400; color: var(--ink-2); }
.pl-table td { height: 64px; padding: 5px 3px; vertical-align: middle; }
.pl-table tbody tr:last-child > * { border-bottom: 0; }
.pl-job {
  display: flex; flex-direction: column; justify-content: center; height: 46px; padding: 0 .375rem; overflow: hidden;
  border-left: 3px solid var(--c, var(--blue)); border-radius: 6px; background: var(--c-tint, var(--sky-tint)); font-size: .8125rem; line-height: 1.25;
}
.pl-job strong, .pl-job span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-job strong { font-weight: 700; }
.pl-job span { color: var(--ink-2); }
.pl-job.is-new { box-shadow: inset 0 0 0 2px var(--c, var(--blue)); }
.pl-slot {
  width: 100%; height: 46px; padding: 0 .25rem; border: 1.5px dashed var(--c, var(--blue)); border-radius: 6px; background: var(--paper);
  font: inherit; font-size: .8125rem; font-weight: 700; color: var(--c-text, var(--blue-dark)); cursor: pointer;
}
.pl-slot:hover, .pl-slot:focus-visible { border-style: solid; background: var(--c-tint, var(--sky-tint)); }

/* Board switches to a stacked row before the columns get cramped */
@media (max-width: 1140px) {
  .board-cols { display: block; height: auto; padding: 0; }
  .board-cols .col { display: none; }
  .lanes { height: 2.5rem; }
  .req {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "stand flight by" "fluid fluid litres" "track track track";
    gap: .5rem 1rem; padding: .875rem 1.25rem 0; min-height: 0;
  }
  .req-stand { grid-area: stand; }
  .req-flight { grid-area: flight; flex-direction: row; align-items: baseline; gap: .5rem; }
  .req-by { grid-area: by; flex-direction: row; align-items: baseline; gap: .5rem; justify-content: flex-end; }
  .req-fluid { grid-area: fluid; }
  .req-litres { grid-area: litres; flex-direction: row; gap: .875rem; justify-content: flex-end; }
  .req-track { grid-area: track; margin: .25rem -1.25rem 0; min-height: 48px; border-top: 1px solid var(--line-2); }
}

@media (max-width: 900px) {
  .hero-top, .board-notes, .section-head, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .section-head-thirds p { grid-column: auto; }
  .hero h1 { max-width: 22ch; }
  .path { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .path-step { padding-right: 0; }
  .path-art { margin: 0 0 1rem; }
  .path-line { display: none; }
  /* One step per row: its text may use the row, it is no longer a narrow column */
  .path-step p { max-width: 62ch; }
  .shots-block { --shot-h: 12.5rem; }
  .shots { margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .shots-row { gap: 1rem; }
}

/* Between phone and desktop there is room to put a drawing beside its text instead of above it */
@media (min-width: 561px) and (max-width: 900px) {
  .path { gap: 2rem; }
  .path-step { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 1.5rem; align-items: start; }
  .path-art { grid-row: 1 / span 2; margin: 0; }
  .path-step h3, .path-step p { grid-column: 2; }
}

@media (max-width: 560px) {
  .logo img { width: 168px; }
  .board-bar { padding: .75rem 1rem; }
  .board-meta { margin-left: 0; width: 100%; }
  .board-toggle { margin-left: auto; }
  .lane { font-size: .75rem; padding-left: 8px; }
  .req {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "stand flight flight" "stand by by" "fluid fluid litres" "track track track";
    gap: .25rem .875rem; padding: .75rem 1rem 0;
  }
  .req-by { justify-content: flex-start; }
  .req-fluid { margin-top: .375rem; }
  .req-litres { margin-top: .375rem; }
  .req-track { margin: .5rem -1rem 0; }
  .slot { padding-left: 8px; }
  .approve { left: auto; right: .75rem; }
  .foot-nav, .foot-ids { margin-left: 0; }
  .foot-ids { justify-content: flex-start; }
}

/* Inside a window the layout follows the width of the window, not of the page */
@container (max-width: 730px) {
  .pl { grid-template-columns: minmax(0, 1fr); }
  .pl-main { border-right: 0; border-bottom: 1px solid var(--line); }
}
@container (max-width: 720px) {
  .wq { grid-template-columns: minmax(0, 1fr); }
  .wq-read { order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .wq-values { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 1.5rem; }
}
@container (max-width: 560px) {
  .wo-lower, .tr, .mg-charts { grid-template-columns: minmax(0, 1fr); }
  .mg-charts > :first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .mg-tiles li { padding: .75rem 1rem .875rem; }
  .mg-tiles b { font-size: 1.5rem; }
  .mg-tiles span { align-items: flex-start; }
  .mg-tiles i.key { margin-top: .1875rem; }
  .due li { grid-template-columns: minmax(0, 1fr) auto; }
  .due li.due-gap { display: block; }
  .due-what { grid-column: 1; grid-row: 2; }
  .due .st { grid-column: 2; grid-row: 1 / span 2; }
  .wo-calc, .quiz { border-right: 0; border-bottom: 1px solid var(--line); }
  .wo-calc { min-height: 0; }
  .wo-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who end" "times state"; padding: .625rem 1rem; }
  .wo-pick { grid-area: who; }
  .wo-times { grid-area: times; flex-direction: row; align-items: baseline; gap: .5rem; }
  .wo-state { grid-area: state; justify-self: end; }
  .wo-end { grid-area: end; }
  .tools, .pl-open { padding-left: 1rem; padding-right: 1rem; }
  .seg-label { flex-basis: 100%; }
  .wq-read, .wo-calc, .wo-report, .quiz, .tr-report, .pl-report { padding-left: 1rem; padding-right: 1rem; }
  .pl-table tr > :first-child { width: 5.5rem; }
}

@media (max-width: 1000px) {
  .chapter-split, .chapter-split.demo-first { grid-template-columns: minmax(0, 1fr); }
  .chapter-split.demo-first .chapter-text { order: 0; }
}
@media (max-width: 900px) {
  .chapter-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; gap: .5rem 1rem; min-height: 0; padding-top: .75rem; padding-bottom: .25rem; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; flex-wrap: wrap; gap: 0 .75rem; font-size: .9375rem; }
  .nav a { padding: .5rem 0; }
  /* Next to the smaller logo the button is lower, so that it does not stand taller than the logo */
  .nav-cta { padding: .3rem .75rem; font-size: .9375rem; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trail, .slot, .puck { transition: none; }
}

/* Application pages: the title and the demo sit on frost at the top. */
.page-top { background: var(--frost); padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.crumb { font-size: .9375rem; font-weight: 600; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-top h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 700; line-height: 1.06; letter-spacing: -.024em; }
.page-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; align-items: start;
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
}
.page-head p { max-width: 62ch; }
.page-head .page-lede { font-size: 1.1875rem; line-height: 1.5; }
.page-jump { margin-top: .75rem; font-size: .9375rem; color: var(--ink-2); }
.page-top .board-notes { padding-bottom: 0; }
.chapter-text h1 { margin-bottom: 1rem; }
.section h2.chapter-title { font-size: clamp(1.5rem, 2.5vw, 2.125rem); line-height: 1.12; letter-spacing: -.018em; }

/* The other applications, at the end of an application page. */
.more-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem 1rem; align-items: start; }
.more-head p { margin-top: .75rem; }
.more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .page-head, .more-in { grid-template-columns: minmax(0, 1fr); }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-grid .app-card { flex-direction: row; }
  .more-grid .app-shot { flex: 0 0 42%; }
  .more-grid .app-name { flex: 1; display: flex; align-items: center; border-top: 0; border-left: 1px solid var(--line); }
}

/* Contact form: in a dialog that the contact links open, and on its own page for a direct visit */
html:has(.dialog[open]) { overflow: hidden; }
.dialog {
  width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0;
  border: 0; border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 70px -24px rgba(15, 43, 61, .7); overflow: auto; overscroll-behavior: contain;
}
.dialog::backdrop { background: rgba(15, 43, 61, .6); }
.dialog-in { position: relative; padding: clamp(1.5rem, 5vw, 2.25rem); }
.dialog-close {
  position: absolute; top: .625rem; right: .625rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer;
}
.dialog-close:hover { background: var(--frost); }
.dialog-head h2 { padding-right: 2.5rem; font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 700; line-height: 1.12; letter-spacing: -.018em; }
.dialog-head p { margin-top: .5rem; color: var(--ink-2); }
.dialog .cform { margin-top: 1.5rem; }

.cform-form { display: grid; gap: 1rem; }
.field label { display: block; margin-bottom: .375rem; font-size: .9375rem; font-weight: 600; }
.field input, .field textarea {
  display: block; width: 100%; padding: .625rem .75rem;
  border: 1.5px solid var(--edge); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--blue); border-radius: 6px; }
.field [aria-invalid="true"] { border-color: var(--alert); }
.field-error { margin-top: .375rem; font-size: .9375rem; color: var(--alert-text); }
.field-opt { font-weight: 400; color: var(--ink-2); }
.cform-alert { padding: .75rem 1rem; border-radius: 6px; background: var(--alert-tint); color: var(--alert-text); font-weight: 600; }
.cform-alert a { color: inherit; text-underline-offset: .2em; }
.cform-privacy { font-size: .875rem; color: var(--ink-2); }
.cform-privacy a { color: var(--blue-dark); text-underline-offset: .2em; }
.cform-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform button.btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.cform button.btn[disabled] { opacity: .65; cursor: progress; }
.cform-done { display: grid; gap: .5rem; padding: 1.25rem; border-radius: 8px; background: var(--ok-tint); }
/* It takes the focus after sending so that a screen reader reads it; it is not a control */
.cform-done:focus { outline: none; }
.cform-done-title { font-weight: 700; color: var(--ok-text); }
.cform-again { padding: 0; border: 0; background: none; color: var(--blue-dark); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cform-again:hover { color: var(--ink); }

.contact-page-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.contact-page .page-lede { margin-top: 1rem; max-width: 40ch; font-size: 1.1875rem; line-height: 1.5; }
.contact-card {
  max-width: 38rem; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 16px 30px -24px rgba(15, 43, 61, .55);
}
@media (max-width: 900px) {
  .contact-page-in { grid-template-columns: minmax(0, 1fr); }
}
