/* TLSafe, dział Wiedza. Style menu, stopki i kolorów pochodzą ze strony głównej (wstawiane przez index.php). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.nav { view-transition-name: edu-nav; }
.pills { view-transition-name: edu-pills; }

body.edu { background: var(--bg-warm); }
.edu-main { max-width: var(--maxw); margin: 0 auto; padding: 132px 24px 80px; box-sizing: border-box; }
.nav-links a.is-active { color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); padding-bottom: 2px; }
.lang-menu.lang-few { min-width: 200px; grid-template-columns: 1fr; }

.edu-head { margin-bottom: 40px; }
.edu-head .eyebrow { display: block; margin-bottom: 20px; }
.edu-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 24ch; margin-bottom: 20px; }
.edu-head .lead { max-width: 62ch; font-size: 1.12rem; color: var(--muted); margin-bottom: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pills a { font-size: .94rem; font-weight: 500; color: var(--txt); background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 9px 20px; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.pills a:hover { border-color: var(--brand); color: var(--brand); }
.pills a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.sec { margin-bottom: 52px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-label { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sec-head .more { font-family: var(--f-display); font-weight: 700; font-size: .95rem; color: var(--brand); }
.sec-head .more:hover { color: var(--brand-d); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } .edu-main { padding-top: 112px; } }

.tile { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: var(--txt); transition: transform .22s ease, box-shadow .22s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(11,18,32,.10); color: var(--txt); }
/* grafika z artykułu pokazywana w całości, bez przycinania (1:1 jak u wydawcy) */
.tile-img { position: relative; display: block; aspect-ratio: 1.91 / 1; background: var(--panel); overflow: hidden; }
.tile-media .tile-img { background: #0B1220; }
.tile-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: #fff; }
.tile-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.eyebrow-s { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 10px; }
.tile-title { font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; line-height: 1.24; letter-spacing: -.01em; color: var(--ink); }
.tile-desc { font-size: .97rem; line-height: 1.55; color: var(--muted); }
.tile-meta, .tile-src { display: flex; align-items: center; margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

.tile-media { background: var(--bg-deep); }
.tile-media .tile-title { color: #fff; }
.tile-media .tile-desc, .tile-media .tile-src { color: #C9CED4; }
.tile-media .eyebrow-s { color: #8ED6DA; }
.tile-media:hover { color: #fff; }

.tile-art { background: #fff; border: 1px solid var(--line); }

.badge { position: absolute; top: 14px; right: 14px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; font-weight: 500; color: var(--ink); background: #fff; border-radius: 999px; padding: 4px 10px; box-shadow: 0 2px 10px rgba(11,18,32,.18); }
.tile-meta .badge { position: static; display: inline-block; margin-left: 10px; box-shadow: none; border: 1px solid var(--line2); padding: 2px 8px; }

.empty { font-size: 1.05rem; color: var(--muted); background: #fff; border: 1px dashed var(--line2); border-radius: 24px; padding: 34px; margin-bottom: 52px; }

.cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px 38px; }
.cta-box > div { flex: 1 1 420px; }
.cta-t { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin-bottom: 4px; }
.cta-d { color: var(--muted); }

/* artykuł */
.art { max-width: 760px; margin: 0 auto 56px; }
.crumbs { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--brand); }
.art h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.art-meta { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); margin-bottom: 32px; }
.art-hero { margin: 0 0 36px; border-radius: 20px; overflow: hidden; }
.art-hero img { display: block; width: 100%; }
.art-body { font-size: 1.08rem; line-height: 1.75; color: var(--txt); }
.art-body p, .art-body ul, .art-body ol, .art-body blockquote { margin: 0 0 1.2em; }
.art-body h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.art-body h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.art-body ul, .art-body ol { padding-left: 1.4em; }
.art-body li { margin-bottom: .4em; }
.art-body blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--ink); font-weight: 500; }
.art-body figure { margin: 2em 0; }
.art-body figure img { display: block; width: 100%; border-radius: 16px; }
.art-body figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-top: 10px; }
.art-body a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* === projekt 14.11.2026: wygląd artykułu === */
/* A1 lead */
.art-body > p:first-child { font-size: 1.25rem; line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 1.4em; }
/* A3 punktory */
.art-body ul { list-style: none; padding-left: 0; }
.art-body ul li { position: relative; padding-left: 30px; }
.art-body ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.art-body li strong { color: var(--ink); }
/* A2 lista numerowana jako karty */
.art-body ol { list-style: none; padding-left: 0; counter-reset: q; display: grid; gap: 12px; margin: 1.4em 0 1.8em; }
.art-body ol li { counter-increment: q; position: relative; margin: 0; padding: 16px 20px 16px 66px; background: var(--bg-white); border: 1px solid var(--line); border-radius: 16px; line-height: 1.55; }
.art-body ol li::before { content: counter(q); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .95rem; display: grid; place-items: center; }
/* A4 cytat jako ramka */
.art-body blockquote { margin: 1.8em 0; padding: 22px 26px; background: var(--bg-white); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0 16px 16px 0; font-weight: 400; }
.art-body blockquote p { margin: 0; font-family: var(--f-display); font-size: 1.22rem; line-height: 1.45; font-weight: 600; color: var(--ink); }
.art-body blockquote p + p { margin-top: .6em; }
/* grafika: zrzut w ramce */
.art-body figure img { border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
/* D spis treści */
.toc { margin: 0 0 36px; padding: 20px 24px; background: var(--bg-white); border: 1px solid var(--line); border-radius: 16px; }
.toc-t { display: block; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: .95rem; line-height: 1.4; }
.toc li::marker { color: var(--muted2); font-family: var(--f-mono); font-size: .85em; }
.toc a { color: var(--brand); }
.art-body h2 { scroll-margin-top: 96px; }
@media (max-width: 680px) { .toc ol { columns: 1; } .art-body ol li { padding-left: 58px; } .art-body ol li::before { left: 14px; } }

/* stopka artykułu: powrót do sekcji i na górę */
html { scroll-behavior: smooth; }
.art { scroll-margin-top: 100px; }
.art-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.art-foot a { display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.2em; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg-white); color: var(--brand); font-family: var(--f-display); font-weight: 600; font-size: .95rem; text-decoration: none; transition: border-color .2s, transform .22s; }
.art-foot a:hover { border-color: var(--brand); transform: translateY(-2px); }
@media (max-width: 560px) { .art-foot a { flex: 1 1 100%; justify-content: center; } }

/* mały przycisk „Wróć” przy okruszkach */
.art-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.art-head .crumbs { margin-bottom: 0; }
.art-back-sm { display: inline-flex; align-items: center; gap: .35em; padding: .35em .8em; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg-white); color: var(--brand); font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; text-decoration: none; transition: border-color .2s, transform .22s; }
.art-back-sm:hover { border-color: var(--brand); transform: translateX(-2px); }
