/* Blog posts and the About page (2026-11-11, courses/build-blog.js, courses/build-about.js). A post is drawn like a
   lesson (study.css .st-b: coloured opening, numbered parts on sheets, the lesson's own blocks); the index and About
   use the Compare card system (compare.css). This file only adds what those two don't have. */

/* ---------- a post ---------- */
/* The opening's title is the page's h1 here (a lesson's h1 sits in its head card instead). */
.st-b .st-open h1.st-h1 { margin: 0; font: 360 clamp(42px, 5vw, 70px)/1.02 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.025em; }
.st-b h1.st-h1 i { font-style: italic; }
.bl-post .st-kicker a { color: inherit; border-bottom: 1px solid rgba(29, 28, 26, .22); }
.bl-post .st-kicker a:hover { border-color: rgba(29, 28, 26, .5); }
/* The short answer: the whole post in a few sentences, on a paper slip inside the opening. */
.bl-short { margin-top: 28px; padding: 20px 24px 18px; border-radius: 18px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(29, 28, 26, .07); }
.bl-short-k { margin: 0 0 6px !important; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(29, 28, 26, .55); }
.bl-short p:last-child { margin: 0; font-size: 17px; line-height: 1.6; color: #1D1C1A; }
.bl-short .bl-a { color: #1D1C1A; }
/* Links in the text: our own pages only. */
.bl-a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2, var(--rule)); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .16s var(--ease); }
.bl-a:hover, .bl-a:focus-visible { text-decoration-color: var(--ink-3); }
/* Lists in the text. */
.bl-list { margin: 0 0 1.15em; padding-left: 1.35em; }
.bl-list li { margin: 0 0 .45em; padding-left: .2em; }
.bl-list li::marker { color: var(--ink-3); }
.bl-list.is-ol li::marker { font: 600 .85em var(--mono); }
/* The closing parts: the lessons that teach it, and questions, each on a plain sheet. */
.bl-post .st-end .cmp-lessons, .bl-post .bl-faq { padding: 30px 36px; background: var(--card); border-radius: var(--b-r); box-shadow: var(--lift-2); }
.bl-post .bl-faq .cmp-qa:first-child { border-top: 0; }
.bl-post .bl-faq .cmp-qa:last-child { border-bottom: 0; }
.bl-post .cmp-qa p { font-size: 16.5px; }
.bl-more { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 44px 4px 0; font-size: 15px; }
.bl-more span { color: var(--ink-3); }
.bl-more a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2, var(--rule)); text-underline-offset: 4px; }

/* ---------- the index ---------- */
.bl-tile { min-height: 300px; align-content: start; }
.bl-tile-art { display: block; width: 84px; height: 96px; }
.bl-tile-art .st-folder { width: 100%; height: auto; transform: rotate(-5deg); filter: drop-shadow(0 10px 12px rgba(60, 48, 30, .18)); }
.bl-tile-date { margin-top: 12px; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(29, 28, 26, .55); }
.bl-tile .cmp-tile-t { margin-top: 2px; }

/* ---------- About ---------- */
.ab-side-for { margin: 14px 0 0; padding-right: 96px; font-size: 15.5px; line-height: 1.5; color: rgba(29, 28, 26, .72); }
.ab-mods { display: grid; gap: 2px; margin: 22px 0 0; padding: 14px 18px; list-style: none; border-radius: 14px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(29, 28, 26, .06); }
.ab-mods li { padding: 7px 0; font-size: 15.5px; border-top: 1px solid rgba(29, 28, 26, .08); }
.ab-mods li:first-child { border-top: 0; }
.ab-mods a { color: #1D1C1A; }
.ab-mods a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(29, 28, 26, .3); }
.ab-mods small { margin-left: 6px; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(29, 28, 26, .5); }
.ab .cmp-side-t { min-height: 0; }
.ab-places { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ab-places li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; }
.ab-places li:last-child { border-bottom: 1px solid var(--rule); }
.ab-places a { color: var(--ink); }
.ab-places a b { font-weight: 500; }
.ab-places span { color: var(--ink-2); }
.ab .cmp-p p { margin: 0 0 1em; }
.ab .cmp-p p:last-child { margin: 0; }
.ab .cmp-p a, .ab-find a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2, var(--rule)); text-underline-offset: 4px; }
.ab-find { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 16px; color: var(--ink-2); }

@media (max-width: 760px) {
  .st-b .st-open h1.st-h1 { font-size: 40px; }
  .bl-short { padding: 16px 18px; }
  .bl-post .st-end .cmp-lessons, .bl-post .bl-faq { padding: 18px 16px; }
  .ab-side-for { padding-right: 0; }
  .ab-places li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .bl-a { transition: none; } }

/* Text tables in a post (src/blog.js type "table"): the Compare table on the sheet, with a caption like a figure's. */
.bl-table { margin: 28px 0 32px; }
.bl-table .cmp-table { font-size: 15.5px; }
.bl-table .cmp-table thead th { white-space: nowrap; }
.bl-table .cmp-table tbody th { width: auto; min-width: 9em; color: var(--ink); font-weight: 600; }
.bl-table .cmp-table td { width: auto; }
.bl-table figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 760px) { .bl-table { margin: 22px -6px 26px; } .bl-table .cmp-table { font-size: 14.5px; } .bl-table .cmp-table tbody th { min-width: 6.5em; } }
