/* ── 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-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; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .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);
  }
  .nav.is-open .nav-links a { font-size: 1rem; }
}

.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; }
main[tabindex="-1"]:focus { outline: none; }
: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");
}
.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-reviewed { margin-top: 2.5rem; font-size: .85rem; color: #475569; border-top: 1px solid var(--border); padding-top: 1rem; }
