/* shalution.nl: de bouwtekening.
   Eén tekenvel per blad: kader met rastervakken A–F, de tekening (main) over vier vakken,
   de titelkolom (header) over twee, met het titelblok onderaan. Twee kleuren, geen tinten:
   blauw voor lijnwerk en koppen, oranje alleen voor wijziging. Donker = blauwdruk.
   Alles van de eigen server; geen inline style (CSP 'self'). */

@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-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; }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/overpass-mono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/overpass-mono-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 {
  --paper: #ffffff;     /* plotpapier */
  --line: #003f90;      /* lijnwerk, koppen, links (9,9:1 op wit) */
  --ink: #0b1b33;       /* lopende tekst */
  --soft: #2b3f5f;      /* toelichting (10:1 op wit) */
  --change: #e7511e;    /* alleen wijziging: wolk, driehoek, actieve laag; nooit tekst */
  --on-line: #ffffff;   /* tekst op een blauw gevulde rij */
  --f-sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --m: clamp(8px, 1vw, 14px);        /* marge buiten het kader */
  --frame: 22px;                     /* ruimte voor de rastervakken */
  --pad: clamp(1.1rem, 2vw, 1.75rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #003f90; --line: #ffffff; --ink: #ffffff; --soft: #d3def0;
    --change: #f09166;  /* 4,2:1 op blauw; #e7511e haalt daar 2,7:1 */
    --on-line: #003f90;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: var(--line) var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: var(--m);
  background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-sans);
  caret-color: var(--line);
}
::selection { background: var(--line); color: var(--on-line); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }
b, strong { font-weight: 800; }
.mono { font-family: var(--f-mono); font-size: .88em; }
.nw { white-space: nowrap; }  /* licentienamen als AGPL-3.0 niet op het streepje breken */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: var(--m); z-index: 20; padding: .6rem 1rem; background: var(--line); color: var(--on-line); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* De pijl: 2px, rechte uiteinden; stapt 3px naar voren bij hover en focus. */
.ar { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform .18s cubic-bezier(.2, .7, .2, 1); }
a:hover .ar-in, a:focus-visible .ar-in { transform: translateX(3px); }
a:hover .ar-out, a:focus-visible .ar-out { transform: translate(2px, -2px); }

/* ---------- Het vel ---------- */
.sheet { position: relative; max-width: 1640px; margin: 0 auto; border: 2px solid var(--line); padding: var(--frame); }
.refs { position: absolute; left: var(--frame); right: var(--frame); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); font: 600 11px/16px var(--f-mono); color: var(--line); }
.refs-top { top: 3px; }
.refs-bot { bottom: 3px; }
.refs span { text-align: center; border-left: 1px solid var(--line); }
.refs span:last-child { border-right: 1px solid var(--line); }
.refs-l, .refs-r { top: var(--frame); bottom: var(--frame); left: auto; right: auto; width: 16px; grid-template-columns: none; grid-template-rows: repeat(4, minmax(0, 1fr)); }
.refs-l { left: 3px; } .refs-r { right: 3px; }
.refs-l span, .refs-r span { display: flex; align-items: center; justify-content: center; border-left: 0; border-right: 0; border-top: 1px solid var(--line); }
.refs-l span:last-child, .refs-r span:last-child { border-right: 0; border-bottom: 1px solid var(--line); }
.in { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* De tekening links, de titelkolom rechts */
.draw { grid-column: 1 / 5; grid-row: 1; border-right: 1px solid var(--line); min-width: 0; }
.side { grid-column: 5 / 7; grid-row: 1; align-self: start; display: flex; flex-direction: column; min-width: 0; }
/* Eén blad = één scherm. De titelkolom staat vast binnen het kader: --inset is de afstand
   van schermrand tot binnenkant kader (marge, rastervak, 2px vel, 1px .in). Is hij hoger
   dan het kader, dan zet sheet.js --side-over en scrolt hij eerst mee tot het titelblok op
   de onderrand staat. */
@media (min-width: 981px) and (min-height: 720px) {
  .side { --inset: calc(var(--m) + var(--frame) + 3px); position: sticky; top: calc(var(--inset) - var(--side-over, 0px)); min-height: calc(100vh - 2 * var(--inset)); }
}
.colofon { border-top: 1px solid var(--line); padding: .8rem var(--pad); font-size: .9rem; line-height: 1.5; color: var(--soft); }
/* Blad 1: de colofon staat onder de tekening (A–D) en de titelkolom loopt door tot de
   onderrand. Een sticky element blijft binnen zijn ouder (.in): liep de colofon over de
   volle breedte, dan schoof het vaste titelblok er onderaan overheen. */
.in > .colofon { grid-column: 1 / 5; grid-row: 2; border-right: 1px solid var(--line); }
.side:has(~ .colofon) { grid-row: 1 / span 2; }
.colofon p { max-width: 90ch; }
.colofon b { color: var(--ink); }
/* Bladen 2–4: het slotdeel en de colofon staan als opmerkingen in de titelkolom, boven het
   titelblok, zoals op een tekening. Op blad 1 blijft de colofon onder de tekening. */
@media (min-width: 981px) {
  .side .note { border-top: 0; padding: 0 var(--pad) var(--pad); gap: .75rem; }
  .side .note h2, .side .note .intro { font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.55; }  /* de lead-stap */
  .side .note h2 { letter-spacing: 0; line-height: 1.3; }
  .side .note .row-link { margin-inline: -.6rem; border-top: 2px solid var(--line); }
  .side .colofon { margin-top: auto; padding: .7rem var(--pad) .75rem; }
  .side .colofon + .tb { margin-top: 0; }
}

.side-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--pad) var(--pad) 0; }
.logo { display: block; padding: 4px; margin: -4px; }
.logo img { height: 52px; width: auto; }
.menu { display: none; }
.side-head { padding: var(--pad); display: grid; gap: 1.1rem; container-type: inline-size; }
h1 { font-size: clamp(2.1rem, 12.5cqi, 3.8rem); font-weight: 900; line-height: .95; letter-spacing: -.028em; color: var(--line); }
.lead { font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.55; max-width: 40ch; }

/* Linkrijen: mail, LinkedIn, voxcloud.nl. De bovenste is de hoofdactie. */
.act { list-style: none; padding: 0; margin-inline: -.6rem; border-top: 2px solid var(--line); }
.act a { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .7rem .6rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.act b { color: var(--line); }
.act .v { overflow-wrap: break-word; min-width: 0; }
.act li:first-child a { font-size: 1.15rem; font-weight: 700; padding-block: .85rem; }
.act a:hover, .act a:focus-visible { background: var(--line); color: var(--on-line); outline-offset: -2px; }
.act a:hover b, .act a:focus-visible b { color: var(--on-line); }

/* ---------- Titelblok ---------- */
.tb { margin-top: auto; border-top: 2px solid var(--line); }
.tb-nav { display: flex; border-bottom: 1px solid var(--line); }
.tb-nav ol, .menu ol { list-style: none; padding: 0; }
.tb-nav ol { display: flex; flex-wrap: wrap; flex: 1; }
.tb-nav a, .menu a { display: block; padding: .65rem .8rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.tb-nav .n, .menu .n, .pos { font-weight: 800; color: var(--line); font-variant-numeric: tabular-nums; }
.tb-nav .n, .menu .n { margin-right: .35rem; }
.tb-nav a[aria-current="page"], .menu a[aria-current="page"] { color: var(--line); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.tb-nav a:hover, .tb-nav a:focus-visible, .menu a:hover, .menu a:focus-visible { background: var(--line); color: var(--on-line); outline-offset: -2px; }
.tb-nav a:hover .n, .tb-nav a:focus-visible .n, .menu a:hover .n, .menu a:focus-visible .n { color: var(--on-line); }
.tb-nav .lang { display: flex; align-items: center; padding: .65rem .9rem; border-left: 1px solid var(--line); font: 700 .9rem/1 var(--f-sans); color: var(--line); text-decoration: none; }
.tb-nav .lang:hover, .tb-nav .lang:focus-visible { background: var(--line); color: var(--on-line); outline-offset: -2px; }
.tb-cells { display: grid; grid-template-columns: 1fr 1fr; }
.tb-cells > div { padding: .55rem .8rem .6rem; border-bottom: 1px solid var(--line); }
.tb-cells > div:nth-child(odd) { border-right: 1px solid var(--line); }
.tb-cells > div:nth-last-child(-n+2) { border-bottom: 0; }
.tb-cells dt, .tb-big dt { font: 600 .74rem/1.3 var(--f-sans); letter-spacing: .01em; color: var(--line); margin-bottom: .15rem; }
.tb-cells dd { font-size: .92rem; line-height: 1.35; }
.tri { display: inline-block; width: 0; height: 0; margin-right: .4rem; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--change); vertical-align: -1px; }

/* ---------- Delen van de tekening ---------- */
.part { padding: clamp(1.6rem, 3vw, 2.6rem) var(--pad); border-top: 1px solid var(--line); display: grid; gap: 1.1rem; align-content: start; }
.draw > .part:first-child { border-top: 0; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--line); }
.intro { max-width: 62ch; color: var(--soft); }

.rows { list-style: none; padding: 0; border-top: 2px solid var(--line); }
.rows li { display: grid; grid-template-columns: 2.5rem minmax(10rem, 17rem) minmax(0, 1fr); gap: .25rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows span:last-child { color: var(--soft); }

.row-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .6rem; border-block: 1px solid var(--line); font-weight: 700; color: var(--ink); text-decoration: none; }
.row-link:hover, .row-link:focus-visible { background: var(--line); color: var(--on-line); outline-offset: -2px; }
.row-link:hover .pos, .row-link:focus-visible .pos { color: var(--on-line); }
.row-link .pos { margin-right: .6rem; }
.rows + .row-link { margin-top: -1.1rem; border-top: 0; }
.link-rows { list-style: none; padding: 0; }
.link-rows li + li .row-link { border-top: 0; }

/* Eigen werk: de VoxCloud-apps, gearceerd zoals op de plattegrond */
.apps { list-style: none; padding: 0; border-top: 2px solid var(--line); display: grid; grid-template-columns: 14px minmax(7rem, 10rem) minmax(0, 1fr) auto auto; }
.apps li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-bottom: 1px solid var(--line); }
.apps li::before { content: ""; grid-column: 1; border-right: 1px solid var(--line); background: repeating-linear-gradient(45deg, var(--line) 0 1.2px, transparent 1.2px 6px); }
.apps .app { grid-column: 2 / 5; display: grid; grid-template-columns: subgrid; align-items: center; column-gap: 1rem; padding: .8rem .9rem; color: var(--ink); text-decoration: none; }
.apps .code { grid-column: 5; }
.apps .app b { color: var(--line); font-size: 1.1rem; }
.apps .app > span:not(.sr) { color: var(--soft); }
.apps .app:hover, .apps .app:focus-visible { background: var(--line); color: var(--on-line); outline-offset: -2px; }
.apps .app:hover b, .apps .app:hover > span, .apps .app:focus-visible b, .apps .app:focus-visible > span { color: var(--on-line); }
.apps .code { display: flex; align-items: center; padding: .8rem .9rem; border-left: 1px solid var(--line); font: 500 .78rem/1.3 var(--f-mono); }

/* ---------- De plattegrond ---------- */
.plan { padding: var(--pad) var(--pad) clamp(1.1rem, 2vw, 1.6rem); display: grid; gap: .9rem; }
.plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; }
.layers { display: none; }
.js .layers { display: flex; flex-wrap: wrap; }
.layers button { position: relative; margin: 0; padding: .7rem 1rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 700 .95rem/1.2 var(--f-sans); cursor: pointer; }
.layers button + button { border-left: 0; }
.layers button:hover { text-decoration: underline; text-underline-offset: .25em; }
.layers button[aria-pressed="true"] { color: var(--line); outline: 1px solid var(--line); outline-offset: -2px; }
.layers button[aria-pressed="true"]::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -5px; height: 3px; background: var(--change); }
.layers button:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }
.hint { margin-left: auto; font: 500 .85rem/1.3 var(--f-sans); color: var(--line); }
.plan-svg { display: block; width: 100%; height: auto; }
.wall { fill: none; stroke: var(--line); stroke-width: 3; }
.wall-ext { fill: none; stroke: var(--line); stroke-width: 6; }
.door { stroke: var(--paper); stroke-width: 6; }
.hl { stroke: var(--line); stroke-width: 1.2; }
.rp { font: 800 26px var(--f-sans); fill: var(--ink); }
.rp.sm { font-size: 22px; }
.rfn { font: 700 15px var(--f-sans); fill: var(--line); }
.rn { font: 500 14px var(--f-sans); fill: var(--line); }
.nv { font-family: var(--f-mono); }
.hint, .ann, .rn, .legend { font-kerning: none; }
.ann { font: 500 13px var(--f-sans); fill: var(--line); }
.rw { font: 700 15px var(--f-sans); fill: var(--ink); }
.leader { fill: none; stroke: var(--line); stroke-width: 1; }
.dot { fill: var(--line); }
.tri-svg { fill: var(--paper); stroke: var(--change); stroke-width: 2; }
.trin { font: 800 12px var(--f-sans); fill: var(--ink); text-anchor: middle; }
/* De wolken tekenen zich om de ruimtes die bij een overstap veranderen. */
.chg { opacity: 0; transition: opacity .25s ease; }
.cl { fill: none; stroke: var(--change); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .75s cubic-bezier(.3, .7, .2, 1); }
.plan[data-layer="overstap"] .chg { opacity: 1; }
.plan[data-layer="overstap"] .cl { stroke-dashoffset: 0; }
.d2 .cl { transition-delay: 70ms; } .d3 .cl { transition-delay: 140ms; } .d4 .cl { transition-delay: 210ms; }
.d5 .cl { transition-delay: 280ms; } .d6 .cl { transition-delay: 350ms; } .d7 .cl { transition-delay: 420ms; } .d8 .cl { transition-delay: 490ms; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding-top: .8rem; border-top: 1px solid var(--line); font: 500 .85rem/1.3 var(--f-sans); color: var(--line); }
.legend span { display: inline-flex; align-items: center; gap: .5rem; }
.sw { display: inline-block; width: 30px; height: 12px; }
.sw-wall { height: 0; border-top: 3px solid var(--line); }
.sw-hatch { background: repeating-linear-gradient(45deg, var(--line) 0 1.2px, transparent 1.2px 6px); }
.sw-cloud, .mk { border: 2px solid var(--change); border-radius: 6px; }
.plan figcaption { font-size: .92rem; line-height: 1.5; color: var(--soft); max-width: 72ch; }

/* De plattegrond als stuklijst: voor schermlezers altijd, voor het oog op telefoons
   en zonder script. */
.js .stuk { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stuk { overflow-x: auto; }
.mk { display: inline-block; width: 18px; height: 11px; margin-right: .45rem; vertical-align: -1px; }
.own { display: block; margin-top: .15rem; font: 600 .78rem/1.3 var(--f-sans); color: var(--line); }
.js .plan[data-layer="nextcloud"] .was { display: none; }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding-bottom: .45rem; font: 700 .85rem/1.3 var(--f-sans); color: var(--line); }
th, td { padding: .65rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; }
thead th { font: 700 .8rem/1.3 var(--f-sans); color: var(--line); border-bottom: 2px solid var(--line); }
tbody th { font-weight: 800; }
.stuk-table { overflow-x: auto; border-top: 2px solid var(--line); }
.stuk-table thead th { border-top: 0; }
.stuk-table .c-pos { width: 2.6rem; font-weight: 800; color: var(--line); font-variant-numeric: tabular-nums; }
.stuk-table tbody th { width: 20%; color: var(--line); font-size: 1.05rem; line-height: 1.3; }
.stuk-table td { color: var(--soft); line-height: 1.5; }
.stuk-table .c-src { width: 24%; font: 500 .9rem/1.45 var(--f-sans); color: var(--line); overflow-wrap: break-word; }
.stuk-table .c-src .mono { font-size: .84rem; }

/* Contact: het titelblok op volle grootte */
.tb-big { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); }
.tb-big > div { padding: .9rem 1rem .95rem 0; border-bottom: 1px solid var(--line); }
.tb-big > div:nth-child(odd) { border-right: 1px solid var(--line); }
.tb-big > div:nth-child(even) { padding-left: 1rem; }
.tb-big dd { font-size: 1.15rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

@media (min-width: 981px) and (max-height: 860px) {
  .logo img { height: 44px; }
  .side-top { padding-top: 1rem; }
  .side-head { gap: .85rem; padding-block: 1rem; }
  h1 { font-size: clamp(2rem, 10.5cqi, 3.1rem); }
  .lead { font-size: .98rem; line-height: 1.5; }
  .act a { padding-block: .5rem; }
  .act li:first-child a { padding-block: .6rem; font-size: 1.05rem; }
  .tb-cells > div { padding-block: .4rem .45rem; }
  .side .note { gap: .6rem; padding-bottom: 1rem; }
  .side .note h2, .side .note .intro { font-size: .98rem; line-height: 1.5; }
  .side .note .row-link { padding-block: .6rem; }
  .part { padding-block: 1.5rem; }
  .stuk-table th, .stuk-table td { padding-block: .55rem; }
}
@media (min-width: 981px) and (max-width: 1360px) {
  .tb-nav a { padding-inline: .5rem; font-size: .95rem; }
  .tb-nav .lang { padding-inline: .6rem; }
}

/* ---------- Smaller: de titelkolom splitst in kop- en voetstrook ---------- */
@media (max-width: 980px) {
  .in { display: flex; flex-direction: column; }
  .side, .side-hd { display: contents; }
  .side-top { order: 1; position: relative; padding: .7rem var(--pad); border-bottom: 1px solid var(--line); }
  .logo img { height: 44px; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; padding: .55rem .9rem; border: 1px solid var(--line); font-weight: 700; color: var(--line); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { outline: 1px solid var(--line); outline-offset: -2px; }
  .menu ol { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
  .menu li + li a { border-top: 1px solid var(--line); }
  .menu a { padding: .8rem var(--pad); }
  .side-head { order: 2; border-bottom: 1px solid var(--line); }
  .lead { max-width: 60ch; }
  .act { max-width: 40rem; }
  .draw { order: 3; border-right: 0; }
  .note { order: 4; }
  .tb { order: 5; margin-top: 0; }
  .colofon { order: 6; }
  h1 { font-size: clamp(2.2rem, 8cqi, 3.8rem); }
}
@media (max-width: 760px) {
  .plan-svg, .hint { display: none; }
  .js .stuk { position: static; width: auto; height: auto; overflow-x: auto; clip: auto; white-space: normal; }
  .legend span:nth-child(1), .legend span:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  :root { --frame: 14px; }
  .refs { font-size: 9px; line-height: 11px; }
  .refs-top { top: 1px; } .refs-bot { bottom: 1px; }
  .rows li { grid-template-columns: 2rem minmax(0, 1fr); }
  .rows li > span:last-child { grid-column: 2; }
  .apps { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .apps li::before { grid-row: 1 / span 2; }
  .apps .app { grid-column: 2 / 4; row-gap: .15rem; }
  .apps .app b { grid-column: 1; grid-row: 1; }
  .apps .app > span:not(.sr) { grid-column: 1; grid-row: 2; }
  .apps .app .ar { grid-column: 2; grid-row: 1 / span 2; }
  .apps .code { grid-column: 2 / 4; border-left: 0; padding-top: 0; }
  .tb-nav ol { display: grid; grid-template-columns: 1fr 1fr; }
  .tb-nav li:nth-child(odd) a { border-right: 1px solid var(--line); }
  .tb-nav li:nth-child(-n+2) a { border-bottom: 1px solid var(--line); }
  .tb-cells dd { font-size: .86rem; }
  .tb-cells .rev dd { white-space: nowrap; }
  .stuk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stuk-table tr { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .stuk-table th, .stuk-table td, .stuk-table tbody th, .stuk-table .c-src, .stuk-table .c-pos { width: auto; padding: .1rem 0; border: 0; }
  .stuk-table td:not(.c-pos), .stuk-table th { grid-column: 2; }
  .stuk-table .c-pos { grid-row: 1 / span 3; }
  .stuk-table .c-src { padding-top: .35rem; }
  .stuk thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stuk tr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .stuk tr::before { content: ""; grid-column: 1; grid-row: 1 / span 3; }
  .stuk tr.own-row::before { border-right: 1px solid var(--line); background: repeating-linear-gradient(45deg, var(--line) 0 1.2px, transparent 1.2px 6px); }
  .stuk th, .stuk td { padding: 0; border: 0; }
  .stuk tbody td:nth-child(2) { grid-column: 2 / 4; grid-row: 1; font-size: 1.05rem; }
  .stuk tbody th { grid-column: 2; grid-row: 2; font-weight: 600; font-size: .9rem; color: var(--line); }
  .stuk td.norm { grid-column: 3; grid-row: 2; text-align: right; color: var(--line); }
  .stuk td.was { grid-column: 2 / 4; grid-row: 3; padding-top: .2rem; }
  .stuk .own { display: none; }
  .act a { grid-template-columns: 4.4rem minmax(0, 1fr) auto; }
  .tb-nav a { padding-inline: .55rem; }
  .tb-big { grid-template-columns: 1fr; }
  .tb-big > div:nth-child(n) { padding-left: 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cl, .chg, .ar { transition: none; }
}
@media print {
  .layers, .menu, .skip { display: none; }
  .side { position: static; }
}
