/*
 * The blog: the hub (home.php), topics (archive.php), articles (single.php). Loaded after site.css and refresh.css
 * on blog pages only, and in the same direction: flat surfaces, hairlines, one accent at a time (the topic's),
 * sentence-case labels in the body face. Long-form text gets a 720px measure on the dark ground.
 */

/* ------------------------------------------------------------- the hub */

.blog-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(28px, 4vw, 44px); }
.blog-hero__glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 18% 30%, color-mix(in srgb, var(--accent, #c5d2eb) 14%, transparent), transparent 70%), radial-gradient(35% 40% at 82% 16%, rgba(96, 165, 250, .09), transparent 70%); }
.blog-hero__inner { display: grid; gap: 18px; justify-items: start; }
.blog-hero__title { max-width: 18ch; }
.blog-hero--topic .blog-hero__title { max-width: 22ch; }
.blog-hero .hero__meta { margin: 0; }

.blog-topics { margin-bottom: clamp(28px, 3.4vw, 44px); }
.topic-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hairline-2); color: var(--text-2); font: 600 14px/1 var(--font-body); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.topic-nav a:hover { color: var(--ice); background: var(--surface-2); border-color: rgba(255, 255, 255, .2); }
.topic-nav a[aria-current="page"] { background: var(--ice); color: var(--ink-0); border-color: transparent; }
.topic-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--signal-2)); }
@media (max-width: 700px) {
  .topic-nav ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .topic-nav ul::-webkit-scrollbar { display: none; }
}

.blog-featured { margin-bottom: clamp(56px, 7vw, 96px); }
.blog-intro { margin-bottom: clamp(48px, 6vw, 80px); }
.blog-list { padding-bottom: clamp(24px, 4vw, 48px); }
.blog-list__title { margin: 0 0 20px; font: 600 15px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.blog-empty { display: grid; gap: 14px; justify-items: start; padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 96px); }

/* Article cards: the whole card is the title's link (stretched); the topic stays its own link above it. */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-l); border: 1px solid var(--hairline); background: var(--surface-1); overflow: hidden;
  transition: background .25s, border-color .25s, transform .35s var(--ease); }
.post-card:hover { transform: translateY(-2px); background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.post-card__media, .post-feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-1); }
.post-card__media > img, .post-card__media > svg, .post-feature__media > img, .post-feature__media > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__media > *, .post-feature:hover .post-feature__media > * { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.post-card__title { margin: 0; font: 600 1.2rem/1.25 var(--font-display); letter-spacing: -.012em; color: var(--ice); text-wrap: balance; }
.post-card__excerpt { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .post-meta { margin-top: auto; padding-top: 4px; }

.post-feature { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.4vw, 52px); align-items: center; padding: 12px; border-radius: 28px; border: 1px solid var(--hairline);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), var(--surface-1); transition: border-color .3s var(--ease); }
.post-feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.post-feature__media { border-radius: 20px; }
.post-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(8px, 2vw, 28px) clamp(12px, 2.4vw, 32px) clamp(8px, 2vw, 28px) 0; }
.post-feature__title { margin: 0; font: 600 clamp(1.6rem, 2.8vw, 2.45rem)/1.1 var(--font-display); letter-spacing: -.025em; color: var(--ice); text-wrap: balance; }
.post-feature__excerpt { margin: 0; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .post-feature { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .post-feature__body { padding: 0 10px 14px; }
}

.post-card__title a::after, .post-feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.post-card__title a:focus-visible, .post-feature__title a:focus-visible { outline: none; }
.post-card:has(a:focus-visible), .post-feature:has(.post-feature__title a:focus-visible) { outline: 2px solid var(--signal); outline-offset: 3px; }
.post-topic { position: relative; z-index: 2; width: max-content; font: 600 13.5px/1.2 var(--font-body); color: color-mix(in srgb, var(--accent) 82%, #fff); }
.post-topic:hover { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; color: var(--muted); font-size: 13.5px; }

/* Generated cover art (no featured image): already composed, so it never zooms. */
.cover-art { display: block; width: 100%; height: 100%; }
.post-card:hover .post-card__media > .cover-art, .post-feature:hover .post-feature__media > .cover-art { transform: none; }

/* Numbered pages. */
.pagination { margin-top: clamp(40px, 5vw, 64px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-2); font: 600 14.5px/1 var(--font-body); font-variant-numeric: tabular-nums; transition: background .2s, color .2s, border-color .2s; }
.pagination a.page-numbers:hover { color: var(--ice); background: var(--surface-2); border-color: var(--hairline-2); }
.pagination .page-numbers.current { background: var(--ice); color: var(--ink-0); border-color: transparent; }
.pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0; }
.pagination .icon { width: 18px; height: 18px; }
.icon--back { transform: rotate(180deg); }

/* ------------------------------------------------------------ an article */

/* Wide screens: the contents in a rail beside a 720px column. The hero and the cover span both, so the breadcrumb,
   title, dek, byline, cover and rail share one left edge (Moe: the heading must sit on the margin). */
.article-grid { display: grid; grid-template-columns: minmax(0, 720px); grid-template-areas: "hero" "cover" "rail" "body"; justify-content: center; }
.article-hero { grid-area: hero; display: grid; gap: 20px; padding: calc(var(--header-h) + clamp(32px, 5vw, 76px)) 0 clamp(28px, 3vw, 40px); }
.article-cover { grid-area: cover; margin: 0 0 clamp(36px, 4.4vw, 60px); }
.article-rail { grid-area: rail; min-width: 0; }
.article-body { grid-area: body; min-width: 0; padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: 220px minmax(0, 720px); grid-template-areas: "hero hero" "cover cover" "rail body"; column-gap: clamp(48px, 5vw, 80px); }
  .article-grid--solo { grid-template-columns: minmax(0, 150px) minmax(0, 720px) minmax(0, 150px); grid-template-areas: "hero hero hero" "cover cover cover" ". body ."; }
}

.article-hero__title { margin: 0; max-width: 20ch; font: 600 clamp(2rem, 4.4vw, 3.5rem)/1.06 var(--font-display); letter-spacing: -.032em; color: var(--ice); text-wrap: balance; }
.article-hero__dek { margin: 0; max-width: 60ch; color: var(--text-2); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; text-wrap: pretty; }

.byline { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.byline__avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: color-mix(in srgb, var(--accent) 22%, var(--ink-2)); color: var(--ice); font: 600 14px/1 var(--font-body); box-shadow: 0 0 0 1px var(--hairline-2); }
.byline__text { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.4; }
.byline__name { color: var(--text); font-weight: 600; }
.byline__role { color: var(--muted); }
.byline__meta { display: flex; flex-wrap: wrap; gap: 0 6px; color: var(--muted); font-size: 13.5px; }

.article-cover img { display: block; width: 100%; max-height: min(72vh, 680px); object-fit: cover; border-radius: 24px; border: 1px solid var(--hairline); background: var(--ink-1); }
.article-cover figcaption { margin-top: 12px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* The contents: a sticky rail on wide screens, a folded box above the article otherwise. */
.toc { margin: 0 0 clamp(28px, 4vw, 40px); border-radius: var(--radius-m); border: 1px solid var(--hairline); background: var(--surface-1); }
.toc__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font: 600 14.5px/1.3 var(--font-body); color: var(--text); }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.toc[open] > .toc__title::after { transform: rotate(-135deg) translateY(-2px); }
.toc nav { padding: 0 18px 14px; }
.toc ol { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--hairline-2); }
.toc ol ol { border: 0; }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc ol ol a { padding-left: 26px; font-size: 13.5px; }
.toc a:hover { color: var(--ice); }
.toc a[aria-current="true"] { color: var(--ice); border-left-color: var(--accent, var(--signal-2)); }
@media (min-width: 1100px) {
  /* The padding keeps glyph edges inside the scroll box's clip; the margin puts the text back on the column line. */
  .toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; margin: 0 0 0 -6px; padding-left: 6px; border: 0; background: none; scrollbar-width: thin; }
  .toc__title { padding: 0 0 12px; cursor: default; font-size: 13.5px; color: var(--text); }
  .toc__title::after { display: none; }
  .toc nav { padding: 0; }
}

/* Reading progress (assets/js/blog.js). */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 91; height: 2px; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--brand-deep), var(--accent, var(--signal-2))); will-change: transform; }

/* --------------------------------------------------------- article body */

.article-body .prose { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.article-body .prose > * + * { margin-top: 1.25em; }
.article-body .prose > :first-child { margin-top: 0; }
.article-body .prose :is(h2, h3, h4) { scroll-margin-top: calc(var(--header-h) + 28px); }
.article-body .prose h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.article-body .prose h3 { margin-top: 1.8em; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.25; }
.article-body .prose h4 { margin-top: 1.6em; font: 600 1.06rem/1.35 var(--font-body); letter-spacing: 0; color: var(--ice); }
.article-body .prose :is(h2, h3, h4) + * { margin-top: .7em; }
.article-body .prose li > :is(ul, ol) { margin-top: .4em; }
.article-body .prose mark { padding: 0 .2em; border-radius: 3px; background: rgba(96, 165, 250, .18); color: var(--ice); }
.article-body .prose kbd { padding: .1em .45em; border-radius: 6px; border: 1px solid var(--hairline-2); border-bottom-width: 2px; font: 500 .82em var(--font-mono); color: var(--ice); }
.article-body .prose sup a, .article-body .prose .fn a { text-decoration: none; }
.article-body .prose :is(blockquote, .wp-block-quote) cite, .article-body .prose .wp-block-pullquote cite { display: block; margin-top: 12px; font: 500 14px/1.4 var(--font-body); font-style: normal; color: var(--muted); }
.article-body .prose .wp-block-quote p { margin: 0; }
.article-body .prose .wp-block-quote p + p { margin-top: .6em; }
.article-body .prose .wp-block-pullquote { margin: 2.2em 0; padding: 30px 0; border-block: 1px solid var(--hairline-2); text-align: left; }
.article-body .prose .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.article-body .prose .wp-block-pullquote p { font: 500 clamp(1.35rem, 2.4vw, 1.75rem)/1.35 var(--font-display); letter-spacing: -.015em; color: var(--ice); }

.article-body .prose :is(figure, .wp-block-image, .wp-block-embed, .wp-block-video) { margin-block: 2em; }
.article-body .prose figure img, .article-body .prose video { border-radius: 14px; }
.article-body .prose .wp-block-image.is-style-rounded img { border-radius: 999px; }
.article-body .prose :is(figcaption, .wp-element-caption) { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.article-body .prose .wp-block-embed__wrapper { overflow: hidden; border-radius: 14px; }
.article-body .prose :is(.alignwide, .alignfull) { width: 100%; margin-inline: 0; }
.article-body .prose .alignleft { float: left; max-width: 50%; margin: .4em 1.6em 1em 0; }
.article-body .prose .alignright { float: right; max-width: 50%; margin: .4em 0 1em 1.6em; }
@media (max-width: 640px) {
  .article-body .prose .alignfull { width: auto; margin-inline: calc(-1 * var(--gutter)); }
  .article-body .prose .alignfull img { border-radius: 0; }
  .article-body .prose :is(.alignleft, .alignright) { float: none; max-width: 100%; margin-inline: 0; }
}

.article-body .prose :is(pre, .wp-block-code, .wp-block-preformatted) { overflow-x: auto; margin-block: 1.8em; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--hairline); background: #0b0f15; color: var(--text); font: 400 14.5px/1.65 var(--font-mono); white-space: pre; tab-size: 2; }
.article-body .prose pre code { padding: 0; background: none; color: inherit; font: inherit; }

/* Tables: hairlines, sentence-case headers; wide ones scroll inside their frame. WordPress's own table styles assume a light page. */
.article-body .prose .wp-block-table { overflow-x: auto; margin-block: 2em; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface-1); }
.article-body .prose .wp-block-table.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.article-body .prose .wp-block-table table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.article-body .prose .wp-block-table :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.article-body .prose .wp-block-table thead th, .article-body .prose .wp-block-table thead { border-bottom: 1px solid var(--hairline-2); }
.article-body .prose .wp-block-table th { font: 600 14px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ice); background: rgba(255, 255, 255, .025); }
.article-body .prose .wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.article-body .prose .wp-block-table.is-style-stripes { border-bottom: 1px solid var(--hairline); }
.article-body .prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.article-body .prose .wp-block-table tfoot { border-top: 1px solid var(--hairline-2); color: var(--text); }
.article-body .prose .wp-block-table figcaption { padding: 0 16px 12px; }

.article-body .prose hr, .article-body .prose .wp-block-separator { width: 100%; height: 0; margin: 2.6em auto; border: 0; border-top: 1px solid var(--hairline-2); background: none; opacity: 1; }
.article-body .prose .wp-block-separator.is-style-dots { border: 0; text-align: center; color: var(--faint); }

/* Buttons from the editor look like the site's. */
.article-body .prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.article-body .prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--ice); color: var(--ink-0); font: 600 15px/1 var(--font-body); text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.article-body .prose .wp-block-button__link:hover { box-shadow: 0 8px 30px -12px rgba(197, 210, 235, .55); }
.article-body .prose .wp-block-button.is-style-outline .wp-block-button__link { background: none; border-color: var(--hairline-2); color: var(--ice); }
.article-body .prose .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--surface-2); box-shadow: none; }

/* Questions and answers (the FAQ pattern, core Details blocks). */
.article-body .prose details { margin-top: 0; border-bottom: 1px solid var(--hairline); }
.article-body .prose :not(details) + details { margin-top: 1.4em; border-top: 1px solid var(--hairline); }
.article-body .prose details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 600 17px/1.4 var(--font-body); color: var(--ice); }
.article-body .prose details > summary::-webkit-details-marker { display: none; }
.article-body .prose details > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.article-body .prose details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.article-body .prose details > :not(summary) { margin: 0 0 18px; }
.article-body .prose details > summary + * { margin-top: 0; }

/* Theme block styles (inc/blog.php): Callout, Key takeaways, Call to action, Checklist, Numbered steps. */
.article-body .prose .is-style-vee3-callout { padding: 18px 22px; border-radius: var(--radius-m); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--text); }
.article-body .prose :is(.is-style-vee3-callout, .is-style-vee3-takeaways, .is-style-vee3-cta) > * + * { margin-top: .8em; }
.article-body .prose .is-style-vee3-takeaways { padding: 24px 26px; border-radius: var(--radius-l); border: 1px solid var(--hairline); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), var(--surface-1); }
.article-body .prose .vee3-label { margin: 0; font: 600 14px/1.3 var(--font-body); color: color-mix(in srgb, var(--accent) 82%, #fff); }
.article-body .prose .is-style-vee3-cta { margin-block: 2.2em; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface-1); }
.article-body .prose .vee3-cta-title { margin: 0; font: 600 clamp(1.2rem, 2vw, 1.45rem)/1.25 var(--font-display); letter-spacing: -.015em; color: var(--ice); }
.article-body .prose .is-style-vee3-cta .wp-block-buttons { margin-top: 1.2em; }

.article-body .prose ul.is-style-vee3-checks { display: grid; gap: .55em; padding: 0; list-style: none; }
.article-body .prose ul.is-style-vee3-checks > li { position: relative; margin: 0; padding-left: 32px; }
.article-body .prose ul.is-style-vee3-checks > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: rgba(96, 165, 250, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.article-body .prose ol.is-style-vee3-steps { display: grid; gap: 1.1em; padding: 0; list-style: none; counter-reset: vee3-step; }
.article-body .prose ol.is-style-vee3-steps > li { position: relative; margin: 0; padding-left: 52px; counter-increment: vee3-step; }
.article-body .prose ol.is-style-vee3-steps > li::before { content: counter(vee3-step); position: absolute; left: 0; top: -.05em; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 1px var(--hairline-2); color: var(--ice); font: 600 14px/1 var(--font-body); }
.article-body .prose ol.is-style-vee3-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: -1.1em; width: 1px; background: var(--hairline-2); }

.article-body .prose .wp-block-columns { gap: 1.6em; }
.article-body .prose .wp-block-footnotes { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.article-body .page-links { margin-top: 2em; display: flex; gap: 8px; color: var(--muted); }

/* After the article: share, then the author. */
.article-foot { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--hairline); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { margin-right: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hairline-2); background: none; color: var(--text-2); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.share__btn:hover { background: var(--surface-2); color: var(--ice); }
.share__btn .icon { width: 16px; height: 16px; }
.share__btn.is-done { color: var(--signal-2); border-color: rgba(96, 165, 250, .4); }
html:not(.js) [data-copy-link] { display: none; }

.author-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: var(--radius-l); border: 1px solid var(--hairline); background: var(--surface-1); }
.author-card__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, var(--ink-2)); color: var(--ice); font: 600 18px/1 var(--font-body); box-shadow: 0 0 0 1px var(--hairline-2); }
.author-card__text { display: grid; gap: 6px; }
.author-card__name { margin: 0; color: var(--ice); font-weight: 600; font-size: 16px; }
.author-card__role { margin-left: 6px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.author-card__bio { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.author-card__link { width: max-content; color: var(--signal-2); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(147, 197, 253, .35); text-underline-offset: 3px; }
.author-card__link:hover { text-decoration-color: currentColor; }

.article-tools, .article-related { border-top: 1px solid var(--hairline); }
.article-related .post-grid { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card__media > *, .post-feature__media > * { transition: none; }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card__media > *, .post-feature:hover .post-feature__media > * { transform: none; }
}

/* Printing an article: the text, its title and its sources; none of the site around it. */
@media print {
  body { background: #fff; color: #111; }
  body::after, .site-header, .mobile-menu, .site-footer, .article-rail, .article-foot .share, .article-tools, .article-related, .cta-band, .read-progress, .consent, .tooltip3d { display: none !important; }
  .article-grid { display: block; width: auto; }
  .article-hero { padding-top: 0; }
  .article-hero__title, .article-body .prose :is(h2, h3, h4, strong) { color: #000; }
  .article-hero__dek, .article-body .prose, .byline__meta { color: #222; }
  .article-body .prose a { color: #000; }
  .article-body .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .article-body .prose details > :not(summary) { display: block; }
}
