/* The artwork stays separate from the controls and issue-specific editorial text. */
.atlas-wk {
  --cover: #07534d;
  --edge: #0b605b;
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  min-height: 245px; box-sizing: border-box; margin-block: 1.6rem;
  color: #fff9e9; background: var(--cover); border-radius: 22px;
  box-shadow: 0 3px 0 #17332b16;
}
.atlas-wk-noc { --cover: #28345f; --edge: #41476e }
.atlas-wk-rubin { --cover: #763651; --edge: #914a61 }
.atlas-wk-bursztyn { --cover: #70431c; --edge: #865125 }
.atlas-wk-blekit { --cover: #1d4d66; --edge: #2e637b }
.atlas-wk-art { position: absolute; inset: 0 0 0 38%; z-index: -1 }
.atlas-wk-art img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; display: block }
.atlas-wk-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right,var(--cover),transparent 45%) }
.atlas-wk-copy { align-self: center; width: min(62%,640px); padding: clamp(22px,3.2vw,48px); box-sizing: border-box; }
.atlas-wk .atlas-wk-kicker,.atlas-overline { display:flex; align-items:center; gap:.6rem; text-transform: uppercase; font-size: .75rem; line-height: 1.35; letter-spacing: .095em; font-weight: 800; margin:0 0 .65rem }
.atlas-wk .atlas-wk-kicker { color: #fff1c7 }
.atlas-wk-kicker > span { background:#ffce54; display:inline-block; width:20px; height:4px; border-radius:3px; transform:rotate(-6deg) }
.atlas-wk .atlas-wk-kicker b { color:#f5df9f; font-size: .7rem; border-left: 1px solid #ffffff58; padding-left:.65rem; white-space:nowrap }
.atlas-wk-copy h1,.atlas-wk-copy h2 { color: #fffae9; font: 800 clamp(1.75rem,3.1vw,3.2rem)/1.04 var(--head,'Bricolage Grotesque',system-ui,sans-serif); letter-spacing: -.045em; margin:0; text-wrap:balance }
.atlas-wk .atlas-wk-intro { color: #f8f4e6; max-width:43ch; margin:.65rem 0 .55rem; font-size:clamp(.95rem,1.22vw,1.13rem); line-height:1.42; }
.atlas-wk .atlas-wk-data { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; color:#e5efe9; margin:0; font-size:.84rem; font-weight:640; line-height:1.35 }
.atlas-wk-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem 1rem; margin-top:.95rem }
.atlas-wk-open,.atlas-wk-archive,.atlas-wk-print { display:inline-flex; gap:.65rem; align-items:center; min-height:44px; box-sizing:border-box; font-weight:770; line-height:1.15; font-size:.96rem; }
.atlas-wk .atlas-wk-open { color:#142544; background:#ffcf55; border:1px solid #ffe29a; border-radius:12px; text-decoration:none; padding:.7rem 1rem; box-shadow:0 2px 0 #001e267a; }
.atlas-wk-open span:last-child { font-size:1.15rem }
.atlas-wk .atlas-wk-archive,.atlas-wk .atlas-wk-print { background:transparent; color:#fff9e9; border:0; padding:.15rem; text-decoration:underline; text-underline-offset:.22em; }
.atlas-wk .atlas-wk-open:hover { background:#ffdf80 }
.atlas-wk a:focus-visible,.atlas-wk button:focus-visible { outline:3px solid #fff; outline-offset:3px }
.atlas-wk .atlas-wk-status { margin:.6rem 0 0; font-size:.84rem; line-height:1.35; color:#f8e5a9; font-weight:680 }
.atlas-wk [hidden] { display:none }
.atlas-wk-main { max-width:1130px; }
.atlas-hub-head,.atlas-notebook-head,.atlas-article,.atlas-404 { color:#172544 }
.atlas-hub-head,.atlas-notebook-head { position:relative; margin:1rem 0 1.35rem }
.atlas-overline { color: #176a66 }
.atlas-hub-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; border-bottom:1px solid #dbd0b9; padding-bottom:1rem; }
.atlas-hub-head h1,.atlas-notebook-head h1,.atlas-article h1,.atlas-404 h1 { margin:0 0 .45rem; font-size:clamp(2rem,4.8vw,3.9rem); letter-spacing:-.05em; line-height:1.07; text-wrap:balance }
.atlas-hub-head p:not(.atlas-overline),.atlas-notebook-head p:not(.atlas-overline) { margin:.4rem 0; max-width:60ch; line-height:1.55; }
.atlas-hub-head nav { display:flex; flex-wrap:wrap; gap:.1rem 1.25rem; margin-top:.3rem }
.atlas-hub-head nav a,.atlas-shelf a:focus-visible,.atlas-next a { text-underline-offset:.2em }
.atlas-hub-head nav a { color:#075650; display:inline-flex; align-items:center; gap:.45rem; min-height:44px; font-weight:720 }
.atlas-margin-art { display:block; object-fit:contain; flex:0 0 auto; max-width:22%; width:190px; height:auto }
.atlas-notebook-head { padding-top:.25rem }
.atlas-shelf { margin:2.4rem 0 1rem; scroll-margin-top:7rem }
.atlas-shelf h2 { font-size:clamp(1.55rem,2.5vw,2.25rem); margin:0 0 .8rem }
.atlas-shelf ol { list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:.7rem; padding:0; margin:0 }
.atlas-shelf-link { display:flex; align-items:center; gap:1rem; padding:.5rem .85rem .5rem .5rem; border:1px solid #ded2bb; border-radius:13px; background:#fffbef; color:#162846; text-decoration:none; box-shadow:0 2px 0 #745d3020; }
.atlas-shelf-link:hover { border-color:#40716a }
.atlas-shelf-link img { width:clamp(72px,10vw,125px); aspect-ratio:1.9; border-radius:7px; height:auto; object-fit:cover }
.atlas-shelf-link span { min-width:0 }
.atlas-shelf-link small { display:block; font-size:.77rem; font-weight:650; color:#53605c; margin-bottom:.25rem }
.atlas-shelf-link strong { font-size:clamp(1rem,1.25vw,1.2rem); line-height:1.2 }
.atlas-shelf-link b { color:#156961; margin-left:auto; padding-right:.3rem }
.atlas-next { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .55rem; padding:.75rem 0; color:#43504c; font-size:.9rem }
.atlas-next strong { color:#243652 }
.atlas-next span { border-left:1px solid #c7bea9; padding-left:.65rem }
.atlas-wk-main .wk-room { scroll-margin-top:6rem; background:#fffcf2; border:1px solid #ded3b9; box-shadow:0 3px 0 #ddd1b72b; border-radius:18px }
.atlas-wk-main .wk-reading { margin-top:1rem }
.atlas-wk-main .wk-reading a { display:inline-flex; align-items:center; min-height:44px; color:#14605b; text-underline-offset:.18em }
.atlas-calendar { scroll-margin-top:6rem; }
.atlas-calendar #archive-date { min-height:44px; min-width:9rem; padding:.45rem .7rem; border-radius:9px }
.atlas-calendar #archive-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0 0 1.3rem }
.atlas-calendar .archive-card { display:flex; flex-direction:column; overflow:hidden; background:#fffaf0; border:1px solid #dacdb5; border-radius:15px; box-shadow:0 2px 0 #70592b16; padding:0 }
.atlas-calendar .archive-card .archive-art { display:block; width:100%; height:auto; aspect-ratio:4.4; object-fit:cover; object-position:center; }
.atlas-calendar .archive-body { padding:.8rem .9rem 1rem; }
.atlas-calendar .archive-body h2 { margin:0 0 .35rem; font-size:clamp(1.24rem,2vw,1.6rem); line-height:1.14; letter-spacing:-.03em }
.atlas-calendar .inline-row { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .65rem; }
.atlas-calendar .inline-row a { min-height:44px; display:inline-flex; flex-wrap:wrap; align-items:center; gap:.35rem; line-height:1.23; color:#155761; text-underline-offset:.18em }
.atlas-calendar .inline-row a small { padding:.18rem .38rem; border-radius:6px; font-size:.69rem; font-weight:760; color:#154f48; background:#daeee2; text-decoration:none; }
.atlas-calendar .inline-row a.atlas-started small { color:#5b4513; background:#ffebaa }
.atlas-calendar .atlas-day-summary { display:block; margin:.65rem 0 1rem; color:#165b56; font-size:.91rem; font-weight:730; }
.atlas-stats-hero { background:#184f52; color:#fff9e7; border-color:#215e63; border-radius:20px; box-shadow:0 3px 0 #746a3530; }
.atlas-local-stats { margin-top: .7rem; }
body[data-page="statystyki"] .rk-hub { border-radius:18px; }
.atlas-wk-main .wk-tabs button:focus-visible,.atlas-calendar a:focus-visible,.atlas-calendar select:focus-visible,.atlas-hub-head a:focus-visible,.atlas-shelf a:focus-visible { outline:3px solid #2256bb; outline-offset:3px }
.article.atlas-article,.article.atlas-404 { max-width:52rem; margin:clamp(10px,2vw,30px) auto 2rem; padding:clamp(20px,4vw,54px); border-radius:18px; background:#fffcf3; border:1px solid #ddd1b7; box-shadow:0 3px 0 #71603914; }
.atlas-article .atlas-margin-art,.atlas-404 .atlas-margin-art { float:right; margin:0 0 1rem 1.4rem; max-width:28%; }
.atlas-article .atlas-overline,.atlas-404 .atlas-overline { margin:0 0 .65rem; }
.atlas-article > h2 { clear:both; font-size:clamp(1.3rem,2.3vw,1.8rem); margin:1.4em 0 .4em; padding-top:.7em; border-top:1px solid #e6dcca; }
.atlas-article p,.atlas-article li,.atlas-404 p { line-height:1.6; max-width:70ch; overflow-wrap:anywhere; }
.atlas-article a,.atlas-404 a { text-underline-offset:.18em }
.article.atlas-404 { max-width:unset; background:#f3f4e4; border-color:#d4d9bb; overflow:hidden; }
.atlas-404 .atlas-margin-art { width:270px; }
@media (max-width:760px) {
  .atlas-calendar #archive-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem }
  .atlas-wk-copy { width:65%; }
  .atlas-wk .atlas-wk-intro { font-size:.95rem; }
}
@media (max-width:520px) {
  .atlas-wk { min-height:210px; margin-block:1.1rem; border-radius:15px; }
  .atlas-wk-copy { width:100%; padding:16px; }
  .atlas-wk-copy h1,.atlas-wk-copy h2 { font-size:clamp(1.6rem,6.5vw,2rem); max-width:82%; }
  .atlas-wk-art { inset:0 0 0 25%; }
  .atlas-wk-art::after { background:linear-gradient(to right,var(--cover) 2%,color-mix(in srgb,var(--cover) 94%,transparent) 25%,color-mix(in srgb,var(--cover) 66%,transparent) 52%,transparent 98%); }
  .atlas-wk .atlas-wk-intro { max-width:72%; margin:.4rem 0; font-size:.9rem; }
  .atlas-wk .atlas-wk-kicker { font-size:.69rem; margin-bottom:.5rem; }
  .atlas-wk-kicker > span { width:13px }
  .atlas-wk .atlas-wk-data { max-width:83%; font-size:.75rem; }
  .atlas-wk-actions { gap:.25rem .65rem; margin-top:.6rem; }
  .atlas-wk .atlas-wk-archive,.atlas-wk .atlas-wk-print { font-size:.84rem; text-shadow:0 1px 3px #003c37; }
  .atlas-hub-head { gap:.25rem; align-items:flex-start; }
  .atlas-hub-head .atlas-margin-art { width:72px; max-width:19%; margin-top:1.55rem; }
  .atlas-hub-head h1,.atlas-notebook-head h1 { font-size:clamp(1.8rem,7vw,2.35rem); }
  .atlas-hub-head nav { gap:.1rem .75rem }
  .atlas-calendar #archive-items { grid-template-columns:1fr; }
  .atlas-calendar .archive-card { display:grid; grid-template-columns: minmax(62px,24%) minmax(0,1fr); align-items:stretch; }
  .atlas-calendar .archive-card .archive-art { height:100%; min-height:72px; aspect-ratio:auto; object-position:64% center; }
  .atlas-calendar .archive-body { padding:.5rem .7rem; }
  .atlas-shelf { margin-top:1.4rem }
  .atlas-article .atlas-margin-art,.atlas-404 .atlas-margin-art { max-width:23%; margin-left:.6rem }
  .atlas-404 .atlas-margin-art { max-width:33% }
}
@media (prefers-reduced-motion:no-preference) {
  .atlas-wk-open,.atlas-shelf-link { transition:background-color .14s,border-color .14s }
}

body[data-page=statystyki] .rk-hub { --rk-navy:#173949; --rk-muted:#465866; --rk-line:#d6dccc; --rk-paper:#fffdf4; border-top:4px solid #c7ae67 }
body[data-page=statystyki] .rk-hub .rk-periods button[aria-pressed=true] { background:#155f59; color:#fff }
body[data-page=statystyki] .rk-hub .rk-rows { box-shadow:none }
body[data-page=statystyki] .atlas-local-stats .stats-grid .statbox { border-color:#c8d6c8; }
.atlas-calendar .archive-card { margin:0 }
.atlas-calendar .archive-body p { font-size:.9rem; line-height:1.45; margin:.15rem 0 .45rem; }
@media print { .wk-print .atlas-print-title { font: bold 20pt/1.15 sans-serif; margin:0 0 3mm; } }

.atlas-date-form { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .65rem; margin-top:1.1rem }
.atlas-date-form label { font-weight:730 }
.atlas-date-form button { min-height:44px; padding:.45rem .85rem; color:#fffaf0; background:#125e59; border:0; border-radius:9px; font-weight:720; cursor:pointer }
.atlas-date-form #archive-date { color:#192e45; border:1px solid #aaac95; background:#fffdf2; font:inherit; width:10.5rem; box-sizing:border-box }
.atlas-date-form a { min-height:44px; display:inline-flex; align-items:center; color:#195b56 }
.atlas-calendar .archive-guide { min-height:44px; display:inline-flex; align-items:center; text-underline-offset:.18em; font-size:.83rem; color:#435965; }
.atlas-calendar .archive-card.atlas-no-art { display:block; }
@media (max-width:520px) {
  .atlas-wk .atlas-wk-archive,.atlas-wk .atlas-wk-print { border-radius:7px; background:#103f40dd; padding:0 .55rem; text-shadow:none }
}
