/* AssertGrid blog (/blog/ pages only), loaded after site.css. It reuses the site's tokens and components
   (.container, .btn, .eyebrow, .faq__list, .footer) and adds no colours or fonts of its own. No text is set
   below 15px, and every text colour is --jet, --text or --dusk on white, smoke or cyan (4.5:1 or better). */

.blog [hidden] { display: none !important; }
.blog .eyebrow { font-size: 15px; letter-spacing: 0.06em; }
.blog-main { padding-bottom: 120px; }
.nav a[aria-current] { color: var(--jet); text-decoration: underline 2px var(--peach); text-underline-offset: 10px; }

/* footer: the landing page's columns plus a "Blog" column of the categories */
.footer__top { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)) minmax(0, 2fr); }
.footer__col--blog { columns: 2; column-gap: 24px; }
.footer__col--blog h3 { column-span: all; }
.footer__col--blog a { break-inside: avoid; line-height: 1.4; padding: 5px 0; }
.blog .footer__bottom { font-size: 15px; }
.blog .footer__bottom p + p { margin-top: 0; } /* site.css spaces every p + p, which drops the right-hand line */

/* header band shared by the index, category and author pages */
.bhead { padding: 64px 0 52px; background: var(--smoke); border-bottom: 1px solid var(--line); }
.bhead .crumbs { margin-bottom: 22px; }
.bhead__title { max-width: 22ch; font-size: clamp(36px, 1.4rem + 2.4vw, 56px); line-height: 1.12; letter-spacing: -0.02em; }
.bhead__lead { margin-top: 18px; max-width: 40em; font-size: 19px; line-height: 1.65; }

/* breadcrumbs: the separator is a drawn chevron, so screen readers hear only the links */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: 15px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px 0 8px; border-top: 1.5px solid var(--text); border-right: 1.5px solid var(--text); transform: rotate(45deg); }
.crumbs a { color: var(--dusk); font-weight: 500; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }

/* filters: chips are links to the category pages; blog.js turns them into a filter on /blog/ */
.blist { padding-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--jet); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: box-shadow 160ms ease; }
.chips a:hover { box-shadow: inset 0 0 0 1px var(--dusk); }
.chips a[aria-current] { background: var(--jet); color: var(--white); box-shadow: none; }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.blist__count { font-size: 15px; font-weight: 600; color: var(--jet); }
.filters__pick { display: none; flex-wrap: wrap; gap: 12px 20px; }
.js .filters__pick { display: flex; }
.pick { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--jet); }
.pick--category { display: none; }
.pick select { min-width: 0; min-height: 42px; max-width: 100%; padding: 0 38px 0 14px; border: 1.5px solid var(--powder); border-radius: 8px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23293241' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; font: inherit; font-weight: 500; color: var(--jet); appearance: none; cursor: pointer; }
.pick select:focus { outline: none; border-color: var(--dusk); box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.15); }
.empty { margin-top: 32px; padding: 44px 24px; border-radius: var(--radius-lg); background: var(--smoke); font-size: 18px; text-align: center; color: var(--jet); }

/* article cards: the title link covers the whole card */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 28px; }
.pcard { position: relative; display: flex; flex-direction: column; padding: 12px 12px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.pcard:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-float); transform: translateY(-3px); }
.pcard:has(.pcard__title a:focus-visible) { box-shadow: 0 0 0 3px var(--powder); }
.pcard__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--smoke); }
.pcard__body { display: flex; flex: 1; flex-direction: column; padding: 20px 12px 0; }
.pcard__cat { font-size: 15px; font-weight: 600; color: var(--dusk); }
.pcard__title { margin-top: 8px; font-size: 22px; line-height: 1.3; }
.pcard__title a { color: var(--jet); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.pcard__title a:focus-visible { outline: none; }
.pcard__desc { margin-top: 10px; font-size: 16px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; margin-top: auto; padding-top: 18px; font-size: 15px; }
.pcard__meta span + span::before, .byline__meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* article */
.post__head, .post__hero, .post__grid { max-width: 1080px; margin-inline: auto; }
.post__head { padding: 48px 0 36px; }
.post__title { margin-top: 22px; max-width: 24ch; font-size: clamp(36px, 1.5rem + 2.2vw, 56px); line-height: 1.12; letter-spacing: -0.02em; }
.post__dek { margin-top: 18px; max-width: 44em; font-size: 20px; line-height: 1.6; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.byline__name { font-size: 16px; font-weight: 600; color: var(--jet); text-decoration: none; }
.byline__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 15px; }
.ava { flex: none; border-radius: 50%; object-fit: cover; background: var(--disc); }
.ava--40 { width: 40px; height: 40px; }
.ava--72 { width: 72px; height: 72px; }
.ava--120 { width: 120px; height: 120px; }
.ava--initials { display: grid; place-items: center; background: var(--cyan); color: var(--dusk); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.02em; }
.ava--40.ava--initials { font-size: 15px; }
.ava--72.ava--initials { font-size: 24px; }
.ava--120.ava--initials { font-size: 38px; }
.post__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--smoke); }
.post__hero figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.post__grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.post__main { min-width: 0; }
.toc { position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow-y: auto; }
.toc__label { font-size: 15px; font-weight: 600; color: var(--jet); }
.toc ol { margin-top: 12px; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.45; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--jet); border-left-color: var(--peach); }
.toc-mobile { display: none; }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 600; color: var(--jet); cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.toc-mobile[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.toc-mobile ol { padding: 0 18px 10px; }
.toc-mobile a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--dusk); text-decoration: none; }

/* article body: about 68 characters a line, 19px Inter at 1.7 */
.prose { max-width: 68ch; font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 30px; line-height: 1.25; scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.6em; font-size: 23px; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: 0.55em; }
.prose ul, .prose ol, .sources ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol, .sources ol { list-style: decimal; }
.prose li { padding-left: 0.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker, .sources li::marker { color: var(--dusk); }
.prose a, .sources a { color: var(--dusk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .sources a:hover { text-decoration-color: var(--peach); }
.prose strong { font-weight: 600; color: var(--jet); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--smoke); box-shadow: inset 0 0 0 1px var(--line); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: max(15px, 0.85em); color: var(--jet); }
.prose blockquote { padding: 2px 0 2px 24px; border-left: 3px solid var(--peach); font-family: var(--font-head); font-size: 24px; line-height: 1.45; color: var(--jet); }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose .callout { padding: 20px 24px; border-left: 4px solid var(--dusk); border-radius: 0 var(--radius) var(--radius) 0; background: var(--smoke); font-size: 17px; line-height: 1.65; }
.prose .callout > * + * { margin-top: 0.7em; }
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.prose figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--smoke); font-weight: 600; color: var(--jet); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* after the body: questions, sources, call to action, writer card */
.post__faq, .sources, .cta, .author-card { max-width: 800px; margin-top: 64px; }
.post__h2 { font-size: 28px; line-height: 1.25; scroll-margin-top: 100px; }
.post__faq .faq__list { margin-top: 8px; }
.post__faq .faq__list summary { font-size: 20px; }
.sources ol { margin-top: 16px; font-size: 16px; line-height: 1.6; }
.sources li + li { margin-top: 8px; }
.cta { padding: 36px 40px; border-radius: var(--radius-lg); background: var(--cyan); }
.cta .eyebrow { margin-bottom: 10px; }
.cta__title { font-size: 28px; line-height: 1.25; }
.cta p:not(.eyebrow) { margin-top: 12px; font-size: 17px; line-height: 1.65; }
.cta .btn { margin-top: 24px; }
.author-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding-top: 36px; border-top: 1px solid var(--line); }
.author-card__label { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--dusk); }
.author-card__name { margin-top: 6px; font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--jet); }
.author-card__beat { margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--dusk); }
.author-card__bio { margin-top: 10px; font-size: 16px; }
.author-card__more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--dusk); text-underline-offset: 3px; }

/* previous and next within the category, then "More in" */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: calc(1080px + 2 * var(--gutter)); margin-top: 72px; }
.pager__link { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow 200ms var(--ease); }
.pager__link:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.pager__link--next { grid-column: 2; text-align: right; }
.pager__dir { font-size: 15px; font-weight: 600; color: var(--dusk); }
.pager__title { font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--jet); }
.more { max-width: calc(1080px + 2 * var(--gutter)); padding-top: 96px; }
.more__title, .blist__title { font-size: clamp(28px, 1.2rem + 1.2vw, 38px); line-height: 1.2; }

/* authors */
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.acard { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.acard:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-float); transform: translateY(-3px); }
.acard__name { font-size: 22px; line-height: 1.3; }
.acard__name a { color: var(--jet); text-decoration: none; }
.acard__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.acard__beat { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--dusk); }
.acard__bio { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.acard__count { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--jet); }
.author-head { display: flex; align-items: flex-start; gap: 32px; }
.author-head > .ava { margin-top: 4px; }
.author-head__beat { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--dusk); }
.author-head__bio { margin-top: 12px; max-width: 44em; font-size: 18px; }
.author-head__note { margin-top: 8px; font-size: 15px; color: var(--text); }
.bhead__note { margin-top: 14px; max-width: 44em; font-size: 16px; line-height: 1.6; }
.bhead__note a { color: var(--dusk); font-weight: 600; }

/* about page: one column of prose under the header band */
.about { padding-top: 16px; padding-bottom: 32px; }

@media (min-width: 1101px) {
  .prose > figure { margin-inline: -32px; }
}
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__about, .footer__col--blog { grid-column: 1 / -1; }
  .footer__col--blog { columns: 3; }
  .posts, .acards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--blog { columns: 2; }
  .js .filters__chips { display: none; }
  .js .filters--nav .filters__chips { display: block; }
  .js .pick--category { display: inline-flex; }
  .post__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .post__side { display: none; }
  .toc-mobile { display: block; margin-bottom: 36px; border-radius: var(--radius); background: var(--smoke); box-shadow: inset 0 0 0 1px var(--line); }
}
@media (max-width: 640px) {
  .posts, .acards { grid-template-columns: minmax(0, 1fr); }
  .filters--nav { display: none; }
  .filters--nav + .posts, .filters--nav + .empty { margin-top: 0; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager__link--next { grid-column: auto; }
  .author-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .filters__bar { align-items: stretch; }
  .filters__pick, .pick { width: 100%; }
  .pick { justify-content: space-between; }
  .pick select { flex: 1; }
}
@media (max-width: 560px) {
  .blog .btn--sm { font-size: 15px; }
  .bhead { padding: 44px 0 36px; }
  .bhead__lead, .post__dek { font-size: 18px; }
  .post__head { padding-top: 32px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 26px; }
  .prose blockquote { font-size: 21px; }
  .cta { padding: 28px 22px; }
  .footer__col--blog { columns: 1; }
}
