﻿.post-shell { --text: #c6c5cd; max-width: 960px; padding-block: 45px 75px; color: var(--muted); }
.post-shell > blog-topics { display: none; }
@media (min-width: 1280px) {
 .post-shell.has-article-sidebar { position: relative; width: min(960px, calc(100% - 544px)); }
 .post-shell.has-article-sidebar > blog-topics { display: block; position: absolute; top: 45px; left: -256px; width: 224px; height: calc(100% - 120px); margin: 0; }
 .post-shell.has-article-sidebar .post-toc { display: none; }
}
@media print { .post-shell.has-article-sidebar .post-toc { display: block; } }
.post-shell h1, .post-shell h2, .post-shell h3 { color: var(--text); }
.post-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.post-breadcrumbs a:hover { color: var(--mint); }
.post-header h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.post-header > .post-subtitle { margin-top: -8px; margin-left: 1ch; font: 24px/1.25 "Segoe UI", system-ui, sans-serif; color: var(--muted); }
.post-deck { margin-top: 25px; max-width: 780px; font: 20px/1.65 "Segoe UI", system-ui, sans-serif; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 25px; color: var(--muted); font-size: 15px; }
.post-meta a { text-decoration: underline; text-underline-offset: 4px; }
.post-videos { margin-top: 38px; padding-block: 30px; border-block: 1px solid var(--line); }
.post-videos h2 { font: 500 22px/1.4 "Segoe UI", system-ui, sans-serif; margin: 0 0 20px; letter-spacing: normal; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.video-slot { margin: 0; min-width: 0; }
.video-placeholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: 12px; corner-shape: squircle; background: linear-gradient(130deg, #24cccd0b, #ed196509), var(--surface); }
.video-number { font: 500 35px/1 var(--display); color: var(--cyan); }
.video-placeholder p { font: 15px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--muted); }
.video-slot figcaption { margin-top: 12px; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; }
.video-slot iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; corner-shape: squircle; }
.post-toc { margin-block: 32px 42px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 10px; corner-shape: squircle; background: var(--surface); }
.post-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 35px; margin: 18px 0 0; padding-left: 22px; font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
.post-toc a:hover { color: var(--mint); }
.post-content { font: 18px/1.8 "Segoe UI", system-ui, sans-serif; overflow-wrap: break-word; }
.post-content section { margin-top: 44px; scroll-margin-top: 25px; }
.post-content h2 { font: 600 clamp(26px, 3vw, 34px)/1.3 "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; margin: 0 0 23px; }
.post-content > h2 { margin-top: 44px; }
.post-content :is(h2, h3, h4)[id] { scroll-margin-top: 25px; }
.post-content h3 { font: 600 22px/1.4 "Segoe UI", system-ui, sans-serif; margin-block: 28px 15px; }
.post-content p + p { margin-top: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-block: 20px; }
.post-content li + li { margin-top: 10px; }
.post-content strong { color: var(--text); }
.post-content code { font: .87em/1.6 Consolas, monospace; color: var(--mint); }
.post-content pre { overflow-x: auto; padding: 20px; border: 1px solid var(--line); border-radius: 8px; corner-shape: squircle; background: #141418; white-space: pre; }
.post-content pre code { font-size: 14px; }
.post-note { margin-block: 26px; padding: 20px 24px; border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; corner-shape: squircle; background: var(--surface); }
.post-diagram { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px; corner-shape: squircle; background: var(--surface); }
.architecture-figure { padding: 0; overflow: hidden; border: 0; background: transparent; margin-bottom: 0; }
.architecture-image { display: block; width: 100%; height: auto; aspect-ratio: 1760 / 2767; }
.module-layers-image { display: block; width: 100%; height: auto; aspect-ratio: 1760 / 1842; }
.architecture-full-size { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; corner-shape: squircle; color: var(--muted); font-size: 13px; line-height: 1.3; }
.architecture-full-size:hover { color: var(--mint); border-color: var(--mint); }
.post-diagram figcaption { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.context-tree { margin: 0 !important; list-style: none; padding-left: 0 !important; font-size: 16px; }
.context-tree ul { list-style: none; margin: 12px 0 0 !important; padding-left: 22px; border-left: 1px solid var(--line); }
.post-table-wrap { overflow-x: auto; margin-block: 25px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.post-content th, .post-content td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 145px; }
.post-content th { color: var(--cyan); }
.post-return { margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .post-shell { padding-top: 28px; } .video-grid, .post-toc ol { grid-template-columns: 1fr; } .post-content { font-size: 17px; line-height: 1.8; } .post-deck { font-size: 18px; } .post-toc, .post-diagram { padding: 20px; } .post-note { padding: 17px 20px; } }

@media (max-width: 700px) { .post-diagram.architecture-figure { padding: 0; } }

.post-content a.external-asset-link { color: var(--cyan, #24cccd); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-content a.external-asset-link:hover { text-decoration-thickness: 2px; }

.flow-figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.flow-figure img[src$="runtime-hierarchy.webp"] { max-width: 620px; margin-inline: auto; }
.post-header > .post-subtitle { margin-top: 12px; }

.post-shell.doc-shell { display:grid; grid-template-columns:240px minmax(0, 1fr); gap:56px; max-width:1320px; }
.post-shell.doc-shell > blog-topics { display:block; min-width:0; }
.doc-shell > article { min-width:0; }
.doc-content img { max-width:100%; height:auto; border-radius:10px; }
.doc-content h1 { font-size:clamp(36px,5vw,58px); line-height:1.1; }
.doc-content a { color:var(--cyan); overflow-wrap:anywhere; }
.doc-content pre { overflow-x:auto; }
.doc-content table { width:100%; }

@media (max-width:1279px) {
  .post-shell.doc-shell { display:block; max-width:960px; }
  .doc-shell > blog-topics { margin-bottom:24px; }
}
@media print {
  .post-shell.doc-shell { display:block; max-width:none; }
  .post-shell.doc-shell > blog-topics { display:none; }
}

