/* Reading pages: blog posts and case studies (direction A of the blog redesign, from blog-redesign gate 2's sketch2/blog.css),
   then the indexes as build-reading gate 3 built them (rewritten next). Loaded after sections.css, before footer.css.
   A post's page carries body.bl: grounds B (a stone top, the article on one paper band, stone for previous and next, ink
   only in a closing). Code is TRMNL's own highlighting theme (prism_trmnl.css and the --syntax-* variables, written into
   the page by Marketing::SyntaxTheme) on the sage plate. Dark follows html.dark from the theme script, as today. */

body.bl {
  --ground: var(--stone);      /* the top and stone bands */
  --band: #f2efe9;             /* Paper 1, the paper band (grounds B) */
  --stone-2: #ddd7cc;
  --ink: #22201e;
  --ink-2: rgba(34, 32, 30, .74);
  --ink-3: rgba(34, 32, 30, .66);
  --hair: rgba(34, 32, 30, .14);
  --hair-2: rgba(34, 32, 30, .26);
  --coral: #f8654b;
  --coral-ink: #a63c28;
  --scrim: rgba(24, 23, 22, .9);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --cover-ratio: 1200 / 630;
  --code-plate: #dce3d2;       /* sage, in place of the theme's own --syntax-bg */
  background: var(--ground); color: var(--ink);
}
html.dark body.rd-theme.bl {
  --ground: #181716;
  --band: #1f1d1b;
  --stone-2: #2a2826;
  --ink: #efebe4;
  --ink-2: rgba(239, 235, 228, .76);
  --ink-3: rgba(239, 235, 228, .58);
  --hair: rgba(239, 235, 228, .13);
  --hair-2: rgba(239, 235, 228, .26);
  --coral-ink: #ff8a72;
  --scrim: rgba(10, 10, 9, .92);
  --code-plate: #314236;
  background: var(--ground);
}
html.dark body.rd-theme.bl .nav nav { color: var(--ink-2); }
html.dark body.rd-theme.bl .btn-line { border-color: var(--hair-2); color: var(--ink); }
body.bl .paper { background: transparent; }
body.bl .paper::before { display: none; }
.bl a:focus-visible, .bl button:focus-visible, .bl [tabindex]:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
.bl .nav { border-bottom: 1px solid var(--hair); }
.bl .btn-line { border-color: var(--hair-2); color: var(--ink); background: transparent; }
.bl .btn-line:hover { border-color: var(--ink); }

/* Bands */
.bl-band { background: var(--band); }
.bl-stone { background: var(--ground); }

/* Type pieces */
.bl-eyebrow { font-size: var(--t-label); font-weight: 540; letter-spacing: .01em; color: var(--ink-2); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.bl-eyebrow a:hover { color: var(--ink); }
.bl-back { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: baseline; }
.bl-back:hover { color: var(--ink); }
.bl-h1 { margin-top: 10px; font-size: 56px; line-height: 1.03; letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; color: var(--ink); }
.bl-h1--long { font-size: 44px; line-height: 1.06; }
.bl-sub { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.bl-meta { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-feature-settings: "tnum" 1; }
.bl-meta a { color: var(--ink-3); }
.bl-meta a:hover { color: var(--ink); }
.bl-kicker { font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.bl-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Byline */
.bl-byline { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); align-items: baseline; }
.bl-byline b { font-weight: 560; color: var(--ink); }
.bl-byline--stack { flex-direction: column; gap: 2px; }

/* Cover frame: 1.91 : 1, never cropped; with no cover, a quiet plate with the TRMNL glyph */
.bl-cover { position: relative; display: block; aspect-ratio: var(--cover-ratio); overflow: hidden; border-radius: 6px; background: var(--stone-2); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.bl-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
a:hover .bl-cover img { transform: scale(1.015); }
.bl-cover--none { display: grid; place-items: center; }
.bl-cover--none img.gl { width: 16%; height: auto; opacity: .22; }
html.dark body.rd-theme.bl .bl-cover--none img.gl { filter: invert(1); opacity: .3; }

/* Contents: the rail beside the text (wide screens), a fold above it (phone and tablet); the section in view is marked */
.bl-toc { font-size: 14px; }
.bl-toc .bl-kicker { display: block; margin-bottom: 10px; }
.bl-toc ol { list-style: none; counter-reset: t; display: grid; }
.bl-toc li { counter-increment: t; }
.bl-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; border-top: 1px solid var(--hair); color: var(--ink-2); line-height: 1.35; }
.bl-toc a::before { content: counter(t, decimal-leading-zero); font-size: 11px; color: var(--ink-3); padding-top: 2px; font-feature-settings: "tnum" 1; }
.bl-toc a:hover { color: var(--ink); }
.bl-toc a[aria-current] { color: var(--ink); box-shadow: inset 2px 0 0 var(--coral); padding-left: 10px; }
.bl-toc a[aria-current]::before { color: var(--coral-ink); }
details.bl-toc { border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
details.bl-toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: 14px; font-weight: 520; gap: 12px; }
details.bl-toc summary::-webkit-details-marker { display: none; }
details.bl-toc summary .bl-meta { margin-left: auto; }
details.bl-toc summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--ink-3); width: 14px; text-align: center; }
details.bl-toc[open] summary::after { content: "\2212"; }
details.bl-toc ol { padding-bottom: 10px; }
.bl-toc-fold { display: none; margin-bottom: 32px; }

/* Facts row (case study) */
.bl-facts { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 0 40px; align-items: end; border-top: 1px solid var(--hair-2); padding-top: 14px; }
.bl-facts > div { min-width: 0; }
.bl-facts dt { font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.bl-facts dd { font-size: 15px; margin-top: 4px; }
.bl-facts .big { justify-self: end; text-align: right; }
.bl-facts .big dd { font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.bl-facts .big dd small { font-size: 14px; letter-spacing: 0; color: var(--ink-2); margin-left: 2px; } /* with the space inside, 6 px as drawn */

/* The top: words beside the cover (split), or with no cover the title on 8 columns and the facts at the right */
.a-top { padding-block: 36px 40px; }
.a-top-grid { align-items: stretch; row-gap: 20px; grid-template-rows: auto 1fr; } /* the cover spans both rows; its extra height goes to the words */
.a-crumb { grid-column: 1 / span 5; grid-row: 1; justify-content: space-between; padding-right: 24px; }
.a-admin { display: flex; gap: 8px; }
.a-top-txt { grid-column: 1 / span 5; grid-row: 2; display: flex; flex-direction: column; gap: 20px; padding-right: 24px; }
.a-top-txt .foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }
.a-top-cover { grid-column: 6 / -1; grid-row: 1 / span 2; }
.a-top-cover figcaption { font-size: var(--t-caption); color: var(--ink-3); margin-top: 8px; display: flex; justify-content: space-between; gap: 16px; }
.a-top--bare .a-crumb, .a-top--bare .a-top-txt { grid-column: 1 / span 8; padding-right: 0; }
.a-top-side { grid-column: 10 / -1; grid-row: 2; align-self: end; display: grid; gap: 10px; }
.a-top .bl-facts { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
.a-top:has(.bl-facts) { padding-bottom: 56px; }

/* The article: the rail in columns 1-3, the text in 4-11 (700 px measure; pictures, code and tables to the column) */
.a-body { padding-block: 48px 96px; }
.a-body .grid { align-items: start; }
.a-rail { grid-column: 1 / span 3; position: sticky; top: 24px; padding-right: 32px; }
.a-main { grid-column: 4 / span 8; min-width: 0; }

/* Prose: the post's stored body (Marketing::ArticleBody marks it .rd-body) */
.bl .rd-body { font-size: 18px; line-height: 1.66; color: var(--ink); font-weight: var(--w-body); overflow-wrap: break-word; }
.bl .rd-body > * + * { margin-top: 1.05em; }
.bl .rd-body > * { max-width: 700px; }
.bl .rd-body > :is(figure, action-text-attachment, .rd-code, p:has(> figure), .attachment-gallery) { max-width: none; }
.bl .rd-body h1, .bl .rd-body h2 { font-family: var(--sans); font-size: 30px; line-height: 1.15; letter-spacing: -0.018em; font-weight: 420; margin-top: 2.1em; scroll-margin-top: 24px; }
.bl .rd-body h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 460; margin-top: 1.9em; scroll-margin-top: 24px; }
.bl .rd-body h4 { font-size: 18px; font-weight: 600; margin-top: 1.6em; }
.bl .rd-body :is(h1, h2, h3, h4) + * { margin-top: .55em; }
.bl .rd-body > :first-child { margin-top: 0; }
.bl .rd-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.bl .rd-body a:hover { text-decoration-thickness: 2px; }
.bl .rd-body b, .bl .rd-body strong { font-weight: 600; }
.bl .rd-body ul, .bl .rd-body ol { padding-left: 1.35em; }
.bl .rd-body li + li { margin-top: .35em; }
.bl .rd-body ul li::marker { content: "\2013  "; color: var(--ink-3); }
.bl .rd-body ol li::marker { color: var(--ink-3); font-feature-settings: "tnum" 1; }
.bl .rd-body blockquote { border-left: 2px solid var(--coral); padding: 2px 0 2px 24px; font-size: 22px; line-height: 1.45; letter-spacing: -0.008em; }
.bl .rd-body blockquote p + p { margin-top: .6em; }
.bl .rd-body figure { margin-top: 2em; margin-bottom: 2em; }
.bl .rd-body action-text-attachment { display: block; }
.bl .rd-body figure img, .bl .rd-body > img { width: 100%; height: auto; border-radius: 6px; }
.bl .rd-body figcaption, .bl .rd-body .attachment__caption { font-size: 13px; color: var(--ink-3); margin-top: 10px; display: block; }
.bl .rd-body .attachment-gallery { display: flex; flex-wrap: wrap; gap: var(--g); }
.bl .rd-body .attachment-gallery > * { flex: 1 1 280px; min-width: 0; }
.bl .rd-body details { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 0; }
.bl .rd-body details summary { cursor: pointer; font-weight: 520; }
.bl .rd-body hr { border: 0; border-top: 1px solid var(--hair-2); margin: 2.4em 0; }
/* A picture the column shrank is enlargeable (the page script wraps it): zoom cursor, a corner mark on hover or focus */
.bl-zoom { position: relative; display: block; cursor: zoom-in; }
.bl-zoom::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(24, 23, 22, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23efebe4' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M9.5 2.5h4v4M6.5 13.5h-4v-4M13.5 2.5 9 7M2.5 13.5 7 9'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.bl-zoom:hover::after, .bl-zoom:focus-visible::after { opacity: 1; }
/* Tables: ruled, column heads in small capitals; only the first row's header cells are heads, later ones are row labels set like cells */
.bl .rd-body .lexxy-content__table-wrapper { overflow-x: auto; position: relative; }
.bl .rd-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-feature-settings: "tnum" 1; }
.bl .rd-body th { text-align: left; font-size: 12px; font-weight: var(--w-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--hair-2); padding: 0 16px 10px 0; vertical-align: bottom; }
.bl .rd-body td { border-bottom: 1px solid var(--hair); padding: 10px 16px 10px 0; vertical-align: top; }
.bl .rd-body td p, .bl .rd-body th p { margin: 0; }
.bl .rd-body tr:not(:first-child) th { font-size: inherit; font-weight: 480; letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom-color: var(--hair); padding: 10px 16px 10px 0; vertical-align: top; }
/* Video players keep their full width. */
.bl .rd-body figure.rd-embed { margin-top: 2em; }
.bl .rd-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }

/* Code: TRMNL's highlighting theme on the sage plate. prism_trmnl.css colors Prism's .token classes (what today's highlighter
   writes); stored editor content may carry Lexxy's code-token__* classes, mapped here onto the same variables. */
.bl .rd-body code { font-family: var(--mono); font-size: .84em; background: var(--code-plate); color: var(--syntax-base); border-radius: 4px; padding: .1em .38em; }
.bl .rd-body :not(pre) > code { overflow-wrap: anywhere; }
.bl .rd-body pre { font-family: var(--mono); font-size: 14px; line-height: 1.62; background: var(--code-plate); color: var(--syntax-base); padding: 20px 24px; border-radius: 6px;
  overflow-x: auto; white-space: pre; overflow-wrap: normal; tab-size: 2; scrollbar-width: thin; }
.bl .rd-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
/* A long line scrolls inside its plate; the right edge fades while there is more to see (the page script marks it) */
.rd-code { position: relative; }
.rd-code[data-more]::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; pointer-events: none;
  border-radius: 0 6px 6px 0; background: linear-gradient(to right, transparent, var(--code-plate)); }
.bl .rd-body :is(.code-token__attr, .code-token__operator) { color: var(--syntax-keyword); }
.bl .rd-body .code-token__property { color: var(--syntax-property); }
.bl .rd-body :is(.code-token__selector, .code-token__variable) { color: var(--syntax-string); }
.bl .rd-body .code-token__function { color: var(--syntax-function); }
.bl .rd-body .code-token__punctuation { color: var(--syntax-punctuation); }
.bl .rd-body .code-token__comment { color: var(--syntax-comment); font-style: italic; }
/* Off until the user decides (build-blog gate 1, contrast.md): the smallest lightness-only changes that bring every theme
   token to 4.5 : 1 on the sage plates, for the blog's code only; Core's theme is untouched. The switch is
   Marketing::SyntaxTheme::BLOG_PLATE_FIXES, which puts .bl-code-fixes on the page. */
html:not(.dark) .bl-code-fixes .rd-body { --syntax-comment: #5d636f; --syntax-function: #915519; --syntax-number: #915519; --syntax-property: #0c6e61;
  --syntax-keyword: #0c6e61; --syntax-string: #9e3c8d; --syntax-inserted: #137337; }
html.dark .bl-code-fixes .rd-body { --syntax-comment: #a9a9a9; --syntax-punctuation: #a9a9a9; --syntax-tag: #8bb1a2; --syntax-deleted: #d6999f;
  --syntax-boolean: #a3aba5; }

/* Picture viewer: the page dims, the picture full size with its caption, a 44 px close button; a click anywhere or Esc closes */
.bl-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; z-index: 50;
  background: var(--scrim); padding: 16px 20px 20px; color: #efebe4; }
.bl-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.bl-viewer::backdrop { background: transparent; }
.bl-viewer .bar { display: flex; justify-content: flex-end; }
.bl-viewer .x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(239, 235, 228, .4); background: transparent; color: #efebe4; display: grid; place-items: center; cursor: pointer; }
.bl-viewer .x:hover { border-color: #efebe4; }
.bl-viewer .pic { display: grid; place-items: center; min-height: 0; }
.bl-viewer .pic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.bl-viewer .vcap { text-align: center; font-size: 13px; color: rgba(239, 235, 228, .76); padding-top: 12px; min-height: 28px; }

/* Previous and next */
.a-more { padding-block: 56px 96px; }
.a-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 4px; }
.a-more-head a { font-size: 13px; color: var(--ink-2); }
.a-more-head a:hover { color: var(--ink); }
.bl-pn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.bl-pn > * { min-width: 0; }
.bl-pn a { display: grid; grid-template-columns: 168px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--hair-2); color: var(--ink); }
.bl-pn a.nx { grid-template-columns: 1fr 168px; text-align: right; }
.bl-pn a.nx .bl-cover { order: 2; }
.bl-pn a > span:last-child { min-width: 0; }
.bl-pn .bl-kicker { display: block; }
.bl-pn .t { font-size: 19px; line-height: 1.25; margin: 6px 0 4px; display: block; text-wrap: balance; }
.bl-pn a.nx .bl-meta { justify-content: flex-end; }
.bl-pn .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.bl-pn a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Tablet (761 to 1100), the stacked top (1023 and less) and phone (760 and less) */
@media (max-width: 1100px) {
  .a-rail { display: none; }
  .a-main { grid-column: 1 / -1; }
  .a-main .rd-body > * { margin-left: auto; margin-right: auto; }
  .a-main .rd-body > :is(figure, action-text-attachment, .rd-code, p:has(> figure), .attachment-gallery) { margin-left: 0; margin-right: 0; }
  .bl-toc-fold { display: block; max-width: 700px; margin-left: auto; margin-right: auto; }
  .a-top-txt .bl-h1 { font-size: 44px; }
  .a-top-txt .bl-h1--long { font-size: 36px; }
  .a-top--bare .a-crumb, .a-top--bare .a-top-txt { grid-column: 1 / span 9; }
}
@media (max-width: 1023px) {
  .a-top-grid { display: flex; flex-direction: column; row-gap: 0; }
  .a-top-txt { display: contents; }
  .a-crumb, .a-top-txt > * { order: 1; }
  .a-top-txt > div { margin-top: 12px; }
  .a-top-cover { order: 2; margin-top: 24px; }
  .a-top-txt .bl-sub, .a-top-txt .foot, .a-top-side { order: 3; }
  .a-top-txt .bl-sub { margin-top: 20px; }
  .a-top-txt .foot, .a-top-side { margin-top: 16px; padding-top: 0; }
  .a-top--bare .a-top-side { align-self: stretch; }
  .a-crumb { padding-right: 0; }
  .a-top .bl-facts { order: 4; margin-top: 28px; }
}
@media (max-width: 760px) {
  .bl-h1, .a-top-txt .bl-h1 { font-size: 36px; line-height: 1.06; }
  .bl-h1--long, .a-top-txt .bl-h1--long { font-size: 30px; line-height: 1.1; }
  .bl-sub { font-size: 17px; }
  .bl .rd-body { font-size: 17px; }
  .bl .rd-body h1, .bl .rd-body h2 { font-size: 25px; }
  .bl .rd-body h3 { font-size: 21px; }
  .bl .rd-body blockquote { font-size: 19px; padding-left: 16px; }
  .bl .rd-body > .rd-code { margin-left: calc(-1 * var(--m)) !important; margin-right: calc(-1 * var(--m)) !important; }
  .bl .rd-body pre { padding: 18px 20px; font-size: 13px; border-radius: 0; }
  .rd-code[data-more]::after { border-radius: 0; }
  .bl .rd-body .lexxy-content__table-wrapper { margin-right: calc(-1 * var(--m)) !important; }
  .bl .rd-body table { font-size: 14px; min-width: 520px; }
  .bl-pn { grid-template-columns: 1fr; gap: 0; }
  .bl-pn a, .bl-pn a.nx { grid-template-columns: 112px 1fr; text-align: left; gap: 14px; padding: 16px 0; }
  .bl-pn a.nx .bl-cover { order: 0; }
  .bl-pn a.nx .bl-meta { justify-content: flex-start; }
  .bl-pn .t { font-size: 16.5px; }
  .bl-facts { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .bl-facts .big { justify-self: start; text-align: left; grid-column: 1 / -1; }
  .a-top { padding-block: 20px 28px; }
  .a-top:has(.bl-facts) { padding-bottom: 40px; }
  .a-body { padding-block: 24px 72px; }
  .a-more { padding-block: 40px 72px; }
}

/* ===== The indexes (blog, topic pages, case studies list), direction A: a stone top, the list on a band whose ground is
   one variable (--bl-list-ground; paper as drawn, while the user has not answered whether a paper band may run longer
   than about one screen), then the closing. ===== */
body.bl { --bl-list-ground: var(--band); --bl-btn-h: 40px; }  /* --bl-btn-h: until the design system's button size lands */
.bl-list-band { background: var(--bl-list-ground); }
.bl ol.a-ix-grid, .bl ol.a-cs-list { list-style: none; }
.bl-new { color: var(--coral-ink); }
.bl-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bl-actions .btn { height: var(--bl-btn-h); }

/* Topics: a tab bar on one rule (drawn inside the bar, so a scrolling bar keeps it); the selected topic's 2 px coral line
   covers the rule under its label and count, ink on hover and focus; labels and counts on one baseline, even space above and below */
.bl-topics { display: flex; flex-wrap: wrap; column-gap: 26px; align-items: flex-end; font-size: 14.5px; box-shadow: inset 0 -1px 0 var(--hair); }
.bl-topics a { color: var(--ink-2); padding: 12px 0 10px; line-height: 20px; border-bottom: 2px solid transparent; display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.bl-topics a:hover, .bl-topics a:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }
.bl-topics a[aria-current] { color: var(--ink); border-bottom-color: var(--coral); }
.bl-topics .n { font-size: 11.5px; line-height: inherit; color: var(--ink-3); font-feature-settings: "tnum" 1; }

/* Year line: the year and its count */
.bl-year { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--hair-2); padding-top: 14px; }
.bl-year b { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; font-feature-settings: "lnum" 1, "tnum" 1; }
.bl-year span { font-size: 13px; color: var(--ink-3); }

/* Card: cover, date and topics, title, description; the whole card links */
.bl-card { display: grid; gap: 14px; align-content: start; color: var(--ink); min-width: 0; }
.bl-card > .cv { display: block; }
.bl-card .t { font-size: 21px; line-height: 1.22; letter-spacing: -0.012em; font-weight: 430; text-wrap: pretty; font-family: var(--sans); }
.bl-card a.tl:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bl-card .d { font-size: var(--t-body-s); line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.bl-card .txt { display: grid; gap: 8px; align-content: start; min-width: 0; }
.bl-card--lead { grid-template-columns: subgrid; grid-column: 1 / -1; gap: 0 var(--g); align-items: center; }
.bl-card--lead > .cv { grid-column: 6 / -1; grid-row: 1; }
.bl-card--lead .txt { grid-column: 1 / span 5; grid-row: 1; gap: 16px; padding-right: 24px; }
.bl-card--lead .t { font-size: 40px; line-height: 1.06; letter-spacing: -0.022em; font-weight: 400; }
.bl-card--lead .d { font-size: 17px; -webkit-line-clamp: 4; }
/* a case study: facts, the link and the number under the words */
.bl-card .facts { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.bl-card .facts b { color: var(--ink); font-weight: 560; }
.bl-card .num { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 4px; }
.bl-card .num b { font-size: 40px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.bl-card .num span { font-size: 14px; color: var(--ink-2); }
.bl-arrow { font-size: 14px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; justify-self: start; }
.bl-arrow:hover { text-decoration-color: currentColor; }

/* Loading: three stand-in cards (rows on a phone) while the next nine load; "Show more" without scripts; the end of the list */
.bl-skel { display: grid; gap: 14px; align-content: start; }
.bl-skel i { display: block; border-radius: 6px; background: var(--stone-2); animation: bl-pulse 1.4s ease-in-out infinite; }
.bl-skel .c { aspect-ratio: var(--cover-ratio); }
.bl-skel .tx { display: grid; gap: 10px; }
.bl-skel .l1 { height: 12px; width: 40%; border-radius: 3px; }
.bl-skel .l2 { height: 20px; width: 85%; border-radius: 3px; }
.bl-skel .l3 { height: 14px; width: 70%; border-radius: 3px; }
@keyframes bl-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bl-skel i { animation: none; } }
.bl-load { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 48px 0 0; font-size: 13px; color: var(--ink-3); }
.bl-end { display: flex; align-items: center; gap: 16px; padding-top: 48px; font-size: 13px; color: var(--ink-3); }
.bl-end::before, .bl-end::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }

/* Admin (as today: staff only): new post or case study, drafts */
.bl-admin { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bl-drafts { width: 100%; border: 1px dashed var(--hair-2); border-radius: 6px; padding: 16px 18px; }
.bl-drafts ul { list-style: none; margin-top: 10px; }
.bl-drafts li { padding: 5px 0; font-size: 15px; }
.bl-drafts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bl-drafts time { margin-left: 10px; font-size: 13px; color: var(--ink-3); }

/* Page layouts */
.a-ix-top { padding-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: end; }
.a-ix-top .bl-h1 { font-size: 48px; margin-top: 10px; }
.a-ix-top .bl-sub { font-size: 17px; margin-top: 10px; }
.a-ix-bar { margin-top: 28px; }
.a-ix-lead { padding-block: 40px 64px; }
.a-ix-list { padding-block: 56px 96px; }
.a-ix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px var(--g); }
.a-ix-grid .bl-year { grid-column: 1 / -1; margin-bottom: -24px; }
.a-ix-grid .bl-year:not(:first-child) { margin-top: 24px; }
.a-cs-kicker { margin-bottom: 28px; }
.a-cs-list { display: grid; gap: 72px; }
.a-cs-list .bl-card--lead { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.a-cs-list .bl-card--lead > .cv { grid-column: 1 / span 7; }
.a-cs-list .bl-card--lead .txt { grid-column: 8 / -1; padding: 0 0 0 24px; }
.a-cs-list .bl-card--lead:nth-child(even) > .cv { grid-column: 6 / -1; }
.a-cs-list .bl-card--lead:nth-child(even) .txt { grid-column: 1 / span 5; padding: 0 24px 0 0; }
.a-cs-list .bl-card--lead .t { font-size: 30px; }
/* Case studies: the quote band, quotes left, picture right */
.cs-quotes { align-items: center; }
.cs-q { grid-column: 1 / span 5; padding-right: 24px; }
.cs-q > .bl-kicker { margin-bottom: 22px; }
.cs-q blockquote { border-left: 2px solid var(--coral); padding: 2px 0 2px 22px; }
.cs-q blockquote + blockquote { margin-top: 28px; }
.cs-q blockquote > p:first-child { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }
.cs-q blockquote.cs-lead > p:first-child { font-size: 30px; }
.cs-q .bl-meta { margin-top: 10px; }
.cs-q .bl-arrow { display: inline-block; margin-top: 12px; }
.cs-qp { grid-column: 6 / -1; }
.cs-qp .bl-cover { aspect-ratio: 1 / 1; }
.cs-qp figcaption { justify-content: space-between; margin-top: 8px; }

@media (max-width: 1100px) {
  .a-ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--g); }
  .a-cs-list .bl-card--lead .t { font-size: 26px; }
}
@media (max-width: 1023px) {
  .cs-q, .cs-qp { grid-column: 1 / -1; padding: 0; }
  .cs-qp { margin-top: 32px; }
  .bl-card--lead, .a-cs-list .bl-card--lead { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bl-card--lead > .cv, .bl-card--lead .txt,
  .a-cs-list .bl-card--lead > .cv, .a-cs-list .bl-card--lead .txt,
  .a-cs-list .bl-card--lead:nth-child(even) > .cv, .a-cs-list .bl-card--lead:nth-child(even) .txt { grid-column: 1; grid-row: auto; padding: 0; }
}
@media (max-width: 760px) {
  /* the right edge fades while more topics follow; the bottom 2 px (the rule and the selected line) never fade */
  .bl-topics { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; column-gap: 20px; padding-right: 32px;
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent), linear-gradient(#000, #000);
    mask-size: 100% calc(100% - 2px), 100% 2px; mask-position: top left, bottom left; mask-repeat: no-repeat; }
  .bl-topics::-webkit-scrollbar { display: none; }
  .bl-year b { font-size: 24px; }
  .bl-card--lead .t { font-size: 28px; }
  .bl-card--lead .d { font-size: 15.5px; }
  .a-ix-top { grid-template-columns: 1fr; padding-top: 24px; }
  .a-ix-top .bl-h1 { font-size: 36px; }
  .a-ix-bar { margin-top: 20px; }
  .a-ix-lead { padding-block: 24px 40px; }
  .a-ix-list { padding-block: 32px 72px; }
  .a-ix-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .a-ix-grid .bl-year { margin: 28px 0 0; }
  .a-ix-grid .bl-year:first-child { margin-top: 0; }
  .a-ix-grid :is(.bl-card, .bl-skel) { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--hair); }
  .a-ix-grid .bl-year + :is(.bl-card, .bl-skel) { border-top: 0; }
  .a-ix-grid .bl-card .txt, .a-ix-grid .bl-skel .tx { gap: 4px; }
  .a-ix-grid .bl-card .t { font-size: 16.5px; line-height: 1.28; }
  .a-ix-grid .bl-card .d { -webkit-line-clamp: 2; font-size: 14px; }
  .a-cs-list { gap: 48px; }
}

/* ===== The paper top that the News and Bounties pages share (build-reading gate 9); they load this file for it. ===== */
.rt { position: relative; background: var(--paper); }
.rt::after { content: ""; position: absolute; left: var(--m); right: var(--m); top: 76px; height: 1px; background: var(--hair); }
.brand .lg-w { display: none; }
.rt-grid { padding-top: 40px; align-items: start; }
.rt-copy { grid-column: 1 / span 9; padding-top: 72px; }
.rt .label { font-size: var(--t-eyebrow); font-weight: var(--w-eyebrow); letter-spacing: -0.005em; color: var(--ink); }
.rt .label a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rt h1 { margin-top: 32px; font-size: var(--t-hero); line-height: 1.04; color: var(--ink); max-width: 16em; }
.rt-sub { margin-top: 28px; font-size: var(--t-hero-line); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.rt-by { margin-top: 28px; font-size: 14.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rt-by b { font-weight: 540; color: var(--ink); }
.rt-by.bl-feeds span { font-weight: 540; color: var(--ink); }
.rt-by.bl-feeds a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.rt-by.bl-feeds a:hover { color: var(--ink); text-decoration-color: var(--ink); }
@media (max-width: 760px) {
  .rt::after { top: 64px; }
  .rt-copy { grid-column: 1 / -1; padding-top: 40px; }
  .rt h1 { margin-top: 20px; font-size: 40px; }
  .rt-sub { font-size: var(--t-hero-line-phone); margin-top: 18px; }
}

/* The visitor's dark setting (the reading pages, News and Bounties follow it): the site's own dark-band colors. The theme
   script puts .dark on <html> from the visitor's stored choice or their system setting, as on today's pages. */
html.dark body.rd-theme { --paper: #181716; --stone: #22201e; --s-stone: #22201e; --bone: #2b2926; --ink: #efebe4;
  --ink-2: rgba(239,235,228,.74); --ink-3: rgba(239,235,228,.56); --hair: rgba(239,235,228,.18); background: #181716; color-scheme: dark; }
html.dark body.rd-theme .paper::before { opacity: 0; }
html.dark body.rd-theme .brand .lg-k { display: none; }
html.dark body.rd-theme .brand .lg-w { display: block; }
html.dark body.rd-theme .btn-line, html.dark body.rd-theme .cta-stone .btn-line { border-color: rgba(239,235,228,.42); color: var(--ink); }
html.dark body.rd-theme .more { border-bottom-color: rgba(239,235,228,.38); }

/* The closing is the site's dark closing in both settings: ClosingComponent reading: true (sections.css). */
