
/* Financial Stream flagship article pages — scoped to .flagship-article */
.flagship-article {
  --fs-ink: #10243d;
  --fs-muted: #52657a;
  --fs-blue: #1f5f91;
  --fs-blue-strong: #164a75;
  --fs-blue-soft: #eaf3f9;
  --fs-line: #d7e2eb;
  --fs-paper: #ffffff;
  --fs-warm: #f7f5f0;
  --fs-good: #17654a;
  --fs-warn: #8b4c17;
  color: var(--fs-ink);
  background: #f7fafc;
}
.flagship-article *, .flagship-article *::before, .flagship-article *::after { box-sizing: border-box; }
.flagship-shell > .container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.flagship-article .skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 10000; transform: translateY(-160%);
  padding: 12px 16px; border-radius: 8px; background: #fff; color: var(--fs-blue-strong);
  box-shadow: 0 8px 24px rgba(16,36,61,.2); font-weight: 700;
}
.flagship-article .skip-link:focus { transform: none; }
.flagship-article :focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }
.flagship-shell a { overflow-wrap: anywhere; }
.flagship-article .flagship-shell { padding: 28px 0 96px; }
.flagship-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 28px;
  color: var(--fs-muted); font-size: .88rem;
}
.flagship-breadcrumbs a { color: var(--fs-blue-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.flagship-breadcrumbs a::after { content: "/"; margin-left: 12px; color: #90a0af; }
.flagship-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  gap: 44px; align-items: end; padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--fs-line); border-radius: 28px; background:
    radial-gradient(circle at 88% 15%, rgba(70,145,190,.17), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f3f8fb 58%, #edf4f8 100%);
  box-shadow: 0 24px 70px rgba(31,95,145,.11);
}
.flagship-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(31,95,145,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(31,95,145,.045) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(to left, #000, transparent 72%);
}
.flagship-hero > * { position: relative; z-index: 1; min-width: 0; }
.flagship-article .eyebrow, .p0-kicker {
  margin: 0 0 12px; color: var(--fs-blue); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.flagship-hero h1 {
  margin: 0; max-width: 900px; color: var(--fs-ink); font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: clamp(2.25rem, 4.4vw, 4.75rem); line-height: 1.04; letter-spacing: -.045em;
}
.hero-deck { max-width: 780px; margin: 24px 0 0; color: #344b61; font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.65; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.article-meta-row span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #cddde8;
  border-radius: 999px; background: rgba(255,255,255,.76); color: #3d5367; font-size: .84rem; font-weight: 650;
}
.hero-control { min-height: 240px; display: grid; grid-template-columns: repeat(3, 58px); gap: 24px; place-content: center; position: relative; }
.hero-control__line { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #6fa3c4, transparent); }
.hero-control__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid #a9c6d9; background: rgba(255,255,255,.92); color: var(--fs-blue-strong);
  box-shadow: 0 10px 26px rgba(31,95,145,.12); font-weight: 800;
}
.flagship-layout { min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(38px, 4.5vw, 54px); align-items: start; margin-top: 58px; justify-content: stretch; }
.toc-rail { min-width: 0; width: 100%; }
.article-toc {
  position: static; max-height: none; overflow: visible; padding: 24px 26px;
  border: 1px solid var(--fs-line); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 14px 36px rgba(16,36,61,.06);
}
.toc-title { margin: 0 0 12px; font-weight: 800; color: var(--fs-ink); }
.article-toc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px 18px; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc a {
  display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 7px; padding: 9px 8px; border-radius: 8px;
  color: #40566a; font-size: .88rem; line-height: 1.4; text-decoration: none;
}
.article-toc a::before { content: counter(toc, decimal-leading-zero); color: #7391a7; font-variant-numeric: tabular-nums; }
.article-toc a:hover { background: var(--fs-blue-soft); color: var(--fs-blue-strong); }
.flagship-content { min-width: 0; font-size: 1.04rem; line-height: 1.78; color: #263b50; }
.flagship-layout > .flagship-content { width: 100%; max-width: 940px; margin-inline: auto; }
.flagship-content > p:first-of-type { font-size: 1.22rem; line-height: 1.72; color: #1d354b; }
.flagship-content h2 {
  scroll-margin-top: 100px; margin: 76px 0 24px; padding-top: 10px; color: var(--fs-ink);
  font-family: Manrope, Inter, system-ui, sans-serif; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.18; letter-spacing: -.025em;
}
.flagship-content h3 {
  scroll-margin-top: 100px; margin: 42px 0 16px; color: #173854; font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: clamp(1.27rem, 2vw, 1.65rem); line-height: 1.3;
}
.flagship-content h4 { margin: 26px 0 10px; color: #173854; font-size: 1.05rem; line-height: 1.35; }
.flagship-content p { margin: 0 0 20px; }
.flagship-content ul, .flagship-content ol { margin: 0 0 24px; padding-left: 1.35em; }
.flagship-content li { margin: 8px 0; padding-left: .2em; }
.flagship-content a { color: var(--fs-blue-strong); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.flagship-content blockquote {
  margin: 30px 0; padding: 24px 26px; border-left: 5px solid var(--fs-blue);
  border-radius: 0 16px 16px 0; background: #eef6fa; color: #1b3b54;
}
.flagship-content blockquote > :last-child { margin-bottom: 0; }
.source-ref { margin-left: 2px; font-size: .72em; vertical-align: super; line-height: 0; }
.source-ref a { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: #e2eff7; text-decoration: none; font-weight: 800; }
.table-scroll { width: 100%; min-width: 0; max-width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--fs-line); border-radius: 16px; background: #fff; -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.table-scroll th, .table-scroll td { padding: 14px 15px; border-bottom: 1px solid var(--fs-line); vertical-align: top; text-align: left; }
.table-scroll th { background: #eef5f9; color: #173854; font-weight: 800; }
.table-scroll tr:last-child td { border-bottom: 0; }

.p0-system {
  margin: 28px 0 46px; padding: clamp(22px, 4vw, 38px); border: 1px solid #cddde8; border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f4f8fb); box-shadow: 0 18px 50px rgba(31,95,145,.08);
}
.p0-heading { max-width: 760px; margin-bottom: 24px; }
.p0-heading h3 { margin: 0 0 12px; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.p0-heading p { margin: 0; color: #486074; }
.chain-flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.chain-flow::before { content: ""; position: absolute; left: 5%; right: 5%; top: 28px; height: 2px; background: #a9c8dc; }
.chain-flow li {
  position: relative; z-index: 1; min-width: 0; margin: 0; padding: 0 7px 16px; text-align: center;
}
.chain-flow li > span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border: 2px solid #78a8c6; border-radius: 50%; background: #fff; color: var(--fs-blue-strong); font-weight: 800; }
.chain-flow strong { display: block; color: #16344d; font-size: .94rem; line-height: 1.3; }
.chain-flow p { margin: 7px 0 0; color: #5a6d7f; font-size: .78rem; line-height: 1.4; }
.exception-band, .escalation-band { margin-top: 20px; padding: 18px 20px; border: 1px dashed #8eb4ca; border-radius: 14px; background: #eaf4f8; }
.exception-band p, .escalation-band p { margin: 5px 0 0; font-size: .92rem; line-height: 1.55; }
.feedback-loop { margin: 18px 0 0 !important; padding: 13px 16px; border-radius: 12px; background: #fff; color: #29445b; font-size: .9rem; text-align: center; }
.review-grid, .flag-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.review-card, .flag-card, .route-card {
  min-width: 0; margin: 0; padding: 20px; border: 1px solid #d4e1ea; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(16,36,61,.04);
}
.review-card h4, .flag-card h4, .route-card h4 { margin: 0 0 14px; color: #173854; font-size: 1.03rem; }
.review-card dl, .flag-card dl, .route-card dl { margin: 0; display: grid; gap: 12px; }
.review-card dl > div, .flag-card dl > div, .route-card dl > div { min-width: 0; }
.review-card dt, .flag-card dt, .route-card dt { color: #647789; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.review-card dd, .flag-card dd, .route-card dd { margin: 3px 0 0; color: #294056; font-size: .88rem; line-height: 1.52; }
.signal-good { padding-left: 10px; border-left: 3px solid #54a487; }
.signal-warn { padding-left: 10px; border-left: 3px solid #d28a4a; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.route-formula { margin: 0 0 8px !important; color: var(--fs-blue); font-size: .78rem; font-weight: 800; line-height: 1.4; }
.flag-card {
  display: grid; grid-template-columns: 32px minmax(0,1fr); column-gap: 12px; align-items: start;
}
.flag-card > * { min-width: 0; max-width: 100%; }
.flag-index {
  position: static; grid-column: 1; grid-row: 1; display: grid; place-items: center;
  width: 28px; height: 28px; margin-top: 1px; border: 1px solid #d7a778; border-radius: 50%;
  background: #fff7ed; color: #87430f; font-size: .8rem; font-weight: 800;
}
.flag-card h4 { grid-column: 2; grid-row: 1; margin: 0 0 14px; overflow-wrap: anywhere; }
.flag-card dl { grid-column: 1 / -1; }
.faq-details { display: grid; gap: 10px; margin: 24px 0 36px; }
.faq-detail { border: 1px solid var(--fs-line); border-radius: 14px; background: #fff; }
.faq-detail summary { cursor: pointer; padding: 18px 54px 18px 20px; color: #173854; font-weight: 800; list-style: none; position: relative; }
.faq-detail summary::-webkit-details-marker { display: none; }
.faq-detail summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--fs-blue); }
.faq-detail[open] summary::after { content: "−"; }
.faq-detail > div { padding: 0 20px 18px; }
.faq-detail > div > :last-child { margin-bottom: 0; }
.source-notes { margin-top: 78px; padding: 30px; border: 1px solid var(--fs-line); border-radius: 20px; background: #f8fafb; }
.source-notes h2 { margin-top: 0; }
.source-notes ol { list-style: none; padding: 0; display: grid; gap: 11px; }
.source-notes li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; align-items: start; margin: 0; }
.source-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dcecf5; color: #184e75; font-size: .78rem; font-weight: 800; }
.next-step-cta {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; margin-top: 54px; padding: 30px;
  border-radius: 22px; background: #153f61; color: #fff;
}
.next-step-cta h2 { margin: 0 0 10px; padding: 0; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.next-step-cta p { margin: 0; color: #dceaf3; }
.next-step-cta .eyebrow { color: #b9d8e9; }
.next-step-cta .btn { white-space: nowrap; }
.flagship-shell .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px;
  border-radius: 10px; text-decoration: none; font-weight: 800;
}
.flagship-shell .btn-primary { background: #1f6d9f; color: #fff; border: 1px solid #1f6d9f; }
.flagship-shell .btn-primary:hover { background: #174f76; }

@media (min-width: 821px) {
  .flagship-content { font-size: 1.1rem; line-height: 1.76; }
}
@media (max-width: 1080px) {
  .article-toc ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .flagship-shell > .container { width: min(100% - 28px, 1180px); }
  .flagship-hero { grid-template-columns: 1fr; padding: 34px 26px; border-radius: 22px; }
  .hero-control { min-height: 140px; grid-template-columns: repeat(6, 42px); gap: 8px; }
  .hero-control__node { width: 42px; height: 42px; }
  .hero-control__line { top: 50%; }
  .chain-flow { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 12px; }
  .chain-flow::before { display: none; }
  .review-grid, .flag-grid, .route-grid { grid-template-columns: 1fr; }
  .next-step-cta { grid-template-columns: 1fr; align-items: start; }
  .next-step-cta .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .flagship-shell > .container { width: min(100% - 20px, 1180px); }
  .flagship-article .flagship-shell { padding-top: 10px; }
  .flagship-breadcrumbs { margin: 10px 2px 18px; font-size: .78rem; }
  .flagship-hero { padding: 28px 20px; border-radius: 18px; }
  .flagship-hero h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.08; }
  .hero-deck { font-size: 1rem; }
  .hero-control { min-height: 124px; grid-template-columns: repeat(3, 44px); gap: 12px 22px; }
  .article-meta-row { gap: 7px; }
  .article-meta-row span { font-size: .76rem; }
  .flagship-layout { margin-top: 30px; gap: 28px; }
  .article-toc { padding: 16px; border-radius: 14px; }
  .article-toc ol { grid-template-columns: 1fr; }
  .flagship-content { font-size: 1rem; line-height: 1.72; }
  .flagship-content > p:first-of-type { font-size: 1.08rem; }
  .flagship-content h2 { margin-top: 58px; font-size: 1.72rem; overflow-wrap: anywhere; }
  .flagship-content h3 { margin-top: 34px; font-size: 1.28rem; }
  .p0-system { margin-inline: -2px; padding: 20px 16px; border-radius: 17px; }
  .chain-flow { grid-template-columns: 1fr; text-align: left; }
  .chain-flow li { display: grid; grid-template-columns: 46px minmax(0,1fr); column-gap: 12px; text-align: left; padding: 0; }
  .chain-flow li > span { grid-row: 1 / span 2; width: 42px; height: 42px; margin: 0; }
  .chain-flow strong { align-self: end; }
  .chain-flow p { align-self: start; }
  .review-card, .flag-card, .route-card { padding: 17px; }
  .source-notes { padding: 20px 16px; }
  .next-step-cta { padding: 24px 20px; border-radius: 17px; }
}
@media (max-width: 360px) {
  .flagship-shell > .container { width: min(100% - 16px, 1180px); }
  .flagship-hero { padding-inline: 16px; }
  .flagship-content h2 { font-size: 1.55rem; }
  .flagship-content h3 { font-size: 1.2rem; }
  .p0-system { padding-inline: 13px; }
  .article-meta-row span { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .flagship-article *, .flagship-article *::before, .flagship-article *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .toc-rail, .next-step-cta { display: none !important; }
  .flagship-article { background: #fff; }
  .flagship-hero, .p0-system, .source-notes { box-shadow: none; break-inside: avoid; }
  .flagship-layout { display: block; }
}


/* Mobile shell integration and overflow hardening — article pages only. */
html:has(body.flagship-article),
body.flagship-article { overflow-x: visible; }

.flagship-shell,
.flagship-shell > .container,
.flagship-hero,
.flagship-layout,
.flagship-content,
.p0-system,
.review-grid,
.flag-grid,
.route-grid,
.next-step-cta,
.next-step-cta > *,
.review-card,
.flag-card,
.route-card,
.source-notes,
.faq-details,
.faq-detail {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.flagship-content h1,
.flagship-content h2,
.flagship-content h3,
.flagship-content h4,
.flagship-content p,
.flagship-content li,
.flagship-content dt,
.flagship-content dd,
.flagship-content a,
.next-step-cta h2,
.next-step-cta p,
.next-step-cta a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.flagship-shell .btn,
.next-step-cta .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.flagship-article .site-header,
.flagship-article .footer { max-width: 100%; }
.flagship-article .site-header .container,
.flagship-article .footer .container { min-width: 0; }
.flagship-article .footer a,
.flagship-article .footer li,
.flagship-article .footer p { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .next-step-cta { width: 100%; }
  .next-step-cta .btn { width: 100%; justify-self: stretch; }
}

@media (max-width: 560px) {
  .flagship-hero,
  .p0-system,
  .source-notes,
  .next-step-cta,
  .review-card,
  .route-card,
  .flag-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .flagship-content h2,
  .next-step-cta h2 { text-wrap: pretty; }
  .next-step-cta h2 { font-size: clamp(1.42rem, 7.2vw, 1.85rem); line-height: 1.16; }
  .next-step-cta .btn { min-height: 50px; padding: 12px 14px; line-height: 1.25; }
  .review-card,
  .route-card,
  .flag-card { padding: 17px 15px; }
  .flag-card { grid-template-columns: 30px minmax(0,1fr); column-gap: 10px; }
  .flag-card h4 { font-size: 1rem; line-height: 1.32; }
  .review-card dd,
  .flag-card dd,
  .route-card dd { overflow-wrap: anywhere; }
  .source-notes li { min-width: 0; }
  .source-notes a { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .flagship-hero { padding-inline: 14px; }
  .p0-system,
  .source-notes,
  .next-step-cta { padding-inline: 13px; }
  .next-step-cta h2 { font-size: 1.36rem; }
  .flag-card { padding-inline: 13px; }
}
