/* ==========================================================================
   BigDot Blog - standalone stylesheet
   Loaded only by /blog pages. Every class is prefixed "bd-" and element
   styles are scoped to .bd-site, so nothing here can leak into (or be
   affected by) the corporate site's Bootstrap/global.css/main.css.
   ========================================================================== */

:root {
  --bd-red: #e53825;
  --bd-red-dark: #c42c1b;
  --bd-orange: #f15a25;
  --bd-indigo: #3a1593;
  --bd-indigo-deep: #170b9c;
  --bd-violet: #6a3de8;
  --bd-ink: #121212;
  --bd-text: #2c2c34;
  --bd-muted: #5f5f6b;
  --bd-soft: #8d8d98;
  --bd-line: #e8e4f2;
  --bd-lilac: #faf8ff;
  --bd-lilac-2: #f3efff;
  --bd-footer: #efe8ff;
  --bd-white: #fff;
  --bd-radius: 18px;
  --bd-radius-sm: 10px;
  --bd-shadow: 0 1px 2px rgba(23, 11, 156, .04), 0 8px 24px rgba(23, 11, 156, .06);
  --bd-shadow-lg: 0 2px 6px rgba(23, 11, 156, .06), 0 24px 48px rgba(23, 11, 156, .12);
  --bd-font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bd-script: "Caveat", "Segoe Script", cursive;
  --bd-header-h: 76px;
  --bd-max: 1200px;
}

/* ---------- base (scoped) ---------- */
.bd-site,
.bd-site *,
.bd-site *::before,
.bd-site *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.bd-site {
  margin: 0;
  background: var(--bd-white);
  color: var(--bd-text);
  font-family: var(--bd-font);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.bd-site img { max-width: 100%; height: auto; display: block; }
.bd-site a { color: inherit; text-decoration: none; }
.bd-site h1, .bd-site h2, .bd-site h3, .bd-site h4 { color: var(--bd-ink); line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.bd-site p { margin: 0; }
.bd-site ul, .bd-site ol { margin: 0; padding: 0; }
.bd-site button { font: inherit; color: inherit; cursor: pointer; }
.bd-site :focus-visible { outline: 2px solid var(--bd-indigo); outline-offset: 3px; border-radius: 6px; }
.bd-site ::selection { background: #ffd9d2; color: var(--bd-ink); }

.bd-container { width: 100%; max-width: var(--bd-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .bd-container { padding: 0 16px; } }

.bd-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--bd-indigo); color: #fff !important; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.bd-skip:focus { top: 12px; }
.bd-ico { flex: none; }

.bd-script { font-family: var(--bd-script); font-weight: 700; color: var(--bd-orange); font-size: 1.28em; line-height: .8; letter-spacing: 0; }
.bd-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--bd-indigo); background: rgba(255, 255, 255, .7); border: 1px solid var(--bd-line); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.bd-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bd-red); }

/* ---------- buttons ---------- */
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap; transition: background-color .2s, transform .2s, box-shadow .2s, color .2s; }
.bd-btn--primary { background: var(--bd-red); color: #fff !important; box-shadow: 0 6px 16px rgba(229, 56, 37, .25); }
.bd-btn--primary:hover { background: var(--bd-red-dark); transform: translateY(-1px); }
.bd-btn--ghost-light { color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.bd-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.bd-btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.bd-btn--sm { padding: 8px 14px; font-size: .9rem; }
.bd-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bd-red) !important; }
.bd-link-arrow .bd-ico { transition: transform .2s; }
.bd-link-arrow:hover .bd-ico { transform: translateX(3px); }

/* ---------- header (mirrors corporate navbar) ---------- */
.bd-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #d4d4d4; }
.bd-header__bar { display: flex; align-items: center; gap: 28px; height: var(--bd-header-h); }
.bd-logo img { width: 142px; height: auto; }
.bd-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bd-nav__list { display: flex; align-items: center; gap: 6px; list-style: none; }
.bd-nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font-weight: 600; font-size: 16px; color: #1d1d1f; transition: color .2s, background-color .2s; }
.bd-nav__link:hover, .bd-nav__link.is-active { color: var(--bd-red); }
.bd-nav__link.is-active { background: #fff1ee; }
.bd-nav__actions { display: flex; align-items: center; gap: 12px; }
.bd-header__cta, .bd-burger { display: none; }
.bd-burger { border: 1px solid var(--bd-line); background: #fff; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--bd-ink); }

.bd-has-mega { position: static; }
.bd-mega-toggle .bd-ico { transition: transform .2s; }
.bd-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #eee; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.bd-mega__grid { max-width: var(--bd-max); margin: 0 auto; padding: 20px 24px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.bd-mega__item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 12px; border-radius: 12px; transition: background-color .25s; }
.bd-mega__item:hover { background: #f1f2f6; }
.bd-mega__item img { width: 40px; height: 40px; object-fit: contain; }
.bd-mega__item strong { display: block; font-size: 17px; color: #000; margin-bottom: 4px; }
.bd-mega__item small { display: block; font-size: 15px; color: #444; line-height: 1.4; }

@media (min-width: 1025px) {
  .bd-has-mega:hover .bd-mega,
  .bd-has-mega:focus-within .bd-mega,
  .bd-has-mega.is-open .bd-mega { opacity: 1; visibility: visible; transform: none; }
  .bd-has-mega:hover .bd-mega-toggle .bd-ico,
  .bd-has-mega.is-open .bd-mega-toggle .bd-ico { transform: rotate(180deg); }
}

@media (max-width: 1024px) {
  .bd-header__bar { gap: 12px; }
  .bd-logo { margin-right: auto; }
  .bd-header__cta, .bd-burger { display: inline-flex; }
  .bd-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--bd-line); box-shadow: 0 20px 40px rgba(0, 0, 0, .1); padding: 8px 16px 20px; max-height: calc(100vh - var(--bd-header-h)); overflow-y: auto; display: none; }
  .bd-nav.is-open { display: flex; }
  .bd-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .bd-nav__item { border-bottom: 1px solid #f0eef6; }
  .bd-nav__link { width: 100%; justify-content: space-between; padding: 14px 4px; }
  .bd-nav__link.is-active { background: none; }
  .bd-mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .bd-has-mega.is-open .bd-mega { display: block; }
  .bd-has-mega.is-open .bd-mega-toggle .bd-ico { transform: rotate(180deg); }
  .bd-mega__grid { grid-template-columns: 1fr; padding: 0 0 12px; gap: 0; }
  .bd-mega__item { padding: 10px 6px; }
  .bd-mega__item img { width: 32px; height: 32px; }
  .bd-mega__item strong { font-size: 16px; }
  .bd-mega__item small { font-size: 14px; }
  .bd-nav__actions { padding-top: 16px; justify-content: space-between; }
}
@media (max-width: 420px) { .bd-header__cta { display: none; } }

/* ---------- hero / soft gradient glow (like the homepage) ---------- */
.bd-hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 40px; text-align: center; }
.bd-hero--compact { padding: 48px 0 28px; }
.bd-hero__glow { position: absolute; inset: -20% -10% auto; height: 150%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 45% at 18% 30%, rgba(160, 140, 255, .35), transparent 70%),
    radial-gradient(34% 40% at 82% 22%, rgba(255, 160, 214, .35), transparent 70%),
    radial-gradient(40% 45% at 55% 70%, rgba(120, 170, 255, .28), transparent 70%);
  filter: blur(20px); }
.bd-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bd-hero__title { font-size: clamp(2.1rem, 5.2vw, 3.8rem); font-weight: 700; max-width: 16ch; letter-spacing: -.02em; }
.bd-hero--compact .bd-hero__title { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; }
.bd-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--bd-muted); max-width: 58ch; }

.bd-search { position: relative; width: min(640px, 100%); margin-top: 8px; }
.bd-search .bd-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--bd-indigo); pointer-events: none; }
.bd-search input { width: 100%; height: 60px; padding: 0 56px 0 54px; font: inherit; font-size: 1.05rem; color: var(--bd-ink); background: #fff; border: 1px solid var(--bd-line); border-radius: 999px; box-shadow: var(--bd-shadow); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.bd-search input::placeholder { color: var(--bd-soft); }
.bd-search input:focus { outline: none; border-color: var(--bd-indigo); box-shadow: 0 0 0 4px rgba(58, 21, 147, .12), var(--bd-shadow); }
.bd-search__kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 600 .8rem var(--bd-font); color: var(--bd-soft); border: 1px solid var(--bd-line); border-radius: 6px; padding: 2px 8px; background: var(--bd-lilac); }
@media (hover: none) { .bd-search__kbd { display: none; } }

.bd-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.bd-pill { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--bd-line); background: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; color: var(--bd-text) !important; transition: all .2s; white-space: nowrap; }
.bd-pill:hover { border-color: var(--bd-indigo); color: var(--bd-indigo) !important; }
.bd-pill.is-active { background: var(--bd-indigo); border-color: var(--bd-indigo); color: #fff !important; }
@media (max-width: 700px) {
  .bd-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: calc(100% + 32px); margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .bd-pills::-webkit-scrollbar { display: none; }
}

.bd-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .92rem; color: var(--bd-muted); }
.bd-crumbs a:hover { color: var(--bd-red); }
.bd-crumbs span[aria-hidden], .bd-crumbs > span:not([aria-current]) { color: var(--bd-soft); }

/* ---------- listing ---------- */
.bd-listing { padding-bottom: 88px; }
.bd-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 56px 0 24px; }
.bd-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); position: relative; padding-bottom: 12px; }
.bd-section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--bd-indigo-deep), var(--bd-violet)); }

.bd-chip { display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--bd-lilac-2); color: var(--bd-indigo) !important; font-size: .8rem; font-weight: 700; letter-spacing: .01em; transition: background-color .2s; }
.bd-chip:hover { background: #e6ddff; }
.bd-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--bd-soft); font-size: .9rem; }

.bd-feature { display: grid; grid-template-columns: 1.45fr 1fr; align-items: stretch; gap: 0; margin-top: 24px; background: #fff; border: 1px solid var(--bd-line); border-radius: 24px; overflow: hidden; box-shadow: var(--bd-shadow); }
.bd-feature__media { display: block; position: relative; overflow: hidden; background: var(--bd-lilac); min-height: 100%; }
.bd-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .5s; }
.bd-feature:hover .bd-feature__media img { transform: scale(1.03); }
.bd-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px 36px; }
.bd-feature__label { font-family: var(--bd-script); font-size: 1.6rem; line-height: 1; color: var(--bd-orange); font-weight: 700; }
.bd-feature__title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.bd-feature__title a:hover { color: var(--bd-red); }
.bd-feature__body > p:not(.bd-feature__label) { color: var(--bd-muted); font-size: 1rem; }
@media (max-width: 900px) {
  .bd-feature { grid-template-columns: 1fr; }
  .bd-feature__media { min-height: 0; }
  .bd-feature__media img { position: static; aspect-ratio: 16 / 9; height: auto; }
  .bd-feature__body { padding: 24px; }
}

.bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 640px) { .bd-grid { grid-template-columns: 1fr; } }

.bd-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bd-line); border-radius: var(--bd-radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.bd-card:hover { transform: translateY(-4px); box-shadow: var(--bd-shadow-lg); border-color: #d9d1f3; }
.bd-card__media { display: block; overflow: hidden; background: var(--bd-lilac); }
.bd-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.bd-card:hover .bd-card__media img { transform: scale(1.04); }
.bd-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; flex: 1; }
.bd-card__title { font-size: 1.22rem; line-height: 1.3; }
.bd-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s, color .2s; }
.bd-card__title a:hover { color: var(--bd-red); background-size: 100% 2px; }
.bd-card__excerpt { color: var(--bd-muted); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bd-card .bd-meta { margin-top: auto; padding-top: 4px; }

.bd-empty { text-align: center; padding: 48px 16px; color: var(--bd-muted); font-size: 1.1rem; border: 1px dashed var(--bd-line); border-radius: var(--bd-radius); }

.bd-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.bd-pager__num, .bd-pager__step { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bd-line); font-weight: 600; background: #fff; }
.bd-pager a:hover { border-color: var(--bd-indigo); color: var(--bd-indigo); }
.bd-pager__num.is-active { background: var(--bd-indigo); border-color: var(--bd-indigo); color: #fff; }

/* ---------- CTA band ---------- */
.bd-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(120deg, var(--bd-indigo-deep) 0%, var(--bd-indigo) 45%, #5b2bd1 100%); }
.bd-band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 120, 190, .45), transparent 65%); }
.bd-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(120, 170, 255, .4), transparent 65%); }
.bd-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.bd-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 20ch; margin: 6px 0 12px; }
.bd-band p { color: rgba(255, 255, 255, .82); max-width: 56ch; }
.bd-band__eyebrow { font-weight: 600; color: #fff !important; font-size: 1.05rem; }
.bd-band__eyebrow .bd-script { color: #ff9a76; font-size: 2rem; margin-right: 2px; }
.bd-script--light { color: #ffb199; }
.bd-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 900px) { .bd-band__inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 48px; padding-bottom: 48px; } }

/* ---------- article ---------- */
.bd-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.bd-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--bd-progress, 0)); background: linear-gradient(90deg, var(--bd-red), var(--bd-orange)); }

.bd-post__head { position: relative; isolation: isolate; overflow: hidden; padding-top: 48px; }
.bd-post__head .bd-hero__glow { height: 120%; }
.bd-post__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 900px; }
.bd-post__title { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.02em; line-height: 1.12; }
.bd-post__dek { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--bd-muted); max-width: 62ch; }
.bd-byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--bd-line); }
.bd-byline strong { display: block; color: var(--bd-ink); font-size: .95rem; line-height: 1.2; }
.bd-byline .bd-meta { font-size: .85rem; }
.bd-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; flex: none; overflow: hidden; }
.bd-avatar--lg { width: 56px; height: 56px; }
.bd-post__cover { margin-top: 40px; max-width: 1168px; }
.bd-post__img { width: 100%; border-radius: 24px; box-shadow: var(--bd-shadow-lg); background: var(--bd-lilac); }
@media (max-width: 600px) { .bd-post__img { border-radius: 16px; } .bd-post__head { padding-top: 32px; } }

.bd-post__layout { display: grid; grid-template-columns: 250px minmax(0, 740px); justify-content: center; gap: 64px; padding-top: 56px; padding-bottom: 72px; }
.bd-post__aside { position: relative; }
.bd-sticky { position: sticky; top: calc(var(--bd-header-h) + 28px); display: flex; flex-direction: column; gap: 20px; }

.bd-toc { border: 1px solid var(--bd-line); border-radius: 16px; background: var(--bd-lilac); padding: 18px 18px 14px; }
.bd-toc summary { cursor: pointer; font-weight: 700; color: var(--bd-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.bd-toc summary::-webkit-details-marker { display: none; }
.bd-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.bd-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.bd-toc ol { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.bd-toc a { display: block; padding: 7px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; font-size: .92rem; line-height: 1.35; color: var(--bd-muted); transition: all .2s; }
.bd-toc a:hover { color: var(--bd-indigo); background: #fff; }
.bd-toc a.is-active { color: var(--bd-indigo); border-left-color: var(--bd-red); background: #fff; font-weight: 600; }

.bd-aside-card { border: 1px solid var(--bd-line); border-radius: 16px; padding: 16px 18px; }
.bd-aside-card__title { font-weight: 700; color: var(--bd-ink); margin-bottom: 10px !important; }

.bd-share { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-share a, .bd-copy { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--bd-line); background: #fff; color: var(--bd-indigo) !important; transition: all .2s; }
.bd-share a:hover, .bd-copy:hover { background: var(--bd-indigo); border-color: var(--bd-indigo); color: #fff !important; transform: translateY(-2px); }
.bd-copy__done { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bd-ink); color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bd-copy.is-copied .bd-copy__done { opacity: 1; }

@media (max-width: 1024px) {
  .bd-post__layout { grid-template-columns: minmax(0, 740px); gap: 0; padding-top: 36px; }
  .bd-sticky { position: static; }
  .bd-aside-card { display: none; }
  .bd-toc { margin-bottom: 32px; }
}

/* ---------- prose (article body) ---------- */
.bd-prose { font-size: 1.125rem; line-height: 1.8; color: var(--bd-text); overflow-wrap: break-word; }
.bd-site .bd-prose > * { margin-top: 0; margin-bottom: 0; }
.bd-site .bd-prose > * + * { margin-top: 1.25em; }
.bd-site .bd-prose > h2 { margin-top: 2.1em; }
.bd-site .bd-prose > h3 { margin-top: 1.8em; }
.bd-site .bd-prose > h4 { margin-top: 1.6em; }
.bd-site .bd-prose > :is(h2, h3, h4) + * { margin-top: .65em; }
.bd-site .bd-prose > :is(figure, blockquote) { margin-top: 2em; }
.bd-site .bd-prose > :is(figure, blockquote) + * { margin-top: 2em; }
.bd-site .bd-prose > :first-child { margin-top: 0; }
.bd-prose > p:first-child { font-size: 1.22rem; line-height: 1.7; color: var(--bd-ink); }
.bd-prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); scroll-margin-top: calc(var(--bd-header-h) + 24px); }
.bd-prose h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); scroll-margin-top: calc(var(--bd-header-h) + 24px); }
.bd-prose h4 { font-size: 1.15rem; }
.bd-prose strong { color: var(--bd-ink); font-weight: 700; }
.bd-prose a:not(.bd-btn) { color: var(--bd-indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(58, 21, 147, .35); transition: color .2s, text-decoration-color .2s; }
.bd-prose a:not(.bd-btn):hover { color: var(--bd-red); text-decoration-color: currentColor; }
.bd-prose ul, .bd-prose ol { padding-left: 1.4em; }
.bd-prose li + li { margin-top: .6em; }
.bd-prose li { padding-left: .3em; }
.bd-prose ul > li::marker { color: var(--bd-red); font-size: 1.1em; }
.bd-prose ol > li::marker { color: var(--bd-indigo); font-weight: 700; }
.bd-prose blockquote { margin-left: 0; margin-right: 0; padding: 1.4em 1.6em; background: var(--bd-lilac); border-left: 4px solid var(--bd-indigo); border-radius: 0 16px 16px 0; font-size: 1.08em; color: var(--bd-ink); }
.bd-prose blockquote > * + * { margin-top: .8em; }
.bd-prose figure { margin-left: 0; margin-right: 0; }
.bd-prose figure img { width: 100%; border-radius: 16px; border: 1px solid var(--bd-line); background: var(--bd-lilac); }
.bd-prose figcaption { margin-top: .7em; text-align: center; font-size: .9rem; color: var(--bd-soft); }
.bd-prose table { width: 100%; border-collapse: collapse; font-size: .95em; display: block; overflow-x: auto; }
.bd-prose th, .bd-prose td { border: 1px solid var(--bd-line); padding: .6em .8em; text-align: left; }
.bd-prose th { background: var(--bd-lilac); color: var(--bd-ink); }
.bd-prose code { font-size: .9em; background: var(--bd-lilac-2); padding: .15em .4em; border-radius: 6px; }
.bd-site .bd-prose > .bd-cta-inline { margin-top: 1em; }
.bd-prose .bd-cta-inline .bd-btn { text-decoration: none; }
@media (max-width: 600px) { .bd-prose { font-size: 1.0625rem; line-height: 1.75; } .bd-prose > p:first-child { font-size: 1.12rem; } }

.bd-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px !important; padding: 0; }
.bd-tags li { padding: 6px 12px; border-radius: 999px; background: #f4f4f7; color: var(--bd-muted); font-size: .85rem; font-weight: 500; }
.bd-tags li::before { content: "#"; color: var(--bd-soft); margin-right: 2px; }

.bd-post__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--bd-line); border-bottom: 1px solid var(--bd-line); }
.bd-post__foot p { font-weight: 600; color: var(--bd-ink); }

.bd-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 24px; border-radius: var(--bd-radius); background: linear-gradient(135deg, var(--bd-lilac), #fff4f1); border: 1px solid var(--bd-line); }
.bd-author__name { font-weight: 700; color: var(--bd-ink); margin-bottom: 4px !important; }
.bd-author p:not(.bd-author__name) { color: var(--bd-muted); }

.bd-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.bd-postnav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--bd-line); border-radius: 16px; transition: all .2s; }
.bd-postnav a:hover { border-color: var(--bd-indigo); box-shadow: var(--bd-shadow); }
.bd-postnav small { display: inline-flex; align-items: center; gap: 6px; color: var(--bd-soft); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.bd-postnav span { font-weight: 700; color: var(--bd-ink); line-height: 1.35; }
.bd-postnav__next { text-align: right; align-items: flex-end; }
@media (max-width: 600px) { .bd-postnav { grid-template-columns: 1fr; } .bd-postnav__next { text-align: left; align-items: flex-start; } }

.bd-related { background: var(--bd-lilac); padding: 8px 0 80px; border-top: 1px solid var(--bd-line); }

/* ---------- footer (mirrors corporate footer) ---------- */
.bd-footer { background: var(--bd-footer); color: #4e4e4e; padding-top: 64px; }
.bd-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.bd-footer__brand img { width: 160px; }
.bd-footer__brand p { margin-top: 12px !important; font-weight: 500; max-width: 32ch; }
.bd-footer__h { font-size: 1rem !important; font-weight: 600 !important; color: var(--bd-indigo) !important; margin-bottom: 14px !important; }
.bd-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bd-footer ul a { font-weight: 500; transition: color .2s; }
.bd-footer ul a:hover { color: var(--bd-red); }
.bd-social { display: flex; gap: 10px; margin-top: 18px; }
.bd-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--bd-indigo); box-shadow: 0 4px 12px rgba(58, 21, 147, .12); transition: all .2s; }
.bd-social a:hover { background: var(--bd-indigo); color: #fff; transform: translateY(-2px); }
.bd-footer__base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(58, 21, 147, .12); font-size: .9rem; color: #8d8d8d; }
.bd-footer__top:hover { color: var(--bd-red); }
@media (max-width: 1024px) { .bd-footer__grid { grid-template-columns: repeat(3, 1fr); } .bd-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .bd-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } .bd-footer { padding-top: 48px; } }

/* ---------- 404 ---------- */
.bd-404 { padding: 96px 0 120px; }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  .bd-site *, .bd-site *::before, .bd-site *::after { transition: none !important; animation: none !important; }
}
@media print {
  .bd-header, .bd-footer, .bd-band, .bd-related, .bd-post__aside, .bd-share, .bd-post__foot, .bd-postnav, .bd-progress, .bd-hero__glow { display: none !important; }
  .bd-post__layout { display: block; padding: 0; }
  .bd-prose { font-size: 12pt; }
  .bd-prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
