/* Blog post layout (components/site/BlogPost.tsx) — Ben 2026-08-21.
   Ahrefs-style measure: sticky rail + 680px reading column, 18px body. */

.kod-post{background:#fff;padding:72px 24px 80px;}
.kod-post__inner{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:280px minmax(0,680px);column-gap:72px;justify-content:center;align-items:start;}
.kod-post__rail{position:sticky;top:110px;}
.kod-post *,.kod-related *{box-sizing:border-box;}

/* rail: authors + meta */
.kod-post__authors{display:flex;flex-direction:column;gap:14px;}
.kod-post__byline{display:flex;align-items:center;gap:12px;color:#111 !important;text-decoration:none !important;font-family:Poppins,sans-serif;}
.kod-post__avatar{flex:none;width:48px;height:48px;border-radius:50%;overflow:hidden;background:#FFDA1A;display:block;}
.kod-post__avatar img{width:100% !important;height:100% !important;max-width:none !important;object-fit:cover;display:block;margin:0 !important;border-radius:0;}
.kod-post__name{display:block;font-size:16px;font-weight:700;line-height:1.25;}
.kod-post__role{display:block;font-size:13.5px;color:#5b5b5b;line-height:1.3;margin-top:2px;}
a.kod-post__byline:hover .kod-post__name{text-decoration:underline;text-decoration-color:#FFDA1A;text-decoration-thickness:2px;text-underline-offset:3px;}
.kod-post__meta{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0 !important;font-family:Poppins,sans-serif;font-size:14px;color:#5b5b5b;line-height:1.4;}
.kod-post__meta a{color:#5b5b5b;text-decoration:none;}

/* rail: contents */
.kod-toc{margin-top:28px;padding-top:24px;border-top:1px solid #e6e6e6;font-family:Poppins,sans-serif;}
.kod-toc__summary{list-style:none;cursor:default;font-size:14px;font-weight:700;color:#111;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;}
.kod-toc__summary::-webkit-details-marker{display:none;}
.kod-toc__summary::after{content:"";width:8px;height:8px;border-right:2px solid #111;border-bottom:2px solid #111;transform:rotate(45deg);margin-right:4px;display:none;}
.kod-toc ul{list-style:none;margin:0;padding:0;}
.kod-toc li{margin:0;padding:0;}
.kod-toc a{display:block;padding:6px 0 6px 14px;border-left:2px solid transparent;margin-left:-1px;font-size:14.5px;line-height:1.4;color:#5b5b5b;text-decoration:none;transition:color .15s,border-color .15s;}
.kod-toc a:hover{color:#111;}
.kod-toc li.is-active > a{color:#111;font-weight:600;border-left-color:#FFDA1A;}
.kod-toc ul ul a{padding-left:28px;font-size:13.5px;}
.kod-toc__body{max-height:calc(100vh - 330px);overflow:auto;scrollbar-width:thin;}

/* article column */
.kod-post__article{min-width:0;font-family:Poppins,sans-serif;color:#1a1a1a;}
.kod-post__content > *:first-child{margin-top:0;}
.kod-post__content p,.kod-post__content li{font-size:17px;line-height:1.7;}
.kod-post__content p{margin:0 0 24px;}
.kod-post__content h2{font-size:28px !important;line-height:1.2 !important;font-weight:800;text-transform:uppercase;letter-spacing:0;margin:56px 0 18px !important;color:#111;}
.kod-post__content h3{font-size:21px !important;line-height:1.3 !important;font-weight:700;text-transform:none;margin:36px 0 12px !important;color:#111;}
.kod-post__content h4{font-size:18px;font-weight:700;margin:28px 0 8px;}
.kod-post__content ul,.kod-post__content ol{margin:0 0 24px;padding-left:26px;}
.kod-post__content li{margin:0 0 8px;}
.kod-post__content li::marker{color:#111;}
.kod-post__content a{color:#111;font-weight:600;text-decoration:underline;text-decoration-color:#FFDA1A;text-decoration-thickness:2px;text-underline-offset:3px;}
.kod-post__content a:hover{text-decoration-color:#111;}
.kod-post__content strong{font-weight:700;color:#111;}
.kod-post__content em{font-style:italic;}
.kod-post__content img{max-width:100%;height:auto;border-radius:16px;margin:8px 0 24px;}
.kod-post__content blockquote{margin:32px 0;padding:4px 0 4px 22px;border-left:4px solid #FFDA1A;font-size:19px;line-height:1.6;color:#111;}
.kod-post__content blockquote p{margin:0;font-size:19px;}
.kod-post__content hr{border:0;border-top:1px solid #e6e6e6;margin:40px 0;}
.kod-post__content table{width:100%;border-collapse:collapse;margin:8px 0 32px;font-size:16px;line-height:1.5;}
.kod-post__content thead th{background:#111;color:#fff;text-align:left;font-weight:700;padding:12px 14px;}
.kod-post__content thead th:first-child{border-radius:10px 0 0 0;}
.kod-post__content thead th:last-child{border-radius:0 10px 0 0;}
.kod-post__content td{padding:12px 14px;border-bottom:1px solid #e6e6e6;vertical-align:top;}
.kod-post__content td:first-child{font-weight:600;color:#111;}
.kod-post__content code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:#f3f3f3;padding:2px 6px;border-radius:6px;}
.kod-post__content pre{background:#111;color:#fff;padding:20px;border-radius:12px;overflow:auto;margin:0 0 24px;}
.kod-post__content pre code{background:none;color:inherit;padding:0;}

/* TL;DR — same treatment as the case-study TL;DR band (yellow, chevron
   bullets from /wp-content/uploads/2026/03/Vector-20.svg, the light swoosh
   from hover-acc-bg.png), fitted to the reading column. */
.kod-tldr{position:relative;overflow:hidden;background:#F9DD4B;border-radius:20px;padding:34px 40px 30px;margin:0 0 48px;}
.kod-tldr::after{content:"";position:absolute;left:40px;top:-4px;width:392px;height:162px;background:url(/wp-content/uploads/2026/02/hover-acc-bg.png) no-repeat;background-size:contain;pointer-events:none;}
.kod-tldr > *{position:relative;z-index:1;}
.kod-tldr__title{font-family:Poppins,sans-serif;font-size:28px !important;line-height:1.1 !important;font-weight:800;text-transform:uppercase;color:#111;margin:0 0 22px !important;}
.kod-tldr__body ul,.kod-tldr__body ol{list-style:none;margin:0;padding:0;}
.kod-tldr__body li{position:relative;padding-left:34px;margin:0 0 14px;font-size:18px;line-height:1.5;color:#111;}
.kod-tldr__body li:last-child{margin-bottom:0;}
.kod-tldr__body li::before{content:"";position:absolute;left:0;top:.45em;width:16px;height:16px;background:url(/wp-content/uploads/2026/03/Vector-20.svg) no-repeat center/contain;}
.kod-tldr__body li strong{font-weight:700;}
.kod-tldr__body p{font-size:18px;line-height:1.5;color:#111;margin:0 0 10px;}
.kod-tldr__body a{color:#111;font-weight:600;}

/* About the authors */
.kod-authors{margin-top:56px;padding-top:36px;border-top:1px solid #e6e6e6;}
.kod-authors__title{font-size:22px !important;line-height:1.2 !important;font-weight:800;text-transform:uppercase;margin:0 0 22px !important;color:#111;}
.kod-authors__card{display:flex;gap:20px;align-items:flex-start;margin:0 0 26px;}
.kod-authors__photo{flex:none;width:72px;height:72px;border-radius:50%;overflow:hidden;background:#FFDA1A;display:block;}
.kod-authors__photo img{width:100% !important;height:100% !important;max-width:none !important;object-fit:cover;display:block;margin:0 !important;border-radius:0;}
.kod-authors__text{min-width:0;}
.kod-authors__name{display:inline-block;font-size:18px;font-weight:700;color:#111;text-decoration:none;line-height:1.3;}
.kod-authors__name:hover{text-decoration:underline;text-decoration-color:#FFDA1A;text-decoration-thickness:2px;text-underline-offset:3px;}
.kod-authors__role{display:block;font-size:14px;color:#5b5b5b;margin:2px 0 8px;}
.kod-authors__text p{font-size:16px;line-height:1.65;margin:0 0 8px;color:#1a1a1a;}
.kod-authors__links{font-size:14.5px;}
.kod-authors__links a{color:#111;font-weight:600;text-decoration:underline;text-decoration-color:#FFDA1A;text-decoration-thickness:2px;text-underline-offset:3px;}

/* Subscribe box (template markup, re-homed) */
.kod-post__subscribe{margin-top:48px;}
.kod-post__subscribe .elementor-element-3109f76{width:100% !important;max-width:none !important;margin:0 !important;}
.kod-post__subscribe .kod-sub-msg{margin-top:12px;font-size:15px;color:#FFDA1A;font-weight:600;}

/* You may also like */
.kod-related{background:#111;padding:88px 24px 96px;position:relative;overflow:hidden;}
.kod-related__inner{max-width:1200px;margin:0 auto;position:relative;}
.kod-related__title{font-family:Poppins,sans-serif;font-size:44px !important;line-height:1.15 !important;font-weight:800;text-transform:uppercase;color:#fff;margin:0 0 44px !important;}
.kod-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;}
.kod-related__card{display:block;color:#fff;text-decoration:none;}
.kod-related__img{display:block;aspect-ratio:16/10;border-radius:18px;overflow:hidden;background:#222;}
.kod-related__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease;}
.kod-related__card:hover .kod-related__img img{transform:scale(1.04);}
.kod-related__meta{display:block;font-family:Poppins,sans-serif;font-size:14px;color:#b5b5b5;margin:20px 0 8px;}
.kod-related__name{display:block;font-family:Poppins,sans-serif;font-size:21px;line-height:1.35;font-weight:700;color:#fff;}
.kod-related__card:hover .kod-related__name{text-decoration:underline;text-decoration-color:#FFDA1A;text-decoration-thickness:2px;text-underline-offset:4px;}
.kod-related__cta{text-align:center;margin-top:56px;}

@media (max-width:1024px){
  .kod-post{padding:44px 20px 56px;}
  .kod-post__inner{grid-template-columns:minmax(0,1fr);row-gap:32px;max-width:680px;}
  .kod-post__rail{position:static;}
  .kod-toc__summary{cursor:pointer;}
  .kod-toc__summary::after{display:block;transition:transform .2s;}
  .kod-toc__details:not([open]) .kod-toc__summary{margin-bottom:0;}
  .kod-toc__details:not([open]) .kod-toc__summary::after{transform:rotate(-45deg);}
  .kod-toc__body{max-height:none;}
  .kod-post__content p,.kod-post__content li{font-size:16px;line-height:1.65;}
  .kod-post__content h2{font-size:23px !important;margin-top:40px !important;}
  .kod-post__content h3{font-size:19px !important;}
  .kod-post__content table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .kod-post__content th,.kod-post__content td{min-width:150px;font-size:14.5px;padding:10px 12px;}
  .kod-post__content td:first-child{min-width:120px;}
  .kod-tldr{padding:26px 22px 22px;border-radius:16px;}
  .kod-tldr::after{width:260px;height:108px;left:20px;}
  .kod-tldr__title{font-size:24px !important;margin-bottom:16px !important;}
  .kod-tldr__body li{font-size:16px;padding-left:30px;margin-bottom:12px;}
  .kod-tldr__body li::before{width:14px;height:14px;top:.4em;}
  .kod-related{padding:64px 20px 72px;}
  .kod-related__title{font-size:32px !important;margin-bottom:28px !important;}
  .kod-related__grid{grid-template-columns:1fr;gap:32px;}
  .kod-authors__photo{width:60px;height:60px;}
}
