/* kk-biblioteka: czytnik (goła strona, bez motywu i bez 79.css). Trzy części:
   a) baza z biblioteka-prototyp/css/site.css (tokeny, html 62,5%, typografia, .ms, .status, pole szukania, toast),
   b) przyciski skopiowane z body .btn w 79.css, żeby czytnik wyglądał jak strona,
   c) cały css/reader.css, wartości rem x1,6 (html { font-size: 62.5% }). */
:root { --navy: #303248; --navy-70: rgba(48, 50, 72, .72); --peach: #feb495; --peach-l: #ffcdb8; --peach-line: #fce5d7;
  --peach-wash: #fff6f1; --terra: #b5431f; --bg: #f9fafa; --paper: #fff; --cream: #fdfcf8; --line: #ebe4df;
  --ok: #b5431f; --ok-wash: #fff6f1; --wait: #303248; --wait-wash: #ffe9df;
  --serif: 'Cormorant Infant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1016px; --ease: cubic-bezier(.16, 1, .3, 1); }
html { font-size: 62.5%; scroll-behavior: smooth; scrollbar-color: var(--peach-l) var(--bg); }
* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--navy); background: #efebe6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--peach-l); color: var(--navy); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--peach); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--navy) !important; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(4.64rem, 6vw, 8.4rem); line-height: 1; }
h2 { font-size: clamp(3.2rem, 3.4vw, 4.4rem); line-height: 1.08; font-weight: 600; }
h3 { font-size: 2.56rem; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
.ms { font-family: 'Material Symbols Outlined' !important; font-weight: 300; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; width: 1em; height: 1em; overflow: hidden;
  white-space: nowrap; text-transform: none; letter-spacing: normal; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; vertical-align: middle; flex: none; }
.muted { color: var(--navy-70); }
.small { font-size: 1.4rem; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; text-decoration: none; }
.icon-btn:hover { background: var(--peach-wash); color: var(--navy); }
.icon-btn .ms { font-size: 26px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--peach); font: 700 11px/18px var(--sans); text-align: center; }
input[type=search] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #dccfc7; border-radius: 4px;
  background: var(--paper); color: var(--navy); font: 400 16px/1.3 var(--sans); caret-color: var(--terra); }
input::placeholder { color: #6d6e80; }
input:focus-visible { outline: 2px solid var(--navy) !important; outline-offset: 1px; border-color: var(--peach); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 3px; font: 500 13px/1.3 var(--sans); }
.status .ms { font-size: 17px; }
.status--ok { background: var(--ok-wash); color: #303248; }
.status--wait { background: var(--wait-wash); color: #303248; }
.status--err { background: #fde9e2; color: #8c2f12; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 4px; font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease); z-index: 90; max-width: min(520px, 90vw); box-shadow: 0 10px 30px -10px rgba(48, 50, 72, .5); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* przyciski: wygląd z body .btn w 79.css, żeby czytnik wyglądał jak strona */
.btn { border: 1px solid #FCE5D7; border-radius: 4px; font-size: 14px; color: #303248; font-family: 'Cormorant Infant', serif !important; background: transparent; padding: 15px 30px; text-decoration: none; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn * { font-size: 16px; font-family: 'Cormorant Infant', serif !important; color: #303248 !important; font-weight: 400; margin: 0 6px 0 0; transition: all .3s; display: inline-block; }
.btn:hover { border: 1px solid #bdbccc !important; background: white; text-decoration: none; }
.btn:hover * { transform: translateX(3px); transition: all .3s; color: black !important; }
.btn { text-transform: uppercase; letter-spacing: .08em; font-weight: 600 !important; font-size: 1.5rem !important; min-height: 46px; padding: 10px 22px; }
.btn:hover { background: var(--peach-wash) !important; border-color: var(--peach) !important; }
.btn:hover * { transform: none; color: inherit !important; }
.btn--solid { background: rgb(255, 148, 104) !important; border-color: rgb(255, 148, 104) !important; color: #fff !important; font-weight: 700 !important; text-shadow: 0 6px 14px rgb(228, 127, 85); box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, .4), 0 6px 20px rgba(232, 218, 210, .54); }
.btn--solid:hover { background: #fff !important; border-color: var(--peach) !important; color: var(--navy) !important; text-shadow: none; }
.btn--solid * { color: #fff !important; }
.btn--solid:hover * { color: var(--navy) !important; }
.btn--quiet { border-color: transparent; background: none; padding-inline: 10px; text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 5px; }
.btn--quiet:hover { background: none; color: var(--terra); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.btn .ms { font-size: 20px; font-family: 'Material Symbols Outlined' !important; }

/* czytnik */
/* Czytnik: pasek, książka 3D, apteczka online. */
body[data-page=czytnik] { background: #efebe6; }
body[data-page=czytnik] main { min-height: 100vh; display: flex; flex-direction: column; background: #efebe6; }
.rd-top { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 64px; padding: 8px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.rd-id { display: flex; align-items: center; gap: 18px; justify-self: start; min-width: 0; }
.rd-logo img { height: 34px; width: auto; display: block; }
.rd-back { text-decoration: none; font: 600 2rem/1 var(--serif); padding-left: 18px; border-left: 1px solid var(--line); white-space: nowrap; }
/* tryb darmowy: pasek pod nagłówkiem, zawsze widoczny */
.rd-demo { position: sticky; top: 64px; z-index: 39; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 20px; background: var(--wait-wash); color: #303248; font-size: 14.5px; }
.rd-demo b { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; white-space: nowrap; flex: none; background: #303248; color: #ffe9df; padding: 4px 9px; border-radius: 3px; }
.rd-demo i { width: 120px; height: 6px; border-radius: 3px; background: rgba(48, 50, 72, .15); overflow: hidden; }
.rd-demo u { display: block; height: 100%; background: #303248; }
.bk-rangew { position: relative; flex: 1; display: flex; }
.bk-rangew::before { content: ''; position: absolute; left: var(--demo, 100%); right: 0; top: 50%; height: 12px; margin-top: -6px; border-left: 2px solid #303248; background: repeating-linear-gradient(135deg, rgba(48, 50, 72, .14) 0 3px, transparent 3px 6px); pointer-events: none; border-radius: 0 3px 3px 0; }
.bk-rangew em { position: absolute; left: 0; width: var(--demo); top: -11px; text-align: right; padding-right: 6px; font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #303248; pointer-events: none; }
.rd-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.rd-switch { display: flex; background: var(--bg); border-radius: 26px; padding: 4px; }
.rd-switch button { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 22px; padding: 9px 18px; font: 500 14px/1 var(--sans); color: var(--navy-70); cursor: pointer; }
.rd-switch button .ms { font-size: 19px; }
.rd-switch button[aria-selected=true] { background: var(--paper); color: var(--navy); box-shadow: 0 1px 2px rgba(48, 50, 72, .12), 0 4px 10px -6px rgba(48, 50, 72, .3); }
.rd-stage { flex: 1; min-height: 0; }

/* ---------- książka ---------- */
.rd-stage--book { display: flex; flex-direction: column; height: calc(100vh - 64px - var(--demo-h, 0px)); position: relative; overflow: hidden; }
.bk-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; }
.bk { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2800px; transition: transform 1s var(--ease); user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; flex: none; }
.bk[data-state=closed] { transform: translateX(calc(var(--pw) * -.5)); }
.bk[data-state=end] { transform: translateX(calc(var(--pw) * .5)); }
.bk::after { content: ''; position: absolute; left: 3%; right: 3%; bottom: -22px; height: 44px; background: radial-gradient(50% 60% at 50% 0, rgba(40, 30, 20, .2), transparent 70%), radial-gradient(48% 100% at 50% 0, rgba(40, 30, 20, .1), transparent 80%); filter: blur(9px); z-index: -1; transition: left 1s var(--ease), right 1s var(--ease); }
.bk[data-state=closed]::after { left: 52%; } .bk[data-state=end]::after { right: 52%; }
.bk::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: calc(50% - var(--pw) - var(--left)); right: calc(50% - var(--pw) - var(--right)); border-radius: 3px;
  background: linear-gradient(90deg, #e4ddd5 0, #fdfcfa 1.4px) left / 2px 100% repeat-x; box-shadow: 0 0 0 1px rgba(58, 44, 30, .07), 0 1px 2px rgba(58, 44, 30, .1); transition: left 1s var(--ease), right 1s var(--ease); }
.bk[data-state=closed]::before { left: 50%; } .bk[data-state=end]::before { right: 50%; }
.bk-leaf { position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph); transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.36, .08, .2, 1); cursor: pointer; }
.bk-leaf.is-flipped { transform: rotateY(-180deg); }
.bk.no-anim .bk-leaf, .bk-leaf.is-dragging { transition: none; }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.bk-front { border-radius: 0 3px 3px 0; } .bk-back { transform: rotateY(180deg); border-radius: 3px 0 0 3px; }
.bk-slot { position: absolute; inset: 0; }
.bk-slot > .eb-page { transform: scale(var(--s)); transform-origin: 0 0; }
.bk-shade { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
/* Grzbiet: wąski, ciepły cień w samym zagięciu, potem długie, ledwo widoczne wybrzuszenie kartki. Krawędź zewnętrzna lekko gaśnie. */
.bk-front .bk-shade { background:
  linear-gradient(90deg, rgba(58, 44, 30, .26) 0, rgba(58, 44, 30, .12) .9%, rgba(58, 44, 30, .05) 2.6%, rgba(58, 44, 30, .018) 7%, rgba(58, 44, 30, 0) 20%),
  linear-gradient(270deg, rgba(58, 44, 30, .05), rgba(58, 44, 30, 0) 2.2%); }
.bk-back .bk-shade { background:
  linear-gradient(270deg, rgba(58, 44, 30, .2) 0, rgba(58, 44, 30, .09) .9%, rgba(58, 44, 30, .04) 2.6%, rgba(58, 44, 30, .015) 7%, rgba(58, 44, 30, 0) 20%),
  linear-gradient(90deg, rgba(58, 44, 30, .05), rgba(58, 44, 30, 0) 2.2%); }
/* cień, który obracana kartka rzuca na strony pod spodem */
.bk-cast { position: absolute; top: 0; height: var(--ph); width: var(--pw); z-index: 15; pointer-events: none; opacity: var(--cast, 0); }
.bk-cast--r { left: 50%; background: linear-gradient(90deg, rgba(40, 30, 20, .2), rgba(40, 30, 20, .07) 30%, rgba(40, 30, 20, 0) 75%); }
.bk-cast--l { right: 50%; background: linear-gradient(270deg, rgba(40, 30, 20, .2), rgba(40, 30, 20, .07) 30%, rgba(40, 30, 20, 0) 75%); }
.bk.is-turning .bk-cast { animation: bkcast 1.1s cubic-bezier(.36, .08, .2, 1); }
@keyframes bkcast { 0%, 100% { opacity: 0; } 45% { opacity: 1; } }
.bk[data-state=closed] .bk-cast--l, .bk[data-state=end] .bk-cast--r, .bk.is-single .bk-cast { display: none; }
/* cień i połysk na obracanej kartce: kartka ciemnieje, gdy stoi pionowo */
.bk-face::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: calc(var(--sh, 0) * .9);
  background: linear-gradient(90deg, rgba(40, 30, 20, .2), rgba(40, 30, 20, .05) 38%, rgba(255, 255, 255, .22) 60%, rgba(40, 30, 20, .03) 78%, rgba(40, 30, 20, .1)); }
.bk-back::after { transform: scaleX(-1); }
.bk-leaf.is-turning .bk-face::after { animation: bkshade 1.1s cubic-bezier(.36, .08, .2, 1); }
@keyframes bkshade { 0%, 100% { opacity: 0; } 50% { opacity: .8; } }
.bk[data-state=closed] .bk-leaf:first-child:hover:not(.is-turning):not(.is-dragging), .bk-leaf:not(.is-flipped):hover:not(.is-turning):not(.is-dragging) { transform: rotateY(-4deg); transition-duration: .6s; }
.bk-leaf.is-flipped:hover:not(.is-turning):not(.is-dragging) { transform: rotateY(-176deg); transition-duration: .6s; }
.bk-single { display: none; position: absolute; inset: 0; background: #fff; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(48, 50, 72, .5); border-radius: 3px; }
.bk.is-single { width: var(--pw); transform: none !important; } .bk.is-single .bk-leaf, .bk.is-single::before { display: none; } .bk.is-single .bk-single { display: block; }
/* phone: one page at a time, and it turns like a leaf (the old page rotates away around its edge) */
.bk-flip { position: absolute; inset: 0; background: #fff; overflow: hidden; z-index: 6; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s cubic-bezier(.36, .08, .2, 1), box-shadow .7s; will-change: transform; }
.bk-flip > .eb-page { transform: scale(var(--s)); transform-origin: 0 0; }
.bk-flip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 30, 20, 0), rgba(40, 30, 20, .18)); opacity: 0; transition: opacity .7s; pointer-events: none; }
.bk-flip--fwd { transform-origin: left center; } .bk-flip--fwd.is-go { transform: rotateY(-105deg); box-shadow: -30px 0 40px -24px rgba(40, 30, 20, .4); }
.bk-flip--back { transform-origin: right center; } .bk-flip--back.is-go { transform: rotateY(105deg); box-shadow: 30px 0 40px -24px rgba(40, 30, 20, .4); }
.bk-flip.is-go::after { opacity: 1; }
.bk.is-single { perspective: 1600px; }
.bk-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--peach-l); background: var(--paper); color: var(--navy); cursor: pointer; display: grid; place-items: center; flex: none; transition: background .2s, opacity .2s; z-index: 3; }
.bk-arrow:hover { background: var(--peach-wash); } .bk-arrow:disabled { opacity: .25; cursor: default; } .bk-arrow .ms { font-size: 28px; }
.bk-bar { display: flex; align-items: center; gap: 14px; padding: 6px 20px 12px; max-width: 760px; width: 100%; margin: 0 auto; }
.bk-bar input[type=range] { flex: 1; accent-color: var(--navy); height: 28px; }
.bk-bar output { font-size: 14px; min-width: 118px; text-align: right; color: var(--navy-70); }
.bk-tocp { position: absolute; left: 20px; bottom: 64px; width: min(380px, calc(100% - 40px)); max-height: 60vh; overflow: auto; background: var(--paper); border-radius: 8px; padding: 10px; box-shadow: 0 24px 60px -20px rgba(48, 50, 72, .5), 0 0 0 1px var(--line); z-index: 30; }
.bk-tocp ol { list-style: none; margin: 0; padding: 0; }
.bk-tocp button { display: flex; width: 100%; align-items: baseline; gap: 8px; background: none; border: 0; padding: 11px 12px; border-radius: 4px; font: 500 1.92rem/1.2 var(--serif); color: var(--navy); cursor: pointer; text-align: left; }
.bk-tocp button:hover { background: var(--peach-wash); } .bk-tocp i { flex: 1; } .bk-tocp b { font: 500 13px var(--sans); color: var(--navy-70); } .bk-tocp .ms { font-size: 15px; color: #a9a3a0; }

/* zamknięta strona w demo */
.eb-locked { background: repeating-linear-gradient(0deg, #fff 0 16px, #faf8f5 16px 17px); }
.eb-locked__in { position: absolute; left: 56px; right: 56px; top: 250px; text-align: center; }
.eb-locked__in > .ms { font-size: 34px; color: var(--peach); width: 1em; }
.eb-locked__in h2 { font: 500 30px/1.12 'Cormorant Infant', serif; margin: 16px 0 10px; color: #2f3148; text-wrap: balance; }
.eb-locked__in p { font: 400 13px/1.5 'Red Hat Display', sans-serif; color: #5f5e69; margin: 0 0 22px; }
.eb-locked__in .s { margin: 14px 0 0; font-size: 12px; }
.eb-locked .btn { font-size: 16px; min-height: 40px; }

/* ---------- apteczka online ---------- */
.rd-stage--web { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; width: min(1180px, 100% - 48px); margin: 0 auto; padding: 40px 0 120px; align-items: start; }
body[data-mode=apteczka], body[data-mode=apteczka] main { background: var(--paper); }
.wb-side { position: sticky; top: calc(96px + var(--demo-h, 0px)); max-height: calc(100vh - 116px - var(--demo-h, 0px)); overflow: auto; padding-right: 4px; }
.wb-search { display: flex; align-items: center; gap: 10px; border: 1px solid #dccfc7; border-radius: 4px; padding: 0 12px; background: #fff; }
.wb-search:focus-within { outline: 2px solid var(--navy) !important; outline-offset: 1px; }
.wb-search input { border: 0; padding: 0; min-height: 48px; outline: none !important; }
.wb-search .ms { color: var(--navy-70); font-size: 22px; }
.wb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.wb-filters button, .wb-kinds button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 7px 14px; font: 500 13.5px/1.2 var(--sans); color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wb-filters button:hover, .wb-kinds button:hover { border-color: var(--peach); }
.wb-filters button[aria-pressed=true], .wb-kinds button[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.wb-filters .num { opacity: .85; }
.wb-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; } .wb-kinds .ms { font-size: 17px !important; color: inherit !important; }
.wb-nav { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.wb-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 1px solid transparent; font: 500 1.92rem/1.2 var(--serif); text-decoration: none; color: var(--navy-70); }
.wb-nav a:hover { color: var(--navy); } .wb-nav a.is-on { color: var(--navy); border-left-color: var(--terra); }
.is-filtered .wb-nav a.is-on { border-left-color: transparent; color: var(--navy-70); }
.wb-nav .ms { font-size: 15px; color: #a9a3a0; }
.wb-count { min-height: 1.4em; margin: 0 0 6px; font-size: 14px; color: var(--navy-70); }
.wb-sec { scroll-margin-top: calc(90px + var(--demo-h, 0px)); padding-bottom: 56px; }
.wb-sec + .wb-sec { border-top: 1px solid var(--line); padding-top: 56px; }
.wb-sec .eb-h1 { font-size: clamp(5.44rem, 8vw, 8.96rem); margin-bottom: .3em; }
.wb-blk + .wb-blk, .wb-blk + .wb-item, .wb-item + .wb-blk { margin-top: 1.5em; }
.wb-blk .eb-q, .wb-blk .eb-fact { margin-top: 0; } .wb-blk .eb-warn { margin-bottom: 0; }
.wb-item { margin-top: 2.4em; }
.wb-ref { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 500 12.5px/1 var(--sans); color: var(--navy-70); text-decoration: none; }
.wb-ref:hover { color: var(--terra); } .wb-ref .ms { font-size: 16px !important; color: inherit !important; }
.wb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; align-items: start; }
.wb-grid--one { grid-template-columns: 1fr; }
.wb-grid .wb-item { margin-top: 0; }
.wb-grid:not(.wb-grid--one) .eb-rec__cols, .wb-grid:not(.wb-grid--one) .eb-rec__sec { display: block; }
.wb-grid:not(.wb-grid--one) .eb-rec__steps { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--linia); margin-top: 1em; padding-top: 1em; }
.wb-grid:not(.wb-grid--one) .eb-rec__sec > div { padding-left: 0; margin-left: 0; margin-top: .3em; }
.wb-lock { display: grid; grid-template-columns: 30px 1fr; gap: 16px; background: var(--cream); border: 1px dashed #d8c8bd; border-radius: 6px; padding: 24px 26px; margin-top: 30px; font-family: var(--sans); }
.wb-lock > .ms { font-size: 26px !important; color: var(--peach) !important; }
.wb-lock h3 { font: 600 2.32rem/1.2 var(--serif) !important; margin-bottom: 6px !important; color: var(--navy); }
.wb-lock p { font-size: 15px; color: var(--navy-70); margin-bottom: 16px !important; max-width: 60ch; }
.wb-empty { text-align: center; padding: 70px 20px; } .wb-empty .ms { font-size: 40px; color: var(--peach); } .wb-empty h3 { margin: 12px 0 8px; } .wb-empty p { color: var(--navy-70); max-width: 46ch; margin: 0 auto; }

@media (max-width: 900px) {
  .rd-top { grid-template-columns: auto 1fr auto; padding: 8px 12px; gap: 8px; } .rd-back, .rd-right .status, .rd-demo i { display: none; } .rd-logo img { height: 26px; } .rd-demo { font-size: 13px; padding: 7px 12px; gap: 8px; }
  .wb-start ul { grid-template-columns: 1fr; } .wb-rc summary { grid-template-columns: 28px 1fr 18px; } .rd-switch { justify-self: center; } .rd-switch button { padding: 9px 12px; }
  .bk-wrap { padding: 8px; position: relative; } .bk-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; z-index: 20; opacity: .92; } .bk-arrow .ms { font-size: 24px; } .bk-prev { left: 2px; } .bk-next { right: 2px; } /* phone: small arrows over the page edges; a tap on the right or left part of the page also turns it */
  .rd-stage--web { grid-template-columns: 1fr; gap: 20px; padding-top: 18px; width: min(1180px, 100% - 32px); }
  .wb-side { position: static; max-height: none; } .wb-nav { display: flex; overflow-x: auto; border-left: 0; gap: 18px; padding-bottom: 6px; } .wb-nav a { white-space: nowrap; padding: 6px 0; border-left: 0; font-size: 1.68rem; }
  .wb-grid { grid-template-columns: 1fr; }
}

/* koniec demo: pierwsza zamknięta strona mówi, co jest dalej */
.eb-locked--first .eb-locked__in { top: 120px; text-align: left; }
.eb-locked--first h2 { font-size: 44px; line-height: 1.02; margin: 0 0 14px; }
.eb-locked--first ul { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid #f2c230; }
.eb-locked--first li { font: 500 19px/1.25 'Cormorant Infant', serif; color: #2f3148; padding: 9px 0; border-bottom: 1px solid #fff3c7; }
.eb-locked--first .s { text-align: left; }

/* apteczka: start od sytuacji, podpowiedzi, alarm, zwinięte receptury */
.wb-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.wb-sugg button { border: 0; background: var(--bg); border-radius: 14px; padding: 5px 11px; font: 400 13px/1.2 var(--sans); color: var(--navy-70); cursor: pointer; }
.wb-sugg button:hover { background: var(--peach-wash); color: var(--navy); }
.wb-alarm { display: flex; width: 100%; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #f0c9bb; border-radius: 4px; background: #fff6f1; color: #8c2f12; font: 600 1.84rem/1.1 var(--serif); cursor: pointer; text-align: left; }
.wb-alarm .ms { font-size: 22px; } .wb-alarm:hover { border-color: var(--terra); } .wb-alarm[aria-pressed=true] { background: #8c2f12; border-color: #8c2f12; color: #fff; }
.wb-filters { margin-top: 12px; }
.wb-start { font-family: var(--sans); margin-bottom: 56px; }
.wb-start h2 { font: 600 3.2rem/1.1 var(--serif); margin: 0 0 16px; color: var(--navy); }
.wb-start ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.wb-start a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--line); font: 500 2.08rem/1.2 var(--serif); color: var(--navy); text-decoration: none; }
.wb-start a:hover { background: var(--peach-wash); } .wb-start .ms { font-size: 19px !important; color: #a9a3a0 !important; }
.wb-list { border-top: 1px solid var(--line); }
.wb-rc { border-bottom: 1px solid var(--line); }
.wb-rc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr 20px; gap: 0 12px; align-items: center; padding: 16px 4px; font-family: var(--sans); }
.wb-rc summary::-webkit-details-marker { display: none; }
.wb-rc summary::after { content: ''; grid-column: 3; grid-row: 1 / 3; width: 9px; height: 9px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .3s var(--ease); justify-self: center; }
.wb-rc[open] summary::after { transform: rotate(-135deg); }
.wb-rc summary:hover { background: var(--peach-wash); }
.wb-rc summary .ms { grid-row: 1 / 3; font-size: 26px !important; }
.wb-rc summary b { font: 600 2.24rem/1.2 var(--serif); color: var(--navy); }
.wb-rc summary span:not(.ms) { grid-column: 2; font-size: 13.5px; color: var(--navy-70); }
.wb-rc[open] { padding-bottom: 22px; } .wb-rc[open] summary { margin-bottom: 4px; }
.wb-rc .eb-rec__head { display: none; } .wb-rc .eb-rec__cols { border-top: 0; margin-top: 0; }
@media (max-width: 900px) {
  .wb-start ul { grid-template-columns: 1fr; }
  .wb-start { margin-bottom: 36px; }
  .rd-demo { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .rd-right .btn { white-space: nowrap; padding: 8px 12px; font-size: 15px; }
}

/* phone: the top bar keeps the back link and icon-only view switch; the wide logo would be clipped */
@media (max-width: 520px) {
  .rd-logo { display: none; }
  .rd-back { display: block; border-left: 0; padding-left: 0; font-size: 1.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
  .rd-switch button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rd-switch button { padding: 9px 12px; gap: 0; }
}

/* Loading: Karolina's animated logo (the site's loader.gif), then the text. */
.kk-reader .kk-loading { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 100vh; padding: 24px; text-align: center; background: #fcfcff; color: #303248; font: 400 1.5rem/1.4 'Red Hat Display', sans-serif; }
.kk-reader .kk-loading img { width: 192px; height: 60px; }
.kk-reader .kk-loading p { margin: 0; }
