@charset "UTF-8";
/* ══════════════════════════════════════════════════════════════════
   BLOG — /blog/, /blog/{slug}, /blog/category/{slug}, /blog/author/{slug}.
   Loaded after styles.css (header, footer, buttons, store buttons).
   Layout ported from the fmcsa-trust blog; tokens are Zero Ads'.
   Only Manrope 600 and Source Sans 3 400/600 ship, so nothing here asks
   for heavier weights (the browser would fake-bold them).
   ══════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

.blog-page {
  --b-primary: var(--blue);
  --b-primary-tint: #4d52bd14;
  --b-ink: var(--ink);
  --b-ink-2: #3d4963;
  --b-muted: var(--muted);
  --b-outline: #626f88;          /* ≥4.5:1 on white and on --b-surface */
  --b-line: var(--line);
  --b-surface: var(--surface-raised);
  --b-card: #ffffff;
  --b-radius: 10px;
  --b-radius-lg: 16px;
  --b-shadow: 0 1px 2px #18223b0d;
  --b-shadow-lift: 0 12px 28px #2a2f8a1a;
  --b-head: "Manrope", "Avenir Next", sans-serif;
  --b-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --b-info: #2f62c4;  --b-info-bg: #2f62c412;
  --b-warn: #9a4a07;  --b-warn-bg: #d9770614;
  --b-danger: #a2364a; --b-danger-bg: #a2364a12;
}
.blog-page .bi { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; fill: currentColor; flex-shrink: 0; }
.blog-page main { padding-block: 44px 96px; }
@media (max-width: 640px) { .blog-page main { padding-block: 28px 64px; } }

/* Shared bits (hero.css, which defines .visually-hidden, is homepage-only) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.blog-eyebrow { display: inline-block; color: var(--b-primary); margin: 0 0 14px; }
a.blog-eyebrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-section-title { font-size: 22px; letter-spacing: -.03em; color: var(--b-ink); }
.blog-preview-band { background: var(--b-warn-bg); color: var(--b-warn); border-bottom: 1px solid currentColor; text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.blog-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--b-line); background: var(--b-card); color: var(--b-ink-2); font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.blog-chip:hover { border-color: var(--b-primary); color: var(--b-primary); }
.blog-chip.is-active { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }
#primary-nav a[aria-current] { color: var(--b-ink); font-weight: 600; }

/* Breadcrumb (visible twin of the BreadcrumbList schema) */
.blog-crumb { margin: 0 0 22px; font-size: 13px; color: var(--b-muted); }
.blog-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.blog-crumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.blog-crumb li + li::before { content: '\203A'; color: var(--b-outline); }
.blog-crumb a { color: var(--b-muted); }
.blog-crumb a:hover { color: var(--b-primary); }
.blog-crumb [aria-current] { color: var(--b-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* Chips (expertise, categories) */
.blog-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.blog-chips li { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--b-primary-tint); color: var(--b-primary); }
.blog-chips--links li { padding: 0; background: none; }
.blog-chips--links a { display: inline-block; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--b-surface); border: 1px solid var(--b-line); color: var(--b-ink-2); }
.blog-chips--links a:hover { color: var(--b-primary); border-color: var(--b-primary); }

/* ── Archive (/blog/, /blog/category/{slug}) ───────────── */
.blog-head { position: relative; padding: 40px 44px 30px; margin-bottom: 36px; border-radius: 22px; border: 1px solid #dcdff2; background: radial-gradient(ellipse at 92% 0%, #d2c6ff55, transparent 55%), linear-gradient(112deg, #f1eaff 0%, #edf0ff 50%, #e6f4ff 100%); overflow: hidden; }
.blog-head .blog-crumb { margin-bottom: 26px; }
.blog-head h1 { font-family: var(--b-head); font-weight: 600; font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -.045em; color: var(--b-ink); margin: 0 0 16px; }
.blog-head h1 .muted-heading { color: var(--b-primary); }
.blog-head__lede { max-width: 60ch; color: var(--b-ink-2); font-size: 18px; line-height: 1.6; }
.blog-head__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.blog-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-head__count { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--b-muted); }
.blog-head__count a { display: inline-flex; align-items: center; gap: 6px; color: var(--b-ink-2); font-weight: 600; }
.blog-head__count a:hover { color: var(--b-primary); }
.blog-empty { text-align: center; padding: 56px 20px; color: var(--b-muted); font-size: 16px; }
.blog-empty .bi { font-size: 34px; display: block; margin: 0 auto 14px; color: var(--b-primary); }
.blog-empty a { color: var(--b-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.post-card { position: relative; display: flex; flex-direction: column; background: var(--b-card); border: 1px solid var(--b-line); box-shadow: var(--b-shadow); border-radius: var(--b-radius-lg); overflow: hidden; transition: box-shadow .25s, border-color .25s, transform .25s; }
.post-card:hover { box-shadow: var(--b-shadow-lift); border-color: #b9bdea; transform: translateY(-3px); }
.post-card:focus-within { outline: 3px solid var(--b-primary); outline-offset: 3px; }
.post-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--b-surface); }
/* height:auto is load-bearing: width/height attrs (kept for CLS) otherwise pin a fixed height */
.post-card__img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .5s ease-out; }
.post-card:hover .post-card__img { transform: scale(1.035); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.post-card__kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b-primary); margin-bottom: 10px; }
.post-card__title { margin: 0 0 10px; font-family: var(--b-head); font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: var(--b-ink); }
.post-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card clickable, one link */
.post-card__title a:focus-visible { outline: none; }
.post-card:hover .post-card__title a { color: var(--b-primary); }
.post-card__desc { margin: 0 0 18px; color: var(--b-ink-2); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--b-line); color: var(--b-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.post-card__meta span + span::before { content: '\00B7'; margin-right: 10px; color: var(--b-outline); }
.post-card__author { position: relative; z-index: 2; color: var(--b-ink-2); font-weight: 600; }
.post-card__author:hover { color: var(--b-primary); }
.post-card__cta { display: inline-flex; gap: 10px; margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--b-primary); }
.post-card__cta span { transition: transform .2s; }
.post-card:hover .post-card__cta span { transform: translate(2px, -2px); }
.post-card--lead { margin-bottom: 28px; background: linear-gradient(145deg, #edf1ff, #fafbff 70%); }
@media (min-width: 860px) {
  .post-card--lead { display: grid; grid-template-columns: 1.3fr 1fr; }
  .post-card--lead .post-card__media { aspect-ratio: auto; height: 100%; min-height: 340px; }
  .post-card--lead .post-card__img { height: 100%; aspect-ratio: auto; }
  .post-card--lead .post-card__body { padding: 36px 36px 26px; justify-content: center; }
}
.post-card--lead .post-card__title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -.04em; -webkit-line-clamp: 4; }
.post-card--lead .post-card__desc { font-size: 17px; -webkit-line-clamp: 4; }
.post-card--lead .post-card__meta { border-top-color: #d3d9ee; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 620px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 44px 0 8px; }
.blog-pager__label { color: var(--b-muted); font-size: 14px; }

.blog-tools { margin: 64px 0 0; padding: 34px; border-radius: 22px; background: linear-gradient(150deg, #efe9ff, #faf7ff 75%); border: 1px solid #ded5ef; }
.blog-tools h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; color: var(--b-ink); }
.blog-tools > p { margin: 0 0 22px; color: var(--b-ink-2); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.blog-tools ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .blog-tools ul { grid-template-columns: repeat(3, 1fr); } }
.blog-tools li a { display: block; height: 100%; padding: 16px 18px; background: var(--b-card); border: 1px solid #ded5ef; border-radius: var(--b-radius); transition: border-color .2s, transform .2s; }
.blog-tools li a:hover { border-color: var(--b-primary); transform: translateY(-2px); }
.blog-tools strong { display: block; color: var(--b-ink); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.blog-tools span { color: var(--b-ink-2); font-size: 14px; line-height: 1.5; }

/* ── Single post ───────────────────────────────────────── */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.post-wrap { width: 100%; max-width: 780px; min-width: 0; }
.post-head h1 { font-family: var(--b-head); font-size: clamp(32px, 4.2vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; margin: 0 0 16px; color: var(--b-ink); }
.post-dek { font-size: 19px; line-height: 1.6; color: var(--b-ink-2); margin: 0 0 22px; max-width: 64ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: var(--b-muted); font-size: 14px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--b-line); }
.post-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.blog-byline { display: inline-flex; align-items: center; gap: 10px; color: var(--b-ink); font-weight: 600; }
.blog-byline:hover { color: var(--b-primary); }
.blog-byline__by { color: var(--b-muted); font-weight: 400; }
.blog-byline__role { display: block; font-size: 12px; font-weight: 400; color: var(--b-muted); }
.blog-mini-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: linear-gradient(120deg, #4058d0, #6856c9); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.blog-mini-av img, .blog-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-meta-link { color: var(--b-ink); font-weight: 600; }
.blog-meta-link:hover { color: var(--b-primary); }
.post-cover { width: 100%; height: auto; border-radius: var(--b-radius-lg); border: 1px solid var(--b-line); margin: 0 0 32px; display: block; background: var(--b-surface); }

.blog-toc-inline { display: none; margin: 0 0 28px; padding: 14px 18px; background: var(--b-surface); border-radius: var(--b-radius); font-size: 15px; }
.blog-toc-inline summary { font-weight: 600; color: var(--b-ink); }
.blog-toc-inline ol { margin: 10px 0 0; padding-left: 1.3em; }
.blog-toc-inline li { margin: 5px 0; }
.blog-toc-inline a { color: var(--b-ink-2); }
.blog-toc-inline a:hover { color: var(--b-primary); }

/* Article typography — explicit rhythm (styles.css zeroes h/p margins) */
.post-body { color: var(--b-ink-2); font-size: 18px; line-height: 1.75; max-width: 70ch; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
.post-body strong, .post-body b { color: var(--b-ink); font-weight: 600; }
.post-body h2 { font-family: var(--b-head); color: var(--b-ink); font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; margin: 1.9em 0 .6em; scroll-margin-top: 110px; }
.post-body h3 { font-family: var(--b-head); color: var(--b-ink); font-size: 22px; line-height: 1.3; letter-spacing: -.025em; margin: 1.6em 0 .5em; scroll-margin-top: 110px; }
.post-body h4 { color: var(--b-ink); font-size: 18px; font-weight: 600; margin: 1.4em 0 .4em; }
.post-body a { color: var(--b-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #4d52bd66; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.post-body ol { padding-left: 1.7em; }
.post-body ul ul { list-style-type: circle; }
.post-body li { margin: .45em 0; padding-left: .3em; }
.post-body li::marker { color: var(--b-primary); }
.post-body ol li::marker { font-family: var(--b-mono); font-size: .85em; }
.post-body li > ul, .post-body li > ol { margin: .4em 0 .2em; }
.post-body figure { margin: 1.8em 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--b-radius-lg); border: 1px solid var(--b-line); display: block; }
.post-body .post-embed { position: relative; aspect-ratio: 16/9; margin: 1.8em 0; border-radius: var(--b-radius-lg); overflow: hidden; background: var(--b-surface); }
.post-body .post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--b-muted); text-align: center; }
.post-body blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 3px solid var(--b-primary); background: var(--b-surface); border-radius: 0 var(--b-radius) var(--b-radius) 0; color: var(--b-ink); font-family: var(--b-head); font-size: 20px; line-height: 1.5; letter-spacing: -.02em; }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body .post-callout { margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid var(--b-info); background: var(--b-info-bg); border-radius: 0 var(--b-radius) var(--b-radius) 0; color: var(--b-ink); font-size: 17px; line-height: 1.65; }
.post-body .post-callout.warning { border-left-color: var(--b-warn); background: var(--b-warn-bg); }
.post-body .post-callout.danger { border-left-color: var(--b-danger); background: var(--b-danger-bg); }
.post-body .post-callout > :last-child { margin-bottom: 0; }
.post-body pre { background: #141a2b; color: #e8ebf7; border-radius: var(--b-radius); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.post-body code { font-family: var(--b-mono); font-size: .86em; background: var(--b-surface); color: var(--b-ink); padding: 2px 6px; border-radius: 5px; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--b-line); margin: 2.4em 0; }
.post-body .post-table { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); background: var(--b-card); }
.post-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.55; }
.post-body > table { margin: 1.8em 0; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 11px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--b-line); min-width: 130px; }
.post-body th { background: var(--b-surface); color: var(--b-ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body td:first-child { color: var(--b-ink); font-weight: 600; }
/* "Sources" convention: an <h2>Sources</h2> followed by a list renders as references */
.post-body h2#sources { font-size: 20px; padding-top: 1.1em; border-top: 1px solid var(--b-line); }
.post-body h2#sources + ul, .post-body h2#sources + ol { font-size: 15px; line-height: 1.6; }
.post-body h2#sources + ul a, .post-body h2#sources + ol a { word-break: break-word; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.post-tag { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--b-surface); color: var(--b-muted); }

/* Author box (E-E-A-T) */
.blog-author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 44px; padding: 24px 26px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); scroll-margin-top: 110px; }
.blog-avatar { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: linear-gradient(120deg, #4058d0, #6856c9); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 28px/1 var(--b-head); }
.blog-author-box__who { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--b-outline); margin-bottom: 2px; }
.blog-author-box__name { font-family: var(--b-head); font-weight: 600; font-size: 21px; letter-spacing: -.03em; color: var(--b-ink); }
.blog-author-box__name a { color: inherit; }
.blog-author-box__name a:hover { color: var(--b-primary); }
.blog-author-box__role { font-size: 15px; color: var(--b-ink-2); }
.blog-author-box__bio { font-size: 15px; color: var(--b-ink-2); margin-top: 8px; line-height: 1.6; }
.blog-author-box__creds { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--b-ink-2); }
.blog-author-box__creds li { display: flex; align-items: center; gap: 7px; margin: 3px 0; }
.blog-author-box__creds .bi { color: var(--b-primary); }
.blog-author-box__more { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.blog-author-box__more a { color: var(--b-primary); }
.blog-author-box__more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Editorial standards / trust strip */
.blog-trust { margin-top: 18px; padding: 20px 24px; border-radius: var(--b-radius-lg); background: var(--b-surface); font-size: 14px; line-height: 1.6; color: var(--b-ink-2); }
.blog-trust p + p { margin-top: 8px; }
.blog-trust__title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--b-ink); }
.blog-trust__title .bi { color: var(--green); font-size: 16px; }
.blog-trust__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; }
.blog-trust__links a { color: var(--b-primary); font-weight: 600; }
.blog-trust__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* App CTA — the download section, in miniature */
.blog-cta { margin-top: 36px; padding: 34px 32px; border-radius: 22px; border: 1px solid #d5dcee; background: radial-gradient(ellipse at 50% 120%, #d2c6ff66, transparent 65%), linear-gradient(112deg, #f1eaff, #edf0ff 50%, #e6f4ff); text-align: center; }
.blog-cta .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #565180; }
.blog-cta__title { margin-top: 14px; font-family: var(--b-head); font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; color: var(--b-ink); }
.blog-cta > p:not(.eyebrow):not(.blog-cta__title) { margin: 12px auto 0; max-width: 52ch; color: var(--b-muted); font-size: 16px; }
.blog-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.blog-cta__actions .store-button:first-child { background: linear-gradient(120deg, #4058d0, #6856c9); border-color: transparent; }
.blog-cta__actions .store-button:first-child:hover { background: linear-gradient(120deg, #4b64dc, #7563d7); }

.blog-related { margin-top: 44px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 18px; }
.rel-card { display: flex; flex-direction: column; background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); overflow: hidden; transition: box-shadow .25s, border-color .25s, transform .25s; }
.rel-card:hover, .rel-card:focus-visible { box-shadow: var(--b-shadow-lift); border-color: #b9bdea; transform: translateY(-3px); }
.rel-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--b-surface); }
.rel-card__b { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.rel-card__t { font-size: 16px; font-weight: 600; color: var(--b-ink); line-height: 1.35; }
.rel-card:hover .rel-card__t { color: var(--b-primary); }
.rel-card__d { font-size: 14px; color: var(--b-muted); line-height: 1.5; }
.rel-card__when { font-size: 13px; color: var(--b-outline); }
.blog-tools-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--b-line); }

/* Sidebar */
.post-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); padding: 18px 20px; }
.side-card__title { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b-outline); }
.side-toc ol { list-style: none; margin: 0; padding: 0; }
.side-toc li { padding: 5px 0 5px 12px; border-left: 2px solid var(--b-line); font-size: 14px; line-height: 1.4; }
.side-toc li:has(a[aria-current]) { border-left-color: var(--b-primary); }
.side-toc a { color: var(--b-ink-2); }
.side-toc a:hover, .side-toc a[aria-current] { color: var(--b-primary); }
.side-cta { background: linear-gradient(145deg, #edf1ff, #fafbff 75%); }
.side-cta__icon { display: block; border-radius: 11px; margin-bottom: 12px; }
.side-cta .side-card__title { color: var(--b-ink); letter-spacing: -.02em; text-transform: none; font-family: var(--b-head); font-size: 19px; }
.side-cta p { margin: 0 0 14px; font-size: 14px; color: var(--b-ink-2); line-height: 1.55; }
.side-posts { list-style: none; margin: 0; padding: 0; }
.side-posts li { padding: 9px 0; border-bottom: 1px solid var(--b-line); }
.side-posts li:last-child { border-bottom: 0; }
.side-posts a { color: var(--b-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.side-posts a:hover { color: var(--b-primary); }
.side-posts__when { display: block; font-size: 12px; color: var(--b-muted); margin-top: 2px; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-wrap { max-width: 780px; margin-inline: auto; }
  .post-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 780px; width: 100%; margin-inline: auto; }
  .post-side .side-toc { display: none; }
  .blog-toc-inline { display: block; }
}
@media (max-width: 640px) {
  .blog-head { padding: 26px 22px 22px; border-radius: 18px; }
  .blog-head__lede { font-size: 16px; }
  .blog-head__count { margin-left: 0; }
  .post-dek { font-size: 17px; }
  .post-body { font-size: 17px; line-height: 1.7; }
  .post-body h2 { font-size: 25px; margin-top: 1.7em; }
  .post-body h3 { font-size: 20px; }
  .blog-author-box { flex-direction: column; padding: 20px; }
  .blog-crumb [aria-current] { max-width: 24ch; }
  .blog-cta { padding: 28px 20px; }
  .blog-cta__actions .store-button { width: 100%; max-width: 340px; }
  .blog-tools { padding: 26px 20px; }
}

/* ── Author profile (/blog/author/{slug}) ──────────────── */
.author-wrap { max-width: 980px; }
.author-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; padding: 32px; border-radius: 22px; border: 1px solid #dcdff2; background: linear-gradient(112deg, #f1eaff 0%, #edf0ff 50%, #e6f4ff 100%); }
.author-hero__photo { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: linear-gradient(120deg, #4058d0, #6856c9); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 46px/1 var(--b-head); border: 4px solid #fff; box-shadow: 0 8px 24px #2a2f8a1f; }
.author-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-hero .blog-eyebrow { margin-bottom: 8px; }
.author-hero h1 { font-family: var(--b-head); font-weight: 600; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 6px; color: var(--b-ink); }
.author-hero__role { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--b-ink-2); }
.author-hero__bio { margin: 0 0 14px; color: var(--b-ink-2); line-height: 1.65; max-width: 62ch; }
.author-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--b-muted); }
.author-facts strong { color: var(--b-ink); font-weight: 600; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.author-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--b-line); background: var(--b-card); color: var(--b-ink); font-size: 14px; font-weight: 600; }
.author-links a:hover { border-color: var(--b-primary); color: var(--b-primary); }
.author-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 32px; align-items: start; }
.author-sec { margin: 0 0 36px; }
.author-sec h2 { font-size: 26px; letter-spacing: -.035em; margin: 0 0 14px; color: var(--b-ink); }
.author-about p { margin: 0 0 1em; color: var(--b-ink-2); line-height: 1.75; font-size: 17px; }
.author-card { background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); padding: 18px 20px; margin-bottom: 16px; scroll-margin-top: 110px; }
.author-card h2 { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; color: var(--b-outline); }
.author-card .blog-chips { margin-top: 0; }
.author-creds { list-style: none; margin: 0; padding: 0; }
.author-creds li { display: flex; gap: 8px; padding: 7px 0; font-size: 14px; color: var(--b-ink-2); border-bottom: 1px solid var(--b-line); }
.author-creds li:last-child { border-bottom: 0; }
.author-creds .bi { color: var(--b-primary); margin-top: 3px; }
.author-editorial { font-size: 14px; color: var(--b-ink-2); line-height: 1.6; margin: 0 0 12px; }
.author-editorial__links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.author-editorial__links a { font-size: 14px; font-weight: 600; color: var(--b-primary); }
.author-post-row { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; padding: 14px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); margin-bottom: 12px; transition: border-color .25s, box-shadow .25s; }
.author-post-row:hover, .author-post-row:focus-within { border-color: #b9bdea; box-shadow: var(--b-shadow-lift); }
.author-post-row img { width: 168px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--b-radius); display: block; background: var(--b-surface); }
.author-post-row h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; letter-spacing: -.03em; }
.author-post-row h3 a { color: var(--b-ink); }
.author-post-row h3 a::after { content: ''; position: absolute; inset: 0; }
.author-post-row:hover h3 a { color: var(--b-primary); }
.author-post-row p { margin: 0 0 8px; font-size: 14px; color: var(--b-ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-post-row__when { font-size: 13px; color: var(--b-muted); }
@media (max-width: 860px) { .author-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .author-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 20px; }
  .author-hero__photo { width: 112px; height: 112px; }
  .author-facts, .author-links { justify-content: center; }
  .author-post-row { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .author-post-row img { width: 104px; }
  .author-post-row h3 { font-size: 16px; }
  .author-post-row p { display: none; }
}

/* 404 */
.blog-404 { max-width: 640px; text-align: center; padding-block: 56px 24px; }
.blog-404 .eyebrow { color: var(--b-primary); }
.blog-404 h1 { margin: 14px 0 12px; font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.045em; }
.blog-404 p:not(.eyebrow) { color: var(--b-muted); margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card__img, .rel-card, .author-post-row, .blog-tools li a { transition: none; }
  .post-card:hover, .rel-card:hover, .blog-tools li a:hover { transform: none; }
  .post-card:hover .post-card__img { transform: none; }
}
@media print {
  .site-header, .site-footer, .post-side, .blog-cta, .blog-tools-row, .blog-related { display: none !important; }
  .post-layout { display: block; }
}
