/* ============================================================================
   PathGuided Journal & Homepage Dispatches · Warm Studio Daylight
   ============================================================================
   Staged verbatim to /assets/marketing_blog.css and loaded alongside
   /assets/marketing_home.css under the strict browser CSP.
   ========================================================================== */

/* --- Active Navigation Wayfinding --- */
.p1-nav-links a[aria-current="page"] {
  color: var(--ds-accent);
  font-weight: 600;
  background: var(--ds-selection-bg);
}

.p1-mobile-links a[aria-current="page"] {
  color: var(--ds-accent);
  font-weight: 600;
  background: var(--ds-selection-bg);
}

/* --- Homepage Journal Section (#journal) --- */
.hm-journal {
  background-color: var(--ds-chrome);
  border-top: 1px solid var(--ds-panel-border);
  border-bottom: 1px solid var(--ds-panel-border);
}

.hm-journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hm-journal-title {
  font-family: var(--ds-editorial);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ds-ink);
  margin: 10px 0 12px;
  max-width: 22ch;
}

.hm-journal-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ds-ink-2);
}

.hm-journal-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--ds-radius-control);
  border: 1px solid var(--ds-node-border);
  background: var(--ds-panel-2);
  color: var(--ds-accent);
  font-family: var(--ds-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.hm-journal-all:hover {
  border-color: var(--ds-accent);
  background: var(--ds-selection-bg);
  transform: translateY(-1px);
}

.hm-journal-all:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

/* --- Blog List — Warm Studio Editorial Rhythm --- */
.bl-masthead {
  padding: clamp(36px, 5vw, 60px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--ds-panel-border);
}

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

.bl-breadcrumb a {
  text-decoration: none;
  color: var(--ds-muted);
}

.bl-breadcrumb a:hover {
  color: var(--ds-accent);
  text-decoration: underline;
}

.bl-breadcrumb-sep {
  color: var(--ds-node-border);
}

.bl-masthead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bl-title {
  font-family: var(--ds-editorial);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ds-ink);
  margin: 0 0 12px;
}

.bl-subtitle {
  margin: 0;
  max-width: 58ch;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ds-ink-2);
}

/* Topic Filter Bar */
.bl-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0 0;
}

.bl-filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-node-border);
  background: var(--ds-panel);
  color: var(--ds-ink-2);
  font-family: var(--ds-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.bl-filter-btn:hover {
  border-color: var(--ds-accent);
  color: var(--ds-accent);
}

.bl-filter-btn:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

.bl-filter-btn[aria-pressed="true"] {
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: var(--ds-accent-ink);
  font-weight: 600;
}

/* Featured Hero Story */
.bl-featured-section {
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--ds-panel-border);
}

.bl-featured-section[hidden] {
  display: none;
}

.bl-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--ds-panel-2);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-stage);
  padding: clamp(20px, 3vw, 32px);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}

.bl-featured-card--no-media {
  grid-template-columns: 1fr;
}

.bl-featured-card:hover {
  border-color: var(--ds-accent);
}

.bl-featured-card:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

.bl-featured-media {
  overflow: hidden;
  border-radius: var(--ds-radius-panel);
  background: var(--ds-surface-well);
}

.bl-featured-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
}

.bl-featured-img--ui {
  object-position: top center;
}

.bl-kicker {
  display: inline-block;
  font-family: var(--ds-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin-bottom: 12px;
}

.bl-featured-title {
  font-family: var(--ds-editorial);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ds-ink);
  margin: 0 0 14px;
}

.bl-featured-dek {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ds-ink-2);
}

.bl-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ds-muted);
}

.bl-meta-dot {
  color: var(--ds-node-border);
}

.bl-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ds-accent);
}

@media (max-width: 920px) {
  .bl-featured-card {
    grid-template-columns: 1fr;
  }
}

/* Latest Dispatches 3-Column Grid */
.bl-grid-section {
  padding: clamp(44px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--ds-panel-border);
}

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

.bl-section-title {
  font-family: var(--ds-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ds-ink);
}

.bl-count-label {
  font-family: var(--ds-mono);
  font-size: 13px;
  color: var(--ds-muted);
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

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

@media (max-width: 640px) {
  .bl-grid {
    grid-template-columns: 1fr;
  }
}

.bl-card {
  display: flex;
  flex-direction: column;
  background: var(--ds-panel);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-panel);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.bl-card:hover {
  border-color: var(--ds-accent);
  background: var(--ds-panel-2);
}

.bl-card:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

.bl-card[hidden] {
  display: none;
}

.bl-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--ds-surface-well);
  border-bottom: 1px solid var(--ds-panel-border);
}

.bl-card-img--photo {
  object-position: center 35%;
}

.bl-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.bl-card-kicker {
  font-family: var(--ds-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin-bottom: 8px;
}

.bl-card-title {
  font-family: var(--ds-editorial);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ds-ink);
  margin: 0 0 10px;
}

.bl-card-excerpt {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ds-ink-2);
  flex: 1;
}

.bl-card-meta {
  font-size: 13px;
  color: var(--ds-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bl-empty-state {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: var(--ds-panel);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-panel);
  font-size: 15px;
  color: var(--ds-muted);
}

.bl-empty-state[hidden] {
  display: none;
}

/* Field Notes Chronological List */
.bl-list-section {
  padding: clamp(44px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--ds-panel-border);
}

.bl-list-section[hidden] {
  display: none;
}

.bl-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ds-panel-border);
}

.bl-note-item {
  border-bottom: 1px solid var(--ds-panel-border);
}

.bl-note-item[hidden] {
  display: none;
}

.bl-note-link {
  display: grid;
  grid-template-columns: 140px 200px minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: baseline;
  padding: 20px 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 140ms ease;
}

.bl-note-link:hover {
  background: var(--ds-chrome);
}

.bl-note-link:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: -2px;
}

.bl-note-date {
  font-family: var(--ds-mono);
  font-size: 13px;
  color: var(--ds-muted);
}

.bl-note-tag {
  font-family: var(--ds-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-accent);
}

.bl-note-title {
  font-family: var(--ds-editorial);
  font-size: 19px;
  font-weight: 500;
  color: var(--ds-ink);
  line-height: 1.32;
}

.bl-note-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-accent);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .bl-note-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 4px;
  }
}

/* Closed Beta CTA Strip */
.bl-cta-section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.bl-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--ds-panel-2);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-stage);
  padding: clamp(26px, 4vw, 40px);
}

.bl-cta-title {
  font-family: var(--ds-editorial);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ds-ink);
}

.bl-cta-body {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  color: var(--ds-ink-2);
}

/* --- Single Article Layout (.bp-*) --- */
.bp-article {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 84px);
}

.bp-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--pg-gutter);
}

.bp-wide {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding-inline: var(--pg-gutter);
}

.bp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--ds-mono);
  font-size: 12.5px;
  color: var(--ds-muted);
  margin-bottom: 20px;
}

.bp-breadcrumb a {
  text-decoration: none;
  color: var(--ds-muted);
}

.bp-breadcrumb a:hover {
  color: var(--ds-accent);
  text-decoration: underline;
}

.bp-breadcrumb-sep {
  color: var(--ds-node-border);
}

.bp-title {
  font-family: var(--ds-editorial);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ds-ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.bp-lead {
  font-family: var(--ds-editorial);
  font-size: clamp(1.18rem, 1.8vw, 1.38rem);
  line-height: 1.55;
  color: var(--ds-ink-2);
  margin: 0 0 24px;
}

.bp-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ds-panel-border);
  margin-bottom: 22px;
}

.bp-date-read {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ds-muted);
}

.bp-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-node-border);
  background: var(--ds-panel);
  color: var(--ds-ink-2);
  font-family: var(--ds-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.bp-share-btn:hover {
  border-color: var(--ds-accent);
  color: var(--ds-accent);
}

.bp-share-btn:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

.bp-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.bp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-selection-bg);
  border: 1px solid var(--ds-accent);
  color: var(--ds-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ds-display);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.bp-author-name {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ds-ink);
  display: block;
  line-height: 1.3;
}

.bp-author-role {
  font-size: 14px;
  color: var(--ds-muted);
  display: block;
}

/* Lead Figure */
.bp-figure {
  margin: 0 0 38px;
}

.bp-figure-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--ds-radius-stage);
  border: 1px solid var(--ds-panel-border);
  background: var(--ds-surface-well);
}

.bp-figure-img--ui {
  object-position: top center;
}

.bp-figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-muted);
}

/* Editorial Prose */
.bp-prose h2 {
  font-family: var(--ds-editorial);
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ds-ink);
  margin: 42px 0 14px;
}

.bp-prose h3 {
  font-family: var(--ds-display);
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ds-ink);
  margin: 32px 0 10px;
}

.bp-prose h4 {
  font-family: var(--ds-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ds-ink);
  margin: 24px 0 8px;
}

.bp-prose p {
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ds-ink-2);
}

.bp-prose a {
  color: var(--ds-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-prose a:hover {
  color: var(--ds-accent-hover);
}

.bp-prose ul,
.bp-prose ol {
  margin: 0 0 24px;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ds-ink-2);
}

.bp-prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--ds-chrome);
  border-left: 3px solid var(--ds-accent);
  border-radius: 0;
  color: var(--ds-ink-2);
}

.bp-prose blockquote p:last-child {
  margin-bottom: 0;
}

.bp-prose hr {
  border: 0;
  border-top: 1px solid var(--ds-panel-border);
  margin: 36px 0;
}

.bp-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ds-radius-panel);
  border: 1px solid var(--ds-panel-border);
  background: var(--ds-surface-well);
  margin: 28px 0;
}

.bp-prose figure {
  margin: 30px 0;
}

.bp-prose figure img {
  margin: 0;
}

.bp-prose figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-muted);
}

.bp-prose code {
  font-family: var(--ds-mono);
  font-size: 0.87em;
  background: var(--ds-surface-well);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ds-ink);
}

.bp-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
  background: var(--ds-panel-2);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-panel);
  overflow: hidden;
}

.bp-prose th,
.bp-prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ds-panel-border);
}

.bp-prose th {
  background: var(--ds-chrome);
  font-family: var(--ds-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

/* --- Grounded Warm Charcoal Code Blocks --- */
.bp-prose pre {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--ds-terminal);
  border: 1px solid var(--ds-terminal-border);
  border-radius: var(--ds-radius-panel);
  overflow-x: auto;
  font-family: var(--ds-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ds-terminal-ink);
}

.bp-prose pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.bp-code-card {
  background: var(--ds-terminal);
  border: 1px solid var(--ds-terminal-border);
  border-radius: var(--ds-radius-panel);
  overflow: hidden;
  margin: 30px 0;
}

.bp-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ds-terminal-bar);
  border-bottom: 1px solid var(--ds-terminal-border);
  font-family: var(--ds-mono);
  font-size: 12.5px;
  color: var(--ds-terminal-muted);
}

.bp-copy-code {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--ds-terminal-border);
  background: var(--ds-terminal);
  color: var(--ds-terminal-ink);
  font-family: var(--ds-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.bp-copy-code:hover {
  border-color: var(--ds-terminal-pine);
  color: var(--ds-terminal-pine);
}

.bp-copy-code:focus-visible {
  outline: 2px solid var(--ds-terminal-pine);
  outline-offset: 2px;
}

.bp-code-card pre,
.bp-code-pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--ds-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ds-terminal-ink);
}

.bp-code-pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* --- Mermaid / Architecture Diagrams (.bp-diagram) --- */
.bp-diagram,
.bp-diagram-panel {
  background: var(--ds-panel-2);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-stage);
  padding: clamp(18px, 3vw, 28px);
  margin: 34px 0;
  overflow-x: auto;
}

.bp-diagram svg,
.bp-diagram-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.bp-diagram svg text {
  font-family: var(--ds-sans);
}

.bp-diagram-title,
.bp-diagram figcaption {
  margin-top: 14px;
  font-family: var(--ds-mono);
  font-size: 12.5px;
  color: var(--ds-muted);
}

/* Structured HTML flowchart support for CSP-safe Mermaid rendering */
.bp-diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bp-diagram-flow--lr {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.bp-diagram-subgraph {
  background: var(--ds-chrome);
  border: 1px dashed var(--ds-node-border);
  border-radius: var(--ds-radius-panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-diagram-subgraph-title {
  font-family: var(--ds-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-accent);
}

.bp-diagram-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bp-diagram-node {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--ds-panel);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-control);
  font-family: var(--ds-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-ink);
  line-height: 1.35;
}

.bp-diagram-node--accent {
  background: var(--ds-selection-bg);
  border-color: var(--ds-selection-border);
  color: var(--ds-accent);
  font-weight: 600;
}

.bp-diagram-node--decision {
  background: var(--ds-waypoint-bg);
  border-color: var(--ds-waypoint);
  color: var(--ds-waypoint-fg);
}

.bp-diagram-edge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ds-panel);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  font-size: 14px;
}

.bp-diagram-arrow {
  font-family: var(--ds-mono);
  font-weight: 600;
  color: var(--ds-accent);
}

.bp-diagram-label {
  font-family: var(--ds-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-selection-bg);
  color: var(--ds-accent);
}

/* --- Tags & Beta End Box --- */
.bp-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 38px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-panel-border);
}

.bp-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-node-border);
  background: var(--ds-panel);
  font-size: 13.5px;
  color: var(--ds-ink-2);
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}

.bp-tag-chip:hover {
  border-color: var(--ds-accent);
  color: var(--ds-accent);
}

.bp-end-cta {
  background: var(--ds-panel-2);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-stage);
  padding: clamp(24px, 3.5vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bp-end-cta h2 {
  font-family: var(--ds-editorial);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ds-ink);
}

.bp-end-cta p {
  margin: 0;
  font-size: 15px;
  color: var(--ds-ink-2);
  max-width: 46ch;
}

/* --- Related Dispatches Grid --- */
.bp-related {
  padding: clamp(44px, 6vw, 64px) 0;
  border-top: 1px solid var(--ds-panel-border);
  background: var(--ds-chrome);
}

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

.bp-related-title {
  font-family: var(--ds-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ds-ink);
}

.bp-all-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ds-accent);
  text-decoration: none;
}

.bp-all-link:hover {
  text-decoration: underline;
}

.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 860px) {
  .bp-related-grid {
    grid-template-columns: 1fr;
  }
}

.bp-rel-card {
  display: flex;
  flex-direction: column;
  background: var(--ds-panel-2);
  border: 1px solid var(--ds-panel-border);
  border-radius: var(--ds-radius-panel);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease;
}

.bp-rel-card:hover {
  border-color: var(--ds-accent);
}

.bp-rel-card:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

.bp-rel-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--ds-panel-border);
  background: var(--ds-surface-well);
}

.bp-rel-img--photo {
  object-position: center 35%;
}

.bp-rel-body {
  padding: 18px 20px 20px;
}

.bp-rel-kicker {
  display: block;
  font-family: var(--ds-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-accent);
  margin-bottom: 6px;
}

.bp-rel-heading {
  font-family: var(--ds-editorial);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ds-ink);
  margin: 0 0 10px;
}

.bp-rel-date {
  font-size: 13px;
  color: var(--ds-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hm-journal-all,
  .bl-featured-card,
  .bl-card,
  .bl-filter-btn,
  .bl-note-link,
  .bp-share-btn,
  .bp-copy-code,
  .bp-tag-chip,
  .bp-rel-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Uniform architectural placeholder for dispatches without a cover screenshot */
.bl-card-img--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--ds-rail);
  background-image: radial-gradient(rgba(25, 100, 86, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ds-accent);
}

.bl-placeholder-mark {
  width: 38px;
  height: 38px;
  opacity: 0.72;
}

.bl-placeholder-label {
  font-family: var(--ds-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-ink-2);
  padding: 4px 10px;
  border-radius: var(--ds-radius-pill);
  background: rgba(252, 251, 248, 0.88);
  border: 1px solid var(--ds-node-border);
}
