/* stepsim.com articles. Extends site.css; tokens come through site.css. */

.bl-back { text-decoration: none; }
.bl-back:hover { text-decoration: underline; }
.bl-by { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }

.bl-section { padding-top: clamp(48px, 6vw, 72px); }
.bl-body { margin-inline: auto; }
.bl-body p, .bl-body li { font-size: 1.08rem; }
.bl-body strong { color: var(--ink); }
.bl-quote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); }
.bl-quote p { margin-top: 0; color: var(--ink); font-size: 1.25rem; font-weight: 600; line-height: 1.5; }

/* The closing block (copy deck B-4): About StepSim, the next article, one button. */
.bl-about { max-width: 68ch; margin: 56px auto 0; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--card-line); border-radius: var(--r-xl); background: var(--bg-page-soft); }
.bl-about h2 { color: var(--ink); font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
.bl-about p { margin-top: 10px; color: var(--ink-2); line-height: 1.65; }
.bl-about-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--card-line); }
.bl-about-foot .btn { flex: none; }

.bl-num { color: var(--accent-press); font-size: .8rem; font-weight: 750; letter-spacing: .08em; }
.bl-card h2 { margin: 10px 0 10px; font-size: clamp(1.15rem, 1.6vw, 1.32rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.bl-card h2 a { color: var(--ink); text-decoration: none; }
.bl-card h2 a::after { content: ""; position: absolute; inset: 0; }
.bl-card:hover h2 a, .bl-card h2 a:focus-visible { color: var(--accent-press); }

@media (max-width: 760px) {
  .bl-list { grid-template-columns: 1fr; }
  .bl-body p, .bl-body li { font-size: 1rem; }
}

/* The site's look (D44): illustrated scenes, a featured lead article, the arcs. */
.bl-hero .hero-grid { align-items: center; }
.bl-card .card-body h2 { margin-top: 6px; }
.bl-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--card-line); border-radius: var(--r-2xl); background: #fff; box-shadow: var(--shadow-card-lg); transition: box-shadow 180ms ease, transform 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .bl-feature:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
}
.bl-after-feature { margin-top: 24px; }
.bl-feature .scene { min-height: 320px; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.bl-feature-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 48px); }
.bl-feature-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.12; }
.bl-feature-body h2 a { color: var(--ink); text-decoration: none; }
.bl-feature-body h2 a::after { content: ""; position: absolute; inset: 0; }
.bl-feature-body p { color: var(--ink-2); line-height: 1.6; }
.bl-feature:hover h2 a { color: var(--accent-press); }
.bl-arc + .bl-arc { padding-top: clamp(56px, 6vw, 88px); }
@media (max-width: 880px) {
  .bl-feature { grid-template-columns: 1fr; }
  .bl-feature .scene { min-height: 0; aspect-ratio: 1600 / 907; }
}
/* On a phone an article card is a compact row: a small square scene, then the title. */
@media (max-width: 720px) {
  .bl-card.card-photo { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
  .bl-card.card-photo > .scene { aspect-ratio: 1; height: 100%; min-height: 104px; }
  .bl-card.card-photo > .scene .scene-tag { top: 6px; left: 6px; padding: 2px 5px; font-size: .54rem; }
  .bl-card .card-body { padding: 14px 16px; }
  .bl-card .card-body p:not(.bl-num) { display: none; }
  .bl-card h2 { margin: 4px 0 0; font-size: 1.02rem; }
}

/* Library charts (docs/library/figures/), inlined by tools/build-library.mjs. */
.lib-figure { margin: 32px 0; }
/* On narrow screens the chart scrolls, opening on the right, where the core skills sit. */
.lib-figure-scroll { overflow-x: auto; direction: rtl; }
.lib-figure-scroll > svg { direction: ltr; }
.lib-chart { display: block; width: 100%; height: auto; min-width: 560px; font-family: var(--sans); }
.lib-chart .tick { fill: var(--ink-2); font-size: 13px; }
.lib-chart .axis { fill: var(--ink-2); font-size: 14px; font-weight: 600; }
.lib-chart .quad { fill: var(--ink-2); font-size: 14px; font-weight: 650; }
.lib-chart .quad-core { fill: var(--accent-press); }
.lib-chart .lbl { fill: var(--ink); font-size: 14px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.lib-figure figcaption { margin-top: 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
