/*
 * Kardiolog Zgorzelec – Puls Wiedzy 1.0.0
 * Autorski projekt dla Newspaper. Celowo NIE zmieniamy background/background-image body:
 * globalne tło nadal pochodzi z ustawień motywu Newspaper.
 */
body.kzg-pw-active { margin: 0 !important; padding: 0 !important; min-width: 320px; }
body.kzg-pw-active .kzg-site,
body.kzg-pw-active .kzg-site * { box-sizing: border-box; }
body.kzg-pw-active .kzg-site { --kzg-navy:#0c2838; --kzg-ink:#102b3e; --kzg-teal:#087f89; --kzg-coral:#eb6065; --kzg-muted:#5a7180; --kzg-light:#f3f9fa; --kzg-border:#dcebef; color:var(--kzg-ink); background:#fff; width:calc(100% - 36px); max-width:1330px; margin:20px auto 28px; border:1px solid rgba(217,231,233,.86); border-radius:17px; box-shadow:0 24px 70px rgba(6,30,44,.13); font-family:Arial,Helvetica,sans-serif; font-size:15px; line-height:1.55; isolation:isolate; position:relative; overflow:visible; }
.kzg-site img,.kzg-site svg{max-width:100%}
.kzg-site a {color:inherit; text-decoration:none; transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;}
.kzg-site button,.kzg-site input,.kzg-site select,.kzg-site textarea {font:inherit}
.kzg-site button {cursor:pointer}
.kzg-site h1,.kzg-site h2,.kzg-site h3,.kzg-site h4,.kzg-site p,.kzg-site figure{margin-top:0}
.kzg-site h1,.kzg-site h2,.kzg-site h3,.kzg-site h4 {font-family:Georgia,'Times New Roman',serif; color:var(--kzg-ink); line-height:1.19; letter-spacing:-.028em; font-weight:700}
.kzg-site a:focus-visible,.kzg-site button:focus-visible,.kzg-site input:focus-visible,.kzg-site select:focus-visible {outline:3px solid #16a5b0;outline-offset:3px}
.kzg-sr-only {position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}
.kzg-skip-link {position:absolute;left:-9999px;top:0;z-index:10000;background:#fff;color:#082b3c!important;padding:12px 18px;border:2px solid #057d88;border-radius:6px}
.kzg-skip-link:focus {left:24px;top:12px}

/* Header – identical across home, pages, posts and archives */
.kzg-header {position:relative;z-index:40;border-radius:17px 17px 0 0;background:#fff}
.kzg-utility-bar {display:flex;align-items:center;justify-content:space-between;gap:20px;background:#062c3e;color:#d7edf1;padding:8px 52px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;border-radius:16px 16px 0 0;min-height:31px}
.kzg-utility-right {display:flex;gap:10px;align-items:center;color:#d1f0f1;white-space:nowrap}
.kzg-utility-right svg{color:#ef686f;flex:none}
.kzg-util-divider{color:#5e98a2;margin:0 3px}
.kzg-nav-bar {min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 48px;border-bottom:1px solid #e4eef1;background:#fff}
.kzg-logo {display:inline-flex;align-items:center;gap:11px;flex-shrink:0;min-width:0;color:#102b3d!important;line-height:1}
.kzg-logo-heart {display:flex;color:#e75c65;width:62px;height:47px;align-items:center}
.kzg-logo-heart svg {width:62px;height:47px;max-width:none}
.kzg-logo-words{display:flex;flex-direction:column;gap:4px;line-height:1;letter-spacing:.065em;white-space:nowrap}
.kzg-logo-words strong {font-size:19px;line-height:1;font-weight:800;color:inherit}
.kzg-logo-words>span {font-size:12px;font-weight:750;letter-spacing:.145em;color:inherit}
.kzg-primary-menu{display:flex;align-items:center;justify-content:flex-end;gap:0;min-height:44px;flex-wrap:wrap}
.kzg-nav-item {display:inline-flex;align-items:center;gap:5px;min-height:43px;padding:10px 10px;white-space:nowrap;position:relative;font-weight:700;font-size:12px;color:#172d3d!important}
.kzg-nav-item:hover,.kzg-nav-item:focus-visible,.kzg-nav-current{color:#e55e62!important}
.kzg-nav-current:after,.kzg-nav-item:hover:after{content:"";position:absolute;height:2px;background:#e65f66;bottom:2px;left:10px;right:10px}
.kzg-nav-chevron {font-size:16px;font-weight:400;position:relative;top:-1px;color:#607c87}
.kzg-nav-dropdown{position:relative}
.kzg-submenu {position:absolute;z-index:99;top:100%;left:-10px;width:max-content;max-width:285px;min-width:218px;display:none;flex-direction:column;background:#fff;border:1px solid #dfedef;border-radius:11px;box-shadow:0 18px 38px rgba(6,44,62,.17);padding:7px}
.kzg-nav-dropdown:hover .kzg-submenu,.kzg-nav-dropdown:focus-within .kzg-submenu{display:flex}
.kzg-submenu a {font-size:12px;font-weight:650;color:#163648!important;padding:10px 12px;border-radius:7px;line-height:1.4}
.kzg-submenu a:hover,.kzg-submenu a:focus {background:#eaf8f8;color:#037a84!important}
.kzg-search-form {display:flex;align-items:center;position:relative;margin:0 0 0 5px}
.kzg-search-form input{width:0;opacity:0;padding:0;border:0;transition:width .22s,opacity .22s,padding .22s;border-radius:24px;min-width:0;background:#eaf4f5;color:#143344!important}
.kzg-search-form:focus-within input,.kzg-search-form:hover input {width:160px;opacity:1;padding:9px 12px;border:1px solid #b8d8dc}
.kzg-search-form button {display:grid;place-items:center;border:0;background:transparent;color:#173448;padding:10px}
.kzg-search-form button:hover{color:#e35e67}
.kzg-menu-toggle {display:none;width:45px;height:43px;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:1px solid #c9e4e7;background:#eef8f9;border-radius:8px}
.kzg-menu-toggle span{display:block;width:21px;height:2px;background:#0b4556;border-radius:2px}

/* Shared homepage typography and links */
.kzg-kicker {display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.16em;font-weight:850;color:#147f8a;margin-bottom:12px}
.kzg-kicker:before{content:"";display:inline-block;height:2px;width:19px;background:currentColor;border-radius:2px}
.kzg-kicker--light{color:#a6e0e6}
.kzg-kicker--coral{color:#de4d55}
.kzg-kicker--coral:before{background:#e65c63}
.kzg-btn {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:47px;padding:12px 24px;border-radius:30px;font-size:13px;font-weight:800;line-height:1.2;white-space:nowrap}
.kzg-btn--coral {background:#e95d62;color:#fff!important;border:1px solid #e95d62;box-shadow:0 6px 12px rgba(222,77,85,.12)}
.kzg-btn--coral:hover {background:#d94f57;transform:translateY(-2px);box-shadow:0 11px 24px rgba(222,77,85,.24)}
.kzg-btn--outline {border:1px solid #40b6c0;color:#fff!important;background:rgba(4,46,65,.52)}
.kzg-btn--outline:hover{background:#0d6974}
.kzg-home-section {padding:33px 53px 26px}
.kzg-section-topline {display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}
.kzg-section-topline h2{font-size:34px;line-height:1.12;margin:0}
.kzg-section-link {display:inline-flex;align-items:center;gap:11px;white-space:nowrap;color:#126c7a!important;font-size:12px;font-weight:750;padding-bottom:5px}
.kzg-section-link:hover {color:#e45f65!important}

/* Hero – real cropped artwork from approved visual concept */
.kzg-hero{height:464px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 76% 38%,#09516a 0%,#073449 36%,#062436 72%,#041e2d 100%);padding:43px 53px 32px;color:#fff}
.kzg-hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(1,22,33,.34),transparent 55%),repeating-linear-gradient(0deg,transparent,transparent 67px,rgba(28,108,130,.07) 68px),repeating-linear-gradient(90deg,transparent,transparent 69px,rgba(28,108,130,.05) 70px);z-index:0}
.kzg-hero-glow{position:absolute;width:680px;height:440px;border-radius:50%;background:radial-gradient(ellipse,rgba(9,133,164,.34),transparent 65%);right:-90px;top:-50px;z-index:0}
.kzg-hero-copy{position:relative;z-index:2;max-width:61%}
.kzg-hero-copy .kzg-kicker {letter-spacing:.18em;margin-bottom:19px}
.kzg-hero-copy .kzg-kicker:before{display:none}
.kzg-hero-copy .kzg-kicker span{width:92px;height:1px;background:#9dcbd5}
.kzg-hero h1 {font-family:Georgia,'Times New Roman',serif;color:#fff;font-size:clamp(39px,4.15vw,60px);letter-spacing:-.042em;line-height:1.08;font-weight:700;margin:0 0 17px;position:relative}
.kzg-hero h1 em{font-style:normal;color:#a8dee6}
.kzg-hero-copy>p{font-size:18px;line-height:1.55;color:#f0fafb;margin-bottom:20px}
.kzg-hero-actions{display:flex;align-items:center;gap:14px}
.kzg-hero-visual{position:absolute;z-index:1;top:8px;right:10%;width:34%;height:385px;overflow:hidden;opacity:.98;mask-image:linear-gradient(90deg,transparent 0%,#000 15%,#000 86%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 15%,#000 86%,transparent 100%)}
.kzg-hero-visual img{width:100%;height:100%;object-fit:cover;object-position:50% 42%;display:block;mix-blend-mode:screen}
.kzg-hero-highlights {position:absolute;z-index:3;left:53px;bottom:29px;display:flex;align-items:center;gap:28px}
.kzg-hero-highlights>div{display:flex;align-items:center;gap:11px;min-width:146px;color:#f0fafb;font-size:11px;font-weight:700;line-height:1.32}
.kzg-hero-highlight-icon {width:41px;height:41px;display:grid;place-items:center;flex-shrink:0;color:#eaf9fa;border:1px solid #43bec8;border-radius:50%}

/* Category tiles */
.kzg-categories-section{background:linear-gradient(180deg,#f5fbfb 0%,#eef7f8 100%);padding-top:34px;padding-bottom:31px}
.kzg-categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 18px}
.kzg-category-tile {display:block;min-width:0;background:#fff;border-radius:13px;border:1px solid #e2eef0;overflow:hidden;box-shadow:0 9px 18px rgba(5,47,60,.08)}
.kzg-category-tile:hover{box-shadow:0 17px 27px rgba(5,47,60,.14);transform:translateY(-4px)}
.kzg-category-image{display:block;width:100%;height:101px;overflow:hidden;background:#dcecf0}
.kzg-category-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .26s ease}
.kzg-category-tile:hover img{transform:scale(1.055)}
.kzg-category-caption {display:flex;align-items:center;gap:10px;min-height:53px;padding:7px 10px 7px 11px}
.kzg-cat-icon {display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#087e8a,#15a1a5)}
.kzg-category-caption strong {font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:1.22;color:#112d3e;font-weight:800;min-width:0}
.kzg-cat-arrow {display:grid;place-items:center;width:28px;height:28px;border:1px solid #c8e5e8;border-radius:50%;color:#11808c;font-size:17px;margin-left:auto;flex:0 0 auto}
.kzg-category-tile:hover .kzg-cat-arrow {background:#128b94;color:#fff}

/* Wide EKG feature */
.kzg-featured{margin:16px 34px 2px;min-height:283px;border-radius:17px;background:linear-gradient(105deg,#e9f6f8,#e4f2f6);position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center}
.kzg-featured-copy {width:55%;padding:33px 40px;position:relative;z-index:2}
.kzg-featured h2 {font-size:34px;line-height:1.11;margin-bottom:13px;max-width:550px}
.kzg-featured-copy p{color:#344c5c;font-size:14px;line-height:1.57;margin-bottom:17px;max-width:470px}
.kzg-featured-copy .kzg-btn{min-height:40px;padding:9px 20px;font-size:12px}
.kzg-featured-photo{position:absolute;inset:0 0 0 48%;background-image:url('featured-ekg.webp');background-position:center 45%;background-size:cover;background-repeat:no-repeat;z-index:1}
.kzg-featured-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#e5f3f7 0%,rgba(229,243,247,.5) 18%,transparent 42%)}
.kzg-featured-tag{display:inline-flex;gap:9px;align-items:center;vertical-align:middle;margin-left:18px;color:#14586a;font-size:11px;font-weight:750;line-height:1.28}
.kzg-featured-tag svg{color:#fff;background:#138c96;width:33px;height:33px;padding:6px;border-radius:50%}

/* Latest 5 posts, automatically updated by WordPress */
.kzg-latest{background:#fff;padding:31px 34px 31px}
.kzg-latest .kzg-section-topline{padding:0 19px;margin-bottom:23px}
.kzg-latest-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.kzg-post-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e1ecef;border-radius:10px;overflow:hidden;box-shadow:0 9px 20px rgba(11,46,61,.065);min-width:0;min-height:100%}
.kzg-post-card:hover{transform:translateY(-3px);box-shadow:0 16px 28px rgba(11,46,61,.12)}
.kzg-post-image-wrap{display:block;overflow:hidden;height:142px;background:#e1eff0}
.kzg-post-image-wrap img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.kzg-post-card:hover .kzg-post-image-wrap img{transform:scale(1.04)}
.kzg-post-card-body{padding:14px 15px 16px;display:flex;flex-direction:column;flex-grow:1}
.kzg-post-meta{color:#68808c;font-size:10px;margin-bottom:8px}
.kzg-post-card h3{font-family:Arial,Helvetica,sans-serif;line-height:1.3;letter-spacing:-.01em;font-size:14px;font-weight:800;color:#102b3d;margin:0 0 11px}
.kzg-post-card h3 a:hover{color:#d54c57!important}
.kzg-post-card p{font-size:12px;line-height:1.48;color:#60727b;margin:0 0 15px}
.kzg-text-link{color:#d95159!important;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;margin-top:auto}
.kzg-text-link:hover{color:#a32e3f!important}

/* Teal strip + about */
.kzg-knowledge-cta{background:linear-gradient(106deg,#0a4d65 0%,#127f8a 52%,#0ba19d 100%);color:#fff;padding:36px 53px;display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:169px;position:relative;overflow:hidden}
.kzg-knowledge-cta>div:first-child{z-index:2;max-width:790px}
.kzg-knowledge-cta h2{color:#fff;font-size:30px;line-height:1.2;margin:0 0 8px}
.kzg-knowledge-cta p{font-size:13px;line-height:1.6;margin:0;color:#e3f5f6;max-width:780px}
.kzg-knowledge-cta .kzg-btn{position:relative;z-index:2;margin-right:85px;flex-shrink:0}
.kzg-cta-heart{position:absolute;right:12px;top:19px;color:#9aebed;opacity:.55;transform:rotate(-4deg);pointer-events:none}
.kzg-about{background:#fff;padding:24px 53px 28px;display:grid;grid-template-columns:1.45fr 1fr;align-items:center;gap:34px}
.kzg-about h2{font-size:26px;margin:0 0 12px}
.kzg-about p{font-size:13px;color:#526574;line-height:1.68;margin:0 0 12px}
.kzg-about .kzg-info-note{font-size:12px;color:#526875;margin:12px 0 0}
.kzg-about-photo{height:174px;overflow:hidden;border-radius:12px;background:#e6f1f3;box-shadow:0 7px 20px rgba(18,59,74,.1)}
.kzg-about-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:39% 53%}

/* Footer – same on EVERY overridden view */
.kzg-footer {background:#092b3d;color:#d9ebef;border-radius:0 0 16px 16px}
.kzg-footer-main{display:grid;grid-template-columns:1.25fr 1fr 1fr .95fr;gap:35px;padding:43px 53px 32px}
.kzg-footer .kzg-logo{color:#fff!important}
.kzg-footer .kzg-logo-words strong{font-size:17px}
.kzg-footer .kzg-logo-words>span{font-size:11px}
.kzg-footer .kzg-logo-heart,.kzg-footer-smallheart{color:#f06a73}
.kzg-footer-brand p,.kzg-footer-col p{max-width:250px;font-size:12px;line-height:1.68;color:#b6d3dc;margin:13px 0 0}
.kzg-footer-smallheart{margin-top:20px}
.kzg-footer-col{display:flex;flex-direction:column;gap:8px}
.kzg-footer-col h2{font-family:Arial,Helvetica,sans-serif;color:#fff;font-size:13px;letter-spacing:0;font-weight:850;margin:0 0 8px}
.kzg-footer-col a {font-size:12px;color:#dceef1!important;line-height:1.4;display:inline-block;width:fit-content}
.kzg-footer-col a:hover,.kzg-footer-legal a:hover{color:#76dfe3!important}
.kzg-footer-news>svg{margin-top:18px;color:#e75f67}
.kzg-footer-news .kzg-footer-disclaimer{font-size:10px;color:#a9c4cf;line-height:1.6;margin-top:11px}
.kzg-footer-bottom{border-top:1px solid rgba(218,245,247,.13);padding:19px 53px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#b4d2da;font-size:11px}
.kzg-footer-legal{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.kzg-footer-legal a{color:#c9e4e8!important;font-size:11px}
.kzg-footer-sep{color:#547c89;padding:0 6px}
.kzg-back-top{width:31px;height:31px;display:grid!important;place-items:center;border-radius:50%;border:1px solid #527886;font-size:20px!important;line-height:1}
.kzg-statlink{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:13px 19px;padding:15px 28px 18px;border-top:1px solid rgba(218,245,247,.13);background:rgba(1,20,30,.2);border-radius:0 0 16px 16px}
.kzg-statlink-item{font-size:11px;color:#d3e7e9;max-width:100%;overflow-wrap:anywhere}
.kzg-statlink-item b{font-weight:600}
.kzg-statlink a{color:#bfe9eb!important;text-decoration:underline;text-underline-offset:2px}
.kzg-statlink a:hover{color:#fff!important}

/* Interior pages, categories, post archives */
.kzg-interior-main {padding:38px 46px 60px;background:#fff;min-height:560px;}
.kzg-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;color:#567583;margin-bottom:22px;max-width:100%;overflow-wrap:anywhere}
.kzg-breadcrumbs a{color:#137785!important;font-weight:750}
.kzg-breadcrumbs a:hover{color:#d6515c!important}
.kzg-breadcrumbs span[aria-current]{color:#506773}
.kzg-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:27px;align-items:start}
.kzg-article{background:#f2f8f9!important;border:1px solid #dfebed;border-radius:17px;padding:42px 43px 39px;color:#173445;min-width:0;box-shadow:0 10px 24px rgba(8,44,60,.035);overflow-wrap:anywhere}
.kzg-article-header{padding:0 0 25px;border-bottom:1px solid #d7e7e9;background:transparent!important}
.kzg-article-kicker{display:inline-block;font:800 10px Arial,Helvetica,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#087b87!important;margin-bottom:13px}
.kzg-article-header h1{font-size:clamp(31px,3.4vw,46px);margin:0 0 15px;line-height:1.17;letter-spacing:-.028em;color:#112d40!important}
.kzg-article-meta {display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;color:#637b86;font-size:12px}
.kzg-article-meta span{display:inline-flex;align-items:center;gap:5px}
.kzg-article-meta svg{color:#1b8891}
.kzg-article-featured-image {background:transparent;margin:24px 0 0}
.kzg-article-featured-image img{width:100%;height:auto;max-height:480px;object-fit:cover;border-radius:10px;display:block}
.kzg-article-featured-image figcaption {color:#6a7d86;font-size:12px;margin-top:9px;text-align:center}
.kzg-article-body{background:transparent!important;color:#243e4b!important;font-size:16.5px;line-height:1.85;padding-top:24px;min-height:180px}
.kzg-article-body>*:first-child{margin-top:0!important}
.kzg-article-body :is(p,li,dd,dt,td,th,blockquote){color:#243f4d}
.kzg-article-body p{margin:0 0 22px;line-height:1.84}
.kzg-article-body :is(h2,h3,h4,h5,h6){color:#12384a!important;scroll-margin-top:24px;line-height:1.27;background:transparent!important}
.kzg-article-body h2{font-size:29px;line-height:1.25;margin:38px 0 18px;border-left:4px solid #0c8e97;padding-left:15px}
.kzg-article-body h3{font-size:23px;margin:31px 0 14px}
.kzg-article-body h4{font-size:20px;margin:25px 0 12px}
.kzg-article-body :is(ul,ol){margin:12px 0 24px 20px;padding-left:20px}
.kzg-article-body li{margin:0 0 10px;padding-left:3px}
.kzg-article-body a {color:#087d89!important;text-decoration:underline;text-decoration-color:#75c3c7;text-underline-offset:3px;font-weight:650}
.kzg-article-body a:hover{color:#d35058!important}
.kzg-article-body img{max-width:100%;height:auto;border-radius:7px}
.kzg-article-body :is(figure,.wp-caption){max-width:100%;height:auto;background:transparent!important}
.kzg-article-body :is(figcaption,.wp-caption-text){font-size:12px;color:#687f8a;text-align:center}
.kzg-article-body :is(.wp-block-group,.wp-block-columns,.wp-block-column,.td-post-content,.tdb-block-inner,.td_block_wrap){background-color:transparent!important;color:inherit}
.kzg-article-body blockquote{padding:20px 25px;border-left:4px solid #0d9da4;border-radius:0 10px 10px 0;margin:26px 0;background:#e3f3f4;color:#193d4d}
.kzg-article-body blockquote p:last-child{margin-bottom:0}
.kzg-article-body table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:20px 0 26px;color:#16394a;background:transparent}
.kzg-article-body th{background:#dceef0!important;color:#123d49!important}
.kzg-article-body :is(th,td){border:1px solid #cddfe3;padding:9px 12px;min-width:75px;line-height:1.5}
.kzg-article-body pre{max-width:100%;overflow-x:auto;background:#dcebee;color:#123040;padding:15px;border-radius:9px}
.kzg-article-body code{overflow-wrap:anywhere;color:#14546b}
.kzg-article-body iframe{max-width:100%}
.kzg-article-body .aligncenter{display:block;margin-left:auto;margin-right:auto}
.kzg-article-body .alignleft{float:left;margin:6px 20px 12px 0}
.kzg-article-body .alignright{float:right;margin:6px 0 12px 20px}
.kzg-article-body:after{content:"";display:table;clear:both}
.kzg-article-bottom{border-top:1px solid #d5e5e8;margin-top:34px;padding-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.kzg-article-bottom>span{font-size:12px;color:#476674;font-weight:800;margin-right:7px}
.kzg-article-bottom a{background:#deeff1;color:#0a6570!important;font-size:11px;font-weight:750;padding:7px 12px;border-radius:20px}
.kzg-article-bottom a:hover{background:#0f838e;color:#fff!important}
.kzg-post-navigation{border-top:1px solid #d6e8e9;display:flex;justify-content:space-between;gap:20px;padding-top:22px;margin-top:25px}
.kzg-post-navigation a{font-size:12px;font-weight:750;color:#0a7d88!important}
.kzg-post-navigation a:hover{color:#d64c58!important}
.kzg-page-links{font-weight:800;display:flex;gap:10px;align-items:center}
.kzg-page-links a{background:#e1f0f2;padding:4px 12px;border-radius:5px}

/* Sidebar: ONLY the TOC list scrolls. Other boxes are fully expanded. */
.kzg-sidebar {align-self:stretch;min-width:0}
.kzg-sidebar-sticky {position:sticky;top:17px;display:flex;flex-direction:column;gap:17px}
.kzg-side-box{background:#fff;border:1px solid #dce9ec;box-shadow:0 8px 23px rgba(12,55,69,.065);padding:20px;border-radius:14px;min-width:0;overflow:visible}
.kzg-side-head{display:flex;gap:13px;align-items:center;margin-bottom:15px}
.kzg-side-icon{width:41px;height:41px;border-radius:11px;background:#e4f3f4;color:#0c8491;display:grid;place-items:center}
.kzg-side-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:#59939c}
.kzg-side-head h2{font:800 22px Georgia,'Times New Roman',serif;letter-spacing:-.025em;margin:2px 0 0;color:#143449}
.kzg-toc-box{padding-bottom:17px;border-top:3px solid #0d9099}
.kzg-toc-scroll{max-height:476px;min-height:210px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-color:#70bec5 #eaf5f6;scrollbar-width:thin;border-radius:7px}
.kzg-toc-scroll::-webkit-scrollbar{width:8px}
.kzg-toc-scroll::-webkit-scrollbar-track{background:#eaf5f6;border-radius:9px}
.kzg-toc-scroll::-webkit-scrollbar-thumb{background:#7bc3c9;border:2px solid #eaf5f6;border-radius:9px}
.kzg-toc-scroll ul{padding:0;margin:0;list-style:none}
.kzg-toc-scroll li{margin:0;border-bottom:1px solid #edf3f4}
.kzg-toc-scroll li:last-child{border-bottom:0}
.kzg-toc-scroll a{display:block;padding:10px 10px 10px 13px;color:#345568!important;font-size:12.2px;font-weight:750;line-height:1.42;border-left:3px solid transparent;overflow-wrap:anywhere}
.kzg-toc-scroll .kzg-toc-h3 a{padding-left:27px;font-weight:500;color:#617b87!important;font-size:11.7px}
.kzg-toc-scroll a:hover,.kzg-toc-scroll a.kzg-toc-active{background:#eaf7f7;border-left-color:#0b939b;color:#096977!important}
.kzg-toc-loading{font-size:12px;color:#6c8791;margin:5px}
.kzg-side-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;border-bottom:1px solid #e3eef0;padding-bottom:12px}
.kzg-side-heading h2{font-size:18px;font-family:Georgia,'Times New Roman',serif;margin:0;color:#17394b}
.kzg-side-heading>span{color:#12909a;font-size:22px}
.kzg-side-recent{display:flex;flex-direction:column;gap:0}
.kzg-side-recent>a{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:650;line-height:1.4;color:#325165!important;padding:8px 0;border-bottom:1px solid #edf3f4}
.kzg-side-recent>a:last-child{border-bottom:0;padding-bottom:0}
.kzg-side-recent>a:hover{color:#cb4c5b!important}
.kzg-side-recent-dot{width:6px;height:6px;margin-top:5px;border-radius:50%;background:#1c9da2;flex:none}
.kzg-side-categories{display:flex;flex-direction:column}
.kzg-side-categories>a{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #edf3f4;color:#335566!important;font-size:12px;font-weight:650}
.kzg-side-categories>a:hover{color:#d34c57!important}
.kzg-side-categories>a:last-child{border-bottom:0}
.kzg-side-categories>a span:last-child{color:#0c8c97}

/* Comments – no theme default white patches */
.kzg-comments{border-top:1px solid #d3e4e7;padding-top:29px;margin-top:34px;background:transparent}
.kzg-comments h2{font-size:24px}
.kzg-comments-list{padding-left:22px}
.kzg-comments-list li{margin-bottom:18px;padding:10px;background:#e4f1f2;border-radius:10px;overflow-wrap:anywhere}
.kzg-comments-list li .comment-body{background:transparent}
.kzg-comments-list .children{padding-left:15px}
.kzg-comments .comment-respond,.kzg-comments .comment-form{background:transparent!important}
.kzg-comments label{display:block;color:#1d4051;font-size:12px;margin-bottom:5px}
.kzg-comments :is(input:not([type="checkbox"]),textarea){display:block;width:100%;max-width:100%;border:1px solid #bbd4da;border-radius:7px;background:#fff!important;color:#102f3e!important;padding:10px;font-size:14px}
.kzg-comments input[type="submit"]{background:#e65e65!important;color:#fff!important;width:auto!important;padding:12px 25px!important;border:none;border-radius:25px;cursor:pointer}
.kzg-comments a{color:#088b95!important}

/* All archive / category templates replaced with a new list layout */
.kzg-archive-hero{background:linear-gradient(105deg,#e9f7f7,#f4fafb);border:1px solid #dcecf0;border-radius:16px;padding:30px 36px;margin-bottom:28px;position:relative;overflow:hidden}
.kzg-archive-hero:after{content:"♥";font-size:155px;color:rgba(13,148,155,.085);position:absolute;right:48px;top:-40px;pointer-events:none}
.kzg-archive-kicker{display:block;color:#10828c;letter-spacing:.16em;font-size:10px;font-weight:850;margin-bottom:8px}
.kzg-archive-hero h1{font-size:clamp(32px,3.6vw,46px);margin:0 0 10px;position:relative;z-index:1}
.kzg-archive-description{font-size:14px;line-height:1.6;color:#4e6774;max-width:760px;position:relative;z-index:1}
.kzg-archive-description :is(p,ul){margin:0}
.kzg-content-grid--archive{grid-template-columns:minmax(0,1fr) 290px}
.kzg-archive-content{min-width:0}
.kzg-archive-posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}
.kzg-post-card--archive .kzg-post-image-wrap{height:190px}
.kzg-post-card--archive .kzg-post-card-body{padding:18px 20px 20px}
.kzg-post-card--archive h3{font-size:18px;line-height:1.35}
.kzg-post-card--archive p{font-size:13px}
.kzg-pagination{margin-top:33px}
.kzg-pagination .nav-links{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.kzg-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:39px;height:39px;border-radius:7px;border:1px solid #d0e5e9;background:#eaf6f7;color:#0f6370!important;padding:0 10px;font-weight:750;font-size:12px}
.kzg-pagination .page-numbers.current,.kzg-pagination a.page-numbers:hover{background:#0d8792;color:#fff!important}
.kzg-empty-state{padding:45px 28px;background:#f0f8f9;border-radius:14px;text-align:center}
.kzg-empty-state h2{font-size:26px;margin:0 0 13px}
.kzg-empty-state p{font-size:14px;margin:0 0 22px;color:#55727e}

/* Collapsed nav sooner than 1150 so menu never disappears behind the logo */
@media (max-width: 1170px){
  .kzg-nav-bar{padding:12px 34px}
  .kzg-menu-toggle{display:flex;margin-left:auto}
  .kzg-primary-menu {display:none;position:absolute;left:0;right:0;top:100%;z-index:80;background:#fff;border-top:1px solid #e0ecee;border-bottom:3px solid #0b8993;box-shadow:0 15px 26px rgba(5,38,50,.17);padding:16px 33px 20px;flex-direction:column;align-items:stretch;gap:0;max-height:80vh;overflow-y:auto}
  .kzg-primary-menu.kzg-menu-open{display:flex}
  .kzg-nav-dropdown{width:100%}
  .kzg-primary-menu .kzg-nav-item{width:100%;padding:11px 12px;min-height:42px;font-size:14px;border-bottom:1px solid #ecf2f3}
  .kzg-nav-current:after,.kzg-nav-item:hover:after{display:none}
  .kzg-primary-menu .kzg-submenu{display:flex;position:static;box-shadow:none;border:0;background:#f1f8f9;min-width:0;max-width:none;width:100%;border-radius:0 0 8px 8px;padding:3px 12px 7px}
  .kzg-primary-menu .kzg-submenu a{font-size:12px;padding:7px 12px}
  .kzg-search-form{margin:14px 0 0;align-self:flex-start;width:100%}
  .kzg-search-form input,.kzg-search-form:hover input,.kzg-search-form:focus-within input{opacity:1;width:min(320px,calc(100% - 50px));padding:10px 13px;border:1px solid #bddde2}
  .kzg-hero h1{font-size:clamp(38px,5vw,54px)}
  .kzg-hero-highlights{gap:15px}
}
@media (max-width: 1020px){
  .kzg-home-section{padding-left:32px;padding-right:32px}
  .kzg-hero{padding-left:35px;padding-right:35px}
  .kzg-hero-copy{max-width:63%}
  .kzg-hero-visual{right:3%;width:41%}
  .kzg-hero-highlights{left:35px}
  .kzg-featured{margin-left:25px;margin-right:25px}
  .kzg-featured-copy{width:59%;padding:27px 29px}
  .kzg-featured-tag{display:none}
  .kzg-latest-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kzg-knowledge-cta{padding-left:34px;padding-right:34px}
  .kzg-about{padding-left:34px;padding-right:34px}
  .kzg-footer-main{padding-left:34px;padding-right:34px;gap:22px}
  .kzg-footer-bottom{padding-left:34px;padding-right:34px}
  .kzg-content-grid,.kzg-content-grid--archive{grid-template-columns:minmax(0,1fr) 270px;gap:19px}
  .kzg-interior-main{padding:32px 27px 48px}
  .kzg-article{padding:33px 31px}
  .kzg-side-box{padding:16px}
}
@media (max-width: 800px){
  body.kzg-pw-active .kzg-site{width:calc(100% - 16px);margin:8px auto 15px}
  .kzg-utility-bar{padding:8px 23px}
  .kzg-utility-right{display:none}
  .kzg-nav-bar{padding:10px 22px;min-height:76px}
  .kzg-hero{height:auto;min-height:465px;padding:36px 29px 137px}
  .kzg-hero-copy{max-width:77%}
  .kzg-hero h1{font-size:clamp(34px,5.6vw,48px)}
  .kzg-hero-copy>p{font-size:15px}
  .kzg-hero-visual{width:41%;right:0;top:40px;height:325px;opacity:.78}
  .kzg-hero-highlights{left:29px;right:20px;bottom:23px;gap:15px}
  .kzg-hero-highlights>div{font-size:10px;min-width:0}
  .kzg-hero-highlight-icon{width:35px;height:35px}
  .kzg-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .kzg-section-topline h2{font-size:30px}
  .kzg-featured{min-height:290px}
  .kzg-featured-copy{width:65%}
  .kzg-featured h2{font-size:27px}
  .kzg-featured-photo{left:48%;opacity:.7}
  .kzg-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kzg-post-card--latest .kzg-post-image-wrap{height:170px}
  .kzg-knowledge-cta{min-height:190px}
  .kzg-knowledge-cta h2{font-size:26px}
  .kzg-knowledge-cta .kzg-btn{margin-right:10px}
  .kzg-cta-heart{opacity:.19}
  .kzg-about{grid-template-columns:1fr;gap:14px}
  .kzg-about-photo{max-width:460px}
  .kzg-footer-main{grid-template-columns:repeat(2,1fr);gap:31px}
  .kzg-footer-bottom{flex-wrap:wrap}
  .kzg-content-grid,.kzg-content-grid--archive{display:flex;flex-direction:column;gap:25px;align-items:stretch}
  .kzg-sidebar-sticky{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .kzg-toc-box{grid-column:1 / -1}
  .kzg-toc-scroll{max-height:430px;min-height:160px}
  .kzg-interior-main{padding:27px 24px 43px}
}
@media (max-width: 540px){
  body.kzg-pw-active .kzg-site{width:100%;max-width:100%;margin:0;border-radius:0;border:0}
  .kzg-utility-bar,.kzg-header{border-radius:0}
  .kzg-utility-bar{padding:8px 17px;font-size:9px}
  .kzg-nav-bar{padding:10px 17px;min-height:70px}
  .kzg-logo-heart,.kzg-logo-heart svg{width:49px;height:41px}
  .kzg-logo{gap:6px}
  .kzg-logo-words strong{font-size:16px}
  .kzg-logo-words>span{font-size:10px}
  .kzg-hero{min-height:550px;padding:33px 23px 136px}
  .kzg-hero-copy{max-width:100%}
  .kzg-hero h1{font-size:clamp(35px,9vw,43px);max-width:380px}
  .kzg-hero-copy>p{max-width:310px;font-size:14px}
  .kzg-hero-actions{flex-wrap:wrap;gap:9px;max-width:300px}
  .kzg-hero-actions .kzg-btn{padding:11px 16px;min-height:42px;font-size:11px}
  .kzg-hero-visual{width:55%;height:267px;right:-12px;top:182px;opacity:.5}
  .kzg-hero-highlights{left:22px;right:12px;bottom:19px;flex-wrap:wrap;gap:11px}
  .kzg-hero-highlights>div{font-size:9px;max-width:48%;line-height:1.32;gap:7px}
  .kzg-hero-highlight-icon{width:31px;height:31px}
  .kzg-hero-highlights>div:last-child{display:none}
  .kzg-home-section{padding:30px 18px 24px}
  .kzg-section-topline{flex-wrap:wrap;align-items:flex-end;gap:11px;margin-bottom:19px}
  .kzg-section-topline h2{font-size:27px}
  .kzg-section-link{font-size:11px}
  .kzg-categories-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .kzg-category-image{height:90px}
  .kzg-category-caption{padding:8px;gap:6px;min-height:68px}
  .kzg-category-caption strong{font-size:11px}
  .kzg-cat-icon{width:29px;height:29px;flex-basis:29px}
  .kzg-cat-icon svg{width:17px;height:17px}
  .kzg-cat-arrow{width:22px;height:22px;flex-basis:22px;font-size:14px}
  .kzg-featured{margin:14px 13px 2px;min-height:320px}
  .kzg-featured-copy{width:100%;padding:26px 22px 30px;background:linear-gradient(90deg,rgba(234,248,249,.99) 0%,rgba(234,248,249,.91) 76%,rgba(234,248,249,.74))}
  .kzg-featured h2{max-width:400px;font-size:26px}
  .kzg-featured-copy p{max-width:310px;font-size:12px}
  .kzg-featured-photo{left:33%;opacity:.32}
  .kzg-latest{padding:27px 17px}
  .kzg-latest .kzg-section-topline{padding:0}
  .kzg-latest-grid{gap:13px;grid-template-columns:1fr}
  .kzg-post-card--latest{display:grid;grid-template-columns:118px 1fr;min-height:152px}
  .kzg-post-card--latest .kzg-post-image-wrap{height:100%;min-height:152px}
  .kzg-post-card--latest .kzg-post-card-body{padding:12px}
  .kzg-post-card--latest h3{font-size:13px;margin-bottom:7px}
  .kzg-post-card--latest p{font-size:11px;line-height:1.4;margin-bottom:10px}
  .kzg-post-card--latest .kzg-text-link{font-size:11px}
  .kzg-knowledge-cta{padding:31px 22px;min-height:0;flex-direction:column;align-items:flex-start;gap:19px}
  .kzg-knowledge-cta h2{font-size:25px}
  .kzg-knowledge-cta .kzg-btn{min-height:42px;font-size:12px}
  .kzg-about{padding:27px 21px 29px}
  .kzg-about h2{font-size:25px}
  .kzg-about-photo{height:155px}
  .kzg-footer{border-radius:0}
  .kzg-footer-main{padding:32px 22px 22px;grid-template-columns:1fr 1fr;column-gap:18px;row-gap:29px}
  .kzg-footer-brand{grid-column:1/-1}
  .kzg-footer-col h2{font-size:12px}
  .kzg-footer-col a{font-size:11px}
  .kzg-footer-news{grid-column:1/-1}
  .kzg-footer-bottom{padding:18px 22px;gap:13px}
  .kzg-footer-legal{gap:13px}
  .kzg-statlink{border-radius:0}
  .kzg-interior-main{padding:23px 14px 33px}
  .kzg-breadcrumbs{font-size:11px;margin-bottom:16px}
  .kzg-article{border-radius:13px;padding:26px 19px}
  .kzg-article-header h1{font-size:clamp(27px,7vw,36px)}
  .kzg-article-body{font-size:15px;line-height:1.79}
  .kzg-article-body h2{font-size:24px;padding-left:12px}
  .kzg-article-body h3{font-size:21px}
  .kzg-article-body p{line-height:1.8}
  .kzg-sidebar-sticky{display:flex;flex-direction:column;gap:14px}
  .kzg-toc-scroll{max-height:430px;min-height:180px}
  .kzg-side-box{padding:19px}
  .kzg-archive-hero{padding:27px 22px}
  .kzg-archive-hero h1{font-size:30px}
  .kzg-archive-posts{grid-template-columns:1fr;gap:16px}
  .kzg-post-card--archive .kzg-post-image-wrap{height:185px}
  .kzg-post-card--archive h3{font-size:17px}
}
@media (max-height: 790px) and (min-width: 1021px){
  .kzg-toc-scroll{max-height:max(235px,calc(100vh - 480px))}
  .kzg-sidebar-sticky{gap:12px}
  .kzg-side-box{padding:15px}
  .kzg-side-recent>a{padding:6px 0}
  .kzg-side-categories>a{padding:6px 0}
}
@media (prefers-reduced-motion:reduce){
  .kzg-site *, .kzg-site *:before,.kzg-site *:after{transition:none!important;scroll-behavior:auto!important;animation:none!important}
}
