/* Editorial blog layout — trust-first, narrow measure, calm hierarchy */

html {
  scroll-padding-top: 5rem;
}

.blog-shell {
  max-width: 1200px;
  margin: 0 auto;
  /* Less bottom cushion before shared footer chrome (parity with site-main + US calculator page) */
  padding: 2rem 1.25rem clamp(60px, 8vw, 88px);
}

/* Article + right rail (desktop): main column left-weighted, narrow discovery rail */
.blog-shell--article {
  max-width: 1320px;
  padding-left: clamp(0.92rem, 2.7vw, 1.88rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.blog-shell--article-reading {
  padding-top: 1.55rem;
}

.blog-shell--article-reading .article-page-grid {
  grid-template-columns: 1fr;
  gap: 1.9rem 0;
}

.blog-shell--article-reading .article-main .article-layout {
  max-width: min(900px, 100%);
}

.blog-shell--article-related {
  padding-top: 1.6rem;
}

.blog-shell--article-related .article-page-grid {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 190px);
  gap: 2rem 1.55rem;
}

.blog-shell--article-related .article-main .article-layout {
  max-width: min(900px, 100%);
  margin-left: 0;
}

@media (min-width: 961px) {
  .blog-shell--article-related {
    /* Optical centering: nudge the whole article shell right on desktop */
    padding-left: calc(clamp(0.92rem, 2.7vw, 1.88rem) + clamp(24px, 2vw, 36px));
  }
}

.article-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 170px);
  gap: 2rem 1.35rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-main .article-layout {
  max-width: min(860px, 100%);
  margin: 0;
}

.blog-shell--article .article-main .article-layout {
  margin-left: -3px;
}

.blog-shell--article-reading .article-main .article-layout {
  margin-left: 0;
}

.article-rail {
  min-width: 0;
}

.article-rail--lite .article-rail__inner {
  top: 2.05rem;
  overflow-x: clip;
}

.rail-lite {
  margin-top: calc(0.45rem + 32px);
  margin-left: 0;
  padding: 0.12rem 0 0.1rem 0;
  background: transparent;
  border-radius: 0;
}

@media (min-width: 961px) {
  .article-rail--lite {
    margin-left: -16px;
  }
}

.rail-lite__title {
  margin: 0 0 0.56rem;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1f2937;
}

.rail-lite__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.62rem;
  border-left: 2px solid #1f7f99;
}

.rail-lite__list li {
  margin: 0 0 0.45rem;
}

.rail-lite__list li:last-child {
  margin-bottom: 0;
}

.rail-lite__list a {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 550;
  line-height: 1.35;
  color: #1f6f8a;
  white-space: normal;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}


.rail-lite__list a:hover {
  color: #16556a;
  border-bottom-color: #9bc2ce;
}

.rail-lite__list a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

.article-rail__inner {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.35rem;
  scrollbar-gutter: stable;
}

.article-rail__inner::-webkit-scrollbar {
  width: 5px;
}

.article-rail__inner::-webkit-scrollbar-thumb {
  background: #d8dee6;
  border-radius: 4px;
}

.article-rail__inner::-webkit-scrollbar-track {
  background: transparent;
}

/* Legacy card rail (e.g. other blog articles): bordered link tiles */
.article-rail__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.rail-cards {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.rail-card {
  display: block;
  padding: 0.5rem 0.62rem;
  border-radius: 8px;
  border: 1px solid #e8ecf0;
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: none;
}

.rail-card:hover {
  border-color: #d1d9e0;
  background: #f4f6f8;
}

.rail-card:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.rail-card__kicker {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a8b0ba;
  margin-bottom: 0.12rem;
}

.rail-card__title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 0.18rem;
}

.rail-card__desc {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.38;
}

/* Unified companion rail (single panel, internal sections) */
.article-rail__panel {
  border: 1px solid #e5eaef;
  border-radius: 11px;
  background: #fbfcfd;
  padding: 0.72rem clamp(10px, 2.2vw, 14px) 0.85rem;
}

.article-rail__intro {
  font-size: 0.73rem;
  line-height: 1.42;
  color: #64748b;
  margin: 0 0 0.62rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid #eef1f5;
}

.rail-section + .rail-section {
  margin-top: 0.62rem;
  padding-top: 0.62rem;
  border-top: 1px solid #eef1f5;
}

.rail-section__title {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #8d9bab;
  margin: 0 0 0.38rem;
}

.rail-section__lede {
  font-size: 0.69rem;
  line-height: 1.38;
  color: #7c8a99;
  margin: 0 0 0.38rem;
}

.rail-section__text {
  font-size: 0.73rem;
  line-height: 1.52;
  color: #64748b;
  margin: 0 0 0.42rem;
}

.rail-section__text:last-child {
  margin-bottom: 0;
}

.rail-section__action {
  margin: 0;
}

.rail-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-linklist li + li {
  border-top: 1px solid #f0f3f7;
}

.rail-linklist__link {
  display: block;
  padding: 0.4rem 0.28rem 0.44rem;
  margin: 0 -0.28rem;
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.14s ease;
}

.rail-linklist__link:hover {
  background: rgba(241, 245, 249, 0.72);
}

.rail-linklist__link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-radius: 7px;
}

.rail-linklist__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.28;
}

.rail-linklist__hint {
  display: block;
  font-size: 0.67rem;
  font-weight: 400;
  color: #8898a8;
  line-height: 1.42;
  margin-top: 0.08rem;
}

.rail-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.74rem;
  color: #5d6c7c;
  line-height: 1.55;
}

.rail-list li {
  margin-bottom: 0.26rem;
}

.rail-list li:last-child {
  margin-bottom: 0;
}

.rail-list--compact li {
  margin-bottom: 0.18rem;
}

.rail-inline-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #dbeafe;
}

.rail-inline-link:hover {
  color: #1e293b;
  border-bottom-color: #bfdbfe;
}

.rail-inline-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

.rail-follow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-follow li {
  margin-bottom: 0.28rem;
}

.rail-follow li:last-child {
  margin-bottom: 0;
}

.rail-follow a {
  font-size: 0.73rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
}

.rail-follow a:hover {
  color: #1e293b;
  border-bottom-color: #cbd5e1;
}

.rail-follow a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

.rail-section--tail .rail-section__text {
  margin-bottom: 0.45rem;
}

.article-rail__panel--compact {
  padding: 0.52rem clamp(10px, 2.2vw, 14px) 0.62rem;
}

.article-rail__panel--compact .rail-section + .rail-section {
  margin-top: 0.38rem;
  padding-top: 0.38rem;
}

.article-rail__panel--compact .rail-linklist__link {
  padding: 0.3rem 0.2rem 0.34rem;
}

.article-rail__panel--compact .rail-list li {
  margin-bottom: 0.18rem;
}

.rail-section__foot {
  margin: 0.32rem 0 0;
  font-size: 0.67rem;
  line-height: 1.42;
  color: #94a3b8;
}

.rail-section__foot a {
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
}

.rail-section__foot a:hover {
  color: #334155;
  border-bottom-color: #cbd5e1;
}

.rail-section__foot a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 960px) {
  .article-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-rail__inner {
    position: static;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    padding-bottom: 0;
  }

  .article-rail {
    padding-top: 0.25rem;
    border-top: 1px solid #e5e7eb;
  }

  .blog-shell--article-related .article-rail--lite {
    display: none;
  }
}

.blog-index-header {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
}

.blog-index-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.blog-index-header .lede {
  font-size: 1.03rem;
  line-height: 1.62;
  color: #4b5563;
  /* ~1000px: uses shell width on desktop without a narrow column gap on the right */
  max-width: min(62.5rem, 100%);
  width: 100%;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f1f5f9;
  display: block;
}

.blog-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.blog-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: #4b5563;
  flex: 1;
  line-height: 1.5;
}

.blog-card-dates {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Article layout */
.article-layout {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  display: block;
  margin: 0;
  padding: 0;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: baseline;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.article-meta-row .sep {
  color: #cbd5e1;
}

.article-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.article-layout h1 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.article-dek {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.45;
}

/* Lighter trust metadata strip (replaces heavy 3-card grid) */
.trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  padding: 0.55rem 0 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.trust-meta strong {
  color: #475569;
  font-weight: 600;
}

.trust-meta__sep {
  color: #cbd5e1;
  user-select: none;
}

.trust-meta__item strong {
  margin-right: 0.2rem;
}

/* Legacy class: keep rules if older pages use .trust-strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #475569;
}

.trust-strip dt {
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.trust-strip dd {
  margin: 0;
  line-height: 1.35;
}

/* Rhythm variants */
.article-summary {
  padding: 0.75rem 0.9rem;
  margin: 0 0 1.15rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  color: #334155;
}

.article-summary h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.45rem;
}

.article-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.article-summary li {
  margin-bottom: 0.3rem;
}

/* Minimal “In one pass” — left rule only, no full card (article pages that opt in) */
.article-lede {
  margin: 0 0 0.92rem;
  padding: 0.05rem 0 0.02rem 0.62rem;
  border-left: 2px solid #d7dee8;
  background: transparent;
}

.article-lede__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #7b8794;
  margin: 0 0 0.22rem;
}

.article-lede ul {
  margin: 0;
  padding-left: 1rem;
  color: #334155;
  line-height: 1.58;
}

.article-lede li {
  margin-bottom: 0.18rem;
}

.pattern-what-matters {
  margin: 1rem 0 1.15rem;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  font-size: 0.92rem;
  color: #1e3a5f;
}

.pattern-what-matters h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.28rem;
  color: #1d4ed8;
}

.pattern-what-matters p {
  margin: 0 0 0.32rem;
}

.pattern-what-matters p.pattern-what-matters__tail {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.pattern-mistake {
  margin: 1rem 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #78350f;
}

.pattern-mistake strong {
  color: #92400e;
}

.pattern-compare {
  margin: 1rem 0 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #374151;
}

.pattern-compare h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: #475569;
}

.pattern-compare--frames .pattern-frames__lede {
  margin: 0 0 0.65rem;
}

.pattern-compare--frames .pattern-frames__para {
  margin: 0 0 0.5rem;
}

.pattern-compare--frames .pattern-frames__para--last {
  margin-bottom: 0;
}

.pattern-compare__bridge {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #64748b;
}

.article-prose .article-inline-list {
  margin-bottom: 0.95rem;
}

.article-prose .article-inline-list li {
  margin-bottom: 0.42rem;
}

.article-prose .checklist-offers {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: #374151;
}

.article-prose .checklist-offers li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

.article-hero {
  margin: 0 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f1f5f9;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Article pages: hero after title block — one figure, no gray mat, no double frame */
.blog-shell--article .article-hero {
  margin-top: clamp(18px, 1.8vw, 24px);
  margin-bottom: clamp(24px, 2.4vw, 30px);
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 10px;
  overflow: hidden;
}

.blog-shell--article .article-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
}

.toc {
  padding: 0.75rem 0.95rem 0.85rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  margin-bottom: 1.45rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.toc h2 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.35rem;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.42;
}

.toc li {
  padding: 0.26rem 0;
}

.toc li::marker {
  color: #e2e8f0;
  font-weight: 400;
}

.toc a {
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.toc a:hover {
  color: #1e293b;
  border-bottom-color: #cbd5e1;
}

.toc a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Collapsible TOC: short spine visible, rest behind native <details> */
.toc.toc--collapsible {
  padding: 0.5rem 0.62rem 0.55rem;
  margin-bottom: 1.05rem;
}

.toc.toc--collapsible h2 {
  margin-bottom: 0.32rem;
  font-size: 0.68rem;
}

.toc.toc--collapsible .toc__primary,
.toc.toc--collapsible .toc__more-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #475569;
}

.toc.toc--collapsible .toc__primary li,
.toc.toc--collapsible .toc__more-list li {
  padding: 0.12rem 0;
}

.toc.toc--collapsible .toc__details {
  margin-top: 0.32rem;
  padding-top: 0.32rem;
  border-top: 1px solid #eef1f5;
}

.toc.toc--collapsible .toc__summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  padding: 0.18rem 0 0.12rem;
  user-select: none;
}

.toc.toc--collapsible .toc__summary::marker {
  display: none;
}

.toc.toc--collapsible .toc__summary::-webkit-details-marker {
  display: none;
}

.toc.toc--collapsible .toc__summary::after {
  content: " \203A";
  font-weight: 400;
  color: #94a3b8;
}

.toc.toc--collapsible .toc__details[open] .toc__summary::after {
  content: " \2039";
}

.toc.toc--collapsible .toc__summary:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 3px;
}

.toc.toc--collapsible .toc__more-list {
  margin-top: 0.28rem;
}

.article-prose {
  font-size: 0.98rem;
  color: #374151;
}

.article-prose > p {
  margin-bottom: 0.85rem;
}

/* Article pages (blog guides): wider measure, editorial rhythm, softer helper chrome */
.blog-shell--article .article-prose {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #374151;
}

.blog-shell--article .article-prose > p {
  margin-bottom: 0.92rem;
}

.blog-shell--article .article-prose > h2 {
  margin-top: 1.72rem;
  margin-bottom: 0.68rem;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.blog-shell--article .article-prose > h2:first-child {
  margin-top: 0.45rem;
}

.blog-shell--article .article-prose > h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.48rem;
}

.blog-shell--article .article-dek {
  font-size: 1.06rem;
  line-height: 1.58;
  color: #566172;
  max-width: none;
  width: 100%;
  margin-bottom: calc(1rem + 5px);
}

.blog-shell--article .article-header {
  width: 100%;
  max-width: none;
}

.blog-shell--article .article-layout h1 {
  width: 100%;
  max-width: none;
}

.blog-shell--article .trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.5rem;
  align-items: baseline;
  padding: 0.42rem 0 0.7rem;
  margin-bottom: 0;
  border-bottom-color: #edf1f5;
}

.blog-shell--article .trust-meta__item {
  line-height: 1.5;
  color: #5f6b7b;
  font-size: 0.82rem;
}

.blog-shell--article .trust-meta__item strong {
  color: #7b8491;
  font-weight: 600;
}

.blog-shell--article .trust-meta--structured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 1rem;
  row-gap: 0.28rem;
  align-items: start;
}

.blog-shell--article .trust-meta--structured .trust-meta__scope {
  grid-column: 1 / -1;
}

.blog-shell--article .trust-meta--structured .trust-meta__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: baseline;
  justify-content: start;
}

@media (max-width: 700px) {
  .blog-shell--article .trust-meta--structured .trust-meta__row {
    grid-template-columns: 1fr;
    row-gap: 0.1rem;
  }
}

.blog-shell--article .article-prose ul,
.blog-shell--article .article-prose ol {
  line-height: 1.56;
}

.blog-shell--article .mini-table th,
.blog-shell--article .mini-table td {
  border: 1px solid #e0e4e8;
}

.blog-shell--article .rail-linklist__hint {
  line-height: 1.42;
}

.blog-shell--article .rail-linklist__label {
  font-size: 0.76rem;
}

.blog-shell--article .rail-section__text,
.blog-shell--article .rail-section__foot {
  color: #7a8696;
}

.blog-shell--article .rail-section__text {
  line-height: 1.46;
}

.blog-shell--article .toc {
  background: #fbfcfd;
  border: 1px solid #eef2f6;
  box-shadow: none;
  margin-bottom: 1.2rem;
}

.blog-shell--article .toc.toc--full {
  margin-bottom: 0.92rem;
  padding: 0.42rem 0.56rem 0.48rem;
}

.blog-shell--article .toc.toc--full h2 {
  margin-bottom: 0.24rem;
  letter-spacing: 0.055em;
  font-size: 0.68rem;
}

.blog-shell--article .toc.toc--full .toc__full-list {
  margin: 0;
  padding-left: 1.2rem;
  column-count: 2;
  column-gap: 1.38rem;
  font-size: 0.81rem;
  line-height: 1.36;
}

.blog-shell--article .toc.toc--full .toc__full-list li {
  break-inside: avoid;
  padding: 0.1rem 0;
}

.blog-shell--article .toc.toc--full .toc__full-list li::marker {
  color: #8694a8;
  font-weight: 600;
}

.blog-shell--article .toc.toc--full a {
  color: #475569;
}

@media (max-width: 900px) {
  .blog-shell--article .toc.toc--full .toc__full-list {
    column-count: 1;
  }
}

.blog-shell--article .article-lede ul {
  font-size: 1.02rem;
}

.blog-shell--article .pattern-compare {
  margin: 0.78rem 0 0.92rem;
}

.blog-shell--article .pattern-mistake {
  margin: 0.82rem 0;
}

.blog-shell--article .mini-table-wrap {
  margin: 0.58rem 0 0.95rem;
}

.blog-shell--article .inline-figure {
  border-color: #eceff3;
}

/* "What tends to matter most" table: article-style comparison block */
.blog-shell--article-related #what-matters-most + p {
  margin-bottom: 0.5rem;
}

.blog-shell--article-related .mini-table-wrap--comparison {
  margin-top: 0.46rem;
  margin-bottom: 1.14rem;
}

.blog-shell--article-related .mini-table-wrap--comparison .mini-table {
  font-size: 0.875rem;
  table-layout: fixed;
}

.blog-shell--article-related .mini-table-wrap--comparison .mini-table th:first-child,
.blog-shell--article-related .mini-table-wrap--comparison .mini-table td:first-child {
  width: 23%;
  font-weight: 600;
  color: #334155;
}

.blog-shell--article-related .mini-table-wrap--comparison .mini-table th:last-child,
.blog-shell--article-related .mini-table-wrap--comparison .mini-table td:last-child {
  width: 77%;
}

.blog-shell--article-related .mini-table-wrap--comparison .mini-table th {
  background: #f6f8fb;
  color: #3f4d60;
  font-weight: 650;
}

.blog-shell--article-related .mini-table-wrap--comparison .mini-table td,
.blog-shell--article-related .mini-table-wrap--comparison .mini-table th {
  padding: 0.4rem 0.56rem;
  line-height: 1.43;
  border-color: #e8edf3;
}

/* Bridge into housing section: keep image present, but less visually heavy */
.blog-shell--article-related #housing + p {
  margin-bottom: 0.64rem;
}

.blog-shell--article-related .inline-figure--housing {
  margin-top: 0.54rem;
  margin-bottom: 0.88rem;
}

.blog-shell--article-related .inline-figure--transit {
  margin-top: 0.46rem;
  margin-bottom: 0.9rem;
}

.blog-shell--article-related #utilities {
  margin-top: 1.52rem;
}

.blog-shell--article-related #transport + p {
  margin-bottom: 0.72rem;
}

/* NY article: food + discretionary — brisk short sections (tighter title↔body, tighter pair) */
.blog-shell--article-related .article-prose > h2#food,
.blog-shell--article-related .article-prose > h2#lifestyle {
  margin-bottom: 0.36rem;
}

.blog-shell--article-related .article-prose > h2#food + p {
  margin-bottom: 0.46rem;
}

.blog-shell--article-related .article-prose > h2#food + p + h2#lifestyle {
  margin-top: 0.72rem;
}

.blog-shell--article-related .article-prose > h2#lifestyle + p {
  margin-bottom: 1.24rem;
}

/* NY article: into “Who feels…” + out of bullets — calmer transitions */
.blog-shell--article-related .article-prose > h2#pressure-first {
  margin-top: 2.02rem;
}

.blog-shell--article-related .article-prose > h2#pressure-first + p {
  margin-bottom: 0.74rem;
}

.blog-shell--article-related .article-prose > h2#pressure-first + p + ul.article-inline-list {
  margin-top: 0;
  margin-bottom: 1.18rem;
}

.blog-shell--article-related .article-prose > h2#pressure-first + p + ul.article-inline-list li {
  margin-bottom: 0.5rem;
  line-height: 1.62;
}

.blog-shell--article-related .article-prose > h2#pressure-first + p + ul.article-inline-list li:last-child {
  margin-bottom: 0;
}

.blog-shell--article-related .article-prose > h2#offer-checklist {
  margin-top: 1.88rem;
}

.blog-shell--article-related .article-prose .checklist-offers__lede {
  margin-bottom: 0.62rem;
}

/* Native 1–5 markers kept for semantics; outside markers + padding for wrap alignment */
.blog-shell--article-related .article-prose .checklist-offers {
  margin-top: 0.12rem;
  margin-bottom: 1.12rem;
  padding-left: 1.9rem;
  list-style-position: outside;
}

.blog-shell--article-related .article-prose .checklist-offers li {
  margin: 0 0 0.62rem;
  padding-left: 0.42rem;
  line-height: 1.62;
}

.blog-shell--article-related .article-prose .checklist-offers li::marker {
  font-weight: 550;
  color: #64748b;
}

.blog-shell--article-related .article-prose .checklist-offers li:last-child {
  margin-bottom: 0;
}

/* NY article: slightly softer label emphasis in pressure bullets + offer checklist (still strong, less “sticky note”) */
.blog-shell--article-related .article-prose > h2#pressure-first + p + ul.article-inline-list strong,
.blog-shell--article-related .article-prose .checklist-offers strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .blog-shell--article .article-main .article-layout {
    margin-left: 0;
  }
}

.blog-shell--article .article-summary {
  border: 1px solid #edf0f4;
  background: #fafbfc;
  margin-bottom: 1.25rem;
}

.blog-shell--article .pattern-what-matters {
  border-color: #dfeaf8;
  background: #f9fbfd;
  margin-top: 0.86rem;
}

/* NY page: tighten this callout block rhythm with stronger specificity */
.blog-shell--article-related .pattern-what-matters {
  padding-top: 0.42rem !important;
  padding-bottom: 0.52rem !important;
}

.blog-shell--article-related .pattern-what-matters h3 {
  margin-top: 0 !important;
  margin-bottom: 0.2rem !important;
}

.blog-shell--article-related .pattern-what-matters p {
  margin-bottom: 0.2rem !important;
}

.blog-shell--article .pattern-compare {
  border-color: #eef2f6;
  background: #fbfcfd;
}

/* Comparison modules: tighter internal rhythm, clearer grouping, cleaner table hierarchy */
.blog-shell--article-related .article-prose .pattern-compare {
  margin: 0.86rem 0 1.02rem;
  padding: 0.5rem 0.8rem 0.56rem;
}

.blog-shell--article-related .article-prose .pattern-compare + .pattern-compare {
  margin-top: 1.08rem;
}

.blog-shell--article-related .article-prose .pattern-compare h3 {
  margin-top: 0 !important;
  margin-bottom: 0.3rem !important;
  line-height: 1.3;
}

.blog-shell--article-related .article-prose .pattern-compare--frames .pattern-frames__lede {
  margin-bottom: 0.44rem;
}

.blog-shell--article-related .article-prose .pattern-compare--frames .pattern-frames__para {
  margin-bottom: 0.34rem;
}

.blog-shell--article-related .article-prose .pattern-compare--frames .pattern-frames__para--last {
  margin-bottom: 0;
}

.blog-shell--article-related .article-prose .pattern-compare__bridge {
  margin-bottom: 0.42rem;
  font-size: 0.86rem;
  color: #58667a;
}

.blog-shell--article-related .article-prose .pattern-compare .mini-table {
  font-size: 0.86rem;
}

.blog-shell--article-related .article-prose .pattern-compare .mini-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
}

.blog-shell--article-related .article-prose .pattern-compare .mini-table td,
.blog-shell--article-related .article-prose .pattern-compare .mini-table th {
  padding: 0.4rem 0.52rem;
}

/* NY “Comparing…” section: prose flow after the main frames block — prompts + light note, no extra boxes */
.blog-shell--article-related .article-prose #comparing ~ .compare-prompt-lede {
  margin-top: 1.05rem;
  margin-bottom: 0.38rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #5c6675;
}

.blog-shell--article-related .article-prose #comparing ~ .compare-prompt-list {
  margin: 0 0 0.95rem;
  padding-left: 1.15rem;
  font-size: 0.96rem;
  line-height: 1.58;
  color: #3f4a59;
}

.blog-shell--article-related .article-prose #comparing ~ .compare-prompt-list li {
  margin-bottom: 0.38rem;
}

.blog-shell--article-related .article-prose #comparing ~ .compare-prompt-list li:last-child {
  margin-bottom: 0;
}

.blog-shell--article-related .article-prose #comparing ~ .compare-prompt-list strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-shell--article-related .article-prose #comparing ~ .article-editor-note {
  margin: 0.15rem 0 0.35rem;
  padding: 0.35rem 0 0.35rem 0.72rem;
  border-left: 2px solid #e2e8f0;
  max-width: 52rem;
  font-size: 0.9rem;
  line-height: 1.58;
  color: #64748b;
  background: transparent;
}

.blog-shell--article-related .article-prose #comparing ~ .article-editor-note .article-editor-note__label {
  font-weight: 600;
  color: #5d6b7e;
}

.blog-shell--article .pattern-mistake {
  border-left-width: 3px;
}

.blog-shell--article .callout {
  background: #f3f7ff;
  border-left-color: #93c5fd;
  font-size: 0.95rem;
  line-height: 1.52;
}

.blog-shell--article .cta-calculator {
  border-color: #e8ecf2;
  background: linear-gradient(180deg, #fafbfc 0%, #f6f8fb 100%);
}

.blog-shell--article .article-conclusion {
  border-color: #eef1f4;
  box-shadow: none;
}

/* NY article tail: single light next-step strip (replaces stacked conclusion + CTA boxes) */
.blog-shell--article-related .article-tail-next {
  margin: 0.72rem 0 0.48rem;
  padding: 0.58rem 0 0.62rem;
  border-top: 1px solid #eef2f6;
}

.blog-shell--article-related .article-prose .article-tail-next h3.article-tail-next__title {
  margin: 0 0 0.34rem;
  font-size: 0.72rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #657487;
}

.blog-shell--article-related .article-tail-next__body,
.blog-shell--article-related .article-tail-next__action {
  margin: 0 0 0.42rem;
  font-size: 0.93rem;
  line-height: 1.58;
  color: #475569;
}

.blog-shell--article-related .article-tail-next__action {
  margin-bottom: 0;
  color: #4b5c6e;
}

.blog-shell--article-related .faq-bridge {
  margin: 0.28rem 0 0.12rem;
  font-size: 0.86rem;
  color: #6b7788;
  line-height: 1.5;
}

.blog-shell--article-related .faq-block {
  margin-top: 0.62rem;
  padding-top: 0.72rem;
  border-top-color: #edf1f5;
}

.blog-shell--article-related .faq-block h2 {
  margin-top: 0;
  margin-bottom: 0.48rem;
  font-size: 1.06rem;
  font-weight: 600;
  color: #1e293b;
}

.blog-shell--article-related .faq-block details {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.34rem;
  border: 1px solid #eef1f5;
  border-radius: 7px;
  background: #fdfefe;
}

.blog-shell--article-related .faq-block summary {
  font-weight: 550;
  color: #334155;
  line-height: 1.32;
}

/* NY: lightweight disclosure (default collapsed) */
.blog-shell--article-related .article-disclosure {
  margin: 0.78rem 0 0.42rem;
  padding: 0.55rem 0 0;
  border-top: 1px solid #f0f2f5;
  font-size: 0.84rem;
  color: #64748b;
}

.blog-shell--article-related .article-disclosure > summary {
  cursor: pointer;
  font-weight: 550;
  color: #6b7c8e;
  list-style-position: outside;
}

.blog-shell--article-related .article-disclosure > summary::-webkit-details-marker {
  color: #94a3b8;
}

.blog-shell--article-related .article-disclosure__inner {
  padding: 0.42rem 0 0.08rem;
  max-width: 48rem;
}

.blog-shell--article-related .article-disclosure__inner p {
  margin: 0 0 0.4rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #6b7788;
}

.blog-shell--article-related .article-disclosure__inner p:last-child {
  margin-bottom: 0;
}

/* NY: minimal related reading (no card list) */
.blog-shell--article-related .related-lite {
  margin: 0.72rem 0 1.05rem;
  padding: 0.55rem 0 0;
  border-top: 1px solid #f1f3f6;
  display: none;
}

.blog-shell--article-related .related-lite h2.related-lite__heading {
  margin: 0 0 0.38rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #7a8696;
  line-height: 1.35;
}

.blog-shell--article-related .related-lite__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.56rem;
  border-left: 2px solid #d7e1ea;
}

.blog-shell--article-related .related-lite__list li {
  margin: 0 0 0.4rem;
  padding: 0;
}

.blog-shell--article-related .related-lite__list li:last-child {
  margin-bottom: 0;
}

.blog-shell--article-related .related-lite__list a {
  font-size: 1.06rem;
  font-weight: 500;
  color: #2f3f52;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 0.18em;
}

.blog-shell--article-related .related-lite__list a:hover {
  color: #1e293b;
  text-decoration-color: #94a3b8;
}

.blog-shell--article-related .related-lite__hint {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.86rem;
  font-weight: 400;
  color: #8a97a6;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .blog-shell--article-related .related-lite {
    display: block;
  }
}

.blog-shell--article .faq-block {
  border-top-color: #eef1f4;
}

.blog-shell--article .sources-section {
  background: #fafbfc;
  border-color: #eceff3;
}

.blog-shell--article .related-section {
  border-top-color: #eceff3;
}

.blog-shell--article .related-links {
  border-color: #edf0f4;
  background: #fafbfc;
}

.blog-shell--article .trust-meta {
  border-bottom-color: #eceff3;
}

.article-prose a {
  color: #334155;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 0.2em;
  transition: color 0.12s ease, text-decoration-color 0.12s ease;
}

.article-prose a:hover {
  color: #1e293b;
  text-decoration-color: #94a3b8;
}

.article-prose a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

.article-prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 1.75rem 0 0.6rem;
  scroll-margin-top: 5rem;
}

.article-prose h3 {
  font-size: 1.03rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.25rem 0 0.45rem;
  scroll-margin-top: 5rem;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 0.9rem 1.2rem;
}

.article-prose li {
  margin-bottom: 0.35rem;
}

.callout {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.inline-figure {
  margin: 1rem 0 1.05rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
}

.inline-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.inline-figure figcaption {
  font-size: 0.78rem;
  color: #64748b;
  padding: 0.42rem 0.65rem 0.5rem;
  background: #f9fafb;
  border-top: 1px solid #f1f5f9;
}

/* NY article: enforce uniform in-body supporting image system */
.blog-shell--article-related .article-prose figure.inline-figure {
  margin: 0.95rem 0 1rem !important;
}

.blog-shell--article-related .article-prose figure.inline-figure > img {
  display: block;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center 45% !important;
}

.blog-shell--article-related .article-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.blog-shell--article-related .article-prose figure.inline-figure figcaption {
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 0.36rem 0.62rem 0.4rem;
}

.mini-table-wrap {
  overflow-x: auto;
  margin: 0.72rem 0 1.05rem;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.mini-table th,
.mini-table td {
  border: 1px solid #e2e6eb;
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.mini-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.cta-calculator {
  margin: 1.15rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f6f9 100%);
  border: 1px solid #e4e9ef;
}

.cta-calculator h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.cta-calculator p {
  font-size: 0.93rem;
  color: #475569;
  margin-bottom: 0.65rem;
}

.cta-calculator a,
.cta-calculator .cta-calculator__btn {
  display: inline-block;
  background: #3b82f6;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.48rem 0.92rem;
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.cta-calculator a:hover,
.cta-calculator .cta-calculator__btn:hover {
  background: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.cta-calculator a:focus-visible,
.cta-calculator .cta-calculator__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.cta-calculator .cta-calculator__note {
  font-size: 0.8rem;
  color: #64748b;
  margin: calc(0.5rem + 5px) 0 0;
  line-height: 1.45;
}

.article-conclusion {
  margin: 1.6rem 0 0.95rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 70%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.article-conclusion h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.article-conclusion p {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.58;
}

.faq-block {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e8ecf0;
}

.faq-block h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: #111827;
}

.faq-block details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.45rem;
  background: #fff;
}

.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
}

.faq-block details[open] summary {
  margin-bottom: 0.35rem;
}

.sources-section {
  margin-top: 1.35rem;
  padding: 0.95rem 1rem;
  background: #fafafa;
  border: 1px solid #eceff2;
  border-radius: 10px;
  font-size: 0.89rem;
  color: #4b5563;
}

.sources-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: #111827;
}

.related-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.related-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.related-section--list {
  margin-top: 1.6rem;
  padding-top: 1.05rem;
  border-top-color: #e8ecf0;
}

.related-section--list h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
  color: #334155;
}

.related-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #eceff2;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
}

.related-links li {
  border-bottom: 1px solid #eef1f4;
}

.related-links li:last-child {
  border-bottom: none;
}

.related-links a {
  display: block;
  padding: 0.52rem 0.75rem;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.12s ease;
}

.related-links a:hover {
  background: #f4f6f8;
}

.related-links a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.related-links__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.related-links__meta {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.12rem;
  line-height: 1.38;
}

.article-companion {
  margin-top: 1.15rem;
}

.article-companion__takeaway {
  margin: 0.62rem 0 0;
  font-size: 0.9rem;
  line-height: 1.52;
  color: #475569;
}

.blog-shell--article-reading .article-eyebrow {
  margin-top: 0.05rem;
}

.related-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.related-mini a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.related-mini a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.placeholder-card {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .blog-shell {
    padding: 1.25rem 1rem clamp(60px, 8vw, 88px);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .related-mini {
    grid-template-columns: 1fr;
  }
}

/* Explainer articles (hero-only): slightly more vertical rhythm without body images */
.blog-shell--article-related .article-layout--explainer .article-prose > .mini-table-wrap--comparison {
  margin-top: 0.52rem;
  margin-bottom: 1.32rem;
}

.blog-shell--article-related .article-layout--explainer .article-prose > .pattern-what-matters {
  margin-top: 0.72rem;
  margin-bottom: 1.05rem;
}

.blog-shell--article-related .article-layout--explainer .article-prose > .pattern-compare {
  margin-top: 0.95rem;
  margin-bottom: 1.05rem;
}

.blog-shell--article-related .article-layout--explainer .article-prose .compare-prompt-lede {
  margin-top: 0.35rem;
}

.blog-shell--article-related .article-layout--explainer .article-prose .article-editor-note {
  margin-top: 0.58rem;
  margin-bottom: 0.42rem;
}

.blog-shell--article-related .article-layout--explainer .article-prose > .checklist-offers {
  margin-bottom: 0.62rem;
}

.blog-shell--article-related .article-layout--explainer .faq-bridge {
  margin-top: 0.48rem;
  margin-bottom: 0.18rem;
}

.blog-shell--article-related .article-layout--explainer .article-disclosure {
  margin-top: 0.95rem;
}

.blog-shell--article-related .article-layout--explainer .related-lite {
  margin-top: 0.88rem;
}

/* ——— Blog article pages only: fixed nav stack (js adds html/body.gst-blog-article; avoids :has + overflow-x sticky bugs) ——— */

html.gst-blog-article {
  scroll-padding-top: calc(var(--gst-blog-sticky-stack-height, 5.75rem) + 0.45rem);
}

/* Fixed navbar: body overflow-x:hidden breaks sticky in Safari; fixed keeps bar visible */
body.gst-blog-article > .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10020;
  padding: 0.5rem 0 0;
  box-sizing: border-box;
}

body.gst-blog-article > .navbar > .nav-container {
  position: relative;
  z-index: 2;
}

body.gst-blog-article > main.blog-shell--article {
  padding-top: calc(var(--gst-blog-sticky-stack-height, 5.75rem) + 1.15rem);
}

body.gst-blog-article > .navbar > .article-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.12);
}

.article-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: #34a853;
}

@media (prefers-reduced-motion: no-preference) {
  .article-progress__bar {
    transition: transform 0.08s ease-out;
  }
}

/* Desktop / tablet: rail clears sticky nav + progress stack */
@media (min-width: 961px) {
  .blog-shell--article .article-rail__inner {
    position: sticky;
    top: calc(var(--gst-blog-sticky-stack-height, 5.75rem) + 0.65rem);
    align-self: flex-start;
    max-height: calc(100vh - var(--gst-blog-sticky-stack-height, 5.75rem) - 1.5rem);
  }
}
