/* =========================================================
   publication.css — "Modern Signal" editorial design family
   Used by: index.html (advertorial), about/index.html
   Primary reference: finance listicle publication (white bg,
   navy headlines, blue accent, numbered sections, hero photo).
   Accent borrow: stat/figure band styling + hero media rhythm.
   ========================================================= */

:root {
  --pub-bg: #ffffff;
  --pub-bg-alt: #f3f5fb;
  --pub-ink: #172142;
  --pub-ink-soft: #4d5670;
  --pub-blue: #1d4ed8;
  --pub-blue-dark: #14318f;
  --pub-line: #e3e7f1;
  --pub-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.pub {
  background: var(--pub-bg);
  color: var(--pub-ink);
  font-family: var(--pub-font);
  line-height: 1.6;
}

/* ---------- header ---------- */
.pub-header {
  border-bottom: 1px solid var(--pub-line);
  padding: 16px 0;
}
.pub-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.pub-header__logo {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--pub-ink);
  letter-spacing: -.01em;
}
.pub-header__logo span { color: var(--pub-blue); }
.pub-header__nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}
.pub-header__nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--pub-ink-soft);
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.pub-header__nav a:hover { color: var(--pub-blue); border-color: var(--pub-blue); }

/* ---------- ribbon / disclosure ---------- */
.pub-ribbon { padding-top: 22px; }
.pub-ribbon__disclosure {
  color: var(--pub-blue);
  font-size: 13px;
  text-decoration: underline;
  font-weight: 600;
}
.pub-ribbon__kicker {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pub-ink-soft);
}

/* ---------- hero / H1 ---------- */
.pub-hero { padding-top: 14px; }
.pub-hero h1 {
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--pub-ink);
}
.pub-hero__answer {
  margin-top: 16px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--pub-ink-soft);
  max-width: 68ch;
}
.pub-hero__subH2 {
  margin-top: 26px;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  color: var(--pub-blue-dark);
  line-height: 1.25;
}
.pub-hero__subtext {
  margin-top: 10px;
  max-width: 70ch;
  color: var(--pub-ink);
}

/* ---------- byline ---------- */
.pub-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 13.5px;
  color: var(--pub-ink-soft);
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pub-line);
}
.pub-byline strong { color: var(--pub-ink); }
.pub-byline__badge {
  background: var(--pub-bg-alt);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
}

/* ---------- figure / hero image ---------- */
.pub-figure { margin-top: 22px; }
.pub-figure img {
  width: 100%;
  border-radius: 14px;
}
.pub-figure figcaption {
  font-size: 13px;
  color: var(--pub-ink-soft);
  margin-top: 8px;
}

/* ---------- article body ---------- */
.pub-article { padding-block: 34px 8px; }
.pub-article > * + * { margin-top: 20px; }
.pub-article p { max-width: 74ch; }
.pub-article h2 {
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--pub-ink);
  margin-top: 44px !important;
}
.pub-article h2 .num {
  color: var(--pub-blue);
  margin-right: 8px;
}
.pub-article h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--pub-ink);
}
.pub-article a { color: var(--pub-blue); font-weight: 600; }
.pub-article ul.pub-list {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 74ch;
}
.pub-article ul.pub-list li {
  position: relative;
  padding-left: 30px;
}
.pub-article ul.pub-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--pub-blue);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- stat / figure band (accent borrow) ---------- */
.stat-band {
  background: var(--pub-bg-alt);
  border-radius: 16px;
  padding: 24px 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 640px) {
  .stat-band { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.stat-band__item { display: flex; flex-direction: column; gap: 4px; }
.stat-band__num {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--pub-blue-dark);
}
.stat-band__label { font-size: 13.5px; color: var(--pub-ink-soft); }

/* ---------- takeaway box ---------- */
.takeaway {
  background: #fff;
  border: 2px solid var(--pub-blue);
  border-radius: 14px;
  padding: 22px;
}
.takeaway__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pub-blue);
  margin-bottom: 10px;
}

/* ---------- rate box re-skin ---------- */
.pub-article .rate-box {
  color: var(--pub-blue-dark);
  background: #fbfcff;
}
.pub-article .rate-box__label { background: var(--pub-blue); color: #fff; }
.pub-article .rate-box strong { color: var(--pub-ink); }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--pub-ink);
  color: #fff;
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { max-width: 56ch; opacity: .92; }
.cta-band .btn {
  background: var(--pub-blue);
  color: #fff;
}
.cta-band .btn:hover { background: #2f5be0; }

/* ---------- video section ---------- */
.pub-video figcaption {
  font-size: 13px;
  color: var(--pub-ink-soft);
  margin-top: 8px;
}

/* ---------- closing summary ---------- */
.pub-closing {
  background: var(--pub-bg-alt);
  border-radius: 16px;
  padding: 26px 22px;
}

/* ---------- disclaimer + footer re-skin ---------- */
body.pub .site-disclaimer {
  background: var(--pub-bg-alt);
  border-radius: 14px;
  margin-inline: 16px;
  color: var(--pub-ink-soft);
}
@media (min-width: 768px) { body.pub .site-disclaimer { margin-inline: auto; } }
body.pub .site-disclaimer a { color: var(--pub-blue-dark); }
body.pub .site-footer {
  background: var(--pub-ink);
  color: #dfe4f5;
}
body.pub .site-footer__links a { color: #cfd7ef; }
body.pub .site-footer__links a:hover { color: #fff; }

/* ---------- about page specifics ---------- */
.pub-about-hero {
  padding-top: 30px;
}
.pub-about-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
}
.pub-mission {
  display: grid;
  gap: 24px;
  padding-block: 30px;
}
@media (min-width: 768px) {
  .pub-mission { grid-template-columns: repeat(3, 1fr); }
}
.pub-mission__card {
  background: var(--pub-bg-alt);
  border-radius: 14px;
  padding: 20px;
}
.pub-mission__card h3 { margin-bottom: 8px; }

/* ---------- responsive tightening ---------- */
@media (max-width: 479px) {
  .pub-header__logo { font-size: 18px; }
}
