/* Net New tokens. Light is the default; dark applies only when the reader picks it (data-theme="dark").
   Muted report palette, checked with the dataviz validator in both modes (10/24).
   Firm types (--g-*) use their own hues, never the growth colors (--c-*), so a color means one thing (10/25, all-pairs CVD-checked; wirehouses are a deliberate near-neutral). */
:root {
  --bg: #ffffff; --surface: #f6f5f2; --ink: #1b1b1a; --ink2: #5f5e5a; --ink3: #6b6a65; --rule: #d6d3cc; --hair: #e9e7e2;
  --accent: #21508a; --accent-ink: #21508a; --chip: #f1efea; --chip-on: #1b1b1a; --chip-on-ink: #ffffff;
  --c-market: #b9b3a8; --c-clients: #21508a; --c-recruit: #25927b; --c-deals: #ad4a38; --c-other: #dcd8d0;
  --c-organic: #21508a; --c-unmatched: #7a7873; --c-filing: #e4e1da; --c-unplaced: #efede8; --c-moved: #b8862b;
  --g-ind: #7466d6; --g-roll: #d6a614; --g-wire: #3d3d45; --g-bd: #e78fb3; --g-dtc: #4c8f2f; --g-robo: #0089a0;
  --seq1: #1d4377; --seq2: #3f6ea6; --seq3: #7ea1cb; --seq4: #b4c9e2; --seq5: #dae5f1;
  --c-line: #1b1b1a; --c-ref: #6b6a65; --pos: #2e6b3f; --neg: #a63a2b; --tip: #1b1b1a; --tip-ink: #f6f5f2;
  --brand: #a3803f; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.06); color-scheme: light;
  /* type scale, shared by both themes (not colors): page title, section title, sub-title, lede, hero number, second number */
  --t-display: clamp(36px, 5.4vw, 60px); --t-h2: clamp(26px, 3.2vw, 34px); --t-h3: 21px; --t-lede: clamp(19px, 2.2vw, 22px); --t-num: clamp(44px, 5.6vw, 72px); --t-num2: clamp(30px, 3.4vw, 40px);
  --max: 1280px; --gut: max(16px, env(safe-area-inset-left, 0px));
}
:root[data-theme="dark"] {
  --bg: #141416; --surface: #1c1c1e; --ink: #f2f1ee; --ink2: #a8a6a0; --ink3: #908e88; --rule: #3a3936; --hair: #2a2a2b;
  --accent: #7f9cc4; --accent-ink: #8aa6cb; --chip: #232325; --chip-on: #f2f1ee; --chip-on-ink: #141416;
  --c-market: #6b665e; --c-clients: #6f8fba; --c-recruit: #9bdcc9; --c-deals: #c0705f; --c-other: #3d3a35;
  --c-organic: #6f8fba; --c-unmatched: #8c8a84; --c-filing: #34322f; --c-unplaced: #46433d; --c-moved: #d4a24c;
  --g-ind: #7f72e0; --g-roll: #c99a20; --g-wire: #c9c8c2; --g-bd: #cf5f8c; --g-dtc: #3d8733; --g-robo: #33b0c2;
  --seq1: #b9cfec; --seq2: #8fb0dc; --seq3: #6489b8; --seq4: #456690; --seq5: #2f4666;
  --c-line: #f2f1ee; --c-ref: #908e88; --pos: #6fbf86; --neg: #e07a6a; --tip: #f2f1ee; --tip-ink: #141416;
  --brand: #c9a668; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.5); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { overflow-wrap: anywhere; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-display); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink2); }
.small { font-size: 14px; line-height: 1.45; }
.tiny { font-size: 12px; line-height: 1.4; color: var(--ink3); }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--hair); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.bar { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 32px; min-height: 56px; }
header.top { padding-left: var(--gut); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
/* the logo (direction 11C, 10/25): dots that spell N in ink, faint dots behind, one gold dot. --brand is the logo's gold only, never a chart color */
.brand .mark { width: 22px; height: 22px; flex: none; } .mark .on { fill: currentColor; } .mark .off { fill: var(--rule); } .mark .gold { fill: var(--brand); }
.brand:hover { text-decoration: none; }
nav.views { display: flex; gap: 22px; flex-wrap: wrap; min-width: 0; align-self: stretch; align-items: center; }
nav.views a { color: var(--ink2); font-size: 14px; white-space: nowrap; }
nav.views a:hover { color: var(--ink); text-decoration: none; }
nav.views a.on { color: var(--ink); font-weight: 700; }
nav.views { flex: 1 1 auto; }
.top-find { position: relative; margin-left: auto; flex: 0 1 240px; min-width: 150px; }
.top-find input { width: 100%; box-sizing: border-box; height: 34px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; }
.top-find input::placeholder { color: var(--ink3); }
.top-find input:focus { outline: 0; border-color: var(--ink2); }
.top-find .sug { width: 500px !important; left: auto !important; right: 0; font-size: 14px; }
.top-find .top-msg { top: 40px; padding: 10px 14px; color: var(--ink2); }
@media (max-width: 1000px) { .top-find { flex-basis: 150px; } }   /* a narrow window: a shorter box keeps About on the same row */
@media (max-width: 900px) { .top-find { display: none; } }   /* phones keep the menu they have; the Firms page has its own search */
nav.views a.r { margin-left: 0; }
@media (max-width: 900px) { nav.views a.r { margin-left: auto; } }   /* with the search hidden, About goes back to the right end */   /* About sits at the right end of the bar, beside the theme switch */
button.theme { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 0; background: none; color: var(--ink2); cursor: pointer; padding: 0; }
button.theme:hover { color: var(--ink); }
@media (max-width: 760px) { .bar { gap: 12px 16px; } button.theme { margin-left: auto; } }
@media (max-width: 600px) {
  .bar { flex-wrap: wrap; row-gap: 0; }
  nav.views .lg { display: none; }
  nav.views { order: 3; flex: 1 1 100%; flex-wrap: nowrap; gap: 16px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)) -16px; padding-inline: var(--gut) 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); }   /* one row that scrolls sideways, fading at both edges (the fade sits in the padding until it scrolls) */
  nav.views::-webkit-scrollbar { display: none; }
  nav.views a { padding-block: 12px; font-size: 15px; }   /* 44px tap height */
  button.theme { width: 44px; height: 44px; margin-right: -6px; }
}

/* small tabs (pages.js: subTabs) and the one plain line at the top of a page (pgLine). Quiet: the tabs are text with an underline, the line is 13px gray */
.pg-top { display: grid; gap: 10px; padding-top: 20px; }
.subtabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hair); }
.subtabs a { font-size: 14px; color: var(--ink2); padding: 6px 0 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; white-space: nowrap; }
.subtabs a:hover { color: var(--ink); text-decoration: none; }
.subtabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.pg-line { font-size: 13px; line-height: 1.45; color: var(--ink3); max-width: none; }
.pg-line b { color: var(--ink2); font-weight: 600; }
:is(#deals, #clients, #robos, #newfirms, #heartbeat, #firms) .pg-top + .sec-head { padding-top: 40px; }
#where .pg-top { --wp: clamp(0px, 2.2vw, 32px); width: min(var(--max), calc(100% + 2 * var(--wp))); margin-left: calc((100% - min(var(--max), 100% + 2 * var(--wp))) / 2); }   /* the Offices cover pads its wrap by --wp (where.css), so the tabs step back out to line up with the bar */
@media (max-width: 600px) { .subtabs { gap: 16px; overflow-x: auto; scrollbar-width: none; } }

/* layout */
main { padding-left: var(--gut); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 96px; }
.wrap { max-width: var(--max); margin: 0 auto; min-width: 0; }
.wrap > * { min-width: 0; }
.wrap.narrow, .narrow { max-width: 760px; margin-left: 0; }
section.view { display: none; }
section.view.on { display: block; }
.hero { padding-block: 56px 24px; display: grid; gap: 16px; max-width: 860px; }
.hero .lede { font-size: var(--t-lede); line-height: 1.4; color: var(--ink2); max-width: 720px; }
.byline { font-size: 14px; color: var(--ink2); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--hair); margin-block: 16px 24px; padding-block: 24px 48px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi .v { font-size: var(--t-num2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.kpi .v small { font-size: 0.5em; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.kpi .l { font-size: 15px; line-height: 1.35; }
.kpi .r { font-size: 13px; color: var(--ink3); }

/* takeaways and exhibits */
.take { padding-block: 64px 16px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.take:first-of-type { border-top: 0; }
@media (max-width: 900px) { .take { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 40px 4px; } }
.take .num { font-size: 14px; font-weight: 600; color: var(--ink3); }
.take .txt { display: grid; gap: 14px; }
.take .txt p { color: var(--ink2); }
.take .txt p b { color: var(--ink); font-weight: 600; }
.exhibit { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }   /* one column that never grows past the page, so a wide table scrolls inside it */
.ex-title { font-size: 15px; font-weight: 600; }
.ex-title span { color: var(--ink3); font-weight: 500; }
.ex-find { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.ex-src { font-size: 13px; line-height: 1.45; color: var(--ink3); border-top: 1px solid var(--hair); padding-top: 8px; }
.ex-src a { color: var(--accent-ink); }
.ex-note { font-size: 12px; color: var(--ink3); line-height: 1.45; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .key-dash { margin-right: 6px; vertical-align: 0; }   /* a dashed-line key for a dashed series (Exhibits 7 and 8) */
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: inherit; font-variant-numeric: tabular-nums; fill: var(--ink2); font-size: 12px; }
.chart .lbl { fill: var(--ink); font-size: 13px; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart .inval { fill: #ffffff; font-size: 12px; font-weight: 600; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .axis { stroke: var(--rule); stroke-width: 1; }
.chart .ref { stroke: var(--c-ref); stroke-width: 1; stroke-dasharray: 3 3; }
.chart [data-tip] { cursor: default; }
.chart .hit { fill: transparent; }
.chart .hl:hover, .chart .hl.on { opacity: .82; }

/* sections */
.sec-head { padding-block: 72px 28px; display: grid; gap: 12px; max-width: 820px; }
.sec-head p { color: var(--ink2); font-size: 19px; line-height: 1.45; }
.card { background: none; border-top: 1px solid var(--hair); border-radius: 0; padding: 20px 0 0; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 24px; }
.gap-l { height: 48px; }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 0 16px; }
input.search { flex: 1 1 280px; min-width: 0; font: inherit; font-size: 17px; padding: 11px 14px; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--bg); color: var(--ink); outline: none; }
input.search:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
select { font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); outline: none; cursor: pointer; }
select:hover { border-color: var(--ink3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 6px; border: 1px solid var(--rule); background: none; color: var(--ink2); cursor: pointer; }
.chip b { font-weight: 600; color: var(--ink2); margin-left: 4px; }
.chip:hover { border-color: var(--ink3); color: var(--ink); }
.chip.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.chip.on b { color: inherit; opacity: .7; }
button.btn { font: inherit; font-size: 15px; padding: 9px 18px; border-radius: 6px; border: 1px solid var(--rule); background: none; color: var(--ink); cursor: pointer; }
button.btn:hover { border-color: var(--ink3); }
button.btn.solid { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-ink); }
button.btn.solid:hover { opacity: .88; }
button.btn:disabled { opacity: .45; cursor: default; }
button.act, a.act { font: inherit; border: 0; background: none; color: var(--accent-ink); cursor: pointer; padding: 0; }
button.act:hover, a.act:hover { text-decoration: underline; }
@media (max-width: 600px) { button.act, a.act { display: inline-flex; align-items: center; min-height: 44px; } }
button.link { font: inherit; border: 0; background: none; color: var(--accent-ink); cursor: pointer; padding: 0; }
button.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-sec[tabindex="-1"]:focus { outline: none; }   /* a Method section that a link jumped to takes focus for the next Tab, with no ring around the whole section */

/* tables */
.tablewrap { overflow-x: auto; border-radius: 6px; border-top: 1px solid var(--hair); }
table { font-variant-numeric: tabular-nums; width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-size: 12px; font-weight: 500; color: var(--ink3); white-space: nowrap; position: sticky; top: 0; background: var(--bg); border-bottom-color: var(--rule); }
th.sort { cursor: pointer; }
th.sort.on { color: var(--ink); }
td.n, th.n { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 14px; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: color-mix(in srgb, var(--ink) 4%, transparent); }
td .sub { display: block; font-size: 13px; color: var(--ink2); }
.rng { color: var(--ink3); font-size: 13px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 980px; background: var(--chip); color: var(--ink2); white-space: nowrap; }
.more { text-align: center; padding-block: 16px; }

/* firm detail */
.firm-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; padding-block: 48px 24px; }
.firm-head h2 { font-size: var(--t-h2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink2); font-size: 15px; }
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--hair); padding-block: 20px 8px; margin-block: 0 24px; }
@media (max-width: 860px) { .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: grid; gap: 2px; min-width: 0; align-content: start; }
.stat .v { font-size: var(--t-num2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat .l { font-size: 14px; }
.stat .r { font-size: 13px; color: var(--ink3); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.plain li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
ul.plain li:last-child { border-bottom: 0; padding-bottom: 0; }

/* compare tray: solid, one row, scrolls sideways on phones */
.tray, #tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg) !important; border-top: 1px solid var(--hair);
  padding-left: var(--gut); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
.tray[hidden] { display: none; }
.tray .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 700px) {
  .tray .wrap { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-block: 6px; scrollbar-width: none; }   /* room for the chips' 44px tap areas, no up-and-down scroll */
  .tray .wrap::-webkit-scrollbar { display: none; }
  .tray .wrap > *, .tray .chip, .tray .btn { flex: none; white-space: nowrap; }
}
body:has(#tray:not([hidden])) footer.site { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* dark: the solid button uses the light fill with dark text (--chip-on is already light there) */

/* feed */
.feed { display: grid; gap: 0; }
.feed .it { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.feed .it:last-child { border-bottom: 0; }
@media (max-width: 600px) { .feed .it { grid-template-columns: minmax(0, 1fr) auto; } .feed .it .k { grid-column: 1 / -1; } }
.feed .k { font-size: 12px; font-weight: 600; color: var(--ink2); }
.feed .b { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* method diagram */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: stretch; counter-reset: st; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.flow .st { border-top: 1px solid var(--rule); padding: 14px 0 0; display: grid; gap: 4px; align-content: start; }
.flow .st b { font-size: 15px; }
.flow .st span { font-size: 13px; color: var(--ink2); line-height: 1.4; }

footer.site { border-top: 1px solid var(--hair); margin-top: 24px; padding-block: 32px 56px; padding-left: var(--gut); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
footer.site .wrap .links { display: flex; gap: 16px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink3); }

#tip { font-variant-numeric: tabular-nums; position: fixed; z-index: 50; pointer-events: none; background: var(--tip); color: var(--tip-ink); font-size: 13px; line-height: 1.4;
  padding: 9px 12px; border-radius: 6px; max-width: 280px; opacity: 0; transition: opacity .08s; }
#tip.on { opacity: 1; }
#tip b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
details.tbl summary { cursor: pointer; font-size: 13px; color: var(--accent-ink); list-style: none; }
details.tbl summary:hover { text-decoration: underline; }
details.tbl summary::-webkit-details-marker { display: none; }
details.tbl[open] summary { margin-bottom: 8px; }
details.tbl .fold-list { margin: 0 0 8px; padding-left: 18px; max-width: 760px; }
details.tbl .fold-list li { margin: 0 0 6px; }
details.tbl .fold-p { margin: 0 0 8px; max-width: 760px; }

/* home map: every firm as a bubble */
.map-wrap { display: grid; gap: 12px; margin-bottom: 32px; }
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.map-controls .chip { display: inline-flex; align-items: center; gap: 7px; }
.map-controls .chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-controls .chip.off { opacity: .35; }
.map-controls input.search { flex: 0 1 240px; margin-left: auto; font-size: 15px; padding: 8px 14px; border-radius: 6px; }
@media (max-width: 720px) { .map-controls input.search { flex: 1 1 100%; margin-left: 0; } }
#map svg { display: block; width: 100%; height: auto; overflow: visible; }
#map circle { cursor: pointer; transition: opacity .15s; }
#map.dim circle { opacity: .08; }
#map.dim circle.hit { opacity: .9; }
#map .halo { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.map-note { font-size: 13px; color: var(--ink2); }
/* phones: every chip and size toggle gets a 44px tall tap area without looking bigger; rows of chips sit far enough apart that two tap areas never overlap */
@media (max-width: 600px) {
  .chips { row-gap: 12px; }
  .chip, #where .seg button { position: relative; }
  .chip::before, #where .seg button::before { content: ""; position: absolute; inset: -6px 0; }
}

/* share (js/share.js): "Copy image" and "Share" at the top right of every exhibit and map, quiet until the reader points at it */
.has-share { position: relative; scroll-margin-top: 76px; }
.ex-share { position: absolute; top: 0; right: 0; z-index: 4; display: flex; gap: 14px; font-size: 13px; transition: opacity .2s; }
.ex-share .act { font-size: 13px; }
.has-share > .ex-title, .has-share > .ex-find { padding-right: 168px; }
@media (hover: hover) { .ex-share { opacity: 0; } .has-share:hover > .ex-share, .ex-share:focus-within, .ex-share:has(.sh-menu) { opacity: 1; } }
@media (max-width: 600px) { .ex-share, .has-share:hover > .ex-share { position: static; justify-content: flex-end; margin-bottom: -4px; opacity: 1; } .has-share > .ex-title, .has-share > .ex-find { padding-right: 0; } }
.sh-menu { position: absolute; top: calc(100% + 6px); right: 0; display: grid; min-width: 180px; padding: 6px; background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); }
.sh-menu a, .sh-menu button { font: inherit; font-size: 14px; text-align: left; color: var(--ink); background: none; border: 0; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.sh-menu a:hover, .sh-menu button:hover, .sh-menu a:focus-visible, .sh-menu button:focus-visible { background: var(--chip); text-decoration: none; }
.sh-menu .sh-url { font: inherit; font-size: 13px; width: 260px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); }

/* type-ahead list of matching firms under a firm search box (firmSuggest in core.js) */
#firms .controls, #briefing .cover .find { position: relative; }
.sug { position: absolute; z-index: 30; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; text-align: left; font-size: 15px; line-height: 1.35; }
.sug-r { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--hair); cursor: pointer; }
.sug-r:first-child { border-top: 0; }
.sug-r.on, .sug-r:hover { background: var(--surface); }
.sug-n { flex: 1; min-width: 0; }
.sug-n b { font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.sug-n mark { background: none; color: inherit; font-weight: 650; }
.sug-n .sub { display: flex; align-items: center; flex-wrap: wrap; margin-top: 2px; font-size: 13px; color: var(--ink3); }
.sug-v { text-align: right; font-size: 14px; white-space: nowrap; color: var(--ink); }
.sug-v span { display: block; font-size: 12px; color: var(--ink3); }
.sug-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 9px 14px; border-top: 1px solid var(--rule); background: var(--surface); font-size: 13px; color: var(--ink2); }
.sug-r + .sug-f, .sug-f:first-child { border-top-color: var(--rule); }
.sug-f:first-child { border-top: 0; }
.sug-f button { font: inherit; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; }
.sug-f button:hover { text-decoration: underline; }
.sug kbd { font: inherit; font-size: 12px; border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; background: var(--bg); }
@media (hover: none), (max-width: 600px) { .sug-keys { display: none; } }
@media (max-width: 600px) { .sug-r { gap: 10px; padding: 10px 12px; } .sug-v { font-size: 13px; } }
