/* Components used only by CMS-rendered blog pages.
   Kept out of site.css on purpose: site.css is linked with ?v=28 from ~60
   hand-written pages, so adding rules there would either go unseen by anyone
   holding a cached copy, or force a version bump across every one of those
   files. This loads alongside it and versions independently.
   Every value below is a site.css custom property — no new colours. */

/* Table of contents ---------------------------------------------------- */
.toc{margin:0 0 34px;padding:18px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-card)}
.toc h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-40);margin:0 0 10px;font-weight:600}
.toc ol{margin:0;padding:0 0 0 18px;display:grid;gap:7px}
.toc li{font-size:14.5px;line-height:1.5;color:var(--text-60)}
.toc a{color:var(--text-60);text-decoration:none;border-bottom:1px solid transparent}
.toc a:hover{color:var(--text);border-bottom-color:var(--g3)}

/* Wide tables inside prose --------------------------------------------- */
.prose .prose-table{margin:26px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-card)}
.prose .prose-table table{width:100%;min-width:30rem;border-collapse:collapse;margin:0;font-size:15px;line-height:1.6}
.prose .prose-table th,.prose .prose-table td{padding:11px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.prose .prose-table th{color:var(--text);font-weight:600;font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;background:var(--bg-3)}
.prose .prose-table tbody tr:last-child td{border-bottom:0}
.prose .prose-table th>*,.prose .prose-table td>*{margin:0}

/* FAQ accordion -------------------------------------------------------- */
.faq-sec{margin:52px 0 0}
.faq-sec>h2{font-size:24px;margin:0 0 18px}
.faq-list{border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-q{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:17px 0;cursor:pointer;list-style:none}
/* The question is an h3 for the document outline; it must not inherit the
   heading scale, because inside a disclosure row it is a control label. */
.faq-q h3{margin:0;font-weight:600;font-size:17px;line-height:1.4;color:var(--text);
  letter-spacing:normal}
.faq-q::marker{content:""}
.faq-q::-webkit-details-marker{display:none}
.faq-q:hover h3{color:var(--g3)}
.faq-ic{flex:0 0 auto;font-size:20px;font-weight:300;line-height:1;color:var(--text-40);
  transition:transform .3s var(--ease),color .2s var(--ease)}
.faq-item[open] .faq-ic{transform:rotate(45deg);color:var(--g3)}
.faq-a{padding:0 0 18px;color:var(--text-60);font-size:16px;line-height:1.7;max-width:64ch}

/* Related reading ------------------------------------------------------ */
.related{margin:52px 0 0;padding:26px 0 0;border-top:1px solid var(--line)}
.related h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-40);margin:0 0 16px;font-weight:600}
.related ul{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.related a{display:block;font-size:17px;font-weight:600;line-height:1.35;color:var(--text);text-decoration:none}
.related a:hover{color:var(--g3)}
.related small{display:block;margin-top:4px;font-size:14.5px;line-height:1.5;color:var(--text-40);font-weight:400}

/* Closing CTA ---------------------------------------------------------- */
.post-cta{margin:56px 0 0;padding:34px 28px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--bg-card);text-align:center}
.post-cta h2{font-size:26px;line-height:1.2;margin:0 0 10px}
.post-cta p{color:var(--text-60);font-size:16px;line-height:1.65;margin:0 auto;max-width:52ch}
.post-cta-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px!important}
.post-cta .btn-primary,.post-cta .btn-secondary{display:inline-block;padding:12px 22px;border-radius:var(--radius-control);
  font-size:15px;font-weight:600;text-decoration:none;transition:opacity .2s var(--ease)}
.post-cta .btn-primary{background:var(--g3);color:#1a1405}
.post-cta .btn-secondary{border:1px solid var(--line-2);color:var(--text)}
.post-cta .btn-primary:hover,.post-cta .btn-secondary:hover{opacity:.85}

/* Draft / scheduled preview banner ------------------------------------- */
.preview-bar{background:#3d2c00;color:#ffd97a;padding:11px 18px;text-align:center;
  font-size:14px;font-weight:600;line-height:1.4}

/* Empty state ---------------------------------------------------------- */
.blog-empty{padding:70px 0;text-align:center;color:var(--text-60)}

@media (prefers-reduced-motion:reduce){
  .faq-ic{transition:none}
}

/* Author card ---------------------------------------------------------- */
/* A plain identification block: who wrote this, what they do, where to find
   them. The name is not a link — there is no author page — so the only
   interactive elements are the profile icons on the right. */
.author-card{margin:52px 0 0;padding:24px 26px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-card)}
.ac-title{font-size:17px;font-weight:700;line-height:1.3;margin:0 0 16px;
  padding:0 0 16px;border-bottom:1px solid var(--line)}
.ac-row{display:flex;align-items:center;gap:16px}
.ac-avatar{flex:0 0 auto;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--line-2);background:var(--bg-card);color:var(--text);
  font-weight:700;font-size:16px;letter-spacing:.02em}
.ac-id{min-width:0;flex:1 1 auto}
.ac-name{font-size:17px;font-weight:600;line-height:1.3;color:var(--text);margin:0}
.ac-role{color:var(--text-60);font-size:14px;line-height:1.4;margin:3px 0 0}
.ac-social{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.ac-social a{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  background:var(--text);color:var(--bg-card);text-decoration:none;
  transition:opacity .2s var(--ease)}
.ac-social a:hover{opacity:.75}
.ac-social svg{flex:0 0 auto}
@media(max-width:560px){
  .author-card{padding:20px}
  .ac-row{flex-wrap:wrap}
  .ac-avatar{width:46px;height:46px;font-size:15px}
  .ac-social{flex-basis:100%;margin-top:4px}
}
