/* ===== SDS Blog: simple reading layout ===== */

/* ---------- Listing page ---------- */
.bl-hero{padding:150px 0 70px;color:#fff;background:linear-gradient(135deg,#04101f 0%,#07152b 60%,#082b60 100%)}
.bl-hero .container{max-width:900px}
.bl-tag{display:inline-block;padding:6px 14px;border-radius:99px;color:var(--navy-900);background:var(--gold);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.bl-hero h1{margin:20px 0 0;color:#fff;font-size:clamp(32px,4.5vw,54px);line-height:1.1;letter-spacing:-.02em}
.bl-hero h1 em{font-style:normal;color:var(--gold)}
.bl-lead{max-width:680px;margin:18px 0 0;color:rgba(255,255,255,.78);font-size:18px;line-height:1.7}
.bl-list{padding:70px 0 100px}
.bl-feature{display:grid;grid-template-columns:1.1fr 1fr;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md);background:#fff;transition:box-shadow .25s}
.bl-feature:hover{box-shadow:var(--shadow-md)}
.bl-feature-img{min-height:340px;background:var(--surface)}
.bl-feature-img img{width:100%;height:100%;object-fit:cover}
.bl-feature-body{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:44px}
.bl-feature-body h2{margin:0;color:var(--ink);font-size:clamp(23px,2.5vw,32px);line-height:1.25}
.bl-feature-body p{margin:0;color:var(--muted);font-size:16px;line-height:1.75}
.bl-meta{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--muted);font-size:14px;font-weight:600}
.bl-meta span{display:inline-flex;align-items:center;gap:8px}
.bl-meta i{color:var(--gold-2)}

/* ---------- Article page (Medium-style) ---------- */
.post{padding:130px 0 90px;background:#fff}
.post-wrap{width:min(1100px,calc(100% - 40px));margin-inline:auto}
.post-back{display:inline-block;margin-bottom:40px;color:var(--muted);font-size:14px;font-weight:600}
.post-back:hover{color:var(--ink)}
.post-head h1{margin:0 0 16px;color:#111;font-size:clamp(32px,5vw,46px);line-height:1.15;letter-spacing:-.022em;font-weight:800;text-transform:none}
.post-lead{margin:0 0 28px;color:#6b6b6b;font-size:clamp(19px,2.2vw,22px);line-height:1.5}
.post-meta{display:flex;align-items:center;gap:12px;margin-bottom:36px;padding:14px 0;border-top:1px solid #eee;border-bottom:1px solid #eee;color:#6b6b6b;font-size:14px}
.post-meta img{width:40px;height:40px;object-fit:contain;border-radius:50%;background:#f4f4f4;padding:5px}
.post-meta b{display:block;color:#111;font-size:15px;font-weight:700}
.post-cover{margin:0 0 40px}
.post-cover img{display:block;width:100%;height:auto;max-height:420px;object-fit:cover}

.post-body{color:#242424;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.75;letter-spacing:-.003em}
.post-body h2,.post-body h3,.post-body .post-table,.post-body figcaption,.post-body .post-contact{font-family:"Poppins",sans-serif}
.post-body h2{margin:56px 0 14px;color:#111;font-size:28px;line-height:1.25;font-weight:700;letter-spacing:-.015em}
.post-body h3{margin:38px 0 10px;color:#111;font-size:21px;line-height:1.3;font-weight:700}
.post-body p{margin:0 0 26px}
.post-body strong{color:#111}
.post-body ul,.post-body ol{margin:0 0 26px;padding-left:28px}
.post-body li{margin-bottom:12px;padding-left:6px}
.post-body a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.post-body figure{margin:40px 0}
.post-body figure img{display:block;width:100%;height:auto;max-height:420px;object-fit:cover}
.post-body figcaption{margin-top:10px;color:#6b6b6b;font-size:13.5px;text-align:center}
.post-note{margin:36px 0;padding:2px 0 2px 22px;border-left:3px solid #111;font-style:italic;font-size:22px;line-height:1.6;color:#242424}
.post-note strong{display:block;margin-bottom:6px;font-style:normal;font-family:"Poppins",sans-serif;font-size:14px;letter-spacing:.06em;text-transform:uppercase}

.post-table-wrap{margin:30px 0 36px;overflow-x:auto}
.post-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.65}
.post-table th{padding:10px 14px 10px 0;color:#111;text-align:left;font-size:13px;font-weight:700;border-bottom:1px solid #111}
.post-table td{padding:14px 14px 14px 0;border-bottom:1px solid #eee;vertical-align:top;color:#444}
.post-table td:first-child{color:#111;font-weight:600}

.post-contact{margin-top:64px;padding-top:32px;border-top:1px solid #eee}
.post-contact h2{margin:0 0 10px;font-size:22px}
.post-contact p{margin:0 0 14px;font-size:16px;line-height:1.7;color:#444}
.post-contact ul{margin:0 0 22px;padding:0;list-style:none}
.post-contact li{margin-bottom:6px;padding:0;font-size:15.5px;color:#444}
.post-contact a{color:#111}

@media (max-width:900px){
  .bl-feature{grid-template-columns:1fr}
  .bl-feature-img{min-height:220px}
}
@media (max-width:640px){
  .post{padding:108px 0 60px}
  .post-body{font-size:18px;line-height:1.7}
  .post-note{font-size:19px}
  .bl-feature-body{padding:26px 20px}
  .post-table thead{display:none}
  .post-table,.post-table tbody,.post-table tr,.post-table td{display:block;width:100%}
  .post-table tr{padding:14px 0;border-bottom:1px solid #eee}
  .post-table td{padding:4px 0;border:0}
  .post-table td::before{content:attr(data-label);display:block;color:#888;font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
}


/* ---------- Article page colour pass: navy hero + tinted page ---------- */
.post-hero{padding:140px 0 130px;color:#fff;background:radial-gradient(circle at 88% 0,rgba(8,120,255,.3),transparent 45%),linear-gradient(135deg,#04101f 0%,#07152b 60%,#082b60 100%)}
.post-hero .post-back{margin-bottom:28px;color:#9bd1ff}
.post-hero .post-back:hover{color:var(--gold)}
.post-hero .post-head h1{color:#fff;font-size:clamp(32px,5vw,50px)}
.post-hero .post-lead{margin-bottom:26px;color:rgba(255,255,255,.78)}
.post-hero .post-meta{margin:0;padding:0;border:0;color:rgba(255,255,255,.7)}
.post-hero .post-meta b{color:#fff}
.post-hero .post-meta img{background:#fff}
.post{padding:0 0 90px;background:var(--surface)}
.post-wrap{width:min(1100px,calc(100% - 40px))}
.post-cover{margin:-70px 0 0;position:relative;z-index:2}
.post-cover img{border-radius:var(--radius-md);box-shadow:var(--shadow-md)}
.post-body{margin-top:28px;padding:56px 64px;border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-sm)}
.post-body h2{position:relative;padding-top:18px}
.post-body h2::before{content:"";position:absolute;left:0;top:0;width:44px;height:4px;border-radius:4px;background:var(--gold)}
.post-body h2:first-child{margin-top:0}
.post-body li::marker{color:var(--gold-2);font-weight:800}
.post-body strong{color:var(--navy-900)}
.post-body a{color:var(--blue)}
.post-body figure img{border-radius:var(--radius-sm)}
.post-note{padding:22px 26px;border:0;border-left:4px solid var(--gold);border-radius:0 var(--radius-sm) var(--radius-sm) 0;background:#fff7dc;font-style:normal;font-size:18px}
.post-note strong{color:var(--navy-900)}
.post-table th{padding:12px 14px;background:var(--navy-900);color:#fff;border:0}
.post-table td{padding:14px}
.post-table tbody tr:nth-child(even){background:var(--surface)}
.post-contact{margin-top:56px;padding:34px;border:0;border-radius:var(--radius-md);color:#fff;background:linear-gradient(135deg,#04101f,#082b60)}
.post-contact h2{color:#fff;padding-top:0}
.post-contact h2::before{display:none}
.post-contact p,.post-contact li{color:rgba(255,255,255,.82)}
.post-contact strong{color:#fff}
.post-contact a:not(.btn){color:var(--gold)}
@media (max-width:640px){
  .post-hero{padding:116px 0 110px}
  .post-cover{margin-top:-60px}
  .post-body{padding:30px 22px}
  .post-table tr{border-color:var(--line)}
}

/* ---------- Fixes after visual check ---------- */
.post{display:flow-root;position:relative}
.post-hero{position:relative;z-index:0;padding-bottom:120px}
.post-cover{margin-top:-70px}
/* one font family across the article (site font) */
.post-body{font-family:"Poppins",sans-serif;font-size:17px;line-height:1.9;color:#3b4658;letter-spacing:0}
.post-body p{margin-bottom:22px}
.post-body h2{font-size:clamp(24px,2.8vw,30px);margin-top:60px}
.post-body h3{margin-top:40px}
.post-body li{margin-bottom:10px}
.post-note{font-size:16.5px;line-height:1.8}
.post-table{font-size:14.5px}
.post-table td:first-child{width:24%}
@media (max-width:640px){.post-body{font-size:16px;line-height:1.85}.post-cover{margin-top:-60px}}
@media (max-width:640px){
  .post-table td,.post-table td:first-child{width:100%;padding:4px 0}
  .post-table tbody tr:nth-child(even){background:none}
  .post-table tr{padding:16px 0}
  .post-table td:first-child{margin-bottom:4px;font-size:16px}
}

/* ---------- PDF-format article: diagrams shown whole, in PDF order ---------- */
.post-kicker{margin:0 0 12px;color:var(--gold);font-size:12.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.post-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);margin-top:-52px;border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-md)}
.post-stats div{padding:22px 14px;text-align:center}
.post-stats div+div{border-left:1px solid var(--line)}
.post-stats strong{display:block;color:#e11d2e;font-size:clamp(22px,3vw,32px);line-height:1;font-weight:800}
.post-stats span{display:block;margin-top:8px;color:var(--navy-900);font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;line-height:1.35}
.post-body{margin-top:24px}
.post-body .post-fig{margin:34px 0;text-align:center}
.post-body .post-fig img{display:inline-block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:8px;border:1px solid var(--line);background:#fff}
.post-brands{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0 8px}
.post-brands img{width:100%;height:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.post-protocol{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:22px 0 30px;padding:0;list-style:none}
.post-protocol li{padding:16px 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:center}
.post-protocol b{display:grid;place-items:center;width:30px;height:30px;margin:0 auto 8px;border-radius:50%;color:var(--navy-900);background:var(--gold);font-size:13px}
.post-protocol strong{display:block;font-size:14px;color:var(--navy-900)}
.post-protocol span{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.4}
.post-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px;margin:22px 0 26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.16)}
.post-contact-grid strong{display:block;margin-bottom:6px;color:var(--gold)!important;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.post-contact-grid a,.post-contact-grid span{display:block;color:rgba(255,255,255,.88);font-size:15px;line-height:1.7;text-decoration:none}
.post-contact-grid a:hover{color:var(--gold)}
.bl-feature-img img[src*="img116"]{object-fit:contain;padding:14px;background:#fff}
@media (max-width:640px){
  .post-stats{grid-template-columns:repeat(2,1fr);margin-top:-44px}
  .post-stats div:nth-child(3){border-left:0}
  .post-stats div:nth-child(n+3){border-top:1px solid var(--line)}
  .post-brands,.post-contact-grid{grid-template-columns:1fr}
  .post-protocol{grid-template-columns:1fr}
  .post-protocol li{display:grid;grid-template-columns:40px 1fr;text-align:left;align-items:center;column-gap:10px;padding:12px}
  .post-protocol b{margin:0;grid-row:1/3}
}

/* ---------- Layout upgrade: sticky contents + split rows + cards ---------- */
.post-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;align-items:start;margin-top:24px}
.post-layout .post-body{margin-top:0;padding:48px 52px}
.post-toc{position:sticky;top:100px;padding:22px;border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-sm)}
.post-toc h4{margin:0 0 12px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.post-toc ol{margin:0 0 18px;padding:0 0 0 14px;list-style:none;border-left:2px solid var(--line)}
.post-toc a:not(.btn){position:relative;display:block;padding:8px 0;color:var(--muted);font-size:13.5px;font-weight:600;line-height:1.4}
.post-toc a:not(.btn)::before{content:"";position:absolute;left:-16px;top:50%;width:2px;height:0;background:var(--gold-2);transform:translateY(-50%);transition:height .2s}
.post-toc a:not(.btn):hover,.post-toc a.is-active{color:var(--navy-900)}
.post-toc a.is-active::before{height:100%}
.post-toc-btn{display:flex;justify-content:center;width:100%;padding:12px 16px;font-size:14px;text-decoration:none}

.post-split{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center;margin:8px 0 26px}
.post-split .post-fig{margin:0}
.post-split p{margin:0}
.post-split.post-split .post-fig img{max-width:100%!important}

.post-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0 26px;padding:0;list-style:none}
.post-cards li{margin:0;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:15.5px;line-height:1.7}
.post-cards li:last-child{grid-column:1/-1}
.post-cards strong{display:block;margin-bottom:4px;color:var(--navy-900)}

.post-checks{counter-reset:c;display:grid;gap:12px;margin:18px 0 26px;padding:0;list-style:none}
.post-checks li{position:relative;margin:0;padding:18px 20px 18px 64px;border:1px solid var(--line);border-radius:12px;background:#fff;counter-increment:c;font-size:15.5px;line-height:1.7}
.post-checks li::before{content:counter(c);position:absolute;left:18px;top:18px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--navy-900);background:var(--gold);font-weight:800;font-size:14px}
.post-checks strong{color:var(--navy-900)}

@media (max-width:1000px){
  .post-layout{grid-template-columns:1fr}
  .post-toc{display:none}
  .post-layout .post-body{padding:34px 28px}
}
@media (max-width:760px){
  .post-split{grid-template-columns:1fr;gap:20px}
  .post-cards{grid-template-columns:1fr}
}
@media (max-width:640px){.post-layout .post-body{padding:26px 20px}}
.post-body ul.post-cards,.post-body ol.post-checks{padding-left:0}
.post-split{align-items:start}
.post-split.tall{grid-template-columns:1fr 330px}
@media (max-width:760px){.post-split.tall{grid-template-columns:1fr}}
.post-panel{margin:26px 0 30px;padding:28px 20px;border-radius:var(--radius-md);background:var(--surface);text-align:center}
.post-panel .post-fig{margin:0}
.post-panel .post-fig img{max-width:460px!important;box-shadow:var(--shadow-sm)}
