/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BLOG — PREMIUM EDITORIAL DESIGN SYSTEM v5
   Exactlly website · blog.css
   ─────────────────────────────────────────────────────────
   Layout spine: 840px — hero · cover · canvas · faq · related
   Design: calm · enterprise SaaS · premium editorial
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* ── LAYOUT TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --bes-w:    840px;   /* editorial spine — everything aligns to this */
  --bes-pad:  64px;    /* canvas horizontal padding → 712px text width inside */
}


/* ── PAGE SURFACE ──────────────────────────────────────────────────────────── */
/* Soft blue-grey + faint dot grid. Visible in margins outside the 840px spine. */
body.pg-blog {
  background-color: #EEF3FA;
  background-image: radial-gradient(circle, rgba(37,99,235,.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
body.pg-blog .nav {
  border-bottom-color: rgba(0,0,0,.06);
}


/* ── HERO ───────────────────────────────────────────────────────────────────── */
/* Section is fully transparent — page dot-grid is visible everywhere.
   The atmospheric glow lives on .blog-hero-inner::before so it is
   bounded to the 840px editorial spine and does not create a full-width band. */
#blog-hero-sec {
  background: transparent;
  padding: 52px 0 14px;
  position: relative;
  overflow: hidden;
}
/* Section-level ::before is suppressed — no slab radial on the full section */
#blog-hero-sec::before { content: none; }

/* Subtle corner accent — upper-right only, not a horizontal band */
#blog-hero-sec::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 380px;
  background: radial-gradient(ellipse, rgba(37,99,235,.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Compass arc — decorative, upper-right corner */
.bh-arc {
  position: absolute;
  top: -60px; right: -48px;
  width: 340px; height: 340px;
  pointer-events: none;
  z-index: 0;
}
.bh-arc svg { width: 100%; height: 100%; }

/* Hero content — centered to 840px editorial spine */
.blog-hero-inner {
  max-width: var(--bes-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 16px 10px;
}

/* ── EDITORIAL MASTHEAD PANEL ──
   Width matches .bedi-inner (cover) exactly — both are max-width: var(--bes-w).
   left:0 / right:0 means the panel edges are flush with the content column,
   so the hero panel and cover below share the same horizontal footprint.
   border-radius creates the card feel; box-shadow adds soft lift.
   z-index:-1 keeps it behind all hero text in .blog-hero-inner stacking context. */
.blog-hero-inner::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -32px;  bottom: -14px;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(37,99,235,.10) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #ECF1FE 100%);
  border-radius: 28px 28px 16px 16px;
  box-shadow:
    0 4px 32px rgba(37,99,235,.07),
    0 1px 6px  rgba(0,0,0,.04);
  pointer-events: none;
  z-index: -1;
}

/* Per-category panels — override only the background layers */
#blog-hero-sec[data-cat="erp"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(37,99,235,.12) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #E8EFFE 100%);
}
#blog-hero-sec[data-cat="hrms"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(88,28,235,.09) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #EDE8FE 100%);
}
#blog-hero-sec[data-cat="crm"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(14,165,233,.09) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #E8F5FE 100%);
}
#blog-hero-sec[data-cat="bi"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(37,99,235,.11) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #EAF0FE 100%);
}
#blog-hero-sec[data-cat="ai"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(99,102,241,.10) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #ECEBFE 100%);
}
#blog-hero-sec[data-cat="industries"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(15,118,110,.08) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #E8F5F3 100%);
}
#blog-hero-sec[data-cat="business-operations"] .blog-hero-inner::before {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(2,132,199,.09) 0%, transparent 55%),
    linear-gradient(155deg, #FFFFFF 0%, #E8F3FE 100%);
}

/* ── TAG ROW — eyebrow + topic pills in one flex row ── */
.bh-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
/* Eyebrow: plain editorial label — first flex item, no pill treatment */
.bh-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--t-l);
  opacity: .72;
  white-space: nowrap;
}
/* Pills: category + topic tags */
.bh-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t-l);
  border: 1px solid var(--br);
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}

.blog-hero-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--t);
  margin: 0 0 16px;
}

/* Plain editorial subtitle — no utility box, no border, just clear text */
.blog-hero-deck {
  font-size: 16.5px;
  color: var(--t-m);
  line-height: 1.68;
  margin: 0 0 20px;
  max-width: 580px;
  letter-spacing: -.01em;
}

/* Author · date · read-time row */
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bha-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--b);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.bhm-item { font-size: 13px; color: var(--t-l); font-weight: 500; }
.bhm-sep  { width: 3px; height: 3px; border-radius: 50%; background: var(--t-l); display: inline-block; flex-shrink: 0; }

/* Share action — right-aligned via margin-left:auto, editorial not CTA */
.bh-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t-l);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .14s, color .14s;
}
.bh-share:hover { background: rgba(37,99,235,.07); color: var(--b); }
.bh-share svg { flex-shrink: 0; }


/* ── UNIFIED EDITORIAL SURFACE ───────────────────────────────────────────────── */
/* #blog-editorial wraps: cover image (dark, top) + reading canvas (white, bottom).
   .bedi-inner is the single card — shared border-radius, overflow:hidden, one shadow.
   The cover and canvas connect edge-to-edge inside this card.
*/
#blog-editorial {
  padding: 2px 0 0;
  background: transparent;
}
.bedi-inner {
  max-width: var(--bes-w);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 6px 48px rgba(0,0,0,.11),
    0 2px 8px  rgba(0,0,0,.06);
}

/* Cover: matches generated cover dimensions (1600×840) exactly — no letterbox bars */
.blog-feat-frame {
  aspect-ratio: 1600 / 840;
  overflow: hidden;
  line-height: 0;
}
.blog-feat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Reading canvas: white surface, immediately below cover, no gap */
.blog-canvas {
  background: #fff;
  padding: 52px var(--bes-pad) 50px;
}


/* ── "IN THIS GUIDE" CARD ─────────────────────────────────────────────────────── */
/* Injected by generator at the top of article content */
.itg-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: #EFF5FF;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 9px;
  margin-bottom: 36px;
}
.itg-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.itg-body { min-width: 0; }
.itg-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--b);
  display: block;
  margin-bottom: 5px;
}
.itg-text {
  font-size: 13.5px;
  color: var(--t-m);
  line-height: 1.6;
  margin: 0;
}


/* ── ARTICLE TYPOGRAPHY ─────────────────────────────────────────────────────── */
.blog-content {
  font-size: 16.5px;
  line-height: 1.80;
  color: var(--t-m);
}
.blog-content > p:first-of-type {
  font-size: 17.5px;
  line-height: 1.80;
  color: var(--t);
  letter-spacing: -.012em;
  margin-bottom: 28px;
}
.blog-content h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  color: var(--t);
  margin: 44px 0 14px;
  letter-spacing: -.03em;
  line-height: 1.18;
  padding-left: 14px;
  border-left: 3px solid var(--b);
}
.blog-content h2:first-of-type { margin-top: 0; }
/* After a section-rhythm divider, the H2's own top margin is cut — divider already provides breathing */
.blog-content .sr-div + h2 { margin-top: 20px; }
.blog-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--t);
  margin: 28px 0 12px;
  letter-spacing: -.02em;
}
.blog-content p { margin-bottom: 22px; }
.blog-content p:last-child { margin-bottom: 0; }
.blog-content ul, .blog-content ol { padding-left: 22px; margin-bottom: 24px; }
.blog-content li { margin-bottom: 10px; line-height: 1.76; }
.blog-content strong { color: var(--t); font-weight: 700; }
.blog-content em { font-style: italic; }
.blog-content code { font-family: monospace; background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 14px; }


/* ── NUMBERED LISTS ─────────────────────────────────────────────────────────── */
.blog-content ol { list-style: none; padding-left: 0; counter-reset: artifact-counter; }
.blog-content ol li {
  counter-increment: artifact-counter;
  padding: 13px 14px 13px 50px;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--r);
  margin-bottom: 10px;
}
.blog-content ol li::before {
  content: counter(artifact-counter);
  position: absolute; left: 13px; top: 13px;
  width: 24px; height: 24px;
  border-radius: 50%; background: var(--b); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.blog-content ol li strong { display: block; font-size: 15px; font-weight: 700; color: var(--t); margin-bottom: 4px; }


/* ── BLOCKQUOTE ─────────────────────────────────────────────────────────────── */
.blog-content blockquote {
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--b);
  background: var(--b-lt);
  border-radius: 0 var(--r) var(--r) 0;
}
.blog-content blockquote p { font-size: 16px; color: var(--t); font-style: italic; font-weight: 500; margin: 0; line-height: 1.62; letter-spacing: -.01em; }
.blog-content blockquote p:not(:last-child) { margin-bottom: 8px; }


/* ── KEY INSIGHT BLOCK ───────────────────────────────────────────────────────── */
/* Markdown trigger: > Key insight: your text here                               */
.blog-insight {
  margin: 28px 0;
  padding: 18px 22px;
  background: #F4F7FF;
  border: 1px solid rgba(37,99,235,.13);
  border-left: 3px solid var(--b);
  border-radius: 0 10px 10px 0;
}
.bsi-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--b);
  display: block;
  margin-bottom: 6px;
  opacity: .72;
}
.bsi-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--t);
  line-height: 1.65;
  margin: 0;
  letter-spacing: -.012em;
}


/* ── STAT / DATA POINT HIGHLIGHT ─────────────────────────────────────────────── */
/* Markdown triggers: > Metric: ...   or   > Data point: ...                     */
.blog-stat {
  margin: 28px 0;
  padding: 14px 20px 16px;
  background: #FAFBFF;
  border: 1px solid rgba(37,99,235,.11);
  border-top: 2px solid rgba(37,99,235,.32);
  border-radius: 0 0 10px 10px;
}
.bst-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--b);
  display: block;
  margin-bottom: 5px;
  opacity: .6;
}
.bst-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--t);
  line-height: 1.55;
  margin: 0;
  letter-spacing: -.01em;
}


/* ── PULL QUOTE ───────────────────────────────────────────────────────────────── */
/* Markdown trigger: > Quote: your quoted text here                               */
/* Overrides generic .blog-content blockquote for pull-quote class specifically.  */
.blog-content .blog-pull-quote {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  background: none;
  border: none;
  border-left: 3px solid rgba(37,99,235,.22);
  border-radius: 0;
}
.blog-content .blog-pull-quote p {
  font-size: 18.5px;
  font-weight: 400;
  font-style: italic;
  color: var(--t);
  line-height: 1.66;
  margin: 0;
  letter-spacing: -.018em;
}


/* ── SECTION RHYTHM DIVIDER ──────────────────────────────────────────────────── */
/* Auto-injected by generator after every 2nd H2 section group.                  */
.sr-div {
  height: 1px;
  background: rgba(37,99,235,.07);
  margin: 24px 0 0;
  border-radius: 1px;
}


/* ── TABLE ───────────────────────────────────────────────────────────────────── */
.blog-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--br); }
.blog-content th { background: var(--b); color: #fff; font-weight: 700; padding: 10px 14px; text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.blog-content td { padding: 10px 14px; border-bottom: 1px solid var(--br); color: var(--t-m); vertical-align: top; line-height: 1.6; }
.blog-content tr:last-child td { border-bottom: none; }
.blog-content tr:nth-child(even) td { background: var(--bg); }


/* ── CALLOUTS ────────────────────────────────────────────────────────────────── */
.blog-callout { margin: 28px 0; padding: 16px 18px 16px 50px; border-radius: var(--r); position: relative; }
.blog-callout-icon { position: absolute; left: 14px; top: 16px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0; }
.blog-callout p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--t-m); }
.blog-callout p:not(:last-child) { margin-bottom: 8px; }
.blog-callout strong { color: var(--t); }
.blog-callout--takeaway { background: #EFF6FF; border: 1px solid #BFDBFE; border-left: 4px solid #2563EB; }
.blog-callout--takeaway .blog-callout-icon { background: #2563EB; }
.blog-callout--note    { background: #F0FDF4; border: 1px solid #BBF7D0; border-left: 4px solid #16A34A; }
.blog-callout--note    .blog-callout-icon { background: #16A34A; }
.blog-callout--example { background: #FEFCE8; border: 1px solid #FDE68A; border-left: 4px solid #D97706; }
.blog-callout--example .blog-callout-icon { background: #D97706; }
.blog-callout--warning { background: #FFF7ED; border: 1px solid #FED7AA; border-left: 4px solid #EA580C; }
.blog-callout--warning .blog-callout-icon { background: #EA580C; }


/* ── INLINE CTA ──────────────────────────────────────────────────────────────── */
.blog-inline-cta {
  background: var(--b-lt);
  border: 1px solid var(--b-bd);
  border-left: 4px solid var(--b);
  border-radius: 0 var(--r-l) var(--r-l) 0;
  padding: 18px 22px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.blog-inline-cta-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--b); margin: 0; }
.blog-inline-cta-text  { font-size: 14.5px; color: var(--t-m); margin: 0; line-height: 1.6; }
.blog-inline-cta .btn-s { align-self: flex-start; margin-top: 4px; }


/* ── FAQ — accordion flow (continuation of article) ─────────────────────────── */
/* Uses <details>/<summary>. Sits below editorial surface, same 840px spine. */
.faq-sec {
  max-width: var(--bes-w);
  margin: 0 auto;
}

details.faq-item {
  background: var(--w);
  border: 1px solid var(--br);
  border-radius: 9px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
details.faq-item[open] {
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 2px 14px rgba(37,99,235,.08);
}
details.faq-item summary.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--t);
  margin: 0;
  padding: 13px 48px 13px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.45;
  user-select: none;
}
details.faq-item summary.faq-q::-webkit-details-marker { display: none; }
details.faq-item summary.faq-q::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .2s;
  pointer-events: none;
}
details.faq-item[open] summary.faq-q::after { transform: translateY(-50%) rotate(180deg); }
.faq-ans { padding: 0 20px 13px; border-top: 1px solid var(--br); }
.faq-a   { font-size: 14.5px; color: var(--t-m); margin: 12px 0 0; line-height: 1.72; }

/* FAQ continuation — editorial label, not a badge */
.faq-sec .slbl {
  background: transparent;
  border-color: transparent;
  color: var(--t-l);
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 7px;
}

/* Gap between label and first card — label margin-bottom handles spacing */
.faq-items { margin-top: 0; }

/* Softer card surface — part of the reading flow, not a separate widget */
.faq-sec details.faq-item {
  background: #F7F8FD;
  border-color: rgba(37,99,235,.11);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.faq-sec details.faq-item[open] {
  border-color: rgba(37,99,235,.28);
}


/* ── PRODUCT CALLOUT ─────────────────────────────────────────────────────────── */
.product-callout {
  background: var(--b-lt);
  border: 1px solid var(--b-bd);
  border-radius: var(--r-l);
  padding: 32px 40px;
  text-align: center;
  max-width: var(--bes-w);
  margin: 0 auto;
}


/* ── RELATED ARTICLES — editorial 3-column grid ──────────────────────────────── */
/* Section hidden by generator when < 2 related posts exist. */
.rel-sec-inner {
  max-width: var(--bes-w);
  margin: 0 auto;
}

.rel-grid { display: grid; gap: 18px; margin-top: 20px; }
.rel-grid--1 { grid-template-columns: 1fr; }
.rel-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rel-grid--3 { grid-template-columns: repeat(3, 1fr); }

.rel-card-v {
  display: flex;
  flex-direction: column;
  background: var(--w);
  border: 1px solid var(--br);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.rel-card-v:hover {
  border-color: var(--b);
  box-shadow: 0 6px 24px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.rel-card-v-cover {
  width: 100%; aspect-ratio: 1600/840;
  overflow: hidden;
  flex-shrink: 0;
}
.rel-card-v-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-card-v-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rel-card-v-cat {
  display: inline-block;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--b);
  background: var(--b-lt);
  border: 1px solid var(--b-bd);
  border-radius: 999px;
  padding: 2px 8px;
  width: fit-content;
}
.rel-card-v-title { font-size: 13.5px; font-weight: 700; color: var(--t); line-height: 1.38; margin: 2px 0 0; }
.rel-card-v-meta  { font-size: 11px; color: var(--t-l); margin: auto 0 0; padding-top: 6px; }

.related-articles-empty { font-size: 14px; color: var(--t-l); line-height: 1.65; margin: 16px 0 0; }


/* ── CONTINUATION — tight vertical rhythm ────────────────────────────────────── */
/* FAQ, related, product callout follow the editorial surface without large gaps */
#blog-editorial ~ .sec,
#blog-editorial ~ .sec-alt {
  padding-top: 34px;
  padding-bottom: 40px;
}
#blog-editorial ~ .sec-alt { background: transparent; }

/* Remove top padding from product callout section */
#blog-editorial ~ .sec-alt:last-of-type { padding-top: 0; }

/* FAQ section sits immediately after article — minimal dotted gap */
#blog-editorial + .sec-alt { padding-top: 20px; }


/* ── DEMO CTA ─────────────────────────────────────────────────────────────────── */
.sec-blue { padding: 72px 0 64px; background: var(--b); }
.f-inv {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  width: 100%;
  outline: none;
}
.f-inv::placeholder { color: rgba(255,255,255,.5); }
.f-inv:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }


/* ── CATEGORY INDEX — blog card grid ─────────────────────────────────────────── */

/* Card is an <a> element — remove default link decoration */
a.blog-card { text-decoration: none; color: inherit; cursor: pointer; }

/* "Read article →" visual cue inside the card — not a nested anchor */
.blog-card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--b);
  margin-top: 10px;
  text-decoration: none;
}
a.blog-card:hover .blog-card-link { text-decoration: underline; }

.blog-card {
  background: var(--w);
  border-radius: var(--r-l);
  border: 1px solid var(--br);
  box-shadow: var(--sh-s);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 6px 28px rgba(37,99,235,.10), 0 2px 8px rgba(0,0,0,.05);
  transform: translateY(-2px);
}

/* Image wrapper — handles both img and fallback div */
.blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 1600/840;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--b-lt);
}
.blog-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.02); }
.blog-card-img-fallback {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
}

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

/* Category pill — matches rel-card-v-cat for system consistency */
.blog-card-cat {
  display: inline-block;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--b);
  background: var(--b-lt);
  border: 1px solid var(--b-bd);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 11px;
  width: fit-content;
}

/* Title — 3-line clamp for visual rhythm */
.blog-card-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--t);
  line-height: 1.35;
  letter-spacing: -.02em;
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Excerpt — 3-line clamp */
.blog-card-excerpt {
  font-size: 13px;
  color: var(--t-m);
  line-height: 1.62;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row — pinned to bottom */
.blog-card-meta {
  font-size: 11.5px;
  color: var(--t-l);
  margin-top: auto;
  padding-top: 14px;
  line-height: 1.5;
}

/* ── INDEX SECTION LABEL ─────────────────────────────────────────────────────── */
.blog-index-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t-l);
  margin: 0 0 20px;
  opacity: .75;
}

/* ── FEATURED CARD (blog-index.html first article) ───────────────────────────── */
/* Displayed above the grid as a full-width editorial lead with horizontal layout */
.blog-card--featured {
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 32px;
  border-radius: var(--r-l);
}
.blog-card--featured .blog-card-img-wrap {
  width: 52%;
  aspect-ratio: auto;
  min-height: 280px;
  flex-shrink: 0;
}
.blog-card--featured .blog-card-body {
  padding: 32px 36px;
  justify-content: center;
}
.blog-card--featured .blog-card-title {
  font-size: clamp(20px, 2.2vw, 28px);
  -webkit-line-clamp: 4;
  margin-bottom: 12px;
}
.blog-card--featured .blog-card-excerpt {
  font-size: 14px;
  -webkit-line-clamp: 4;
}
.blog-card--featured .blog-card-meta { padding-top: 18px; }

/* ── GRID ─────────────────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:1023px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:639px)  {
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-card--featured { flex-direction: column; margin-bottom: 20px; }
  .blog-card--featured .blog-card-img-wrap { width: 100%; min-height: auto; aspect-ratio: 1600/840; }
  .blog-card--featured .blog-card-body { padding: 20px; }
  .blog-card--featured .blog-card-title { font-size: 18px; }
  /* Touch-friendly tap targets on mobile */
  .blog-card-meta { font-size: 11px; padding-top: 12px; }
}


/* ── BREADCRUMB ──────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb a { font-size: 12px; color: var(--t-l); font-weight: 500; transition: color .15s; }
.breadcrumb a:hover { color: var(--b); }
.breadcrumb span { font-size: 12px; color: var(--b); font-weight: 600; }
.breadcrumb svg { color: var(--t-l); flex-shrink: 0; }



/* ── CATEGORY TABS ───────────────────────────────────────────────────────────── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab { font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--br); color: var(--t-m); background: var(--w); transition: background .12s, color .12s, border-color .12s; cursor: pointer; }
.cat-tab:hover { border-color: var(--b); color: var(--b); }
.cat-tab.active { background: var(--b); color: #fff; border-color: var(--b); }


/* ── LEGACY OPT-IN BLOCKS ────────────────────────────────────────────────────── */
.blog-insight-ribbon { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 9px 14px; background: #F0F5FF; border: 1px solid #D1E0FB; border-radius: 8px; margin-bottom: 24px; }
.bir-label { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--b); white-space: nowrap; flex-shrink: 0; margin-right: 6px; }
.bir-phrase { font-size: 12px; font-weight: 500; color: var(--t-m); }
.bir-sep { font-size: 11px; color: var(--b); opacity: .45; margin: 0 1px; }

.blog-summary { background: var(--w); border: 1px solid var(--br); border-left: 4px solid var(--b); border-radius: 0 var(--r) var(--r) 0; padding: 24px 28px; margin: 0 0 40px; box-shadow: var(--sh-s); }
.blog-summary-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--b); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.blog-summary-label::before { content: "▸"; font-size: 13px; line-height: 1; }
.blog-summary-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: summary-counter; }
.blog-summary-list li { font-size: 14px; color: var(--t-m); line-height: 1.55; display: flex; align-items: flex-start; gap: 10px; counter-increment: summary-counter; }
.blog-summary-list li::before { content: counter(summary-counter); font-size: 10px; font-weight: 800; color: var(--b); background: var(--b-lt); width: 18px; height: 18px; min-width: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; border: 1px solid var(--b-bd); }

/* Legacy inline TOC */
.blog-toc { background: var(--bg); border: 1px solid var(--br); border-radius: var(--r); padding: 22px 26px; margin: 0 0 40px; }
.blog-toc-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--t-l); margin: 0 0 14px; display: block; }
.blog-toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; }
.blog-toc-list li { counter-increment: toc-counter; border-top: 1px solid var(--br); }
.blog-toc-list li:first-child { border-top: none; }
.blog-toc-link { font-size: 13.5px; font-weight: 500; color: var(--t-m); display: flex; align-items: center; gap: 10px; text-decoration: none; transition: color .15s; line-height: 1.45; padding: 9px 4px; }
.blog-toc-link::before { content: counter(toc-counter); font-size: 10px; font-weight: 800; color: #fff; background: var(--b); width: 18px; height: 18px; min-width: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: .5; transition: opacity .15s; }
.blog-toc-link:hover { color: var(--b); }
.blog-toc-link:hover::before { opacity: 1; }
.btoc-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--b); display: block; margin-bottom: 14px; opacity: .75; }
.btoc-list { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 2px solid rgba(37,99,235,.18); }
.btoc-list li { margin-bottom: 2px; }
.btoc-link { font-size: 12.5px; font-weight: 500; color: var(--t-l); display: block; text-decoration: none; transition: color .15s; line-height: 1.5; padding: 5px 0; }
.btoc-link:hover { color: var(--b); }

/* Legacy horizontal related cards */
.rel-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.rel-card { display: flex; gap: 20px; padding: 20px; background: var(--w); border: 1px solid var(--br); border-radius: var(--r-l); text-decoration: none; align-items: flex-start; transition: border-color .18s, box-shadow .18s, transform .18s; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.rel-card:hover { border-color: var(--b); box-shadow: 0 6px 28px rgba(37,99,235,.12); transform: translateY(-2px); }
.rel-card-img { width: 140px; aspect-ratio: 1600/840; object-fit: cover; border-radius: var(--r); flex-shrink: 0; }
.rel-card-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-card-cat { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--b); background: var(--b-lt); border: 1px solid var(--b-bd); border-radius: 999px; padding: 2px 9px; width: fit-content; }
.rel-card-title { font-size: 14px; font-weight: 700; color: var(--t); line-height: 1.4; margin: 2px 0 0; }
.rel-card-meta  { font-size: 11.5px; color: var(--t-l); margin: 0; }
.related-articles-grid { margin-top: 16px; }
.related-articles-grid.has-articles { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }


/* ── RESPONSIVE — 1040px ─────────────────────────────────────────────────────── */
@media(max-width:1040px) {
  .rel-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE — 860px: bedi-inner fills wrap ───────────────────────────────── */
@media(max-width:860px) {
  .bedi-inner { border-radius: 12px; }
}

/* ── RESPONSIVE — 767px ──────────────────────────────────────────────────────── */
@media(max-width:767px) {
  #blog-hero-sec { padding: 44px 0 10px; }
  .blog-hero-title { font-size: clamp(26px, 5.5vw, 38px); }
  .blog-hero-deck  { font-size: 15.5px; }
  .bh-arc { width: 220px; height: 220px; top: -30px; right: -30px; }
  .sec-blue { padding: 56px 0 50px; }
  #blog-editorial ~ .sec,
  #blog-editorial ~ .sec-alt { padding-top: 30px; padding-bottom: 36px; }
  /* Bottom radius matches .bedi-inner override at 860px */
  .blog-hero-inner::before { border-radius: 20px 20px 12px 12px; }
}

/* ── RESPONSIVE — 639px: mobile reading ─────────────────────────────────────── */
@media(max-width:639px) {
  /* Hero */
  #blog-hero-sec { padding: 36px 0 8px; }
  .blog-hero-deck { font-size: 14.5px; margin-bottom: 16px; }
  .blog-hero-title { margin-bottom: 12px; }
  .bh-arc { display: none; }
  .bh-eyebrow { font-size: 9.5px; }
  /* Reduce horizontal inset slightly on small screens */
  .blog-hero-inner { padding: 0 12px 8px; }
  /* Bottom radius 0 matches full-bleed cover below */
  .blog-hero-inner::before { border-radius: 16px 16px 0 0; }
  /* Share wraps naturally below read time on small screens */
  .bh-share { margin-left: 0; }

  /* Editorial surface — full bleed, no card treatment */
  #blog-editorial { padding: 2px 0 0; }
  .bedi-inner {
    border-radius: 0;
    box-shadow: none;
    margin: 0 -24px;
  }
  .blog-feat-frame { border-radius: 0; }
  .blog-canvas { padding: 28px 20px 36px; }

  /* Typography */
  .blog-content { font-size: 15.5px; line-height: 1.78; }
  .blog-content > p:first-of-type { font-size: 16.5px; line-height: 1.78; }
  .blog-content h2 { font-size: 19px; margin-top: 36px; padding-left: 12px; }
  .blog-content h3 { font-size: 16px; margin-top: 24px; }

  /* "In this guide" card */
  .itg-card { padding: 12px 14px; gap: 11px; }
  .itg-icon  { width: 28px; height: 28px; }

  /* Editorial rhythm blocks */
  .blog-insight { padding: 14px 16px; }
  .bsi-text { font-size: 15px; }
  .blog-stat { padding: 12px 16px 14px; }
  .bst-text { font-size: 14.5px; }
  .blog-content .blog-pull-quote { padding-left: 18px; }
  .blog-content .blog-pull-quote p { font-size: 17px; }
  .sr-div { margin: 20px 0 0; }

  /* Blockquote */
  .blog-content blockquote { padding: 13px 15px; }

  /* FAQ */
  details.faq-item summary.faq-q { padding: 13px 40px 13px 16px; font-size: 14.5px; }
  details.faq-item summary.faq-q::after { right: 14px; }
  .faq-ans { padding: 0 16px 14px; }
  .faq-a   { font-size: 14px; }

  /* Related grid */
  .rel-grid--2, .rel-grid--3 { grid-template-columns: 1fr; }

  /* Product callout */
  .product-callout { padding: 24px 18px; }

  /* FAQ continuation */
  #blog-editorial + .sec-alt { padding-top: 14px; }

  /* CTA */
  .sec-blue { padding: 56px 0 48px; }
}
