/*
 * KRENEXIS / LIVE JOURNAL & ARTICLE LAYOUT CORRECTION
 * Fixes only post index (/guides/) and single posts.
 * No changes to post content, slugs, publishing dates, SEO, or AdSense.
 * The main journal grid is defined in krenexis-journal-v2.css;
 * this file safely refines padding, accessibility and article layout.
 */
/* Navigation is absolute and overlays the journal hero. Removing the earlier 94px top spacer eliminates the pale strip between the navy nav and navy hero. */
body.blog .kp2-journal{padding-top:0!important;background:#ecf5f7;color:#142d3b;width:100%;overflow-x:clip}
body.blog .kp2-journal .kp2-container{max-width:1520px;margin-inline:auto;padding-inline:clamp(22px,5.5vw,92px);box-sizing:border-box}
body.blog .kp2-journal-hero{overflow:hidden}
body.blog .kp2-journal-hero .kp2-container{padding-inline:clamp(22px,5.5vw,92px)!important}
body.blog .kp2-journal-hero .kp2-section-line{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:15px 30px;max-width:100%;white-space:normal}
body.blog .kp2-journal-hero .kp2-section-line span{overflow-wrap:normal;white-space:normal;max-width:100%}
body.blog .kp2-journal-hero h1{font-size:clamp(66px,10vw,152px);max-width:1190px;overflow-wrap:break-word;text-wrap:balance}
body.blog .kp2-journal-feed .kp2-container{width:100%}
body.blog .kp2-journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px;row-gap:72px;align-items:stretch}
body.blog .kp2-journal-card{min-width:0}
body.blog .kp2-journal-image{overflow:hidden;display:block;width:100%}
body.blog .kp2-journal-image img{width:100%;height:100%;object-fit:cover;display:block}
body.blog .kp2-journal-card h2 a{text-decoration:none;color:inherit}
body.blog .kp2-journal-card h2 a:hover,body.blog .kp2-journal-card h2 a:focus-visible{color:#0e829c}
body.blog .kp2-journal-read:focus-visible{outline:2px solid #036b83;outline-offset:5px}
body.blog .kp2-journal-card:first-child{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
body.blog .kp2-journal-card:first-child .kp2-journal-image{height:100%;min-height:320px}
body.blog .kp2-journal-card:first-child .kp2-journal-image img{height:100%}
body.blog .kp2-journal-pagination a{color:#12667e}
body.single-post .k-editorial{padding-top:0!important;background:#eef5f7!important;color:#132c38;min-width:0;overflow-x:clip}
body.single-post .k-article{padding-bottom:clamp(75px,9vw,135px)}
body.single-post .k-article-heading.k-wrap{
  position:relative;isolation:isolate;box-sizing:border-box;
  width:100%;max-width:none!important;margin:0;
  padding:clamp(160px,14vw,215px) clamp(22px,7vw,110px) clamp(100px,9vw,145px);
  color:#f3fbfd;background:radial-gradient(ellipse at 83% 12%,#146a80aa,transparent 50%),linear-gradient(115deg,#071824,#113747 65%,#1C4859);
}
body.single-post .k-article-heading .smallcaps{color:#68dfed!important;letter-spacing:.14em;line-height:1.6;max-width:100%}
body.single-post .k-article-heading .smallcaps a{color:#b4f0f7;text-decoration:none;border-bottom:1px solid #5cb5ca;padding-bottom:5px}
body.single-post .k-article-heading h1{
  color:#f7fcff;font-size:clamp(50px,7.2vw,111px);line-height:.99;letter-spacing:-.075em;
  max-width:1180px;margin:clamp(32px,4vw,55px) 0 28px;
  overflow-wrap:break-word;text-wrap:balance
}
body.single-post .k-article-heading p{
  color:#c6dce3!important;font-size:clamp(16px,1.6vw,21px);line-height:1.65;
  max-width:770px;margin:0
}
body.single-post .k-article-featured.k-wrap{
  position:relative;z-index:2;box-sizing:border-box;
  width:min(100%,1330px);max-width:1330px;
  padding-inline:clamp(22px,4.5vw,65px);
  margin:-65px auto clamp(55px,7vw,100px);
}
body.single-post .k-article-featured img{
  width:100%;height:auto;max-height:650px;object-fit:cover;
  aspect-ratio:1.91/1;border-radius:12px;border:6px solid #fff;
  box-shadow:0 20px 52px rgba(7,34,48,.15)
}
body.single-post .k-article-body.k-wrap{
  box-sizing:border-box;width:100%;max-width:900px!important;
  padding-inline:clamp(22px,4vw,42px);
  margin-inline:auto;color:#213a47!important;
  font-size:clamp(17px,1.4vw,19px);line-height:1.88;
  overflow-wrap:break-word
}
/* Only suppress the extra content H1 if the template matched it to the title. */
body.single-post .k-article-duplicate-lead .k-article-body>h1:first-child{display:none}
body.single-post .k-article-body :is(h1,h2,h3,h4){
  color:#132e3c;line-height:1.2;letter-spacing:-.045em;font-weight:850;
  scroll-margin-top:110px
}
body.single-post .k-article-body h2{font-size:clamp(27px,3vw,40px);margin:1.8em 0 .6em}
body.single-post .k-article-body h3{font-size:clamp(23px,2.2vw,31px);margin:1.5em 0 .55em}
body.single-post .k-article-body p{margin:0 0 1.45em}
body.single-post .k-article-body a{color:#0a7790;text-decoration:underline;text-underline-offset:3px}
body.single-post .k-article-body :is(img,video,iframe){max-width:100%}
body.single-post .k-article-body :is(figure,.wp-block-image){max-width:100%;height:auto}
body.single-post .k-article-body blockquote{border-left:4px solid #00c9d9;background:#e3f0f4;padding:25px 30px;margin:2em 0;color:#163f4d}
body.single-post .k-article-body :is(pre,.wp-block-code){max-width:100%;overflow-x:auto}
body.single-post .k-article-body table{display:block;max-width:100%;overflow-x:auto}
body.single-post .k-article-bottom.k-wrap{
  width:min(100%,1100px);margin:85px auto 0;
  border-top:1px solid #aacbd5;padding:28px clamp(22px,4vw,45px) 0;
  color:#1c5567;align-items:center
}
body.single-post .k-article-bottom a{color:#0c6a85;text-decoration:none}
body.single-post .k-article-bottom nav{display:flex;flex-wrap:wrap;gap:20px}
body.single-post .k-article-comments{box-sizing:border-box;max-width:900px;margin:55px auto;padding-inline:22px}
@media(max-width:980px){
  body.blog .kp2-journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.blog .kp2-journal-card:first-child{grid-column:1/-1}
  body.single-post .k-article-heading.k-wrap{padding-top:165px}
}
@media(max-width:680px){
  body.blog .kp2-journal .kp2-container{padding-inline:22px}
  body.blog .kp2-journal-hero h1{font-size:clamp(52px,11vw,80px);line-height:.98}
  body.blog .kp2-journal-hero .kp2-section-line{flex-direction:column;align-items:flex-start}
  body.blog .kp2-journal-grid{grid-template-columns:1fr;gap:48px}
  body.blog .kp2-journal-card:first-child{grid-column:1;grid-template-columns:1fr;gap:16px}
  body.blog .kp2-journal-card:first-child .kp2-journal-image{min-height:0;aspect-ratio:1.45}
  body.single-post .k-article-heading.k-wrap{padding:145px 22px 95px}
  body.single-post .k-article-heading h1{font-size:clamp(42px,10vw,64px)}
  body.single-post .k-article-featured.k-wrap{margin-top:-48px;padding-inline:14px;margin-bottom:48px}
  body.single-post .k-article-featured img{border-width:4px;border-radius:8px}
  body.single-post .k-article-bottom{display:block}
  body.single-post .k-article-bottom nav{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){
  body.blog .kp2-journal-image img{transition:none!important}
}

/* Krenexis Blog nav: match the site's original dark navy global header.
   The older v2 rule made ONLY the Guides page header light. */
body.blog .k-nav{
  background:#07141e!important;color:#f6fbfc!important;
  border-bottom:1px solid rgba(87,175,197,.37)!important
}
body.blog .k-links a:not(.k-cta){
  color:#f6fbfc!important
}
body.blog .k-links a:not(.k-cta):hover,
body.blog .k-links a:not(.k-cta):focus-visible{
  color:#67e6ef!important
}
body.blog .k-logo-wordmark{filter:none!important}
body.blog .k-logo-symbol{filter:none!important}
body.blog .k-menu-toggle{
  color:#f6fbfc!important;border-color:#50788d!important
}
@media(max-width:950px){
  body.blog .k-links{background:#0c2431!important;border:1px solid #3a6777!important}
}

/* Single post: editorial reading grid + genuine WP author and related posts. */
body.single-post .k-article-content-grid{
  box-sizing:border-box;
  width:100%;max-width:1440px;
  padding-inline:clamp(22px,5vw,76px);
  margin:0 auto;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,350px);
  gap:clamp(35px,5vw,80px);
  align-items:start
}
body.single-post .k-article-main{min-width:0;width:100%}
body.single-post .k-article-main .k-article-body.k-wrap{
  max-width:100%!important;width:100%!important;
  margin:0!important;padding:0!important;
  box-sizing:border-box;overflow-wrap:break-word
}
body.single-post .k-article-sidebar{
  min-width:0;align-self:start;position:sticky;top:108px;
  display:grid;gap:20px
}
body.single-post .k-article-sidebar-card{
  padding:clamp(24px,2.5vw,32px);
  background:#fff;color:#153345;
  border:1px solid #c5dbe2;border-radius:12px;
  box-shadow:0 13px 34px rgba(16,48,64,.06)
}
body.single-post .k-sidebar-eyebrow{
  display:block;font-size:10px;font-weight:900;
  text-transform:uppercase;letter-spacing:.17em;
  color:#0e8197;margin-bottom:22px
}
body.single-post .k-author-heading{
  display:flex;gap:15px;align-items:center;min-width:0
}
body.single-post .k-author-initial{
  width:66px;height:66px;flex:0 0 66px;border-radius:50%;
  background:linear-gradient(145deg,#1C4859,#11808C);
  display:grid;place-items:center;color:#eaffff;
  font-size:30px;line-height:1;font-weight:900
}
body.single-post .k-author-heading>div:last-child{min-width:0}
body.single-post .k-author-heading h2{
  font-size:clamp(20px,1.8vw,26px);
  letter-spacing:-.04em;line-height:1.1;
  color:#133544;margin:0 0 9px;font-weight:850;
  overflow-wrap:break-word
}
body.single-post .k-author-heading span{
  display:block;font-size:10px;line-height:1.5;
  letter-spacing:.10em;color:#55808c;font-weight:800
}
body.single-post .k-author-card>p{
  color:#506e7a;font-size:15px;line-height:1.72;
  margin:25px 0
}
body.single-post .k-sidebar-link{
  display:inline-block;font-size:11px;letter-spacing:.12em;
  font-weight:900;color:#087d93!important;
  padding-bottom:9px;border-bottom:1px solid #0f879a;
  text-decoration:none
}
body.single-post .k-related-card>h2{
  font-size:clamp(27px,2.4vw,38px);
  font-weight:900;letter-spacing:-.065em;
  line-height:1.03;margin:0 0 20px;
  color:#113343
}
body.single-post .k-related-card>h2 em{
  display:block;font-family:Georgia,serif;
  font-weight:400;color:#128399
}
body.single-post .k-related-list{display:grid;gap:0}
body.single-post .k-related-item{
  display:grid;grid-template-columns:86px minmax(0,1fr);
  gap:13px;text-decoration:none!important;
  padding:16px 0;border-top:1px solid #d6e6ea;
  align-items:start;min-width:0
}
body.single-post .k-related-thumb{
  display:block;overflow:hidden;
  width:86px;aspect-ratio:1.05;
  background:#d7e8ed;border-radius:5px
}
body.single-post .k-related-thumb img{
  display:block;width:100%;height:100%;object-fit:cover
}
body.single-post .k-related-no-thumb{
  width:100%;height:100%;display:grid;place-items:center;
  font-size:27px;font-weight:900;color:#0a738b
}
body.single-post .k-related-copy{display:block;min-width:0}
body.single-post .k-related-copy small{
  display:block;color:#567c88;
  font-size:10px;line-height:1.5;margin-bottom:6px
}
body.single-post .k-related-copy strong{
  display:block;font-size:14px;font-weight:850;
  line-height:1.36;color:#153442
}
body.single-post .k-related-item:hover strong,
body.single-post .k-related-item:focus-visible strong{
  color:#0e879d
}
body.single-post .k-related-read{
  display:block;font-size:9px;font-weight:900;
  letter-spacing:.08em;color:#07859a;margin-top:10px
}
body.single-post .k-related-empty{
  font-size:14px;line-height:1.6;color:#54717e
}
body.single-post .k-sidebar-cta{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#123443;color:#dfffff!important;text-decoration:none;
  border:1px solid #2c6677;border-radius:8px;
  padding:21px;font-weight:900;font-size:11px;letter-spacing:.13em
}
body.single-post .k-sidebar-cta:hover{
  background:#18536a
}
/* Link the existing post-navigation label to the actual native posts page. */
body.single-post .k-article-main .k-article-bottom.k-wrap{
  box-sizing:border-box;max-width:100%!important;width:100%;
  padding:27px 0 0;margin:80px 0 0;align-items:center
}
body.single-post .k-article-studio-link{
  color:#0b6985!important;display:inline-flex;gap:12px;
  align-items:center;text-decoration:none;border-bottom:1px solid #0c7189;
  padding-bottom:9px;font-weight:900;font-size:11px;letter-spacing:.1em
}
body.single-post .k-article-studio-link:hover{
  color:#00a8bc!important;border-color:#00a8bc
}
body.single-post .k-article-studio-link span{font-size:17px}
body.single-post .k-article-bottom nav a:focus-visible,
body.single-post .k-article-studio-link:focus-visible{
  outline:2px solid #008a9e;outline-offset:5px
}

/* Comments: clean card, readable fields, original cyan CTA instead of lime. */
body.single-post .k-article-comments.k-wrap{
  width:100%;max-width:100%;box-sizing:border-box;
  margin:clamp(45px,6vw,75px) 0 0!important;
  padding:clamp(24px,3vw,38px)!important;
  background:#fff;border:1px solid #c6dce3;
  border-radius:12px;box-shadow:0 12px 35px rgba(19,54,69,.05);
  overflow-wrap:break-word
}
body.single-post .k-article-comments #reply-title,
body.single-post .k-article-comments .comments-title{
  color:#153646;font-size:clamp(27px,2.6vw,36px);
  letter-spacing:-.045em;font-weight:900;line-height:1.15;
  margin:0 0 15px
}
body.single-post .k-article-comments .logged-in-as,
body.single-post .k-article-comments .comment-notes{
  font-size:14px;line-height:1.65;color:#566e79
}
body.single-post .k-article-comments .logged-in-as a{
  color:#076982;text-decoration:underline
}
body.single-post .k-article-comments :is(.comment-form,.comment-form-comment,.comment-form-author,.comment-form-email,.comment-form-url){
  box-sizing:border-box;max-width:100%
}
body.single-post .k-article-comments .comment-form label{
  display:block;color:#1c4658;
  font-size:13px;line-height:1.5;font-weight:800;
  margin:0 0 9px
}
body.single-post .k-article-comments :is(textarea,input[type=text],input[type=email],input[type=url]){
  display:block;box-sizing:border-box;
  max-width:100%;width:100%;
  background:#f6fafb;color:#143544;
  border:1px solid #b8d0d9;border-radius:8px;
  padding:15px 16px;font:inherit;font-size:16px;
  outline:none;transition:border-color .18s,box-shadow .18s
}
body.single-post .k-article-comments textarea{
  min-height:155px;resize:vertical;line-height:1.65
}
body.single-post .k-article-comments :is(textarea,input[type=text],input[type=email],input[type=url]):focus{
  border-color:#008ba3;box-shadow:0 0 0 3px rgba(0,201,217,.15)
}
body.single-post .k-article-comments .form-submit{margin:22px 0 0}
body.single-post .k-article-comments :is(#submit,.submit){
  display:inline-flex!important;justify-content:center;align-items:center;
  min-height:50px;border:0;border-radius:5px;
  background:#00C9D9!important;color:#062631!important;
  padding:15px 27px;font-size:12px;font-weight:900;
  letter-spacing:.11em;text-transform:uppercase;
  cursor:pointer;box-shadow:none;transition:background .18s,transform .18s
}
body.single-post .k-article-comments :is(#submit,.submit):hover{
  background:#5be6ec!important;transform:translateY(-2px)
}
body.single-post .k-article-comments :is(#submit,.submit):focus-visible{
  outline:3px solid #176c81;outline-offset:4px
}
body.single-post .k-article-comments .comment-list{
  list-style:none;padding:0;margin:28px 0
}
body.single-post .k-article-comments .comment-list li{
  border-bottom:1px solid #d8e7ec;padding:17px 0;list-style:none
}
body.single-post .k-article-comments .comment-author{font-weight:800;color:#143544}
body.single-post .k-article-comments .comment-meta a{color:#62818d}
body.single-post .k-article-comments .reply a{color:#007e98}
@media(max-width:1070px){
  body.single-post .k-article-content-grid{
    grid-template-columns:minmax(0,1fr);max-width:970px;gap:55px
  }
  body.single-post .k-article-sidebar{
    position:static;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start
  }
  body.single-post .k-sidebar-cta{grid-column:1/-1}
}
@media(max-width:680px){
  body.single-post .k-article-content-grid{padding-inline:22px;gap:40px}
  body.single-post .k-article-sidebar{grid-template-columns:minmax(0,1fr)}
  body.single-post .k-sidebar-cta{grid-column:1}
  body.single-post .k-article-comments.k-wrap{padding:21px!important}
  body.single-post .k-article-main .k-article-bottom.k-wrap{
    display:flex;flex-direction:column;align-items:flex-start;gap:20px
  }
}

