/*
 * Blog — homepage theme, scoped to the blog routes only.
 *
 * Every value here is copied from the homepage's own tokens
 * (src/features/listingdex-home/home.css + lower.css). See
 * docs/launch/BLOG-THEME.md for the table this was transcribed from.
 * Nothing is invented, and no selector escapes `.bl-root`, so no other page
 * can be affected.
 *
 * Font: "Inter Tight" — the same face the homepage uses, already loaded, so
 * blog routes add no font request.
 */

.bl-root {
  /* Transcribed homepage tokens. */
  --bl-ink: #10203d;
  --bl-ink-2: #1d2f4f;
  --bl-muted: #5b6a80;
  --bl-accent: #2563eb;
  --bl-dot: #00e7ff;
  --bl-panel: #0b1b34;
  --bl-line: rgba(16, 32, 61, 0.14);
  --bl-line-soft: rgba(16, 32, 61, 0.08);
  --bl-gut: clamp(20px, 5.7vw, 82px);
  --bl-ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  min-height: 100vh;
  background: #ffffff;
  color: var(--bl-ink);
  font-family: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bl-root *,
.bl-root *::before,
.bl-root *::after {
  box-sizing: border-box;
}

.bl-root :where(a) {
  color: inherit;
  text-decoration: none;
}

.bl-root :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.bl-root :where(img) {
  display: block;
  max-width: 100%;
}

.bl-root :focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.bl-root ::selection {
  background: rgba(91, 124, 240, 0.24);
}

.bl-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--bl-gut);
}

/* ---------- Type ---------- */

.bl-display {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: var(--bl-ink);
  text-wrap: balance;
}

.bl-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bl-muted);
}

.bl-muted {
  color: var(--bl-muted);
}

.bl-title-link {
  color: var(--bl-ink);
  transition: color 0.2s ease;
}

.bl-card:hover .bl-title-link,
.bl-row:hover .bl-title-link,
.bl-featured-card:hover .bl-title-link {
  color: var(--bl-accent);
}

.bl-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Header: the homepage floating pill ---------- */

.bl-header {
  position: fixed;
  top: 20px;
  right: var(--bl-gut);
  left: var(--bl-gut);
  z-index: 50;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(11, 29, 58, 0.04),
    0 10px 30px -18px rgba(11, 29, 58, 0.25);
}

.bl-header-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.bl-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bl-ink);
}

.bl-nav {
  position: absolute;
  left: 50%;
  display: none;
  align-items: center;
  gap: 31px;
  translate: -50% 0;
}

.bl-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.bl-nav a:hover {
  opacity: 0.55;
}

.bl-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--bl-accent);
}

@media (min-width: 900px) {
  .bl-nav {
    display: flex;
  }
}

.bl-header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.bl-login {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--bl-ink);
}

.bl-navcta {
  display: flex;
  width: 142px;
  height: 42px;
  margin-left: 16px;
  border-radius: 999px;
}

/* ---------- Buttons: the homepage primary, with the dot ---------- */

.bl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 46px 0 18px;
  border-radius: 999px;
  background: var(--bl-ink);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--bl-ease);
}

.bl-btn--lg {
  height: 62px;
  padding: 0 62px 0 28px;
  font-size: 17px;
}

.bl-btn--full {
  width: 142px;
  justify-content: center;
  padding: 0 34px 0 16px;
}

.bl-btn:active {
  transform: scale(0.98);
}

.bl-btn--quiet {
  background: transparent;
  color: var(--bl-ink);
  padding: 0 22px;
  border: 1px solid var(--bl-line);
}

.bl-btn--quiet:hover {
  border-color: rgba(16, 32, 61, 0.3);
}

.bl-btn-dot {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bl-dot);
  box-shadow: 0 0 10px rgba(0, 231, 255, 0.7);
  transform: translateY(-50%);
  transition:
    width 0.45s var(--bl-ease),
    height 0.45s var(--bl-ease),
    right 0.45s var(--bl-ease),
    box-shadow 0.45s var(--bl-ease);
}

.bl-btn-dot svg {
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s ease 0.05s,
    transform 0.3s ease 0.05s;
}

.bl-btn:hover .bl-btn-dot {
  width: 32px;
  height: 32px;
  right: 5px;
  box-shadow: none;
}

.bl-btn:hover .bl-btn-dot svg {
  opacity: 1;
  transform: none;
}

.bl-btn--lg .bl-btn-dot {
  right: 24px;
  width: 14px;
  height: 14px;
}

/* ---------- Masthead ---------- */

.bl-masthead {
  position: relative;
  padding: 132px 0 0;
  text-align: center;
}

/* The homepage's pastel bowl glow, behind the masthead only. */
.bl-masthead::before {
  content: "";
  position: absolute;
  inset: -60px 0 auto;
  height: 520px;
  background: radial-gradient(
    60% 46% at 50% 0%,
    #d2daff 0%,
    #8fd5f1 38%,
    rgba(255, 255, 255, 0) 76%
  );
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
}

.bl-masthead h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.bl-masthead p {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--bl-ink-2);
}

/* ---------- Tabs ---------- */

.bl-tabs {
  display: flex;
  align-items: center;
  margin-top: 44px;
  border-bottom: 1px solid var(--bl-line);
}

.bl-tabs-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bl-tabs-inner::-webkit-scrollbar {
  display: none;
}

.bl-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bl-muted);
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.bl-tab:hover {
  color: var(--bl-ink);
}

.bl-tab[aria-selected="true"] {
  background: var(--bl-ink);
  color: #ffffff;
}

.bl-tabs-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.bl-search-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  color: var(--bl-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.bl-search-toggle:hover,
.bl-search-toggle[aria-expanded="true"] {
  color: var(--bl-ink);
  border-color: rgba(16, 32, 61, 0.3);
}

.bl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  background: #ffffff;
}

.bl-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--bl-ink);
  font-size: 14px;
  outline: none;
}

.bl-search input::placeholder {
  color: var(--bl-muted);
}

.bl-search input::-webkit-search-cancel-button,
.bl-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- Featured ---------- */

.bl-featured {
  margin-top: 52px;
}

.bl-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #ffffff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bl-featured-card:hover {
  border-color: rgba(16, 32, 61, 0.26);
  box-shadow: 0 18px 46px -30px rgba(11, 29, 58, 0.4);
}

@media (min-width: 820px) {
  .bl-featured-card {
    grid-template-columns: 60% 40%;
  }
}

.bl-featured-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f0f5fc;
  overflow: hidden;
}

@media (min-width: 820px) {
  .bl-featured-media {
    aspect-ratio: auto;
    min-height: 330px;
  }
}

.bl-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

@media (min-width: 820px) {
  .bl-featured-body {
    padding: 38px 34px;
  }
}

.bl-featured-title {
  margin-top: 16px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.bl-featured-excerpt {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bl-muted);
}

/* ---------- Byline ---------- */

.bl-byline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--bl-muted);
}

/* A byline is one line. In a narrow card column it clips rather than stacking
   into four unreadable fragments. */
.bl-byline > span {
  white-space: nowrap;
}

.bl-byline > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef3fb;
}

.bl-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bl-ink-2);
  font-size: 10.5px;
  font-weight: 600;
}

.bl-dot {
  color: rgba(16, 32, 61, 0.3);
}

/* ---------- Category sections ---------- */

.bl-sections {
  margin-top: 72px;
}

.bl-section {
  padding-top: 44px;
  border-top: 1px solid var(--bl-line);
}

.bl-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.bl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.bl-section-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--bl-ink);
}

.bl-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bl-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.bl-see-more:hover {
  color: var(--bl-accent);
}

.bl-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .bl-section-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 44px;
    align-items: start;
  }
}

/* Lead card: image left, text right. */
.bl-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #ffffff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bl-card:hover {
  border-color: rgba(16, 32, 61, 0.26);
  box-shadow: 0 18px 46px -30px rgba(11, 29, 58, 0.4);
}

@media (min-width: 560px) {
  .bl-card {
    grid-template-columns: 42% 58%;
  }
}

.bl-card-media {
  aspect-ratio: 16 / 10;
  background: #f0f5fc;
  overflow: hidden;
}

@media (min-width: 560px) {
  .bl-card-media {
    aspect-ratio: auto;
    min-height: 205px;
  }
}

.bl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

/* Leads with a 42% image column are too narrow for name + date + read time on
   one line, so the read time is dropped there rather than clipped. */
@media (min-width: 560px) and (max-width: 1099px) {
  .bl-card .bl-byline {
    font-size: 11.5px;
    gap: 7px;
  }

  .bl-card .bl-byline > span:last-child {
    display: none;
  }
}

.bl-card-title {
  margin-top: 10px;
  font-size: clamp(19px, 2.1vw, 22px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.bl-card-excerpt {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bl-muted);
}

/* Compact rows. */
.bl-rows {
  display: flex;
  flex-direction: column;
}

.bl-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--bl-line-soft);
}

.bl-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.bl-row-thumb {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f5fc;
}

.bl-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-row-title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.bl-row-meta {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--bl-muted);
}

/* Neutral placeholder wherever a post has no cover image. */
.bl-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      45deg,
      rgba(16, 32, 61, 0.04) 0 8px,
      transparent 8px 16px
    ),
    #f0f5fc;
  color: rgba(16, 32, 61, 0.35);
}

.bl-placeholder svg {
  width: 22px;
  height: 22px;
}

/* ---------- Load more ---------- */

.bl-more {
  display: flex;
  justify-content: center;
  padding: 48px 0 8px;
}

.bl-more button {
  height: 42px;
  padding: 0 26px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bl-ink);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.bl-more button:hover {
  border-color: rgba(16, 32, 61, 0.3);
  background: #f6f9fe;
}

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

.bl-empty {
  margin-top: 56px;
  padding: 76px 24px;
  border: 1px dashed var(--bl-line);
  border-radius: 14px;
  text-align: center;
}

.bl-empty h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bl-empty p {
  margin: 14px auto 0;
  max-width: 32rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bl-muted);
}

/* ---------- CTA band: the homepage final panel, in miniature ---------- */

.bl-cta {
  position: relative;
  margin: 92px 0 80px;
  padding: 60px 28px;
  border-radius: 28px;
  background: var(--bl-panel);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.bl-cta::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 340px;
  background: radial-gradient(
    54% 60% at 50% 0%,
    rgba(143, 213, 241, 0.4) 0%,
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
}

.bl-cta h2 {
  position: relative;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.bl-cta p {
  position: relative;
  margin: 16px auto 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.bl-cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

@media (min-width: 560px) {
  .bl-cta-actions {
    flex-direction: row;
  }
}

.bl-cta .bl-btn--quiet {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.bl-cta .bl-btn--quiet:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------- Footer ---------- */

.bl-footer {
  border-top: 1px solid var(--bl-line);
  padding: 30px 0 44px;
  font-size: 12.5px;
  color: var(--bl-muted);
}

.bl-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 640px) {
  .bl-footer-inner {
    flex-direction: row;
  }
}

/*
 * Social marks in the blog footer.
 *
 * Same three accounts, same map, same treatment as the homepage: a circled mark
 * on the footer's own hairline, muted until hover or focus. The blog carries its
 * own token set (--bl-*), so the colours are read from there rather than imported,
 * which keeps this stylesheet self-contained.
 */
.bl-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.bl-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  color: var(--bl-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.bl-footer-social a:hover,
.bl-footer-social a:focus-visible {
  color: var(--bl-ink);
  border-color: var(--bl-ink);
}

.bl-footer-social a:focus-visible {
  outline: 2px solid var(--bl-ink);
  outline-offset: 2px;
}

.bl-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.bl-footer-links a:hover {
  color: var(--bl-ink);
}

/* ---------- Article ---------- */

.bl-article {
  padding-top: 112px;
}

.bl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--bl-muted);
}

.bl-breadcrumb a:hover {
  color: var(--bl-ink);
}

.bl-article-title {
  margin-top: 16px;
  max-width: 34rem;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.bl-article-sub {
  margin-top: 20px;
  max-width: 46rem;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--bl-ink-2);
}

.bl-cover {
  margin: 38px 0 0;
  overflow: hidden;
  border-radius: 28px;
}

.bl-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bl-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 1280px) {
  .bl-article-layout {
    grid-template-columns: minmax(0, 712px) 248px;
    justify-content: center;
    gap: 64px;
    /* The rail must stay pinned while the body scrolls past it. `align-items:
       start` plus a sticky child is not enough — the grid cell is as tall as the
       article, so the sticky rail drifts off the top. */
    align-items: start;
  }

  .bl-article-layout > .bl-toc-desktop {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.bl-article-layout > .bl-toc-desktop .bl-toc-inner {
  position: static;
}

.bl-prose {
  max-width: 712px;
  font-size: 18.5px;
  line-height: 1.85;
  color: #2a3b52;
}

.bl-prose p {
  margin: 0 0 1.2em;
}

.bl-prose h2 {
  position: relative;
  margin: 3.1em 0 0.85em;
  padding-top: 1.4em;
  border-top: 1px solid var(--bl-line);
  font-size: clamp(26px, 3vw, 33px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--bl-ink);
  scroll-margin-top: 104px;
}

.bl-prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bl-prose h3 {
  margin: 2.1em 0 0.6em;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--bl-ink);
  scroll-margin-top: 104px;
}

.bl-prose h4 {
  margin: 1.7em 0 0.5em;
  font-size: 17px;
  font-weight: 500;
  color: var(--bl-ink);
}

.bl-prose ul,
.bl-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.bl-prose ul {
  list-style: none;
}

.bl-prose ul li {
  position: relative;
}

.bl-prose ul li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(16, 32, 61, 0.28);
}

.bl-prose ol {
  list-style: decimal;
}

.bl-prose ol li::marker {
  color: var(--bl-muted);
}

.bl-prose li {
  margin: 0 0 0.6em;
}

.bl-prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--bl-accent);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--bl-ink);
}

.bl-prose blockquote p {
  margin: 0;
}

.bl-prose a {
  color: var(--bl-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bl-prose a:hover {
  text-decoration-thickness: 2px;
}

.bl-prose strong {
  font-weight: 500;
  color: var(--bl-ink);
}

.bl-prose em {
  font-style: italic;
}

.bl-prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f0f5fc;
  color: var(--bl-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
}

.bl-prose pre {
  margin: 1.6em 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #f6f9fe;
}

.bl-prose pre code {
  padding: 0;
  background: none;
  font-size: 13.5px;
  line-height: 1.7;
}

.bl-prose figure {
  margin: 1.8em 0;
}

.bl-prose figure img {
  border-radius: 14px;
  border: 1px solid var(--bl-line);
}

.bl-prose figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--bl-muted);
  text-align: center;
}

.bl-prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--bl-line);
}

/* ---------- Reading progress ---------- */

/* Sits in the 10px gap the floating pill leaves above the page edge, so it
   never crosses the article text. */
.bl-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.bl-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--bl-accent);
}

/* ---------- TOC rail ---------- */

.bl-toc {
  font-size: 13px;
}

.bl-toc-inner {
  position: sticky;
  top: 100px;
  padding-left: 16px;
}

.bl-toc-label {
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bl-muted);
}

.bl-toc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bl-toc li {
  position: relative;
  padding-left: 12px;
}

.bl-toc li a,
.bl-toc li button {
  display: block;
  padding: 1px 0;
  text-align: left;
  line-height: 1.4;
  color: var(--bl-muted);
  transition: color 0.2s ease;
}

.bl-toc li a:hover {
  color: var(--bl-ink);
}

.bl-toc li[data-active="true"] a {
  color: var(--bl-ink);
  font-weight: 500;
}

/* Thin accent line along the left edge for the active entry. */
.bl-toc li[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--bl-accent);
}

.bl-toc-sub {
  padding-left: 22px;
  font-size: 12.5px;
}

.bl-toc-more {
  margin-top: 12px;
  padding-left: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bl-accent);
}

.bl-toc-more:hover {
  text-decoration: underline;
}

/* Desktop rail / mobile disclosure. */
.bl-toc-desktop {
  display: none;
}

.bl-toc-mobile {
  display: block;
  margin-bottom: 30px;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #ffffff;
}

.bl-toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bl-ink);
  cursor: pointer;
  list-style: none;
}

.bl-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.bl-toc-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 18px;
  font-size: 13.5px;
}

.bl-toc-mobile ul a {
  color: var(--bl-muted);
}

@media (min-width: 1280px) {
  .bl-toc-desktop {
    display: block;
  }

  .bl-toc-mobile {
    display: none;
  }
}

@media (max-width: 1279px) {
  .bl-prose {
    font-size: 17px;
    line-height: 1.8;
  }
}

@media (max-width: 559px) {
  .bl-prose {
    font-size: 16.5px;
  }

  .bl-article-title {
    max-width: none;
  }

  .bl-cover {
    border-radius: 14px;
  }
}

/* ---------- Author box ---------- */

.bl-author {
  margin-top: 60px;
  padding: 26px;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #ffffff;
}

.bl-author-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bl-author-avatar,
.bl-author-avatar.bl-placeholder {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
}

.bl-author-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bl-ink);
}

.bl-author-role {
  font-size: 12.5px;
  color: var(--bl-muted);
}

.bl-author-bio {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bl-muted);
}

.bl-author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 12.5px;
}

.bl-author-social a {
  color: var(--bl-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bl-author-social a:hover {
  color: var(--bl-accent);
}

/* ---------- Related ---------- */

.bl-related {
  margin-top: 68px;
}

.bl-related h2 {
  margin-bottom: 22px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.bl-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .bl-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bl-related-card {
  display: block;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bl-related-card:hover {
  border-color: rgba(16, 32, 61, 0.26);
  box-shadow: 0 18px 46px -30px rgba(11, 29, 58, 0.4);
}

.bl-related-media {
  aspect-ratio: 16 / 10;
  background: #f0f5fc;
}

.bl-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-related-body {
  padding: 18px;
}

.bl-related-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--bl-ink);
}

.bl-related-meta {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--bl-muted);
}

/* ---------- Share ---------- */

.bl-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--bl-line);
}

.bl-share-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bl-muted);
}

.bl-share button,
.bl-share a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--bl-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.bl-share button:hover,
.bl-share a:hover {
  color: var(--bl-ink);
  border-color: rgba(16, 32, 61, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .bl-root *,
  .bl-root *::before,
  .bl-root *::after {
    transition: none !important;
    animation: none !important;
  }

  .bl-progress {
    display: none;
  }
}

/* ---------- Answer-first pages ---------- */

.bl-answer {
  margin-top: 32px;
  padding: 26px 28px;
  border: 1px solid var(--bl-line);
  border-left: 3px solid var(--bl-accent);
  border-radius: 14px;
  background: #f6f9fe;
}

.bl-answer-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bl-accent);
}

.bl-answer-body {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--bl-ink);
}

.bl-answer-toc {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
}

.bl-answer-toc ol {
  margin-top: 14px;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  list-style: decimal;
}

.bl-answer-toc li::marker {
  color: var(--bl-muted);
}

.bl-answer-toc a {
  color: var(--bl-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.bl-answer-toc a:hover {
  color: var(--bl-accent);
  text-decoration-color: currentColor;
}

.bl-answer-faq {
  margin: 22px 0 0;
}

.bl-answer-faq > div {
  padding: 20px 0;
  border-top: 1px solid var(--bl-line);
}

.bl-answer-faq > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.bl-answer-faq dt {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bl-ink);
}

.bl-answer-faq dd {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #2a3b52;
}

.bl-answer-updated {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--bl-line);
  font-size: 12.5px;
  color: var(--bl-muted);
}

/* ---------- Agents directory ---------- */

.bl-agent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .bl-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bl-agent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bl-agent-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bl-agent-card:hover {
  border-color: rgba(16, 32, 61, 0.26);
  box-shadow: 0 18px 46px -30px rgba(11, 29, 58, 0.4);
}

.bl-agent-photo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef3fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--bl-ink-2);
}

.bl-agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-agent-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bl-ink);
}

.bl-agent-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--bl-muted);
}

.bl-agent-line {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bl-line);
  font-size: 13.5px;
  color: var(--bl-muted);
}

.bl-pager a {
  font-weight: 500;
  color: var(--bl-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bl-pager a:hover {
  color: var(--bl-accent);
}

/* Answer-first pages use the wider reading measure so the H1 phrase and the
   short answer do not wrap into a narrow column. */
.bl-root:has(.bl-answer) .bl-article-title,
.bl-root:has(.bl-answer) .bl-answer,
.bl-root:has(.bl-answer) .bl-answer-toc {
  max-width: 46rem;
}

.bl-root:has(.bl-answer) .bl-article {
  max-width: 46rem;
  margin: 0 auto;
}

.bl-root:has(.bl-answer) .bl-prose {
  max-width: 46rem;
}

/* The answer page has no rail, so the article is centred in the shell rather
   than left-aligned inside a 1180px container. */
.bl-root:has(.bl-answer) .bl-article {
  margin-inline: auto;
}
