/* The issuer directory, on top of /site.css (which styles the page's <main>,
   headings and tables) and the munis tools' /munis/dashboard/munis.css (tiles,
   panels, chart marks, legends, table views). Tokens are the site's; the class
   colours are /explorer/classes.css's. */
body > main:not([class]) h1 { max-width: 28ch; }
.bi-meta { margin: 0 0 18px; color: var(--label); font-size: 14px; }
.bi-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; }
.bi-letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  font: 500 14px var(--sans); color: var(--accent);
}
a.bi-letter:hover { border-color: var(--accent-line); background: var(--accent-wash); text-decoration: none; }
.bi-letter[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.bi-letter.is-empty { color: var(--line-2); background: transparent; }

/* chart panels */
body > main:not([class]) .bi-panel h2.bi-h { margin: 0 0 4px; font: 600 18px/1.35 var(--sans); color: var(--ink); }
body > main:not([class]) .bi-panel .m-sub { max-width: 80ch; }
.bi-panel { padding-bottom: 16px; }
.bi-bar { cursor: pointer; }
.bi-seg { stroke: var(--panel); stroke-width: 1; }
.bi-bar.is-hover .bi-seg, .bi-bar:focus .bi-seg { filter: brightness(1.12); }
.bi-bar.is-hover .m-rowlabel { fill: var(--accent); }
.bi-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.bi-dotline { fill: var(--accent); }

/* the map's keys: shading, pie slices, pie area */
.bi-keys { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 32px; margin: 8px 0 4px; }
.bi-key { min-width: 0; }
body > main:not([class]) .bi-panel .bi-key-h { margin: 0 0 2px; font-size: 12.5px; color: var(--label); }
.bi-key .m-key-circle { border-radius: 50%; }
.bi-size { display: flex; align-items: flex-end; gap: 6px; }
.bi-size-c { fill: none; stroke: var(--label); stroke-width: 1; }
.bi-size-t { fill: var(--label); font: 11px var(--sans); }

/* the map: a frame the view zooms and pans inside; land without issuers is the
   grid tint; strokes keep their width at every zoom */
.bi-map { position: relative; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--panel); touch-action: manipulation; }
.bi-map:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bi-world { display: block; width: 100%; height: auto; cursor: grab; touch-action: pan-y; user-select: none; }
.bi-map.is-hovering .bi-world { cursor: pointer; }
.bi-world .bi-sea { fill: transparent; }
.bi-world .bi-land { stroke: var(--panel); stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
/* a shaded country's fill is its attribute; CSS would override it */
.bi-world .bi-land:not(.is-data) { fill: var(--chart-grid, #E2E6EC); }
.bi-world .bi-dot { stroke: #FFFFFF; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
/* the hovered and the chosen country, outlined above the land and under the pies */
.bi-ring .bi-ring-mark { fill: none; stroke: var(--ink); stroke-width: 1.2px; vector-effect: non-scaling-stroke; pointer-events: none; }
.bi-ring.is-picked .bi-ring-mark { stroke: var(--accent); stroke-width: 1.8px; }
/* the rating pies: a white edge between slices and pies; the hovered pie and
   the chosen one edged like their country's outline */
.bi-pie path, .bi-pie circle { stroke: var(--panel); stroke-width: 0.9px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bi-pie.is-hot path, .bi-pie.is-hot circle { stroke: var(--ink); stroke-width: 1.4px; }
.bi-pie.is-picked path, .bi-pie.is-picked circle { stroke: var(--accent); stroke-width: 1.8px; }
.bi-lead line { stroke: #7A8494; stroke-width: 0.7px; vector-effect: non-scaling-stroke; }
.bi-lead .bi-anchor { fill: #7A8494; }
/* names of the largest pies, placed in px over the map */
.bi-labels { position: absolute; inset: 0; pointer-events: none; }
/* on a light card, so a name reads on the darkest shade */
.bi-label { position: absolute; padding: 1px 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.88);
  font: 600 12px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.bi-label.is-picked { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bi-label b { display: block; font-weight: 400; color: var(--label); font-variant-numeric: tabular-nums; }
/* zoom buttons in a row at the bottom left, over the South Pacific, where the
   whole map has no land and no pie */
.bi-zoom { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 4px; }
.bi-zoom-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.bi-zoom-btn:hover { border-color: var(--accent-line); background: var(--accent-wash); }
.bi-zoom-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bi-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body > main:not([class]) .bi-panel .bi-note { font-size: 13px; }
.bi-off { font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.bi-linkbtn { font-size: 13px; }
.bi-pick { max-width: 100%; margin: 4px 0 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font: inherit; font-size: 14px; color: var(--ink); }
.bi-country { margin: 12px 0 0; }
body > main:not([class]) .bi-country .bi-h3 { margin: 0 0 8px; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.bi-more { margin: 8px 0 0; font-size: 13px; }

/* tooltips (inside /chart_tips.js's .chart-tip box): the subject in ink, its
   figure large, then its make-up in aligned columns */
.bi-tip { min-width: 200px; }
.bi-tip-title { font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.3; }
.bi-tip-sub { margin-top: 1px; font-size: 12px; color: var(--label); }
.bi-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 2px; }
.bi-tip-value { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi-tip-aside { font-size: 12px; color: var(--label); white-space: nowrap; }
.bi-tip-grid { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 2px 8px;
  margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 12px; }
.bi-tip-grid .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.bi-tip-grid .bi-tip-share { min-width: 3.2ch; color: var(--label); }
.bi-tip-key { width: 10px; height: 10px; border-radius: 2px; }
.bi-tip-grid.is-list { grid-template-columns: 1fr auto; }
.bi-tip-key.is-round { border-radius: 50%; }
.bi-tip-grid.is-rated { grid-template-columns: 10px 1fr auto; border-top: 0; padding-top: 2px; }
.bi-tip-sec { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.bi-tip-rated { font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi-tip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-tip-foot { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 12px; color: var(--label); }

/* issuer tables */
.bi-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 6px; }
.bi-filter {
  width: 100%; max-width: 420px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  font: inherit; color: var(--ink);
}
.bi-sort { font-size: 13px; }
.bi-shown { min-height: 1.4em; margin: 0 0 4px; font-size: 13px; color: var(--label); }
/* site.css makes a table its own scroll box (display: block), which stops it
   filling the page; the wrapper scrolls instead and the table stays a table. */
.bi-scroll { overflow-x: auto; background: var(--panel); }
body > main:not([class]) .bi-table { display: table; width: 100%; font-variant-numeric: tabular-nums; }
body > main:not([class]) .bi-table :is(th, td).num { text-align: right; }
body > main:not([class]) .bi-table td { white-space: nowrap; vertical-align: middle; }
body > main:not([class]) .bi-table td:nth-child(2) { white-space: normal; min-width: 16ch; }
.bi-makeup { display: block; }
/* a firm's member issuers, under its name */
.bi-members { margin-top: 2px; font-size: 12.5px; color: var(--label); }
.bi-members summary { cursor: pointer; }
.bi-members ul { margin: 4px 0 2px; padding-left: 16px; }
.bi-members li { white-space: normal; }
.bi-members-size { color: var(--label); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  /* one row that scrolls sideways, like the section bar above it */
  .bi-letters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .bi-letter { flex: none; }
  .bi-panel { padding-left: 12px; padding-right: 12px; }
  /* the whole map is short on a phone: smaller buttons cover less of it */
  .bi-zoom { bottom: 4px; left: 4px; gap: 3px; }
  .bi-zoom-btn { width: 28px; height: 28px; font-size: 15px; }
}
