/* ToJestDom RC305 — unified Poradnik template */
body.tjdKnowledge{background:#fff;color:#13202a}
body.tjdKnowledge .tjdKnowledgeMain{width:min(1380px,calc(100% - 64px));max-width:1380px;margin:0 auto;padding:26px 0 80px;min-width:0}
body.tjdKnowledge .tjdKnowledgeCrumbs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;color:#6b7c89;font-size:13px;line-height:1.5;min-width:0}
body.tjdKnowledge .tjdKnowledgeCrumbs a{color:#318ed2;text-decoration:none}
body.tjdKnowledge .tjdKnowledgeHero{max-width:1040px;margin:0;padding:20px 0 34px;border:0;background:transparent}
body.tjdKnowledge .tjdKnowledgeKicker{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#eaf7ff;color:#0875b8;font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
body.tjdKnowledge .tjdKnowledgeHero h1{margin:20px 0 18px;max-width:1030px;color:#101a22;font-size:clamp(42px,4.2vw,68px);font-weight:850;line-height:1.02;letter-spacing:-.045em;overflow-wrap:anywhere}
body.tjdKnowledge .tjdKnowledgeLead{max-width:900px;margin:0;color:#586b79;font-size:clamp(18px,1.45vw,22px);line-height:1.58}
body.tjdKnowledge .tjdKnowledgeMeta{margin-top:18px;color:#8a99a4;font-size:12px}
body.tjdKnowledge .tjdKnowledgeBody{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:54px;align-items:start;max-width:1240px;margin-top:30px;min-width:0}
body.tjdKnowledge .tjdKnowledgeArticle{min-width:0;max-width:850px;font-size:17px;line-height:1.75;color:#293841}
body.tjdKnowledge .tjdKnowledgeArticle section{min-width:0;margin:0 0 40px}
body.tjdKnowledge .tjdKnowledgeArticle h2{margin:0 0 14px;color:#101a22;font-size:clamp(26px,2.25vw,34px);line-height:1.15;letter-spacing:-.025em}
body.tjdKnowledge .tjdKnowledgeArticle h3{margin:28px 0 10px;color:#15242d;font-size:22px;line-height:1.25}
body.tjdKnowledge .tjdKnowledgeArticle p{margin:0 0 18px;max-width:78ch}
body.tjdKnowledge .tjdKnowledgeArticle ul,body.tjdKnowledge .tjdKnowledgeArticle ol{max-width:78ch;padding-left:24px}
body.tjdKnowledge .tjdKnowledgeArticle a{color:#087fc5;text-underline-offset:3px;overflow-wrap:anywhere}
body.tjdKnowledge .tjdKnowledgeArticle img,body.tjdKnowledge .tjdKnowledgeArticle picture,body.tjdKnowledge .tjdKnowledgeArticle iframe,body.tjdKnowledge .tjdKnowledgeArticle video{display:block;max-width:100%;height:auto;border-radius:18px}
body.tjdKnowledge .tjdKnowledgeArticle iframe{width:100%;aspect-ratio:16/9}
body.tjdKnowledge .tjdKnowledgeArticle table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse}
body.tjdKnowledge .tjdKnowledgeCallout{margin:30px 0;padding:24px 26px;border:1px solid #d8e8f2;border-left:5px solid #2aa8ff;border-radius:16px;background:#f6fbff;color:#293841}
body.tjdKnowledge .tjdKnowledgeCallout b{display:block;margin-bottom:7px;color:#0f202c}
body.tjdKnowledge .tjdKnowledgeAside{position:sticky;top:110px;min-width:0;padding:24px;border:1px solid #dce8ef;border-radius:20px;background:#f6faff;box-shadow:0 14px 32px rgba(15,44,64,.06)}
body.tjdKnowledge .tjdKnowledgeAside h3{margin:0 0 12px;color:#111c24;font-size:20px}
body.tjdKnowledge .tjdKnowledgeAside p{margin:0 0 18px;color:#637684;font-size:14px;line-height:1.65}
body.tjdKnowledge .tjdKnowledgeAside a{display:block;margin-top:10px;color:#0e7abd;text-decoration:none;font-size:14px;font-weight:700;overflow-wrap:anywhere}
body.tjdKnowledge .tjdKnowledgeSources{margin-top:48px;padding-top:26px;border-top:1px solid #e0e8ed}
body.tjdKnowledge .seoRelated{margin:62px 0 0;padding:36px 0 0;border-top:1px solid #e1e9ee}
body.tjdKnowledge .seoRelatedInner{max-width:1240px}
body.tjdKnowledge .seoRelated h2{margin:0 0 18px;color:#101a22;font-size:28px}
body.tjdKnowledge .seoRelatedLinks{display:flex;flex-wrap:wrap;gap:10px}
body.tjdKnowledge .seoRelatedLinks a{display:inline-flex;padding:10px 14px;border:1px solid #dbe8f0;border-radius:999px;color:#145f8f;text-decoration:none;background:#fff;font-size:14px;font-weight:700}
/* Poradnik list/index safety rules — supports older class names without changing content */
body.tjdKnowledge .knowledgeHero,body.tjdKnowledge .poradnikHero,body.tjdKnowledge .tjdPoradnikHero{width:min(1380px,calc(100% - 64px));margin:0 auto}
body.tjdKnowledge .knowledgeGrid,body.tjdKnowledge .poradnikGrid,body.tjdKnowledge .tjdPoradnikGrid{width:min(1380px,calc(100% - 64px));margin-left:auto;margin-right:auto;min-width:0}
body.tjdKnowledge .knowledgeGrid>*,body.tjdKnowledge .poradnikGrid>*,body.tjdKnowledge .tjdPoradnikGrid>*{min-width:0}
@media(max-width:1100px){
  body.tjdKnowledge .tjdKnowledgeMain{width:min(100% - 44px,1380px)}
  body.tjdKnowledge .tjdKnowledgeBody{grid-template-columns:1fr;gap:32px;max-width:900px}
  body.tjdKnowledge .tjdKnowledgeArticle{max-width:900px}
  body.tjdKnowledge .tjdKnowledgeAside{position:static;max-width:900px}
}
@media(max-width:720px){
  body.tjdKnowledge .tjdKnowledgeMain{width:calc(100% - 28px);padding-top:18px;padding-bottom:56px}
  body.tjdKnowledge .tjdKnowledgeHero{padding-top:12px;padding-bottom:22px}
  body.tjdKnowledge .tjdKnowledgeHero h1{font-size:clamp(36px,11vw,50px);letter-spacing:-.035em}
  body.tjdKnowledge .tjdKnowledgeLead{font-size:17px}
  body.tjdKnowledge .tjdKnowledgeBody{margin-top:16px;gap:24px}
  body.tjdKnowledge .tjdKnowledgeArticle{font-size:16px;line-height:1.7}
  body.tjdKnowledge .tjdKnowledgeArticle h2{font-size:28px}
  body.tjdKnowledge .tjdKnowledgeAside{padding:20px;border-radius:16px}
  body.tjdKnowledge .knowledgeHero,body.tjdKnowledge .poradnikHero,body.tjdKnowledge .tjdPoradnikHero,
  body.tjdKnowledge .knowledgeGrid,body.tjdKnowledge .poradnikGrid,body.tjdKnowledge .tjdPoradnikGrid{width:calc(100% - 28px)}
}

/* TJD:RC325:PERMIT-CHECK */
.tjdPermitCheck{border:1px solid rgba(117,93,64,.22);border-radius:20px;padding:20px;background:#fff}.tjdPermitCheck__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tjdPermitCheck label{display:grid;gap:6px;font-weight:700}.tjdPermitCheck select{width:100%;padding:11px 12px;border:1px solid rgba(70,60,50,.22);border-radius:10px;background:#fff}.tjdPermitCheck button{margin-top:16px;border:0;border-radius:999px;padding:11px 18px;font-weight:800;cursor:pointer}.tjdPermitCheck__result{margin-top:18px}.tjdPermitResult__head{display:flex;gap:12px;justify-content:space-between;align-items:center}.tjdConfidence{font-size:.82rem;padding:4px 9px;border-radius:999px;background:#eee}.tjdConfidence--high{background:#e5f4e9}.tjdConfidence--medium{background:#fff1cf}.tjdConfidence--low{background:#f8dddd}.tjdPermitConflict{border-left-color:#ad6b00!important}@media(max-width:720px){.tjdPermitCheck__grid{grid-template-columns:1fr}}
