/* The blog (templates/drobo/blog/index.html, _post.html and _card.html; the top-performer post renders through
   _post.html too), in the app frame. Loaded after css/drobo-ui.css, only by blog pages. The Magic UI pieces (dots,
   shiny and gradient text, magic card, border beam, blur fade) are the kit's; this file lays them out and sets the
   article's type. Every colour comes from the kit's tokens (--ui-*), so light and dark follow the theme.

   Made to be read, in dark first (owner, 2026-09-27: "hard to read in dark mode"):
     Ground   the article is one sheet, a touch lighter than the page in dark, with nothing drawn behind its words
              (the header's dots and glow keep to the side that has no text)
     Colour   headings the brightest; the article's text a soft white in dark (never pure white on black) and near
              black in light, 11:1 or more against the sheet; descriptions one step quieter (7:1 or more); the muted
              tone only for meta (dates, captions), 4.5:1 or more; links underlined, in the accent that stands clear of
              the ground in each theme
     Measure  the text column is 37rem: about 68 characters of article text a line
     Type     headings, three sizes: the title (1.9-2.5rem; the index uses the Help center's 2.15-2.9rem), section
              headings 1.5rem, sub-headings and card titles 1.125rem. Text: the article 1.0625rem / 1.7 (1rem on phones),
              descriptions and notes 1rem and .9375rem, meta and captions .875rem, labels .75rem and .8125rem
   Beside the sheet, where the page has the room: "On this page", a plain rail (as on Privacy and Terms); otherwise it
   is folded above the sheet.
   Motion: the kit's blur fade as a part arrives, a lift of 2-3px on cards, one border beam (the featured post). Nothing
   else moves on its own; reduced motion turns all of it off (css/drobo-ui.css).
   Behaviour: js/drobo-blog.js (topic filter and search, the section being read, copy link, reading progress). The
   page is complete HTML without it. Never write `font: … inherit` shorthands. */

body.bl-page {
  --bl-measure: 37rem;
  --bl-pad: 2.25rem;                                                        /* the sheet's side padding */
  --bl-ink: var(--ui-fg);                                                   /* headings */
  --bl-text: color-mix(in srgb, var(--ui-fg-2) 92%, var(--ui-panel));       /* the article's text */
  --bl-text-2: color-mix(in srgb, var(--ui-fg-2) 80%, var(--ui-panel));     /* descriptions */
  --bl-meta: color-mix(in srgb, var(--ui-muted) 85%, var(--ui-fg));         /* dates, captions, labels */
  --bl-link: var(--ui-primary-hover);                                       /* deeper blue on light, lighter blue on dark */
  --bl-rule: color-mix(in srgb, var(--ui-fg) 13%, transparent);             /* hairlines that show in both themes */
  --bl-ground: var(--ui-card);                                              /* the sheet */
}
html[data-theme="dark"] body.bl-page { --bl-ground: color-mix(in srgb, var(--ui-fg) 3%, var(--ui-card)); }
.bl-flashes { display: none; }   /* shown as toasts (js/drobo-toast.js) */
body.ui-app.bl-page .ui-link { color: var(--bl-link) !important; }

/* Top bar: a long post title in the breadcrumb is cut with an ellipsis instead of pushing the buttons out. */
body.bl-page .ui-crumbs { flex: 0 1 auto; min-width: 0; }
body.bl-page .ui-crumbs ol, body.bl-page .ui-crumbs li { min-width: 0; }
body.bl-page .ui-crumbs li:first-child { flex: 0 0 auto; }
body.bl-page .ui-crumbs li > span { overflow: hidden; text-overflow: ellipsis; }

/* ── Header: sized as on the Help center, Contact, Privacy and Terms ─────── */
.bl-hero .ui-hero__inner { padding-top: 3.25rem; padding-bottom: 2.25rem; }
.bl-hero__text { gap: .85rem; max-width: 44rem; }
.bl-h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.035em; line-height: 1.12; color: var(--bl-ink); text-wrap: balance; }
.bl-hero--index .bl-h1 { max-width: 15em; font-size: clamp(2.15rem, 3.4vw, 2.9rem); line-height: 1.08; }
.bl-hero .ui-lead { max-width: var(--bl-measure); font-size: 1.125rem; line-height: 1.6; color: var(--bl-text-2); }
.bl-hero--index .ui-lead { font-size: 1.0625rem; }
/* The dots keep to the corner that has no words. */
.bl-hero > .ui-dots {
  -webkit-mask-image: radial-gradient(ellipse 45% 95% at 100% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 95% at 100% 0%, #000 15%, transparent 70%);
}

/* Meta line under a post's title: who, when, how long. One size, one colour; an icon before each, so a line that
   wraps on a phone never starts with a stray dot. */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.15rem; margin-top: .4rem; font-size: .875rem; line-height: 1.4; color: var(--bl-meta); font-variant-numeric: tabular-nums; }
.bl-meta > * { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.bl-meta > * > span { white-space: pre; }
.bl-meta .ti { font-size: 1rem; color: var(--ui-muted); }
.bl-meta__author { font-weight: 600; color: var(--bl-text); }
.bl-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.6rem; height: 1.6rem; background: var(--ui-card); border: 1px solid var(--bl-rule); border-radius: 50%; box-shadow: var(--ui-shadow-sm); }
body.ui-app .bl-mark img { width: auto; height: .95rem; max-width: none; }

/* Reading progress: a hairline under the top bar, filled as the article is read. */
.bl-reading-progress { position: sticky; top: 3.5rem; z-index: 29; height: 2px; margin-bottom: -2px; pointer-events: none; }
.bl-reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ui-primary), var(--ui-violet)); transform: scaleX(0); transform-origin: left; }

/* ── A post: the sheet, and "On this page" beside it ─────────────────────── */
.bl { container: bl / inline-size; padding-top: .5rem; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; }
.bl-main { box-sizing: border-box; width: 100%; max-width: calc(var(--bl-measure) + 2 * var(--bl-pad) + 2px); min-width: 0; }
.bl-side { display: none; min-width: 0; }
@container bl (min-width: 58rem) {
  .bl-layout { grid-template-columns: minmax(0, calc(var(--bl-measure) + 2 * var(--bl-pad) + 2px)) 14rem; justify-content: start; column-gap: 2.25rem; }
  .bl-main { grid-column: 1; grid-row: 1; }
  .bl-side { display: block; grid-column: 2; grid-row: 1; }
  .bl-side__sticky { position: sticky; top: 4.75rem; display: grid; gap: 1.5rem; max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .bl-side__sticky::-webkit-scrollbar { display: none; }
  .bl-toc--mobile { display: none; }
}

/* The sheet: the cover across its top, then the words, held to the measure. */
body.ui-app .bl-sheet { padding: 0; background: var(--bl-ground); border-color: var(--bl-rule); border-radius: var(--ui-radius-lg); }
.bl-sheet__in { padding: 2rem var(--bl-pad) 2.5rem; }
.bl-cover { margin: 0; }
body.ui-app .bl-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ui-subtle); border-radius: calc(var(--ui-radius-lg) - 1px) calc(var(--ui-radius-lg) - 1px) 0 0; }
.bl-cover figcaption { padding: .65rem var(--bl-pad) 0; }
.bl-cover figcaption, .bl-body figcaption { font-size: .875rem; line-height: 1.5; color: var(--bl-meta); }
.bl-body figcaption { margin-top: .65rem; }

/* On this page. Beside the sheet: a plain rail; its heading is a label. */
.bl-toc__label { margin: .15rem 0 .5rem; padding: 0 .75rem; font-size: .75rem; font-weight: 650; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--bl-meta); }
.bl-toc__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
body.ui-app .bl-toc__list a {
  display: block; padding: .45rem .75rem; font-size: .875rem; line-height: 1.45; color: var(--bl-text-2); text-decoration: none;
  border-radius: var(--ui-radius-control); transition: background .15s, color .15s;
}
body.ui-app .bl-toc__list a:hover { color: var(--bl-ink); background: var(--ui-hover); }
body.ui-app .bl-toc__list a.is-current { color: var(--bl-link); background: var(--ui-primary-soft); }
/* Above the sheet (no room beside it): a card that opens and closes. */
.bl-toc--mobile { margin: 0 0 1rem; padding: 0; border-color: var(--bl-rule); }
.bl-toc--mobile > summary { display: flex; align-items: center; gap: .55rem; height: var(--ui-h-field); padding: 0 1rem; font-size: .9375rem; font-weight: 600; color: var(--bl-ink); list-style: none; cursor: pointer; border-radius: inherit; }
.bl-toc--mobile > summary::-webkit-details-marker { display: none; }
.bl-toc--mobile > summary .ti { font-size: 1.1rem; color: var(--bl-meta); }
.bl-toc--mobile > summary .ti-chevron-down { margin-left: auto; font-size: 1rem; transition: transform .2s var(--ui-ease); }
.bl-toc--mobile[open] > summary .ti-chevron-down { transform: rotate(180deg); }
.bl-toc--mobile .bl-toc__list { padding: 0 .4rem .45rem; }
body.ui-app .bl-toc--mobile .bl-toc__list a { padding: .6rem .75rem; font-size: .9375rem; color: var(--bl-text); }   /* a finger's height */
.bl-toc--mobile::details-content { height: 0; overflow: clip; transition: height .28s var(--ui-ease), content-visibility .28s allow-discrete; }
.bl-toc--mobile[open]::details-content { height: auto; }
.bl-toc--mobile[data-still]::details-content { transition: none; }   /* closed by picking a section: at once (js/drobo-blog.js) */

/* Beside the sheet, under the list: the calculator */
.bl-side__cta { display: grid; justify-items: start; gap: .3rem; padding: 1rem 1.1rem 1.1rem; border-color: var(--bl-rule); }
.bl-side__cta-title { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--bl-ink); }
.bl-side__cta-text { margin: 0 0 .3rem; font-size: .875rem; line-height: 1.55; color: var(--bl-text-2); }
.bl-side__cta-link { font-size: .875rem; }
.bl-side__cta-link .ti, .bl-card__go .ti, .bl-related__all .ti { transition: transform .25s var(--ui-ease); }
.bl-side__cta-link:hover .ti, .bl-card:hover .bl-card__go .ti, .bl-related__all:hover .ti { transform: translateX(3px); }

/* Key takeaways */
.bl-take { margin: 0 0 2rem; padding: 1.15rem 1.35rem 1.3rem; background: color-mix(in srgb, var(--ui-primary) 7%, var(--bl-ground)); border: 1px solid color-mix(in srgb, var(--ui-primary) 30%, var(--bl-rule)); border-radius: var(--ui-radius); }
.bl-take__label { margin: 0 0 .7rem; }
.bl-take ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bl-take li { position: relative; padding-left: 1.65rem; font-size: 1rem; line-height: 1.6; color: var(--bl-text); }
.bl-take li::before { content: ""; position: absolute; top: .42em; left: .3rem; width: .3rem; height: .6rem; border: solid var(--bl-link); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ── The article's text ──────────────────────────────────────────────────── */
.bl-body {
  font-size: 1.0625rem; line-height: 1.7; color: var(--bl-text); overflow-wrap: break-word;
  /* the shared figures (templates/drobo/_blog_figures.html, css/blog-figures.css) take the theme's colours */
  --fig-bg-token: color-mix(in srgb, var(--ui-fg) 4%, transparent); --fig-line-token: var(--bl-rule); --fig-text-token: var(--bl-ink); --fig-muted-token: var(--bl-meta);
  --fig-accent-token: var(--bl-link); --fig-accent-soft-token: var(--ui-primary-soft);
}
.bl-body > :first-child { margin-top: 0; }
.bl-body > :last-child { margin-bottom: 0; }
/* The article's own paragraphs and lists; the shared figures (.fig) keep theirs. */
.bl-body p:where(:not(.fig *)) { margin: 0 0 1.2rem; }
.bl-body .bl-lead { font-size: 1.1875rem; line-height: 1.65; color: var(--bl-text); }
/* Headings: brighter and larger than the text, more room above than below. */
.bl-body h2, .bl-body h3, .bl-faq > h2 { color: var(--bl-ink); text-wrap: balance; scroll-margin-top: 5rem; }   /* lands under the top bar (3.5rem) */
.bl-body h2, .bl-faq > h2 { margin: 2.75rem 0 .85rem; font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.bl-body h3 { margin: 2rem 0 .6rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.bl-body h2 + h3 { margin-top: 0; }
.bl-anchor { display: block; height: 0; scroll-margin-top: 5rem; }   /* the address a section had before */
.bl-body strong { font-weight: 600; color: var(--bl-ink); }
/* Links: colour and an underline, so they stand out from the text in both themes. */
body.ui-app .bl-body a, body.ui-app .bl-sources a, body.ui-app .bl-author a {
  color: var(--bl-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--bl-link) 60%, transparent); transition: text-decoration-color .15s;
}
body.ui-app .bl-body a:hover, body.ui-app .bl-sources a:hover, body.ui-app .bl-author a:hover { text-decoration-color: currentColor; }
.bl-body ul:where(:not(.fig *)), .bl-body ol:where(:not(.fig *)) { display: grid; gap: .55rem; margin: 0 0 1.2rem; padding: 0 0 0 1.35rem; }
.bl-body ul:where(:not(.fig *)) { list-style: disc; }
.bl-body ol:where(:not(.fig *)) { list-style: decimal; }
.bl-body li:where(:not(.fig *)) { min-width: 0; padding-left: .25rem; }
.bl-body li:where(:not(.fig *))::marker { color: var(--bl-meta); font-variant-numeric: tabular-nums; }
.bl-body ol:where(:not(.fig *)) > li::marker { font-weight: 600; }
.bl-body hr { height: 1px; margin: 2.5rem 0; background: var(--bl-rule); border: 0; }

/* A quotation, and who said it */
.bl-body blockquote { margin: 1.75rem 0; padding: .15rem 0 .15rem 1.25rem; border-left: 3px solid var(--bl-link); }
.bl-body blockquote p { margin: 0 0 .35rem; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.6; color: var(--bl-ink); }
.bl-body cite { display: block; font-size: .875rem; font-style: normal; line-height: 1.5; color: var(--bl-meta); }

/* A note set apart from the text */
.bl-callout { --tone: var(--bl-link); margin: 1.75rem 0; padding: 1rem 1.2rem 1.1rem; background: color-mix(in srgb, var(--tone) 8%, var(--bl-ground)); border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--bl-rule)); border-radius: var(--ui-radius); }
.bl-body .bl-callout p { margin: 0; font-size: 1rem; line-height: 1.65; }
.bl-body .bl-callout p + p { margin-top: .5rem; }
.bl-body .bl-callout .bl-callout__k, .bl-take__label { font-size: .75rem; font-weight: 650; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--bl-link); }
.bl-body .bl-callout .bl-callout__k { margin: 0 0 .35rem; color: var(--tone); }

/* Tables fit the column, on a phone too (long words break at a syllable); only one with four or more columns scrolls,
   inside its own frame. Hairlines that show in dark, and every other row on a faint band. */
.bl-table { margin: 1.75rem 0; overflow-x: auto; border: 1px solid var(--bl-rule); border-radius: var(--ui-radius); scrollbar-width: thin; }
.bl-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; color: var(--bl-text); font-variant-numeric: tabular-nums; }
.bl-table caption { padding: .75rem 1rem; font-size: .875rem; line-height: 1.5; color: var(--bl-meta); text-align: left; caption-side: top; border-bottom: 1px solid var(--bl-rule); }
.bl-table th { padding: .65rem 1rem; font-size: .875rem; font-weight: 600; color: var(--bl-ink); text-align: left; vertical-align: bottom; background: color-mix(in srgb, var(--ui-fg) 7%, transparent); border-bottom: 1px solid var(--bl-rule); }
.bl-table td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bl-rule); }
.bl-table th + th, .bl-table td + td { border-left: 1px solid var(--bl-rule); }
.bl-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ui-fg) 3.5%, transparent); }
.bl-table tbody tr:last-child td { border-bottom: 0; }
.bl-table td:first-child { color: var(--bl-ink); }
.bl-table th, .bl-table td { min-width: 6rem; }   /* a short amount ("−$18.00") stays on one line beside a long description */
.bl-table table:has(th:nth-child(4)) { min-width: 34rem; }

/* Pictures, code */
.bl-body figure { margin: 1.75rem 0; }
body.ui-app .bl-body figure:not(.fig) img { display: block; width: 100%; height: auto; background: var(--ui-subtle); border: 1px solid var(--bl-rule); border-radius: var(--ui-radius); }
.bl-body .fig { margin: 1.75rem 0; }
.bl-body .fig-shot__frame { box-shadow: var(--ui-shadow); }
.bl-body .fig-steps { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }   /* four steps stay on one line in this column */
.bl-body code, .bl-body kbd { padding: .1em .35em; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em; color: var(--bl-ink); background: color-mix(in srgb, var(--ui-fg) 7%, transparent); border: 1px solid var(--bl-rule); border-radius: 6px; overflow-wrap: anywhere; }
.bl-body pre { margin: 1.75rem 0; padding: 1rem 1.15rem; overflow-x: auto; font-size: .9375rem; line-height: 1.6; color: var(--bl-ink); background: color-mix(in srgb, var(--ui-fg) 5%, transparent); border: 1px solid var(--bl-rule); border-radius: var(--ui-radius); scrollbar-width: thin; }
.bl-body pre code { padding: 0; font-size: inherit; background: none; border: 0; overflow-wrap: normal; }

/* ── After the text, still on the sheet ──────────────────────────────────── */
.bl-sources { margin: 3rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--bl-rule); }
.bl-sources h2 { margin: 0 0 .8rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; color: var(--bl-ink); }
.bl-sources ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.bl-sources li { font-size: 1rem; line-height: 1.55; }
.bl-sources p { margin: .9rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--bl-meta); }

/* Questions: one row each, the answer opening under it (browsers without ::details-content snap). */
.bl-faq { margin: 3rem 0 0; }
.bl-faq > h2 { margin-top: 0; }
.bl-faq__item { border-top: 1px solid var(--bl-rule); }
.bl-faq__item:last-child { border-bottom: 1px solid var(--bl-rule); }
.bl-faq__item summary { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; color: var(--bl-ink); list-style: none; cursor: pointer; }
.bl-faq__item summary::-webkit-details-marker { display: none; }
.bl-faq__item summary .ti {
  display: grid; place-items: center; flex: 0 0 auto; width: 1.95rem; height: 1.95rem; margin-left: auto; font-size: 1rem; color: var(--bl-meta);
  border: 1px solid var(--bl-rule); border-radius: 50%; transition: transform .4s var(--ui-ease), color .2s, background .2s, border-color .2s;
}
.bl-faq__item summary:hover .ti { color: var(--bl-ink); border-color: var(--ui-border-strong); }
.bl-faq__item[open] summary .ti { color: var(--bl-link); background: var(--ui-primary-soft); border-color: transparent; transform: rotate(45deg); }
.bl-faq__item summary:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--ui-focus); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.bl-faq__item::details-content { height: 0; overflow: clip; transition: height .38s var(--ui-ease), content-visibility .38s allow-discrete; }
.bl-faq__item[open]::details-content { height: auto; }
.bl-faq__item p { margin: 0; padding: 0 3rem 1.25rem 0; font-size: 1.0625rem; line-height: 1.7; color: var(--bl-text); }
.bl-faq__item[open] p { animation: ui-blur-in .45s var(--ui-ease) both; }

/* ── Under the sheet: share, who wrote it, what to do next ───────────────── */
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 0; }
.bl-share__label { margin-right: .4rem; font-size: .875rem; font-weight: 600; color: var(--bl-meta); }
body.ui-app .bl-share__btn {
  position: relative; display: inline-grid; place-items: center; width: var(--ui-h); height: var(--ui-h); box-sizing: border-box; padding: 0; font-size: 1.05rem; color: var(--bl-text); text-decoration: none;
  background: var(--ui-card); border: 1px solid var(--bl-rule); border-radius: 50%; box-shadow: var(--ui-shadow-sm); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
body.ui-app .bl-share__btn:hover { color: var(--bl-ink); border-color: var(--ui-border-strong); }
.bl-share__copied {
  position: absolute; bottom: calc(100% + .45rem); left: 50%; padding: .2rem .5rem; font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--ui-panel);
  background: var(--ui-fg); border-radius: 6px; opacity: 0; transform: translate(-50%, 3px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.bl-share__copy.is-copied .bl-share__copied { opacity: 1; transform: translate(-50%, 0); }
.bl-author { display: flex; align-items: flex-start; gap: .9rem; margin: 1.25rem 0 0; padding: 1.15rem 1.25rem 1.2rem; border-color: var(--bl-rule); }
.bl-author .bl-mark { width: 2.5rem; height: 2.5rem; background: var(--ui-subtle); box-shadow: none; }
body.ui-app .bl-author .bl-mark img { height: 1.35rem; }
.bl-author__name { margin: .1rem 0 .2rem; font-size: 1rem; font-weight: 600; color: var(--bl-ink); }
.bl-author__bio { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--bl-text-2); }

/* The plans, the docs. The colour keeps to the corner away from the words. */
.bl-cta { display: grid; justify-items: start; gap: .45rem; margin: 1.25rem 0 0; padding: 1.5rem 1.5rem 1.6rem; overflow: hidden; border-color: var(--bl-rule);
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--ui-violet) 12%, transparent), transparent 70%), var(--ui-card); }
.bl-cta__title { margin: 0; font-size: 1.125rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.35; color: var(--bl-ink); }
.bl-cta__text { margin: 0; max-width: 30rem; font-size: 1rem; line-height: 1.6; color: var(--bl-text-2); }
.bl-cta__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

/* The post before, the post after */
.bl-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
body.ui-app .bl-pn__item { display: grid; align-content: start; gap: .3rem; padding: 1rem 1.15rem 1.1rem; color: inherit; text-decoration: none; border-color: var(--bl-rule); transition: translate .25s var(--ui-ease), box-shadow .25s var(--ui-ease), border-color .2s var(--ui-ease); }
body.ui-app .bl-pn__item:hover { translate: 0 -2px; border-color: var(--ui-border-strong); box-shadow: var(--ui-shadow-lg); }
.bl-pn__item--newer { grid-column: 2; justify-items: end; text-align: right; }
.bl-pn__label { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; color: var(--bl-meta); }
.bl-pn__title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--bl-ink); text-wrap: balance; }

/* Keep reading */
.bl-related { margin: 3.5rem 0 0; padding: 2.5rem 0 0; border-top: 1px solid var(--bl-rule); }
body.ui-app .bl-head { margin: 0 0 1.25rem; align-items: baseline; }
.bl-head h2 { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.3; color: var(--bl-ink); }
.bl-related__all { font-size: .9375rem; }

/* ── Cards (the index, the featured post, keep reading) ──────────────────── */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; min-width: 0; }
.bl-grid__item { display: flex; min-width: 0; }   /* every card in a row takes the row's height */
.bl-grid__item > .bl-card, .bl-grid > .bl-card { flex: 1 1 auto; }
body.ui-app .bl-card {
  display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 0; box-sizing: border-box; color: inherit; text-decoration: none;
  background: var(--bl-ground); border-color: var(--bl-rule);
  transition: translate .3s var(--ui-ease), box-shadow .3s var(--ui-ease), border-color .2s var(--ui-ease);
}
body.ui-app .bl-card:hover { translate: 0 -3px; border-color: var(--ui-border-strong); box-shadow: var(--ui-shadow-lg); }
.bl-card__cover { display: block; flex: 0 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ui-subtle); border-bottom: 1px solid var(--bl-rule); border-radius: calc(var(--ui-radius) - 1px) calc(var(--ui-radius) - 1px) 0 0; }
body.ui-app .bl-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ui-ease); }
.bl-card:hover .bl-card__cover img { transform: scale(1.03); }
.bl-card__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 0; padding: 1.15rem 1.25rem 1.1rem; }
/* The topic: a quiet chip */
.bl-card__tag { display: inline-flex; align-items: center; gap: .35rem; height: 1.6rem; padding: 0 .65rem; font-size: .8125rem; font-weight: 600; line-height: 1; color: var(--bl-text-2); background: color-mix(in srgb, var(--ui-fg) 6%, transparent); border: 1px solid var(--bl-rule); border-radius: 999px; }
.bl-card__tag .ti { font-size: .9rem; color: var(--bl-meta); }
.bl-card__title { margin: .1rem 0 0; font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.35; color: var(--bl-ink); text-wrap: balance; }
.bl-card__desc { display: -webkit-box; overflow: hidden; font-size: .9375rem; line-height: 1.6; color: var(--bl-text-2); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.bl-card__meta { display: flex; flex-wrap: wrap; align-items: center; align-self: stretch; gap: .2rem .45rem; margin-top: auto; padding-top: .7rem; font-size: .875rem; line-height: 1.4; color: var(--bl-meta); font-variant-numeric: tabular-nums; }
.bl-card__go { display: inline-flex; align-items: center; gap: .2rem; margin-left: auto; font-weight: 600; color: var(--bl-link); }
.bl-card__go .ti { font-size: 1rem; }
/* In the grid the arrow alone says "read": the date and the reading time keep the line. */
.bl-grid .bl-card__go { font-size: 0; }

/* The featured post: the picture beside the words, the page's one border beam */
.bl-feature { margin: 0 0 1.25rem; }
body.ui-app .bl-card--feature { flex-direction: row; }
.bl-card--feature .bl-card__cover { flex: 0 0 54%; align-self: stretch; aspect-ratio: 16 / 10; border-right: 1px solid var(--bl-rule); border-bottom: 0; border-radius: calc(var(--ui-radius) - 1px) 0 0 calc(var(--ui-radius) - 1px); }
.bl-card--feature .bl-card__body { justify-content: center; gap: .7rem; padding: 2rem 2.25rem; }
.bl-card--feature .bl-card__title { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.25; }
.bl-card--feature .bl-card__desc { font-size: 1rem; line-height: 1.65; -webkit-line-clamp: 4; line-clamp: 4; }
.bl-card--feature .bl-card__meta { margin-top: 0; padding-top: .5rem; }
.bl-card--feature.ui-beam::after { animation-duration: 11s; }

/* ── The index ───────────────────────────────────────────────────────────── */
.bl-index { container: bl / inline-size; padding-top: .5rem; }
.bl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 0 1.5rem; }
.bl-tags { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.bl-tag {
  display: inline-flex; align-items: center; height: var(--ui-h); box-sizing: border-box; padding: 0 var(--ui-pad); font-family: inherit; font-size: .8125rem; font-weight: 500; line-height: 1; color: var(--bl-text-2); white-space: nowrap;
  background: transparent; border: 1px solid var(--bl-rule); border-radius: 999px; cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.bl-tag:hover { color: var(--bl-ink); border-color: var(--ui-border-strong); }
.bl-tag.is-active { font-weight: 600; color: var(--bl-link); background: var(--ui-primary-soft); border-color: color-mix(in srgb, var(--bl-link) 40%, transparent); }
.bl-search { position: relative; display: block; flex: 0 1 17rem; min-width: 12rem; }
.bl-search > .ti { position: absolute; z-index: 1; top: 50%; left: .75rem; font-size: 1rem; color: var(--bl-meta); transform: translateY(-50%); pointer-events: none; }
body.ui-app .bl-search .ui-input { height: var(--ui-h); padding: 0 var(--ui-pad-field) 0 2.2rem; font-size: .8125rem; }
body.ui-app .bl-search .ui-input::placeholder { color: var(--bl-meta); opacity: 1; }
.bl-search .ui-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.bl-empty { min-height: 9rem; margin: 0 0 1.25rem; font-size: .9375rem; color: var(--bl-text-2); }

/* Elsewhere on the site: three links */
.bl-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2.75rem 0 0; padding: 2.25rem 0 0; border-top: 1px solid var(--bl-rule); }
body.ui-app .bl-more__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: .2rem .9rem; height: 100%; padding: 1.15rem 1.25rem 1.2rem; box-sizing: border-box; color: inherit; text-decoration: none;
  background: var(--bl-ground); border-color: var(--bl-rule);
  transition: translate .25s var(--ui-ease), box-shadow .25s var(--ui-ease), border-color .2s var(--ui-ease);
}
body.ui-app .bl-more__card:hover { translate: 0 -2px; border-color: var(--ui-border-strong); box-shadow: var(--ui-shadow-lg); }
.bl-more__icon { grid-row: 1 / span 2; width: 2.3rem; height: 2.3rem; font-size: 1.15rem; border-radius: 10px; }
.bl-more__title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--bl-ink); }
.bl-more__desc { font-size: .9375rem; line-height: 1.55; color: var(--bl-text-2); }

/* Entrance (.ui-fade) and hover share one transition list: the entrance keeps its pace, the hover answers at once. */
.ui-js .bl-card.ui-fade.is-in, .ui-js .bl-more__card.ui-fade.is-in, .ui-js .bl-pn__item.ui-fade.is-in {
  transition: opacity .7s var(--ui-ease) calc(var(--d, 0) * 80ms), filter .7s var(--ui-ease) calc(var(--d, 0) * 80ms),
              transform .7s var(--ui-ease) calc(var(--d, 0) * 80ms),
              translate .3s var(--ui-ease), box-shadow .3s var(--ui-ease), border-color .2s var(--ui-ease);
}

/* ── Narrower: by the page's own width (so a collapsed sidebar gives the room back), then phones ── */
@container bl (max-width: 54rem) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-card--feature .bl-card__body { padding: 1.5rem 1.6rem; }
  .bl-card--feature .bl-card__title { font-size: 1.25rem; }
  .bl-card--feature .bl-card__desc { font-size: .9375rem; }
  .bl-card--feature .bl-card__cover { flex-basis: 48%; aspect-ratio: 4 / 3; }
}
@container bl (max-width: 44rem) {
  .bl-more { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
@container bl (max-width: 38rem) {
  body.ui-app .bl-card--feature { flex-direction: column; }
  .bl-card--feature .bl-card__cover { flex: 0 0 auto; align-self: auto; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--bl-rule); border-radius: calc(var(--ui-radius) - 1px) calc(var(--ui-radius) - 1px) 0 0; }
  .bl-card--feature .bl-card__body { justify-content: flex-start; gap: .55rem; padding: 1.15rem 1.25rem 1.1rem; }
  .bl-card--feature .bl-card__desc { line-height: 1.6; -webkit-line-clamp: 3; line-clamp: 3; }
}
@container bl (max-width: 34rem) {
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .bl-grid .bl-card__go { font-size: inherit; }   /* one card a row: room for the word */
  .bl-pn { grid-template-columns: minmax(0, 1fr); }
  .bl-pn__item--newer { grid-column: 1; }
}
@media (max-width: 640px) {
  body.bl-page { --bl-pad: 1rem; }
  .bl-hero .ui-hero__inner { padding-top: 2rem; padding-bottom: 1.5rem; }
  .bl-hero .ui-lead { font-size: 1.0625rem; }
  .bl-hero--index .ui-lead { font-size: 1rem; }
  /* Nothing drawn behind the words: the title and the description span the whole header here. */
  .bl-hero > .ui-dots { display: none; }
  body.bl-page--post .bl-hero::before { display: none; }
  /* The sheet runs edge to edge, so the text keeps the full width between the 16px gutters. */
  body.ui-app .bl-sheet { margin-right: -1rem; margin-left: -1rem; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .bl-sheet__in { padding-top: 1.5rem; padding-bottom: 2rem; }
  body.ui-app .bl-cover img { border-radius: 0; }
  .bl-body { font-size: 1rem; }
  .bl-body .bl-lead { font-size: 1.0625rem; }
  .bl-body h2, .bl-faq > h2, .bl-head h2 { font-size: 1.3125rem; }
  .bl-body h2 { margin-top: 2.25rem; }
  .bl-body blockquote p { font-size: 1.0625rem; }
  .bl-faq__item summary, .bl-faq__item p { font-size: 1rem; }
  .bl-faq__item p { padding-right: 0; }
  .bl-table table { font-size: .875rem; }
  .bl-table th, .bl-table td, .bl-table caption { padding-right: .75rem; padding-left: .75rem; }
  .bl-table th, .bl-table td { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .bl-table table:has(th:nth-child(3)) th, .bl-table table:has(th:nth-child(3)) td { padding-right: .6rem; padding-left: .6rem; }
  .bl-related { margin-top: 2.75rem; padding-top: 2rem; }
  .bl-search { flex: 1 1 100%; }
}

/* A picked section is reached at once, not by a long glide, for whoever asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.ui-app .bl-card:hover, body.ui-app .bl-more__card:hover, body.ui-app .bl-pn__item:hover { translate: none; }
  .bl-card:hover .bl-card__cover img { transform: none; }
}

/* ── On paper: the article alone ─────────────────────────────────────────── */
@media print {
  .ui-sidebar, .ui-topbar, .ui-dots, .bl-reading-progress, .bl-side, .bl-toc--mobile, .bl-share, .bl-cta, .bl-pn, .bl-related, .bl-tools, .bl-more { display: none !important; }
  .ui-shell { display: block; }
  .ui-inset, body.ui-app .bl-sheet { margin: 0; border: 0; box-shadow: none; }
  .bl-main { max-width: none; }
  .bl-faq__item::details-content { height: auto; content-visibility: visible; }
  .ui-js .ui-fade { opacity: 1 !important; filter: none !important; transform: none !important; }
}
