/* ===== Artykuł: stan prawny, CTA, powiązane, przypis AI ===== */
.art-legal{display:flex;gap:.9rem;align-items:flex-start;margin:2.2rem 0 0;padding:1.1rem 1.2rem;border-radius:1.2rem;background:#fff8e6;box-shadow:inset 0 0 0 1px #f2dca5}
.art-legal__icon{flex:none;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:.8rem;background:#fde9b3;color:#8a5a00}
.art-legal__icon svg{width:1.2rem;height:1.2rem}
.art-legal strong{display:block;color:#5c3d00;font-size:.95rem}
.art-legal p{margin:.25rem 0 0;color:#6b5420;font-size:.86rem;line-height:1.5}

.art-cta{position:relative;overflow:hidden;margin:2.4rem 0 0;padding:clamp(1.4rem,3.5vw,2.2rem);border-radius:1.6rem;color:#fff;
  background:radial-gradient(120% 140% at 100% 0%,#2f6fa8 0%,rgba(47,111,168,0) 55%),linear-gradient(150deg,#13243f,#0a0f1f 70%);box-shadow:0 30px 60px -36px rgba(5,8,26,.7)}
.art-cta__eyebrow{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8fc4ee}
.art-cta h2{margin:.5rem 0 0;font:700 clamp(1.4rem,3vw,1.9rem)/1.15 "Space Grotesk",system-ui,sans-serif;letter-spacing:-.02em;color:#fff}
.art-cta p{margin:.7rem 0 0;color:rgba(255,255,255,.78);line-height:1.55}
.art-cta__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-top:1.3rem}
.art-cta .nij-cta-link{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.24);margin:0}

.art-related{margin:2.4rem 0 0}
.art-related h2{margin:0 0 .9rem;font:700 1.25rem/1.2 "Space Grotesk",system-ui,sans-serif}
.art-related__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
@media (max-width:560px){.art-related__grid{grid-template-columns:1fr}}
.art-related__grid a{display:flex;flex-direction:column;gap:.2rem;padding:1rem 1.1rem;border-radius:1.1rem;background:#fff;color:#0a0f1f;text-decoration:none;box-shadow:0 0 0 1px rgba(10,15,31,.08),0 12px 26px -22px rgba(10,15,31,.5);transition:transform .18s ease,box-shadow .18s ease}
.art-related__grid a:hover{transform:translateY(-2px);box-shadow:0 0 0 1.5px #3980be,0 16px 30px -22px rgba(57,128,190,.7)}
.art-related__grid strong{font-size:.95rem}
.art-related__grid strong::after{content:" →";color:#3980be}
.art-related__grid span{font-size:.82rem;color:#5b6478}
.art-ai-note{margin:1.6rem 0 0;font-size:.75rem;color:#8a93a6;text-align:center}

html[data-theme="dark"] .art-legal{background:rgba(242,190,60,.08);box-shadow:inset 0 0 0 1px rgba(242,190,60,.25)}
html[data-theme="dark"] .art-legal__icon{background:rgba(242,190,60,.16);color:#f2c35a}
html[data-theme="dark"] .art-legal strong{color:#f6d48a}
html[data-theme="dark"] .art-legal p{color:rgba(246,212,138,.75)}
html[data-theme="dark"] .art-related__grid a{background:#111a2e;color:#f5f1e8;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
html[data-theme="dark"] .art-related__grid span{color:rgba(245,241,232,.6)}

/* ===== Spis treści — komputer ===== */
.toc{position:fixed;z-index:30;top:110px;left:calc(50% + 400px);width:min(270px,calc(50vw - 430px));max-height:calc(100vh - 140px);display:none;flex-direction:column;
  padding:1rem;border-radius:1.3rem;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);box-shadow:0 0 0 1px rgba(10,15,31,.07),0 24px 50px -34px rgba(10,15,31,.55);
  opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
@media (min-width:1280px){.toc{display:flex}}
.toc.is-visible{opacity:1;transform:none;pointer-events:auto}
.toc__head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.toc__title{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#3a4264}
.toc__left{font-size:.72rem;font-weight:700;color:#2a6aa3;white-space:nowrap}
.toc__bar{height:4px;margin:.6rem 0 .5rem;border-radius:4px;background:#e8eef5;overflow:hidden}
.toc__fill{display:block;height:100%;background:linear-gradient(90deg,#3980be,#6fb1e6);transform-origin:left;transform:scaleX(0);transition:transform .15s linear}
.toc__list{list-style:none;margin:0;padding:0;overflow:auto;scrollbar-width:thin}
.toc__item{position:relative;display:flex;align-items:center}
.toc__item.is-sub .toc__link{padding-left:1.4rem;font-size:.8rem}
.toc__link{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .4rem;padding:.45rem 1.9rem .45rem .7rem;border-radius:.6rem;color:#3a4264;font-size:.84rem;line-height:1.3;text-decoration:none;border-left:2px solid transparent;transition:background-color .15s ease,color .15s ease}
.toc__link:hover{background:#f1f5fa;color:#0a0f1f}
.toc__item.is-active .toc__link{background:#eaf3fb;color:#1f4f7a;font-weight:700;border-left-color:#3980be}
.toc__tag{padding:.05rem .4rem;border-radius:999px;background:#eef2f7;color:#5b6478;font-size:.62rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.toc__item.is-active .toc__tag{background:#3980be;color:#fff}
.toc__copy{position:absolute;right:.3rem;top:50%;display:grid;place-items:center;width:1.5rem;height:1.5rem;border:0;border-radius:.4rem;background:transparent;color:#8a93a6;cursor:pointer;opacity:0;transform:translateY(-50%);transition:opacity .15s ease,background-color .15s ease}
.toc__copy svg{width:.85rem;height:.85rem;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.toc__item:hover .toc__copy,.toc__copy:focus-visible{opacity:1}
.toc__copy:hover{background:#e8eef5;color:#1f4f7a}
.toc__copy.is-done{opacity:1;color:#1b7a4c}
.toc__copy.is-done::after{content:attr(data-label);position:absolute;right:110%;top:50%;transform:translateY(-50%);padding:.2rem .45rem;border-radius:.4rem;background:#0a0f1f;color:#fff;font-size:.68rem;font-weight:700;white-space:nowrap}
.toc__cta{display:grid;gap:.25rem;margin-top:.8rem;padding:.85rem;border-radius:1rem;background:linear-gradient(160deg,#eef6fd,#fff);box-shadow:inset 0 0 0 1px #d6e6f3}
.toc__cta strong{font-size:.86rem;color:#0a0f1f}
.toc__cta span{font-size:.76rem;color:#5b6478;line-height:1.4}
.toc__cta .nij-chrome-btn{margin-top:.45rem;justify-content:center}
html[data-theme="dark"] .toc{background:rgba(17,26,46,.92);box-shadow:0 0 0 1px rgba(255,255,255,.08)}
html[data-theme="dark"] .toc__title{color:rgba(245,241,232,.7)}
html[data-theme="dark"] .toc__left{color:#8fc4ee}
html[data-theme="dark"] .toc__bar{background:#1e2a40}
html[data-theme="dark"] .toc__link{color:rgba(245,241,232,.72)}
html[data-theme="dark"] .toc__link:hover{background:#1a2740;color:#fff}
html[data-theme="dark"] .toc__item.is-active .toc__link{background:rgba(57,128,190,.2);color:#cfe6f8}
html[data-theme="dark"] .toc__tag{background:rgba(255,255,255,.08);color:rgba(245,241,232,.7)}
html[data-theme="dark"] .toc__cta{background:linear-gradient(160deg,#16304d,#111a2e);box-shadow:inset 0 0 0 1px rgba(111,163,208,.3)}
html[data-theme="dark"] .toc__cta strong{color:#f5f1e8}
html[data-theme="dark"] .toc__cta span{color:rgba(245,241,232,.65)}

/* ===== Spis treści — telefon: pigułka + szuflada ===== */
.toc-pill{position:fixed;z-index:44;left:16px;bottom:calc(96px + env(safe-area-inset-bottom,0px));display:none;align-items:center;gap:.55rem;max-width:calc(100vw - 70px);padding:.35rem .9rem .35rem .35rem;border:0;border-radius:999px;cursor:pointer;
  color:#0a0f1f;font:700 .82rem/1.2 inherit;opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .2s ease,transform .2s ease}
@media (max-width:1279px){.toc-pill{display:inline-flex}}
.toc-pill.is-visible{opacity:1;transform:none;pointer-events:auto}
.toc-pill__ring{--p:0;flex:none;display:grid;place-items:center;width:2.3rem;height:2.3rem;border-radius:50%;background:conic-gradient(#3980be calc(var(--p)*1%),rgba(57,128,190,.18) 0)}
.toc-pill__pct{display:grid;place-items:center;width:1.85rem;height:1.85rem;border-radius:50%;background:#fff;font-size:.62rem;font-weight:800;color:#1f4f7a}
.toc-pill__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.toc-drawer{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;background:rgba(5,8,26,.45)}
.toc-drawer[hidden]{display:none}
.toc-drawer__sheet{width:100%;max-height:72vh;overflow:auto;padding:1rem 1rem calc(1.2rem + env(safe-area-inset-bottom,0px));border-radius:1.4rem 1.4rem 0 0;background:#fff;animation:toc-up .25s ease}
@keyframes toc-up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.toc-drawer__head{display:flex;align-items:center;justify-content:space-between}
.toc-drawer__head strong{font:700 1.1rem/1.2 "Space Grotesk",system-ui,sans-serif}
.toc-drawer__close{width:2.4rem;height:2.4rem;border:0;border-radius:50%;background:#eef2f7;font-size:1.4rem;line-height:1;cursor:pointer}
.toc-drawer__left{margin:.2rem 0 .7rem;font-size:.8rem;font-weight:700;color:#2a6aa3}
.toc-drawer .toc__link{padding:.7rem 2.2rem .7rem .7rem;font-size:.95rem}
.toc-drawer .toc__copy{opacity:1;width:2rem;height:2rem}
html.toc-open{overflow:hidden}
html[data-theme="dark"] .toc-drawer__sheet{background:#111a2e;color:#f5f1e8}
html[data-theme="dark"] .toc-drawer__close{background:#1a2740;color:#f5f1e8}
@media (prefers-reduced-motion:reduce){.toc,.toc-pill,.toc__fill{transition:none}.toc-drawer__sheet{animation:none}}
.toc-pill{max-width:min(78vw,320px)}
