/* ==========================================================================
   InfluxJuice - single post template
   Extends assets/style.css + assets/blog.css
   ========================================================================== */

/* ---------- breadcrumb ---------- */
.crumbs{padding:112px 0 0;font-size:.82rem;color:var(--muted)}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--green-lt)}
.crumbs span.sep{margin:0 9px;opacity:.5}

/* ---------- post hero ---------- */
.post-hero{padding:20px 0 0}
.post-hero .inner{max-width:820px}
.post-hero h1{font-size:clamp(1.85rem,4vw,3rem);margin:16px 0 20px;line-height:1.12}
.post-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  font-size:.86rem;color:var(--muted)}
.post-meta img{width:34px;height:34px;border-radius:50%;object-fit:cover;
  object-position:50% 30%;border:1px solid var(--line-2)}
.post-meta .name{color:var(--text);font-weight:600}
.post-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--muted);opacity:.6}

/* ---------- featured figure ---------- */
.post-figure{margin:34px auto 0;max-width:960px;position:relative}
.post-figure img{width:100%;border-radius:16px;display:block}
.post-figure figcaption{margin-top:11px;font-size:.8rem;color:var(--muted);text-align:center}
/* Dim only if the image needs it - see blog.css for the luminance thresholds */
.post-figure::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;
  border-radius:16px;background:transparent;pointer-events:none;transition:.3s}
.post-figure.dim-strong::after{background:rgba(11,20,40,.46)}
.post-figure.dim-light::after{background:rgba(11,20,40,.22)}
.post-figure:hover::after{background:transparent}

/* ---------- inline table of contents ---------- */
.toc{margin:44px 0 8px;background:var(--navy-2);border:1px solid var(--line-2);
  border-radius:16px;padding:26px 30px}
.article .toc h2{font-family:Jost,sans-serif;font-size:.8rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--green-lt);margin:0 0 16px;font-weight:700}
.toc ol{margin:0;padding:0;list-style:none;columns:2;column-gap:34px}
@media(max-width:700px){.toc ol{columns:1}.toc{padding:22px 20px}}
.toc>ol{counter-reset:toc}
.toc>ol>li{counter-increment:toc;margin-bottom:10px;break-inside:avoid;font-size:.93rem}
.toc>ol>li>a{color:var(--muted);display:flex;gap:10px;align-items:baseline;
  transition:.15s;text-decoration:none}
.toc>ol>li>a:hover{color:var(--green-lt)}
.toc>ol>li>a::before{content:counter(toc);color:var(--green-lt);font-family:Jost,sans-serif;
  font-size:.78rem;font-weight:700;flex:none;min-width:16px}
/* nested sub-headings (H3s) - indented, unnumbered */
.toc ol ol{columns:1;margin:8px 0 2px;padding:0}
.toc ol ol li{margin-bottom:6px;break-inside:avoid;font-size:.85rem}
.toc ol ol li a{color:var(--muted);display:block;padding-left:26px;
  text-decoration:none;transition:.15s;line-height:1.45}
.toc ol ol li a:hover{color:var(--green-lt)}

/* ---------- article body ---------- */
.article{max-width:760px;margin:52px auto 0}
.article h2{font-size:clamp(1.4rem,2.5vw,1.9rem);margin:54px 0 16px;
  scroll-margin-top:100px}
.article h2:first-of-type{margin-top:0}
.article h3{font-size:1.16rem;margin:34px 0 12px}
.article p{font-size:1.03rem;line-height:1.8;color:#c8d3e3;margin-bottom:19px}
.article strong{color:var(--text);font-weight:600}
.article a{color:var(--green-lt);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:rgba(52,211,153,.4)}
.article a:hover{text-decoration-color:var(--green-lt)}
.article ul{margin:0 0 24px;padding:0;list-style:none}
.article ul li{position:relative;padding-left:25px;margin-bottom:12px;
  font-size:1.01rem;line-height:1.72;color:#c8d3e3}
.article ul li::before{content:"";position:absolute;left:2px;top:.6em;width:8px;height:8px;
  border-radius:2px;background:var(--green)}
.article blockquote{margin:30px 0;padding:2px 0 2px 24px;border-left:3px solid var(--green);
  color:var(--text);font-size:1.08rem;line-height:1.7;font-style:italic}
.article blockquote p{margin:0;color:var(--text)}
.article figure{margin:32px 0}
.article figure img{width:100%;border-radius:12px;display:block}
.article figcaption{margin-top:10px;font-size:.8rem;color:var(--muted);text-align:center}
.article table{width:100%;border-collapse:collapse;margin:30px 0;font-size:.94rem}
.article th,.article td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line)}
.article th{font-family:Jost,sans-serif;font-size:.76rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--green-lt);font-weight:700;white-space:nowrap}
.article td{color:#c8d3e3}
.article tr:last-child td{border-bottom:0}

/* ---------- share + author ---------- */
.post-foot{margin:64px 0 0;padding-top:34px;border-top:1px solid var(--line)}
.share{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:32px}
.share .lab{font-family:Jost,sans-serif;font-size:.8rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);margin-right:4px}
.share a{width:40px;height:40px;border-radius:10px;border:1px solid var(--line-2);
  display:grid;place-items:center;font-size:.85rem;color:var(--muted);
  font-family:Jost,sans-serif;font-weight:600;transition:.18s}
.share a:hover{border-color:var(--green);color:var(--green-lt)}
.author-box{display:grid;grid-template-columns:96px 1fr;gap:24px;align-items:start;
  background:var(--navy-2);border:1px solid var(--line);border-radius:16px;padding:26px 28px}
@media(max-width:620px){.author-box{grid-template-columns:1fr;gap:16px}}
.author-box img{width:96px;height:96px;border-radius:14px;object-fit:cover;object-position:50% 28%}
.author-box h3{font-size:1.06rem;margin-bottom:4px}
.author-box .role{font-family:Jost,sans-serif;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--green-lt);margin-bottom:12px}
.author-box p{font-size:.92rem;margin-bottom:14px}

/* ---------- related ---------- */
.related{margin:70px 0 0}
.related h2{font-size:clamp(1.3rem,2.2vw,1.7rem);margin-bottom:24px}

/* ---------- post CTA ---------- */
.post-cta{margin:64px 0 0;background:linear-gradient(155deg,var(--navy) 0%,var(--navy-3) 55%,#0f1f3c 100%);
  border:1px solid var(--line);border-radius:22px;padding:44px 46px;
  display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
@media(max-width:880px){.post-cta{grid-template-columns:1fr;padding:32px 26px;gap:24px}}
.post-cta h2{font-size:clamp(1.35rem,2.3vw,1.8rem);margin-bottom:12px}
.post-cta .lead-form{display:flex;gap:10px;flex-wrap:wrap}
.post-cta .lead-form input{flex:1 1 190px;padding:13px 15px;border-radius:9px;
  border:1px solid var(--line-2);background:rgba(11,20,40,.6);color:var(--text);
  font-family:inherit;font-size:.94rem}
.post-cta .fine{font-size:.76rem;color:var(--muted);margin-top:12px}
