/* theme.css: Komiti's look, ultramarine on cream (new logo and colours approved
 * 1 Nov 2026; replaces the green "paper + highlighter" palette).
 *
 * Injected LAST into every page's <head> by functions/_middleware.js, like
 * topbar.css, so type, the logo and the shared pieces are set once and no
 * page can miss them. Page colours still come from each stylesheet's tokens,
 * which use the same values as below.
 *
 *   cream #FAF7F3 · card #FFFFFF · ink #14162B · ink-2 #383D5A · muted #565B7A
 *   lines #DCDCE6 · borders #D0D2E0 · controls #767C99
 *   ultramarine #3047D0 (actions, links, focus) · hover #2638A8 · deep navy #16182A (footer, promise band)
 *   links on navy #AEBBFF · highlight #DDE3FF: ONLY on the one word or figure that matters
 *   missed #A12A1C on #FBE6E2 · due #7A4E00 on #FBEFD6 (amber means "due", never decoration)
 */
:root{
  --k-paper:#FAF7F3; --k-card:#FFFFFF; --k-ink:#14162B; --k-ink-2:#383D5A; --k-muted:#565B7A;
  --k-line:#DCDCE6; --k-border:#D0D2E0; --k-control:#767C99;
  --k-green:#3047D0; --k-green-hover:#2638A8; --k-deep:#16182A; --k-highlight:#DDE3FF;
  --k-missed:#A12A1C; --k-missed-bg:#FBE6E2; --k-due:#7A4E00; --k-due-bg:#FBEFD6;
  --k-font:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;
}
body{font-family:var(--k-font)}
h1,h2,h3,h4{font-family:var(--k-font);letter-spacing:-0.02em}
h1{font-weight:800}
h2,h3,h4{font-weight:700}
input,select,textarea,button{font-family:inherit}

/* Logo: the symbol plus the outlined wordmark image. The K's cap height equals the
 * symbol's I height (--h); the wordmark SVG has 30 units of padding inside a
 * 413-unit height with a 349-unit cap height, so the image is --h x 413/349 tall,
 * and the gap is 0.34 x --h (0.18 read as touching, 1 Nov) measured from the symbol to the K (padding removed). */
.k-logo{--h:22px;display:inline-flex;align-items:center;gap:0;color:var(--k-ink);text-decoration:none}
.k-logo svg{height:calc(var(--h) * 1.0325);width:auto;aspect-ratio:81.5/82.6;flex:none;display:block}
.k-logo-wm{height:calc(var(--h) * 413 / 349);width:auto;flex:none;display:block;margin-left:calc(var(--h) * 0.34 - var(--h) * 30 / 349)}
@media (max-width:480px){.k-logo{--h:19px}}

/* The highlighter: a bookkeeper marking the figure that matters. Sparingly. */
.k-hl{background:linear-gradient(transparent 56%, var(--k-highlight) 56%);padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.k-hl-box{background:var(--k-highlight);border-radius:4px;padding:0 .3em}
/* Fixed-width digits only where figures stack in columns; a lone figure reads better proportional. */
.k-num{font-variant-numeric:lining-nums}
td .k-num, td.r, .k-tab{font-variant-numeric:tabular-nums lining-nums}

/* The logo replaced an image; keep the old breathing room beside the tagline. */
.topbar .k-logo{margin-right:14px}
a:has(> .k-logo), a:has(> .k-logo):hover{text-decoration:none}

/* A button that reads as a link (an action, not a page to go to). */
.linklike{background:none;border:0;padding:0;font:inherit;color:var(--k-green);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.linklike:focus-visible{outline:2px solid var(--k-green);outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}
