/* ============================================================
   BROOD — dev log post body (the HTML markdown.js produces)
   Used by the dev log page and by the dashboard's editor preview
   (served there by server/bug_reports.py), so both look the same.
   Colors and fonts come from the variables in styles.css; the
   dashboard defines its own copies of them.
   ============================================================ */
.post-body{font-size:19.5px;line-height:1.75;color:var(--bone-dim);}
.post-body p{margin:0 0 1.2em;}
.post-body h1,
.post-body h2,
.post-body h3{color:var(--bone);font-family:var(--ff-display);line-height:1.15;margin:1.4em 0 .55em;letter-spacing:-.01em;}
.post-body h1{font-size:1.7em;}
.post-body h2{font-size:1.4em;}
.post-body h3{font-size:1.18em;}
.post-body a{color:var(--amber);border-bottom:1px solid rgba(234,168,59,.4);transition:.2s;}
.post-body a:hover{color:var(--amber-deep);border-bottom-color:var(--amber);}
.post-body strong{color:var(--bone);font-weight:600;}
.post-body em{font-style:italic;}
.post-body del{color:var(--bone-mute);}
.post-body ul,
.post-body ol{margin:0 0 1.2em 1.4em;padding:0;}
.post-body li{margin:.3em 0;}
.post-body li > p{margin:0;}
.post-body blockquote{margin:1.2em 0;padding:.7em 1.2em;border-left:3px solid var(--amber);
  background:rgba(234,168,59,.05);color:var(--bone-mute);font-style:italic;border-radius:0 8px 8px 0;}
.post-body blockquote p{margin:0 0 .6em;}
.post-body blockquote p:last-child{margin:0;}
.post-body code{font-family:var(--ff-mono);font-size:.86em;background:var(--soil-050);
  border:1px solid var(--soil-200);border-radius:6px;padding:.08em .42em;color:var(--bone);}
.post-body pre{background:var(--soil-050);border:1px solid var(--soil-200);border-radius:10px;
  padding:14px 18px;overflow-x:auto;margin:1.3em 0;font-size:.86em;line-height:1.5;color:var(--bone);}
.post-body pre code{background:none;border:0;padding:0;font-size:1em;}
.post-body hr{border:0;border-top:1px solid var(--soil-200);margin:2em 0;}
.post-body img{display:block;max-width:100%;height:auto;margin:1.6em 0;
  border-radius:12px;border:1px solid var(--soil-200);background:var(--soil-050);}
.post-body img.zoomable{cursor:zoom-in;}
.post-body img.zoomable:focus-visible{outline:2px solid var(--amber);outline-offset:3px;}

/* media on a line of its own: an image, a clip or a YouTube placeholder, with an optional caption */
.post-body figure.media{margin:1.6em 0;}
.post-body figure.media img{margin:0;}
.post-body video{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--soil-200);background:#0c0806;}
.post-body figcaption{margin-top:.65em;text-align:left;font-size:.8em;line-height:1.5;color:var(--bone-mute);font-style:italic;}

/* several on back-to-back lines: a gallery, side by side */
.post-body .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:1.6em 0;align-items:start;}
.post-body .gallery.n-2,
.post-body .gallery.n-4{grid-template-columns:repeat(2,minmax(0,1fr));}
.post-body .gallery figure.media{margin:0;}
.post-body .gallery img,
.post-body .gallery video{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px;}
.post-body .gallery figcaption{font-size:.72em;margin-top:.45em;}
@media(max-width:560px){
  .post-body .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
}

/* YouTube: a placeholder until it's clicked (devlog.js swaps the player in) */
.post-body .yt{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;border:1px solid var(--soil-200);
  background:radial-gradient(ellipse at 50% 40%,var(--soil-150,#241a11),var(--soil-050));}
.post-body .yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.post-body .yt-play{position:absolute;inset:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;padding:18px;border:0;background:none;color:var(--bone);cursor:pointer;font:inherit;text-align:center;}
.post-body .yt-icon{width:68px;height:48px;border-radius:14px;background:#c4302b;position:relative;transition:transform .2s;}
.post-body .yt-icon::after{content:"";position:absolute;left:27px;top:14px;border-style:solid;border-width:10px 0 10px 17px;
  border-color:transparent transparent transparent #fff;}
.post-body .yt-play:hover .yt-icon,
.post-body .yt-play:focus-visible .yt-icon{transform:scale(1.08);}
.post-body .yt-play:focus-visible{outline:2px solid var(--amber);outline-offset:-4px;}
.post-body .yt-title{font-family:var(--ff-display);font-weight:700;font-size:1.05em;line-height:1.25;max-width:32ch;}
.post-body .yt-note{font-family:var(--ff-mono);font-size:.62em;letter-spacing:.14em;text-transform:uppercase;color:var(--bone-mute);}
.post-body .gallery .yt-title{font-size:.8em;}
.post-body table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:.92em;
  border:1px solid var(--soil-200);border-radius:10px;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.012),transparent);}
.post-body thead{background:var(--soil-100);}
.post-body th{text-align:left;padding:11px 14px;font-family:var(--ff-mono);font-size:.78em;
  letter-spacing:.08em;text-transform:uppercase;color:var(--amber);border-bottom:1px solid var(--soil-200);}
.post-body td{padding:11px 14px;border-bottom:1px solid var(--soil-200);color:var(--bone-dim);vertical-align:top;}
.post-body tbody tr:last-child td{border-bottom:0;}
.post-body .ta-l{text-align:left;}
.post-body .ta-c{text-align:center;}
.post-body .ta-r{text-align:right;}
