@charset "UTF-8";
/*! MKM Labs frontend 2026-10-04 - fala 2 / D1: akademia, certyfikaty, guides, profile autorów, kronika-ai (shell).
 * Layer on top of /css/fe/mkm-fe.20261004.css. Own classes use the d1- prefix.
 * The old author-profile rules (kept inline for scripts/apply-author-profiles.py) read --cn-*/--cb-* tokens
 * that no longer exist globally, so they are re-declared on .d1-profile below.
 */

body.fe-d1{background:#0a0c10}
.fe-d1 .fe-hero__main{max-width:980px}
.d1-h1{font-size:clamp(38px,6vw,96px)}
.d1-lede{max-width:760px}
.fe-d1 .fe-card__t a,.fe-d1 .fe-h3 a{color:inherit}
.fe-d1 .fe-card__t a:hover,.fe-d1 .fe-h3 a:hover{color:#99baff}
.fe-d1 .fe-card__d a,.fe-d1 .fe-lede a,.fe-d1 .fe-faq__a a,.fe-d1 .d1-prose a{color:#99baff;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.fe-d1 .fe-card__d a:hover,.fe-d1 .fe-lede a:hover,.fe-d1 .fe-faq__a a:hover,.fe-d1 .d1-prose a:hover{color:#fff}
.fe-d1 .fe-card--blue .fe-lede,.fe-d1 .fe-card--blue .fe-card__d{color:#fff}
.fe-d1 .fe-card--blue a:not(.fe-btn):not(.fe-btn-ghost){color:#fff}
.fe-d1 .fe-hero .fe-btns,.fe-d1 .d1-band .fe-btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.d1-card{min-height:0}
.d1-card .fe-card__d{margin:0}
.d1-fact{font-size:18px;color:#fff}

/* two-column blocks: heading left, body right */
.d1-split{align-items:flex-start}
.d1-split__l{flex:1 1 340px;min-width:0}
.d1-split>ul,.d1-split>.d1-prose,.d1-split>.d1-doc{flex:1.4 1 460px;min-width:0}
.d1-prose{display:flex;flex-direction:column;gap:18px}
.d1-prose p{margin:0;color:#c3c8d3;font-size:clamp(17px,1.3vw,19px);line-height:1.7;text-wrap:pretty}

/* check list (Mentor AI) */
.d1-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.d1-check{display:flex;gap:16px;align-items:flex-start;padding:20px 22px;border-radius:22px;background:#12161f;border:1px solid rgba(255,255,255,.07)}
.d1-check__i{flex:none;width:30px;height:30px;border-radius:50%;background:rgba(0,87,255,.22);color:#99baff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}
.d1-check p{margin:0;color:#e5e8ee;font-size:17px;line-height:1.55}
.d1-check a{color:#99baff;text-decoration:underline;text-underline-offset:3px}
.d1-check a:hover{color:#fff}

/* person card (akademia / prowadzacy) */
.d1-person{flex-direction:row;flex-wrap:wrap;align-items:center;gap:clamp(20px,3vw,40px);max-width:920px}
.d1-person__photo{flex:none;width:clamp(96px,14vw,160px);height:clamp(96px,14vw,160px);border-radius:26px;object-fit:cover}
.d1-person__body{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:12px}
.d1-person__body .fe-h3{margin:0}
.d1-person__links{margin:0;font-size:15px}
.d1-person__links a{color:#99baff;text-decoration:underline;text-underline-offset:3px}

/* closing band (own page CTA) */
.d1-band{gap:18px;align-items:flex-start;max-width:1100px}
.d1-band .fe-h2{margin:0}
.d1-band__lede{max-width:640px;margin:0}

/* certyfikaty */
.d1-doc{gap:10px}
.d1-doc .fe-card__d{margin:0;font-size:18px}
.d1-org{flex-direction:row;flex-wrap:wrap;align-items:center;gap:24px}
.d1-org img{flex:none;width:73px;height:88px}
.d1-org .fe-card__d{flex:1 1 320px;max-width:640px;margin:0}

/* guides */
.d1-eyebrow-ico{display:inline-flex;align-items:center;gap:8px}
.d1-badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.d1-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);font-size:13px;color:#c3c8d3}
.d1-badge--blue{background:rgba(0,87,255,.1);border-color:rgba(0,87,255,.3);color:#99baff}
.d1-badge--green{background:rgba(16,185,129,.08);border-color:rgba(16,185,129,.25);color:#34d399}
.d1-badge__dot{width:8px;height:8px;border-radius:50%;background:#0057FF}
.d1-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:32px;padding:16px 20px;background:#12161f;border:1px solid rgba(255,255,255,.07);border-radius:22px}
.d1-toolbar__filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.filter-btn{height:40px;padding:0 18px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);color:#c3c8d3;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:transform 140ms cubic-bezier(.23,1,.32,1),background-color 150ms ease,border-color 200ms ease,color 150ms ease}
.filter-btn:hover{background:rgba(0,87,255,.22);color:#fff}
.filter-btn:active{transform:scale(.96)}
.filter-btn.active{background:#0057FF;border-color:#0057FF;color:#fff}
.d1-search{position:relative;flex:1 1 240px;max-width:340px}
.d1-search input{width:100%;height:42px;padding:0 14px 0 38px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);color:#fff;font:inherit;font-size:15px;outline:none;transition:border-color .2s}
.d1-search input:focus{border-color:#0057FF}
.d1-search input::placeholder{color:#8a92a3}
.d1-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8a92a3;pointer-events:none}
.d1-g-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px}
.d1-g-card{justify-content:space-between;gap:18px}
.d1-g-card__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.d1-g-tag{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#99baff;background:rgba(0,87,255,.12);border:1px solid rgba(0,87,255,.3);padding:4px 10px;border-radius:8px}
.d1-g-pdf{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#f87171;background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.25);padding:4px 8px;border-radius:8px}
.d1-g-card__t{margin:0 0 10px;font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.02em}
.d1-g-card__t a{color:#fff}
.d1-g-card__t a:hover{color:#99baff}
.d1-g-card__d{margin:0 0 20px;font-size:15px;line-height:1.55;color:#c3c8d3}
.d1-g-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:12px;color:#8a92a3;margin-bottom:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.07)}
.d1-g-card__actions{display:flex;gap:10px;align-items:center}
.d1-g-dl{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:999px;background:#0057FF;color:#fff;font-size:14px;font-weight:700;transition:background-color .2s}
.d1-g-dl:hover{background:#3378ff;color:#fff}
.copy-link-btn{flex:none;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.05);color:#c3c8d3;border:1px solid rgba(255,255,255,.1);cursor:pointer;transition:background-color .2s,border-color .2s}
.copy-link-btn:hover{background:rgba(255,255,255,.1);color:#fff}
.copy-link-btn.is-copied{border-color:#10b981}
.d1-empty{padding:clamp(32px,5vw,64px) clamp(20px,4vw,32px);background:#12161f;border:1px dashed rgba(0,87,255,.35);border-radius:28px;text-align:center;max-width:720px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:16px}
.d1-empty .fe-body{max-width:540px;margin:0}
.d1-empty__ico{width:64px;height:64px;border-radius:18px;background:rgba(0,87,255,.12);border:1px solid rgba(0,87,255,.3);display:grid;place-items:center;color:#99baff}
.d1-info{margin-top:48px;padding:24px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.07);border-radius:22px;display:flex;align-items:flex-start;gap:14px}
.d1-info__ico{flex:none;width:38px;height:38px;border-radius:12px;background:rgba(0,87,255,.12);border:1px solid rgba(0,87,255,.25);display:grid;place-items:center;color:#99baff}
.d1-info__t{font-weight:600;font-size:15px;color:#fff;margin-bottom:4px}
.d1-info__d{margin:0;font-size:14px;color:#c3c8d3;line-height:1.6}
.d1-info code{padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.08);font-size:12.5px;color:#99baff;overflow-wrap:anywhere}

/* author profiles: the legacy rules injected by apply-author-profiles.py use these tokens */
.d1-profile{--cn-white:#fff;--cn-300:#c3c8d3;--cn-400:#8a92a3;--cn-700:#2a2f3b;--cn-800:rgba(255,255,255,.1);--cn-900:#12161f;--cb-200:#99baff;--cb-300:#99baff;max-width:860px;margin:0 auto;color:#c3c8d3}
.d1-profile .team-card{display:flex;flex-direction:column;gap:22px;padding:clamp(24px,3.4vw,44px);border-radius:32px;background:#12161f;border:1px solid rgba(255,255,255,.07);margin:0 0 clamp(32px,4vw,56px)}
.d1-profile .team-card-header{display:flex;flex-wrap:wrap;align-items:center;gap:22px}
.d1-profile .team-card-photo{flex:none;width:clamp(96px,14vw,140px);height:clamp(96px,14vw,140px);border-radius:26px;object-fit:cover}
.d1-profile .team-card-identity{min-width:0}
.d1-profile .team-card-role{margin:0 0 6px;color:#6699ff;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.d1-profile .team-card-name{margin:0;color:#fff;font-size:clamp(28px,3vw,42px);font-weight:600;line-height:1.05;letter-spacing:-.04em}
.d1-profile .team-card-bio{margin:0;color:#e5e8ee;font-size:clamp(17px,1.3vw,19px);line-height:1.7;text-wrap:pretty}
.d1-profile .team-card-links{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.d1-profile .team-card-links a{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#e5e8ee;font-size:14px;font-weight:600;transition:background-color .15s,color .15s}
.d1-profile .team-card-links a:hover{background:rgba(0,87,255,.22);color:#fff}
.d1-profile .author-profile-extra{display:block}
.d1-profile .ui-section-title{margin:clamp(36px,4vw,56px) 0 18px;color:#fff;font-size:clamp(28px,2.8vw,42px);font-weight:600;line-height:1.05;letter-spacing:-.04em}
.d1-profile .author-profile-extra>p{margin:0 0 20px;color:#d7dbe4;font-size:clamp(17px,1.25vw,19px);line-height:1.75;text-wrap:pretty}
.d1-profile .author-profile-extra p a{color:#99baff;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.d1-profile .author-profile-extra p a:hover{color:#fff}
.d1-profile .author-article-list{display:flex;flex-direction:column;gap:10px;margin-top:0}
.d1-profile .author-article-list a{display:block;padding:16px 20px;border-radius:18px;background:#12161f;border:1px solid rgba(255,255,255,.07);color:#fff;text-decoration:none;transition:background-color .2s,border-color .2s}
.d1-profile .author-article-list a:hover{background:#161b26;border-color:rgba(153,186,255,.3)}
.d1-profile .author-article-list span{font-weight:600;line-height:1.4}
.d1-profile .author-article-list small{display:block;margin-top:4px;color:#8a92a3;font-size:12px}
.d1-profile .author-article-more{margin-top:10px}
.d1-profile .author-article-more>summary{display:block;padding:14px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.12);color:#99baff;font-size:14px;font-weight:600;text-align:center;cursor:pointer;list-style:none;user-select:none;transition:background-color .2s}
.d1-profile .author-article-more>summary:hover{background:rgba(255,255,255,.05)}
.d1-profile .author-article-more>summary::-webkit-details-marker{display:none}
.d1-profile .author-article-more .author-article-list{margin-top:10px}

/* kronika-ai text blocks */
.d1-prose-card{max-width:980px;gap:16px}
.d1-prose-card .fe-card__d{font-size:clamp(16px,1.2vw,18px);line-height:1.75}
.d1-prose-card strong{color:#fff;font-weight:600}

@media (max-width:640px){
  .d1-toolbar{padding:14px}
  .d1-search{max-width:none}
  .d1-person{flex-direction:column;align-items:flex-start}
  .d1-info{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  .filter-btn,.copy-link-btn,.d1-g-dl{transition:none}
}

/* long CTA labels must wrap on narrow screens instead of running past the viewport */
.fe-d1 .fe-btn,.fe-d1 .fe-btn-ghost{max-width:100%;white-space:normal;height:auto;min-height:56px;padding-top:8px;padding-bottom:8px;line-height:1.25}
.fe-d1 .fe-btn-ghost{padding-left:22px;padding-right:22px;display:inline-flex;align-items:center}
.fe-d1 .fe-btn--lg{min-height:68px}
