/* colour-art:start the static marketing site's palette and rules, copied from site/ and compared with it by tests/test_content_ewp_shell.py: they stay literal and light */
/* ── EWP public shell: the static site's base look, for pages the app renders ──
   Tokens, nav, bar, footer and skip link copy the inline CSS of the static pages (tools.html and the others).
   tests/test_content_ewp_shell.py compares the tokens and nav with site/ so they cannot drift unnoticed. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1A202C; background: #fff; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --navy: #0D2249; --navy-mid: #163469;
  --gold: #C9993A; --gold-lt: #E8C068;
  --light: #F5F7FA; --border: #DDE3EE;
  --muted: #64748B; --white: #ffffff;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: .95rem; transition: all .2s; cursor: pointer; border: 2px solid transparent; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); }

/* BrokerCheck bar */
.brokercheck-bar { background: var(--navy-mid); color: rgba(255,255,255,.85); font-size: .78rem; text-align: center; padding: 8px 24px; }
.brokercheck-bar a { color: var(--gold-lt); text-decoration: underline; font-weight: 600; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo img { height: 65px; width: auto; }
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--gold); font-weight: 600; }
.nav-cta { font-size: .85rem; padding: 10px 22px; }
.nav-phone-btn { display: none; }
.nav-mobile-actions { display: none; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* Footer: the home page's */
.footer {
  background: #070f1f;
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--white); font-weight: 700;
}
.footer-brand-sub {
  font-size: .72rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-brand-text { font-size: .82rem; line-height: 1.8; }
.footer-social {
  display: flex; gap: 12px; margin-top: 20px; align-items: center;
}
.footer-social a:not(.footer-phone-inline) {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .2s; color: rgba(255,255,255,.7);
}
.footer-phone-inline {
  white-space: nowrap; color: rgba(255,255,255,.7);
  font-size: .85rem; text-decoration: none; align-self: center;
}
.footer-phone-inline:hover { color: var(--gold-lt); }
.footer-social a:not(.footer-phone-inline):hover { background: rgba(201,153,58,.3); color: var(--gold-lt); }
.footer-col-title {
  font-size: .8rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .83rem; color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold-lt); }
.footer-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.08);
  margin: 0 0 32px;
}
.footer-legal {
  font-size: .73rem; color: rgba(255,255,255,.55);
  line-height: 1.8;
}
.footer-legal p { margin-bottom: 12px; }
.footer-legal strong { color: rgba(255,255,255,.7); }
.footer-legal a { color: var(--gold); }
.footer-not-fdic {
  display: inline-flex; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 12px 20px;
  margin-bottom: 20px; font-size: .7rem; font-weight: 600;
  color: rgba(255,255,255,.45); letter-spacing: .04em;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-top: 32px;
  font-size: .75rem; color: rgba(255,255,255,.55);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* the home page's phone header: the menu collapses at 1100px and the call button becomes a round one beside the menu button. Logo + 8 links + the
   Schedule button need about 1060px; a narrower cut-off leaves the links wrapped and the button tall. Keep every static page's cut-off the same. */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile-actions { display: flex; }
  .nav-phone-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); text-decoration: none; font-size: 1.1rem; flex-shrink: 0; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); z-index: 99;
  }
  .nav.is-open .nav-links a { font-size: 1rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #fff; color: #0D2249; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #163469; outline-offset: 2px; }
.brokercheck-bar :focus-visible, .nav-cta:focus-visible, .cb-page__header :focus-visible, footer :focus-visible { outline-color: #E8C068; }

/* ── Content pages (pages written in the editor; see blocks.css for the block layout) ── */
main { overflow-x: clip; }
.cb-page { position: relative; isolation: isolate; padding-bottom: 72px; }
.cb-page__header { position: relative; padding: 72px 0 56px; margin-bottom: 48px; color: var(--white); }
.cb-page__header::before {            /* the navy band runs the full width of the window, as on the static pages */
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, #0a1d40 100%);
}
.cb-page__header::after {            /* the faint plus pattern the static page heroes carry */
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* The trail above the page is the same bar the static pages and the seminar pages draw (.crumbs in tools.html): full width, directly under the menu. */
.cb-shell .cb-crumbs { margin: 0 calc(50% - 50vw); background: #f7f6f2; border-bottom: 1px solid #e5e2da; font: 400 .82rem/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.cb-shell .cb-crumbs__inner { max-width: 1140px; margin: 0 auto; padding: 10px 24px; }
.cb-shell .cb-crumbs li + li::before { content: "\203A"; content: "\203A" / ""; margin: 0 8px; color: #5b6472; }
.cb-shell .cb-crumbs a { color: #0D1F52; text-underline-offset: 3px; }
.cb-shell .cb-crumbs a:hover { text-decoration-color: #B07D1C; }
.cb-shell .cb-crumbs [aria-current="page"] { color: #1f2937; font-weight: 600; }
.cb-page__header h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.25; max-width: 820px; }
.cb-page__body { max-width: 760px; }
.cb-page__body h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.3; color: var(--navy); margin: 2.2rem 0 .8rem; }
.cb-page__body h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; line-height: 1.35; color: var(--navy); margin: 1.8rem 0 .6rem; }
.cb-page__body .cb-text { font-size: 1.02rem; }
.cb-page__body .cb-text a, .cb-callout__body a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.cb-page__body .cb-text a:hover, .cb-callout__body a:hover { color: var(--navy); }
.cb-text li { margin-bottom: .35em; }

/* these load after blocks.css, so each is prefixed .cb-page to win on specificity */
.cb-page .cb-callout { border: 1px solid var(--border); border-left: 5px solid var(--navy-mid); border-radius: 8px; background: var(--light); color: #1A202C; padding: 18px 22px; }
.cb-page .cb-callout__label { color: var(--navy); font-size: .75rem; }
.cb-page .cb-callout--important { border-left-color: var(--gold); background: #fff8e6; border-width: 1px 1px 1px 5px; }
.cb-page .cb-callout--disclosure { border-left-color: var(--muted); background: #fff; }

.cb-page .cb-faq__item { border-bottom: 1px solid var(--border); }
.cb-page .cb-faq__item summary { color: var(--navy); padding-right: 24px; }
.cb-page .cb-faq__item summary:focus-visible { outline: 3px solid var(--navy-mid); }
.cb-page .cb-image figcaption { color: #475569; }

.cb-page .cb-table table { color: #1A202C; }
.cb-page .cb-table caption { color: var(--navy); }
.cb-page .cb-table :where(th, td) { border-bottom: 1px solid var(--border); }
.cb-page .cb-table thead :where(th) { background: var(--light); color: var(--navy); border-bottom: 2px solid var(--navy-mid); }
.cb-page .cb-table tbody :where(th) { color: var(--navy); }
.cb-page .cb-table:focus-visible { outline-color: var(--navy-mid); }
.cb-page .cb-button__link--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cb-page .cb-button__link--primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.cb-page .cb-button__link--secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.cb-page .cb-button__link--secondary:hover { background: var(--light); }
.cb-page .cb-button__link:focus-visible { outline-color: var(--navy-mid); }

.cb-page .cb-reviewed { margin-top: 2.5rem; font-size: .85rem; color: #475569; border-top: 1px solid var(--border); padding-top: 1rem; }

/* ── Articles (the post page, the index, the categories) ── */
.cb-page__header .cb-post__meta, .cb-page__header .cb-posts__intro { position: relative; color: rgba(255,255,255,.9); }
.cb-page__header .cb-post__meta a, .cb-page__header .cb-posts__intro a { color: var(--white); }
.cb-page__header .cb-post__meta a:hover { color: #E8C068; }
.cb-page__header .cb-posts__intro { font-size: 1.05rem; line-height: 1.55; }
.cb-page .cb-disclaimer { color: #475569; border-top: 1px solid var(--border); }
.cb-page .cb-post__back a { color: var(--navy-mid); font-weight: 500; }
.cb-page .cb-topics a, .cb-page .cb-pager a { color: var(--navy-mid); border-color: var(--border); background: var(--white); }
.cb-page .cb-topics a:hover, .cb-page .cb-pager a:hover { border-color: var(--navy-mid); }
.cb-page .cb-topics a[aria-current="page"], .cb-page .cb-pager a[aria-current="page"] { color: var(--white); background: var(--navy); border-color: var(--navy); text-decoration: none; }
.cb-page .cb-topics a:focus-visible, .cb-page .cb-pager a:focus-visible, .cb-page .cb-postcard a:focus-visible { outline-color: var(--navy-mid); }
.cb-page .cb-postcard { border-bottom: 1px solid var(--border); }
.cb-page__body .cb-postcard h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.cb-page .cb-postcard h2 a { color: var(--navy); text-decoration: none; }
.cb-page .cb-postcard h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cb-page .cb-postcard__meta, .cb-page .cb-posts__where { color: #475569; }
.cb-page .cb-postcard__meta a { color: var(--navy-mid); }
/* colour-art:end */
