/* ════════════════════════════════════════════════════════════
   BLOG PAGES — editorial layout utilities
   ════════════════════════════════════════════════════════════ */

.blog-index-hero {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.blog-index-hero__shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  min-height: clamp(22rem, 70vw, 28rem);
  overflow: hidden;
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88));
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-index-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-index-hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.42;
}

.blog-index-hero__orb--primary {
  top: -4rem;
  right: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(56, 189, 248, 0.18);
}

.blog-index-hero__orb--secondary {
  bottom: -2rem;
  left: 28%;
  width: 12rem;
  height: 12rem;
  background: rgba(59, 130, 246, 0.14);
}

.blog-index-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 80%);
}

.blog-index-hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.blog-index-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #bae6fd;
}

.blog-index-hero__headline {
  max-width: 48rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #f8fafc;
}

.blog-index-hero__subtitle {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.9);
}

.blog-index-hero__description {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.92);
}

.blog-index-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.blog-index-hero__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.88);
}

.blog-index-hero__panel {
  position: relative;
  z-index: 1;
  display: none;
}

.blog-index-hero__panel-frame {
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(2, 6, 23, 0.18);
}

.blog-index-hero__panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.blog-index-hero__panel-kicker,
.blog-index-hero__panel-status {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.86);
}

.blog-index-hero__signal-list {
  display: grid;
  gap: 1rem;
}

.blog-index-hero__signal-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.blog-index-hero__signal-key {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.92);
}

.blog-index-hero__signal-bar {
  position: relative;
  display: block;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
}

.blog-index-hero__signal-bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(96, 165, 250, 0.65));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
}

.blog-index-hero__signal-bar--lg::after {
  width: 84%;
}

.blog-index-hero__signal-bar--md::after {
  width: 62%;
}

.blog-index-hero__signal-bar--sm::after {
  width: 46%;
}

.blog-index-hero__panel-card {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.48);
}

.blog-index-hero__panel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.blog-index-hero__panel-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.9);
}

/* ── Sticky category nav with glass effect ─────────────────── */
.blog-cat-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 3.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #f1f5f9;
}

/* ── Hide scrollbar on category scroll strip ───────────────── */
.blog-cat-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-cat-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Blog card: consistent 16:9 editorial image ratio ─────── */
.blog-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.group:hover .blog-card-img img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG INDEX — editorial magazine layout
   Featured + secondary + compact column on desktop
   No linear list; supportive rail and secondary grid below
   ═══════════════════════════════════════════════════════════════ */

.blog-editorial-stage {
  display: grid;
  gap: 1rem;
}

.blog-editorial-stage__heading {
  display: grid;
  gap: 0.45rem;
  max-width: 44rem;
}

.blog-editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f766e;
}

.blog-editorial-intro {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #64748b;
}

.blog-editorial-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-edit-card,
.blog-story-card,
.blog-index-panel,
.blog-index-cta {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.4rem;
  overflow: hidden;
  min-width: 0;
}

.blog-edit-card,
.blog-story-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.blog-edit-card:hover,
.blog-story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.22);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.blog-edit-card__media,
.blog-story-card__media {
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-edit-card__media picture,
.blog-story-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-edit-card__media img,
.blog-story-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-edit-card:hover .blog-edit-card__media img,
.blog-story-card:hover .blog-story-card__media img {
  transform: scale(1.045);
}

.blog-edit-card__body,
.blog-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.blog-edit-card__body {
  padding: 1rem 1rem 1.05rem;
}

.blog-story-card__body {
  padding: 1rem;
}

.blog-edit-card__eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.blog-edit-card__eyebrow--soft {
  margin-bottom: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.blog-edit-card__meta-row,
.blog-story-card__meta,
.blog-edit-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-edit-card__meta-row,
.blog-story-card__meta {
  margin-bottom: 0.65rem;
}

.blog-edit-card__meta {
  margin-top: auto;
  padding-top: 1rem;
}

.blog-edit-card__date {
  flex-shrink: 0;
  font-size: 0.74rem;
  line-height: 1;
  color: var(--orm-text-muted);
  white-space: nowrap;
}

.blog-edit-card__title,
.blog-story-card__title {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.blog-edit-card__title--featured {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.blog-edit-card__title--secondary {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin-bottom: 0.6rem;
}

.blog-edit-card__title--compact {
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
}

.blog-story-card__title {
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
}

.blog-edit-card__excerpt,
.blog-story-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #64748b;
}

.blog-edit-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  transition: color 0.2s ease;
}

.blog-edit-card__action:hover,
.blog-edit-card__action:focus-visible {
  color: #115e59;
}

.blog-edit-card--featured .blog-edit-card__media {
  aspect-ratio: 5 / 4;
}

.blog-edit-card--secondary .blog-edit-card__media {
  aspect-ratio: 4 / 3;
}

.blog-edit-card--compact .blog-edit-card__media,
.blog-story-card__media {
  aspect-ratio: 16 / 10;
}

.blog-index-utility-grid {
  display: grid;
  gap: 1rem;
}

.blog-index-panel {
  padding: 1.1rem;
}

.blog-index-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.blog-index-panel__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orm-text-muted);
}

.blog-index-panel__meta {
  font-size: 0.74rem;
  color: var(--orm-text-muted);
}

.blog-index-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.9rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-index-link:hover,
.blog-index-link:focus-visible {
  background: #f8fafc;
  color: #0f766e;
}

.blog-index-link.is-active {
  background: #ecfeff;
  color: #0f766e;
  font-weight: 700;
}

.blog-index-link__count {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: var(--orm-text-muted);
}

.blog-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-index-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-index-tag:hover,
.blog-index-tag:focus-visible {
  background: #ecfeff;
  color: #0f766e;
}

.blog-index-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(140deg, #0f172a 0%, #134e4a 58%, #0f766e 100%);
  border: none;
  color: #ffffff;
}

.blog-index-cta__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(204, 251, 241, 0.92);
}

.blog-index-cta__title {
  max-width: 24rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
}

.blog-index-cta__body {
  margin-top: 0.7rem;
  margin-bottom: 1.25rem;
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(240, 253, 250, 0.82);
}

.blog-index-cta__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.8rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.2s ease;
}

.blog-index-cta__action:hover,
.blog-index-cta__action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.blog-story-section {
  display: grid;
  gap: 1rem;
}

.blog-story-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-story-section__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.blog-story-section__intro {
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
}

.blog-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-story-card--wide,
.blog-story-card--tall,
.blog-story-card--standard {
  height: 100%;
}

.blog-story-card__body .blog-edit-card__action {
  margin-top: auto;
  padding-top: 0.95rem;
}

@media (min-width: 768px) {
  .blog-index-hero__shell {
    min-height: 24rem;
    padding: 2.25rem 1.75rem;
  }

  .blog-editorial-stage {
    gap: 1.15rem;
  }

  .blog-editorial-grid-v2 {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      "featured featured"
      "secondary compact-a"
      "secondary compact-b";
  }

  .blog-edit-card--featured { grid-area: featured; }
  .blog-edit-card--secondary { grid-area: secondary; }
  .blog-edit-card--compact-a { grid-area: compact-a; }
  .blog-edit-card--compact-b { grid-area: compact-b; }

  .blog-edit-card--featured {
    min-height: 29rem;
  }

  .blog-edit-card--featured .blog-edit-card__media {
    aspect-ratio: 16 / 9;
  }

  .blog-index-utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-index-cta {
    grid-column: 1 / -1;
  }

  .blog-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-story-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .blog-index-hero__shell {
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    align-items: center;
    min-height: 25rem;
    padding: 2.5rem;
  }

  .blog-index-hero__panel {
    display: block;
  }

  .blog-editorial-grid-v2 {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.05fr) minmax(0, 0.82fr);
    grid-template-rows: minmax(15rem, 1fr) minmax(13rem, 1fr);
    grid-template-areas:
      "featured secondary compact-a"
      "featured secondary compact-b";
    align-items: stretch;
  }

  .blog-edit-card--featured,
  .blog-edit-card--secondary,
  .blog-edit-card--compact {
    height: 100%;
  }

  .blog-edit-card--featured .blog-edit-card__media {
    aspect-ratio: unset;
    height: 58%;
  }

  .blog-edit-card--secondary .blog-edit-card__media {
    aspect-ratio: unset;
    height: 46%;
  }

  .blog-edit-card--compact .blog-edit-card__media {
    aspect-ratio: unset;
    height: 48%;
  }

  .blog-index-utility-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .blog-index-cta {
    grid-column: auto;
  }

  .blog-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .blog-story-card--wide {
    grid-column: span 2;
  }

  .blog-story-card--tall .blog-story-card__media {
    aspect-ratio: 4 / 5;
  }
}

/* ── Compact horizontal list card (blog index) ──────────────── */
.blog-list-item {
  display: flex;
  min-height: 4.75rem;
}
.blog-list-thumb {
  display: block;
  width: 6rem;
  flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
}
.blog-list-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.group:hover .blog-list-thumb img {
  transform: scale(1.04);
}
@media (min-width: 640px) {
  .blog-list-thumb {
    width: 8rem;
  }
}

/* ── Featured post image (horizontal card) ─────────────────── */
.blog-feat-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 190px;       /* cap mobile/tablet height — prevents tall image below fold */
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .blog-feat-img {
    aspect-ratio: unset;
    max-height: none;
    min-height: 200px;
    height: 100%;
  }
}
.blog-feat-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.group:hover .blog-feat-img img {
  transform: scale(1.035);
}

/* ── Blog detail hero image ─────────────────────────────────── */
.blog-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  min-height: 220px;
}
@media (max-width: 640px) {
  .blog-hero-img {
    aspect-ratio: 16 / 9;
  }
}
.blog-hero-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Blog article prose typography ─────────────────────────── */
/*
 * !important on font-size, font-weight, color, line-height for headings:
 * Many CMS editors (TinyMCE, CKEditor, Quill) inject inline style attributes
 * like style="font-size:11pt;color:#000" which would override external CSS.
 * The !important declarations here ensure structural hierarchy is always visible
 * regardless of what the CMS stored inside the content field.
 */
.blog-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.85;
}
.blog-prose > * + * { margin-top: 1.25rem; }
/* Quill/some editors emit <div> instead of <p> — give it paragraph rhythm */
.blog-prose > div { margin-bottom: 1.25rem; line-height: 1.85; }
.blog-prose h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.blog-prose h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}
.blog-prose h4 {
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.blog-prose p { margin: 0 0 1.25rem !important; }
.blog-prose a { color: var(--orm-teal); text-decoration: none; }
.blog-prose a:hover { text-decoration: underline; color: var(--orm-teal-dark); }
.blog-prose strong { color: #1e293b; font-weight: 700; }
.blog-prose em { color: #475569; }
.blog-prose ul,
.blog-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-prose ul { list-style-type: disc !important; }
.blog-prose ol { list-style-type: decimal !important; }
/* display:list-item !important — some editors reset li to display:block */
.blog-prose li { margin-bottom: 0.375rem; color: #334155; display: list-item !important; }
.blog-prose blockquote {
  border-left: 3px solid var(--orm-teal);
  background: #f0fdfa;
  border-radius: 0 0.875rem 0.875rem 0;
  padding: 1rem 1.375rem;
  margin: 1.75rem 0;
  color: #475569;
  font-style: normal;
}
.blog-prose blockquote p { margin: 0 !important; }
.blog-prose img { border-radius: 0.875rem; max-width: 100%; height: auto; }
.blog-prose figure { margin: 1.75rem 0; }
.blog-prose figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}
.blog-prose code {
  background: #f0fdfa;
  color: var(--orm-teal-dark);
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}
.blog-prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.375rem 1.5rem;
  border-radius: 0.875rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}
.blog-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}
.blog-prose hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.75rem 0;
}
.blog-prose th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
  padding: 0.625rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  color: #0f172a;
}
.blog-prose td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

/* ── Line clamp utilities (not in all Tailwind bundles) ─────── */
.blog-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Container constrained to 72rem (replaces inline max-width) */
.blog-container {
  max-width: 72rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Article title reading width + overflow guard ───────────── */
.blog-article-title {
  max-width: 48rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Search overlay backdrop (replaces inline backdrop-filter) ─ */
.blog-search-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Sidebar teal gradient CTA ──────────────────────────────── */
.blog-cta-sidebar {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.24);
}

/* ── Main article-end CTA gradient ─────────────────────────── */
.blog-cta-main {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%);
  box-shadow: 0 22px 52px rgba(15, 118, 110, 0.18);
}

/* ── CTA text max-widths ────────────────────────────────────── */
.blog-cta-title {
  max-width: 32rem;
  overflow-wrap: break-word;
}
.blog-cta-body {
  max-width: 34rem;
}

/* ── Ghost button: semi-transparent white on teal bg ────────── */
.blog-btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.blog-btn-ghost:hover,
.blog-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Title overflow guard for all card/article titles ────────── */
.blog-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── Responsive hardening ───────────────────────────────────── */

/* Prevent horizontal overflow on very small viewports */
.blog-cat-nav {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Shrink hero vertical padding on mobile */
@media (max-width: 639px) {
  .blog-index-hero__shell {
    min-height: 23rem;
    padding: 1.25rem 0.95rem;
    border-radius: 1.25rem;
  }

  .blog-index-hero__headline {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .blog-index-hero__subtitle {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .blog-index-hero__description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .blog-index-hero__meta {
    margin-top: 1rem;
  }

  .blog-index-hero__meta-item {
    width: 100%;
    justify-content: center;
    border-radius: 1rem;
    text-align: center;
  }

  .blog-index-hero {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }

  .blog-cat-scroll {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  /* Tighten body section on mobile */
  .blog-body-section {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
  /* CTA blocks reduce padding on mobile */
  .blog-cta-main,
  .blog-cta-sidebar {
    padding: 1.75rem;
  }
  /* Search overlay: start from top on very small screens */
  .blog-search-dialog {
    margin-top: 3.5rem;
  }
}

/* Featured post: compact equal-height image on desktop */
@media (min-width: 1024px) {
  .blog-feat-card {
    min-height: 200px;
  }
  .blog-feat-card .blog-feat-img {
    height: 100%;
  }
}

/* Overflow protection for prose tables on narrow screens */
@media (max-width: 767px) {
  .blog-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .blog-prose th,
  .blog-prose td {
    white-space: normal;
    min-width: 8rem;
  }
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section.bg-slate-50 {
  background-color: transparent !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-cat-nav {
  background: rgba(8, 20, 34, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-cat-nav .bg-slate-100,
.theme-analytee-orm[data-color-scheme="dark"] .blog-cat-nav .bg-slate-200 {
  background: rgba(148, 163, 184, 0.12) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-index-panel,
.theme-analytee-orm[data-color-scheme="dark"] .orm-empty-state-card,
.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section .bg-white.rounded-2xl,
.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section article.bg-white,
.theme-analytee-orm[data-color-scheme="dark"] .blog-index-link.is-active {
  background: rgba(8, 20, 34, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-index-panel__title,
.theme-analytee-orm[data-color-scheme="dark"] .blog-index-panel__meta,
.theme-analytee-orm[data-color-scheme="dark"] .blog-index-link,
.theme-analytee-orm[data-color-scheme="dark"] .blog-index-link__count,
.theme-analytee-orm[data-color-scheme="dark"] .orm-empty-state-card .orm-icon-muted {
  color: #d6e2f0 !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-index-link:hover,
.theme-analytee-orm[data-color-scheme="dark"] .blog-index-link:focus-visible {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #ffffff !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-index-link.is-active {
  color: #7dd3fc !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .orm-empty-state-card p.text-slate-900,
.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section h2.text-slate-900,
.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section h3.text-slate-900 {
  color: var(--orm-text) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .orm-empty-state-card .border-slate-300,
.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section .border-slate-300 {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose > div,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose p,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose li,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose td {
  color: var(--orm-text-secondary);
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose h1,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose h2,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose h3,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose h4,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose strong,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose th {
  color: var(--orm-text) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose a {
  color: #7dd3fc;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose a:hover {
  color: #bae6fd;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose em,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose figcaption {
  color: #d6e2f0;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose blockquote {
  background: rgba(15, 23, 42, 0.72);
  border-left-color: #2dd4bf;
  color: #d6e2f0;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose code {
  background: rgba(15, 23, 42, 0.88);
  color: #99f6e4;
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose pre {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose hr,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose th,
.theme-analytee-orm[data-color-scheme="dark"] .blog-prose td {
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-prose th {
  background: rgba(15, 23, 42, 0.72);
}

.theme-analytee-orm[data-color-scheme="dark"] .blog-body-section a.bg-white,
.theme-analytee-orm[data-color-scheme="dark"] a.bg-white.text-teal-700 {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f766e !important;
}
