/* ============================================================
   PUBLICATION family — advertorial + about
   Reference: finance/editorial listicle — white bg, navy heads,
   blue links, numbered sections, disclosure ribbon, badge pills.
   ============================================================ */

:root {
  --pub-bg: #ffffff;
  --pub-ink: #14213f;
  --pub-ink-soft: #4b5670;
  --pub-accent: #1a56db;
  --pub-accent-dark: #123f9e;
  --pub-line: #e5e8f0;
  --pub-surface: #f5f7fb;
  --pub-badge-bg: #e7f7ea;
  --pub-badge-ink: #206c39;
}

body.pub {
  background: var(--pub-bg);
  color: var(--pub-ink-soft);
}

/* ---------- Header ---------- */
.pub-header {
  border-bottom: 1px solid var(--pub-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.pub-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.pub-header__brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--pub-ink);
  letter-spacing: -0.01em;
}
.pub-header__brand span { color: var(--pub-accent); }
.pub-nav {
  display: none;
}
.pub-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pub-ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
}
.pub-nav a:hover { color: var(--pub-accent); background: var(--pub-surface); }

.pub-mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--pub-line);
  padding: 10px 0 16px;
}
.pub-mobile-nav.is-open { display: flex; }
.pub-mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--pub-ink);
  border-bottom: 1px solid var(--pub-line);
}

@media (min-width: 768px) {
  .pub-nav { display: flex; gap: 4px; }
  .pub-mobile-nav, .pub-header .nav-toggle { display: none; }
}

/* ---------- Disclosure ribbon ---------- */
.pub-ribbon {
  background: var(--pub-surface);
  padding: 10px 0;
  font-size: 13px;
}
.pub-ribbon a { color: var(--pub-accent-dark); font-weight: 700; text-decoration: underline; }

.pub-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
}
.pub-badge {
  display: inline-flex;
  align-items: center;
  background: var(--pub-badge-bg);
  color: var(--pub-badge-ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- Article header ---------- */
.pub-article-head { padding: 18px 0 8px; }
.pub-h1 {
  font-size: clamp(28px, 6.5vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--pub-ink);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.pub-subhead {
  font-size: clamp(16px, 2.6vw, 19px);
  color: var(--pub-ink-soft);
  max-width: 680px;
  margin-bottom: 18px;
}
.pub-subhead strong { color: var(--pub-ink); }

.pub-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--pub-line);
  margin-bottom: 26px;
  font-size: 13.5px;
  color: var(--pub-ink-soft);
}
.pub-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pub-accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pub-byline strong { color: var(--pub-ink); }
.pub-byline .dot { opacity: 0.5; }
.pub-factcheck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #206c39;
}
.pub-factcheck::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #206c39;
}

/* ---------- Hero media ---------- */
.pub-hero-media { margin-bottom: 30px; }
.pub-hero-media img {
  width: 100%;
  border-radius: 14px;
}

/* ---------- Article body ---------- */
.pub-article { padding-bottom: 12px; }
.pub-article > * + * { margin-top: 20px; }
.pub-article p { font-size: 17px; line-height: 1.7; color: var(--pub-ink-soft); }
.pub-article p a { color: var(--pub-accent); font-weight: 700; text-decoration: underline; }
.pub-article h2 {
  font-size: clamp(23px, 4.5vw, 30px);
  font-weight: 800;
  color: var(--pub-ink);
  line-height: 1.2;
  margin-top: 40px !important;
}
.pub-article h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--pub-ink);
  margin-top: 28px !important;
}
.pub-section-kicker {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pub-accent-dark);
  margin-top: 36px !important;
}

/* Numbered list sections (listicle-style deliverables list) */
.pub-numbered { display: flex; flex-direction: column; gap: 22px; margin-top: 22px !important; }
.pub-numbered__item { display: flex; gap: 16px; }
.pub-numbered__num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pub-ink);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-numbered__body h3 { margin-top: 0 !important; font-size: 18px; }
.pub-numbered__body p { font-size: 15.5px; margin-top: 6px; }

/* Inline text CTA */
.pub-inline-cta {
  display: block;
  background: var(--pub-surface);
  border: 1.5px solid var(--pub-line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 26px !important;
}
.pub-inline-cta a {
  color: var(--pub-accent-dark);
  font-weight: 800;
  font-size: 16.5px;
  text-decoration: underline;
}
.pub-inline-cta p { margin-top: 6px; font-size: 14.5px; }

/* Worked example card */
.pub-example {
  background: var(--pub-ink);
  color: #fff;
  border-radius: 16px;
  padding: 26px 22px;
  margin-top: 30px !important;
}
.pub-example h3 { color: #fff; margin-top: 0 !important; font-size: 20px; }
.pub-example p { color: #cfd6ea; }
.pub-example__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.pub-example__row:last-child { border-bottom: none; }
.pub-example__label { font-size: 14.5px; color: #cfd6ea; }
.pub-example__value { font-size: 19px; font-weight: 800; color: #a9e0b3; }

/* Figure strip */
.pub-figstrip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px !important;
}
.pub-figcard {
  background: var(--pub-surface);
  border: 1.5px solid var(--pub-line);
  border-radius: 12px;
  padding: 16px 18px;
}
.pub-figcard__label { font-size: 13.5px; color: var(--pub-ink-soft); font-weight: 600; }
.pub-figcard__value { font-size: 22px; font-weight: 800; color: var(--pub-ink); margin-top: 4px; }
.pub-figcard__note { font-size: 12.5px; color: var(--pub-ink-soft); margin-top: 4px; }

@media (min-width: 640px) {
  .pub-figstrip { grid-template-columns: repeat(3, 1fr); }
}

/* AI-leverage full-width callout band (mid-callout placement) */
.pub-callout-band {
  background: linear-gradient(135deg, #103a20, #1a5e33);
  color: #fff;
  border-radius: 18px;
  padding: 30px 22px;
  margin-top: 34px !important;
}
.pub-callout-band__kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pub-callout-band h3 { color: #fff; font-size: clamp(21px, 4vw, 27px); margin-top: 0 !important; }
.pub-callout-band p { color: #dcf3e2; margin-top: 10px; font-size: 16px; }
.pub-callout-band .media-frame { margin-top: 18px; }

/* Trust badge row (accent-borrowed treatment) */
.pub-trustrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px !important;
}
.pub-trustrow .pub-badge { font-size: 13px; padding: 8px 14px; }

/* FAQ (accent-borrowed accordion styling) */
.pub-faq { margin-top: 20px !important; }
.pub-faq .accordion-trigger { color: var(--pub-ink); }
.pub-faq .accordion-trigger .accordion-icon { color: var(--pub-accent); }
.pub-faq .accordion-panel p { color: var(--pub-ink-soft); }

/* PS note close */
.pub-ps {
  border-left: 4px solid var(--pub-accent);
  padding: 4px 0 4px 18px;
  margin-top: 30px !important;
  font-size: 16px;
  font-style: italic;
  color: var(--pub-ink-soft);
}

/* Sticky CTA bar (mobile) */
.pub-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1.5px solid var(--pub-line);
  padding: 10px 16px;
  z-index: 60;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
}
.pub-sticky-cta .btn { width: 100%; }
body.pub { padding-bottom: 76px; }
@media (min-width: 1024px) {
  .pub-sticky-cta { display: none; }
  body.pub { padding-bottom: 0; }
}

/* Buttons — publication palette */
.pub .btn-primary, .btn-pub-primary {
  background: var(--pub-accent);
  color: #fff;
}
.btn-pub-primary:hover { background: var(--pub-accent-dark); }

/* Disclaimer / footer colours for publication family */
.pub-disclaimer { background: var(--pub-surface); color: var(--pub-ink-soft); }
.pub-disclaimer .wrap { border-top-color: var(--pub-line); }
.pub-footer { background: #fff; color: var(--pub-ink-soft); border-top: 1px solid var(--pub-line); }
.pub-footer .site-footer__links a { color: var(--pub-ink); }

/* About page prose */
.pub-prose h2 { font-size: 24px; font-weight: 800; color: var(--pub-ink); margin-top: 30px !important; }
.pub-prose p { font-size: 16.5px; margin-top: 14px; }
.pub-prose ul { margin-top: 14px; padding-left: 20px; }
.pub-prose li { font-size: 16px; margin-top: 8px; }
.pub-page-head { padding: 34px 0 10px; }
.pub-page-head h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: var(--pub-ink); }
.pub-page-head p { margin-top: 10px; font-size: 16px; color: var(--pub-ink-soft); max-width: 640px; }
.pub-page-body { padding: 12px 0 40px; }
