/* ==========================================================================
   timingpulley.biz — blog.css
   Blog listing (blogs.php) + posts (generated by tools/blog/build-blog.mjs).
   Built on the inner-page kit in industry.css + components.css (.post-card,
   .product-card, .faq2). Tokens only.
   ========================================================================== */

/* ---------- Listing ---------- */
.blog-feat { position: relative; display: grid; grid-template-columns: 1fr; border: 1px solid var(--c-line); background: #fff; overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
@media (min-width: 992px) { .blog-feat { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.blog-feat__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface); }
.blog-feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.blog-feat__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 3vw, 48px); }
.blog-feat__title { font-family: var(--ff-head); font-weight: 600; font-size: clamp(21px, 14px + 1vw, 28px); line-height: 1.25; color: var(--c-ink); }
.blog-feat__title a { color: inherit; }
.blog-feat__title a::after { content: ""; position: absolute; inset: 0; }
.blog-feat__text { color: var(--c-text); }
@media (hover: hover) {
  .blog-feat:hover { border-color: var(--c-primary-line); box-shadow: var(--sh-hover); }
  .blog-feat:hover .blog-feat__media img { transform: scale(1.03); }
}
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.blog-meta b { font-weight: 500; color: var(--c-primary); }
.blog-filter { margin-top: clamp(36px, 28px + 2vw, 56px); }
.blog-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 576px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-grid.is-collapsed > [data-more] { display: none; }
.blog-grid .post-card { height: 100%; }
.blog-grid .post-card__title { font-size: 17px; }
.blog-more { display: flex; justify-content: center; margin-top: 36px; }
.blog-more[hidden] { display: none; }

/* ---------- Post ---------- */
.page-head--post h1 { max-width: none; }
.bp { display: grid; grid-template-columns: 1fr; gap: 48px 64px; align-items: start; }
@media (min-width: 1200px) { .bp { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.bp-article { min-width: 0; }
.bp-figure { margin: 0; aspect-ratio: 16 / 9; background: var(--c-surface); border: 1px solid var(--c-line); }
.bp-figure img { width: 100%; height: 100%; object-fit: contain; }
.bp-meta { margin-top: 20px; }
.bp-lead { margin-top: 14px; font-weight: 500; font-size: clamp(17px, 15px + .45vw, 20px); line-height: 1.6; color: var(--c-ink); }
.bp-body { margin-top: 16px; font-size: 17px; line-height: 1.75; }
@media (max-width: 575.98px) { .bp-body { font-size: 16px; } }
.bp-body > * + * { margin-top: 16px; }
.bp-body h2 { margin-top: 40px; text-wrap: balance; }
.bp-body h3 { margin-top: 36px; font-size: clamp(20px, 16px + .6vw, 24px); line-height: 1.3; }
.bp-body h4 { margin-top: 28px; font-size: 18px; line-height: 1.35; }
.bp-body h2, .bp-body h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.bp-body ul, .bp-body ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.bp-body li { padding-left: 2px; }
.bp-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bp-body strong { color: var(--c-ink); }
.bp-table-wrap { overflow-x: auto; }
.bp-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bp-table th { padding: 12px 10px; border-bottom: 2px solid var(--c-ink); text-align: left; font-family: var(--ff-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.bp-table td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
/* Key takeaways: right below the featured image (the post opens with the summary) */
.bp-take { margin-top: 24px; padding: clamp(22px, 2.4vw, 32px); background-color: var(--c-primary-deep); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size); color: var(--c-on-dark); }
.bp-take__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line-dark); }
.bp-take__title { font-family: var(--ff-head); font-weight: 600; font-size: 20px; line-height: 1.3; color: #fff; }
.bp-take__head .mono-label { color: var(--c-accent); }
.bp-take__list { list-style: none; display: grid; grid-template-columns: 1fr; }
.bp-take__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line-dark); font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.bp-take__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-take__n { padding-top: 2px; font-family: var(--ff-mono); font-size: 13px; letter-spacing: .06em; color: var(--c-accent); }
.bp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 24px 28px; border: 1px solid var(--c-line); background: #fff; box-shadow: var(--sh-2); }
.bp-cta__title { font-family: var(--ff-head); font-weight: 600; font-size: 19px; color: var(--c-ink); }
.bp-cta__text { margin-top: 4px; font-size: 15px; }
.bp-cta .ind-hero__ctas { margin-top: 0; }
.bp-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1200px) { .bp-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.bp-toc { padding: 22px 24px; border: 1px solid var(--c-line); background: var(--c-surface); }
.bp-toc ol { list-style: none; margin-top: 8px; }
.bp-toc a { min-height: 40px; display: flex; align-items: center; margin-left: -12px; padding: 4px 0 4px 12px; border-left: 2px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--c-text); transition: color var(--t-fast), border-color var(--t-fast); }
.bp-toc a:hover { color: var(--c-primary); }
.bp-toc a[aria-current] { border-color: var(--c-primary); color: var(--c-primary); font-weight: 600; }
@media (max-width: 1199.98px) { .bp-toc { display: none; } }
.bp-side .product-grid { grid-template-columns: 1fr; }
@media (min-width: 576px) and (max-width: 1199.98px) { .bp-side .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-help { padding: 22px 24px; border: 1px solid var(--c-line); background: #fff; }
.bp-help__title { font-family: var(--ff-head); font-weight: 600; font-size: 17px; color: var(--c-ink); }
.bp-help p:not(.bp-help__title) { margin-top: 4px; font-size: 14px; }
.bp-help .link-arrow { margin-top: 6px; }

/* ---------- Shape tiers (2026-10-28, user): see tokens.css ---------- */
.bp-figure { overflow: hidden; border-radius: var(--r-md); }
.blog-feat, .bp-toc, .bp-help, .bp-cta { border-radius: var(--r-md); }
.bp-take { border-radius: var(--r-lg); }

/* ---------- Type (2026-10-29, rework): labels in Inter; monospace only for data values ---------- */
.blog-meta, .bp-table th, .bp-take__n { font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
