@charset "UTF-8";
/*! MKM Labs frontend 2026-10-04 - blog post template (port of design/Blog wpis.dc.html).
 * Layer on top of /css/fe/mkm-fe.20261004.css. Applied by scripts/html-fixes/40-fe-blog-post.py
 * to every blog/<slug>/index.html (body.fe-post).
 * The article markup (hooks .article-meta, .article-byline, .article-updated, .author-box,
 * .article-body, .article-tags, .article-source-line ...) is kept byte-for-byte for the
 * content-refresh / author-profile scripts; this file only restyles it. Old site.<hash>.css
 * may still be linked, so rules are scoped under body.fe-post and beat its !important colours.
 */

/* ---------- Page ---------- */
body.fe-post{background:#0a0c10!important;color:#fff;font-family:'DM Sans',sans-serif;background-image:none!important}
body.fe-post main{display:block;position:relative;background:#0a0c10;color:#fff}

/* Reading progress (3px, gradient, scaleX) */
.post-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:120;pointer-events:none}
.post-progress__bar{height:100%;background:linear-gradient(90deg,#0057FF,#99baff);transform:scaleX(0);transform-origin:left;will-change:transform}

/* ---------- Header ---------- */
.post-hero{position:relative;overflow:hidden;padding:clamp(140px,16vw,200px) clamp(18px,4vw,56px) clamp(40px,5vw,64px)}
.post-hero__glow{position:absolute;inset:0;background:radial-gradient(ellipse 55% 60% at 50% 0%,rgba(0,87,255,.28),transparent 70%);pointer-events:none}
.post-hero__inner{position:relative;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:26px}
body.fe-post .post-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;line-height:1.5;color:#8a92a3;margin:0;padding:0}
body.fe-post .post-crumbs a{color:#aeb4c2!important;text-decoration:none}
body.fe-post .post-crumbs a:hover{color:#fff!important}
body.fe-post .post-crumbs>span{color:#8a92a3}
body.fe-post .post-crumbs>span:last-child{color:#fff}
body.fe-post .post-hero h1{margin:0;color:#fff;font-size:clamp(40px,6vw,88px);font-weight:600;line-height:.95;letter-spacing:-0.05em;text-wrap:balance;overflow-wrap:break-word}
body.fe-post .post-lede{margin:0;color:#c3c8d3!important;font-size:clamp(18px,1.6vw,22px);line-height:1.55;text-align:left!important;text-wrap:pretty}
body.fe-post .post-lede a{color:#99baff!important;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body.fe-post .post-lede a:hover{color:#fff!important}

/* Meta row: byline (avatar + name), then date / updated / read time / category as quiet text */
body.fe-post .post-hero .article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;color:#8a92a3;font-size:13px;line-height:1.4}
body.fe-post .post-hero .article-meta>*{display:inline-flex;align-items:center;gap:6px;min-height:0;padding:0;border:0;background:none;font-size:13px;line-height:1.4;color:#8a92a3!important;text-transform:none;letter-spacing:0;text-decoration:none}
body.fe-post .post-hero .article-meta time{color:#8a92a3!important}
body.fe-post .post-hero .article-meta>*+*:before{content:"";width:3px;height:3px;border-radius:50%;background:#33363d;margin-right:8px}
body.fe-post .post-hero .article-meta .article-byline{gap:14px;margin-right:6px;color:#fff!important;font-size:15px;font-weight:600}
body.fe-post .post-hero .article-meta .article-byline img{width:44px!important;height:44px!important;border-radius:50%;object-fit:cover;flex:none}
body.fe-post .post-hero .article-meta .article-byline:hover{color:#99baff!important}
body.fe-post .post-hero .article-meta .article-byline+*:before{display:none}
body.fe-post .post-hero .article-meta a[href^="/blog/#"]{color:#6699ff!important;font-weight:700}
body.fe-post .post-hero .article-meta a[href^="/blog/#"]:hover{color:#fff!important}
body.fe-post .post-hero .article-meta svg{width:14px;height:14px;flex:none;opacity:.8}

/* ---------- Audio player ---------- */
.post-audio{display:flex;align-items:center;gap:16px;padding:14px 18px 14px 14px;border-radius:999px;background:#12161f;border:1px solid rgba(255,255,255,.08)}
.post-audio__btn{flex:none;width:48px;height:48px;border-radius:50%;border:0;padding:0;background:#0057FF;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform 140ms cubic-bezier(0.23,1,0.32,1),background-color 150ms ease}
.post-audio__btn:hover{background:#3378ff}
.post-audio__btn:active{transform:scale(0.92)}
.post-audio__btn svg{width:16px;height:16px;fill:#fff;display:block}
.post-audio__btn .post-audio__pause{display:none}
.post-audio.is-playing .post-audio__btn .post-audio__play{display:none}
.post-audio.is-playing .post-audio__btn .post-audio__pause{display:block}
.post-audio__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.post-audio__top{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:1.3}
.post-audio__label{font-weight:600;color:#fff}
.post-audio__time{color:#8a92a3;font-variant-numeric:tabular-nums;white-space:nowrap}
.post-audio__bar{position:relative;height:6px;border-radius:3px;background:rgba(255,255,255,.1);cursor:pointer;overflow:hidden;touch-action:none}
.post-audio__bar:before{content:"";position:absolute;left:0;right:0;top:-10px;bottom:-10px}
.post-audio__fill{height:100%;width:0;background:#99baff;border-radius:3px}
.post-audio :focus-visible{outline:2px solid #99baff;outline-offset:3px}
html:not(.fe-js) .post-audio{display:none}

/* ---------- Article column ---------- */
body.fe-post .post-article{display:block;position:relative;padding:0 clamp(18px,4vw,56px);margin:0;background:none;border:0}
.post-col{max-width:760px;margin:0 auto}

/* Table of contents (kept from the old sidebar, shown as a quiet card) */
body.fe-post .post-col>.article-toc{position:static;display:flex;flex-direction:column;gap:2px;margin:0 0 40px;padding:20px 22px;border-radius:22px;background:#12161f;border:1px solid rgba(255,255,255,.07);max-height:none;overflow:visible;top:auto;width:auto}
body.fe-post .post-col>.article-toc>span{margin:0 0 8px;color:#6699ff;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
body.fe-post .post-col>.article-toc a{display:flex;gap:12px;align-items:baseline;padding:6px 0;border:0;color:#c3c8d3!important;font-size:15px;line-height:1.45;text-decoration:none;background:none}
body.fe-post .post-col>.article-toc a:hover{color:#fff!important}
body.fe-post .post-col>.article-toc small{flex:none;min-width:22px;color:#8a92a3!important;font-size:12px;font-variant-numeric:tabular-nums}

/* Body typography */
body.fe-post .post-col>.article-body{max-width:none;margin:0;padding:0;width:auto;color:#d7dbe4}
body.fe-post .article-body p,
body.fe-post .article-body li{color:#d7dbe4!important;font-size:clamp(17px,1.25vw,19px);line-height:1.75;text-align:left!important;text-wrap:pretty}
body.fe-post .article-body p{margin:0 0 26px}
body.fe-post .article-body ul,
body.fe-post .article-body ol{margin:0 0 26px;padding-left:1.3em}
body.fe-post .article-body li{margin:0 0 10px}
body.fe-post .article-body li::marker{color:#6699ff}
body.fe-post .article-body strong{color:#fff;font-weight:600}
body.fe-post .article-body a{color:#99baff!important;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body.fe-post .article-body a:hover{color:#fff!important}
body.fe-post .article-body h2{margin:50px 0 26px;padding:0;border:0;color:#fff;font-size:clamp(28px,2.8vw,42px);font-weight:600;line-height:1.05;letter-spacing:-0.04em;text-wrap:balance;scroll-margin-top:110px}
body.fe-post .article-body h3{margin:40px 0 18px;color:#fff;font-size:clamp(22px,1.9vw,28px);font-weight:600;line-height:1.2;letter-spacing:-0.02em;scroll-margin-top:110px}
body.fe-post .article-body h4{margin:32px 0 14px;color:#fff;font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-0.01em}
body.fe-post .article-body hr{margin:48px 0;border:0;border-top:1px solid rgba(255,255,255,.08)}
/* Justowanie (owner 2026-08-23, port of /css/justowanie.css for the article only): same scope
   (.article-body > p / > ul > li / > ol > li) and same 768px threshold - below it Polish long
   words make visible rivers. No hyphens:auto, as in the original (no dashes at line ends). */
@media (min-width:768px){
  body.fe-post .article-body>p,
  body.fe-post .article-body>ul>li,
  body.fe-post .article-body>ol>li{text-align:justify!important;text-justify:inter-word}
}

/* Cover */
body.fe-post .article-body .article-cover{aspect-ratio:16/9;margin:0 0 40px;border:1px solid rgba(255,255,255,.07);border-radius:26px;overflow:hidden;background:#07101d}
body.fe-post .article-body .article-cover img{display:block;width:100%;height:100%;object-fit:cover}
body.fe-post .article-body figure:not(.article-cover){margin:36px 0}
body.fe-post .article-body figure:not(.article-cover) img,
body.fe-post .article-body p img{display:block;max-width:100%;height:auto;border-radius:22px}
body.fe-post .article-body figcaption{margin-top:12px;color:#8a92a3!important;font-size:14px;line-height:1.5}

/* Numbered lines -> case cards (n + text) */
body.fe-post .article-body .article-numbered-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin:0 0 12px;padding:22px 24px;border-radius:22px;background:#12161f;border:1px solid rgba(255,255,255,.07);font-size:16px;line-height:1.6}
body.fe-post .article-body .article-numbered-line+:not(.article-numbered-line){margin-top:38px}
body.fe-post .article-body .article-numbered-line>span:first-child{display:block;min-width:24px;padding:2px 0 0;border:0;color:#6699ff;font-size:13px;font-weight:700;line-height:1.6;font-variant-numeric:tabular-nums}
body.fe-post .article-body .article-numbered-line>span:last-child{color:#d7dbe4;font-size:16px;line-height:1.65}

/* Tables -> cost table (rows alternate #12161f / #0f131b) */
body.fe-post .post-table{margin:36px 0;border-radius:22px;border:1px solid rgba(255,255,255,.08);overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
body.fe-post .post-table table,
body.fe-post .article-body table{width:100%;margin:0;border-collapse:collapse;border:0;font-size:16px;line-height:1.5}
body.fe-post .article-body table th,
body.fe-post .article-body table td{padding:16px 22px;border:0;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top;background:#12161f;color:#c3c8d3!important;font-size:16px}
body.fe-post .article-body table tr:nth-child(even) td{background:#0f131b}
body.fe-post .article-body table tr:last-child td{border-bottom:0}
body.fe-post .article-body table th{background:#161b26;color:#6699ff!important;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
body.fe-post .article-body table td:last-child{color:#fff!important;font-weight:500}
body.fe-post .article-body table td:first-child{color:#c3c8d3!important;font-weight:400}
@media (max-width:640px){
  body.fe-post .article-body table th,body.fe-post .article-body table td{padding:14px 16px;font-size:15px}
  body.fe-post .post-table table{min-width:520px}
}

/* Quote -> blue card */
body.fe-post .article-body blockquote{margin:36px 0;padding:28px 30px;border:0;border-radius:26px;background:linear-gradient(160deg,#002bb5,#0057FF);color:#fff!important;font-family:'DM Sans',sans-serif;font-size:clamp(20px,1.8vw,26px);line-height:1.4;letter-spacing:-0.015em;text-wrap:pretty}
body.fe-post .article-body blockquote p,
body.fe-post .article-body blockquote li{margin:0 0 .6em;color:#fff!important;font-size:inherit;line-height:inherit}
body.fe-post .article-body blockquote p:last-child{margin-bottom:0}
body.fe-post .article-body blockquote a{color:#e6eeff!important}

/* Inline CTA */
body.fe-post .article-body .article-inline-cta{margin:40px 0;padding:28px 30px;border:1px solid rgba(153,186,255,.3);border-radius:26px;background:radial-gradient(ellipse 70% 90% at 90% 0%,rgba(0,87,255,.25),transparent 70%),#12161f}
body.fe-post .article-body .article-inline-cta strong{display:block;margin:0 0 10px;color:#fff;font-size:clamp(20px,1.7vw,24px);font-weight:600;line-height:1.25;letter-spacing:-0.02em}
body.fe-post .article-body .article-inline-cta p{margin:0;font-size:16px;line-height:1.6;color:#c3c8d3!important}

/* Code */
body.fe-post .article-body code{padding:2px 7px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:#12161f;color:#e5e8ee;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.86em}
body.fe-post .article-body pre{margin:32px 0;padding:20px 22px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:#0f131b;color:#e5e8ee;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:14px;line-height:1.65;overflow-x:auto;white-space:pre}
body.fe-post .article-body pre code{padding:0;border:0;background:none;font-size:inherit}

/* Video embeds */
body.fe-post .article-body .article-video{margin:36px 0;border:1px solid rgba(255,255,255,.08);border-radius:26px;overflow:hidden;background:#07101d}
body.fe-post .article-body .article-video>div{position:relative;padding-bottom:56.25%}
body.fe-post .article-body .article-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
body.fe-post .article-body iframe{max-width:100%}

/* Sources */
body.fe-post .article-body .article-source-line{margin:24px 0 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);color:#8a92a3!important;font-size:14px!important;line-height:1.6!important}
body.fe-post .article-body .article-source-line a{color:#99baff!important}

/* Tags */
body.fe-post .article-body .article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:40px 0 0;padding:0;border:0}
body.fe-post .article-body .article-tags a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#aeb4c2!important;font-size:13px;font-weight:500;text-decoration:none;transition:border-color 200ms ease,color 150ms ease}
body.fe-post .article-body .article-tags a:hover{border-color:rgba(153,186,255,.3);color:#fff!important}
body.fe-post .article-body .article-tags svg{width:13px;height:13px;opacity:.7}

/* Share (static links) */
.post-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 0}
.post-share__label{margin-right:4px;color:#8a92a3;font-size:13px;font-weight:600}
body.fe-post .post-share a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.08);color:#c3c8d3!important;font-size:13px;font-weight:600;text-decoration:none!important;transition:border-color 200ms ease,color 150ms ease,transform 140ms cubic-bezier(0.23,1,0.32,1)}
body.fe-post .post-share a:hover{border-color:rgba(153,186,255,.3);color:#fff!important}
body.fe-post .post-share a:active{transform:scale(0.96)}

/* Back link */
body.fe-post .article-body .article-back-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:20px;color:#99baff!important;font-size:15px;font-weight:700;text-decoration:none!important}
body.fe-post .article-body .article-back-link:hover{color:#fff!important}
body.fe-post .article-body .article-back-link svg{width:16px;height:16px}

/* Author */
body.fe-post .post-col>.author-box{display:flex;align-items:center;gap:20px;margin:40px 0 0;padding:24px;border-radius:26px;background:#12161f;border:1px solid rgba(255,255,255,.07)}
body.fe-post .author-box__photo img{width:64px;height:64px;border-radius:50%;border:0;object-fit:cover;display:block}
body.fe-post .author-box__body{min-width:0}
body.fe-post .author-box p{margin:0;text-align:left!important}
body.fe-post .author-box__kicker{margin:0 0 4px!important;color:#6699ff!important;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
body.fe-post .author-box__name{font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-0.02em}
body.fe-post .author-box__name a{color:#fff!important;text-decoration:none}
body.fe-post .author-box__name a:hover{color:#99baff!important}
body.fe-post .author-box__role{margin:2px 0 10px!important;color:#aeb4c2!important;font-size:14px}
body.fe-post .author-box__links{display:flex;flex-wrap:wrap;gap:14px}
body.fe-post .author-box__links a{color:#99baff!important;font-size:13px;font-weight:600;text-decoration:none}
body.fe-post .author-box__links a:hover{color:#fff!important}
@media (max-width:520px){body.fe-post .post-col>.author-box{flex-direction:column;align-items:flex-start;gap:14px}}

/* ---------- Czytaj dalej ---------- */
.post-more{padding:clamp(80px,10vw,140px) clamp(12px,3vw,40px) clamp(40px,6vw,80px)}
.post-more__inner{max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:28px}
.post-more__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 clamp(6px,1vw,16px)}
body.fe-post .post-more__head h2{margin:0;color:#fff;font-size:clamp(32px,4vw,64px);font-weight:600;letter-spacing:-0.045em;line-height:1}
.post-more__all{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:700;color:#99baff}
.post-more__all:hover{color:#fff}
.post-more__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:14px}
.post-card{display:flex;flex-direction:column;border-radius:30px;overflow:hidden;background:#12161f;border:1px solid rgba(255,255,255,.07);color:#fff;text-decoration:none;transition:border-color 200ms ease,transform 200ms cubic-bezier(0.23,1,0.32,1)}
.post-card:hover{border-color:rgba(153,186,255,.3);color:#fff}
.post-card:active{transform:scale(0.985)}
.post-card__media{position:relative;aspect-ratio:16/9;margin:10px;border-radius:22px;overflow:hidden;background:#07101d}
.post-card__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.post-card__body{display:flex;flex-direction:column;gap:10px;padding:12px 24px 26px}
.post-card__cat{display:flex;flex-wrap:wrap;gap:4px 10px;color:#6699ff;font-size:13px;font-weight:700}
.post-card__time{color:#8a92a3;font-weight:500}
body.fe-post .post-card__t{margin:0;color:#fff;font-size:clamp(20px,1.7vw,25px);font-weight:600;line-height:1.15;letter-spacing:-0.025em;text-wrap:balance}

@media (prefers-reduced-motion:reduce){
  .post-audio__btn,.post-card,.post-share a{transition:none}
  .post-audio__btn:active,.post-card:active,.post-share a:active{transform:none}
}
@media (max-width:600px){
  body.fe-post .post-hero .article-meta>*+*:before{display:none}
  body.fe-post .post-hero .article-meta .article-byline{flex-basis:100%}
}
/* Guard: content-refresh notes appended before </article> on an already transformed post */
body.fe-post .post-article>p{max-width:760px;margin:0 auto 26px;color:#d7dbe4;font-size:clamp(17px,1.25vw,19px);line-height:1.75}
