/* =============================================================
   BBI - Category page (Figma BBI_ADP_Desktop design)
   assets/css/category.css

   Layout reference:
     - Heading: 100px Neue Haas Bold baseline; archives also animate a
       larger hero headline that resolves on scroll (`.bbi-category-hero`).
     - Article list (similar card) + trending sidebar
     - YouTube Shorts + Videos sections
   ============================================================= */

/* Stable gutter prevents layout jump when hero scroll-lock releases the scrollbar */
@supports selector(:has(*)) {
  html:has(body.category) {
    scrollbar-gutter: stable both-edges;
  }
}

/* Make main content visible immediately (no intro animation) */
body.category .bbi-main {
  opacity: 1;
  pointer-events: auto;
}

/* Divider → category name: 60px. Compact name → articles: --bbi-cat-content-gap. */
body.category {
  --bbi-cat-divider-gap: 60px;
  --bbi-cat-content-gap: 60px;
  --bbi-cat-articles-trending-gap: 100px;
}

.bbi-category {
  padding-block-start: 0;
}

body.category .bbi-section.bbi-section-category {
  padding-block-start: 0;
}

/* While hero progress < 1, JS adds this class — page does not scroll. */
html.bbi-category-hero-scroll-lock,
html.bbi-category-hero-scroll-lock body {
  overflow: hidden;
  overscroll-behavior-y: none;
}

html.bbi-category-hero-scroll-lock body {
  touch-action: none;
}

/* -------------------------------------------------------------
   Category Section Heading (Figma: 100px Neue Haas Bold)
   ------------------------------------------------------------- */

.bbi-section-category {
  padding-block-end: var(--space-16);
}

/* -------------------------------------------------------------
   Category hero — oversized title morphs on scroll (--bbi-cat-hero-p).

   Default p=0 on first paint so we never flash the compact “finished” layout
   while JS/deferred CSS loads. Noscript forces p=1; reduced-motion is handled in JS.

   IMPORTANT: Do not use :not(.bbi-category-hero--js) { p: 1 } — that selector
   matches before the script adds --js and caused the compact flash on cold load.
   ------------------------------------------------------------- */

[data-bbi-category-hero] {
  --bbi-cat-hero-p: 0;
}

/*
 * Post-animation chrome (other categories column) must stay hidden on first paint,
 * before deferred category-hero.js adds .bbi-category-hero--js.
 */
[data-bbi-category-hero] .bbi-section-category__header-wrapper {
  position: relative;
  margin-bottom: 0;
}

[data-bbi-category-hero] .bbi-section-category__other-cats {
  opacity: clamp(0, var(--bbi-cat-hero-p, 0), 1);
  pointer-events: none;
}

[data-bbi-category-hero][data-bbi-cat-other-interactive="1"]
  .bbi-section-category__other-cats {
  opacity: clamp(0, var(--bbi-cat-hero-p, 0), 1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.category) {
    --bbi-cat-hero-p: 1 !important;
  }

  [data-bbi-category-hero] {
    --bbi-cat-hero-p: 1 !important;
  }

  [data-bbi-category-hero] .bbi-section-category__other-cats {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.bbi-category-hero {
  /* Fixed horizontal inset for headline rail (viewport edges + this padding). */
  --bbi-cat-hero-page-gutter: 40px;
  --bbi-cat-fs-compact: 100px;
  /*
   JS sets --bbi-cat-fs-hero-measured to the largest px size that fits the rail.
   Until then, fall back to --bbi-cat-fs-fallback-max. Do NOT min() the two —
   the vw clamp was capping shorter labels smaller than their measured fill.
   */
  --bbi-cat-fs-fallback-max: clamp(
    5.5rem,
    min(28vw, (100vw - 2 * var(--bbi-cat-hero-page-gutter)) * 0.28),
    30rem
  );
  --bbi-cat-fs-hero-max: var(
    --bbi-cat-fs-hero-measured,
    var(--bbi-cat-fs-fallback-max)
  );

  /* WoMI hero logo: interpolate width hero → compact (Figma archival width). */
  --bbi-cat-womi-compact-w: 535.8px;
  --bbi-cat-womi-compact-h: 132px;

  --bbi-cat-band-compact: 0;
  --bbi-cat-band-hero-tall: clamp(13rem, 32vh, 48vh);
}

.bbi-category-hero.is-measuring-hidden {
  visibility: hidden;
}

.bbi-category-hero--no-motion,
.bbi-category-hero--no-motion *,
.bbi-category-hero--no-motion .bbi-section-category__heading--scroll-hero .bbi-section-category__womi-logo {
  transition: none !important;
}

/* Full-viewport heading rail: only the 40px side insets, no horizontal centering. */
.bbi-category-hero.bbi-category-hero--js .bbi-category-hero__band {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--bbi-cat-hero-page-gutter, 40px);
  box-sizing: border-box;
}

.bbi-category-hero__band {
  box-sizing: border-box;
  /* Exactly 60px from site chrome divider to category name (does not animate). */
  padding-block-start: var(--bbi-cat-divider-gap, 60px);
  min-height: calc(
    var(--bbi-cat-band-compact)
    + (var(--bbi-cat-band-hero-tall) - var(--bbi-cat-band-compact))
    * (1 - var(--bbi-cat-hero-p, 0))
  );
}

.bbi-category-hero.bbi-category-hero--js .bbi-section-category__header-wrapper {
  width: 100%;
}

.bbi-category-hero .bbi-section-category__heading--scroll-hero {
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  text-align: left;
  font-size: calc(
    var(--bbi-cat-fs-compact)
    + (var(--bbi-cat-fs-hero-max) - var(--bbi-cat-fs-compact))
    * (1 - var(--bbi-cat-hero-p, 0))
  );
  line-height: calc(1 * var(--bbi-cat-hero-p, 0) + 0.92 * (1 - var(--bbi-cat-hero-p, 0)));
}

/* Fitted to one line in category-hero.js on every breakpoint — nowrap + no flex
   shrink stops mid-word wraps (e.g. CULTU / RE) on tablet and mobile. */
.bbi-category-hero
  .bbi-section-category__heading--scroll-hero:not(
    .bbi-section-category__heading--womi
  ) {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.bbi-category-hero .bbi-section-category__heading--scroll-hero.bbi-section-category__heading--womi {
  font-size: 0;
  line-height: 0;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  overflow: visible;
  padding-block: calc(
    var(--bbi-cat-womi-layout-h, var(--bbi-cat-womi-compact-h))
    * (var(--bbi-cat-womi-hero-s0, 1) - 1)
    * (1 - var(--bbi-cat-hero-p, 0))
    * 0.5
  );
}

/* WoMI: layout stays compact; transform scale uses the same --bbi-cat-hero-p as text. */
.bbi-category-hero .bbi-section-category__heading--scroll-hero.bbi-section-category__heading--womi .bbi-section-category__womi-logo {
  display: block;
  box-sizing: border-box;
  width: var(--bbi-cat-womi-layout-w, var(--bbi-cat-womi-compact-w));
  height: auto;
  max-width: none;
  margin-inline: 0;
  object-fit: contain;
  object-position: left center;
  transform-origin: left center;
  --bbi-cat-womi-s-delta: calc(
    (var(--bbi-cat-womi-hero-s0, 1) - 1) * (1 - var(--bbi-cat-hero-p, 0))
  );
  transform: scale(calc(1 + var(--bbi-cat-womi-s-delta)));
  will-change: transform;
}

.bbi-category-hero--complete
  .bbi-section-category__heading--scroll-hero.bbi-section-category__heading--womi
  .bbi-section-category__womi-logo {
  will-change: auto;
}

@supports selector(:has(*)) {
  .bbi-category-hero.bbi-category-hero--js:has(
      .bbi-section-category__heading--scroll-hero.bbi-section-category__heading--womi
    )
    .bbi-category-hero__band {
    overflow: visible;
  }
}

@media (min-width: 768px) {
  /*
   Overlay column only runs when hero JS mounts; sans JS layout matches
   the original flex row (.bbi-category-hero:not(.bbi-category-hero--js)).
   Hero band is tall at p≈0 — align-start keeps the headline under the header
   instead of vertically centred with a blank strip above it.
 */
  .bbi-category-hero.bbi-category-hero--js .bbi-section-category__header-wrapper {
    align-items: flex-start;
  }

  /*
   * Hero band already has 40px inline padding — align to its inner edge only
   * (avoid doubling the gutter).
   */
  [data-bbi-category-hero] .bbi-section-category__other-cats {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 50%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: min(42vw, 320px);
  }

  [data-bbi-category-hero][data-bbi-cat-other-interactive="1"]
    .bbi-section-category__other-cats {
    opacity: clamp(0, var(--bbi-cat-hero-p, 0), 1);
    pointer-events: auto;
    transform: translateY(-50%);
  }
}

.bbi-section-category__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 40px;
}

.bbi-section-category__heading {
  font-family: var(--font-display);
  /* Figma desktop: 100px. Fluid sizing only below 768px (see responsive block). */
  font-size: 100px;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: justify;
  color: var(--color-text);
  margin: 0;
}

/* WOMI category: same logo asset as the home WoMI section (theme options). */
.bbi-section-category__heading--womi {
  font-size: 0;
  line-height: 0;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}

.bbi-section-category__heading--womi .bbi-section-category__womi-logo {
  display: block;
  width: 535.8px;
  height: 132px;
  object-fit: contain;
  object-position: left center;
}

.bbi-section-category__other-cats {
  text-align: right;
  margin-bottom: 0;
}

.bbi-section-category__other-cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.bbi-section-category__other-cats a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6; /* 160% */
  letter-spacing: 0;
  color: var(--color-byline);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

/* WoMI in “other categories” list: same corner arrow as home `.bbi-womi__cta::after`, leading the label. */
.bbi-section-category__other-cats a.bbi-section-category__other-cats-link--womi {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.bbi-section-category__other-cats a.bbi-section-category__other-cats-link--womi::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.0078125 0.5H9.00781V9.15385' stroke='%236B6B6B'/%3E%3Cpath d='M9.00736 0.5L0.353516 9.15385' stroke='%236B6B6B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: none;
  transition: transform var(--transition-fast);
}

.bbi-section-category__other-cats a.bbi-section-category__other-cats-link--womi:hover::before,
.bbi-section-category__other-cats a.bbi-section-category__other-cats-link--womi:focus-visible::before {
  transform: translate(2px, -2px);
}

/* -------------------------------------------------------------
   Category content — article list + trending sidebar
   ------------------------------------------------------------- */

.bbi-section-category__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: var(--bbi-cat-articles-trending-gap);
  align-items: start;
  width: 100%;
  /* 60px below compact category name after hero animation (fixed, no jump). */
  margin-block-start: var(--bbi-cat-content-gap, 60px);
}

.bbi-section-category__content--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.bbi-section-category__main {
  min-width: 0;
}

.bbi-section-category__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.bbi-section-category__sidebar.bbi-sidebar {
  justify-self: end;
  width: 460px;
  max-width: 100%;
}

/*
 * Sticky trending (768px+). overflow-x:hidden on html/body breaks sticky in
 * Chromium/WebKit — clip preserves horizontal containment without that bug.
 */
@media (min-width: 768px) {
  body.category {
    overflow-x: clip;
  }

  @supports selector(:has(*)) {
    html:has(body.category) {
      overflow-x: clip;
    }
  }

  .bbi-section-category__sidebar.bbi-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
  }
}

.bbi-section-category__sidebar .bbi-sidebar__block--trending {
  width: 460px;
  max-width: 100%;
}

/*
 * Category list card — 536×340 image, date at top of text column.
 * Overrides .bbi-card--similar (325×275) from single.css.
 */
.bbi-section-category__list .bbi-card--category-list.bbi-card--similar {
  --bbi-cat-list-img-w: 536px;
  --bbi-cat-list-img-h: 340px;
  --bbi-similar-meta-band: 0;
  display: grid;
  grid-template-columns: var(--bbi-cat-list-img-w) minmax(0, 1fr);
  grid-template-areas: "media body";
  column-gap: 20px;
  height: var(--bbi-cat-list-img-h);
  align-items: stretch;
}

.bbi-section-category__list .bbi-card--category-list .bbi-card__media {
  grid-area: media;
  flex-shrink: 0;
  width: var(--bbi-cat-list-img-w);
  max-width: 100%;
  height: var(--bbi-cat-list-img-h);
  margin-top: 0;
  overflow: hidden;
}

.bbi-section-category__list .bbi-card--category-list .bbi-card__media::before {
  display: none;
}

.bbi-section-category__list .bbi-card--category-list .bbi-card__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  height: 100%;
}

/* Date pinned to top; title + author pinned to bottom (same rhythm as similar articles). */
.bbi-section-category__list .bbi-card--category-list .bbi-card__date {
  position: static;
  align-self: flex-start;
  flex-shrink: 0;
  margin: 0;
  max-width: none;
  padding: 0;
  text-align: left;
}

.bbi-section-category__list .bbi-card--category-list .bbi-card__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.bbi-section-category__list .bbi-card--category-list .bbi-card__title-text--short {
  display: none;
}

.bbi-section-category__list .bbi-card--category-list .bbi-card__author a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------
   Pagination
   ------------------------------------------------------------- */

.bbi-section-category__pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

.bbi-section-category__pagination .nav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.bbi-section-category__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.bbi-section-category__pagination .page-numbers.current {
  background-color: var(--color-text);
  color: var(--color-background);
}

/* -------------------------------------------------------------
   Empty state
   ------------------------------------------------------------- */

.bbi-section-category__empty {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-16) 0;
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */

@media (max-width: 1199px) {
  body.category {
    --bbi-cat-articles-trending-gap: 60px;
  }

  .bbi-section-category__content {
    grid-template-columns: minmax(0, 1fr) 382px;
  }

  .bbi-section-category__sidebar .bbi-sidebar__block--trending {
    width: 100%;
  }

  .bbi-section-category__sidebar.bbi-sidebar {
    width: 100%;
  }

  .bbi-section-category__list {
    gap: 60px;
  }

  .bbi-section-category__list .bbi-card--category-list.bbi-card--similar {
    --bbi-cat-list-img-w: min(536px, 100%);
    height: auto;
    min-height: 0;
    align-items: start;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__media {
    width: min(536px, 100%);
    height: auto;
    aspect-ratio: 536 / 340;
  }

  .bbi-category-hero {
    --bbi-cat-hero-page-gutter: var(--site-chrome-inline, 40px);
    /* Scrolled/compact title: scale down on tablet so long labels stay one line. */
    --bbi-cat-fs-compact: clamp(3rem, 8vw, 100px);
  }
}

@media (max-width: 1023px) {
  body.category {
    --bbi-cat-articles-trending-gap: 60px;
  }

  .bbi-section-category__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .bbi-section-category__sidebar.bbi-sidebar {
    width: 100%;
    max-width: 600px;
  }

  .bbi-section-category {
    padding-block-end: var(--space-12);
  }

  .bbi-category-hero {
    --bbi-cat-womi-compact-w: 480px;
    --bbi-cat-womi-compact-h: 120px;
  }

  .bbi-section-category__heading--womi .bbi-section-category__womi-logo {
    width: min(535.8px, 100%);
    height: auto;
    max-height: 132px;
    aspect-ratio: 535.8 / 132;
  }
}

@media (max-width: 767px) {
  body.category {
    --bbi-cat-divider-gap: 20px;
    --bbi-cat-content-gap: 20px;
    --bbi-cat-articles-trending-gap: 40px;
  }

  .bbi-section-category__sidebar.bbi-sidebar {
    position: static;
  }

  .bbi-category {
    padding-block-start: 0;
  }

  body.category .bbi-section.bbi-section-category {
    padding-block-start: 0;
  }

  .bbi-category-hero {
    --bbi-cat-hero-page-gutter: var(--site-chrome-inline, 20px);
    --bbi-cat-fs-compact: 30px;
    --bbi-cat-fs-fallback-max: clamp(
      3.75rem,
      min(21vw, (100vw - 2 * var(--bbi-cat-hero-page-gutter)) * 0.25),
      9.5rem
    );
    --bbi-cat-womi-compact-w: min(122px, calc(100vw - 2 * var(--bbi-cat-hero-page-gutter) - 50%));
    --bbi-cat-womi-compact-h: 30px;
  }

  .bbi-category-hero__band {
    /* Let compact state hug the header; 20px gap to the grid is on the wrapper. */
    --bbi-cat-band-compact: 0;
    --bbi-cat-band-hero-tall: clamp(7.5rem, 28vmin, 12rem);
  }

  .bbi-section-category__header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: 20px;
  }

  .bbi-section-category__heading:not(.bbi-section-category__heading--scroll-hero) {
    margin-bottom: 0;
    font-size: 30px;
  }

  .bbi-section-category__heading--scroll-hero:not(
    .bbi-section-category__heading--womi
  ) {
    margin-bottom: 0;
  }

  .bbi-section-category__heading--womi {
    font-size: 0;
  }

  .bbi-section-category__heading--womi:not(
      .bbi-section-category__heading--scroll-hero
    )
    .bbi-section-category__womi-logo {
    width: auto;
    max-width: min(320px, 100%);
    height: auto;
    max-height: clamp(40px, 11vw, 64px);
    aspect-ratio: unset;
  }

  /*
   * Mobile hero JS: two-column grid for the whole scroll (no layout flip at p≈0.92).
   * Row height = max(title, other-cats list) so the list cannot grow upward into
   * the chrome divider. align-items:end lines up title + last other-category link.
   */
  .bbi-category-hero.bbi-category-hero--js {
    --bbi-cat-other-cats-col: min(48vw, 180px);
    --bbi-cat-other-cats-gap: 12px;
  }

  .bbi-category-hero.bbi-category-hero--js:has(.bbi-section-category__other-cats)
    .bbi-section-category__header-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--bbi-cat-other-cats-col);
    column-gap: var(--bbi-cat-other-cats-gap);
    align-items: end;
    padding-inline-end: 0;
  }

  .bbi-category-hero.bbi-category-hero--js:has(.bbi-section-category__other-cats)
    .bbi-section-category__heading--scroll-hero {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    min-width: 0;
  }

  .bbi-category-hero.bbi-category-hero--js .bbi-section-category__other-cats {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: var(--bbi-cat-other-cats-col);
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    transform: none;
    text-align: right;
  }

  .bbi-category-hero.bbi-category-hero--js .bbi-section-category__other-cats ul {
    align-items: flex-end;
    justify-content: flex-end;
  }

  .bbi-category-hero.bbi-category-hero--js .bbi-section-category__other-cats a {
    font-size: 10px;
    line-height: 1.4;
  }

  .bbi-category-hero.bbi-category-hero--js
    .bbi-section-category__other-cats a.bbi-section-category__other-cats-link--womi {
    gap: 8px;
  }

  /*
   * Mobile: original vertical category card (image → title → author).
   * Desktop / tablet keep the horizontal similar-articles list layout above 768px.
   */
  .bbi-section-category__list {
    gap: 40px;
  }

  .bbi-section-category__list .bbi-card--category-list.bbi-card--similar {
    --bbi-similar-meta-band: 0;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    height: auto !important;
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__media {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 536 / 340;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: var(--color-gray-100);
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__media::before {
    display: none !important;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
  }

  .bbi-section-category__list .bbi-card--category-list:hover .bbi-card__media img,
  .bbi-section-category__list
    .bbi-card--category-list:focus-within
    .bbi-card__media
    img {
    transform: scale(1.04);
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__date {
    display: none !important;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__body {
    display: flex !important;
    flex-direction: column;
    padding-block-start: var(--space-4);
    gap: 0;
    min-height: 0;
    height: auto;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__bottom {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: var(--bbi-category-card-title-author-gap);
    margin-top: 0 !important;
    width: 100%;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__title-text--full {
    display: none;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__title-text--short {
    display: inline;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__bottom :is(h3, p) {
    margin: 0;
    padding: 0;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__title {
    font-family: var(--type-latest-news-title-font);
    font-size: var(--bbi-category-card-title-size);
    font-weight: var(--type-latest-news-title-weight);
    font-style: normal;
    font-synthesis: none;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text);
    min-height: 0;
    align-self: start;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__title a {
    display: inline;
    line-height: var(--bbi-category-card-title-leading);
    color: inherit;
    text-decoration: none;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__author {
    font-family: var(--font-mono);
    font-size: var(--bbi-card-author-size);
    font-weight: 400;
    color: var(--color-byline-soft);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: start;
  }

  .bbi-section-category__list .bbi-card--category-list .bbi-card__author a {
    color: inherit;
    text-decoration: none;
  }
}

@media (max-width: 639px) {
  .bbi-section-category__pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-2);
    font-size: var(--font-size-xs);
  }
}
