/* site.css — MBIS (replaces the builder fallback wholesale).
   Design: direction D on the design canvas (https://claude.ai/artifact/CXKPUxYp1xk5GgCRunEuav):
   MBIS's own charcoal and sage, with Archivo at its expanded widths for headings (the
   letter style of the SQX mark and of the MBIS bid-stack logo) and Overpass, an open
   descendant of the US highway sign alphabet, for text. A charcoal header over a sage
   hero; below it white paper, hairline rules and tabular figures. Copper marks the
   cover bid in the charts and the logo, and keyboard focus on light surfaces. */

:root {
  --site-header-bg: var(--brand);
  --brand: #2a2829;        /* header, buttons, footer: white on it is 14.8:1 */
  --brand-deep: #000000;   /* button hover */
  --signal: #ececdb;       /* the sage, on charcoal only (the Contact button, nav marks) */
  --copper: #a0612a;       /* 4.4:1 on white: focus on light surfaces, the cover bid. The logo and
                              favicon draw their cover dot in #b06c30, which keeps 3.5:1 on
                              charcoal, white and sage alike; this copper is 3.0:1 on charcoal */
  --ink: #2a2829;
  --sage: #ececdb;         /* the hero band, light panels */
  --paper: #ffffff;
  --muted: #5b5a58;        /* 6.6:1 on white */
  --line: #d8d8cd;
  --field: #b5b4a8;        /* form field borders */
  --card: #e3e3da;
  --on-brand: #e8e8e2;     /* secondary text on charcoal */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --measure: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
/* the sage ring on every dark surface, where copper falls under 3:1 */
.site-header :focus-visible, .site-footer :focus-visible, .page-news-updates main :focus-visible,
.page-mbis-overview main > h1 + p :focus-visible, .site-callout-taglines :focus-visible,
.site-callout-history :focus-visible { outline-color: var(--signal); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(36px, 3vw + 18px, 60px); }
h2 { font-size: clamp(26px, 1vw + 20px, 36px); }
h3 { font-size: 21px; font-stretch: 112%; font-weight: 750; line-height: 1.25; }
h4 { font-size: 17px; font-stretch: 100%; font-weight: 700; }
main p, main li { max-width: 72ch; }
.num, table { font-variant-numeric: tabular-nums; }

/* ---------- header: one charcoal bar, two tiers ---------- */
.site-header {
  background: var(--site-header-bg);
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav social";
  align-items: center;
  padding: 0 28px;
}
.site-logo { grid-area: logo; display: flex; align-items: center; padding: 8px 0; color: #fff; }
.site-logo svg { width: 108px; height: 35px; display: block; }
.site-nav { grid-area: nav; display: contents; }
.site-nav a, .site-nav .nav-group-label {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-family: var(--body);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.site-nav a:hover, .site-nav .nav-group-label:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-row { display: flex; gap: 30px; align-items: center; }
.nav-row-1 { grid-area: nav; justify-content: flex-end; min-height: 56px; }
.site-social { grid-area: social; color: #fff; display: flex; align-items: center; margin-left: 26px; }
.site-social svg { width: 26px; height: 26px; }
/* Row 2 spans the full header width, under a hairline */
.nav-row-2 {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: flex-start;
  min-height: 44px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-left: 4px;
}
.nav-cta { /* Contact rides row 1 as a plain link */ }

/* dropdowns */
.site-nav .nav-group { position: relative; }
.site-nav .nav-group-label::after { content: " ▾"; font-size: 0.75em; opacity: 0.8; }
.site-nav .nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand);
  min-width: 220px;
  padding: 8px 0;
  z-index: 40;
  border-top: 2px solid var(--signal);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.site-nav .nav-group:hover .nav-sub,
.site-nav .nav-group:focus-within .nav-sub { display: block; }
.site-nav .nav-sub a { display: block; padding: 8px 18px; }

/* ---------- shared page scaffolding ---------- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  /* the margins scale between a phone's and a desktop's, so no breakpoint moves the text */
  padding: clamp(24px, 2vw + 6px, 40px) clamp(16px, 2.5vw, 40px) clamp(50px, 2vw + 32px, 64px);
}
main > h1 { margin-top: 26px; }
main > h2 { margin-top: 1.6em; }

/* hero (home): the sage band under the header */
.hero {
  background: var(--sage);
  color: var(--ink);
  padding: clamp(40px, 4vw + 8px, 72px) clamp(16px, 2.5vw, 40px) clamp(56px, 5vw + 18px, 96px);
}
.hero h1, .hero p, .contact-actions { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.hero h1 { color: var(--ink); }
.hero h1 { max-width: min(var(--measure), 15.5ch); margin-left: max(0px, calc((100% - var(--measure)) / 2)); }
.hero p { font-size: clamp(17px, 0.4vw + 15px, 19px); line-height: 1.55; color: #3d3b3c; max-width: 62ch; margin-left: max(0px, calc((100% - var(--measure)) / 2)); }
.contact-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.action-btn {
  display: inline-block;
  border: 1px solid var(--brand);
  border-radius: 2px;
  background: transparent;
  color: var(--brand);
  padding: 13px 23px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.action-btn:hover { background: var(--brand); color: #fff; }
.hero .action-btn.action-primary { background: var(--brand); color: #fff; }
.hero .action-btn.action-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

/* the block button ("Get the Data Feed") sits on the text column's left edge */
.site-btn {
  display: inline-block;
  width: fit-content;
  margin: 26px 0;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 2px;
  text-align: center;
}
.site-btn:hover { background: var(--brand-deep); color: #fff; }
p > .site-btn { margin: 26px 0; }

/* callouts: a light panel */
.site-callout {
  background: var(--sage);
  padding: 22px 28px;
  margin: 26px 0;
}
.site-callout ul { margin: 0; padding-left: 20px; }
.site-callout li { margin: 10px 0; }
.site-callout li::marker { color: var(--brand); }

/* split: copy beside media */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  margin: 26px 0;
}
/* the first split runs copy-left/media-right, alternating after */
.section-split .site-embed, .section-split .site-figure { order: 2; }
.section-split.flip .site-embed, .section-split.flip .site-figure { order: 0; }
.split-copy ul { background: var(--sage); margin: 0; padding: 22px 28px 22px 44px; }
.split-copy li { margin: 10px 0; }

/* live widget embeds */
.site-embed { margin: 22px 0; }
.site-embed iframe { border: 0; width: 100%; display: block; background: #fff; }
.site-embed-landing iframe { min-height: 1500px; }
.site-embed-cusip iframe { min-height: 640px; }
.section-split .site-embed iframe { min-height: 430px; }
/* per-widget heights, matched to the widgets' own pages */
.page-bestx-quick .site-embed-landing iframe,
.page-markup-quick .site-embed-landing iframe { min-height: 620px; }
.page-best-execution-detail .site-embed-landing iframe,
.page-markup-detail .site-embed-landing iframe { min-height: 900px; }
.page-academic-research .site-embed-landing iframe { min-height: 2250px; }
.page-univ-of-chicago-indices .site-embed-landing iframe { min-height: 0; }

/* widget caption bars (the paragraph immediately before an embed) */
main p:has(+ .site-embed), .split-copy p:has(+ .site-embed),
main p:has(+ .section-split .site-embed) {
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  margin: 22px 0 0;
  max-width: none;
}
main p:has(+ .site-embed) + .site-embed { margin-top: 0; }
main p:has(+ .section-split .site-embed) { max-width: none; }

/* stats strip (mbis-overview "MBIS in numbers") */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 30px 0; padding: 0; list-style: none; }
.stat-strip li { border-top: 3px solid var(--brand); padding-top: 12px; }
.stat-strip li strong { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 44px; line-height: 1.1; display: block; font-variant-numeric: tabular-nums; }
.stat-strip li span { font-size: 15px; display: block; max-width: 24ch; }
/* three 44px figures need about 700px side by side; narrower, they stack */
@media (max-width: 760px) { .stat-strip { grid-template-columns: 1fr; gap: 18px; } }

/* forms (lead form, coverage check) */
.contact-form { max-width: var(--measure); margin: 6px 0 30px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.contact-form label, .ccx-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 12px 0; }
.contact-form input, .contact-form textarea, .ccx-form textarea, .ccx-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: #fff;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  margin-top: 6px;
}
.contact-form input:focus, .contact-form textarea:focus, .ccx-form textarea:focus, .ccx-form input[type="email"]:focus { outline: 3px solid var(--copper); outline-offset: 0; border-color: var(--brand); }
.contact-form button, .ccx-form button[type="submit"] {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 32px;
  margin-top: 6px;
  cursor: pointer;
}
.contact-form button:hover, .ccx-form button[type="submit"]:hover { background: var(--brand-deep); }
.form-note { font-size: 13px; color: var(--muted); max-width: 60ch; }
.form-error { color: #a33; font-size: 14px; }
.form-success { background: var(--sage); padding: 22px 28px; }

/* ---------- footer: charcoal ---------- */
.site-footer { background: var(--brand); color: var(--on-brand); margin-top: 64px; }
.site-footer a { color: var(--on-brand); }
.site-footer a:hover { color: #fff; }
.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 40px);
}
/* the builder's column footer: brand + LinkedIn, one Contact column, then a
   bottom bar with the legal line and the IPL mark */
.footer-columns { display: grid; grid-template-columns: 1.2fr 1.2fr; gap: 34px; align-items: start; padding-top: 52px; padding-bottom: 32px; }
.footer-col h4 { font-family: var(--body); font-stretch: 100%; font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.footer-col a { display: block; font-size: 15px; margin: 6px 0; }
.footer-col p { font-size: 15px; margin: 6px 0; }
.footer-brandcol { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brandcol img { width: 230px; filter: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 44px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; }
.footer-legal span { margin: 0 6px; }
.footer-aux-logo { width: 74px; display: block; }
.site-footer .site-social { color: #fff; margin: 14px 0 0; display: inline-flex; }

/* ---------- articles + news cards ---------- */
.site-article { max-width: 820px; margin: 0 auto; }
.article-date { color: var(--muted); font-size: 14px; }
/* news listing: two columns on charcoal, title left, entries right */
.page-news-updates { background: var(--brand); }
.page-news-updates main { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; color: #fff; padding-top: 96px; padding-bottom: 200px; }
.page-news-updates main a { color: #fff; }
.page-news-updates main > h1 { grid-column: 1; margin: 0; color: var(--sage); font-size: 44px; }
.page-news-updates .site-callout-news-card { background: none; padding: 0 0 30px; margin: 0 0 30px; grid-column: 2; border-bottom: 1px solid rgba(255,255,255,0.16); }
.site-callout-news-card h3 { font-size: 24px; margin-bottom: 10px; }
.site-callout-news-card h3 a { text-decoration: none; }
.site-callout-news-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.site-callout-news-card p { font-size: 15px; margin: 8px 0; color: var(--on-brand); }
.site-callout-news-card p:nth-of-type(1) { font-size: 13px; color: #bdbdb2; }

/* ---------- page-scoped bands (mbis-overview) ---------- */
.page-mbis-overview main { max-width: none; padding: 0; }
.page-mbis-overview main > * { max-width: var(--measure); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
/* hero: one photo band behind h1 + the Learn More paragraph, under a charcoal scrim */
.page-mbis-overview main { position: relative; }
.page-mbis-overview main::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 420px;
  background: linear-gradient(90deg, rgba(30,28,26,0.88) 0%, rgba(30,28,26,0.6) 55%, rgba(30,28,26,0.25) 100%),
              url("/mbis/images/overview-hero.jpeg") center 55% / cover no-repeat;
}
.page-mbis-overview main > h1 {
  position: relative;
  color: #fff;
  max-width: none;
  margin: 0;
  padding: 140px 28px 30px max(28px, calc((100% - var(--measure)) / 2 + 28px));
  font-size: clamp(36px, 3vw + 18px, 56px);
}
.page-mbis-overview main > h1 + p {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0 28px 118px;
}
.page-mbis-overview main > h1 + p .site-btn {
  margin: 0 0 0 max(0px, calc((100% - var(--measure)) / 2 + 28px));
  background: #fff;
  color: var(--brand);
}
.page-mbis-overview .site-callout-taglines {
  background: var(--brand);
  color: #fff;
  max-width: none;
  margin: 0;
  padding: 90px max(28px, calc((100% - var(--measure)) / 2 + 28px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 60px;
}
.site-callout-taglines h3 { color: var(--sage); margin: 0 0 18px; }
.site-callout-taglines p {
  background: var(--sage);
  color: var(--ink);
  padding: 26px 28px;
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
}
.page-mbis-overview .site-callout-history {
  background: linear-gradient(rgba(30,28,26,0.5), rgba(30,28,26,0.5)),
              url("/mbis/images/overview-history.jpeg") center / cover no-repeat;
  color: #fff;
  max-width: none;
  margin: 40px 0;
  padding: 110px 28px;
}
.site-callout-history h3, .site-callout-history p { max-width: 560px; margin-left: max(0px, calc((100% - var(--measure)) / 2 + 28px)); }
.site-callout-history p { font-size: 15px; }
.page-mbis-overview .site-callout-partner-card {
  background: var(--sage);
  max-width: 520px;
  /* on the column's right edge at every width, never past it */
  margin: 40px max(28px, calc((100% - var(--measure)) / 2 + 28px)) 40px auto;
  padding: 30px 34px;
}
.site-callout-partner-card .site-btn { margin: 18px 0 0; display: inline-block; }
.page-mbis-overview .site-callout-partner-grid {
  background: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px 54px;
  padding-top: 10px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
  margin-bottom: 40px;
  align-items: center;
  justify-items: center;
}
.site-callout-partner-grid p { margin: 0; display: flex; align-items: center; justify-content: center; }
.site-callout-partner-grid img { max-height: 62px; width: auto; max-width: 200px; }

/* contact page */
.page-contact main { padding-top: 0; }
.page-contact .section-split { align-items: center; }

/* tables (muni reference data dictionary) */
.site-table { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: 14px; line-height: 1.4; }
.site-table th, .site-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 6px 10px; vertical-align: top; }
.page-muni-reference-data main h2 { font-size: 24px; margin: 30px 0 8px; }
.site-table th { border-bottom: 2px solid var(--brand); font-weight: 700; }
@media (min-width: 901px) {
  .site-table td:first-child { white-space: nowrap; font-weight: 600; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; grid-template-areas: none; padding: 0 16px; }
  .site-logo { grid-column: 1; grid-row: 1; }
  .site-social { grid-column: 2; grid-row: 1; }
  .nav-row { flex-wrap: wrap; gap: 8px 22px; min-height: 0; padding: 10px 0; }
  .nav-row-1 { grid-area: auto; grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .nav-row-2 { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  .section-split { grid-template-columns: 1fr; }
  .section-split.flip .site-embed, .section-split.flip .site-figure { order: 0; }
  .footer-columns { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .page-mbis-overview .site-callout-taglines { grid-template-columns: 1fr; }
  .site-callout-taglines p { grid-column: 1; grid-row: auto; }
  .page-mbis-overview .site-callout-partner-card { margin: 40px auto; }
  /* two logo columns that shrink to the screen: a 200px logo fits a column at 390px only scaled */
  .page-mbis-overview .site-callout-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .site-callout-partner-grid img { max-width: 100%; }
  .site-callout-history h3, .site-callout-history p { margin-left: 0; }
  .site-embed-landing iframe { min-height: 900px; }
  .page-bestx-quick .site-embed-landing iframe,
  .page-markup-quick .site-embed-landing iframe { min-height: 560px; }
  .page-best-execution-detail .site-embed-landing iframe,
  .page-markup-detail .site-embed-landing iframe { min-height: 700px; }
  .site-embed-cusip iframe { min-height: 520px; }
  .page-news-updates main { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 120px; }
  .page-news-updates .site-callout-news-card { grid-column: 1; }
  .site-table { display: block; overflow-x: auto; }
  .site-table th, .site-table td { white-space: nowrap; }
  .hero h1, .hero p { margin-left: 0; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .action-btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* subsite overlay (spinup_config/<site>/subsite/site.css) */
/* The mbis subsite's additions to mbis's sheet (spinup_subsite.py appends this file).
   1. The header's utility menu (Muni Search, Coverage check, Contact) in the header's
      white-on-ink type. The header's layout is the builder's (subsite.brand
      header_layout): the logo, the search, the buttons and LinkedIn on the top row;
      from 1280px both of mbis.com's nav tiers on one row under it, folded behind the
      menu button below that; the buttons and LinkedIn join the open menu below 901px.
      This sheet sets its look; Contact is a header action, so the nav's own hides.
   2. The imported apps (the Explorer, the munis tools, the coverage check) lay out their
      own mains; mbis's page measure and padding are for prose, so the Explorer's list
      (main.results, a grid cell) takes none of it.
   3. The imported apps read the main site's tokens (spinup_config/sqx/site.css :root),
      set here in mbis's charcoal, sage and greys; the gutter is mbis's main's side
      padding. The chart series take mbis's charcoal first, then a copper and an olive
      drawn from its warm sage, each at 4.4:1 or more on white and apart from the
      charcoal in lightness; the comparison series is a warm grey.
   4. The home page (body.page-home): the live bid-wanted card sits across the hero's
      lower edge, so the first thing below the headline is the day's data; from 1000px
      each section's heading stands in a left column beside its list, the charts span
      the page under them. */
:root {
  --accent: var(--brand);
  --accent-deep: var(--brand-deep);
  --accent-wash: var(--sage);
  --accent-line: var(--line);
  --navy: var(--ink);
  --panel: var(--paper);
  --text: var(--ink);
  --faint: var(--muted);
  --label: var(--muted);
  --sans: var(--body);
  --font-sans: var(--body);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fw-medium: 500;
  --fs-lead: 17px;
  --fs-ui: 14px;
  --fs-small: 13px;
  --sqx-ink: var(--ink);
  --sqx-body: var(--ink);
  --sqx-grey: var(--muted);
  --sqx-line-soft: var(--card);
  --gutter: clamp(18px, 2vw, 28px);
  --chart-1: var(--ink);
  --chart-2: var(--copper);
  --chart-3: #6b7f45;
  --chart-other: var(--field);
}
.site-header {
  --header-row-h: 68px;
  --control-h: 40px;
  --header-gap: clamp(8px, 1.6vw, 20px);
  padding: 0 var(--gutter);
}
.site-nav .nav-cta { display: none; }
.site-social { margin-left: 0; }
@media (min-width: 1280px) {
  .site-nav { display: flex; align-items: center; gap: 30px; min-height: 48px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav .nav-row { display: contents; }
}
.header-search { position: relative; display: flex; align-items: center; }
.header-search-toggle { display: none; }
.header-search-input {
  font: 400 14px/1.3 var(--body);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  padding: 0 32px 0 10px;
}
.header-search-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.header-search-input:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); background: rgba(255, 255, 255, 0.14); }
.header-search-submit {
  position: absolute;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.header-search-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: min(440px, calc(100vw - 36px));
  max-height: 62vh;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 60;
}
.header-search-list > li { display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; cursor: pointer; }
.header-search-list > li[aria-selected="true"], .header-search-list > li:hover { background: var(--sage); }
.header-search-list .hs-name { font-weight: 600; font-size: 14px; }
.header-search-list .hs-meta { font-size: 12px; color: var(--muted); }
.header-search-list > .hs-all, .header-search-list > .hs-beyond { border-top: 1px solid var(--line); }
.header-search-list > .hs-all .hs-name::after, .header-search-list > .hs-beyond .hs-name::after { content: " \2192"; }
.header-action {
  font: 600 15px/1 var(--body);
  color: #fff;
  text-decoration: none;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}
.header-action:hover { border-color: #fff; }
.header-action-button { background: var(--signal); color: var(--ink); border-color: var(--signal); font-weight: 700; }
.header-action-button:hover { background: #fff; border-color: #fff; color: var(--brand); }

.layout > main.results { max-width: none; margin: 0; padding: 0; }

/* The open menu (below 1280px): both tiers as one list under the row. */
@media (max-width: 1279px) {
  .nav-menu-btn { border: 1px solid rgba(255, 255, 255, 0.4); background: none; color: #fff; }
  .nav-open .nav-menu-btn { border-color: #fff; }
  .site-nav { padding: 0 0 12px; }
  .site-nav .nav-row { gap: 0; min-height: 0; padding: 0; border: 0; }
  .site-nav a, .site-nav .nav-group-label { display: flex; align-items: center; padding: 0 4px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav .nav-sub { box-shadow: none; padding: 0 0 8px 14px; }
  .site-nav .nav-sub a { border: 0; min-height: 40px; }
}
/* Under 901px the field fills the row, so its suggestions open from its left edge. */
@media (max-width: 900px) {
  .header-search-list { left: 0; right: auto; }
}

/* the narrowest phones: the whole placeholder fits the field's row at 12px */
@media (width < 360px) {
  .header-search-input { padding-left: 8px; font-size: 12px; }
}
/* The imported coverage check lays its page out (app.css) and takes its fields, labels
   and submit button from the site's contact form rules (site.css, .ccx-form beside
   .contact-form); its labels stand beside their fields, so the fields fill the column. */
.ccx-form label { margin: 14px 0 6px; }
.ccx-form textarea, .ccx-form input[type="email"] { display: block; width: 100%; }

/* 4. The home page. The hero's extra depth is what the bid-wanted card overlaps. */
.page-home .hero { padding-bottom: clamp(120px, 8vw + 60px, 176px); }
/* the headline in two lines on a desktop, so the live card shows above the fold */
.page-home .hero h1 { font-size: clamp(36px, 2.2vw + 20px, 54px); max-width: min(var(--measure), 21ch); }
.page-home main { padding-bottom: 0; }
/* the CUSIP lookup: a field wide enough for its placeholder, on a sage panel */
.page-home main > .app-part[data-part="lookup"] { background: var(--sage); padding: 20px 24px; margin-bottom: 32px; }
.page-home .m-form input.m-cusip { width: calc(18ch + 28px); height: 44px; font-size: 16px; }
.page-home main { max-width: var(--measure); }
.page-home main > .app-part:first-child {
  position: relative;
  margin-top: clamp(-128px, -6vw - 32px, -96px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(42, 40, 41, 0.14);
  padding: clamp(16px, 2vw, 28px) clamp(14px, 2.2vw, 32px) clamp(10px, 1.4vw, 20px);
}
/* inside the card the widget's own frame and note box would double the card's edge */
.page-home main > .app-part:first-child .m-panel { border: 0; padding: 0; margin: 0; background: none; }
.page-home .m-asof { border: 0; border-radius: 0; background: var(--sage); padding: 10px 14px; }
.page-home .m-panel { border-radius: 0; border-color: var(--line); }
.page-home main > h2 { margin: clamp(56px, 4vw + 24px, 88px) 0 18px; }
.page-home main > h3 { margin-top: 0; font-size: clamp(26px, 1vw + 20px, 36px); font-stretch: 118%; font-weight: 800; }
/* each section's list: rules above items instead of a filled box */
.page-home main > .site-callout { background: none; padding: 0; margin: 0 0 32px; }
.page-home main > .site-callout ul { list-style: none; padding: 0; display: grid; gap: 18px 40px; }
.page-home main > .site-callout li { margin: 0; padding-top: 12px; border-top: 3px solid var(--brand); max-width: none; }
.page-home main > .contact-form { background: var(--sage); padding: clamp(18px, 3vw, 44px); max-width: none; margin-top: 0; }
.page-home main > h3#get-connected { margin: clamp(56px, 4vw + 24px, 88px) 0 0; background: var(--sage); padding: clamp(18px, 3vw, 44px) clamp(18px, 3vw, 44px) 0; }
@media (min-width: 700px) {
  .page-home main > .site-callout ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .page-home main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-content: start; }
  .page-home main > * { grid-column: 1 / -1; min-width: 0; }
  .page-home main > h2 { grid-column: 1 / span 4; padding-top: 22px; border-top: 1px solid var(--line); }
  .page-home main > h2 + .site-callout {
    grid-column: 5 / span 8;
    margin-top: clamp(56px, 4vw + 24px, 88px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .page-home main > h2 + .site-callout ul { margin-top: 6px; }
  .page-home main > .site-callout + .app-part[data-part="lookup"] { grid-column: 5 / span 8; }
}

/* an image in page content fits its column (spinup_site_build.py) */
:where(main img) { max-width: 100%; height: auto; }

/* the header search field shows its whole placeholder (spinup_site_build.py) */
.header-search { min-width: min-content; }
.header-search-input { min-width: min(calc(var(--placeholder-ch) * 0.85ch + 4em), calc(100vw - 4rem)); }

/* the header row (spinup_site_build.py header_layout_css) */
.site-header { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: var(--header-gap, 12px); row-gap: 0; }
.site-header > .site-logo { order: 1; flex: none; display: flex; align-items: center; min-height: var(--header-row-h, 64px); }
.site-header > .header-actions { order: 3; flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.site-header > .header-actions > .header-search { flex: 0 1 600px; width: auto; max-width: none; height: var(--control-h, 42px); margin: 0 auto 0 0; }
.site-header > .header-actions .header-search-input { box-sizing: border-box; flex: 1 1 auto; width: 100%; height: var(--control-h, 42px); min-height: 0; margin: 0; }
.site-header > .header-actions > .header-action { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: var(--control-h, 42px); min-height: 0; margin: 0; white-space: nowrap; }
.site-header > :not(.nav-menu-btn, .site-logo, .header-actions, .site-nav) { order: 4; flex: none; }
.site-header > .site-nav { order: 5; flex: 1 1 100%; }
.site-header > .nav-menu-btn { display: none; }
@media (max-width: 1279px) {
  .site-header > .nav-menu-btn { order: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--control-h, 42px); height: var(--control-h, 42px); min-height: 0; margin: 0; padding: 0; font-size: 0; cursor: pointer; }
  /* three bars; the button's text stays its accessible name */
  .site-header > .nav-menu-btn::before { content: ""; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .site-header > .site-nav { order: 5; flex: 1 1 100%; display: none; flex-direction: column; align-items: stretch; height: auto; margin: 0; }
  .site-header.nav-open > .site-nav { display: flex; max-height: calc(100dvh - var(--header-row-h, 64px)); overflow-y: auto; }
  .site-header > .site-nav .nav-row { display: flex; flex-direction: column; align-items: stretch; }
  .site-header > .site-nav :is(a, .nav-group-label, .nav-group-toggle) { min-height: 44px; }
  .site-header > .site-nav .nav-group { display: flex; flex-wrap: wrap; align-items: stretch; }
  .site-header > .site-nav .nav-group > .nav-group-label { flex: 1; }
  .site-header > .site-nav .nav-group:hover > .nav-sub { display: none; }
  .site-header > .site-nav .nav-group:focus-within > .nav-sub { display: block; position: static; flex-basis: 100%; transform: none; box-shadow: none; }
}
@media (max-width: 900px) {
  .site-header > .header-actions .header-search[data-placeholder-narrow] .header-search-input { min-width: min(calc(var(--placeholder-narrow-ch) * 0.85ch + 4em), calc(100vw - 4rem)); }
  .site-header > .header-actions { display: contents; }
  .site-header > .header-actions > .header-search { order: 2; flex: 1 1 0; margin: 0; }
  .site-header > .header-actions > .header-action, .site-header > :not(.nav-menu-btn, .site-logo, .header-actions, .site-nav) { display: none; order: 6; }
  .site-header.nav-open > .header-actions > .header-action { display: inline-flex; flex: 1 1 0; margin-bottom: 16px; }
  .site-header.nav-open > :not(.nav-menu-btn, .site-logo, .header-actions, .site-nav) { display: flex; order: 7; flex: 1 1 100%; margin-bottom: 16px; }
}

/* text only a screen reader reads (spinup_site_build.py) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* the footer's links to the other SQX sites (spinup_site_build.py) */
:where(.footer-family) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 18px; padding: 14px 16px 18px; font-size: 13px; }
:where(.footer-family-label) { font-weight: 600; }
:where(.footer-family ul) { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
:where(.footer-family a) { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 100; }
.sqx-bar {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 28px; padding-inline: 2.25rem; text-align: center;
  background: var(--sqx-bar-bg, #abcdea); color: var(--sqx-bar-ink, #101820);
  font: 500 .75rem/1.25 system-ui, sans-serif;
}
.sqx-bar[hidden] { display: none; }
.sqx-bar a { color: inherit; text-decoration: underline; }
.sqx-bar button { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%);
  width: 24px; min-height: 24px; padding: 0;
  background: transparent; border: 0; color: inherit; font: 1.125rem/1 system-ui; cursor: pointer; }
.sqx-bar :focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media print { .sqx-bar { display: none; } }
