@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600&family=Spectral:ital,wght@0,400;0,500;0,600;1,400&display=swap");

/* BankingStats shared stylesheet: every page links this one file. Fonts are set here and nowhere else. */

:root {
  --paper: #F6F8F4;
  --paper-deep: #ECF0EA;
  --ink: #1D2B24;
  --ink-soft: #4A5A52;
  --green: #2E5B47;
  --green-deep: #234838;
  --line: #A9BFB2;
  --rule: #D3DCD5;
  --brass: #94782F;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 72rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

/* top bar */
.topbar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.asof { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* hero */
.hero {
  position: relative;
  z-index: 2;                 /* above the sections below, so the search results list can drop over them */
  overflow: visible;
  overflow-x: clip;           /* clip the guilloche sideways only; the results list may extend below the hero */
  border-bottom: 1px solid var(--rule);
}
.guilloche {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 11rem;
  pointer-events: none;
}
.guilloche path { fill: none; stroke: var(--line); stroke-width: 0.6; opacity: 0.85; }
.hero-inner {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 7.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem; }

/* search */
.search { position: relative; max-width: 40rem; }
.search-label { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
#q {
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--green);
  border-radius: 6px;
}
#q::placeholder { color: #8A978F; }
.results {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(29, 43, 36, 0.12);
  max-height: 24rem;
  overflow-y: auto;
}
.results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.results li[aria-selected="true"], .results li:hover { background: var(--paper-deep); }
.results .r-name { font-weight: 600; }
.results .r-place { color: var(--ink-soft); font-size: 0.9rem; grid-column: 1; }
.results .r-size { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--ink-soft); }
.search-status { min-height: 1.5rem; margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

/* preview panel */
.preview {
  max-width: 40rem;
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  border-radius: 6px;
}
.preview h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.25rem; }
.preview .p-meta { color: var(--ink-soft); margin: 0 0 1.1rem; }
.preview dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.1rem; }
.preview dt { font-size: 0.85rem; color: var(--ink-soft); }
.preview dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums lining-nums; }
.preview dd small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }
.preview .p-foot { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* industry ledger */
.industry, .by-size, .charts, .lists {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.25; margin: 0 0 1rem; }
.ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--ink);
}
.ledger > div { padding: 1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.ledger > div:not(:nth-child(3n + 1)) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.ledger dt { font-size: 0.95rem; color: var(--ink-soft); }
.ledger dd { margin: 0.15rem 0 0; }
.ledger .v { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; line-height: 1.15; }
.ledger .d { display: block; font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.note { color: var(--ink-soft); font-size: 0.95rem; margin: 1rem 0 0; max-width: 70ch; }

/* charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.chart { margin: 0; }
.chart figcaption p { margin: -0.6rem 0 0.75rem; color: var(--ink-soft); font-size: 0.95rem; }
.chart-body svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-body .axis { stroke: var(--rule); stroke-width: 1; }
.chart-body .tick { fill: var(--ink-soft); font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-body .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-body .endlabel { font-family: var(--sans); font-size: 12px; font-weight: 600; }

/* lists */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.list-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.list-table th { text-align: left; font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; padding: 0 0.5rem 0.4rem 0; border-bottom: 2px solid var(--ink); }
.list-table td { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.list-table .num { text-align: right; font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.list-table th.num { font-family: var(--sans); }
.list-table .sub { display: block; color: var(--ink-soft); font-size: 0.85rem; }

/* footer */
.footer { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem 3rem; color: var(--ink-soft); font-size: 0.9rem; }
.footer-inner { border-top: 1px solid var(--rule); padding-top: 2rem; }
.footer p { margin: 0 0 0.5rem; max-width: 80ch; }

/* 404 */
.notfound { max-width: 40rem; margin: 0 auto; padding: 4rem 1.5rem; }
.notfound h1 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; margin: 0 0 1rem; }
.button { display: inline-block; background: var(--green); color: #fff; padding: 0.7rem 1.1rem; border-radius: 6px; text-decoration: none; }
.button:hover { background: var(--green-deep); color: #fff; }

/* the one orchestrated moment: guilloche lines draw in once */
@media (prefers-reduced-motion: no-preference) {
  .guilloche path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.4s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

@media (max-width: 820px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .charts, .lists { grid-template-columns: 1fr; }
  .preview dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { padding-bottom: 7rem; }
}

/* ---------------------------------------------------------------- shared header search (bank pages) */
.topbar-search { position: relative; flex: 0 1 22rem; }
.topbar-search input {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink);
}
.topbar-search .results { max-height: 20rem; }
.topbar-search .preview { position: absolute; z-index: 6; right: 0; width: min(36rem, 92vw); box-shadow: 0 10px 24px rgba(29, 43, 36, 0.12); }
.p-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 0.25rem; }

/* ---------------------------------------------------------------- bank page */
.bank { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.bank-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 0.5rem; max-width: 24ch;
}
.bank-place { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.bank-size { font-family: var(--serif); font-size: 1.25rem; max-width: 60ch; margin: 0 0 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem 2rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.85rem; color: var(--ink-soft); }
.facts dd { margin: 0.1rem 0 0; }

.bank section { margin-top: 3rem; }
.bank section > p.lead { color: var(--ink-soft); max-width: 70ch; margin: -0.5rem 0 1rem; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.tiles > div { padding: 1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.tiles > div:not(:nth-child(4n + 1)) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.tiles dt { font-size: 0.95rem; color: var(--ink-soft); }
.tiles dd { margin: 0.15rem 0 0; }
.tiles .v { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; line-height: 1.15; }
.tiles .peer { display: block; font-size: 0.85rem; color: var(--brass); margin-top: 0.1rem; }
.marker { display: block; position: relative; height: 10px; }
.marker .track { position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--rule); }
.marker .mid { position: absolute; left: 50%; top: -1px; width: 2px; margin-left: -1px; height: 12px; background: var(--brass); }
.marker .dot { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--green); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th { text-align: left; font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; padding: 0 0.75rem 0.4rem 0; border-bottom: 2px solid var(--ink); }
.data-table td { padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table .num { text-align: right; font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.data-table th.num { font-family: var(--sans); }
.table-wrap { overflow-x: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.map { border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.map-note { color: var(--ink-soft); font-size: 0.9rem; margin: 0.5rem 0 0; }

.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 11rem 1fr 4.5rem; gap: 0.75rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.bars .bar { height: 10px; background: var(--paper-deep); border-radius: 2px; overflow: hidden; }
.bars .bar span { display: block; height: 100%; background: var(--green); }
.bars .num { text-align: right; font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; }

.related { list-style: none; margin: 0; padding: 0; }
.related li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; }
.related .sub { color: var(--ink-soft); font-size: 0.85rem; }
.signup { margin-top: 3rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--brass); border-radius: 6px; max-width: 46rem; }
.signup p { margin: 0; }
.source-note { margin-top: 2.5rem; color: var(--ink-soft); font-size: 0.9rem; max-width: 80ch; }

/* ---------------------------------------------------------------- choose page */
.choose { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem; }
.choose h1 { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; margin: 0 0 0.5rem; }

@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > div:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .tiles > div:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .two-col { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 8rem 1fr 4rem; }
  .topbar { flex-wrap: wrap; }
  .topbar-search { flex-basis: 100%; }
}

h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }
.data-table .sub, .related .sub { display: block; color: var(--ink-soft); font-size: 0.85rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.two-col.spaced { margin-top: 2rem; }
.bank .chart { max-width: 46rem; }

.tiles .rank { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; margin-top: 0.55rem; }
.range .lo, .range .hi { font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------- at a glance: peer table */
.peer-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.peer-table thead th { font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); text-align: left; padding: 0 0.75rem 0.45rem 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.peer-table tbody th { font-weight: 400; text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.peer-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: middle; font-variant-numeric: tabular-nums lining-nums; }
.peer-table .c { text-align: center; }
.peer-table .v { font-family: var(--serif); font-size: 1.2rem; }
.peer-table .med { color: var(--brass); }
.peer-table .range-col { width: 34%; }
.peer-table .range { margin-top: 0; }
@media (max-width: 640px) {
  .peer-table .range-col { display: none; }
  .peer-table td, .peer-table thead th { padding-left: 0.4rem; padding-right: 0.4rem; }
}
.peer-table .range { grid-template-columns: 4.5rem 1fr 4.5rem; }
.peer-table .range .lo { text-align: right; }
.peer-table .range .hi { text-align: left; }

/* ---------------------------------------------------------------- branch map (county outlines) */
.map svg { display: block; width: 100%; height: auto; }
.map .county { fill: var(--paper); stroke: #DDE3DE; stroke-width: 0.7; }
.map .county-served { fill: #A9C7B4; stroke: #fff; stroke-width: 1.6; }
.map .footprint { fill: none; stroke: var(--green); stroke-width: 1.4; }
.map .states { fill: none; stroke: #8A978F; stroke-width: 1.2; }
.map .nation { fill: var(--paper); stroke: #8A978F; stroke-width: 1; }
.map .branch { fill: #1F4433; stroke: #fff; stroke-width: 1.5; }
.map .branch-main { fill: var(--brass); stroke: #fff; stroke-width: 1.5; }
.map .label-main { font-family: var(--sans); font-size: 12px; fill: var(--ink); stroke: var(--paper); stroke-width: 3px; paint-order: stroke; }
.map .label-metro { font-family: var(--serif); font-style: italic; font-size: 17px; fill: #52514e; stroke: var(--paper); stroke-width: 4px; paint-order: stroke; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.5rem; }
.map-legend .key { display: inline-block; vertical-align: -1px; margin-right: 0.4rem; }
.key-county { width: 12px; height: 12px; background: #A9C7B4; outline: 1px solid var(--green); }
.key-branch { width: 9px; height: 9px; border-radius: 50%; background: #1F4433; }
.key-main { width: 12px; height: 12px; border-radius: 50%; background: var(--brass); }

/* ---------------------------------------------------------------- branch history */
.history-table .c { text-align: center; font-variant-numeric: tabular-nums; }
.history-table .tot { font-family: var(--serif); font-size: 1.05rem; }
.history-table .muted { color: var(--ink-soft); }
#branch-waterfall { margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- loan and deposit mix vs peers */
.mix-legend { display: flex; gap: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.25rem; }
.mix-legend .key { display: inline-block; margin-right: 0.4rem; vertical-align: -1px; }
.key-bar { width: 14px; height: 8px; background: var(--green); }
.key-tick { width: 2px; height: 12px; background: var(--brass); vertical-align: -2px; }
.mix-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
.mix-table thead th { font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); text-align: left; padding: 0 0.5rem 0.4rem 0; border-bottom: 2px solid var(--ink); }
.mix-table thead th:first-child { width: 42%; }
.mix-table thead th.n { width: 15%; }
.mix-table tbody th { font-weight: 400; text-align: left; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--rule); }
.mix-table td { padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--rule); }
.mix-table .n { text-align: right; font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.mix-table thead .n { font-family: var(--sans); }
.mix-table .peerv { color: var(--brass); }
.mbar { position: relative; display: block; height: 10px; background: var(--paper-deep); }
.mfill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 0 2px 2px 0; }
.mtick { position: absolute; top: -3px; width: 2px; height: 16px; margin-left: -1px; background: var(--brass); }

.hist-lead { font-weight: 500; color: var(--ink); }
.net-up { color: #2E7D4F; }
.net-down { color: #B23B3B; }
.chart-body .net-label { font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------- about page */
.about { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.about h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 1rem; }
.about .lead { font-size: 1.15rem; color: var(--ink); }
.about h2 { margin-top: 2.5rem; }
.about p { max-width: 68ch; }
.defs { margin: 0; }
.defs dt { font-weight: 600; margin-top: 1rem; }
.defs dd { margin: 0.2rem 0 0; color: var(--ink-soft); max-width: 68ch; }

/* ---------------------------------------------------------------- sign-in modal */
.topbar-right { display: flex; align-items: baseline; gap: 1.25rem; }
.for-bankers { background: none; border: 0; padding: 0; font: italic 1rem var(--serif); color: var(--green); cursor: pointer; }
.for-bankers:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.bank-signin { margin: -0.75rem 0 1.25rem; font-size: 0.95rem; }
.bank-signin .link-button { text-decoration-style: dotted; }
body.bs-modal-open { overflow: hidden; }
.bs-modal { position: fixed; inset: 0; z-index: 50; background: rgba(29, 43, 36, 0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.bs-modal[hidden] { display: none; }
.bs-modal-panel { position: relative; width: min(28rem, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: #fff; border-radius: 10px; padding: 1.6rem 1.75rem 1.4rem; box-shadow: 0 18px 50px rgba(29, 43, 36, 0.25); }
.bs-modal-close { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.bs-modal-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 0.5rem; }
.bs-modal-lead { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0 0 0.75rem; }
.bs-strong { color: var(--ink); }
.bs-benefits { list-style: none; margin: 0.5rem 0 0.25rem; padding: 0; }
.bs-benefits li { position: relative; padding: 0.3rem 0 0.3rem 1.25rem; font-size: 0.95rem; color: var(--ink); }
.bs-benefits li::before { content: ""; position: absolute; left: 0.1rem; top: 0.78rem; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.bs-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0.3rem; }
.bs-modal input { width: 100%; font: inherit; font-size: 1.05rem; padding: 0.7rem 0.85rem; border: 1.5px solid var(--rule); border-radius: 6px; color: var(--ink); background: #fff; }
.bs-modal input:focus { border-color: var(--green); outline: none; }
.bs-code { letter-spacing: 0.4em; font-family: var(--serif); font-size: 1.4rem !important; text-align: center; }
.bs-error { min-height: 1.2em; margin: 0.35rem 0 0; font-size: 0.85rem; color: #A32D2D; }
.bs-wide { width: 100%; margin-top: 0.4rem; border: 0; font: inherit; font-size: 1rem; cursor: pointer; }
.bs-wide:disabled { opacity: 0.7; cursor: wait; }
.bs-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.8rem 0 0; line-height: 1.5; }
.bs-badge { display: inline-block; background: #E4EFE7; color: var(--green-deep); font-size: 0.85rem; padding: 0.3rem 0.7rem; border-radius: 6px; margin: 0 0 0.75rem; }

/* ---------------------------------------------------------------- dashboard */
.dash { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.dash h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 0.6rem; }
.dash-kicker { font-size: 0.85rem; color: var(--brass); margin: 0 0 0.4rem; }
.dash .lead { color: var(--ink-soft); max-width: 60ch; }
.dash-user { display: flex; align-items: baseline; gap: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.dash-section { margin-top: 2.75rem; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.soon-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.15rem; }
.soon-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.35rem; }
.soon-text { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.75rem; }
.soon-tag { display: inline-block; font-size: 0.75rem; color: var(--brass); border: 1px solid var(--brass); border-radius: 4px; padding: 0.1rem 0.45rem; margin: 0; }
.bs-turnstile { margin-top: 0.6rem; }
.bs-turnstile:empty { display: none; }

.banker-access { display: inline-flex; align-items: center; background: transparent; border: 1px solid var(--green); color: var(--green);
  border-radius: 6px; padding: 0.3rem 0.75rem; font: 500 0.9rem var(--sans); cursor: pointer; }
.banker-access:hover { background: var(--green); color: #fff; }
.topbar-right { align-items: center; }

/* lock icon: one SVG, drawn in the text color, centered on the text */
.icon-lock { width: 14px; height: 14px; flex: none; margin-right: 0.45rem; position: relative; top: -1px; }
.banker-access { gap: 0; line-height: 1; padding: 0.4rem 0.8rem; }
.bank-signin-button { display: inline-flex; align-items: center; text-decoration: none; }
.bank-signin-button span { text-decoration: underline dotted; text-underline-offset: 0.2em; }
.bank-signin-button .icon-lock { color: var(--brass); }

/* ---------------------------------------------------------------- banker dashboard shell */
.dash-topbar { flex-wrap: wrap; gap: 0.5rem 1rem; }
.dash-user { flex-wrap: wrap; justify-content: flex-end; }
.ea-badge { font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: #FAEEDA; color: #633806; }
.dash-email { color: var(--ink-soft); }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; }
.dash-head h1 { margin-bottom: 0.2rem; }
.dash-sub { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.dash-switch { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.dash-switch select { font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 0.15rem 0.25rem; border-bottom: 1px solid var(--rule); margin: 1.5rem 0 1.25rem; }
.dash-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.55rem 0.8rem; font: inherit; font-size: 0.95rem;
  color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: -1px; }
.dash-tab:hover { color: var(--ink); }
.dash-tab.on { color: var(--ink); border-bottom-color: var(--green); font-weight: 500; }
.dash-tab .plus { font-size: 0.65rem; padding: 0.05rem 0.3rem; border-radius: 4px; background: var(--paper-deep); color: var(--ink-soft); }
.dash-tab .icon-lock { margin-right: 0.1rem; top: 0; }
.dash-panel h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.soon-panel { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.4rem; max-width: 40rem; }
.soon-panel p { color: var(--ink-soft); }

/* ---------------------------------------------------------------- Markets tab */
.mk-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.25rem; }
.mk-chip { font: inherit; font-size: 0.85rem; padding: 0.35rem 0.75rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff;
  color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.mk-chip:hover { border-color: var(--green); color: var(--ink); }
.mk-chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.mk-chip-mark { font-size: 0.8rem; width: 0.8rem; text-align: center; }
.mk-summary { color: var(--ink-soft); font-size: 0.95rem; margin: 0.25rem 0 0.75rem; }
.mk-table-wrap { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; min-width: 34rem; }
.mk-table .mk-col-label { width: 28%; }
.mk-table thead th { font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); text-align: center; padding: 0.4rem 0.4rem 0.5rem;
  border-bottom: 2px solid var(--ink); vertical-align: bottom; line-height: 1.3; }
.mk-table thead th:first-child { text-align: left; }
.mk-table thead th a { color: var(--ink); }
.mk-table thead th.mk-me { color: var(--green-deep); font-size: 0.95rem; }
.mk-place { display: block; font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); }
.mk-table tbody th { font-weight: 400; text-align: left; padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.mk-table td { text-align: center; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.mk-table .rk { display: inline-block; font-size: 0.7rem; min-width: 1.6rem; padding: 0.05rem 0.25rem; margin-left: 0.35rem; border-radius: 4px;
  background: var(--paper-deep); color: var(--ink-soft); }
.mk-table td.best { background: #E1F5EE; }
.mk-table td.best .rk { background: #9FE1CB; color: #04342C; }
.mk-table td.worst { background: #FCEBEB; }
.mk-table td.worst .rk { background: #F7C1C1; color: #501313; }
.mk-table td.mid, .mk-table td.mk-me-cell { background: #F1F4F0; }
.mk-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.6rem 0 0; max-width: 80ch; }
.mk-below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.mk-box { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.1rem; }
.mk-box h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.mk-box svg { display: block; width: 100%; height: auto; }
.mk-grid { stroke: var(--rule); stroke-width: 1; }
.mk-tick { fill: var(--ink-soft); font: 11px var(--sans); }
.mk-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.4rem; }
.mk-legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 0.35rem; }
.mk-move { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem; font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.mk-move span:first-child { color: var(--ink-soft); }
.admin-pick { max-width: 34rem; }
.admin-pick input { width: 100%; font: inherit; padding: 0.55rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; }
.admin-results { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.admin-results button { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--rule); padding: 0.55rem 0.4rem; font: inherit; cursor: pointer; }
.admin-results button:hover { background: var(--paper-deep); }
.admin-results button span { display: block; font-size: 0.8rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .mk-below { grid-template-columns: 1fr; }
  .dash-email { display: none; }
}

/* ---------------------------------------------------------------- admin (release 1) */
.viewas-banner { background: #FAEEDA; color: #633806; text-align: center; padding: 0.55rem 1rem; font-size: 0.9rem; }
.viewas-banner .link-button { color: #633806; margin-left: 0.75rem; font-weight: 500; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.admin-tab { font: inherit; font-size: 0.9rem; padding: 0.45rem 0.85rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; }
.admin-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-tab .count { font-size: 0.72rem; min-width: 1.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); text-align: center; }
.admin-tab.on .count { background: rgba(255, 255, 255, 0.2); color: #fff; }
.admin-tab .count.hot { background: #A32D2D; color: #fff; }
.admin-table { font-size: 0.9rem; }
.admin-table td { vertical-align: middle; }
.admin-actions { white-space: nowrap; }
.admin-actions button, .demo-actions button { font: inherit; font-size: 0.8rem; padding: 0.3rem 0.6rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff; cursor: pointer; margin: 0.1rem 0.15rem 0.1rem 0; }
.admin-actions button.primary, .demo-actions button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.admin-actions button.danger { color: #A32D2D; border-color: #F7C1C1; }
.admin-actions button:disabled { opacity: 0.6; cursor: wait; }
.type { font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--paper-deep); color: var(--ink-soft); }
.type-bank, .type-member { background: #E1F5EE; color: #085041; }
.type-blocked { background: #FCEBEB; color: #791F1F; }
.type-demo { background: #FAEEDA; color: #633806; }
.link-kind, .link-org { font: inherit; font-size: 0.85rem; padding: 0.25rem 0.4rem; border: 1px solid var(--rule); border-radius: 6px; max-width: 12rem; }
.link-org { margin-top: 0.3rem; display: block; }
.link-org[hidden] { display: none; }
.bank-picker { margin-top: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--green); border-radius: 8px; max-width: 36rem; }
.picker-title { font-weight: 500; margin: 0 0 0.5rem; }
.bank-picker input { width: 100%; font: inherit; padding: 0.55rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; }
.demo-facts { margin-bottom: 1rem; }
.demo-actions { margin: 0 0 1.5rem; }
.paid-mark { color: var(--brass); font-weight: 600; margin-left: 0.1rem; }
.dash-tab .paid-mark { margin-left: -0.3rem; }

/* ---------------------------------------------------------------- Markets: stacked share chart and paged moves */
.mk-box-sub { font-size: 0.8rem; color: var(--ink-soft); margin: -0.35rem 0 0.6rem; }
.mk-label { font: 12px var(--sans); }
.mk-label.you { font-weight: 600; }
.mk-hover-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.mk-hover-year { font: 600 11px var(--sans); fill: var(--ink); pointer-events: none; }
.mk-catch { cursor: crosshair; }
.mk-more { margin-top: 0.75rem; font: inherit; font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff; color: var(--green); cursor: pointer; }
.mk-more:hover { border-color: var(--green); }
.mk-more[hidden] { display: none; }

/* ---------------------------------------------------------------- head-to-head: rank columns (ranks in their own aligned columns) */
.mk-table { min-width: 40rem; }
.mk-table .mk-col-label { width: 25%; }
.mk-table .mk-col-you { width: 11%; }
.mk-table .mk-col-rank { width: 8%; }
.mk-table .mk-col-val { width: 12%; }
.mk-table .mk-col-crank { width: 6.6%; }
.mk-table thead th.mk-me { text-align: right; padding-right: 0.7rem; }
.mk-table thead th.mk-rank-h { text-align: center; }
.mk-table tbody th.mk-measure { padding-left: 0.6rem; border-left: 3px solid transparent; }
.mk-table tbody th.mk-measure.best { border-left-color: var(--green); }
.mk-table tbody th.mk-measure.worst { border-left-color: #A32D2D; }
.mk-table td.mk-you { text-align: right; font-weight: 600; padding-right: 0.7rem; background: none; }
.mk-table td.mk-rank { text-align: center; background: none; }
.mk-table td.mk-val { text-align: right; padding-right: 0.4rem; }
.mk-table td.mk-crank { text-align: left; padding-left: 0; color: var(--ink-soft); font-size: 0.75rem; }
.mk-pill { display: inline-block; min-width: 1.8rem; font-size: 0.75rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); }
.mk-pill.best { background: #9FE1CB; color: #04342C; }
.mk-pill.worst { background: #F7C1C1; color: #501313; }

/* ---------------------------------------------------------------- board pack (Peer and Market Brief) */
.bp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 0 0 1rem; }
.bp-q { font-size: 0.9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.bp-q select { font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.bp-appx { font-size: 0.9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.4rem; }
.bp-spacer { flex: 1; }
.bp-btn { font: inherit; font-size: 0.9rem; padding: 0.45rem 0.9rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.bp-btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.bp-warn { background: #FAEEDA; color: #633806; border-radius: 6px; padding: 0.55rem 0.8rem; font-size: 0.9rem; }
.bp-doc { display: flex; flex-direction: column; gap: 1.5rem; }
.bp-page { background: #fff; color: #1D2B24; border: 1px solid var(--rule); border-radius: 4px; padding: 2.2rem 2.4rem 1.6rem;
  max-width: 8.5in; width: 100%; margin: 0 auto; box-shadow: 0 2px 10px rgba(29, 43, 36, 0.06); font-size: 0.82rem; line-height: 1.45; }
.bp-appendix { display: none; }
.bp-doc.with-appendix .bp-appendix { display: block; }
.bp-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1.5px solid #1D2B24; padding-bottom: 0.35rem; margin-bottom: 0.9rem; font-size: 0.75rem; color: #4A5A52; }
.bp-title { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin: 0 0 0.2rem; }
.bp-sub { color: #4A5A52; margin: 0 0 0.9rem; }
.bp-page h3 { font-size: 0.9rem; margin: 1rem 0 0.4rem; }
.bp-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; margin-bottom: 0.6rem; }
.bp-two h3 { margin-top: 0; }
.bp-findings, .bp-discuss ul { margin: 0; padding-left: 1.1rem; }
.bp-findings li, .bp-discuss li { margin: 0 0 0.35rem; }
.bp-discuss { background: #FAF6EC; border-left: 3px solid var(--brass); padding: 0.7rem 0.9rem; }
.bp-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums lining-nums; }
.bp-table th { font-weight: 500; font-size: 0.72rem; color: #4A5A52; text-align: right; padding: 0.3rem 0.35rem; border-bottom: 1px solid #1D2B24; vertical-align: bottom; }
.bp-table td { text-align: right; padding: 0.3rem 0.35rem; border-bottom: 0.5px solid #D5DDD7; }
.bp-table th:first-child, .bp-table td:first-child, .bp-table .l { text-align: left; }
.bp-table .c { text-align: center; }
.bp-table .b { font-weight: 600; }
.bp-table .c-label { width: 30%; }
.bp-table .c-pct { width: 20%; }
.bp-table .c-wide { width: 24%; }
.bp-table .c-rank { width: 8%; }
.bp-table .c-crank { width: 6%; }
.bp-group td { font-weight: 600; color: var(--green-deep); padding-top: 0.6rem; border-bottom: none; }
.bp-bar { width: 60px; height: 8px; vertical-align: middle; margin-right: 0.4rem; }
.bp-bar-track { fill: #E3E9E4; }
.bp-bar-mark { fill: var(--green); }
.bp-up { color: #0F6E56; }
.bp-down { color: #A32D2D; }
.bp-note { font-size: 0.72rem; color: #6A766F; margin: 0.5rem 0 0; }
.bp-foot { display: flex; justify-content: space-between; font-size: 0.68rem; color: #7A867F; border-top: 0.5px solid #D5DDD7; padding-top: 0.4rem; margin-top: 1.1rem; }
.bp-place { display: block; font-weight: 400; font-size: 0.66rem; color: #7A867F; }
.bp-h2h td.bp-measure { border-left: 3px solid transparent; padding-left: 0.45rem; }
.bp-h2h td.bp-measure.best { border-left-color: var(--green); }
.bp-h2h td.bp-measure.worst { border-left-color: #A32D2D; }
.bp-h2h td.bp-crank { text-align: left; padding-left: 0; color: #7A867F; font-size: 0.68rem; }
.bp-pill { display: inline-block; min-width: 1.6rem; font-size: 0.68rem; padding: 0 0.35rem; border-radius: 999px; background: #EEF2EE; color: #4A5A52; }
.bp-pill.best { background: #9FE1CB; color: #04342C; }
.bp-pill.worst { background: #F7C1C1; color: #501313; }
.bp-defs { display: grid; grid-template-columns: 11rem 1fr; gap: 0.25rem 0.8rem; margin: 0; }
.bp-defs dt { font-weight: 600; }
.bp-defs dd { margin: 0; color: #4A5A52; }
.bp-peerlist { font-size: 0.72rem; color: #4A5A52; line-height: 1.6; }
@media (max-width: 760px) {
  .bp-page { padding: 1.2rem 1rem; }
  .bp-two { grid-template-columns: 1fr; }
  .bp-table { min-width: 34rem; }
  .bp-page { overflow-x: auto; }
}

/* Printing the pack: only the pages, one per sheet, letter size. */
@page { size: letter; margin: 0.5in; }
@media print {
  body.printing-pack > *:not(main), body.printing-pack main > *:not([data-panel="boardpack"]),
  body.printing-pack .bp-tools, body.printing-pack .bp-warn, body.printing-pack .viewas-banner { display: none !important; }
  body.printing-pack, body.printing-pack main, body.printing-pack .dash { margin: 0; padding: 0; max-width: none; background: #fff; }
  body.printing-pack .bp-doc { gap: 0; }
  body.printing-pack .bp-page { border: none; box-shadow: none; padding: 0; max-width: none; break-after: page; page-break-after: always; font-size: 9.5pt; }
  body.printing-pack .bp-page:last-of-type, body.printing-pack .bp-doc:not(.with-appendix) .bp-page:nth-of-type(2) { break-after: auto; page-break-after: auto; }
  body.printing-pack .bp-table { min-width: 0; }
  body.printing-pack .bp-page { font-size: 9pt; line-height: 1.35; }
  body.printing-pack .bp-table td, body.printing-pack .bp-table th { padding-top: 0.2rem; padding-bottom: 0.2rem; }
  body.printing-pack .bp-group td { padding-top: 0.4rem; }
  body.printing-pack .bp-page h3 { margin: 0.7rem 0 0.3rem; }
  body.printing-pack .bp-findings li, body.printing-pack .bp-discuss li { margin-bottom: 0.2rem; }
  body.printing-pack .bp-foot { margin-top: 0.7rem; }
  .bp-up, .bp-down, .bp-pill, .bp-discuss, .bp-bar, .bp-h2h td.bp-measure { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- Peers tab */
.pg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 0.9rem; }
.pg-pick { font-size: 0.9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.pg-pick select { font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; max-width: 22rem; }
.pg-badge { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 6px; background: #FAEEDA; color: #633806; }
.bp-btn.danger { color: #A32D2D; border-color: #F7C1C1; }
.pg-pills { display: flex; gap: 0.4rem; margin: 0 0 1rem; }
.pg-pill { font: inherit; font-size: 0.9rem; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); cursor: pointer; }
.pg-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-sum { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 0.75rem; max-width: 80ch; }
.pg-h { font-size: 1.05rem; margin: 1.5rem 0 0.6rem; }
.pg-h-sub { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); margin-left: 0.4rem; }
.pg-table { font-size: 0.9rem; min-width: 34rem; }
.pg-table td.pg-measure { border-left: 3px solid transparent; padding-left: 0.5rem; }
.pg-table td.pg-measure.best { border-left-color: var(--green); }
.pg-table td.pg-measure.worst { border-left-color: #A32D2D; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; }
.pg-lab { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0.35rem; display: block; }
.pg-input { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
#pg-name { width: 100%; }
.pg-range { display: flex; align-items: center; gap: 0.5rem; }
.pg-range .pg-input { width: 7rem; }
.pg-range .sub { font-size: 0.8rem; color: var(--ink-soft); }
.pg-states { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pg-chip { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.6rem; border-radius: 6px; border: 1px solid var(--green); background: var(--green); color: #fff; cursor: pointer; }
.pg-state-pick { font-size: 0.85rem; padding: 0.3rem 0.4rem; }
.pg-slot { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.pg-slot button { background: none; border: 0; font-size: 1.1rem; color: var(--ink-soft); cursor: pointer; }
.pg-search { margin-top: 0.4rem; }
.pg-search input { width: 100%; font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px; }
.pg-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-top: 1rem; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.pg-list { border: 1px solid var(--rule); border-radius: 6px; max-height: 26rem; overflow-y: auto; background: #fff; }
.pg-row { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) 4.5rem minmax(0, 0.8fr); gap: 0.5rem; align-items: center; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--rule); font-size: 0.85rem; cursor: pointer; }
.pg-row .sub { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.pg-row span:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.pg-row span:nth-child(4) { font-size: 0.75rem; color: var(--ink-soft); }
.pg-row.off { color: var(--ink-soft); }
.pg-row.off span:nth-child(2) { text-decoration: line-through; }
.pg-added { color: var(--brass); }
@media (max-width: 760px) { .pg-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Peers: group standing dots */
.pg-table .c-standing { width: 26%; }
.pg-table th.c, .pg-table td.c { text-align: center; }
.pg-dots { width: 100%; max-width: 170px; height: auto; vertical-align: middle; }
.pg-dots-line { stroke: var(--rule); stroke-width: 1; }
.pg-dot { fill: #9AA59F; }
.pg-dot-you { fill: var(--green); stroke: #fff; stroke-width: 1.5; }

/* ---------------------------------------------------------------- Peers: editor in place, head-to-head cards */
.pg-editor { border: 1px solid var(--green); border-radius: 8px; padding: 1rem 1.1rem; margin: 0 0 1.25rem; background: #fff; }
.pg-editor[hidden] { display: none; }
.pg-editor .pg-lab:first-child { margin-top: 0; }
.h2h-cards { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.h2h-card { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 13rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule); border-radius: 8px; background: #fff; font-size: 0.9rem; }
.h2h-card small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.h2h-card button[data-h2h-remove] { background: none; border: 0; font-size: 1.2rem; color: var(--ink-soft); cursor: pointer; }
.h2h-card.add { border-style: dashed; min-width: 16rem; position: relative; }
.h2h-card.add > button { background: none; border: 0; font: inherit; color: var(--green); cursor: pointer; width: 100%; text-align: left; padding: 0.15rem 0; }
.h2h-card.add .pg-search { margin: 0; width: 100%; }
.h2h-card.add .admin-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin-top: 0.25rem; }
.h2h-card.add .admin-results:empty { display: none; }

/* ---------------------------------------------------------------- Growth tab */
.gr-q { font-size: 1.15rem; margin: 0 0 0.35rem; line-height: 1.7; }
.gr-q select { font: inherit; font-weight: 600; color: var(--ink); padding: 0.1rem 0.35rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.gr-lead { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 0.6rem; max-width: 80ch; }
.gr-lead b { color: var(--ink); font-weight: 600; }
.gr-lead b.up, .gr-table .up { color: #0F6E56; }
.gr-lead b.dn, .gr-table .dn { color: #A32D2D; }
.gr-toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.75rem; }
.gr-bars { width: 100%; max-width: 1040px; height: auto; display: block; margin: 0 0 0.75rem; }
.gr-bar { fill: #B4B2A9; }
.gr-bar.you { fill: var(--green); }
.gr-bar-name { font: 13px var(--sans); fill: var(--ink); }
.gr-bar-name.you { font-weight: 600; }
.gr-bar-val { font: 12px var(--sans); fill: var(--ink-soft); }
.gr-zero { stroke: var(--rule); stroke-width: 1; }
.gr-county-line { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 4 3; }
.gr-county-label { font: 12px var(--sans); fill: #854F0B; }
.gr-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9rem; min-width: 36rem; font-variant-numeric: tabular-nums lining-nums; }
.gr-table th { font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); text-align: center; padding: 0.4rem; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.gr-table td { text-align: center; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--rule); }
.gr-table th:first-child, .gr-table td:first-child { text-align: left; }
.gr-table .gr-c-label { width: 28%; }
.gr-table .b { font-weight: 600; }
.gr-table tr.gr-market td { font-weight: 600; background: var(--paper-deep); }
.gr-table tr.gr-me td { background: #E1F5EE; }
.gr-muted { color: var(--ink-soft); font-size: 0.85em; }

/* ---------------------------------------------------------------- Deposits tab */
.dp-table th.dp-sortable { cursor: pointer; }
.dp-table th.dp-sortable[data-sort="name"] { cursor: default; }
.dp-table th.on { color: var(--ink); }
.dp-table .dp-c-name, .gr-table .dp-c-name { width: 34%; }
.gr-table .dp-c-num { width: 6%; }
.dp-sub { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.dp-tag { display: inline-block; font-size: 0.7rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); margin: 0.2rem 0.3rem 0 0; }
.dp-tag.warn { background: #FAEEDA; color: #633806; }
.dp-near { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.dp-map { width: 100%; height: auto; display: block; }
.dp-map-bg { fill: var(--paper-deep); }
.dp-map-ring { fill: none; stroke: var(--rule); stroke-dasharray: 4 4; }
.dp-map-note { font: 11px var(--sans); fill: var(--ink-soft); }
.dp-map-other { fill: #9AA59F; }
.dp-map-own { fill: #8FC9B4; }
.dp-map-you { fill: var(--green); stroke: #fff; stroke-width: 2; }
.dp-map-num { font: 11px var(--sans); fill: var(--ink-soft); }
.dp-map-youlabel { font: 600 11px var(--sans); fill: var(--green-deep); }
.gr-table tr.dp-own td { color: var(--green-deep); }
.dp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin: 0.5rem 0 0.5rem; }
.dp-stat { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.dp-stat .l { font-size: 0.8rem; color: var(--ink-soft); }
.dp-stat .v { font-family: var(--serif); font-size: 1.6rem; }
.dp-stat .p { font-size: 0.78rem; color: var(--ink-soft); }
.dp-chart { width: 100%; max-width: 900px; height: auto; display: block; }
.dp-line-you { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; }
.dp-line-peer { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.dp-line-ff { fill: none; stroke: #7A867F; stroke-width: 1.5; stroke-dasharray: 5 4; }
.dp-end { font: 12px var(--sans); }
.dp-end.dp-line-you { fill: var(--green-deep); font-weight: 600; stroke: none; }
.dp-end.dp-line-peer { fill: #854F0B; stroke: none; }
.dp-end.dp-line-ff { fill: #5F6B64; stroke: none; }
@media (max-width: 760px) { .dp-near { grid-template-columns: 1fr; } }
#dp-near-table th:nth-child(2), #dp-near-table td:nth-child(2) { text-align: left; }
#dp-near-table td:first-child { color: var(--ink-soft); }

/* ---------------------------------------------------------------- Alerts tab */
.al-count { display: inline-block; min-width: 1.2rem; font-size: 0.7rem; font-weight: 600; padding: 0.05rem 0.35rem; margin-left: 0.35rem; border-radius: 999px; background: #A32D2D; color: #fff; text-align: center; }
.al-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 1.75rem; align-items: start; }
.al-feed { list-style: none; margin: 0; padding: 0; }
.al-item { display: grid; grid-template-columns: 3.5rem 6rem minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.al-item.new { background: linear-gradient(90deg, #F3F8F5, transparent 70%); }
.al-date { font-size: 0.8rem; color: var(--ink-soft); padding-top: 0.15rem; }
.al-kind { font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); justify-self: start; }
.al-kind.al-branch { background: #E6F1FB; color: #0C447C; }
.al-kind.al-deal { background: #FAEEDA; color: #633806; }
.al-kind.al-filing { background: #EEEDFE; color: #3C3489; }
.al-kind.al-boardpack { background: #E1F5EE; color: #085041; }
.al-title { display: block; font-weight: 500; }
.al-detail { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.al-new { font-size: 0.68rem; font-weight: 600; color: #A32D2D; margin-left: 0.4rem; text-transform: lowercase; }
.al-prefs { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.1rem; }
.al-prefs h3 { font-size: 1rem; margin: 0 0 0.6rem; }
.al-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin: 0.35rem 0; }
.al-lab { display: block; font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0.3rem; }
.al-prefs select { font: inherit; font-size: 0.9rem; padding: 0.35rem 0.4rem; border: 1px solid var(--rule); border-radius: 6px; width: 100%; }
.al-hint { font-size: 0.78rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.al-save { margin-top: 0.9rem; }
.al-saved { font-size: 0.85rem; color: var(--green); margin-left: 0.6rem; }
@media (max-width: 760px) { .al-grid { grid-template-columns: 1fr; } .al-item { grid-template-columns: 3rem minmax(0, 1fr); } .al-kind { grid-column: 2; } .al-body { grid-column: 2; } }

/* ---------------------------------------------------------------- board pack scorecard: dots and rank, sized to fit one printed page */
.bp-score .c-standing { width: 22%; }
.bp-score .c-rank2 { width: 10%; }
.bp-score .c-change { width: 17%; }
.bp-score .c-label { width: 28%; }
.bp-score td.bp-measure { border-left: 3px solid transparent; padding-left: 0.45rem; }
.bp-score td.bp-measure.best { border-left-color: var(--green); }
.bp-score td.bp-measure.worst { border-left-color: #A32D2D; }
.bp-score .pg-dots { max-width: 150px; }
@media print {
  body.printing-pack .bp-page { font-size: 8.5pt; line-height: 1.3; }
  body.printing-pack .bp-title { font-size: 15pt; margin-bottom: 0.1rem; }
  body.printing-pack .bp-head { margin-bottom: 0.45rem; }
  body.printing-pack .bp-sub { margin-bottom: 0.45rem; }
  body.printing-pack .bp-two { gap: 0.8rem; margin-bottom: 0.3rem; }
  body.printing-pack .bp-discuss { padding: 0.45rem 0.6rem; }
  body.printing-pack .bp-page h3 { margin: 0.4rem 0 0.2rem; font-size: 9pt; }
  body.printing-pack .bp-table td, body.printing-pack .bp-table th { padding-top: 0.13rem; padding-bottom: 0.13rem; }
  body.printing-pack .bp-group td { padding-top: 0.3rem; }
  body.printing-pack .bp-score .pg-dots { max-width: 115px; }
  body.printing-pack .bp-note { margin-top: 0.3rem; font-size: 7pt; }
  body.printing-pack .bp-foot { margin-top: 0.45rem; }
  .pg-dot, .pg-dot-you, .bp-score td.bp-measure { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- group standing: low to high, stacked dots */
.pg-dot { fill: #1D2B24; }
.pg-dot-out { fill: #5F6B64; }
.pg-you-line { stroke: var(--green); stroke-width: 1.5; }
.pg-dot-you { fill: var(--green); stroke: #fff; stroke-width: 1.5; }
.pg-you-line { display: none; }
@media print { .pg-dot-out, .pg-you-line { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media print { .pg-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.pg-ring { fill: none; stroke: #5F6B64; stroke-opacity: 0.75; stroke-width: 0.5; }
@media print { .pg-ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------------------------------------------------------------- board pack print: robust to large peer groups and narrow print widths */
.bp-pill { white-space: nowrap; }
.bp-score th { white-space: nowrap; }
@media print {
  /* A printed letter page is narrower than the phone breakpoint; keep the desktop layout on paper. */
  body.printing-pack .bp-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; }
  body.printing-pack .bp-page { overflow: visible !important; }
  body.printing-pack .bp-table { min-width: 0 !important; }
  body.printing-pack .bp-score { table-layout: fixed; }
  body.printing-pack .bp-score .c-label { width: 25%; }
  body.printing-pack .bp-score .c-num { width: 9%; }
  body.printing-pack .bp-score .c-standing { width: 25%; }
  body.printing-pack .bp-score .c-rank2 { width: 13%; }
  body.printing-pack .bp-score .c-change { width: 14%; }
  body.printing-pack .bp-score th { font-size: 7.5pt; }
  body.printing-pack .bp-score td { white-space: nowrap; }
  body.printing-pack .bp-pill { font-size: 7.5pt; padding: 0 0.3rem; }
  body.printing-pack .bp-score .pg-dots { max-width: 125px; height: 14px; }
}

/* ---------------------------------------------------------------- sign-in link page */
.lk-wrap { max-width: 30rem; margin: 3rem auto; padding: 0 1rem; }
.lk-card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.6rem 1.75rem; box-shadow: 0 10px 30px rgba(29, 43, 36, 0.08); }
.lk-card h1 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 0.6rem; }
.lk-card p { color: var(--ink-soft); }
.lk-code { width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 1.5px solid var(--rule); border-radius: 6px; }
.al-type { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.5rem; align-items: start; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.al-type input { margin-top: 0.2rem; }
.al-type-name { display: block; font-weight: 500; }
.al-type-often { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.al-type.soon .al-type-name { color: var(--ink-soft); font-weight: 400; }
.al-soon { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 0.05rem 0.4rem; margin-left: 0.3rem; border-radius: 999px; background: #FAEEDA; color: #633806; vertical-align: 1px; }
.al-kind.al-quarter { background: #E1F5EE; color: #085041; }

/* ---------------------------------------------------------------- dashboard tables: light header rule, short inset markers
   Replaces the dark header rule and the full-height left border, which met at a dark corner and made green and red hard
   to tell apart. The marker is now a short rounded bar inset in the measure cell, in a brighter green or red. */
.mk-table thead th, .gr-table th, .bp-table th, .data-table th { border-bottom: 1px solid #B4B2A9; }
.mk-table tbody th.mk-measure, .pg-table td.pg-measure, .bp-h2h td.bp-measure, .bp-score td.bp-measure {
  border-left: 0; position: relative; padding-left: 0.85rem; }
.mk-table tbody th.mk-measure.best::before, .mk-table tbody th.mk-measure.worst::before,
.pg-table td.pg-measure.best::before, .pg-table td.pg-measure.worst::before,
.bp-h2h td.bp-measure.best::before, .bp-h2h td.bp-measure.worst::before,
.bp-score td.bp-measure.best::before, .bp-score td.bp-measure.worst::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.55rem; bottom: 0.55rem; width: 3px; border-radius: 2px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mk-table tbody th.mk-measure.best::before, .pg-table td.pg-measure.best::before,
.bp-h2h td.bp-measure.best::before, .bp-score td.bp-measure.best::before { background: #1D9E75; }
.mk-table tbody th.mk-measure.worst::before, .pg-table td.pg-measure.worst::before,
.bp-h2h td.bp-measure.worst::before, .bp-score td.bp-measure.worst::before { background: #E24B4A; }
@media print {
  body.printing-pack .bp-score td.bp-measure.best::before, body.printing-pack .bp-score td.bp-measure.worst::before,
  body.printing-pack .bp-h2h td.bp-measure.best::before, body.printing-pack .bp-h2h td.bp-measure.worst::before { top: 0.25rem; bottom: 0.25rem; }
}

/* ---------------------------------------------------------------- Performance tab */
.pf-peerbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1rem; position: relative; }
.pf-peerbar strong { color: var(--ink); font-weight: 600; }
.pf-why { font-size: 0.8rem; }
.pf-group { flex-basis: 100%; font-size: 0.8rem; }
.pf-search { flex-basis: 100%; position: relative; max-width: 26rem; }
.pf-search input { width: 100%; font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px; }
.pf-search .admin-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin-top: 0.25rem; }
.pf-search .admin-results:empty { display: none; }
.pf-table { min-width: 44rem; }
.pf-table .pf-c-label { width: 22%; }
.pf-table thead tr.pf-g th { border-bottom: 0; font-size: 0.85rem; color: var(--ink); font-weight: 600; padding-bottom: 0.25rem; }
.pf-table thead tr.pf-g th.pf-span { border-bottom: 1px solid #B4B2A9; }
.pf-table thead tr.pf-s th { border-bottom: 1px solid #B4B2A9; }
.pf-table .pf-gs { border-left: 0.75rem solid transparent; background-clip: padding-box; }
.pf-table tr.pf-tot td { font-weight: 600; border-top: 1px solid #B4B2A9; }
.pf-table tr.pf-ni td { color: var(--ink-soft); }
.pf-soon { font-size: 0.7rem; color: #854F0B; background: #FAEEDA; border-radius: 999px; padding: 0.05rem 0.4rem; }
.pf-rp { min-width: 32rem; max-width: 46rem; }
.pf-rp .pf-c-label { width: 40%; }

/* ---------------------------------------------------------------- admin: link a bank on an access request */
.req-link { min-width: 17rem; }
.req-bank-search { position: relative; }
.req-bank-q { width: 100%; font: inherit; font-size: 0.9rem; padding: 0.4rem 0.55rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.req-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin-top: 0.2rem; min-width: 22rem; }
.req-results:empty { display: none; }
.req-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem 0.3rem 0.65rem; border-radius: 6px; background: #E1F5EE; color: #085041; font-size: 0.88rem; }
.req-chip-x { background: none; border: 0; font-size: 1.1rem; line-height: 1; color: #085041; cursor: pointer; padding: 0 0.2rem; }
.req-org-toggle { display: block; margin-top: 0.35rem; font-size: 0.8rem; }
.req-link .link-org { margin-top: 0.35rem; width: 100%; }
button.linklike { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; cursor: pointer; font: inherit; }
.req-link [hidden] { display: none !important; }

/* ---------------------------------------------------------------- admin tables: no inner scroll box, so the page scrolls
   and the bank search dropdown can extend past the table instead of being clipped by it */
.admin-panel .table-wrap { overflow: visible; }
.req-results { max-height: 22rem; overflow-y: auto; box-shadow: 0 8px 24px rgba(29, 43, 36, 0.12); }
.bs-filter-hint { background: #FAF6EC; border-left: 3px solid var(--brass); padding: 0.55rem 0.7rem; border-radius: 4px; color: var(--ink-soft); }
.bs-have-code { display: block; margin: 0.6rem auto 0; font-size: 0.85rem; }
.admin-sub { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.admin-panel .admin-sub:first-child { margin-top: 0.25rem; }
.admin-sub-note { font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); margin-left: 0.4rem; }

/* ---------------------------------------------------------------- Opportunities: summary */
.pf-sum-lead { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 0.5rem; max-width: 80ch; }
.pf-sum-h { font-size: 1rem; margin: 1.3rem 0 0.4rem; }
.pf-sum-h span { font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); margin-left: 0.4rem; }
.pf-sum-h.op { color: #A32D2D; }
.pf-sum-h.wa { color: #854F0B; }
.pf-sum-h.st { color: #0F6E56; }
.pf-sum { max-width: 52rem; }
.pf-sum .pf-sum-label { width: 58%; }
.pf-sum-row { cursor: pointer; }
.pf-sum-row:hover td, .pf-sum-row:focus td { background: #F3F8F5; }
.pf-sum-name { display: block; font-weight: 500; }
.gr-table td.up { color: #0F6E56; }
.gr-table td.dn { color: #A32D2D; }
.pf-peer-name { font-weight: 600; }

/* ---------------------------------------------------------------- competitor profile panel */
.cp-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(29, 43, 36, 0.35); display: flex; justify-content: flex-end; }
.cp-overlay[hidden] { display: none; }
.cp-panel { position: relative; width: min(52rem, 100%); height: 100%; overflow-y: auto; background: var(--paper, #F6F8F4); padding: 1.6rem 1.75rem 2rem;
  padding-top: calc(1.6rem + env(safe-area-inset-top, 0px)); box-shadow: -10px 0 30px rgba(29, 43, 36, 0.18); }
.cp-close { position: absolute; top: calc(0.8rem + env(safe-area-inset-top, 0px)); right: 1rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.cp-name { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 2rem 0.2rem 0; }
.cp-sub { color: var(--ink-soft); margin: 0 0 1rem; }
.cp-panel h3 { font-size: 1rem; margin: 1.3rem 0 0.5rem; }
.cp-table { min-width: 32rem; }
body.cp-open-body { overflow: hidden; }
button.cp-open { font-weight: 500; text-decoration: underline; }

/* ---------------------------------------------------------------- uniform navigation: one row that scrolls sideways
   Main tabs and every tab's section pills stay on one line; text never wraps and pills never squash. */
.dash-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { flex: none; white-space: nowrap; }
.pg-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.pg-pills::-webkit-scrollbar { display: none; }
.pg-pill { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .dash-tabs, .pg-pills { margin-left: calc(-1 * var(--gutter, 1.25rem)); margin-right: calc(-1 * var(--gutter, 1.25rem)); padding-left: var(--gutter, 1.25rem); padding-right: var(--gutter, 1.25rem); }
  .dash-tab { padding: 0.5rem 0.65rem; font-size: 0.92rem; }
  .pg-pill { font-size: 0.85rem; padding: 0.38rem 0.85rem; }
}

/* "Compared with ..." notes that point to Settings */
.cmp-note { font-size: 0.88rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.75rem; margin: 0 0 1rem; }
.cmp-note .linklike { font-weight: 500; }

/* ---------------------------------------------------------------- competitor editor (setup and Settings) */
.cmp-editor { margin: 0.5rem 0 0.75rem; }
.cmp-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.cmp-row:first-child { border-top: 0; }
.cmp-rank { flex: none; min-width: 3.6rem; text-align: center; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 999px; background: #EEF2EE; color: var(--ink-soft); }
.cmp-row:first-child .cmp-rank { background: #E1F5EE; color: #085041; }
.cmp-name { flex: 1 1 12rem; font-weight: 500; }
.cmp-name small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.cmp-tools { display: flex; align-items: center; gap: 0.5rem; }
.cmp-btn { width: 1.9rem; height: 1.9rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff; cursor: pointer; font-size: 0.9rem; line-height: 1; }
.cmp-btn:disabled { opacity: 0.35; cursor: default; }
.cmp-remove { color: #A32D2D; }
.cmp-changing { gap: 0.5rem; }
.cmp-search { position: relative; flex: 1 1 16rem; }
.cmp-search input { width: 100%; }
.cmp-search .admin-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 8; background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin-top: 0.2rem; box-shadow: 0 8px 24px rgba(29, 43, 36, 0.12); }
.cmp-search .admin-results:empty { display: none; }
.cmp-add { display: inline-block; margin-top: 0.6rem; }

/* ---------------------------------------------------------------- Settings tab */
.st-grid { display: grid; gap: 1rem; max-width: 56rem; }
.st-sec { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.15rem; }
.st-sec h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.st-sub { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.88rem; }
.st-summary { margin: 0 0 0.6rem; }
.st-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.st-editor { margin-top: 1rem; }
.st-prefs { border: 0; padding: 0; background: none; }
.al-grid-feed { grid-template-columns: 1fr; }
.pg-listtools { display: flex; gap: 0.5rem; margin: 0 0 0.5rem; }
.pg-listtools input { flex: 1; min-width: 0; }
.pg-listtools select { flex: none; width: auto; }

/* ---------------------------------------------------------------- first-sign-in setup */
.su-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(29, 43, 36, 0.45); display: flex; align-items: center; justify-content: center; padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px)); padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
.su-modal { background: #fff; border-radius: 14px; width: min(36rem, 100%); max-height: 100%; overflow-y: auto; padding: 1.4rem 1.4rem 1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.su-step { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.3rem; }
.su-modal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.5rem; }
.su-modal p { color: var(--ink-soft); line-height: 1.5; }
.su-group { color: var(--ink) !important; font-size: 1.02rem; }
.su-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.su-dots { display: flex; justify-content: center; gap: 0.4rem; margin: 1rem 0 0; }
.su-dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #D5DDD7; }
.su-dots span.on { background: var(--green, #2E5B47); }

/* Opportunities summary on phones: each item stacks, with both dollar figures on a line under the description */
@media (max-width: 640px) {
  .pf-sum { min-width: 0; table-layout: auto; }
  .pf-sum thead { display: none; }
  .pf-sum tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  .pf-sum td { display: inline-block; border: 0; padding: 0.1rem 0; text-align: left; }
  .pf-sum td:first-child { display: block; width: 100%; }
  .pf-sum td[data-label] { margin-right: 1.1rem; font-size: 0.92rem; }
  .pf-sum td[data-label]::before { content: attr(data-label) " "; font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }
  .pf-sum-h span { display: block; margin: 0.15rem 0 0; }
}

/* ---------------------------------------------------------------- landing page: online banking platforms */
.platforms { padding: 0.5rem 0 2.5rem; }
.platform-fig { display: flex; align-items: center; gap: 2rem; margin: 0; flex-wrap: wrap; }
.donut { width: 11rem; height: 11rem; flex: none; }
.donut-n { font: 600 22px var(--sans, sans-serif); fill: var(--ink); }
.donut-l { font: 12px var(--sans, sans-serif); fill: var(--ink-soft); }
.platform-fig figcaption { flex: 1 1 18rem; }
.platform-fig h2 { margin: 0 0 0.75rem; }
.platform-legend { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.35rem; max-width: 22rem; }
.platform-legend li { display: flex; align-items: center; gap: 0.6rem; }
.platform-legend .sw { width: 0.85rem; height: 0.85rem; border-radius: 3px; flex: none; }
.platform-legend .pn { flex: 1; }
.platform-legend .ps { font-variant-numeric: tabular-nums; font-weight: 600; }
.platforms .note { max-width: 60ch; }

/* ---------------------------------------------------------------- Digital tab */
.dg-sec { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.15rem; margin: 0 0 1rem; max-width: 60rem; }
.dg-sec h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.dg-lead { margin: 0 0 0.75rem; }
.dg-conf { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px; background: #E1F5EE; color: #085041; vertical-align: 1px; }
.dg-mix { display: flex; height: 0.9rem; border-radius: 999px; overflow: hidden; margin: 0.25rem 0 0.6rem; max-width: 36rem; }
.dg-bar { display: block; height: 100%; }
.dg-bar.mine { box-shadow: inset 0 0 0 2px #fff; }
.dg-mix-legend { list-style: none; padding: 0; margin: 0 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.88rem; }
.dg-mix-legend li { display: flex; align-items: center; gap: 0.35rem; }
.dg-mix-legend li.mine { font-weight: 600; }
.dg-mix-legend .sw { width: 0.75rem; height: 0.75rem; border-radius: 3px; }
.dg-why { margin-top: 0.5rem; font-size: 0.88rem; }
.dg-why summary { cursor: pointer; color: var(--green, #2E5B47); }
.dg-why ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.dg-table { min-width: 36rem; }

/* ---------------------------------------------------------------- landing page: platform bars (in the chart grid) */
.chart-platforms .pf-bars { display: grid; gap: 0.6rem; margin: 0.75rem 0 0.9rem; }
.pf-bar { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: 0.75rem; font-size: 0.92rem; }
.pf-track { height: 0.9rem; background: #E3E9E4; border-radius: 3px; overflow: hidden; }
.pf-fill { display: block; height: 100%; background: #4C8C74; border-radius: 3px; }
.pf-fill.other { background: #B4B2A9; }
.pf-pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-platforms .note { font-size: 0.78rem; line-height: 1.5; }

/* ---------------------------------------------------------------- landing page: U.S. banks by size */
.by-size { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.by-size h2 { margin: 0 0 0.25rem; }
.by-size-sub { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 0.9rem; max-width: 80ch; }
.size-table { width: 100%; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: center; }
.size-table th:first-child, .size-table td:first-child { text-align: left; }
.size-table th { vertical-align: bottom; line-height: 1.3; }
.size-table th span { font-weight: 400; }
.size-table td .sub { display: block; }
.size-table tr.tot td { font-weight: 600; border-top: 1.5px solid var(--ink); }
.by-size .note { max-width: 80ch; }

/* ---------------------------------------------------------------- landing page: one structure everywhere
   Title, content, then an optional short note in italics. */
.sec-note { font-size: 0.8rem; font-style: italic; color: var(--ink-soft); line-height: 1.5; margin: 0.75rem 0 0; max-width: none; }
.charts figcaption h2 { margin-bottom: 0.75rem; }

/* Horizontal bars drawn as SVG (the site's security policy blocks inline style widths) */
.hb { display: grid; gap: 0.6rem; margin: 0.25rem 0 0; }
.hb-row { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: 0.75rem; font-size: 0.92rem; }
.hb-track { width: 100%; height: 0.9rem; display: block; }
.hb-bg { fill: #E3E9E4; }
.hb-fill.green { fill: #4C8C74; }
.hb-fill.dark { fill: #2E5B47; }
.hb-fill.other { fill: #B4B2A9; }
.hb-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Digital tab: platform mix as SVG */
svg.dg-mix { display: block; width: 100%; max-width: 36rem; height: 0.9rem; border-radius: 999px; overflow: hidden; margin: 0.25rem 0 0.6rem; }
.dg-mix-legend .sw { width: 0.75rem; height: 0.75rem; flex: none; }
.dg-c0 { fill: #2E5B47; } .dg-c1 { fill: #BA7517; } .dg-c2 { fill: #4C8C74; }
.dg-c3 { fill: #1D2B24; } .dg-c4 { fill: #8FB8A4; } .dg-c5 { fill: #C9CFC9; }
svg.dg-mix rect.mine { stroke: #fff; stroke-width: 0.4; }

/* US banks by size: each group's share of all banks and of all assets, smaller and in italics under the figure */
.size-table td .share { display: block; font-size: 0.78rem; font-style: italic; color: var(--ink-soft); margin-top: 0.1rem; }

/* Mobile website speed: brass bars on a 0 to 100 scale, one continuous dashed line at 90 (Google's "good") across
   every row, labeled underneath. The line sits over the bar column: after the name column and gap, before the value. */
.hb-fill.brass { fill: #BA7517; }
.hb-goal { position: relative; }
.hb-goal-line { position: absolute; top: -0.25rem; bottom: -0.25rem; left: calc(7.5rem + 0.75rem); right: calc(3rem + 0.75rem); pointer-events: none; }
.hb-goal-line span { position: absolute; left: 90%; top: 0; bottom: 0; border-left: 1.5px dashed #2E5B47; }
.hb-goal-under { margin-top: 0.3rem; font-size: 0.72rem; color: #2E5B47; }
.hb-goal-pos { position: relative; display: block; height: 1rem; }
.hb-goal-pos span { position: absolute; left: 90%; top: 0; transform: translateX(-50%); white-space: nowrap; }

/* Admin: waiting-to-sign-in rows hidden behind "Show hidden" */
.waiting-table tr.waiting-hidden td { color: var(--ink-soft); }
.waiting-table + .linklike { margin-top: 0.5rem; font-size: 0.85rem; }

/* ---- banks and credit unions: the view switch on the home page (/, /banks, /credit-unions) */
.scope-switch { display: inline-flex; margin: 0 0 1.4rem; border: 1px solid var(--green); border-radius: 6px; overflow: hidden; background: #fff; }
.scope-switch a { padding: 0.45rem 0.95rem; font-size: 0.9rem; color: var(--green); text-decoration: none; white-space: nowrap; }
.scope-switch a + a { border-left: 1px solid var(--green); }
.scope-switch a:hover { background: var(--paper-deep); color: var(--green-deep); }
.scope-switch a[aria-current="page"] { background: var(--green); color: #fff; font-weight: 600; }
@media (max-width: 480px) {
  .scope-switch { display: flex; }
  .scope-switch a { flex: 1 1 auto; text-align: center; padding: 0.45rem 0.5rem; font-size: 0.85rem; }
}
.kind-tag { display: inline-block; margin-left: 0.45rem; padding: 0 0.4rem; font-size: 0.7rem; font-weight: 500; line-height: 1.5;
  color: var(--brass); border: 1px solid var(--brass); border-radius: 3px; vertical-align: 0.15em; white-space: nowrap; }
.ledger .who { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); margin-left: 0.4rem; }
.size-paired tr.pair-top td { border-bottom: 0; padding-bottom: 0.15rem; }
.size-paired tr.pair-bot td { padding-top: 0.15rem; }
.size-paired td .sub { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.size-paired tr.pair-bot td:first-child .sub { margin-top: 0; }
.size-table tr.tot-second td { border-top: 1px solid var(--rule); }
/* credit union pages */
.kind-line { margin: 0 0 0.4rem; }
.kind-line .kind-tag { margin-left: 0; margin-right: 0.4rem; }
.kind-tag.kind-warn { color: #9A3B2E; border-color: #9A3B2E; }
.related .kind-tag { font-size: 0.65rem; }
