/* =====================================================================
   components/prose.css — NỘI DUNG BÀI VIẾT (c-prose)
   Định dạng chữ do trang Quản trị soạn ra: tiêu đề, đoạn, danh sách,
   trích dẫn, ảnh có chú thích, video YouTube.
   Chỉ nạp ở trang cần (khai báo trong 'css' của trang).
   ===================================================================== */
.c-prose { color: var(--ink-900); font-size: 1.125rem; line-height: 1.8; }
.c-prose > * + * { margin-top: 1.35em; }
.c-prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.c-prose h3 { margin-top: 1.9em; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.3; }
.c-prose h2 + *, .c-prose h3 + * { margin-top: .75em; }
.c-prose p { text-wrap: pretty; }
.c-prose a { color: var(--green-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.c-prose a:hover { color: var(--forest-900); text-decoration-thickness: 2px; }
.c-prose ul, .c-prose ol { padding-left: 1.35em; }
.c-prose li + li { margin-top: .5em; }
.c-prose li::marker { color: var(--green-500); }
.c-prose ol li::marker { font-weight: var(--fw-semibold); }
.c-prose blockquote { position: relative; margin-inline: 0; padding: .3em 0 .3em 1.5em; border-left: 3px solid var(--lime-400);
  color: var(--color-heading); font-family: var(--font-display); font-size: 1.35em; font-style: italic; line-height: 1.5; }
.c-prose figure { margin-block: 2.2em; }
.c-prose figure img, .c-prose > img, .c-prose p > img { width: 100%; height: auto; border-radius: var(--radius-md); }
.c-prose figcaption { margin-top: .75em; color: var(--color-muted); font-size: .88rem; line-height: 1.5; text-align: center; }
.c-prose .embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: #000; }
.c-prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.c-prose hr { margin-block: 3em; border: 0; text-align: center; }
.c-prose hr::after { content: "· · ·"; color: var(--green-500); letter-spacing: .6em; font-size: 1.2em; }
.c-prose code { padding: .1em .35em; border-radius: 4px; background: var(--sand-100); font-size: .9em; }
.c-prose__zoom { display: block; cursor: zoom-in; }

@media (max-width: 600px) {
  .c-prose { font-size: 1.0625rem; line-height: 1.75; }
  .c-prose figure { margin-inline: calc(var(--gutter) * -1); }
  .c-prose figure img { border-radius: 0; }
  .c-prose figcaption { padding-inline: var(--gutter); }
}
