/* ============================================================
 * Satya v26 — Blog article v2 (/posts/{id}/v2) per-view sheet
 * ------------------------------------------------------------
 * Loaded by app/Views/v26/blog/show.php, after posts.css. The comments
 * thread is styled by components/comments.css, which the comments partial
 * links itself. Colour comes from theme tokens; the only fixed colours are the
 * white-on-photo hero/CTA text and the scrim, which sit on imagery or the
 * brand gradient in every theme.
 *
 * Breakpoints: <768 phone · 768–1099 single centred column · >=1100 three
 * columns [share rail | article | sticky side].
 * ============================================================ */

.ba {
  --ba-rail: 3.5rem;
  --ba-measure: 42rem;
  --ba-side: 18rem;
  --ba-gap: 3rem;
  --ba-shell: calc(var(--ba-rail) + var(--ba-measure) + var(--ba-side) + 2 * var(--ba-gap));
  --ba-stick: 6rem;
  --ba-ink: #fff;
}

.ba-kicker {
  margin: 0 0 var(--s-space-2);
  font-size: var(--s-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

/* ── Reading progress ────────────────────────────────────────── */
.ba-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
}
.ba-progress__bar {
  height: 100%;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
}

/* ═════════════ COVER HERO ═════════════ */
.ba-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(28rem, 74vh, 42rem);
  overflow: hidden;
  color: var(--ba-ink);
  background: #14231a;
}
.ba-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 18 12 / 0.35) 0%, rgb(8 18 12 / 0) 28%),
    linear-gradient(180deg, rgb(8 18 12 / 0) 30%, rgb(8 18 12 / 0.55) 60%, rgb(8 18 12 / 0.9) 100%);
}
.ba-hero__inner {
  width: 100%;
  max-width: var(--ba-shell);
  margin-inline: auto;
  padding: 7rem var(--s-gutter) 3.5rem;
}
/* Align hero text with the article column on the 3-column layout */
@media (min-width: 1100px) {
  .ba-hero__inner { padding-left: calc(var(--s-gutter) + var(--ba-rail) + var(--ba-gap)); }
}

.ba-hero__cat {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--s-space-4);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--brand-primary);
  color: #fff;
  font-size: var(--s-text-sm);
  font-weight: 500;
  text-decoration: none;
}
a.ba-hero__cat:hover { filter: brightness(0.92); }

.ba-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-1);
  margin-bottom: var(--s-space-3);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--warning-subtle);
  color: var(--warning);
  font-size: var(--s-text-xs);
  font-weight: 600;
}
.ba-hero__title {
  max-width: 20ch;
  margin: 0;
  color: inherit;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.ba-hero__dek {
  max-width: 40rem;
  margin: var(--s-space-4) 0 0;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  opacity: 0.88;
}

.ba-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-space-3);
  margin-top: var(--s-space-6);
}
.ba-byline__avatar img,
.ba-byline__avatar > div { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7); }
.ba-byline__text { min-width: 0; }
.ba-byline__name { font-weight: 600; font-size: var(--s-text-base); }
.ba-byline__name a { color: inherit; text-decoration: none; }
.ba-byline__name a:hover { text-decoration: underline; }
.ba-byline__muted { font-weight: 400; opacity: 0.8; margin-left: var(--s-space-2); }
.ba-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-space-2);
  font-size: var(--s-text-sm);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.ba-hero__edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-1);
  padding: 0.45rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: var(--radius-pill, 999px);
  color: inherit;
  font-size: var(--s-text-sm);
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.ba-hero__edit:hover { background: rgb(255 255 255 / 0.15); }

/* No image (dummy thumbnails off): quiet brand-tinted header */
.ba-hero--plain {
  min-height: 0;
  color: var(--text-primary);
  background: linear-gradient(160deg, var(--primary-50), var(--bg-primary) 70%);
  border-bottom: 1px solid var(--border-primary);
}
.ba-hero--plain .ba-hero__inner { padding-top: 3rem; padding-bottom: 3rem; }
.ba-hero--plain .ba-hero__dek { color: var(--text-secondary); opacity: 1; }
.ba-hero--plain .ba-byline__avatar img { box-shadow: none; }
.ba-hero--plain .ba-hero__edit { border-color: var(--border-primary); }

/* ═════════════ READING SHELL ═════════════ */
.ba-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--ba-shell);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--s-gutter) var(--s-space-7);
}
.ba-main { min-width: 0; width: 100%; max-width: var(--ba-measure); margin-inline: auto; }
.ba-rail, .ba-side { display: none; }

@media (min-width: 1100px) {
  .ba-shell {
    grid-template-columns: var(--ba-rail) minmax(0, var(--ba-measure)) var(--ba-side);
    column-gap: var(--ba-gap);
    justify-content: center;
    align-items: start;
  }
  .ba-main { margin: 0; }
  .ba-rail, .ba-side { display: block; align-self: stretch; }
}

/* Share rail */
.ba-rail__inner {
  position: sticky;
  top: var(--ba-stick);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-space-2);
}
.ba-rail__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-2);
  margin-bottom: var(--s-space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.ba-rail__label i { transform: rotate(90deg); font-size: 0.9rem; }

/* Share buttons: theme-coloured, bold — brand ring + filled brand icon,
   solid brand fill on hover. */
.ba-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--brand-primary);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ba-round:hover {
  background: var(--brand-primary);
  color: var(--text-inverse, #fff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-primary) 35%, transparent);
}
.ba-round:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.ba-round i { font-size: 1.4rem; }
.ba-round--sm { width: 2.5rem; height: 2.5rem; }
.ba-round--sm i { font-size: 1.15rem; }

/* Side column */
.ba-side__inner {
  position: sticky;
  top: var(--ba-stick);
  display: flex;
  flex-direction: column;
  gap: var(--s-space-4);
}
.ba-side__card {
  padding: var(--s-space-5);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}
.ba-mini__head { display: flex; align-items: center; gap: var(--s-space-3); }
.ba-mini__name { font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.ba-mini__meta { font-size: var(--s-text-xs); color: var(--text-tertiary); }
.ba-mini__bio { margin: var(--s-space-3) 0 0; font-size: var(--s-text-sm); line-height: 1.55; color: var(--text-secondary); }
.ba-mini__btn { width: 100%; justify-content: center; margin-top: var(--s-space-4); }

/* Table of contents (side + inline) */
.ba-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.ba-toc li { counter-increment: toc; }
.ba-toc a {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  padding: 0.45rem 0;
  color: var(--text-tertiary);
  font-size: var(--s-text-sm);
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s;
}
.ba-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: var(--s-text-xs);
  font-variant-numeric: tabular-nums;
  padding-top: 0.1em;
  opacity: 0.7;
}
.ba-toc a:hover { color: var(--text-primary); }
.ba-toc a.is-active { color: var(--brand-primary); font-weight: 600; }
.ba-toc li + li a { border-top: 1px solid var(--border-primary); }

.ba-toc-inline {
  margin-bottom: var(--s-space-6);
  padding: var(--s-space-3) var(--s-space-4);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}
.ba-toc-inline summary {
  display: flex;
  align-items: center;
  gap: var(--s-space-2);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}
.ba-toc-inline[open] summary { margin-bottom: var(--s-space-2); }
@media (min-width: 1100px) { .ba-toc-inline { display: none; } }

/* ═════════════ ARTICLE TYPOGRAPHY ═════════════ */
.ba-prose {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { .ba-prose { font-size: 1.1875rem; } }
.ba-prose > * { margin: 0; }
.ba-prose > * + * { margin-top: 1.4em; }
.ba-prose > p:first-child {
  font-size: 1.12em;
  line-height: 1.7;
  color: var(--text-primary);
}
.ba-prose--dropcap > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-size: 3.7em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--brand-primary);
}
.ba-prose h2, .ba-prose h3 {
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: var(--ba-stick);
}
.ba-prose h2 { font-size: 1.65em; font-weight: 700; margin-top: 2.2em; }
.ba-prose h3 { font-size: 1.25em; font-weight: 600; margin-top: 1.8em; }
.ba-prose h2 + *, .ba-prose h3 + * { margin-top: 0.6em; }
.ba-prose strong { color: var(--text-primary); font-weight: 600; }
.ba-prose a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.ba-prose a:hover { text-decoration-thickness: 2px; }
.ba-prose img, .ba-prose video, .ba-prose iframe {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.ba-prose figure { margin-inline: 0; }
.ba-prose figcaption {
  margin-top: var(--s-space-2);
  font-size: var(--s-text-sm);
  color: var(--text-tertiary);
  text-align: center;
}
.ba-prose blockquote {
  position: relative;
  margin-block: 2em;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--brand-primary);
  color: var(--text-primary);
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.ba-prose ul, .ba-prose ol { padding-left: 1.4em; }
.ba-prose ul { list-style: disc; }
.ba-prose ol { list-style: decimal; }
.ba-prose li { padding-left: 0.3em; }
.ba-prose li + li { margin-top: 0.5em; }
.ba-prose li::marker { color: var(--brand-primary); }
.ba-prose hr {
  height: auto;
  margin-block: 2.5em;
  border: 0;
  text-align: center;
}
.ba-prose hr::before {
  content: "• • •";
  letter-spacing: 0.8em;
  color: var(--text-tertiary);
}
.ba-prose code {
  padding: 0.12em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-size: 0.88em;
}
.ba-prose pre {
  padding: var(--s-space-4);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  font-size: 0.85em;
  overflow-x: auto;
}
.ba-prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.9em; }
.ba-prose th, .ba-prose td { padding: 0.6em 0.9em; border-bottom: 1px solid var(--border-primary); text-align: left; }

/* ═════════════ "DID THIS RESONATE" PANEL ═════════════ */
.ba-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-xl);
  background: var(--primary-50);
}
.ba-helpful { display: grid; gap: var(--s-space-4); margin-top: var(--s-space-7); }
.ba-helpful h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.ba-helpful p { margin: var(--s-space-1) 0 0; font-size: var(--s-text-sm); color: var(--text-secondary); }
.ba-helpful__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-space-3);
}
.ba-helpful__share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-space-2); }
.ba-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-2);
  height: 2.5rem;
  margin-right: var(--s-space-1);
  padding: 0 1.15rem;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background: var(--brand-primary);
  color: var(--text-inverse, #fff);
  font: inherit;
  font-size: var(--s-text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-primary) 35%, transparent);
  transition: transform 0.15s, background 0.15s;
}
.ba-share-btn:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }
/* Neutralise the universal reaction layout spacing, then size the pills up */
.ba-helpful .reaction-container { margin: 0; padding: 0; border: 0; }
.ba-helpful .reaction-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill, 999px);
  background: var(--bg-primary);
  font-size: 0.9375rem;
  font-weight: 500;
}
.ba-helpful .reaction-btn--active { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ═════════════ DISCUSSION ═════════════ */
.ba-discussion {
  margin-top: var(--s-space-7);
  padding-top: var(--s-space-6);
  border-top: 1px solid var(--border-primary);
}
/* The thread itself is styled by components/comments.css (linked by the
 * partial). Only article-specific accents live here: a larger heading
 * (the kicker above replaces its icon) and a dashed empty state. */
.ba-discussion .comments-section > h3 {
  margin: 0 0 var(--s-space-5);
  font-size: 1.5rem;
  line-height: 1.2;
}
.ba-discussion .comments-section > h3 > i { display: none; }
/* page bg is --bg-secondary here, so the count pill needs its own surface */
.ba-discussion .comment-count {
  background: var(--bg-primary);
  box-shadow: inset 0 0 0 1px var(--border-primary);
}
.ba-discussion .empty-comments {
  padding: var(--s-space-6) var(--s-space-4);
  border: 1px dashed var(--border-primary);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--s-text-sm);
}
.ba-discussion .empty-comments i { display: block; margin: 0 auto var(--s-space-2); font-size: 1.75rem; color: var(--brand-primary); }
.ba-discussion .empty-comments p { margin: 0; }
.ba-discussion .empty-comments p:first-of-type { color: var(--text-primary); font-weight: 600; font-size: var(--s-text-base); }

/* ═════════════ CARD RAILS ═════════════ */
.ba-container {
  max-width: var(--s-content-max, 72rem);
  margin-inline: auto;
  padding-inline: var(--s-gutter);
}
.ba-rail-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--border-primary); }
.ba-rail-section--tint { background: var(--bg-primary); }
.ba-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-space-3);
  margin-bottom: var(--s-space-6);
}
.ba-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.ba-section-head p { margin: var(--s-space-1) 0 0; color: var(--text-tertiary); }
.ba-section-head__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-1);
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}
.ba-section-head__link:hover i { transform: translateX(3px); }
.ba-section-head__link i { transition: transform 0.15s; }

.ba-cards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 620px) { .ba-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ba-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ba-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ba-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-50);
  color: var(--brand-primary);
  font-size: 2.25rem;
}
.ba-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ba-card:hover .ba-card__media img { transform: scale(1.05); }
.ba-card__chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill, 999px);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--text-primary);
  font-size: var(--s-text-xs);
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.ba-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-space-2);
  padding: var(--s-space-4) var(--s-space-5) var(--s-space-5);
}
.ba-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.ba-card:hover .ba-card__title { color: var(--brand-primary); }
.ba-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-tertiary);
  font-size: var(--s-text-sm);
  line-height: 1.55;
}
.ba-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-space-2);
  margin-top: auto;
  padding-top: var(--s-space-3);
  color: var(--text-tertiary);
  font-size: var(--s-text-xs);
}
.ba-card__author { color: var(--text-secondary); font-weight: 500; }

/* ═════════════ EXPLORE CTA ═════════════ */
.ba-cta-wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ba-rail-section--tint + .ba-cta-wrap { background: var(--bg-primary); padding-top: 0; }
.ba-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-space-5);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 55%, #0b1f14));
  color: var(--ba-ink);
}
.ba-cta::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  pointer-events: none;
}
.ba-cta__copy { position: relative; max-width: 36rem; }
.ba-cta h2 { margin: 0; color: inherit; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; letter-spacing: -0.015em; }
.ba-cta p { margin: var(--s-space-2) 0 0; opacity: 0.88; line-height: 1.55; }
.ba-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-2);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill, 999px);
  background: #fff;
  color: #14231a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s;
}
.ba-cta__btn:hover { transform: translateY(-2px); }

/* ═════════════ MOBILE DOCK + TOAST ═════════════ */
.ba-dock {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 250;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill, 999px);
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 180%);
  transition: transform 0.25s ease;
}
.ba-dock.is-on { transform: translate(-50%, 0); }
.ba-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.95rem;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: var(--s-text-sm);
  text-decoration: none;
  cursor: pointer;
}
.ba-dock__btn i { font-size: 1.15rem; }
.ba-dock__btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.ba-dock__btn--primary { background: var(--brand-primary); color: var(--text-inverse, #fff); font-weight: 600; }
.ba-dock__btn--primary:hover { background: var(--brand-primary-hover); color: var(--text-inverse, #fff); }
@media (min-width: 1100px) { .ba-dock { display: none; } }
/* The dock carries its own back-to-top; hide the chrome's one where the dock
   shows so the two don't overlap. Scoped with :has() because the index
   page reuses this sheet for its cards. */
@media (max-width: 1099px) { body:has(.ba-dock) #backToTop { display: none !important; } }

.ba-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  padding: var(--s-space-2) var(--s-space-4);
  border-radius: var(--radius-pill, 999px);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: var(--s-text-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.2s, transform 0.2s;
}
.ba-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ba-card, .ba-card__media img, .ba-round, .ba-share-btn, .ba-dock, .ba-toast, .ba-cta__btn { transition: none; }
}
