/* Blog-specific styles — extends ui_kits/marketing/styles.css */

/* ============================================================
   Reading progress
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.reading-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #7c3aed 100%);
  transition: width .1s linear;
}

/* ============================================================
   Page-hero strip (Blog List)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 88px 0 56px;
  background:
    radial-gradient(ellipse 800px 360px at 70% 0%, rgba(79,70,229,.07), transparent 70%),
    radial-gradient(ellipse 600px 320px at 5% 10%, rgba(124,58,237,.05), transparent 70%),
    var(--brand-canvas);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 30%, transparent 90%);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font: 700 64px/1.02 var(--font-heading);
  letter-spacing: -.035em;
  max-width: 820px;
}
.page-hero h1 .signal {
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .sub {
  margin-top: 22px;
  font: 400 19px/1.55 var(--font-body);
  color: var(--text-2);
  max-width: 620px;
}
.page-hero .meta-row {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

/* Search */
.blog-search {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font: 400 14px/1 var(--font-body);
  color: var(--text-2);
  min-width: 320px;
  box-shadow: var(--sh-0);
  transition: all var(--dur-fast) var(--ease-out);
}
.blog-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.blog-search svg { width: 16px; height: 16px; color: var(--text-3); }
.blog-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font: inherit; color: var(--text);
}
.blog-search kbd {
  font: 600 10px/1 var(--mono); color: var(--text-3);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 6px; background: var(--bg-1);
}

/* Filter chips */
.filter-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 500 13px/1 var(--font-body);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--line-2); color: var(--text); }
.filter-chip.on {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.filter-chip .count {
  font: 600 10px/1 var(--mono); padding: 3px 6px;
  border-radius: 4px;
  background: var(--bg-1); color: var(--text-3);
}
.filter-chip.on .count { background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }

/* ============================================================
   Featured post (large split card)
   ============================================================ */
.featured-post {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.featured-post:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.featured-cover {
  position: relative; min-height: 440px;
  overflow: hidden;
}
.featured-body {
  padding: 48px 52px 44px;
  display: flex; flex-direction: column; gap: 18px;
  justify-content: center;
}
.featured-body .tag-row {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-3);
}
.featured-body .tag-row .cat { color: var(--accent); }
.featured-body .tag-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.featured-body h2 {
  font: 700 38px/1.1 var(--font-heading);
  letter-spacing: -.025em;
  color: var(--text);
}
.featured-body .lede {
  font: 400 16px/1.6 var(--font-body);
  color: var(--text-2);
  max-width: 540px;
}
.featured-byline {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #8b5cf6);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  display: grid; place-items: center;
  color: #fff; font: 700 13px/1 var(--font-heading);
}
.byline-text {
  font: 500 13px/1.3 var(--font-body); color: var(--text);
}
.byline-text .role {
  display: block; font: 400 12px/1.3 var(--mono); color: var(--text-3);
}

/* ============================================================
   Post grid
   ============================================================ */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-0);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-1); }
.post-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.post-body .tag-row {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 10px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-3);
}
.post-body .tag-row .cat { color: var(--accent); }
.post-body .tag-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.post-body h3 {
  font: 700 21px/1.25 var(--font-heading);
  letter-spacing: -.018em;
  color: var(--text);
}
.post-body .lede {
  font: 400 14px/1.55 var(--font-body);
  color: var(--text-2);
  margin-bottom: 6px;
}
.post-byline {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font: 500 12px/1.3 var(--font-body); color: var(--text-2);
}
.post-byline .byline-avatar { width: 26px; height: 26px; font-size: 10px; }
.post-byline .meta { color: var(--text-3); font-family: var(--mono); font-weight: 500; font-size: 11px; }

/* ============================================================
   Stylized cover placeholders
   Each category gets its own muted-warm hue + faint pattern overlay.
   ============================================================ */
.cover {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: overlay;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,18,32,.55) 100%);
}
.cover .glyph {
  position: relative; z-index: 1;
  color: rgba(255,255,255,.92);
  font: 700 96px/1 var(--font-heading);
  letter-spacing: -.05em;
  opacity: .85;
  mix-blend-mode: screen;
}
.cover .cat-pill {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  font: 600 10px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.cover .cat-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Category palettes */
.cover.cat-inventory   { background: radial-gradient(ellipse at 30% 20%, #6366f1, #312e81 70%); }
.cover.cat-warehouse   { background: radial-gradient(ellipse at 70% 30%, #d97706, #78350f 75%); }
.cover.cat-multich     { background: radial-gradient(ellipse at 30% 70%, #14b8a6, #134e4a 75%); }
.cover.cat-product     { background: radial-gradient(ellipse at 70% 70%, #8b5cf6, #4c1d95 75%); }
.cover.cat-fieldnotes  { background: radial-gradient(ellipse at 50% 50%, #475569, #0f172a 80%); }
.cover.cat-orders      { background: radial-gradient(ellipse at 30% 30%, #e11d48, #881337 75%); }

.cover.cat-inventory   .cat-pill { color: #4338ca; }
.cover.cat-warehouse   .cat-pill { color: #b45309; }
.cover.cat-multich     .cat-pill { color: #0f766e; }
.cover.cat-product     .cat-pill { color: #6d28d9; }
.cover.cat-fieldnotes  .cat-pill { color: #334155; }
.cover.cat-orders      .cat-pill { color: #be123c; }

/* Decorative motif: mono ledger lines for inventory/warehouse covers */
.cover .ledger {
  position: absolute; z-index: 1; inset: auto 24px 24px 24px;
  font: 500 11px/1.55 var(--mono);
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}
.cover .ledger b { color: rgba(255,255,255,.9); font-weight: 500; }

/* ============================================================
   Newsletter band (used on list page)
   ============================================================ */
.newsletter-band {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.newsletter-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 360px at 80% 50%, rgba(79,70,229,.35), transparent 70%),
    radial-gradient(ellipse 600px 320px at 10% 100%, rgba(124,58,237,.25), transparent 70%);
  pointer-events: none;
}
.newsletter-band .container {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.newsletter-band h2 {
  font: 700 44px/1.05 var(--font-heading);
  letter-spacing: -.03em;
  color: #fff;
}
.newsletter-band p {
  margin-top: 18px;
  font: 400 16px/1.55 var(--font-body);
  color: rgba(255,255,255,.65);
  max-width: 460px;
}
.newsletter-form {
  display: flex; gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  align-items: center;
}
.newsletter-form input {
  flex: 1; border: 0; background: transparent; outline: none;
  color: #fff; font: 400 15px/1 var(--font-body);
  padding: 12px 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .btn { height: 44px; }
.newsletter-fine {
  margin-top: 16px;
  font: 500 11px/1.4 var(--mono);
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.pagination .pages {
  display: inline-flex; gap: 4px;
}
.pagination .pages a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font: 500 13px/1 var(--mono);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.pagination .pages a:hover { background: var(--bg-1); color: var(--text); }
.pagination .pages a.on { background: var(--ink); color: #fff; }
.pagination .pages span { color: var(--text-3); padding: 0 6px; align-self: center; }
.pagination .nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  font: 500 13px/1 var(--font-body); color: var(--text-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.pagination .nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination .nav-btn.disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   Article (single post page)
   ============================================================ */
.article-hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(ellipse 800px 360px at 60% 0%, rgba(79,70,229,.06), transparent 70%),
    var(--brand-canvas);
  border-bottom: 1px solid var(--line);
}
.article-hero .container { max-width: 820px; }
.article-hero .breadcrumb {
  font: 500 12px/1.4 var(--mono);
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.article-hero .breadcrumb a { color: var(--text-3); }
.article-hero .breadcrumb a:hover { color: var(--accent); }
.article-hero .breadcrumb .sep { opacity: .5; }
.article-hero .cat-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 22px;
}
.article-hero .cat-link i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.article-hero h1 {
  font: 700 56px/1.05 var(--font-heading);
  letter-spacing: -.035em;
  color: var(--text);
  max-width: 760px;
}
.article-hero .lede {
  margin-top: 22px;
  font: 400 21px/1.5 var(--font-body);
  color: var(--text-2);
  max-width: 700px;
}
.article-hero .byline-row {
  margin-top: 40px;
  display: flex; align-items: center; gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-hero .byline-row .author {
  display: flex; align-items: center; gap: 12px;
  font: 500 14px/1.3 var(--font-body); color: var(--text);
}
.article-hero .byline-row .author .role {
  display: block; font: 400 12px/1.3 var(--mono); color: var(--text-3);
}
.article-hero .byline-row .meta {
  display: flex; align-items: center; gap: 16px;
  margin-left: auto;
  font: 500 12px/1 var(--mono); color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
}
.article-hero .byline-row .meta .item { display: inline-flex; align-items: center; gap: 6px; }
.article-hero .byline-row .meta svg { width: 12px; height: 12px; }
.article-hero .share {
  display: inline-flex; align-items: center; gap: 6px;
}
.article-hero .share a {
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-3);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.article-hero .share a:hover { color: var(--accent); border-color: var(--accent); }
.article-hero .share svg { width: 14px; height: 14px; }

/* Full-width cover */
.article-cover {
  position: relative;
  max-width: 1280px; width: calc(100% - 48px);
  margin: -8px auto 64px;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-1);
}

/* Article body layout */
.article-body {
  max-width: 1280px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr 220px; gap: 56px;
  padding: 0 24px 96px; box-sizing: border-box;
}

/* TOC */
.toc {
  position: sticky; top: 100px; align-self: start;
  font: 500 13px/1.4 var(--font-body);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc-title {
  font: 600 10px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc ol li {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  margin-bottom: 12px;
  transition: all var(--dur-fast) var(--ease-out);
}
.toc ol li a {
  display: block;
  font: 500 13px/1.45 var(--font-body);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.toc ol li a:hover { color: var(--accent); }
.toc ol li.on {
  border-left-color: var(--accent);
}
.toc ol li.on a {
  color: var(--accent); font-weight: 600;
}

/* Right rail */
.rail {
  position: sticky; top: 100px; align-self: start;
  display: flex; flex-direction: column; gap: 20px;
}
.rail .rail-share {
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
}
.rail .rail-share .lbl {
  font: 600 10px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.rail .rail-share a {
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.rail .rail-share a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.rail .rail-share svg { width: 16px; height: 16px; }

/* Prose */
.prose {
  font: 400 18px/1.7 var(--font-body);
  color: var(--text-2);
  max-width: 720px;
}
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font: 700 32px/1.2 var(--font-heading);
  letter-spacing: -.025em;
  color: var(--text);
  margin-top: 56px;
  margin-bottom: 4px;
  scroll-margin-top: 100px;
}
.prose h3 {
  font: 700 22px/1.3 var(--font-heading);
  letter-spacing: -.018em;
  color: var(--text);
  margin-top: 36px;
}
.prose p { color: var(--text-2); }
.prose p strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol {
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--text-3); font-family: var(--mono); font-weight: 600; }

.prose code:not(pre code) {
  font: 500 .9em/1 var(--mono);
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}

/* Pull quote */
.pull-quote {
  margin: 48px -20px;
  padding: 0 0 0 32px;
  border-left: 3px solid var(--accent);
  font: 500 26px/1.35 var(--font-heading);
  letter-spacing: -.018em;
  color: var(--text);
  text-wrap: balance;
}
.pull-quote cite {
  display: block;
  margin-top: 16px;
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .12em;
  font-style: normal;
}

/* Callout */
.prose-callout {
  display: grid; grid-template-columns: 28px 1fr; gap: 16px;
  margin: 32px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--brand-surface-raised);
  font: 400 15px/1.6 var(--font-body);
  color: var(--text-2);
}
.prose-callout .ico {
  color: var(--accent);
  display: grid; place-items: center;
  margin-top: 2px;
}
.prose-callout b { color: var(--text); font-weight: 600; }
.prose-callout.tip { border-left-color: var(--brand-success); }
.prose-callout.tip .ico { color: var(--brand-success); }
.prose-callout.warn { border-left-color: var(--brand-warning); }
.prose-callout.warn .ico { color: var(--brand-warning); }

/* Inline meta strip — "the math" / "for example" */
.meta-strip {
  display: block;
  margin: 32px 0;
  padding: 18px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: 500 13px/1.7 var(--mono);
  color: var(--text-2);
  letter-spacing: .01em;
}
.meta-strip b { color: var(--text); font-weight: 600; }
.meta-strip .row { display: flex; justify-content: space-between; gap: 18px; }
.meta-strip .row + .row { margin-top: 2px; }
.meta-strip .row .val { color: var(--accent); font-weight: 600; }

/* Author card */
.author-card {
  display: grid; grid-template-columns: 84px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 80px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--brand-surface-raised);
  box-shadow: var(--sh-0);
}
.author-card .av {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #8b5cf6);
  display: grid; place-items: center;
  color: #fff; font: 700 28px/1 var(--font-heading);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.author-card .nm {
  font: 700 18px/1.2 var(--font-heading); letter-spacing: -.01em;
  color: var(--text);
}
.author-card .rl {
  font: 500 12px/1.3 var(--mono); color: var(--text-3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-top: 4px;
}
.author-card .bio {
  font: 400 14px/1.55 var(--font-body); color: var(--text-2);
  margin-top: 10px;
  max-width: 480px;
}
.author-card .follow {
  display: inline-flex; align-items: center; gap: 8px;
}

/* Related posts band */
.related-band {
  background: var(--bg-1);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.related-band .head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px;
}
.related-band h2 {
  font: 700 36px/1.1 var(--font-heading);
  letter-spacing: -.028em;
  color: var(--text);
}
.related-band .see-all {
  font: 500 13px/1 var(--font-body);
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}

/* End-of-article CTA band */
.cta-band {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 320px at 50% 0%, rgba(79,70,229,.35), transparent 70%),
    radial-gradient(ellipse 600px 320px at 50% 100%, rgba(124,58,237,.2), transparent 70%);
}
.cta-band .container { position: relative; max-width: 720px; }
.cta-band .eyebrow {
  color: rgba(255,255,255,.5);
  justify-content: center;
}
.cta-band .eyebrow::before { background: rgba(255,255,255,.5); }
.cta-band h2 {
  margin-top: 20px;
  font: 700 56px/1.02 var(--font-heading);
  letter-spacing: -.035em;
  color: #fff;
}
.cta-band h2 .signal {
  background: linear-gradient(135deg, #818cf8 0%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band p {
  margin-top: 22px;
  font: 400 18px/1.55 var(--font-body);
  color: rgba(255,255,255,.7);
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.cta-band .ctas {
  margin-top: 36px;
  display: inline-flex; gap: 12px; justify-content: center;
}
.cta-band .ctas .btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.2);
}
.cta-band .ctas .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.cta-band .fine {
  margin-top: 20px;
  font: 500 11px/1.4 var(--mono);
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   Base layout + page-section styles (ported from Blog List.html /
   Blog Post.html inline <style>). Scoped to .ms-blog so the
   stylesheet only affects the blog pages that load it.
   ============================================================ */
.ms-blog .container { max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 24px; box-sizing: border-box; }

.featured-section { padding: 56px 0 72px; }
.grid-section { padding: 8px 0 96px; }
.grid-section .head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.grid-section .head h3 {
  font: 700 28px/1.1 var(--font-heading); letter-spacing: -.022em;
  color: var(--text);
}
.empty-state {
  text-align: center; padding: 64px 0;
  font: 400 17px/1.6 var(--font-body); color: var(--text-2);
}

/* Cover as a real link (no JS card click) */
a.post-card, a.featured-post { text-decoration: none; color: inherit; }

/* Featured "Read the post" affordance is a span, not nested <a> */
.featured-byline .read-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-body); color: var(--accent);
}

/* Avatar hue palettes (ported from blog-components.jsx Avatar) */
.byline-avatar.hue-0, .author-card .av.hue-0 { background: linear-gradient(135deg,#c7d2fe,#8b5cf6); }
.byline-avatar.hue-1, .author-card .av.hue-1 { background: linear-gradient(135deg,#fed7aa,#ea580c); }
.byline-avatar.hue-2, .author-card .av.hue-2 { background: linear-gradient(135deg,#bbf7d0,#16a34a); }
.byline-avatar.hue-3, .author-card .av.hue-3 { background: linear-gradient(135deg,#fecdd3,#e11d48); }
.byline-avatar.hue-4, .author-card .av.hue-4 { background: linear-gradient(135deg,#bae6fd,#0284c7); }
.byline-avatar.hue-5, .author-card .av.hue-5 { background: linear-gradient(135deg,#ddd6fe,#6d28d9); }
.byline-avatar img, .author-card .av img,
.article-hero .author img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}

/* Article cover — category palettes + glyph + grid overlay
   (ported from Blog Post.html inline <style>) */
.article-cover.cat-inventory  { background: radial-gradient(ellipse at 30% 20%, #6366f1, #312e81 70%); }
.article-cover.cat-warehouse  { background: radial-gradient(ellipse at 70% 30%, #d97706, #78350f 75%); }
.article-cover.cat-multich    { background: radial-gradient(ellipse at 30% 70%, #14b8a6, #134e4a 75%); }
.article-cover.cat-product    { background: radial-gradient(ellipse at 70% 70%, #8b5cf6, #4c1d95 75%); }
.article-cover.cat-fieldnotes { background: radial-gradient(ellipse at 50% 50%, #475569, #0f172a 80%); }
.article-cover.cat-orders     { background: radial-gradient(ellipse at 30% 30%, #e11d48, #881337 75%); }
.article-cover .cat-pill {
  position: absolute; top: 24px; left: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.94);
  font: 600 10px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink);
}
.article-cover .cat-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.article-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 30%, transparent 90%);
}
.article-cover .glyph {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font: 700 220px/1 var(--font-heading); letter-spacing: -.05em;
  color: rgba(255,255,255,.16);
}
.article-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .article-body { grid-template-columns: 1fr; gap: 40px; }
  .toc, .rail { position: static; max-height: none; }
  .toc { order: -1; }
  .rail .rail-share { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-cover { min-height: 280px; }
  .newsletter-band .container { grid-template-columns: 1fr; gap: 32px; }
  .prose, .prose .pull-quote { max-width: none; }
  .pull-quote { margin-left: 0; margin-right: 0; }
}
@media (max-width: 860px) {
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: clamp(34px, 7vw, 56px); }
  .article-hero { padding: 52px 0 40px; }
  .article-hero h1 { font-size: clamp(30px, 6vw, 48px); }
  .article-hero .byline-row { flex-wrap: wrap; gap: 16px; }
  .article-hero .byline-row .meta { margin-left: 0; }
  .cta-band h2 { font-size: clamp(32px, 7vw, 52px); }
  .newsletter-band h2 { font-size: clamp(28px, 6vw, 40px); }
  .featured-body { padding: 32px 28px; }
  .featured-body h2 { font-size: clamp(24px, 5vw, 34px); }
  .article-cover { height: 320px; }
  .article-cover .glyph { font-size: 140px; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-search { min-width: 0; width: 100%; }
  .featured-byline { flex-wrap: wrap; }
  .featured-byline .read-link { margin-left: 0; }
  .pagination { flex-direction: column; gap: 18px; }
  .author-card { grid-template-columns: 1fr; text-align: left; }
  .cta-band .ctas { flex-direction: column; width: 100%; }
  .newsletter-form { flex-direction: column; border-radius: 16px; padding: 16px; }
  .newsletter-form input { width: 100%; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

/* Cover fills its aspect-ratio box; gradient cover or image */
.post-cover .cover, .featured-cover .cover { position: absolute; inset: 0; }
.post-cover > img, .featured-cover > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
