/* The Inpherio blog (services/blog/pages.py) — reading-first, built on the site tokens so light and
   dark follow the theme. No inline styles anywhere (the CSP forbids them).
   2026-11-07: the hero is the page's first <section> (full-bleed, centred — the site's hero treatment),
   cards use paper/surface tokens with explicit ink text (never --band/--navy: they're black in light
   mode), code blocks set their own light text on the always-dark --code-bg. */
.blog-eyebrow { font: 600 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.blog-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.blog-crumbs a { color: var(--muted); text-decoration: none; }
.blog-crumbs a:hover { color: var(--link); }
.blog-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.blog-tag { display: inline-flex; gap: .35rem; align-items: center; font-size: 12.5px; line-height: 1.4; padding: .28rem .75rem; border-radius: 99px;
  background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.blog-tag span { color: var(--muted); }
a.blog-tag:hover, .blog-tag.is-on { border-color: var(--accent); color: var(--accent); }

/* ── hero (index + post): the page's first section, full width ── */
.blog-hero { padding-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.blog-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.blog-hero h1 { margin: .4rem auto 0; max-width: 20ch; color: var(--ink); text-wrap: balance; }
.blog-hero .blog-lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 44rem; margin: 1rem auto 0; text-wrap: pretty; }
.blog-hero .blog-tags, .blog-hubs { justify-content: center; }
.blog-hubs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.6rem auto 0; max-width: 52rem; }
.blog-rss { font-size: 13px; margin: 1.1rem 0 0; }
.blog-rss a { color: var(--link); }
main > section.blog-hero.blog-hero--post h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.08; max-width: 24ch; }
.blog-byline { font-size: 14px; color: var(--muted); margin: 1.1rem 0 0; }

/* ── index ── */
.blog-index { padding: clamp(1.5rem, 4vw, 3rem) 0 3rem; }
.blog-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: stretch;
  padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-xl, 30px); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); margin: 0 0 1.6rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .18);
  transition: border-color .2s, transform .2s; }
.blog-feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-feature-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.blog-feature h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.12; letter-spacing: -.02em; margin: .1rem 0 .5rem; color: var(--ink); text-wrap: balance; }
.blog-feature p { color: var(--body); margin: 0 0 .8rem; font-size: 1.05rem; line-height: 1.55; }
.blog-feature-art { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.2rem; border-radius: var(--r-lg, 22px);
  background: radial-gradient(120% 120% at 100% 0%, var(--blue-tint) 0%, transparent 60%), var(--cloud); min-height: 10rem; }
.blog-feature-art .blog-tags { justify-content: flex-end; }
.blog-feature-go { align-self: flex-end; font-weight: 600; color: var(--link); }
@media (max-width: 760px) { .blog-feature { grid-template-columns: 1fr; } .blog-feature-art { min-height: 0; } }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.blog-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg, 22px);
  background: var(--surface); transition: border-color .2s; }
.blog-card:hover { border-color: var(--line-strong); }
.blog-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h3 a:hover { color: var(--link); }
.blog-card p { color: var(--body); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }
.blog-card-meta { font-size: 12.5px; color: var(--muted); }
.blog-empty { color: var(--muted); padding: 2rem 0; text-align: center; }

/* ── index tools: search as you type · count · Cards / List; pages ── */
.blog-live[hidden], .blog-results[hidden] { display: none; }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 0 0 1.4rem; scroll-margin-top: 90px; }
.blog-search { flex: 1 1 280px; min-width: 0; }
.blog-search-input { width: 100%; font: inherit; font-size: 16px; padding: .7rem 1rem .7rem 2.6rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 1rem center;
  color: var(--ink); }
.blog-search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.blog-count { margin: 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.blog-views { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.blog-view-btn { font: inherit; font-size: 13.5px; font-weight: 600; border: 0; background: transparent; color: var(--body); padding: .35rem .9rem; border-radius: 999px; cursor: pointer; }
.blog-view-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 2rem 0 .5rem; }
.blog-pager-nums { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.blog-pager-n, .blog-pager-step { font: inherit; font-size: 14px; min-width: 2.4rem; height: 2.4rem; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.blog-pager-n:hover, .blog-pager-step:hover { border-color: var(--accent); }
.blog-pager-n.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); cursor: default; }
.blog-pager-step.is-off { color: var(--muted); cursor: default; opacity: .6; }
.blog-pager-gap { color: var(--muted); padding: 0 .2rem; }
/* List view: one compact row a post — date on the left, title + summary, tags on the right */
.blog-index--list .blog-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.blog-index--list .blog-card { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) auto; grid-template-areas: "meta title tags" "meta text tags";
  gap: .2rem 1.2rem; padding: 1rem .4rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.blog-index--list .blog-card:hover { background: var(--cloud); }
.blog-index--list .blog-card-meta { grid-area: meta; padding-top: .2rem; }
.blog-index--list .blog-card h3 { grid-area: title; font-size: 1.05rem; }
.blog-index--list .blog-card p { grid-area: text; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-index--list .blog-card .blog-tags { grid-area: tags; justify-content: flex-end; align-self: center; max-width: 16rem; }
.blog-index--list .blog-feature { grid-template-columns: 1fr; }
.blog-index--list .blog-feature-art { display: none; }
@media (max-width: 760px) {
  .blog-index--list .blog-card { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "text" "tags"; padding: .9rem .2rem; }
  .blog-index--list .blog-card .blog-tags { justify-content: flex-start; max-width: none; }
}

/* ── article: contents rail · prose · Inpherio card ── */
.blog-article { padding: clamp(1.5rem, 3vw, 2.5rem) 0 3rem; }
.blog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.blog-body { min-width: 0; max-width: 46rem; justify-self: center; width: 100%; }
.blog-rail { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
/* the right column: the Inpherio card, then Related posts filling what's left of the screen and scrolling inside itself */
.blog-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.blog-side > .blog-side-card:first-child { flex: 0 0 auto; }
.blog-toc-inline { display: none; }
@media (max-width: 1180px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .blog-rail { display: none; }
  .blog-toc-inline { display: block; }
}
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } .blog-side { display: none; } }
.blog-side-card { padding: 1.3rem; border-radius: var(--r-lg, 22px); border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: .65rem; }
.blog-side-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.blog-side-card .blog-side-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.blog-side-card .pill { justify-content: center; }

.blog-toc { margin: 0 0 2rem; padding: 1rem 1.2rem; border-radius: var(--r-lg, 22px); border: 1px solid var(--line); background: var(--surface); }
.blog-toc ol { margin: 0; padding-left: 1.1rem; }
.blog-toc li { margin: .3rem 0; font-size: 14.5px; line-height: 1.4; }
.blog-toc a { color: var(--body); text-decoration: none; }
.blog-toc a:hover { color: var(--link); }
.blog-toc--rail { border: 0; background: none; padding: 0 0 0 .9rem; border-left: 2px solid var(--line); border-radius: 0; }
.blog-toc--rail li { font-size: 13.5px; }

.blog-takeaways { padding: 1.2rem 1.4rem; border-radius: var(--r-lg, 22px); background: var(--blue-tint); border: 1px solid var(--line);
  margin-bottom: 1.8rem; color: var(--ink); }
.blog-takeaways .blog-eyebrow { color: var(--link); }
.blog-takeaways ul { margin: 0; padding-left: 1.1rem; }
.blog-takeaways li { margin: .35rem 0; line-height: 1.5; }

.blog-prose { font-size: 18px; line-height: 1.75; color: var(--body); }
.blog-prose > :first-child { margin-top: 0; }
.blog-prose h2 { color: var(--ink); font-size: clamp(1.45rem, 1.2rem + .8vw, 1.75rem); line-height: 1.22; letter-spacing: -.015em; margin: 2.6rem 0 .8rem; scroll-margin-top: 90px; }
.blog-prose h3 { color: var(--ink); font-size: 1.22rem; line-height: 1.3; margin: 1.9rem 0 .6rem; scroll-margin-top: 90px; }
.blog-prose p { margin: 0 0 1.15rem; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.blog-prose li { margin: .4rem 0; }
.blog-prose li::marker { color: var(--muted); }
.blog-prose a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.blog-prose strong { color: var(--ink); }
.blog-prose code { font-family: var(--font-mono); font-size: .86em; background: var(--cloud); color: var(--ink); padding: .12em .4em;
  border-radius: 6px; border: 1px solid var(--line); }
.blog-prose blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.2rem; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.05em; }
.blog-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.blog-code { background: var(--code-bg, #1d1d1f); color: #f5f5f7; padding: 1rem 1.2rem; border-radius: 14px; overflow-x: auto;
  font: 14px/1.65 var(--font-mono); margin: 0 0 1.4rem; }
.blog-prose .blog-code code, .blog-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.blog-table { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 14px; }
.blog-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.blog-table th, .blog-table td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.blog-table tr:last-child td { border-bottom: 0; }
.blog-table th { color: var(--ink); font-weight: 600; background: var(--cloud); }
.blog-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--cloud) 45%, transparent); }

/* cards inside articles */
.blog-model, .blog-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-radius: var(--r-lg, 22px); border: 1px solid var(--line); background: var(--surface); margin: 1.5rem 0; }
.blog-model-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.blog-model-name { font: 600 16px/1.3 var(--font-mono); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.blog-model-name:hover { color: var(--link); }
.blog-model-facts { font-size: 14px; color: var(--muted); }
.blog-model-free { font-size: 11.5px; font-weight: 600; color: var(--green); }
.blog-model--off span { font-size: 14px; color: var(--muted); display: block; }
.blog-cta { background: radial-gradient(140% 140% at 0% 0%, var(--blue-tint) 0%, transparent 55%), var(--surface); }
.blog-cta p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); max-width: 52ch; }
.blog-cta .blog-cta-title { font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: .2rem; }
.blog-models { margin-top: 2.6rem; }
.blog-models h2, .blog-related h2, .blog-faq h2 { font-size: 1.45rem; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--ink); }
.blog-model-grid { display: grid; gap: .2rem; }
.blog-model-grid .blog-model { margin: .4rem 0; }
.blog-faq { margin-top: 2.8rem; }
.blog-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0; margin: .55rem 0; background: var(--surface); }
.blog-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: .95rem 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2em; line-height: 1; }
.blog-faq details[open] summary::after { content: "–"; }
.blog-faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--body); line-height: 1.6; }
.blog-related { margin-top: 3rem; }

/* the two funnels — light panels in light mode, raised panels in dark */
.blog-funnel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 3rem 0 1rem; }
@media (max-width: 760px) { .blog-funnel { grid-template-columns: 1fr; } }
.blog-funnel-col { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-xl, 30px); border: 1px solid var(--line); color: var(--ink);
  background: radial-gradient(130% 130% at 100% 0%, var(--blue-tint) 0%, transparent 60%), var(--cloud); text-align: left; }
.blog-funnel-col h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em; margin: .2rem 0 .6rem; color: var(--ink); }
.blog-funnel-col p { color: var(--body); margin: 0 0 1.1rem; line-height: 1.55; }
.blog-funnel-col .blog-eyebrow { color: var(--muted); }
.blog-funnel-col .pill + .pill { margin-left: .4rem; }

/* headings that carry the reading (article sections, FAQ, the funnels) are always visible — the site's
   scroll-in reveal (motion.js .mx-rv) would leave them blank until scrolled past, and in screenshots */
.js main :is(.blog-prose, .blog-faq, .blog-models, .blog-related, .blog-funnel) :is(h2, h3).mx-rv { opacity: 1; filter: none; transform: none; }

/* ── listen: the post read aloud (assets/js/blog-audio.js) ── */
.blog-listen { display: inline-flex; align-items: center; gap: .25rem; color: var(--link); font-weight: 600; white-space: nowrap; }
.blog-listen svg { vertical-align: -2px; }
.blog-audio { margin: 1.2rem auto 0; max-width: 50rem; }
.ba-bar { flex-wrap: nowrap; }
.blog-audio-el { width: 100%; }
.blog-audio-note { margin: .4rem 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .35rem; }
.blog-audio.is-enhanced .blog-audio-el { display: none; }
.ba-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .6rem; padding: .55rem .8rem; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(0,0,0,.25); }
.ba-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ba-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .4rem; border: 0;
  border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.ba-btn:hover { background: var(--cloud); }
.ba-play { background: var(--ink); color: var(--surface); width: 2.6rem; height: 2.6rem; }
.ba-play:hover { background: var(--ink); opacity: .9; }
.blog-audio .ba-bar input.ba-seek, .blog-audio .ba-bar input.ba-vol { width: auto; min-height: 0; padding: 0; margin: 0; border: 0; box-shadow: none; }
.blog-audio .ba-bar input.ba-seek { flex: 1 1 8rem; min-width: 5rem; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 99px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0 var(--ba-played, 0%), var(--line-strong) var(--ba-played, 0%) var(--ba-buffered, 0%), var(--line) var(--ba-buffered, 0%) 100%); }
.ba-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.ba-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.ba-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ba-speeds { display: inline-flex; gap: 2px; }
.ba-speed { min-width: 0; height: 1.9rem; padding: 0 .45rem; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--body); }
.ba-speed[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.blog-audio .ba-bar input.ba-vol { width: 4.5rem; height: 4px; accent-color: var(--accent); background: transparent; }
.ba-resume[hidden] { display: none; }
.ba-resume { margin: .5rem auto 0; display: block; font: inherit; font-size: 13px; font-weight: 600; color: var(--link); background: var(--blue-tint, var(--cloud));
  border: 0; border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
@media (max-width: 860px) {
  .ba-bar { flex-wrap: wrap; border-radius: 18px; }
  .blog-audio .ba-bar input.ba-seek { order: 10; flex-basis: 100%; }
  .ba-vol, .ba-mute { display: none; }
}

/* ── share bar (top under the byline, again at the end) ── */
.blog-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: 1.1rem auto 0; max-width: 50rem; }
.blog-share--end { margin: 2.4rem auto 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.blog-share-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: .2rem; }
.blog-share-btn { font: inherit; font-size: 13px; font-weight: 600; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.2; }
.blog-share-btn:hover { border-color: var(--accent); color: var(--link); text-decoration: none; }
.blog-share-native[hidden] { display: none; }
.blog-share-native { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* ── the text stays on the page (blog-post.js turns a copy into the link) ── */
.blog-article.is-protected, .blog-hero--post.is-protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.blog-article.is-protected input, .blog-article.is-protected textarea { -webkit-user-select: text; user-select: text; }
.blog-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--surface); padding: .7rem 1.1rem; border-radius: 12px; font-size: 14px; max-width: min(92vw, 30rem);
  text-align: center; transition: opacity .2s, transform .2s; }
.blog-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.blog-print-note { display: none; }
@media print {
  .blog-article .blog-layout, .blog-article .wrap, .blog-audio, .blog-share { display: none !important; }
  .blog-print-note { display: block; font-size: 16px; margin: 2rem 0; }
}

/* ── sidebar: related posts ── */
.blog-side-rel { flex: 0 1 auto; min-height: 9rem; padding: 1.1rem 1.1rem .9rem; gap: .5rem; overflow: hidden; }
.blog-side-rel .blog-eyebrow { margin: 0; }
.blog-side-rel-list { list-style: none; margin: 0 -.4rem; padding: 0 .7rem 0 .4rem; overflow-y: auto; min-height: 0; flex: 1 1 auto;
  scrollbar-width: thin; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 .6rem, #000 calc(100% - 1rem), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 .6rem, #000 calc(100% - 1rem), transparent 100%); }
.blog-side-rel-list li + li { border-top: 1px solid var(--line); }
.blog-side-rel-list a { display: flex; flex-direction: column; gap: .2rem; padding: .65rem 0; text-decoration: none; }
.blog-side-rel-t { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-side-rel-list a:hover .blog-side-rel-t { color: var(--link); }
.blog-side-rel-m { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.blog-side-rel-m svg { color: var(--link); }
.blog-side-rel-more { font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; padding-top: .3rem; border-top: 1px solid var(--line); }
/* the top share: one button, a small menu under it */
.blog-share--top { display: flex; flex-direction: column; align-items: center; position: relative; margin-top: 1rem; }
.blog-share--top > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.blog-share--top > summary::-webkit-details-marker { display: none; }
.blog-share--top > summary::before { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7'/%3E%3Cpath d='M16 6l-4-4-4 4M12 2v13'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7'/%3E%3Cpath d='M16 6l-4-4-4 4M12 2v13'/%3E%3C/svg%3E") center/contain no-repeat; }
/* opens IN PLACE under the button (the hero clips anything absolutely placed past its edge) */
.blog-share-menu { margin-top: .6rem; display: grid; width: 34rem; max-width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .35rem; padding: .6rem; border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--surface); box-shadow: 0 12px 32px -12px rgba(0,0,0,.28); }
.blog-share-menu .blog-share-btn { text-align: center; }
/* the index pitch + accessibility notes */
.blog-listen-pitch { display: flex; gap: .8rem; align-items: flex-start; text-align: left; max-width: 40rem; margin: 1.2rem auto 0; padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.blog-listen-pitch p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.blog-listen-pitch b { color: var(--ink); }
.blog-listen-pitch-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--blue-tint, var(--cloud)); color: var(--link); }
.blog-listen-pitch-icon svg { width: 18px; height: 18px; }
.blog-a11y { font-size: 12.5px; color: var(--muted); margin: .45rem auto 0; max-width: 40rem; text-align: center; line-height: 1.5; }
.blog-a11y b { color: var(--body); font-weight: 600; }
/* the share button is a <details>, not an FAQ accordion: none of motion.css's accordion look (border, clip, stripe, ＋) */
main details.blog-share--top, main details.blog-share--top[open] { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
main details.blog-share--top::before { display: none; }
main details.blog-share--top > summary { padding: .45rem 1rem; gap: .45rem; font-size: 13.5px; font-weight: 600; letter-spacing: 0;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); }
main details.blog-share--top > summary:hover, main details.blog-share--top[open] > summary { border-color: var(--accent); background: var(--surface); }
main details.blog-share--top > summary::after { display: none; }
main details.blog-share--top > summary:focus-visible { border-radius: 999px; }

