/* CPG Canary, the shared look. Edited by hand. Every page loads this file.
   Dark stages lit by one soft pool of warm light, white reading surfaces
   between them, and canary yellow as the only accent, only ever on the dark.
   Deep slate (Nov 13 2026, evening): a matte grey-blue taken from the BluM
   sample pack, tried in place of the coal chosen that morning. The tokens
   keep the name --coal-* so the change is one small diff. Not navy: navy
   with a yellow bird sat too close to another firm's branding.
   The homepage adds /home-v4/v4.css on top; other pages add their own
   small stylesheet where they need one. */

:root {
  --coal-950: #2A3546;
  --coal-900: #323F53;
  --coal-800: #3B4A61;
  --coal-700: #485A75;
  --glow: #5E718C;
  --glow-2: #E9E2D0;
  --canary: #F2C230;
  --canary-soft: #FFE89A;
  --canary-wash: #FFF8DC;
  --ink: #1D1F22;
  --muted: #5F6368;
  --line: #E3E1DC;
  --mist: #F3F2EF;
  --white: #FFFFFF;
  --display: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.42, 0, .58, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
mark { background: var(--canary-soft); color: var(--ink); padding: 0 .15em; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--canary); outline-offset: 3px; }
.sec--white :focus-visible, .sec--mist :focus-visible { outline-color: var(--coal-700); }

/* ── Type ─────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 8.6vw, 62px); line-height: 1.06; letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.display--md { font-size: clamp(30px, 6.4vw, 48px); }
.display--sm { font-size: clamp(25px, 5.2vw, 36px); line-height: 1.12; }
.eyebrow { font-family: var(--display); font-weight: 600; font-style: italic; font-size: clamp(16px, 3.9vw, 21px); line-height: 1.3; color: var(--canary); letter-spacing: .01em; }
.lead { font-size: clamp(18px, 4.3vw, 21px); line-height: 1.5; color: #EFEEED; max-width: 34em; }
.title { font-family: var(--display); font-weight: 800; font-size: clamp(29px, 6.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--coal-800); text-wrap: balance; }
.title--light { color: var(--white); }
.title--sm { font-size: clamp(25px, 5vw, 34px); }
.sub { color: var(--muted); font-size: clamp(17px, 4vw, 19px); max-width: 44em; }
.sub--sm { font-size: 16px; }
.textlink { color: var(--coal-700); font-weight: 600; text-underline-offset: 3px; }

/* ── Buttons ──────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .3s ease, background-color .2s ease; }
.pill--white { background: var(--white); color: var(--coal-800); border-color: var(--coal-800); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.pill--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.pill--coal { background: var(--coal-800); color: var(--white); border-color: var(--coal-800); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.pill--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Stages: coal with one pool of light ──────────── */
.stage { position: relative; background-color: var(--coal-900); color: var(--white); overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage--hero::before { background: radial-gradient(130% 56% at 50% 80%, rgba(255, 246, 225, .20) 0, rgba(255, 232, 185, .10) 28%, rgba(50, 63, 83, 0) 64%); }
.stage--who::before { background: radial-gradient(110% 46% at 50% 22%, rgba(255, 246, 225, .20) 0, rgba(255, 232, 185, .10) 28%, rgba(50, 63, 83, 0) 64%); }
.stage--close::before { background: radial-gradient(90% 60% at 50% 58%, rgba(255, 246, 225, .20) 0, rgba(255, 232, 185, .10) 30%, rgba(50, 63, 83, 0) 66%); }

/* ── Nav ──────────────────────────────────────────── */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.nav__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 700; font-size: 19px; margin-right: auto; }
.nav__links { display: none; gap: 28px; font-weight: 600; font-size: 16px; }
.nav__links a { color: var(--white); text-decoration: none; padding: 10px 2px; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--canary); text-decoration-thickness: 2px; }
.nav__signin { min-height: 44px; padding: 8px 20px; font-size: 16px; }

/* ── Closing panel and footer ─────────────────────── */
.glass { border-radius: 48px; padding: clamp(36px, 8vw, 72px) clamp(22px, 6vw, 64px); text-align: center; display: grid; gap: 18px; justify-items: center; background: linear-gradient(135deg, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, .12) 60%, rgba(233, 226, 208, .2) 100%); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass p { color: var(--white); font-weight: 600; max-width: 30em; }
.foot { margin-top: clamp(40px, 8vw, 72px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.foot .brand { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-weight: 600; }
.foot nav a { color: var(--white); text-decoration: none; padding: 8px 2px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot p { color: #E4E3E2; font-size: 14.5px; max-width: 46em; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 22px; }
.foot p a { color: var(--white); }

@media (min-width: 960px) {
  body { font-size: 18px; }
  .nav__links { display: flex; }
  .brand { margin-right: 24px; }
  .nav__links { margin-right: auto; }
}

/* Moving from one page to the next cross-fades instead of flashing white.
   Both pages must carry this rule, so it lives here and in the Nonna Fiora
   stylesheet. Browsers without support load the page as before, and it is
   off for anyone who has asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ════════════════════════════════════════════════════════════════════
   Everything below is for the pages that are not the homepage: guides,
   tools, questions, dates, the advisors page, comparisons, sample reports
   and the legal pages. They share the homepage's header, its coal band and
   its closing panel, then read on white.
   ════════════════════════════════════════════════════════════════════ */

/* Names the older page stylesheets still use, pointed at the shared tokens */
:root {
  --accent: var(--coal-700);
  --on-accent: #FFFFFF;
  --font: var(--body);
  --ground: #FFFFFF;
  --tint: var(--mist);
  --mark: var(--canary-soft);
  --gut: var(--gutter);
  --gap: clamp(20px, 3vw, 48px);
  --padt: clamp(48px, 8vw, 88px);
  --padb: clamp(48px, 8vw, 88px);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --t-h2: clamp(25px, 4.6vw, 36px);
  --t-h3: clamp(19px, 2.6vw, 22px);
  --t-body: 17px;
  --t-lead: clamp(18px, 2.4vw, 20px);
  --t-ui: 16px;
  --t-sm: 14.5px;
}

.page { overflow-x: hidden; --muted: #5C5954; }
.page main { display: block; }
.page :focus-visible { outline: 3px solid var(--coal-700); outline-offset: 3px; }
.page .stage :focus-visible, .page header.nav :focus-visible { outline-color: var(--canary); }

/* ── The band: the page's title on coal, under the shared header ── */
.stage--band::before { background: radial-gradient(70% 120% at 88% 118%, rgba(255, 246, 225, .20) 0, rgba(255, 232, 185, .10) 34%, rgba(50, 63, 83, 0) 70%); }
.page .stage--band { padding-block: 108px 40px; min-height: 0; }
.band__in { display: grid; gap: 14px; justify-items: start; max-width: 60rem; }
.page .stage--band h1 { font-family: var(--display); font-weight: 800; font-size: clamp(29px, 6.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--white); text-wrap: balance; max-width: 22em; margin: 0; }
.band__crumb, .band__tag { font-family: var(--display); font-weight: 600; font-style: italic; font-size: clamp(15px, 3.6vw, 18px); line-height: 1.3; color: var(--canary); margin: 0; }
.band__tag { font-style: normal; font-size: 13.5px; letter-spacing: .08em; }
.band__crumb a { color: var(--white); text-underline-offset: 3px; }
.band__meta { color: #E4E3E2; font-size: 15px; margin: 0; }
.page .stage--band .lead { color: #EFEEED; font-size: clamp(17px, 4vw, 20px); line-height: 1.5; max-width: 38em; margin: 0; }
.page .stage--band a:not(.pill):not(.btn):not(.jump a) { color: var(--white); text-underline-offset: 3px; }
.page .stage--band p { color: #EFEEED; }
.page .stage--band .note, .page .stage--band .sub { color: #E4E3E2; }
.page .stage--band .band__crumb, .page .stage--band .band__tag { color: var(--canary); }
@media (min-width: 960px) { .page .stage--band { padding-block: 124px 52px; } }

/* ── The closing panel and the footer, on every page ── */
.page .stage--close { padding-block: clamp(48px, 9vw, 88px) 40px; }
/* a slightly thinner veil than the homepage's: these panels carry a sentence or two of small white text */
.page .glass { background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .08) 60%, rgba(233, 226, 208, .12) 100%); }
.page .glass h2 { margin: 0; }
.page .glass .display { font-family: var(--display); font-weight: 800; color: var(--white); }
.page .glass p { margin: 0; }
.page .glass .aside { font-weight: 600; font-size: 15.5px; color: var(--white); }
.stage--close.stage--plain .foot { margin-top: 0; }

/* ── Reading pages: guides, comparisons, glossary, sample index ── */
.guide-wrap { max-width: 780px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.guide-body { color: var(--ink); font-size: 1.05rem; line-height: 1.72; padding: 40px 0 72px; }
.guide-body h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 4.4vw, 1.6rem); line-height: 1.2; color: var(--coal-800); margin: 42px 0 14px; letter-spacing: -0.01em; }
.guide-body h3 { font-family: var(--body); font-weight: 700; font-size: 1.14rem; color: var(--coal-700); margin: 28px 0 10px; }
.guide-body p { margin: 0 0 16px; }
.guide-body ul, .guide-body ol { margin: 0 0 18px 22px; padding: 0; }
.guide-body ul { list-style: disc; }
.guide-body ol { list-style: decimal; }
.guide-body li { margin-bottom: 9px; }
.guide-body a { color: var(--coal-700); font-weight: 600; text-underline-offset: 3px; }
.guide-body a:hover { color: var(--coal-950); }
.guide-body strong { color: var(--coal-950); font-weight: 700; }
.guide-meta { font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 30px; }
.guide-tldr { background: var(--mist); border-left: 4px solid var(--canary); border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 0 0 30px; }
.guide-tldr p { margin: 0; }
.guide-photo { margin: 0 0 28px; }
.guide-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; background: var(--mist); }
.guide-photo figcaption { margin-top: 8px; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.guide-card__img { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -24px -24px 18px; border-radius: 24px 24px 0 0; background: var(--mist); }
.guide-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 18px; font-size: .94rem; }
.guide-table th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--coal-800); white-space: nowrap; }
.guide-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-related { margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.guide-faq details { border-top: 1px solid var(--line); }
.guide-faq details:last-child { border-bottom: 1px solid var(--line); }
.guide-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--coal-800); font-size: 1.02rem; }
.guide-faq p { padding: 0 0 16px; color: var(--muted); }
.guide-grid__note { margin: 18px 0 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 8px; }
.guide-card { display: block; background: var(--white); border: 1.5px solid var(--line); border-radius: 26px; padding: 24px; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.guide-card:hover { border-color: var(--coal-700); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.guide-body .guide-card { font-weight: 400; }
.guide-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--coal-700); display: block; margin-bottom: 10px; }
.guide-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.14rem; color: var(--coal-800); margin: 0 0 9px; line-height: 1.3; letter-spacing: 0; }
.guide-card p { font-size: .94rem; line-height: 1.55; color: var(--muted); margin: 0; }
.page details > summary { list-style: none; }
.page details > summary::-webkit-details-marker { display: none; }

/* ── Section pages: advisors, questions, dates, the newer tools ── */
.page--sections { font-size: var(--t-body); line-height: 1.6; }
.page--sections main > section { padding-block: var(--padt) var(--padb); position: relative; min-height: 0; }
.page--sections h2 { font-family: var(--display); font-weight: 800; font-size: var(--t-h2); line-height: 1.14; letter-spacing: -0.02em; color: var(--coal-800); text-wrap: balance; }
.page--sections h3 { font-family: var(--body); font-weight: 700; font-size: var(--t-h3); line-height: 1.3; color: var(--ink); }
.page--sections .lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 34em; }
.page--sections .sub { color: var(--muted); max-width: 34em; font-size: var(--t-body); }
.page--sections .note { font-size: var(--t-sm); color: var(--muted); }
.page--sections .stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.page--sections .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); align-items: start; }
.page--sections .split > * { min-width: 0; }
@media (min-width: 900px) {
  .page--sections .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .page--sections .split > .a { grid-column: 1 / span 5; }
  .page--sections .split > .b { grid-column: 7 / span 6; }
}
.link { color: var(--coal-700); font-weight: 600; text-underline-offset: 3px; }
.link:hover { color: var(--coal-950); }
.stage .link:not(.jump a) { color: var(--white); }

/* The older button names, drawn as the homepage's pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16.5px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .3s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.btn--primary { background: var(--coal-800); color: var(--white); border-color: var(--coal-800); }
.btn--secondary, .btn--quiet { background: var(--white); color: var(--coal-800); border-color: var(--coal-800); }
.stage .btn--primary { background: var(--white); color: var(--coal-800); border-color: var(--coal-800); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }

.quote { margin: 0; padding: clamp(22px, 3vw, 40px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: var(--t-lead); line-height: 1.5; font-weight: 500; max-width: 36em; }
.quote figcaption { margin-top: 1.1em; font-size: var(--t-ui); font-weight: 600; color: var(--muted); }
.page--sections .incl { list-style: none; margin: 0; padding: 0; display: block; }
.page--sections .incl li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px var(--gap); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.page--sections .incl li:first-child { border-top: 1px solid var(--line); }
.page--sections .incl p { color: var(--muted); }
@media (min-width: 700px) { .page--sections .incl li { grid-template-columns: minmax(0, 13em) minmax(0, 1fr); } }
.page--sections .faq details { border-bottom: 1px solid var(--line); }
.page--sections .faq details:first-child { border-top: 1px solid var(--line); }
.page--sections .faq summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1em; min-height: 44px; padding: 16px 0; font-size: var(--t-h3); font-weight: 700; color: var(--coal-800); }
.page--sections .faq summary::after { content: "+"; flex: 0 0 auto; font-weight: 500; color: var(--coal-700); font-size: 1.3em; line-height: 1; }
.page--sections .faq details[open] summary::after { content: "\2212"; }
.page--sections .faq details p { padding: 0 0 16px; color: var(--muted); max-width: 40em; }

/* ── Tools and the other older pages keep their own layout; this gives
      them the shared surface ── */
.page--tool, .page--read, .page--legal { background: var(--white); color: var(--ink); font-family: var(--body); }
.page--tool input, .page--tool select, .page--tool textarea, .page--tool button { font-family: var(--body); }
.page--tool .tool-stage { padding-top: 28px; }
.page--tool h2, .page--legal h2 { font-family: var(--display); }
.legal-wrap { max-width: 780px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page table { max-width: 100%; }

@media print {
  .nav, .stage--close { display: none; }
  .page .stage--band { background: none; color: #000; padding-block: 0 12px; }
  .page .stage--band h1, .band__crumb, .band__tag, .band__meta, .page .stage--band .lead { color: #000; }
}
