/* Intro deck — Martin's Canva identity on a 1920x1080 page, one .slide per printed page.
   Every slide: colour logo on a white curved shape top-left + ALL-CAPS title on the same
   row (centred on x = 59%), at most one muted subtitle, ONE body inside the y 27-88% band,
   footer tarktoostus.ee only. Solid boxes: charcoal / orange (the highlight) / green /
   purple (integration). Data mock-ups sit on white cards. Nothing on a slide under 30px.
   Screen: slides scale down via --deck-scale. Print: @page is exactly one slide. */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/static/fonts/roboto/roboto-latin-400-normal.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: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/static/fonts/roboto/roboto-latin-ext-400-normal.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: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url("/static/fonts/roboto/roboto-latin-700-normal.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: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url("/static/fonts/roboto/roboto-latin-ext-700-normal.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;
}

:root {
    --font: "Roboto", sans-serif;

    --blue: #0566ab;
    --navy: #144a71;
    --char: #272828;
    --ink: #ffffff;
    --sub: #b8cde2; /* ~5.0:1 behind the bottom-left notes (was 4.3:1): AA for 30px text below 1:1 scale */
    --soft: #e2e8ee;

    --box: #3c3333;
    --orange: #fb843e;
    --orange-deep: #e4560f;
    --hl: linear-gradient(135deg, var(--orange-deep) 0%, #e4560f 100%); /* white text >= 3.7:1 at every stop */
    --green: #588e53;
    --purple: #882aa3;

    --card: #ffffff;
    --card-ink: #1d2733;
    --card-sub: #4a5a6a;
    --card-tint: #edf1f5;
    --card-line: #d5dde5;

    --pass: #2e7d56;
    --blocked: #c43b3b;
    --variance: #a86a00;

    --t: #13a0cd;
    --a: #63a35c;
    --r: #e6c229;
    --k: #de2d2d;

    --radius: 6px;
    --lift: 0 18px 40px rgba(4, 18, 32, 0.32);

    --deck-scale: 1;
}

@page { size: 1920px 1080px; margin: 0; }

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #1b2733;
    font-family: var(--font);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

::selection { background: var(--orange); color: #ffffff; }

.deck { display: block; }

.slide-wrap { width: 1920px; height: 1080px; position: relative; margin: 0 auto; }

/* ---------- the frame: gradient, chevron, logo row, body band, footer ---------- */

.slide {
    width: 1920px;
    height: 1080px;
    position: relative;
    overflow: hidden;
    transform-origin: top left;
    /* Body band = y 27-88%, x 8-92% (Canva). The head sets the band's top edge. */
    padding: 56px 154px 130px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 52%, var(--char) 100%);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
/* One large translucent chevron across the right half, full height. */
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.06);
    clip-path: polygon(47% 0, 66% 0, 91% 50%, 66% 100%, 47% 100%, 72% 50%);
    pointer-events: none;
}

.slide-brand { position: absolute; top: 0; left: 0; width: 480px; height: 228px; }
.slide-blob { position: absolute; inset: 0; width: 100%; height: 100%; fill: #ffffff; }
.slide-logo { position: absolute; top: 62px; left: 48px; height: 98px; width: auto; }

.slide-head {
    position: relative;
    flex: 0 0 auto;
    min-height: 236px;
    margin: 0 -34px 0 346px; /* x 500..1800: centred on x = 59% */
    text-align: center;
}
.title {
    margin: 0;
    font-size: 84px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}
.lead {
    margin: 8px auto 0;
    max-width: 1300px;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.28;
    color: var(--sub);
    text-wrap: balance;
}

.slide-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.proof { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: stretch; }
.proof > * { flex: 1 1 auto; min-width: 0; }
/* Demo data chip: illustrative numbers, not a measured result (PRODUCT.md L5; same class as the
   use-case scene in PR #39). Pinned out of flow on the card's top-left edge, where every demo
   card is empty, so the card keeps its full height. */
.chip.chip-demo {
    position: absolute;
    top: 0;
    left: 48px;
    z-index: 1;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    border: 2px solid var(--t);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(4, 18, 32, 0.28);
    color: var(--blue);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.chip-demo::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--t); }
.hold + .proof:has(> .chip-demo) { margin-top: 26px; }
.proof-source, .slide-note {
    flex: 0 0 auto;
    margin: 22px 0 0;
    font-size: 30px;
    line-height: 1.3;
    color: var(--sub);
}
.slide-note { text-wrap: pretty; }

.slide-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    text-align: center;
    font-size: 30px;
    color: var(--ink);
}

/* Held "needs source" slide (?draft=1 only). */
.hold {
    flex: 0 0 auto;
    margin: 0 0 22px;
    padding: 12px 24px;
    border: 3px dashed #ffc58f;
    border-radius: var(--radius);
    font-size: 30px;
    font-weight: 700;
    color: #ffd9b8;
}

/* ---------- cover + close ---------- */

.cover, .close {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cover-claim {
    margin: 0;
    max-width: 1600px;
    font-size: 104px;
    font-weight: 700;
    line-height: 1.06;
}
.cover-claim span { display: block; }
.cover-support {
    margin: 56px 0 0;
    max-width: 1320px;
    font-size: 50px;
    line-height: 1.3;
    color: var(--sub);
    text-wrap: balance;
}
/* Without a footnote the centred cover leaves >15% voids above and below (L3): open the gap. */
.slide--cover .slide-body:not(:has(.slide-note)) .cover-support { margin-top: 72px; }
/* Glance line: who the deck is for + the one next step (CTA-1), on every cover. */
.cover-next {
    margin: 72px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 40px;
    font-size: 42px;
    line-height: 1.2;
}
.cover-who { font-weight: 700; }
.cover-cta {
    padding: 18px 44px;
    border-radius: var(--radius);
    background: var(--hl);
    box-shadow: var(--lift);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}
.cover-cta:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.slide--cover .slide-note { text-align: center; }

.cta { margin: 0; font-size: 100px; font-weight: 700; line-height: 1.08; text-wrap: balance; }
.cta-link {
    margin-top: 48px;
    padding: 22px 56px;
    border-radius: var(--radius);
    background: var(--hl);
    box-shadow: var(--lift);
    color: #ffffff;
    font-size: 56px;
    font-weight: 700;
    text-decoration: none;
}
.contact {
    margin-top: 72px;
    font-style: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 14px 48px;
    font-size: 34px;
}
.contact-name { font-weight: 700; }
.contact-role { color: var(--sub); }
.contact a { color: var(--ink); text-decoration: none; }
.cta-link:focus-visible, .contact a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

/* ---------- shared proof atoms ---------- */

.card {
    background: var(--card);
    color: var(--card-ink);
    border-radius: var(--radius);
    box-shadow: var(--lift);
    padding: 40px 48px;
}

/* solid boxes (tiles) */
.tiles { display: flex; align-items: stretch; gap: 40px; }
.tile {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 48px 52px;
    border-radius: var(--radius);
    background: var(--box);
    box-shadow: var(--lift);
}
.tile-title { font-size: 60px; font-weight: 700; line-height: 1.1; overflow-wrap: normal; hyphens: manual; }
.tile-note { font-size: 38px; line-height: 1.25; color: var(--soft); }
.tile.is-hl { background: var(--hl); }
.tile.is-hl .tile-note { color: #ffffff; }
.tiles[data-n="4"]:not(.is-scatter) .tile-title { font-size: 52px; }
.tiles:not(.is-scatter) .tile { text-align: center; align-items: center; }

/* scattered: the "disconnected" problem, knocked out of line */
.tiles.is-scatter { gap: 0; padding: 56px 0; }
.tiles.is-scatter .tile { text-align: center; align-items: center; padding: 48px 28px; }
/* Four scattered tiles: the longest word ("Hõikamine") must fit whole, never break mid-word. */
.tiles.is-scatter[data-n="4"] .tile-title { font-size: 52px; }
.tiles.is-scatter .tile:nth-of-type(1) { transform: translateY(-34px) rotate(-1.6deg); }
.tiles.is-scatter .tile:nth-of-type(2) { transform: translateY(36px) rotate(1.2deg); }
.tiles.is-scatter .tile:nth-of-type(3) { transform: translateY(-20px) rotate(-0.8deg); }
.tiles.is-scatter .tile:nth-of-type(4) { transform: translateY(28px) rotate(1.4deg); }
.tile-break { flex: 0 0 72px; display: flex; justify-content: center; gap: 12px; align-items: center; }
.tile-break i { display: block; width: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); }
.tile-break i:first-child { transform: rotate(-24deg); }
.tile-break i:last-child { transform: rotate(24deg); }

/* the four steps */
/* Rows shared by every pillar (subgrid): step names sit on one line, texts start on one line, the
   block is centred in the band. Row 1 = optional letter badge (draft 4-pillar slide only). */
.pillars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    gap: 0 40px;
}
.pillar {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 32px;
    padding: 56px 48px;
    border-radius: var(--radius);
    background: var(--box);
    box-shadow: var(--lift);
}
/* Larger type keeps each pillar filled (L3). */
.pillar-step { grid-row: 2; font-size: 66px; font-weight: 700; text-transform: uppercase; }
.pillar-text { grid-row: 3; font-size: 46px; line-height: 1.3; color: var(--soft); }

/* flow chain */
.flow-wrap { display: flex; flex-direction: column; }
.flow { flex: 1 1 auto; display: flex; align-items: stretch; }
.flow-node {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 36px 16px;
    border-radius: var(--radius);
    background: var(--box);
    box-shadow: var(--lift);
    text-align: center;
    hyphens: manual;
}
.flow-num {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
}
.flow-label { font-size: 52px; font-weight: 700; line-height: 1.12; }
.flow[data-n="6"] .flow-label { font-size: 42px; }
.flow-node.is-hl { background: var(--hl); }
.flow-node.is-hl .flow-num { background: #ffffff; color: var(--orange-deep); }
.flow-link { flex: 0 0 44px; align-self: center; height: 4px; background: #ffffff; position: relative; }
.flow-link::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -8px;
    border-left: 14px solid #ffffff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.flow-wrap.has-feed { gap: 64px; }
.flow-feed { padding: 26px 40px; border-radius: var(--radius); background: var(--hl); font-size: 48px; font-weight: 700; text-align: center; }

/* day plan grid */
.plan-grid {
    display: grid;
    grid-template-columns: 220px repeat(var(--cols), 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 1fr;
    gap: 16px;
    align-items: stretch;
}
.plan-col { font-size: 32px; font-weight: 700; color: var(--card-sub); padding: 0 8px; }
.plan-row { align-self: center; font-size: 36px; font-weight: 700; }
.plan-cell { background: var(--card-tint); border-radius: var(--radius); display: flex; align-items: center; padding: 0 20px; gap: 12px; }
.chip {
    font-size: 32px;
    padding: 12px 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-line);
    color: var(--card-sub);
}
.chip.is-hl { font-size: 38px; font-weight: 700; padding: 18px 28px; background: var(--hl); border-color: transparent; color: #ffffff; }

/* step chain (held slides) */
.steps { display: flex; flex-direction: column; }
.steps-row { flex: 1 1 auto; display: flex; align-items: stretch; position: relative; }
.steps:has(.steps-loop) { padding-bottom: 140px; }
.step {
    flex: 1 1 0;
    min-width: 0;
    background: var(--card);
    color: var(--card-ink);
    border-radius: var(--radius);
    box-shadow: var(--lift);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    hyphens: manual;
}
.step-name { font-size: 48px; font-weight: 700; line-height: 1.1; }
.step-status { align-self: flex-start; font-size: 32px; font-weight: 700; padding: 8px 18px; border-radius: var(--radius); }
.step.state-pass .step-status { color: var(--pass); background: #e6f2ec; }
.step.state-variance .step-status { color: var(--variance); background: #fbf1dc; }
.step.state-blocked .step-status { color: var(--blocked); background: #fbe9e9; }
.step.state-locked { background: transparent; color: var(--soft); box-shadow: none; border: 3px dashed rgba(255, 255, 255, 0.45); }
.step.state-locked .step-status { color: var(--soft); background: rgba(255, 255, 255, 0.1); }
.step.is-hl { transform: translateY(-12px); box-shadow: 0 26px 52px rgba(4, 18, 32, 0.45); }
.steps-link { flex: 0 0 40px; align-self: center; height: 4px; background: rgba(255, 255, 255, 0.6); }
.steps-loop {
    position: absolute;
    top: 100%;
    height: 72px;
    border: 4px solid var(--orange);
    border-top: none;
    border-radius: 0 0 18px 18px;
}
.steps-loop::before {
    content: "";
    position: absolute;
    left: -14px;
    top: -12px;
    border-bottom: 18px solid var(--orange);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}
.steps-loop-label {
    position: absolute;
    left: 50%;
    bottom: -56px;
    transform: translateX(-50%);
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* stat box (the orange "solution" box) */
.stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 48px 56px;
    border-radius: var(--radius);
    background: var(--hl);
    box-shadow: var(--lift);
    color: #ffffff;
}
.stat-prefix { font-size: 40px; font-weight: 700; }
.stat-value { font-size: 116px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.stat-value.is-word { font-size: 76px; line-height: 1.05; white-space: normal; text-wrap: balance; }
.stat-label { margin-top: 10px; font-size: 40px; font-weight: 700; }
.stat-money { margin-top: 10px; font-size: 48px; font-weight: 700; line-height: 1.1; }
.stat-line { margin-bottom: 14px; padding-bottom: 18px; border-bottom: 2px solid rgba(255, 255, 255, 0.55); font-size: 34px; font-weight: 700; line-height: 1.25; text-wrap: balance; }

/* plan vs actual */
.pva { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; }
.bars { display: flex; flex-direction: column; justify-content: center; gap: 64px; padding: 56px; }
.bar { display: flex; flex-direction: column; gap: 16px; }
.bar-head { display: flex; justify-content: space-between; font-size: 40px; }
.bar-head b { font-weight: 700; }
.bar-track { position: relative; height: 84px; border-radius: var(--radius); background: var(--card-tint); overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #8a99a8; }
.bar-over { position: absolute; right: 0; top: 0; bottom: 0; background: var(--orange-deep); }

/* measured split */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.split-card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 52px 56px; }
.split-caption { font-size: 40px; font-weight: 700; }
.split-bar { display: flex; height: 132px; border-radius: var(--radius); overflow: hidden; gap: 4px; }
.split-seg { flex-basis: 0; }
.seg-1 { background: var(--green); }
.seg-2 { background: #9aa6b2; }
.seg-3 { background: var(--orange-deep); }
.seg-4 { background: var(--purple); }
.split-legend { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; }
.split-item { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 14px; row-gap: 4px; }
.split-swatch { grid-row: 1 / span 2; width: 30px; height: 72px; border-radius: 4px; }
.split-label { font-size: 34px; color: var(--card-sub); }
.split-pct { font-size: 52px; font-weight: 700; line-height: 1; }
.split-item.is-hl .split-label { color: var(--card-ink); font-weight: 700; }

/* quote + logos */
.quote { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding: 64px 80px; }
.quote-text { margin: 0; font-size: 54px; line-height: 1.35; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.quote-who { font-size: 36px; font-weight: 700; color: var(--blue); }
.quote-logos { display: flex; gap: 72px; align-items: center; }
.quote-logos img { display: block; width: auto; }
/* Sized by visual weight, not equal height: the round seal needs ~2x the wordmark's height to read. */
.quote-logos img.logo--wordmark { height: 72px; }
.quote-logos img.logo--seal { height: 150px; }

/* handoff: box -> arrow -> box(es) */
.handoff { display: grid; grid-template-columns: 1fr 200px 1fr; align-items: stretch; }
.handoff-targets { display: flex; flex-direction: column; gap: 32px; }
.hcard {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 44px 56px;
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.hcard--source { background: var(--box); }
.hcard--target { background: var(--purple); }
.hcard-title { font-size: 64px; font-weight: 700; line-height: 1.1; }
.hcard-meta { font-size: 38px; color: var(--soft); }
.hcard--source .hcard-meta { color: #9fe0b5; font-weight: 700; }
.handoff-arrow { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 0 32px; }
.handoff-action { font-size: 34px; font-weight: 700; }
.handoff-line { width: 100%; height: 5px; background: #ffffff; position: relative; }
.handoff-line::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -10px;
    border-left: 18px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

/* queue */
.queue { display: flex; flex-direction: column; gap: 22px; }
.queue-title { font-size: 36px; font-weight: 700; color: var(--card-sub); }
.queue-list { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 14px; }
.queue-item {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0 36px;
    border-radius: var(--radius);
    background: var(--card-tint);
    font-size: 38px;
    color: var(--card-sub);
}
.queue-pos { width: 40px; font-weight: 700; }
.queue-meta { margin-left: auto; font-size: 34px; }
.queue-item.is-hl { background: var(--hl); color: #ffffff; font-size: 46px; font-weight: 700; }
.queue-tag + .queue-meta { margin-left: 0; }
.queue-tag { margin-left: auto; font-size: 32px; font-weight: 700; color: var(--orange-deep); background: #ffffff; border-radius: var(--radius); padding: 8px 22px; }

/* week grid */
.week-grid {
    display: grid;
    grid-template-columns: 200px repeat(7, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
}
.week-day { text-align: center; font-size: 32px; font-weight: 700; color: var(--card-sub); }
.week-row { align-self: center; font-size: 34px; font-weight: 700; }
.week-cell { border-radius: var(--radius); border: none; background: #f7f9fb; display: flex; align-items: center; justify-content: center; padding: 0 10px; font-size: 32px; line-height: 1.15; text-align: center; }
.week-cell.is-filled { border: none; background: var(--card-tint); color: var(--card-sub); }
.week-cell.is-leave { border: none; background: #f3e6f7; color: var(--purple); font-weight: 700; }
.week-cell.is-open { border: none; background: var(--hl); color: #ffffff; font-weight: 700; }

/* flagged rows */
.anomalies { display: grid; grid-auto-rows: 1fr; padding: 16px 0; }
.anomaly {
    display: grid;
    grid-template-columns: 1fr 260px 300px;
    align-items: center;
    padding: 0 56px;
    border-top: 1px solid var(--card-line);
}
.anomaly:has(.anomaly-btn) { grid-template-columns: 1fr 240px 280px 240px; }
.anomaly:first-child { border-top: none; }
.anomaly-type { font-size: 44px; font-weight: 700; }
.anomaly-who, .anomaly-day { font-size: 38px; color: var(--card-sub); }
.anomaly-btn { justify-self: end; font-size: 32px; font-weight: 700; padding: 14px 32px; border-radius: var(--radius); background: var(--hl); color: #ffffff; }
.anomaly.is-hl { background: #fff0e6; }
.anomaly.is-hl .anomaly-type { color: var(--orange-deep); }
.anomaly.is-hl .anomaly-who, .anomaly.is-hl .anomaly-day { color: var(--card-ink); font-weight: 700; }

/* terms table */
.terms { display: grid; grid-auto-rows: 1fr; padding: 16px 0; }
.term { display: grid; grid-template-columns: 480px 1fr; align-items: center; padding: 0 48px; border-top: 1px solid var(--card-line); }
.term:first-child { border-top: none; }
.term-topic { font-size: 36px; font-weight: 700; }
.term-value { justify-self: start; font-size: 32px; color: var(--card-sub); border: 2px solid transparent; border-radius: var(--radius); padding: 8px 18px; }
.term-value.is-filled { border-color: transparent; background: var(--card-tint); color: var(--card-ink); font-weight: 700; }
.term.is-hl { background: #fff0e6; }

/* start strip: Päevaga / Nädalaga / Kuuga */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.start-step { display: flex; flex-direction: column; align-items: stretch; gap: 22px; text-align: center; }
.start-when { font-size: 52px; }
.start-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--box);
    box-shadow: var(--lift);
    font-size: 60px;
    font-weight: 700;
    text-transform: uppercase;
}
.start-step:nth-child(2) .start-box { background: var(--hl); }
.start-step:nth-child(3) .start-box { background: var(--green); }
.start-detail { font-size: 38px; color: var(--soft); }

/* ---------- screen-only chrome ---------- */

.deck-toolbar { position: fixed; right: 24px; bottom: 20px; z-index: 50; display: flex; gap: 12px; }
.deck-btn {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: var(--box);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    padding: 10px 20px;
}
.deck-btn.primary { background: #c2410c; border-color: #c2410c; } /* white 16px bold: 5.2:1 */
.deck-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media screen {
    body { padding: 28px 0 80px; }
    .slide-wrap {
        width: calc(1920px * var(--deck-scale));
        height: calc(1080px * var(--deck-scale));
        margin: 0 auto 28px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 28px 90px rgba(4, 10, 18, 0.45);
    }
    .slide-wrap > .slide { transform: scale(var(--deck-scale)); }
}

/* Phones and tablets: the toolbar sits above the first slide, in the flow and first in tab order, instead of covering a slide. */
@media screen and (max-width: 1100px) {
    .deck-toolbar { position: static; justify-content: center; margin: 16px 0; }
}

@media print {
    body { padding: 0; background: var(--navy); }
    .deck-toolbar { display: none !important; }
    .slide-wrap {
        width: 1920px;
        height: 1080px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .slide-wrap:last-child { break-after: auto; page-break-after: auto; }
    .slide-wrap > .slide { transform: none; }
}
