/* Blog (/blog/, /<code>/blog/): layered on legal.css, which carries the palette, header and type.
   Copied to blog/blog.css by tools/build-blog.mjs. */
.blog{font-size:17px;line-height:1.75}
.blog h1{line-height:1.15;margin:10px 0 12px}
.blog h2{margin:44px 0 10px}
.blog h3{font-size:18px;margin:28px 0 6px}
.blog strong{font-weight:600}
.blog .crumbs{font-size:14px;color:var(--muted)}
.blog .crumbs a{color:var(--muted)}
.blog .meta{margin-bottom:6px}
.blog .also{font-size:14px;color:var(--muted);margin:0 0 32px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.blog .also a{margin-right:12px;white-space:nowrap}
.blog .lede{color:var(--muted);margin-bottom:24px}
.blog-cta{margin:48px 0 0;padding:24px;border-radius:16px;background:var(--surface)}
.blog-cta h2{margin:0 0 4px;font-size:22px}
.blog-cta p{color:var(--muted);margin-bottom:16px}
.blog-cta .btn{display:inline-block;padding:11px 20px;border-radius:12px;background:var(--primary);color:var(--on-primary);font-weight:600}
.blog-cta .btn:hover{opacity:.9;text-decoration:none}
.posts{list-style:none;margin:0}
.posts li{padding:18px 0;border-bottom:1px solid var(--line)}
.posts a{font-size:19px;font-weight:600}
.posts p{margin:4px 0 0;color:var(--muted);font-size:15px}
.help-langs{display:flex;flex-wrap:wrap;gap:6px 16px;margin-bottom:12px}
.help-langs a,.help-langs span{margin:0}
.help-langs span{color:var(--text);font-weight:600}
/* Fraunces has no CJK glyphs: headings fall back to the body stack, set heavier and looser. */
:lang(ja) .blog,:lang(zh-Hans) .blog{line-height:1.9}
:lang(ko) .blog{line-height:1.85;word-break:keep-all}
:lang(ja) .blog h1,:lang(ko) .blog h1,:lang(zh-Hans) .blog h1{font-family:inherit;font-weight:700;letter-spacing:0;font-size:clamp(24px,5.4vw,34px);line-height:1.45}
:lang(ja) .blog h2,:lang(ko) .blog h2,:lang(zh-Hans) .blog h2,
:lang(ja) .blog-cta h2,:lang(ko) .blog-cta h2,:lang(zh-Hans) .blog-cta h2{font-family:inherit;font-weight:700;letter-spacing:0;font-size:21px;line-height:1.45}
@media (max-width:460px){.wrap.blog{padding-left:16px;padding-right:16px}}
/* Guides (tools/build-guides.mjs): numbered setup steps and comparison tables. */
.blog ol{padding-left:22px}
.blog ol li{margin-bottom:6px}
.blog .table{overflow-x:auto;margin:16px 0 8px;-webkit-overflow-scrolling:touch}
.blog table{border-collapse:collapse;width:100%;min-width:560px;font-size:15px;line-height:1.5}
.blog th,.blog td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--line)}
.blog thead th{font-weight:600;color:var(--muted);font-size:14px}
.blog tbody th{font-weight:600}
/* A post with no other languages draws the divider the "Also in" line would have. */
.blog hr.also{border:0;border-bottom:1px solid var(--line);margin:0 0 32px}
/* Before and after lines: a <dl> in a <figure class="lines"> (raw block in the post markdown). */
.blog figure.lines{margin:24px 0;padding:16px 18px;border-radius:14px;background:var(--surface)}
.lines dl{margin:0;display:grid;grid-template-columns:max-content 1fr;gap:10px 16px;align-items:baseline}
.lines dt{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.lines dd{margin:0;font-size:16px;line-height:1.55}
.lines figcaption{margin-top:12px;font-size:14px;line-height:1.5;color:var(--muted)}
@media (max-width:460px){.lines dl{grid-template-columns:1fr;gap:0}.lines dd{margin-bottom:10px}}
.lines mark{background:var(--primary-soft);color:#2C1A2B;border-radius:4px;padding:0 2px}
.lines .ro{display:block;margin-top:2px;font-size:14px;line-height:1.5;color:var(--muted)}
/* Rule tables: a <table> in a <figure class="tbl">, narrow enough to fit a phone without the guides' 560px floor. */
.blog figure.tbl{margin:24px 0}
.blog figure.tbl table{min-width:0}
.blog figure.tbl .gl{color:var(--muted);font-size:14px}
.blog figure.tbl figcaption{margin-top:8px;font-size:14px;line-height:1.5;color:var(--muted)}
/* Flow diagrams: inline SVG in a <figure class="flow"> (raw block in the post markdown). */
.blog figure.flow{max-width:400px;margin:28px auto 28px}
.flow svg{display:block;width:100%;height:auto}
.flow .box{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.flow .box.opt{fill:none;stroke:var(--primary-soft);stroke-dasharray:5 4}
.flow .side{fill:var(--panel);stroke:var(--line);stroke-width:1.5}
.flow .num{fill:var(--primary)}
.flow .num-t{fill:var(--on-primary);font-size:13px;font-weight:700;text-anchor:middle}
.flow .t{fill:var(--text);font-size:15px;font-weight:600}
.flow .s{fill:var(--muted);font-size:13px}
.flow .c{text-anchor:middle}
.flow .line{fill:none;stroke:var(--muted);stroke-width:1.5}
.flow .head{fill:var(--muted)}
.flow figcaption{margin-top:10px;font-size:14px;line-height:1.5;color:var(--muted);text-align:center}
/* Timelines: <figure class="flow tl">, lanes of rounded bars over a seconds axis. */
.blog figure.flow.tl{max-width:440px}
.tl .lbl{fill:var(--text);font-size:13px;font-weight:600}
.tl .you{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.tl .play{fill:var(--primary)}
.tl .bt{fill:var(--text);font-size:12px;font-weight:600;text-anchor:middle}
.tl .bt.on{fill:var(--on-primary)}
.tl .rl{fill:var(--muted);font-size:12px;text-anchor:middle}
.tl .rel{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 3}
.tl .axis{fill:none;stroke:var(--line);stroke-width:1.5}
.tl .tick{fill:var(--muted);font-size:11px;text-anchor:middle}
.tl .w{fill:var(--text);font-size:12px;font-weight:600}
/* Fan diagrams: <figure class="flow fan">, a column of boxes whose lines merge into one box on the right. */
.blog figure.flow.fan,.blog figure.flow.wide{max-width:440px}
/* Section captions inside a diagram, end-anchored guide labels, pitch contours and their dashed guides. */
.flow .cap{fill:var(--muted);font-size:11px;font-weight:600;letter-spacing:.08em}
.flow .e{text-anchor:end}
.flow .wave{fill:none;stroke:var(--primary);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.flow .guide{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;opacity:.7}
/* Stacked bars (graphics memory, card busy): the track, three segment tones, the part that does not fit, free room. */
.flow .bar{fill:var(--panel);stroke:var(--line);stroke-width:1.5}
.flow .seg0{fill:var(--line)}
.flow .seg1{fill:var(--primary-soft)}
.flow .seg2{fill:var(--primary)}
.flow .over{fill:var(--accent)}
.flow .free{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 4}
.flow .wave.dash{stroke-dasharray:5 5;opacity:.55}

.lines code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;padding:1px 6px;border-radius:6px;background:var(--panel);word-break:break-all}
