/*
Theme Name: SKOT AI
Theme URI: https://sednoai.pl/
Description: Portal + blog o sztucznej inteligencji: newsy, poradniki z poziomami trudności, ścieżki nauki, słownik pojęć, katalog narzędzi i biblioteka promptów. Tryb jasny i ciemny. Klasyczny motyw PHP; typy treści dostarcza mu-plugin „SKOT AI Core”.
Version: 1.12.0
Author: SKOT
Requires PHP: 8.0
Text Domain: skot-ai
Tags: blog, news, education, dark-mode, responsive, custom-front-page
*/

/* =========================================================================
   ZMIENNE (jasny / ciemny)
   ========================================================================= */
:root{
  --bg:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7; --text:#0E1220; --text-2:#2A3042; --muted:#4F566A;
  --border:#DFE3EC; --accent:#2F4BFF; --accent-hover:#2238D6; --accent-soft:#E9EDFF; --on-accent:#FFFFFF;
  --code:#0E1220; --code-head:#1A2033; --code-text:#E6EAF5; --code-muted:#A6ADBE; --code-border:#3A4360;
  --l1-bg:#DCF2E6; --l1-fg:#0E5535; --l2-bg:#FCE9C4; --l2-fg:#704300; --l3-bg:#EBE2FF; --l3-fg:#47279A;
  --radius:16px; --wrap:1240px;
  --f-body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-display:"Inter Tight",Inter,system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0B0E17; --surface:#121725; --surface-2:#1A2033; --text:#EEF1F8; --text-2:#D4D9E6; --muted:#A6ADBE;
    --border:#272E44; --accent:#8EA0FF; --accent-hover:#B0BDFF; --accent-soft:#161D33; --on-accent:#0B0E17;
    --code:#05070D; --code-head:#141A2B;
    --l1-bg:#123526; --l1-fg:#8FE0B5; --l2-bg:#3A2A0C; --l2-fg:#F5C46B; --l3-bg:#2A1F4A; --l3-fg:#C9B6FF;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0B0E17; --surface:#121725; --surface-2:#1A2033; --text:#EEF1F8; --text-2:#D4D9E6; --muted:#A6ADBE;
  --border:#272E44; --accent:#8EA0FF; --accent-hover:#B0BDFF; --accent-soft:#161D33; --on-accent:#0B0E17;
  --code:#05070D; --code-head:#141A2B;
  --l1-bg:#123526; --l1-fg:#8FE0B5; --l2-bg:#3A2A0C; --l2-fg:#F5C46B; --l3-bg:#2A1F4A; --l3-fg:#C9B6FF;
  color-scheme:dark;
}

/* =========================================================================
   BAZA
   ========================================================================= */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.6 var(--f-body);-webkit-font-smoothing:antialiased}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover);text-decoration:underline}
h1,h2,h3,h4{font-family:var(--f-display);font-weight:700;line-height:1.15;letter-spacing:-.015em;margin:0}
p{margin:0}
button{font:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:100;background:var(--surface);color:var(--text);padding:10px 16px;border-radius:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.muted{color:var(--muted)}
.mono{font-family:var(--f-mono)}

/* =========================================================================
   NAGŁÓWEK
   ========================================================================= */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:relative;z-index:20}
.site-header__row{min-height:72px;display:flex;align-items:center;gap:16px 32px}
.brand{display:flex;align-items:center;gap:10px;font:700 20px/1 var(--f-display);color:var(--text);letter-spacing:-.01em;white-space:nowrap}
.brand:hover{text-decoration:none;color:var(--text)}
.brand__mark{display:inline-flex;width:32px;height:32px;border-radius:8px;background:var(--accent);color:var(--on-accent);align-items:center;justify-content:center;font-size:15px}
.brand__sub{color:var(--muted);font-weight:600}
.brand img{max-height:40px;width:auto}
.main-nav{flex:1}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.main-nav a{color:var(--text);font-weight:500;font-size:15px;padding:6px 0;display:inline-block}
.main-nav a:hover{color:var(--accent);text-decoration:none}
.main-nav .current-menu-item>a,.main-nav .current-menu-ancestor>a,.main-nav .current_page_item>a,.main-nav a[aria-current]{color:var(--accent)}
.header-tools{display:flex;gap:8px;margin-left:auto}
.icon-btn{height:44px;min-width:44px;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-size:14px;font-weight:500}
.icon-btn:hover{border-color:var(--accent);color:var(--accent)}
.theme-toggle .when-dark{display:none}
:root[data-theme="dark"] .theme-toggle .when-dark{display:inline-flex}
:root[data-theme="dark"] .theme-toggle .when-light{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .theme-toggle .when-dark{display:inline-flex}
  :root:not([data-theme="light"]) .theme-toggle .when-light{display:none}
}
.theme-toggle span{display:inline-flex;align-items:center;gap:8px}
.menu-toggle{display:none}
.search-panel{border-top:1px solid var(--border);background:var(--surface);padding:16px 0}
.search-panel[hidden]{display:none}
.search-form{display:flex;gap:8px;max-width:640px}
.search-form input[type=search]{flex:1;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);padding:0 14px;font-size:16px}
.btn{min-height:44px;padding:0 18px;border-radius:10px;border:0;background:var(--accent);color:var(--on-accent);font-weight:600;font-size:15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn:hover{background:var(--accent-hover);color:var(--on-accent);text-decoration:none}

@media (max-width:900px){
  .site-header__row{flex-wrap:wrap}
  .menu-toggle{display:inline-flex}
  .main-nav{order:5;flex-basis:100%;display:none;padding-bottom:12px}
  .main-nav.is-open{display:block}
  .main-nav ul{flex-direction:column;gap:0}
  .main-nav a{display:block;padding:12px 0;border-top:1px solid var(--border)}
  .theme-toggle .theme-toggle__label{display:none}
}
@media (max-width:600px){
  .wrap{padding:0 16px}
  .site-header__row{column-gap:10px}
  .brand{font-size:17px;gap:8px}
  .header-tools{gap:6px}
  .section{margin-top:56px}
  .section-head h2,.path h2{font-size:26px}
}

/* =========================================================================
   ELEMENTY WSPÓLNE
   ========================================================================= */
.site-main{padding:40px 0 0}
.section{margin-top:72px}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.section-head h2{font-size:32px}
.section-head p{margin-top:4px;color:var(--muted)}
.more{font-size:14px;font-weight:600}
.pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.5;background:var(--surface-2);color:var(--text)}
.pill--accent{background:var(--accent);color:var(--on-accent)}
.pill:hover{text-decoration:none}
.lvl-podstawy{background:var(--l1-bg);color:var(--l1-fg)}
.lvl-srednio{background:var(--l2-bg);color:var(--l2-fg)}
.lvl-zaawansowane{background:var(--l3-bg);color:var(--l3-fg)}
.meta{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;font-size:13px;color:var(--muted)}
.placeholder{background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--muted);font:500 13px var(--f-mono)}
.thumb{aspect-ratio:16/9;width:100%;object-fit:cover;background:var(--surface-2)}
.box{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:24px}
.box__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.box__head h2{font-size:22px}
.editor-hint{border:1px dashed var(--border);border-radius:12px;padding:16px;color:var(--muted);font-size:14px;margin-top:12px}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filter{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:600;font-size:14px;cursor:pointer;display:inline-flex;align-items:center}
.filter:hover{border-color:var(--text);text-decoration:none;color:var(--text)}
.filter[aria-pressed="true"],.filter.is-active{background:var(--text);color:var(--bg);border-color:var(--text)}

/* =========================================================================
   STRONA GŁÓWNA
   ========================================================================= */
.hero{display:flex;flex-wrap:wrap;gap:32px}
.hero__main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:18px}
.hero__main .thumb,.hero__main .placeholder{border-radius:var(--radius);border:1px solid var(--border);aspect-ratio:16/9}
.hero__title{font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.02em}
.hero__title a{color:var(--text)}
.hero__lead{font-size:18px;color:var(--muted);max-width:62ch}
.latest{flex:1 1 340px;min-width:0;display:flex;flex-direction:column}
.latest__head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:12px;border-bottom:2px solid var(--text)}
.latest__head h2{font-size:20px}
.latest__item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--border);color:var(--text)}
.latest__item:hover{text-decoration:none}
.latest__item:hover .latest__title{color:var(--accent)}
.latest__time{flex:0 0 56px;font:500 13px var(--f-mono);color:var(--muted);padding-top:3px}
.latest__cat{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.latest__title{display:block;font-weight:600;font-size:16px;line-height:1.35}

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.card{display:flex;flex-direction:column;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);overflow:hidden;color:var(--text)}
.card:hover{text-decoration:none;border-color:var(--accent)}
.card[hidden]{display:none}
.card .thumb,.card .placeholder{aspect-ratio:16/9;border-radius:0}
.card__body{padding:20px;display:flex;flex-direction:column;gap:10px}
.card__title{font:700 21px/1.25 var(--f-display);letter-spacing:-.01em}
.card__desc{color:var(--muted);font-size:15px}

.path{padding:40px;border-radius:20px;background:var(--accent-soft)}
.path h2{font-size:32px}
.path__intro{margin:6px 0 28px;color:var(--muted);max-width:60ch}
.path__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.path__step{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:8px;color:var(--text);height:100%}
.path__step:hover{text-decoration:none;border-color:var(--accent)}
.path__num{font:500 13px var(--f-mono);color:var(--accent)}
.path__title{font-weight:700;font-size:17px;line-height:1.3}
@media (max-width:600px){.path{padding:24px}}

.trio{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
@media (max-width:380px){.trio{grid-template-columns:1fr}}
.gloss{margin:16px 0 0}
.gloss>div{padding:12px 0;border-top:1px solid var(--border)}
.gloss dt{font-weight:700}
.gloss dt a{color:var(--text)}
.gloss dd{margin:2px 0 0;font-size:14px;color:var(--muted)}
.tools{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.tool{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:var(--surface-2);color:var(--text)}
.tool:hover{text-decoration:none;outline:1px solid var(--accent)}
.tool__ini{flex:0 0 40px;height:40px;border-radius:10px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;overflow:hidden}
.tool__ini img{width:100%;height:100%;object-fit:cover}
.tool__txt{flex:1;display:flex;flex-direction:column;min-width:0}
.tool__name{font-weight:600}
.tool__use{font-size:13px;color:var(--muted)}
.tool__price{font-size:12px;font-weight:600;color:var(--muted);border:1px solid var(--border);border-radius:6px;padding:2px 8px;white-space:nowrap}

/* blok promptu / kodu */
.skot-code{margin:20px 0 0}
.skot-code__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;border-radius:12px 12px 0 0;background:var(--code-head);color:var(--code-muted);font:500 13px var(--f-mono)}
.skot-code__head a{color:var(--code-muted)}
.skot-code__copy{min-height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--code-border);background:transparent;color:var(--code-text);font:600 13px var(--f-body);cursor:pointer}
.skot-code__copy:hover{border-color:var(--code-text)}
.skot-code pre,.entry pre,.prompt-day pre{margin:0;padding:18px;border-radius:0 0 12px 12px;background:var(--code);color:var(--code-text);white-space:pre-wrap;word-break:break-word;font:400 14px/1.7 var(--f-mono)}
.prompt-day pre{border-radius:12px;flex:1}
.prompt-day{display:flex;flex-direction:column}
.prompt-day .btn{margin-top:14px}

/* =========================================================================
   WPIS / PORADNIK
   ========================================================================= */
.crumbs{font-size:14px;color:var(--muted)}
.post-head{margin-top:20px;max-width:820px}
.post-head h1{margin-top:14px;font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.02em}
.post-head .lead{margin-top:16px;font-size:19px;color:var(--muted)}
.post-cover{margin:28px 0 0;max-width:1000px}
.post-cover .thumb{border-radius:var(--radius)}
.img-credit{margin-top:8px;font-size:13px;color:var(--muted)}
.img-credit a{color:var(--muted);text-decoration:underline}
.yt-facade{margin:24px 0;padding:0}
.yt-facade__btn,.yt-facade__frame{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:14px}
.yt-facade__btn{position:relative;cursor:pointer;background:radial-gradient(circle at 30% 20%,#1d2540,#0B0E17 70%);color:#EEF1F8;text-align:left;font:inherit;overflow:hidden}
.yt-facade__btn:hover .yt-facade__play,.yt-facade__btn:focus-visible .yt-facade__play{transform:translate(-50%,-50%) scale(1.08);background:#FF0033}
.yt-facade__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:54px;border-radius:14px;background:#CC0029;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;transition:transform .15s,background .15s}
.yt-facade__txt{position:absolute;left:20px;right:20px;bottom:18px;display:flex;flex-direction:column;gap:4px}
.yt-facade__txt strong{font:700 18px/1.3 var(--f-display)}
.yt-facade__txt span{font-size:13px;color:#A6ADBE}
.yt-facade figcaption{font-size:13px;color:var(--muted);margin-top:8px}
@media (prefers-reduced-motion:reduce){.yt-facade__play{transition:none}}
.see-also{margin-top:32px;padding:20px;border-radius:14px;background:var(--accent-soft);display:flex;flex-direction:column;gap:10px}
.see-also h2{font-size:20px;margin:0}
.see-also__item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:10px;background:var(--surface);color:var(--text);text-decoration:none}
.see-also__item:hover{outline:1px solid var(--accent);text-decoration:none}
.source-box{margin-top:32px;padding:16px 18px;border-radius:12px;background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:6px;font-size:15px}
.post-layout{margin-top:40px;display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start}
.post-aside{flex:1 1 220px;max-width:260px;font-size:14px}
.post-aside__label{font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:12px;color:var(--muted)}
.toc{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.toc a{display:block;padding:8px 12px;border-radius:8px;color:var(--text)}
.toc a:hover,.toc a.is-active{background:var(--accent-soft);text-decoration:none;font-weight:600;color:var(--text)}
.progress{margin-top:24px;padding:16px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}
.progress__bar{margin-top:10px;height:8px;border-radius:4px;background:var(--surface-2)}
.progress__bar span{display:block;height:8px;border-radius:4px;background:var(--accent)}
.post-body{flex:999 1 560px;min-width:0;max-width:760px}
.post-body--wide{max-width:820px}
@media (max-width:860px){.post-aside{max-width:none;flex-basis:100%}}
.learn{padding:20px 24px;border-radius:14px;background:var(--surface);border:1px solid var(--border);margin-bottom:32px}
.learn ul{margin:8px 0 0;padding-left:20px;color:var(--text-2)}

.entry{font-size:17px;line-height:1.7;color:var(--text)}
.entry>*+*{margin-top:1.1em}
.entry h2{font-size:28px;margin-top:1.8em;scroll-margin-top:24px}
.entry h3{font-size:22px;margin-top:1.6em}
.entry ul,.entry ol{padding-left:1.4em}
.entry li+li{margin-top:.3em}
.entry blockquote{margin-left:0;padding:16px 20px;border-radius:12px;background:var(--surface-2);font-size:18px}
.entry code{font-family:var(--f-mono);font-size:.9em;background:var(--surface-2);padding:2px 6px;border-radius:6px}
.entry pre code{background:none;padding:0;font-size:inherit}
.entry pre{border-radius:12px;position:relative}
.entry .pre-wrap{position:relative}
.entry .pre-wrap .skot-code__copy{position:absolute;top:10px;right:10px;background:var(--code-head)}
.entry img,.entry figure{border-radius:12px}
.entry figure{margin-left:0;margin-right:0}
.entry figcaption{font-size:14px;color:var(--muted);margin-top:8px}
.entry table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.entry th,.entry td{border:1px solid var(--border);padding:8px 12px;text-align:left}
.entry a{text-decoration:underline;text-underline-offset:2px}
.entry a.gloss-link{text-decoration:underline dotted;text-decoration-thickness:1px;color:inherit}
.entry a.gloss-link:hover{color:var(--accent)}
.entry .skot-code figcaption{margin:0}
.entry .skot-code__head a{text-decoration:none}
.skot-note{margin-top:20px;padding:16px 18px;border-radius:12px;background:var(--accent-soft);display:flex;gap:12px}
.skot-note__icon{flex:0 0 20px;margin-top:3px;color:var(--accent)}

.lesson-nav{margin-top:48px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.lesson-nav a{display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.lesson-nav a:hover{text-decoration:none;border-color:var(--accent)}
.lesson-nav .next{background:var(--accent);border-color:var(--accent);color:var(--on-accent);text-align:right}
.lesson-nav .next:hover{background:var(--accent-hover)}
.lesson-nav small{font-size:13px;opacity:.85}
.post-tags{margin-top:40px;padding-top:24px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* =========================================================================
   ARCHIWA / SŁOWNIK / NARZĘDZIA / PROMPTY
   ========================================================================= */
.archive-head{max-width:820px}
.archive-head h1{font-size:clamp(32px,4vw,44px);letter-spacing:-.02em}
.archive-head .lead{margin-top:10px;font-size:18px;color:var(--muted)}
.archive-bar{margin:28px 0 24px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.news-list{display:flex;flex-direction:column}
.news-row{display:flex;gap:24px;padding:24px 0;border-bottom:1px solid var(--border);color:var(--text)}
.news-row:hover{text-decoration:none}
.news-row:hover h2{color:var(--accent)}
.news-row .thumb,.news-row .placeholder{flex:0 0 240px;border-radius:12px;aspect-ratio:16/9}
.news-row h2{font-size:22px;margin:6px 0}
@media (max-width:640px){.news-row{flex-direction:column}.news-row .thumb,.news-row .placeholder{flex-basis:auto}}
.az{display:flex;flex-wrap:wrap;gap:6px;margin:24px 0}
.az a,.az span{min-width:40px;height:40px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.az span{opacity:.4}
.az a:hover{border-color:var(--accent);text-decoration:none}
.az-group{margin-top:32px}
.az-group h2{font-size:28px;color:var(--accent);padding-bottom:8px;border-bottom:2px solid var(--border)}
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.tool-card{display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text)}
.tool-card:hover{text-decoration:none;border-color:var(--accent)}
.tool-card__top{display:flex;gap:14px;align-items:center}
.tool-card .tool__ini{flex-basis:48px;height:48px}
.tool-facts{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:20px 0;padding:20px;border-radius:14px;background:var(--surface);border:1px solid var(--border)}
.tool-facts dt{color:var(--muted)}
.tool-facts dd{margin:0;font-weight:600}
.prompt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px}
@media (max-width:400px){.prompt-list{grid-template-columns:1fr}}
.prompt-card{display:flex;flex-direction:column;gap:10px}
.prompt-card h2{font-size:20px}
.prompt-card h2 a{color:var(--text)}
.prompt-card .skot-code{margin-top:4px}
.prompt-card pre{max-height:220px;overflow:auto}

.pagination{margin-top:40px;display:flex;flex-wrap:wrap;gap:8px}
.pagination .page-numbers{min-width:44px;height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;color:var(--text);background:var(--surface)}
.pagination .current{background:var(--text);color:var(--bg);border-color:var(--text)}
.empty{padding:40px;border-radius:var(--radius);border:1px dashed var(--border);color:var(--muted);text-align:center}

/* =========================================================================
   HISTORIA AI — oś czasu
   ========================================================================= */
.series-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 24px}
.decades{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 8px;position:sticky;top:0;z-index:5;background:var(--bg);padding:10px 0}
.timeline{list-style:none;margin:24px 0 0;padding:0;position:relative}
.timeline::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:var(--border)}
.timeline__item{position:relative;width:50%;padding:0 40px 40px 0;scroll-margin-top:72px}
.timeline__item.is-right{margin-left:50%;padding:0 0 40px 40px}
.timeline__dot{position:absolute;top:22px;right:-8px;width:16px;height:16px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--bg)}
.timeline__item.is-right .timeline__dot{right:auto;left:-8px}
.timeline__card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:10px}
.timeline__card .thumb{border-radius:10px;aspect-ratio:16/9;object-fit:cover}
.timeline__card h2{font-size:21px;line-height:1.25}
.timeline__card h2 a{color:var(--text)}
.timeline__card .muted{font-size:15px}
.timeline__year{font-size:15px;font-weight:500;color:var(--accent)}
.timeline__epoch{position:relative;text-align:center;margin:8px 0 40px;z-index:1}
.timeline__epoch span{display:inline-block;padding:8px 18px;border-radius:999px;background:var(--text);color:var(--bg);font:700 15px var(--f-display);letter-spacing:.01em}
.timeline__epoch--now span{background:var(--accent);color:var(--on-accent)}
.timeline__epoch--now a{color:inherit;text-decoration:underline}
@media (max-width:760px){
  .timeline::before{left:8px}
  .timeline__item,.timeline__item.is-right{width:auto;margin-left:0;padding:0 0 28px 32px}
  .timeline__dot,.timeline__item.is-right .timeline__dot{left:0;right:auto}
  .timeline__epoch{text-align:left}
  .decades{flex-wrap:nowrap;overflow-x:auto;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;scrollbar-width:none}
  .decades .filter{flex:0 0 auto;min-height:38px}
}

/* =========================================================================
   STOPKA
   ========================================================================= */
.site-footer{margin-top:96px;border-top:1px solid var(--border);background:var(--surface)}
.site-footer__row{padding-top:40px;padding-bottom:40px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;font-size:14px;color:var(--muted)}
.site-footer__brand{font:700 18px var(--f-display);color:var(--text)}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--accent)}

/* WordPress */
.alignwide{max-width:1000px}
.alignfull{max-width:none}
.wp-block-image figcaption,.wp-caption-text{font-size:14px;color:var(--muted)}
.sticky,.bypostauthor,.gallery-caption{}

/* ---- Reklamy (Ustawienia → SKOT AI — reklamy). Rezerwacja miejsca ogranicza „skakanie” układu (CLS). */
.skot-ad{display:block;margin:32px 0;text-align:center;min-height:120px;overflow:hidden}
.skot-ad__label{display:block;margin-bottom:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.skot-ad--post_in_1,.skot-ad--post_in_2{min-height:280px}
.skot-ad--post_sidebar{margin:24px 0 0;min-height:250px;position:sticky;top:96px}
.cards>.skot-ad,.news-list>.skot-ad{grid-column:1/-1;margin:8px 0}
.skot-ad--home_mid{max-width:var(--wrap,1200px);margin:40px auto;padding:0 16px}
.skot-ad--preview{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:16px;border:2px dashed var(--accent);border-radius:14px;background:var(--accent-soft,rgba(47,75,255,.06));color:var(--text);font-size:14px}
.skot-ad--preview code{font-size:12px;color:var(--muted)}
@media (max-width:900px){.skot-ad--post_sidebar{display:none}}

/* Serie i cykle: nadtytuł, spis pod tekstem, strona serii */
.series-kicker{display:inline-block;margin-bottom:10px;font:600 13px/1.3 var(--f-mono);letter-spacing:.02em;color:var(--accent)}
a.series-kicker:hover{text-decoration:underline}
.series-box{margin-top:48px;padding:24px;border-radius:16px;background:var(--accent-soft);border:1px solid var(--border)}
.series-box__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:14px}
.series-box__head h2{margin:0;font-size:20px}
.series-box__head h2 a{color:var(--text)}
.series-list{margin:0;padding-left:28px;display:grid;gap:8px}
.series-list li{padding-left:4px;line-height:1.4}
.series-list li::marker{font:500 13px var(--f-mono);color:var(--muted)}
.series-list .is-current{font-weight:700}
.series-list .is-current::marker{color:var(--accent)}
.series-list .is-soon{color:var(--muted)}
.series-list__tag{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:12px;font-weight:600;color:var(--muted);vertical-align:1px}
.series-box__all{display:inline-block;margin-top:16px;font-weight:600}
.series-page{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:12px;max-width:860px}
.series-page__link{display:grid;grid-template-columns:110px 1fr auto;gap:16px;align-items:baseline;padding:18px 20px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
a.series-page__link:hover{text-decoration:none;border-color:var(--accent)}
.series-page__num{font:500 13px var(--f-mono);color:var(--accent)}
.series-page__body{display:flex;flex-direction:column;gap:6px;min-width:0}
.series-page__title{font-weight:700;font-size:18px;line-height:1.3}
.series-page__desc{color:var(--muted);font-size:15px}
.series-page__meta{color:var(--muted);font-size:14px;white-space:nowrap}
.series-page .is-soon .series-page__link{background:transparent;border-style:dashed}
.series-page .is-soon .series-page__title,.series-page .is-soon .series-page__num{color:var(--muted)}
@media (max-width:600px){.series-page__link{grid-template-columns:1fr;gap:6px}.series-box{padding:18px}}

/* Dział Nauka: katalog serii i felietonów */
.nauka-block{margin-top:8px;margin-bottom:48px}
.nauka-block h2,.nauka-latest{font-size:24px;margin:0 0 18px}
.nauka-series{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.nauka-card{display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface)}
.nauka-card .series-kicker{margin:0}
.nauka-card h3{margin:0;font-size:20px;line-height:1.25}
.nauka-card h3 a{color:var(--text)}
.nauka-card__desc{margin:0;color:var(--muted);font-size:15px}
.nauka-card__meta,.nauka-card__next{margin:0;color:var(--muted);font-size:14px}
.nauka-card__next b{color:var(--text)}
.nauka-card__go{margin-top:auto;padding-top:6px;font-weight:600}
.nauka-soon{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-width:860px}
.nauka-soon li{display:grid;grid-template-columns:64px 1fr;gap:4px 16px;align-items:baseline;padding:14px 18px;border-radius:12px;border:1px dashed var(--border);background:var(--surface)}
.nauka-soon time{font:500 14px var(--f-mono);color:var(--accent)}
.nauka-soon__title{font-weight:600}
.nauka-soon__from{grid-column:2;color:var(--muted);font-size:14px}

/* Katalog narzędzi: okładka 16:9 u góry karty, w małych ikonach przybliżony kafelek ze środka okładki */
.tool-card.has-cover{padding:0;overflow:hidden;gap:0}
.tool-card__cover{display:block;aspect-ratio:16/9;background:var(--surface-2)}
.tool-card__cover img{width:100%;height:100%;object-fit:cover;display:block}
.tool-card__body{display:flex;flex-direction:column;gap:10px;flex:1}
.tool-card.has-cover .tool-card__body{padding:18px 20px 20px}
.tool-card__price{align-self:flex-start;margin-top:auto}
.tool__ini img{transform:scale(1.9)}

/* Katalog narzędzi: kategorie, wyszukiwarka, kategorie na karcie */
.tool-filter{display:flex;flex-direction:column;gap:14px;margin:28px 0 24px}
.tool-filter .filter{min-height:38px;padding:0 14px}
.filter__n{margin-left:6px;font:500 12px var(--f-mono);opacity:.65}
.tool-search{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tool-search input{flex:1 1 280px;max-width:520px;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);padding:0 14px;font-size:16px}
.tool-card__kats{font:500 12px var(--f-mono);color:var(--accent)}
.tool-card[hidden]{display:none}

/* Strona narzędzia: zrzuty ekranu, tabela planów */
.entry .tool-shot{margin:28px 0}
.entry .tool-shot img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--border);box-shadow:0 8px 28px rgba(14,18,32,.10)}
.entry .tool-shot figcaption{font-size:14px;color:var(--muted);margin-top:10px}
.entry .table-wrap{overflow-x:auto;margin:16px 0}
.entry .tool-plans{display:table;min-width:640px;font-size:15px}
.entry .tool-plans th[scope=row]{white-space:nowrap}
.entry .tool-plans thead th{background:var(--surface-2)}
.entry .tool-plans td,.entry .tool-plans th{vertical-align:top}
.entry .tool-plans__note{font-size:14px;color:var(--muted)}
.entry .tool-disclaimer{margin-top:40px;font-size:13px;color:var(--muted)}
