/* R42–R44 statement – /projekt „Der Kasten bleibt zu“ (statement.js). Rot gehört im Kasten nur noch dem Faden. */

/* ---------- 1. the box: neutral edge and paper, text accents in ink (the thread, its bows and the hanging threads stay red) */
.pj-without{border-color:#cfc8ba;background:linear-gradient(180deg,#fffdf8,#f7f3ea)}
.pj-without .r41-band{background:linear-gradient(180deg,#fffdf8,#f7f3ea) no-repeat}
.pj-without .pj-without-kicker{color:#5c6866}
.pj-without .pj-chain li[data-who=mensch]{border-color:#d8d0c2;background:#fbf8f1}
.pj-without .pj-chain li[data-who=mensch] small{color:#3d4a48}
.pj-without .pj-result strong{color:#1d2d2b}
.pj-without.is-off .pj-result strong{color:#4a5654}
.pj-without .pj-switch{background:#304ee7}
.pj-without .pj-switch-btn[aria-pressed=true] .pj-switch{background:#6c7774}
.pj-without .pj-switch-btn:focus-visible{outline-color:#304ee7}
/* easier reading painted the label dark on the dark button (seen in R41 too) */
html[data-read=on] .pj-without .pj-switch-btn .pj-switch-label{color:#fff!important}
/* R45: the stitched sentence stands alone – the closing words open the dark block that follows (patch_statement.py) */
.pj-learn{position:relative}
.pj-cta .st-close{max-width:34em;margin:0 0 clamp(34px,4.4vw,52px)!important;font-size:clamp(17px,1.45vw,19px)!important;line-height:1.55!important;font-weight:600;letter-spacing:-.005em;color:#e8eeeb!important}

/* ---------- 2. inside the box, under the AI card: grey, plain, small */
.st-ki{display:none;margin:0!important;font:600 clamp(15px,1.3vw,18px)/1.35 Manrope,Arial,sans-serif!important;color:#5f6b69!important;letter-spacing:-.005em;text-align:center;opacity:0;transition:opacity .3s ease}
.pj-without.is-wide .pj-chain{margin-bottom:30px!important}
.pj-without.is-wide.st-off .st-ki{display:block;position:absolute;left:var(--st-kx,50%);top:var(--st-ky,auto);translate:-50% 0;z-index:5;white-space:nowrap;pointer-events:none}
.pj-without.r41-dropped:not(.is-wide) .st-ki{display:block;margin-top:12px!important}
.pj-without.st-ki-on .st-ki{opacity:1}
/* the AI keeps no thread: the cut end under its card would poke into the grey line */
.pj-without.r41-dropped:not(.is-wide) .pj-chain li[data-who=ki]::after{opacity:0!important}

/* ---------- 3. the statement: real text (under the embroidery), the embroidery on top (R44: stem stitch in the linen) */
.st-stage{grid-column:1/-1;position:relative;min-width:0;margin:0;pointer-events:none}
.st-stage[hidden]{display:none!important}
/* computer: in the flow under the four cards (statement.js sets the margins: 48 px under the cards, 24 px above the closing words) */
.st-stage.is-wide{grid-column:1/-1}
.st-say{margin:0!important;padding:0!important;height:100%;display:flex;align-items:center}
.st-stage.is-wide .st-say{justify-content:center;text-align:center}
.st-say .st-line{display:block;width:100%;font:700 var(--st-font,34px)/1.15 Manrope,Arial,sans-serif;color:transparent;letter-spacing:-.02em;forced-color-adjust:none;pointer-events:auto}
.st-stage.is-wide .st-say .st-line{width:auto}
.st-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.st-svg{position:absolute;z-index:3;overflow:visible;pointer-events:none;--st-red:#9e2a20;--st-twist:#d9503f;--st-hole:#5e130d}
.st-svg[hidden],.st-cv[hidden],.st-cl[hidden]{display:none}
/* the cord before and after the writing (TEXTE43 T1): core, a fine light twist inside it, 1 px shadow below */
.st-thread,.st-sh,.st-tw{fill:none;stroke-linecap:round;stroke-linejoin:round}
.st-thread{stroke:var(--st-red);stroke-width:var(--st-w,2.6px)}
.st-sh{stroke:rgba(58,22,12,.32);stroke-width:calc(var(--st-w,2.6px) + .5px);transform:translateY(1px)}
.st-tw{stroke:url(#st-twist);stroke-width:calc(var(--st-w,2.6px) * .62);stroke-linecap:butt}
.st-twist-line{fill:var(--st-twist);opacity:.62}
.st-hole{fill:var(--st-hole);opacity:.85}
/* the knot (full stop): a French knot */
.st-knot-sh{fill:rgba(58,22,12,.3)}
.st-knot-b{fill:url(#st-knot-g)}
.st-kg0{stop-color:#e06a58}.st-kg1{stop-color:#9e2a20}.st-kg2{stop-color:#5e160f}
.st-knot-hi{fill:none;stroke:#5e160f;stroke-width:.7;stroke-linecap:round;opacity:.75}
.st-svg.is-ready{opacity:1}
.st-svg.is-out,.st-cv.is-out{opacity:0;transition:opacity .3s ease}
/* the stitches (canvas) and the linen that gives way under them (canvas, computed once): on the words, under the cord */
.st-cv,.st-cl{position:absolute;pointer-events:none}
.st-cv{z-index:2}
.st-cl{z-index:1;opacity:0;transition:opacity .4s ease;
  --f:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 18px),transparent),linear-gradient(transparent,#000 18px,#000 calc(100% - 18px),transparent);
  -webkit-mask:var(--f);-webkit-mask-composite:source-in;mask:var(--f);mask-composite:intersect}
.st-cl.is-on{opacity:1}
.st-cl.is-quick{transition:none}
/* dark: thread and knot are turned back (real colours on the dark cloth); the linen turns with the page */
html[data-theme=dark] :is(.st-svg,canvas.st-cv){filter:invert(1) hue-rotate(180deg)}
html[data-theme=dark] canvas.st-cl{filter:none}   /* the linen turns with the page (the page turns canvases back by default) */
/* R45: these colours are already the dark ones (the new dark sheet copies them unchanged: dk:fest); shadows stay dark.
   R46 (Furkan: „Der Faden unten ist im Dunkelmodus viel zu hell. Oben bei der Grafik sieht es gut aus.“): the colour of the
   photographed rope at the top of the page and on /profil (#b84a3c, twist #e08a78) instead of the light #f07a6c – one thread. */
html[data-theme=dark] .st-svg{/*dk:fest*/--st-red:#b84a3c;--st-twist:#e08a78;--st-hole:#0d0605;--dk-fg-st-red:#b84a3c;--dk-fill-st-red:#b84a3c;--dk-fg-st-twist:#e08a78;--dk-fill-st-twist:#e08a78;--dk-bg-st-twist:#e08a78;--dk-fg-st-hole:#0d0605;--dk-fill-st-hole:#0d0605;--dk-bg-st-hole:#0d0605}
html[data-theme=dark] .st-svg .st-thread{/*dk:fest*/stroke:#b84a3c}
html[data-theme=dark] .st-svg .st-twist-line{/*dk:fest*/fill:#e08a78}
html[data-theme=dark] .st-svg .st-hole{/*dk:fest*/fill:#0d0605}
html[data-theme=dark] .st-sh{/*dk:fest*/stroke:rgba(0,0,0,.55)}
html[data-theme=dark] .st-knot-sh{/*dk:fest*/fill:rgba(0,0,0,.5)}
html[data-theme=dark] .st-kg0{/*dk:fest*/stop-color:#e08a78}html[data-theme=dark] .st-kg1{/*dk:fest*/stop-color:#b84a3c}html[data-theme=dark] .st-kg2{/*dk:fest*/stop-color:#741d16}
html[data-theme=dark] .st-knot-hi{/*dk:fest*/stroke:#741d16}
/* the knot sits: the human cards can be read again (2,8:1 → 5:1 in 0,4 s); the card size stays */
.pj-without.is-off .pj-chain li[data-who=mensch] :is(small,b,span),.r41-tray-cards :is(small,b,span){transition:color .4s ease}
.pj-without.is-off.st-tied .pj-chain li[data-who=mensch] :is(small,b,span),.pj-without.st-tied~.r41-tray .r41-tray-cards :is(small,b,span){color:#5c6866}
.pj-without.is-off.st-tied .pj-chain li[data-who=mensch] b,.pj-without.st-tied~.r41-tray .r41-tray-cards b{color:#4a5654}

/* easier reading: the sentence in the reading font, bold, 28–30 px, centred under the cards – no embroidery, no thread */
html[data-read=on] :is(.st-svg,.st-cv,.st-cl){display:none!important}
html[data-read=on] .st-stage{height:auto!important;pointer-events:auto}
html[data-read=on] .st-stage.is-wide .st-say{justify-content:center;text-align:center}
html[data-read=on] .st-say .st-line{color:#8f2018!important;font-weight:800!important;font-size:clamp(28px,2.4vw,30px)!important;line-height:1.25}
html[data-read=on] .st-stage:not(.is-wide){padding:6px 0 10px}
/* the drawing could not be loaded: the sentence as text */
.st-stage.st-plain{height:auto!important}
.st-stage.st-plain .st-line{color:#8f2018}

/* contrast mode: the sentence as text in the system's colour, the cord in the text colour */
@media (forced-colors:active){
  .st-cv,.st-cl{display:none!important}
  .st-stage{height:auto!important}
  .st-say .st-line{forced-color-adjust:auto;color:CanvasText!important}
  .st-thread{stroke:CanvasText!important}
  .st-sh,.st-tw{display:none}
  .st-knot-b,.st-knot-sh{fill:CanvasText!important}
  .st-knot-hi{stroke:Canvas!important}
}

/* ---------- 4. the contact pill and Fio step aside while they would cover the statement */
html.st-clear .fs-dock.is-on{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .2s,visibility 0s .2s!important}
html.st-clear .fox-root:not([data-open=true]){opacity:0!important;visibility:hidden!important;pointer-events:none!important}

@media print{.st-svg,.st-cv,.st-cl{display:none!important}.st-stage{height:auto!important}.st-say .st-line{color:#8f2018}}
