/* Blog pages: article typography and the blog index. Loaded after styles.css. */
.blog-main { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.langs a.lang { text-decoration: none; }
.lang[aria-current="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--sky); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; color: var(--blue); text-decoration: underline; }

.article { max-width: 46rem; display: grid; gap: 18px; }
.post-reviewer { font-size: 0.88rem; color: var(--ink-soft); margin-top: -10px; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 576; object-fit: cover; background: var(--paper-2); border-bottom: 4px solid var(--sky); }
.article h1, .blog-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800; font-stretch: 108%;
  line-height: 1.08; letter-spacing: -0.02em;
}
.blog-head { margin-bottom: 8px; }

.prose { display: grid; gap: 16px; margin-top: 10px; }
.prose .lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 18px; }
.prose h3 { font-size: 1.12rem; margin-top: 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--blue); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--display); font-weight: 700; border-bottom: 2px solid var(--blue); white-space: nowrap; }

/* Article diagrams keep their labels selectable and reflow in each language. */
.article, .prose, .info { min-width: 0; }
.info { margin: 12px 0; padding: clamp(16px, 3vw, 28px); display: grid; gap: 20px; background: var(--paper-2); border-top: 4px solid var(--blue); overflow-wrap: anywhere; }
.info figcaption { font: 750 clamp(1.15rem, 2vw, 1.4rem)/1.4 var(--display); color: var(--ink); }
.info ol, .info ul { padding: 0; list-style: none; }
.info li { min-width: 0; }
.info li strong, .info li span { display: block; }
.info li span { font-size: .92rem; line-height: 1.55; }
.info li strong { margin-bottom: 4px; line-height: 1.4; }
.info .info-track { gap: 0; }
.info-track li { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: 14px; padding-bottom: 16px; }
.info-track li:last-child { padding-bottom: 0; }
.info-track li:not(:last-child)::before { content: ""; position: absolute; inset: 1rem auto 0 15px; border-left: 2px solid var(--blue); }
.info-track .info-node { position: relative; display: grid; place-items: center; height: 2rem; border-radius: 50%; background: var(--blue); color: white; font: 600 .92rem var(--body); }
.info-follow { border-top: 1px solid var(--line); padding-top: 14px; }
.info-follow > strong { display: block; margin-bottom: 12px; color: var(--blue); }
.info-follow ul, .info-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-follow li, .info-pair li, .info-flow li, .info-dates li { background: var(--paper); padding: 14px; }
.info-follow li { border-left: 3px solid var(--sky); }
.info-icon { width: 2rem; height: 2rem; display: block; margin-bottom: 12px; color: var(--blue); }
.info .info-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-flow li { position: relative; border-top: 2px solid var(--sky); }
.info-flow li:not(:last-child)::after { content: "›"; position: absolute; top: 45%; left: 100%; width: 18px; text-align: center; color: var(--blue); font: bold 1.4rem/1 sans-serif; }
.info-flow strong { font-size: clamp(1.25rem, 2.7vw, 1.75rem); color: var(--blue); }
.info-scale { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; font: 500 .87rem var(--mono); color: var(--ink); }
.info-scale::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: linear-gradient(to right, var(--sky) 50%, var(--blue) 50%); }
.info-scale b { position: absolute; left: 50%; transform: translateX(-50%); }
.info-scale b::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 21px; border-left: 2px solid var(--ink); }
.info-split .info-pair li:first-child { border-top: 3px solid var(--sky); }
.info-split .info-pair li:last-child { border-top: 3px solid var(--blue); }
.info .info-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-dates li { padding: 0 0 14px; border: 1px solid var(--line); }
.info-dates li strong { background: var(--blue); color: white; padding: 6px 14px; }
.info-dates li span { padding: 6px 14px 0; }
.info .info-note { padding-left: 12px; border-left: 3px solid var(--sky); line-height: 1.55; font-size: .92rem; }
@media (max-width: 580px) {
  .info-follow ul, .info-pair, .info .info-flow, .info .info-dates { grid-template-columns: 1fr; }
  .info-flow li:not(:last-child)::after { content: "↓"; inset: 100% auto auto 14px; font-size: 1rem; }
}

/* Service box inside an article */
.svc-box { display: grid; gap: 14px; margin: 18px 10px 18px 0; padding: clamp(20px, 3vw, 30px); background: var(--paper); border: 2px solid var(--blue); box-shadow: 10px 10px 0 var(--sky); }
.svc-box h2 { margin-top: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.svc-box ul { list-style: none; padding-left: 0; }
.svc-box .cta-row { align-items: center; margin-top: 4px; }

.post-cta { display: grid; gap: 12px; margin-top: 22px; padding: clamp(20px, 3vw, 30px); background: var(--paper-2); border-top: 4px solid var(--sky); }
.post-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.post-cta .cta-row { align-items: center; margin-top: 4px; }
.disclaimer { font-size: 0.84rem; color: var(--ink-soft); }
.more { max-width: 46rem; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 8px; }
.more h2 { font-size: 1.3rem; }

html:lang(th) :is(.article h1, .blog-head h1), html:lang(my) :is(.article h1, .blog-head h1) { line-height: 1.45; letter-spacing: 0; }
html:lang(zh-Hans) :is(.article h1, .blog-head h1), html:lang(vi) :is(.article h1, .blog-head h1) { line-height: 1.25; letter-spacing: 0; }
html:lang(my) .article h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
