/*
 * The blog (2026-11-21): the list pages (category buttons, featured post,
 * cards, page links), the post (meta line, photo, table of contents, the
 * post blocks, the two voices, next step, author box) and the From the
 * blog section. Linked only on pages whose markup has a class starting
 * with bp- (site/plugins/peanut-site/extensions/stylesheets.php), so every
 * selector here names one. The header wash, the reading column and the
 * card base stay in site.css and uplift-c.css.
 */

@layer blocks {
  /* ---------- List pages: header, category buttons ---------- */

  .bp-head .bp-filter {
    margin-top: var(--space-4);
  }

  .bp-filter__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .bp-filter__btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.125rem;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-paper);
    color: var(--color-ink);
    font-size: var(--pill-font-size);
    font-weight: var(--pill-weight);
    letter-spacing: var(--pill-tracking);
    text-decoration: none;
    text-transform: uppercase;
  }

  .bp-filter__btn:hover {
    background: var(--color-white);
  }

  .bp-filter__btn[aria-current] {
    background: var(--color-ink);
    color: var(--color-white);
  }

  .bp-head__author {
    max-width: var(--measure);
    margin-inline: auto;
    text-align: left;
  }

  /* ---------- List pages: featured post, cards, page links ---------- */

  .bp-list__featured {
    display: grid;
    margin-bottom: var(--space-4);
  }

  .bp-card .card__media {
    overflow: hidden;
  }

  .bp-card__ph {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    height: 100%;
    padding: var(--space-3);
    background: var(--gradient-home-wash);
  }

  .bp-card__ph-word {
    font-family: var(--font-heading);
    font-size: var(--step-3);
    font-style: italic;
    font-weight: var(--weight-display);
    line-height: var(--leading-tight);
    text-align: center;
  }

  .bp-card__kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem var(--space-2);
    margin: 0;
  }

  .bp-card__label {
    padding: 0.1em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-brand);
  }

  .bp-card .bp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem var(--space-2);
  }

  .bp-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-5);
  }

  .bp-pages__count {
    margin: 0;
  }

  /* ---------- Post: header, photo ---------- */

  .bp-post__category a {
    text-decoration: none;
  }

  .bp-post__category a:hover {
    text-decoration: underline;
  }

  .bp-post__review {
    margin-top: var(--space-1);
  }

  .bp-post__review a,
  .bp-post__meta a {
    text-decoration-thickness: 1px;
  }

  .bp-post__header {
    padding-top: var(--space-4);
  }

  .bp-post__photo {
    max-width: 62.5rem;
    margin-top: calc(-1 * var(--space-4));
    margin-bottom: var(--space-5);
  }

  .bp-post__header:has(+ .bp-post__photo) {
    padding-bottom: calc(var(--space-4) + var(--space-5));
  }

  .bp-post__header + .bp-post__body {
    padding-top: var(--space-5);
  }

  /* ---------- Post: In short, table of contents ---------- */

  .bp-post__inshort {
    max-width: none;
  }

  .bp-post__inshort .inshort__box {
    background: var(--color-white);
  }

  .bp-toc {
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
  }

  .bp-toc__title,
  .bp-ticks__title,
  .bp-callout__title,
  .bp-voice__label,
  .bp-sample__mark,
  .bp-asks__who {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .bp-toc__list {
    margin: var(--space-1) 0 0;
    padding-left: 1.25rem;
  }

  .bp-toc__list li + li {
    margin-top: 0.375rem;
  }

  .bp-toc__list a {
    text-decoration-thickness: 1px;
  }

  .bp-post__body h2[id] {
    scroll-margin-top: calc(var(--header-height) + var(--space-2));
  }

  /* a note for an author, shown only to a signed-in Panel user */
  .bp-note {
    padding: var(--space-2) var(--space-3);
    border: 1px dashed var(--color-ink);
    border-radius: var(--radius-sm);
    background: var(--color-butter);
    font-size: var(--step--1);
  }

  /* ---------- Post blocks: checklist ---------- */

  .bp-ticks {
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-ticks__list {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .bp-ticks__title + .bp-ticks__list {
    margin-top: var(--space-2);
  }

  .bp-ticks__item {
    position: relative;
    padding-left: 2rem;
  }

  .bp-ticks__item::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-brand);
  }

  .bp-ticks__item::after {
    content: "";
    position: absolute;
    top: calc(0.2em + 0.3125rem);
    left: 0.4375rem;
    width: 0.375rem;
    height: 0.625rem;
    border: solid var(--color-ink);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transform-origin: center;
  }

  /* Post blocks: table: in posttable.css, linked by the block itself (2026-11-27) */

  /* ---------- Post blocks: callout, sample, case study ---------- */

  .bp-callout {
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-butter);
  }

  .bp-callout > * + * {
    margin-top: var(--space-1);
  }

  .bp-callout__text > * + * {
    margin-top: var(--space-2);
  }

  .bp-callout__action {
    margin-bottom: 0;
  }

  .bp-sample {
    margin: 0;
    border: 1px dashed var(--color-ink);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-sample__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px dashed var(--color-ink);
  }

  .bp-sample__mark {
    padding: 0.15em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-accent-2);
  }

  .bp-sample__title {
    font-weight: 600;
  }

  .bp-sample__body {
    padding: var(--space-3);
  }

  .bp-sample__body > * + * {
    margin-top: var(--space-2);
  }

  .bp-sample__body :is(ul, ol) {
    padding-left: 1.25rem;
  }

  /* ---------- The two voices: a note by the other author, the Q and A ---------- */

  .bp-voice {
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-left-width: 0.375rem;
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-voice--christina {
    border-left-color: var(--color-ink);
    background: var(--color-paper);
  }

  .bp-voice__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
    margin: 0 0 var(--space-1);
  }

  /* every author face is one set: the photo in a cream ring with the ink outline around it,
     whatever the photo's own background (the same on .inshort__face, industry.css) */
  .face {
    display: contents;
  }

  .bp-voice__face,
  .bp-author__face {
    flex: none;
    object-fit: cover;
    border: 3px solid var(--color-paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--color-ink);
  }

  .bp-voice__face {
    border-width: 2px;
  }

  .bp-voice__face {
    width: 2.5rem;
    height: 2.5rem;
  }

  .bp-voice__label {
    padding: 0.15em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-brand);
  }

  .bp-voice__name {
    font-size: var(--step--1);
  }

  .bp-voice__text > * + * {
    margin-top: var(--space-2);
  }

  .bp-voice__text :is(ul, ol) {
    padding-left: 1.25rem;
  }

  .bp-voice__text code {
    padding: 0.1em 0.35em;
    border: 1px solid var(--color-ink-line-faint);
    border-radius: 0.25rem;
    font-size: 0.9em;
  }

  .bp-asks {
    display: grid;
    gap: var(--space-4);
  }

  .bp-asks__q {
    margin: 0;
    font-size: var(--step-2);
    font-weight: var(--weight-heading);
    line-height: var(--leading-heading);
  }

  .bp-asks__q .bp-asks__who {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-body);
  }

  .bp-asks__a {
    margin-top: var(--space-2);
    padding-left: var(--space-3);
    border-left: 0.25rem solid var(--color-brand);
  }

  .bp-asks__a > * + *,
  .bp-asks__takeaway > * + * {
    margin-top: var(--space-2);
  }

  .bp-asks__takeaway {
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-butter);
  }

  /* ---------- Next step ---------- */

  /* The words keep a readable column (about 30 characters) and never collapse
     beside the button: when the button does not fit beside them, it drops
     below the words (owner, 2026-11-24). Mid-post blocks and the end band alike. */
  .bp-next {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-brand);
  }

  .bp-next--end {
    margin-top: var(--space-5);
    padding: var(--space-4);
    background: var(--gradient-home-wash);
  }

  .bp-next__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--step-2);
    font-weight: var(--weight-heading);
    line-height: var(--leading-heading);
  }

  .bp-next__text {
    margin: var(--space-1) 0 0;
  }

  .bp-next__words {
    flex: 1 1 30ch;
    min-width: min(100%, 30ch);
  }

  .bp-next__action {
    flex: 0 1 auto;
    max-width: 100%;
    margin: 0;
  }

  .bp-next__action .btn {
    max-width: 100%;
  }

  .bp-next__link {
    margin: var(--space-1) 0 0;
  }

  /* ---------- Questions, author box, related posts ---------- */

  .bp-faq .faq {
    max-width: 48rem;
    margin-inline: auto;
  }

  .bp-author {
    padding-block: var(--space-5);
  }

  .bp-author__list {
    display: grid;
    gap: var(--space-3);
  }

  .bp-author__box {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-author__face {
    width: 5rem;
    height: 5rem;
  }

  .bp-author__words > * {
    margin: 0;
  }

  .bp-author__words > * + * {
    margin-top: var(--space-1);
  }

  .bp-author__name {
    font-family: var(--font-heading);
    font-size: var(--step-2);
    font-weight: var(--weight-heading);
    line-height: var(--leading-heading);
  }

  .bp-author__role {
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 400;
  }

  @media (max-width: 29.99rem) {
    .bp-author__box {
      flex-direction: column;
      padding: var(--space-3);
    }
  }

  .bp-more .card__title,
  .bp-from .card__title {
    font-size: var(--step-1);
  }

  /* one or two posts named on the block: their cards centred, each as wide
     as a card in a row of three */
  @media (min-width: 48rem) {
    .bp-from__grid:has(> :only-child) {
      grid-template-columns: minmax(0, 24rem);
      justify-content: center;
    }

    .bp-from__grid:has(> :nth-child(2):last-child) {
      grid-template-columns: repeat(2, minmax(0, 24rem));
      justify-content: center;
    }
  }

  /* ---------- Post blocks, second set (2026-11-21): photos, figures, mocks,
     timeline, decision tree, code, glossary, download, last checked, two
     people talking ---------- */

  /* a block wider than the text column, centered on the page, never wider than the screen */
  .bp-wide {
    position: relative;
    left: 50%;
    width: min(60rem, calc(100vw - 2 * var(--gutter)));
    max-width: none;
    translate: -50% 0;
  }

  .bp-image,
  .bp-figure,
  .bp-mock,
  .bp-code {
    margin-inline: 0;
  }

  .bp-caption {
    margin-top: var(--space-1);
    font-size: var(--step--1);
    line-height: 1.6;
  }

  .bp-figure__art,
  .bp-mock__art {
    position: relative;
    overflow: hidden;
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-figure__art svg,
  .bp-mock__art svg,
  .bp-mock__img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* numbered callouts: on the mock, and before each note */
  .bp-pin,
  .bp-mock__note::before {
    display: inline-grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-accent-2);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
  }

  .bp-pin--placed {
    position: absolute;
    translate: -50% -50%;
  }

  .bp-mock__notes {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: bp-pin;
  }

  .bp-mock__note {
    position: relative;
    padding-left: 2.375rem;
    counter-increment: bp-pin;
  }

  .bp-mock__note::before {
    content: counter(bp-pin);
    position: absolute;
    top: 0;
    left: 0;
  }

  @media (min-width: 48rem) {
    .bp-mock.bp-wide .bp-mock__notes {
      grid-template-columns: 1fr 1fr;
      column-gap: var(--space-4);
    }
  }

  .bp-timeline__title,
  .bp-tree__title,
  .bp-glossary__title,
  .bp-exchange__title,
  .bp-code__label,
  .bp-checked__label,
  .bp-timeline__when,
  .bp-tree__answer,
  .bp-exchange__name {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  /* timeline: a line down the left with a dot at every point */
  .bp-timeline__list {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
  }

  .bp-timeline__step {
    position: relative;
    padding-left: var(--space-4);
  }

  .bp-timeline__step::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 0.75rem;
    height: 0.75rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-brand);
  }

  .bp-timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    bottom: calc(-1 * var(--space-3));
    left: calc(0.375rem + 0.5px);
    border-left: var(--border);
  }

  .bp-timeline__when {
    display: inline-block;
    padding: 0.15em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-butter);
  }

  .bp-timeline__what {
    margin: var(--space-1) 0 0;
    font-size: var(--step-1);
    line-height: 1.3;
  }

  .bp-timeline__text {
    margin-top: var(--space-1);
  }

  .bp-timeline__text > * + * {
    margin-top: var(--space-1);
  }

  /* decision tree: question cards joined by a line; each answer is a pill with its result */
  .bp-tree {
    padding: var(--space-3);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-tree__intro {
    margin: var(--space-1) 0 0;
  }

  .bp-tree__list {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
  }

  .bp-tree__step {
    position: relative;
  }

  .bp-tree__step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: calc(-1 * var(--space-4));
    left: 0.8125rem;
    height: var(--space-4);
    border-left: var(--border);
  }

  .bp-tree__q {
    display: flex;
    gap: var(--space-2);
    align-items: baseline;
    margin: 0;
    padding: var(--space-2);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-brand);
    font-weight: 600;
  }

  .bp-tree__n {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-white);
    font-size: 0.75rem;
    line-height: 1;
  }

  .bp-tree__branches {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-2) 0 0;
    padding: 0 0 0 var(--space-4);
    list-style: none;
  }

  .bp-tree__branch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem var(--space-2);
    align-items: baseline;
  }

  .bp-tree__answer {
    flex: none;
    padding: 0.15em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-butter);
  }

  .bp-tree__result,
  .bp-tree__next {
    flex: 1 1 14rem;
  }

  .bp-tree__next {
    font-size: var(--step--1);
  }

  /* code with line notes */
  .bp-code {
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    overflow: hidden;
  }

  .bp-code__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem var(--space-2);
    align-items: baseline;
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-bottom: var(--border);
  }

  .bp-code__label {
    padding: 0.15em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-brand);
  }

  .bp-code__title {
    font-weight: 600;
  }

  .bp-code__pre {
    margin: 0;
    padding: var(--space-2) 0;
    overflow-x: auto;
    background: var(--color-paper);
    font-size: 0.8125rem;
    line-height: 1.7;
    counter-reset: bp-line;
    tab-size: 2;
  }

  .bp-code__pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
  }

  .bp-code__line {
    display: inline-block;
    min-width: 100%;
    padding: 0 var(--space-3) 0 5rem;
    counter-increment: bp-line;
    position: relative;
  }

  .bp-code__line::before {
    content: counter(bp-line);
    position: absolute;
    left: 0;
    width: 2.5rem;
    text-align: right;
    opacity: 0.6;
  }

  .bp-code__line--noted {
    background: var(--color-butter);
  }

  .bp-code__line--noted::after {
    content: attr(data-note);
    position: absolute;
    left: 3.25rem;
    top: 0.2rem;
    display: grid;
    place-items: center;
    width: 1.125rem;
    height: 1.125rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-accent-2);
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
  }

  .bp-code__notes {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-top: var(--border);
    list-style: none;
  }

  .bp-code__note {
    position: relative;
    padding-left: 1.75rem;
  }

  .bp-code__letter {
    position: absolute;
    top: 0.25rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.125rem;
    height: 1.125rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-accent-2);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
  }

  .bp-code .bp-caption {
    margin: 0;
    padding: var(--space-1) var(--space-3) var(--space-2);
  }

  /* glossary */
  .bp-glossary__list {
    margin: var(--space-2) 0 0;
    border-top: var(--border);
  }

  .bp-glossary__row {
    display: grid;
    gap: 0.25rem var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: var(--border);
  }

  .bp-glossary__term {
    font-weight: 600;
  }

  .bp-glossary__text {
    margin: 0;
  }

  @media (min-width: 40rem) {
    .bp-glossary__row {
      grid-template-columns: 11rem 1fr;
    }
  }

  /* download */
  .bp-download {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-butter);
  }

  .bp-download__words {
    flex: 1 1 16rem;
  }

  .bp-download__words > * {
    margin: 0;
  }

  .bp-download__words > * + * {
    margin-top: 0.375rem;
  }

  .bp-download__title {
    font-size: var(--step-1);
    line-height: 1.3;
  }

  .bp-download__meta {
    font-size: var(--step--1);
  }

  .bp-download__action {
    margin: 0;
  }

  /* the short version: a long post in a few lines, near the top */
  .bp-short {
    padding: var(--space-3) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-brand);
  }

  .bp-short__title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .bp-short__list {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-2) 0 0;
    padding-left: 1.25rem;
  }

  /* last checked */
  .bp-checked {
    display: inline-block;
    padding: 0.5em 0.9em;
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-size: var(--step--1);
  }

  /* two people talking: each turn a card, Kevin's set in from the left */
  .bp-exchange {
    display: grid;
    gap: var(--space-2);
  }

  .bp-exchange__turn {
    padding: var(--space-2) var(--space-3);
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .bp-exchange__turn--kevin {
    margin-left: var(--space-4);
    background: var(--color-paper);
  }

  .bp-exchange__turn--christina {
    margin-right: var(--space-4);
  }

  .bp-exchange__who {
    display: flex;
    gap: var(--space-1);
    align-items: center;
    margin: 0 0 var(--space-1);
  }

  .bp-exchange__text > * {
    margin: 0;
  }

  .bp-exchange__text > * + * {
    margin-top: var(--space-1);
  }

  /* a spreadsheet drawn as a mock (blog/mocks/redirect-map): scrolls sideways inside its own box */
  .bp-sheet {
    overflow-x: auto;
  }

  .bp-sheet__table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .bp-sheet__table th,
  .bp-sheet__table td {
    padding: 0.625rem 0.75rem;
    border-bottom: var(--border);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
  }

  .bp-sheet__table th {
    background: var(--color-paper);
    font-weight: 600;
  }

  .bp-sheet__table tbody tr:last-child td {
    border-bottom: 0;
  }

  .bp-sheet__decision span {
    display: inline-block;
    padding: 0.1em 0.7em;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-brand);
  }

  .bp-sheet__row--redirect .bp-sheet__decision span {
    background: var(--color-butter);
  }

  .bp-sheet__row--retire .bp-sheet__decision span {
    background: var(--color-white);
  }

  /* a weak or a strong example (the Sample block's Kind) */
  .bp-sample--weak .bp-sample__mark {
    background: var(--color-white);
  }

  .bp-sample--strong {
    border-style: solid;
  }

  .bp-sample--strong .bp-sample__head {
    border-bottom-style: solid;
  }

  .bp-sample--strong .bp-sample__mark {
    background: var(--color-brand);
  }

  @media (max-width: 29.99rem) {
    .bp-tree,
    .bp-download {
      padding: var(--space-2);
    }

    .bp-tree__branches {
      padding-left: var(--space-2);
    }

    .bp-exchange__turn--kevin {
      margin-left: var(--space-2);
    }

    .bp-exchange__turn--christina {
      margin-right: var(--space-2);
    }
  }

  /* ---------- From the blog (any page) ---------- */

  .bp-from__more {
    display: flex;
    justify-content: center;
    margin: var(--space-4) 0 0;
  }

  /* the section folds away while no post matches (blocks/fromblog.php prints nothing) */
  .block-fromblog:not(:has(.bp-from)) {
    display: none;
  }
}

@layer templates {
  /* A row of post cards lines up (2026-11-29): the date line and Read more sit at
     the foot of every card in a row, however long its title and summary (the card
     stretches to the row: a grid item, a flex column whose body fills it). In the
     templates layer, beside the card's own rules (uplift-c.css), so they meet on
     specificity. The featured card keeps its text centred beside the photo. */
  .bp-card.card--article .bp-card__meta {
    margin-block-start: auto;
  }

  .bp-card.card--article .card__more {
    margin-block-start: 0;
  }

  .bp-card.card--article-wide .bp-card__meta {
    margin-block-start: 0;
  }
}
