/* Timebevis: the page's own CSS. Only the face, the logo and what sits inside a visual (the app's screens drawn
   in HTML, in the app's own world: planner white on wall grey, calendar red, ink, ballpoint blue for signatures,
   highlighter yellow for what is missing). Everything else is the kit's system. */

@font-face { font-family: "Timebevis Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/timebevis-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Timebevis Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/timebevis-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; }
@font-face { font-family: "Timebevis Grotesk"; font-style: italic; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/timebevis-grotesk-blyant.woff2") format("woff2"); unicode-range: U+0020, U+002C-002E, U+0030-0039; }

:root {
  --tb-red: #dc2018; --tb-red-text: #c41a12; --tb-ink: #111214; --tb-ink-2: #55585e; --tb-ink-3: #8b8e94;
  --tb-line: #e6e5e0; --tb-wall: #f4f3ef; --tb-blue: #1a4be0; --tb-blue-wash: #e8edff; --tb-hi: #ffe14a;
  --tb-pencil: #8f9298;
  font-variant-numeric: tabular-nums;
}

/* the client's mark: the red square with the white ring, as in the app */
.tb-logo { width: 28px; height: 28px; flex: none; }
.tb-logo rect { fill: var(--tb-red); }
.tb-logo circle { fill: none; stroke: #fff; stroke-width: 5.5; }
.tb-logo--white rect { fill: #fff; }
.tb-logo--white circle { stroke: var(--tb-red); }
.nav__logo { gap: 10px; }

/* ---------- the app's pieces, shared by every visual ---------- */
.tb-win, .tb-app, .tb-note, .tb-phone, .tb-mail, .tb-paper, .tb-link, .tb-setup, .tb-sign { font-family: var(--font-text); color: var(--tb-ink); letter-spacing: 0; }
.tb-win mark, .tb-app mark { background: linear-gradient(transparent 10%, var(--tb-hi) 10%, var(--tb-hi) 90%, transparent 90%); color: inherit; padding: 0 3px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tb-num { text-align: right; font-variant-numeric: tabular-nums; }
.tb-mono, .tb-stamp code, .tb-pack code { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; }

.tb-leaf { width: 92px; flex: none; display: block; background: #fff; border-radius: 12px; overflow: hidden; text-align: center; box-shadow: 0 1px 0 rgb(17 18 20 / 0.06), 0 10px 22px -12px rgb(17 18 20 / 0.45); }
.tb-leaf__top { display: block; background: var(--tb-red); color: #fff; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 0 4px; }
.tb-leaf__num { display: block; font-size: 3.5rem; font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; padding-top: 4px; }
.tb-leaf__bot { display: block; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tb-ink-2); padding-bottom: 7px; }
.tb-leaf--sm { width: 56px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--tb-ink); transform: none; }
.tb-leaf--sm .tb-leaf__top { font-size: 0.5625rem; padding: 3px 0 2px; }
.tb-leaf--sm .tb-leaf__num { font-size: 1.875rem; padding-top: 2px; }
.tb-leaf--sm .tb-leaf__bot { font-size: 0.5rem; padding-bottom: 4px; }

.tb-head { display: flex; align-items: center; gap: 18px; }
.tb-head__text { display: grid; gap: 6px; min-width: 0; }
.tb-head__text b { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.tb-head__text .tb-h1 { font-size: 2rem; }
.tb-head__text small { font-size: 0.8125rem; color: var(--tb-ink-2); }

.tb-tile { width: 42px; height: 42px; flex: none; display: grid; place-items: center; align-content: center; gap: 0; border: 1.5px solid var(--tb-ink); border-radius: 9px; line-height: 1; }
.tb-tile small { font-size: 0.4375rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tb-ink-2); }
.tb-tile b { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.04em; }
.tb-tile--kv { border-color: var(--tb-blue); color: var(--tb-blue); }
.tb-tile--kv small { color: var(--tb-blue); }
.tb-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.tb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: 9px; border: 1.5px solid var(--tb-ink); font-size: 0.75rem; font-weight: 800; white-space: nowrap; background: #fff; color: var(--tb-ink); }
.tb-btn--pen { background: var(--tb-blue); border-color: var(--tb-blue); color: #fff; }
.tb-btn--ink { background: var(--tb-ink); color: #fff; }

.tb-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; white-space: nowrap; background: rgb(17 18 20 / 0.06); color: var(--tb-ink-2); }
.tb-pill--pen { background: var(--tb-blue-wash); color: var(--tb-blue); }
.tb-pill--ink { background: transparent; color: var(--tb-ink); box-shadow: inset 0 0 0 1.5px var(--tb-ink); }
.tb-pill svg, .tb-note__line svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.seal { display: block; flex: none; transform: rotate(var(--turn, 0deg)); }
.seal__disc { fill: var(--tb-blue); }
.seal__ring { fill: none; stroke: #fff; stroke-linecap: round; }
.seal__dot { fill: #fff; }
.tb-stamp { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center; min-width: 0; color: var(--tb-blue); }
.tb-stamp .seal { grid-row: 1 / span 3; width: 40px; height: 40px; }
.tb-stamp b { font-size: 0.8125rem; font-weight: 800; line-height: 1.2; }
.tb-stamp small { font-size: 0.6875rem; font-weight: 600; }
.tb-stamp code { font-size: 0.625rem; opacity: 0.9; }
.tb-stamp--empty { display: flex; align-items: center; gap: 10px; color: var(--tb-ink-2); font-size: 0.75rem; font-weight: 600; }
.tb-stamp--empty::before { content: ""; width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed var(--tb-pencil); flex: none; }

/* ---------- hero: the overview window on calendar red, and the signed card ---------- */
.hero__art.tb-red { --ground-bg: var(--tb-red); background: var(--tb-red); }
.tb-win { background: #fff; border-radius: 14px 0 0 0; box-shadow: 0 1px 0 rgb(17 18 20 / 0.08), 0 24px 48px -20px rgb(80 8 4 / 0.55); }
.tb-main { padding: 28px var(--ly-cut-room) 28px 28px; display: grid; gap: 22px; }
.tb-list { display: grid; border-top: 1px solid var(--tb-line); }
.tb-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--tb-line); }
.tb-row__text { display: grid; gap: 2px; min-width: 0; }
.tb-row__text b { font-size: 0.875rem; font-weight: 700; line-height: 1.35; }
.tb-row__text small { font-size: 0.75rem; color: var(--tb-ink-2); }

.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 316px; z-index: 2; }
.tb-note { background: #fff; border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; box-shadow: 0 1px 0 rgb(17 18 20 / 0.08), 0 20px 40px -16px rgb(17 18 20 / 0.5); }
.tb-note__head { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.tb-note__head span { display: grid; gap: 2px; }
.tb-note__head b { font-size: 0.9375rem; font-weight: 800; }
.tb-note__head small { font-size: 0.75rem; color: var(--tb-ink-2); }
.tb-note__line { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--tb-ink-2); }
.tb-note__line svg { color: var(--tb-blue); }
.tb-note__line b { color: var(--tb-ink); font-weight: 700; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 290px; } }
@media (max-width: 639px) { .tb-main { padding: 18px var(--ly-cut-room) 18px 18px; gap: 16px; } .tb-head__text .tb-h1 { font-size: 1.5rem; } .tb-leaf { width: 76px; } .tb-leaf__num { font-size: 2.625rem; } .tb-leaf__top { font-size: 0.5625rem; letter-spacing: 0.08em; } .tb-row { grid-template-columns: 42px minmax(0, 1fr); } .tb-row .tb-btn { display: none; } }

/* ---------- #aaret: the app window with the year planner ---------- */
.tb-app { display: grid; grid-template-columns: 216px minmax(0, 1fr); margin-top: var(--s-7); background: #fff; border: 1px solid rgb(17 18 20 / 0.12); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 rgb(17 18 20 / 0.05), 0 30px 60px -36px rgb(17 18 20 / 0.45); }
.tb-rail { background: var(--tb-red); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.tb-rail__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; padding: 0 6px 14px; }
.tb-rail__brand .tb-logo { width: 22px; height: 22px; }
.tb-rail__project { display: grid; gap: 1px; background: #fff; color: var(--tb-ink); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.tb-rail__project b { font-size: 0.8125rem; font-weight: 800; }
.tb-rail__project small { font-size: 0.6875rem; color: var(--tb-ink-2); }
.tb-rail__item { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 0.875rem; font-weight: 700; }
.tb-rail__item.is-on { background: #fff; color: var(--tb-red-text); }
.tb-rail__item em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--tb-hi); color: var(--tb-ink); font-size: 0.6875rem; font-weight: 800; }
.tb-rail__year { position: absolute; left: 8px; bottom: -6px; font-size: 5.5rem; font-weight: 900; letter-spacing: -0.04em; line-height: 0.8; color: rgb(255 255 255 / 0.14); pointer-events: none; }
.tb-app__main { padding: 26px 30px 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 22px; min-width: 0; background: var(--tb-wall); }
.tb-quarters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tb-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; }
.tb-q > b { font-size: 2.125rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; min-width: 24px; }
.tb-q > span:not(.tb-pill) { display: grid; gap: 1px; min-width: 0; }
.tb-q strong { font-size: 0.8125rem; font-weight: 800; }
.tb-q small { font-size: 0.6875rem; color: var(--tb-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-year { background: #fff; border-radius: 12px 12px 0 0; padding: 18px 20px 20px; display: grid; align-content: start; gap: 6px; min-height: 0; overflow: hidden; }
.tb-year__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; }
.tb-year__head b { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.tb-year__head small { font-size: 0.75rem; color: var(--tb-ink-2); }

/* the planner: a grid of 53 week cells per person, the dot inside each, the red string at today */
.yr { display: grid; position: relative; --name-w: 150px; }
.yr__row { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr); align-items: center; min-height: 34px; border-bottom: 1px solid var(--tb-line); }
.yr__name { font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.yr__dots, .yr__months { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); align-items: center; justify-items: center; }
.yr__axis { min-height: 20px; border-bottom: 2px solid var(--tb-ink); }
.yr__months span { justify-self: start; font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tb-ink-2); }
.yr__months span.now { color: var(--tb-red-text); }
.yr__d { display: block; width: min(78%, 13px); aspect-ratio: 1; border-radius: 50%; }
.yr__d--S { background: var(--tb-blue); }
.yr__d--F { background: var(--tb-ink); }
.yr__d--M { background: var(--tb-hi); box-shadow: inset 0 0 0 1.5px var(--tb-ink); }
.yr__d--U { border: 1.5px dashed var(--tb-pencil); }
.yr__d--fut, .yr__d--off { width: 3px; background: #cdccc6; }
.yr__d--off { opacity: 0.6; }
.yr__now { position: absolute; top: 18px; bottom: -3px; width: 2.5px; background: var(--tb-red); left: calc(var(--name-w) + (100% - var(--name-w)) * var(--at)); transform: translateX(-1.25px); }
.tb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; font-size: 0.75rem; font-weight: 600; color: var(--tb-ink-2); }
.tb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tb-legend .yr__d { width: 12px; }
.tb-legend__line { width: 3px; height: 12px; border-radius: 1px; background: var(--tb-red); display: block; }
@media (max-width: 1279px) { .tb-app { grid-template-columns: 180px minmax(0, 1fr); } .tb-rail__project { display: none; } }
@media (max-width: 1023px) {
  .tb-app { grid-template-columns: minmax(0, 1fr); }
  .tb-app > .tb-rail { display: none; }
  .tb-app__main { padding: 18px 18px 0; }
  .tb-q small { display: none; }
}
@media (max-width: 639px) {
  .tb-quarters { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tb-q { padding: 8px 12px; }
  .tb-q > b { font-size: 1.5rem; }
  .yr__name { padding: 6px 0 0; }
  .yr__dots { padding-bottom: 6px; }
  .yr__months span:not(:nth-child(3n + 1)):not(.now) { visibility: hidden; }
  .yr { --name-w: 0px; }
  .yr__row { grid-template-columns: minmax(0, 1fr); }
  .yr__axis .yr__name { display: none; }
  .yr__now { top: 20px; }
  .tb-legend { display: none; }
}

/* ---------- the split frames (#fredag, #revisor, #pris) ---------- */
.tb-frame { background: var(--tb-red); border: 0; overflow: hidden; }
@media (min-width: 1024px) { .tb-frame { --ratio: 108%; } }
.tb-frame--wall { background: #e9e7e1; }
.tb-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
/* the list keeps the column's rhythm under the lead (its own margin reset would cancel the stack's) */
.stack-5 > * + .tb-facts { margin-top: var(--s-5); }
.tb-facts li { display: flex; gap: 12px; align-items: baseline; }
.tb-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-1px); }

.tb-frame > .tb-phone { position: absolute; left: 64px; top: 56px; width: 286px; height: 720px; background: #fff; border-radius: 34px; border: 8px solid var(--tb-ink); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(60 6 3 / 0.7); z-index: 1; }
.tb-phone__bar { display: flex; align-items: center; gap: 10px; background: var(--tb-red); color: #fff; padding: 16px 16px 12px; }
.tb-phone__bar .tb-logo { width: 22px; height: 22px; }
.tb-phone__bar span { display: grid; min-width: 0; }
.tb-phone__bar b { font-size: 0.8125rem; font-weight: 800; }
.tb-phone__bar small { font-size: 0.6875rem; }
.tb-phone__sheet { padding: 16px 14px; display: grid; gap: 14px; background: #fff; }
.tb-week { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.tb-week th, .tb-week td { padding: 4px 2px; text-align: right; }
.tb-week thead th { font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tb-ink-2); border-bottom: 2px solid var(--tb-ink); }
.tb-week th:first-child { text-align: left; }
.tb-week tbody th { font-weight: 700; font-size: 0.75rem; }
.tb-week tbody tr { border-bottom: 1px solid var(--tb-line); }
.tb-week tbody td:last-child, .tb-week tfoot td { font-weight: 800; }
.tb-week i { display: inline-grid; place-items: center end; width: 44px; height: 30px; padding: 0 7px; border-radius: 7px; border: 1.5px solid var(--tb-ink-3); font-style: normal; font-size: 0.8125rem; }
.tb-week i.ink { border-color: var(--tb-ink); font-weight: 800; }
.tb-week tfoot th, .tb-week tfoot td { border-top: 2px solid var(--tb-ink); font-weight: 800; padding-top: 6px; }
.tb-phone__send { display: flex; align-items: center; gap: 10px; }
.tb-phone__send small { font-size: 0.6875rem; color: var(--tb-ink-2); }

.tb-frame > .tb-mail { position: absolute; right: 24px; bottom: 56px; width: 236px; background: #fff; border-radius: 14px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 1px 0 rgb(17 18 20 / 0.08), 0 20px 40px -16px rgb(17 18 20 / 0.5); z-index: 2; }
.tb-mail__from { display: flex; align-items: center; gap: 8px; }
.tb-mail__from .tb-logo { width: 20px; height: 20px; }
.tb-mail__from b { font-size: 0.8125rem; font-weight: 800; }
.tb-mail__from small { margin-left: auto; font-size: 0.6875rem; color: var(--tb-ink-2); }
.tb-mail > b { font-size: 0.9375rem; font-weight: 800; }
.tb-mail > small { font-size: 0.75rem; color: var(--tb-ink-2); line-height: 1.4; }
.tb-mail .tb-btn { justify-self: start; margin-top: 6px; }

.tb-frame > .tb-paper { position: absolute; left: 48px; top: 48px; width: 324px; min-height: calc(100% - 48px + 40px); background: #fff; border-radius: 6px 6px 0 0; padding: 22px 26px 28px; display: grid; align-content: start; gap: 2px; box-shadow: 0 30px 60px -36px rgb(17 18 20 / 0.5); }
.tb-paper__top { display: flex; justify-content: space-between; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tb-ink-2); padding-bottom: 10px; border-bottom: 2px solid var(--tb-ink); margin-bottom: 8px; }
.tb-paper__who { font-size: 1.375rem; font-weight: 900; letter-spacing: -0.03em; }
.tb-paper > small { font-size: 0.75rem; color: var(--tb-ink-2); }
.tb-paper__rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 12px 0 12px; font-size: 0.8125rem; }
.tb-paper__rows > span { padding: 5px 0; border-bottom: 1px solid var(--tb-line); }
.tb-paper__rows .tb-paper__sum { font-weight: 800; border-bottom: 2px solid var(--tb-ink); }
.tb-paper__sig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 6px; }
.tb-frame > .tb-link { position: absolute; right: 24px; bottom: 72px; width: 256px; background: #fff; border-radius: 14px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 1px 0 rgb(17 18 20 / 0.08), 0 20px 40px -16px rgb(17 18 20 / 0.5); z-index: 2; }
.tb-link b { font-size: 0.9375rem; font-weight: 800; }
.tb-link small { font-size: 0.75rem; color: var(--tb-ink-2); }
.tb-link .tb-btn { justify-self: start; margin-top: 6px; }

.tb-panel > .tb-setup { position: absolute; left: 56px; top: 48px; width: calc(100% - 56px + 28px); min-height: calc(100% - 48px + 40px); background: #fff; border-radius: 14px 0 0 0; padding: 28px 76px 28px 30px; display: grid; align-content: start; gap: 8px; box-shadow: 0 30px 60px -36px rgb(60 6 3 / 0.7); }
.tb-setup__title { font-size: 1.375rem; font-weight: 900; letter-spacing: -0.03em; }
.tb-setup__step { font-size: 0.75rem; color: var(--tb-ink-2); padding-bottom: 8px; }
.tb-setup__label { font-size: 0.75rem; font-weight: 800; padding-top: 8px; }
.tb-field { display: grid; gap: 4px; }
.tb-field small { font-size: 0.6875rem; font-weight: 700; color: var(--tb-ink-2); }
.tb-input { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1.5px solid var(--tb-ink-3); font-size: 0.8125rem; }
.tb-field--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tb-field--pair > span { display: grid; gap: 4px; }
.tb-pack { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: 9px; background: var(--tb-wall); font-size: 0.8125rem; font-weight: 600; }
.tb-pack code { font-weight: 700; color: var(--tb-ink-2); }
.tb-pack small { margin-left: auto; font-size: 0.6875rem; color: var(--tb-ink-2); font-weight: 600; }

@media (max-width: 1279px) { .tb-frame > :is(.tb-mail, .tb-link) { display: none; } }
@media (max-width: 639px) {
  .tb-frame > .tb-phone { left: 50%; top: 24px; transform: translateX(-50%); width: 250px; }
  .tb-frame > :is(.tb-mail, .tb-link) { display: none; }
  .tb-frame > .tb-paper { left: 16px; top: 16px; width: calc(100% - 32px); padding: 18px; }
  .tb-panel > .tb-setup { left: 16px; top: 16px; width: calc(100% - 16px + 28px); padding: 18px 56px 18px 18px; }
  .tb-paper__sig { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- #signering on the dark band: the signing table in the app's dark theme ---------- */
.tb-sign { margin-top: var(--s-7); background: #1e1e1d; color: #f4f3ef; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 16px; overflow: hidden; }
.tb-sign__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 22px; }
.tb-sign__head b { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.tb-sign__head small { font-size: 0.75rem; color: #b6b5b0; }
.tb-sign .tb-btn--pen { background: #2f5cf0; border-color: #2f5cf0; }
.tb-sign__row { display: grid; grid-template-columns: minmax(0, 1.4fr) 80px minmax(0, 2fr) minmax(0, 2fr); gap: 16px; align-items: center; padding: 12px 22px; border-top: 1px solid #2d2d2b; font-size: 0.875rem; }
.tb-sign__cols { font-size: 0.625rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #b6b5b0; border-top: 0; border-bottom: 2px solid #f4f3ef; padding-top: 0; padding-bottom: 8px; }
.tb-sign__cols span:nth-child(2) { text-align: right; }
.tb-sign__who { font-weight: 700; }
.tb-sign .tb-stamp { color: #9db2ff; }
.tb-sign .seal__disc { fill: #2f5cf0; }
.tb-sign .tb-stamp--empty { color: #b6b5b0; }
.tb-names { margin-top: var(--s-7); }
.tb-names h3 { font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }
.tb-names p { margin-top: var(--s-1); }
@media (max-width: 1023px) {
  .tb-sign__row { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.6fr); }
  .tb-sign__row > :nth-child(4) { display: none; }
  .tb-names > div { grid-column: span 6; }
}
@media (max-width: 639px) {
  .tb-sign__head { grid-template-columns: minmax(0, 1fr); }
  .tb-sign__head small, .tb-sign__head .tb-btn { display: none; }
  .tb-sign__row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .tb-sign__row > :nth-child(3) { grid-column: 1 / -1; }
  .tb-sign__cols { display: none; }
  .tb-sign__row:nth-child(n + 4) { display: none; }
}

/* ---------- #krav: the statement and its source ---------- */
.tb-source { margin-top: var(--s-7); }

/* the brand's own type in the kit's frame: the name as in the app, the close word in calendar red */
.nav__logo { font-weight: 800; letter-spacing: -0.03em; }
.footer__lede { font-family: var(--font-text); font-weight: 500; letter-spacing: 0; }
.close__word { color: var(--tb-red); font-weight: 900; }
#krav .mo-wh__text { font-size: clamp(32px, 2.9vw + 18px, 60px); line-height: 1.08; max-width: 1100px; }

/* #pris: the set-up screen on an ink panel, a third ground after red and wall grey */
.tb-panel { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--tb-ink); overflow: hidden; align-self: start; }
.tb-panel > .tb-setup { box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
@media (max-width: 1023px) { .tb-panel { aspect-ratio: 5 / 4; } .tb-setup__more { display: none; } }
@media (max-width: 639px) { .tb-panel { aspect-ratio: 1; } }
/* a stacked split keeps the section's gap between the words and the picture */
@media (max-width: 1023px) { .tb-frame, .tb-panel { margin-top: var(--s-6); } }
/* the close word is set to fit the column at every width (its heavy weight runs wider than the kit's face) */
.close__word { font-size: min(216px, calc((100vw - 2 * var(--gut)) / 5.2)); line-height: 1.02; padding-top: 0.04em; overflow: visible; }
/* the plain word beside the button goes into the menu sheet on a phone */
@media (max-width: 639px) { .nav__actions > .nav__link { display: none; } }

/* #sporsmal: the list of questions is longer than one screen, so on a desktop the section grows with it
   (the kit's fixed screen height laid the last questions under #pris) */
@media (min-width: 1280px) {
  main > .section--faq { height: auto; min-height: 100vh; min-height: 100svh; }
  main > .section--faq > .wrap { height: auto; }
}
/* On a phone each question folds its answer away until it is tapped (faq.js sets .faq--fold and the buttons).
   The kit keeps every answer open (ST-47), and wider screens still do: ten open answers were two screens
   of text on a phone. The whole row is the tap target; the answer's own space comes back when it opens. */
.faq--fold > .faq__item, .faq--fold > .faq__item:first-child { padding: 0; gap: 0; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%; min-height: 56px; padding: var(--s-4) 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.faq__q::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq__q[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq__q:active { opacity: 0.6; }
.faq--fold > .faq__item > p:not([hidden]) { padding-bottom: var(--s-5); }
@media (prefers-reduced-motion: reduce) { .faq__q::after { transition: none; } }

.tb-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
@media (max-width: 639px) { .tb-legal { flex-direction: column; } }
