/* Written by scripts/ebiact/build_site.py: do not edit here. */
/* EBIA-CT trial map, in the look of the EBIA-CT site (ebiapps/frontend): a plain light page, white
   12px cards drawn with a hairline (no shadow), Plus Jakarta Sans for titles and figures, Inter for the
   text, one blue accent for what is selected. The three categories take teal, coral and gold, told
   apart on 2-4 px dots and by colour-blind readers; the gold dots carry a darker ring, without which
   they fade on white. Small labels are in sentence case. The ink and rule tokens repeat
   [data-domain="ebiact"] of styles/domainThemes.css.
   Everything is scoped under .tmap: on the site this sheet sits beside globals.css, which styles bare
   table / th / td / header / h1 for the evidence matrix; the table rules below outrank those with a
   doubled class. .tmap.standalone is the page that opens on its own (masthead, language, dark theme). */
.tmap {
  --tm-top: 56px;            /* the fixed navbar of the site */
  --fb-h: 104px;             /* the sticky filter bar, measured by the script */
  --paper: #FAFCFF;
  --paper-2: #EDF3FC;
  --card: #FFFFFF;
  --ground: #F7F8FC;
  --ink: #0E1B2E;
  --ink-2: #3B4A60;
  --ink-3: #5E6E86;          /* 5.2:1 on white, 4.9:1 on --ground */
  --ink-4: #9AA8BC;
  --rule: #E5EBF4;
  --rule-strong: #CBD6E6;
  --accent: #2563EB;
  --accent-ink: #16306E;
  --accent-soft: #EAF1FE;
  --accent-line: #CCDDFB;
  --on-accent: #FFFFFF;
  --psy: #008289;            /* teal, 4.6:1 on white */
  --pha: #EB4050;            /* coral, 3.9:1 */
  --com: #F2C200;            /* gold: always with --com-ring around a dot or a swatch */
  --com-ring: #9A7A00;
  --mix: #3B4A60;
  --none: #9AA8BC;
  --ghost: #DCE3EE;
  --warn: #9A5B00;
  --warn-soft: #FBF3E6;
  --live: #16A34A;
  --surface-base: #F5F7FA;
  --shadow-pop: 0 10px 30px -14px rgba(20, 23, 43, .28), 0 1px 2px rgba(20, 23, 43, .06);
  --swatch-edge: inset 0 0 0 1px rgba(14, 27, 46, .22);
  --font-display: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  min-height: 100vh;
  padding: calc(var(--tm-top) + 26px) 0 64px;
  background-color: var(--surface-base);
  color: var(--ink-2); font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.tmap.standalone { --tm-top: 0px; padding-top: 0; }
.tmap[data-theme="dark"] {
  --paper: #0B1220; --paper-2: #16213A; --card: #111A2B; --ground: #0E1626;
  --ink: #E6ECF5; --ink-2: #B8C4D6; --ink-3: #8A98AE; --ink-4: #5D6B82;
  --rule: #1C2840; --rule-strong: #2A3954;
  --accent: #5B8DEF; --accent-ink: #BFD3FB; --accent-soft: #16264A; --accent-line: #2A4374; --on-accent: #FFFFFF;
  --psy: #1FA9B0; --pha: #F2606D; --com: #F2C200; --com-ring: #6E5800; --mix: #C9CED5; --none: #5D6B82; --ghost: #263248;
  --warn: #F5CF8E; --warn-soft: #3A2A0C;
  --surface-base: #0B1220;
  --shadow-pop: 0 10px 30px -14px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .4);
  --swatch-edge: inset 0 0 0 1px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* the site resets every margin and padding (globals.css); these are the ones the map needs */
.tmap *, .tmap *::before, .tmap *::after { box-sizing: border-box; }
.tmap :where(p, h1, h2, h3, dl, dd, ul, ol) { margin: 0; padding: 0; }
.tmap :where(ul, ol) { list-style: none; }
.tmap :where(button, input, select) { font: inherit; color: inherit; }
.tmap :where(button) { cursor: pointer; }
.tmap :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tmap a { color: var(--accent); text-underline-offset: 2px; }
.tmap [hidden] { display: none !important; }
.tmap .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tmap .tm-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 2.2vw, 28px); }

/* the site styles bare tables for the evidence matrix (sticky head and first column, centred cells,
   a grey row hover): undone here, then each table of the map sets its own */
.tmap.tmap table { width: 100%; table-layout: auto; border-collapse: collapse; font-size: inherit; }
.tmap.tmap thead { position: static; z-index: auto; background: none; }
.tmap.tmap th, .tmap.tmap td {
  position: static; left: auto; z-index: auto; width: auto; min-width: 0; padding: 0; border: 0;
  background: transparent; text-align: left; vertical-align: top; font-weight: inherit; color: inherit; transition: none;
}
.tmap.tmap tbody tr { border: 0; transition: none; }
.tmap.tmap tbody tr:hover > td { background-color: transparent; }

/* ---------- small parts, as the app draws them */
.tmap .btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.tmap .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.tmap .btn.ghost { background: var(--card); color: var(--ink); border-color: var(--rule-strong); }
.tmap .btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.tmap .icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule-strong); border-radius: 9px; background: var(--card); color: var(--ink-2); }
.tmap .icon-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.tmap .icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
/* a choice of views: words underlined like the links of the site's navbar */
.tmap .seg { display: inline-flex; gap: 16px; }
.tmap .seg button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 5px 0 4px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tmap .seg button:hover { color: var(--ink); }
.tmap .seg button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tmap .field { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 9px; font-size: 13.5px; color: var(--ink); background: var(--card); }
.tmap .field::placeholder { color: var(--ink-3); }
.tmap .field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tmap .tog { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--card); border: 1px solid var(--rule); border-radius: 9px; padding: 5px 11px; cursor: pointer; }
.tmap .tog input { margin: 0; accent-color: var(--accent); }
.tmap .hint { font-size: 12.5px; color: var(--ink-3); }

/* ---------- masthead of the standalone page (the site has its navbar) */
.tmap .tm-mast { background: var(--card); border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.tmap .tm-mast-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.tmap .brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); }
.tmap .brand b { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.tmap .brand span { font-size: 13.5px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--rule-strong); }
.tmap .mast-tools { display: flex; align-items: center; gap: 10px; }
.tmap .lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; }
.tmap .lang button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tmap .lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.tmap #theme-btn .i-sun { display: none; }
.tmap[data-theme="dark"] #theme-btn .i-sun { display: block; }
.tmap[data-theme="dark"] #theme-btn .i-moon { display: none; }

/* ---------- head: a plain title and the date; the figures are in the status line of the filters */
/* the views of a page of the site, above its title (the database: trials, meta-analyses) */
.tmap .tm-tabs { display: flex; gap: 26px; padding-top: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--rule-strong); }
.tmap .tm-tabs:empty { display: none; }
.tmap .tm-tabs a { margin-bottom: -1px; padding: 7px 0 8px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.tmap .tm-tabs a:hover { color: var(--ink); }
.tmap .tm-tabs a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tmap .tm-head { display: grid; gap: 2px; margin-bottom: 14px; }
.tmap .tm-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.tmap .tm-date { font-size: 13px; color: var(--ink-3); }
.tmap .skip { position: absolute; left: -9999px; }
.tmap .skip:focus { position: fixed; z-index: 1200; left: 16px; top: calc(var(--tm-top) + 8px); padding: 8px 14px; background: var(--card); border: 1px solid var(--accent); border-radius: 8px; font-weight: 600; }

/* ---------- filter bar: the head of the first card, a row of cells that each say what they hold. It stays
   under the navbar, on the colour of the page so nothing shows above it. */
.tmap .fbar { position: sticky; top: var(--tm-top); z-index: 30; padding-top: 6px; background: var(--surface-base); }
.tmap .fbar-card { background: var(--card); border: 1px solid var(--rule-strong); border-bottom: 0; border-radius: 10px 10px 0 0; }
.tmap .fbar-row { display: flex; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.tmap .fbar-menus { flex: 1 1 auto; display: flex; flex-wrap: wrap; min-width: 0; }
.tmap .fbw { position: relative; flex: 1 1 auto; border-right: 1px solid var(--rule); }
.tmap .fb { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 58px; padding: 0 12px 0 16px; border: 0; background: none; color: var(--ink); text-align: left; white-space: nowrap; transition: background .15s; }
.tmap .fbw:first-child .fb { border-top-left-radius: 8px; }
.tmap .fb-t { display: grid; gap: 1px; min-width: 0; }
.tmap .fb-k { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.tmap .fb-v { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.tmap .fb:hover { background: var(--paper-2); }
.tmap .fb svg { flex: none; color: var(--ink-3); transition: transform .15s; }
.tmap .fb[aria-expanded="true"] { background: var(--accent-soft); }
.tmap .fb[aria-expanded="true"] svg { transform: rotate(180deg); }
.tmap .fb.on { background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.tmap .fb.on .fb-k, .tmap .fb.on .fb-v { color: var(--accent-ink); }
.tmap .fsearch { position: relative; display: flex; align-items: center; flex: 0 1 280px; min-width: 200px; }
.tmap .fsearch svg { position: absolute; left: 16px; color: var(--ink-3); pointer-events: none; }
.tmap .fsearch input { width: 100%; height: 100%; min-height: 58px; padding: 0 16px 0 40px; border: 0; border-radius: 0 8px 0 0; background: none; font-size: 14.5px; color: var(--ink); }
.tmap .fsearch input:focus { outline: none; background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.tmap .fbar-held { padding: 8px 16px; border-bottom: 1px solid var(--rule); }
.tmap .fbar-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 16px; min-height: 44px; }
.tmap .status { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tmap .status b { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }
.tmap .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tmap .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); border-radius: 999px; padding: 1px 3px 1px 11px; font-size: 12.5px; font-weight: 500; }
.tmap .chip b { font-weight: 600; opacity: .75; }
.tmap .chip button { border: 0; background: none; width: 22px; height: 22px; border-radius: 50%; line-height: 1; color: var(--accent-ink); font-size: 15px; }
.tmap .chip button:hover { background: var(--accent-line); }
.tmap .clear-all { border: 0; background: none; padding: 2px 4px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }

/* filter menus */
.tmap .menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 340px; max-height: min(72vh, 540px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-pop); }
.tmap .menu.right { left: auto; right: 0; }
.tmap .menu.wide { width: 420px; }
.tmap .m-top { flex: none; padding: 12px 12px 10px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.tmap .m-top:empty { display: none; }
.tmap .m-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tmap .m-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 6px 8px; scrollbar-width: thin; }
.tmap .m-sec { padding: 10px 8px 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tmap .m-sec:first-child { padding-top: 4px; }
.tmap .m-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 7px; font-size: 13px; line-height: 1.3; color: var(--ink); cursor: pointer; }
.tmap .m-row:hover { background: var(--paper-2); }
.tmap .m-row input { margin: 0; width: 15px; height: 15px; accent-color: var(--accent); }
.tmap .m-row .m-n { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tmap .m-row.head { font-weight: 700; margin-top: 4px; }
.tmap .m-row.sub { padding-left: 30px; font-size: 12.5px; color: var(--ink-2); }
.tmap .m-row.zero, .tmap .m-row.zero .m-n { color: var(--ink-4); }
.tmap .m-row.na .m-lab { font-style: italic; color: var(--ink-3); }
.tmap .m-lab { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.tmap .m-lab .sw { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: var(--swatch-edge); }
.tmap .m-none { padding: 10px 8px; font-size: 13px; color: var(--ink-3); }
.tmap .m-more { border: 0; background: none; padding: 6px 8px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.tmap .m-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--rule); }
.tmap .m-foot .clear { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tmap .m-foot .clear:hover { color: var(--accent-ink); }
.tmap .m-foot .btn { height: 32px; }
.tmap .m-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tmap .m-range label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); }
.tmap .m-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tmap .m-presets button { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 500; color: var(--accent-ink); }
.tmap .m-presets button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tmap .m-check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.tmap .m-check input { accent-color: var(--accent); }
.tmap .scrim { display: none; }

/* ---------- cards */
.tmap .fbar + .tm-card { margin-top: 0; border-radius: 0 0 12px 12px; }
.tmap .tm-card { position: relative; margin-top: 18px; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 12px; }
.tmap .card-head { padding: 20px 24px 0; max-width: 860px; }
.tmap .fig-k { margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tmap h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.tmap .dek { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 80ch; text-wrap: pretty; }
.tmap .card-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 14px 24px 12px; }
.tmap .card-foot { margin: 0; padding: 12px 24px 14px; border-top: 1px solid var(--rule); border-radius: 0 0 12px 12px; background: var(--ground); }
.tmap .card-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; padding: 18px 24px 14px; border-bottom: 1px solid var(--rule); }
.tmap .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.tmap .legend .it { display: inline-flex; align-items: center; gap: 7px; }
.tmap .legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: var(--swatch-edge); }
.tmap .legend .sep { width: 1px; height: 16px; background: var(--rule-strong); }
.tmap .legend svg { overflow: visible; }
.tmap .legend .ramp { width: 72px; height: 10px; border-radius: 3px; }
.tmap .caption { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.tmap .caption b { color: var(--ink-2); font-weight: 600; }
.tmap .caption button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Figure 1: the trials over time, and the map beside them */
.tmap .tl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 560px); gap: 0 28px; align-items: start; padding: 0 24px 20px; }
.tmap .fig1 .tl-grid { padding-top: 20px; }
.tmap .tl-legend { margin-top: 12px; }
.tmap .tl-main { min-width: 0; }
.tmap .tl-main .caption { margin-top: 14px; max-width: 92ch; }
.tmap .tl { --lab: 232px; --ncol: 70px; position: relative; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.tmap .tl-axis { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--ncol); align-items: end; height: 46px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tmap .tl-axis.top { border-bottom: 1px solid var(--rule); }
.tmap .tl-axis.bottom { align-items: start; height: 28px; border-top: 1px solid var(--rule); }
.tmap .tl-axis-lab .seg { margin-bottom: -2px; }
.tmap .tl-axis-lab, .tmap .tl-axis-n { padding: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tmap .tl-axis-n { text-align: right; }
.tmap .tl-ticks { position: relative; height: 100%; cursor: ew-resize; user-select: none; touch-action: none; }
.tmap .tl-axis.bottom .tl-ticks { cursor: default; }
.tmap .tl-ticks .tk { position: absolute; transform: translateX(-50%); }
.tmap .tl-axis.top .tk { bottom: 7px; }
.tmap .tl-axis.bottom .tk { top: 6px; }
.tmap .tl-ticks .tk.major { color: var(--ink-2); font-weight: 600; }
.tmap .tl-ticks:hover { background: var(--paper-2); }
.tmap .tl-sel { position: absolute; top: 4px; bottom: 4px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 4px; pointer-events: none; }
.tmap .tl-body { position: relative; }
.tmap .tl-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--ncol); align-items: center; border-top: 1px solid var(--rule); }
.tmap .tl-row:first-child { border-top: 0; }
.tmap .tl-row.head { background: var(--ground); }
.tmap .tl-row:not(.focus):hover { background: var(--ground); }
.tmap .tl-row.focus { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tmap .tl-row.type .tl-lab { padding-left: 26px; font-size: 12.5px; line-height: 1.25; }
.tmap .tl-lab { display: flex; align-items: center; gap: 9px; height: 100%; padding: 4px 12px 4px 4px; border: 0; background: none; text-align: left; font-size: 13.5px; line-height: 1.3; color: var(--ink); min-width: 0; }
.tmap .tl-lab .nm { overflow-wrap: break-word; hyphens: auto; }
.tmap .tl-row.type .tl-lab .nm { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmap .tl-lab.cat { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.tmap .tl-lab.cat .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-3); }
.tmap .tl-lab .sw { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: var(--swatch-edge); }
.tmap .tl-lab .caret { flex: none; width: 14px; height: 14px; display: grid; place-items: center; color: var(--accent); transition: transform .15s; }
.tmap .tl-lab[aria-expanded="true"] .caret { transform: rotate(90deg); }
.tmap .tl-lab:hover .nm { color: var(--accent-ink); }
.tmap .tl-lab.type[aria-pressed="true"] .nm { color: var(--accent-ink); font-weight: 600; }
.tmap .tl-lab:disabled { cursor: default; }
.tmap .tl-lab:disabled .caret { visibility: hidden; }
.tmap .tl-n { text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-right: 4px; }
.tmap .tl-n b { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.tmap .tl-n .of { margin-left: 2px; font-size: 11px; white-space: nowrap; }
.tmap .tl-n { white-space: nowrap; }
.tmap #tl-canvas { position: absolute; top: 0; left: var(--lab); display: block; }
.tmap .tip { position: absolute; z-index: 6; width: max-content; max-width: 320px; padding: 9px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); pointer-events: none; }
.tmap .tip b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.tmap .tip .t { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 4px; }
.tmap .tip .m { display: block; font-size: 12px; color: var(--ink-3); }

.tmap .side { align-self: stretch; }
/* the meta-analyses: a table beside the figure, of its height, where the trials have their map */
.tmap .where { display: none; }
.tmap .where .ch .s { display: none; }
.tmap.meta #sec-egm, .tmap.meta .side-in { display: none; }
.tmap.meta .fig1 .tl-grid { align-items: stretch; }
.tmap.meta .side { display: flex; }
.tmap.meta .where { display: flex; flex-direction: column; width: 100%; }
.tmap .where h3 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.tmap .where p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.tmap .where .egm-wrap { flex: 1 1 auto; display: flex; margin: 10px 0 0; overflow: hidden; }
.tmap.tmap .where .egm { height: 100%; table-layout: fixed; }
.tmap.tmap .where .egm th, .tmap.tmap .where .egm td { vertical-align: middle; text-align: center; }
.tmap.tmap .where .egm thead th { padding: 9px 4px; font-size: 12px; white-space: nowrap; }
.tmap.tmap .where .egm .corner { width: 34%; min-width: 0; padding-left: 14px; text-align: left; }
.tmap.tmap .where .egm tbody th { text-align: left; }
.tmap .where .egm .rh { align-items: center; min-height: 34px; height: 100%; }
.tmap.tmap .where .egm td { height: auto; }
.tmap.tmap .where .egm th.tot, .tmap.tmap .where .egm td.tot { width: 46px; padding: 0; text-align: center; }
.tmap .side-in { position: sticky; top: calc(var(--tm-top) + var(--fb-h) + 12px); display: grid; gap: 10px; }
.tmap .side-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-right: 36px; }
.tmap .side-k { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tmap .side-head h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); }
.tmap .side-head h3 .sw { flex: none; width: 11px; height: 11px; border-radius: 50%; box-shadow: var(--swatch-edge); }
.tmap .side-meta { font-size: 13px; color: var(--ink-3); }
.tmap .side-x { position: absolute; top: -4px; right: 0; font-size: 16px; line-height: 1; }
.tmap .side-map { position: relative; aspect-ratio: 1.75; background: var(--ground); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.tmap .side-map canvas { position: absolute; inset: 0; display: block; cursor: grab; }
.tmap .side-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.tmap .side-zoom .icon-btn { font-size: 15px; line-height: 1; }
.tmap .side-hint { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.tmap .side-sub { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tmap .side-names:empty, .tmap .side-top:empty { display: none; }
.tmap .side-names .chips-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tmap .side-names .pill { display: inline-flex; align-items: center; gap: 6px; }
.tmap .side-names .pill .c { font-size: 11.5px; opacity: .7; }
.tmap .side-names .back { border: 0; background: none; padding: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.tmap .st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.tmap .st-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px 30px; gap: 8px; align-items: center; padding: 2px 0; font-size: 13px; color: var(--ink); }
.tmap .st-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmap .st-bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.tmap .st-bar i { display: block; height: 100%; border-radius: 3px; }
.tmap .st-n { text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tmap .side-note { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.tmap .quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin: 0 24px; padding: 18px 0 22px; border-top: 1px solid var(--rule); }
.tmap .qf.span2 { grid-column: span 2; }
.tmap .qf { min-width: 0; }
.tmap .qf-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 18px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.tmap .qf-h button { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--accent); }
.tmap .qf-list { display: grid; gap: 1px; }
.tmap .qf-list.cols { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.tmap .qf-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 56px 36px; gap: 8px; align-items: center; padding: 4px 6px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: 13px; line-height: 1.3; color: var(--ink); }
.tmap .qf-row:hover { background: var(--accent-soft); }
.tmap .qf-row[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.tmap .qf-row.off { color: var(--ink-3); }
.tmap .qf-row.off .qf-bar i { opacity: .4; }
.tmap .qf-row.zero { color: var(--ink-4); }
.tmap .qf-row.na .qf-l { font-style: italic; color: var(--ink-3); }
.tmap .qf-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmap .qf-bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.tmap .qf-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink-4); }
.tmap .qf-row[aria-pressed="true"] .qf-bar i { background: var(--accent); }
.tmap .qf-n { text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tmap .side-acts:has(> [hidden]) { display: none; }
.tmap .pill { border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 500; text-decoration: none; }
.tmap .pill:hover, .tmap .pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Figure 2: evidence and gap map */
.tmap .egm-wrap { overflow-x: auto; margin: 0 24px 20px; border: 1px solid var(--rule); border-radius: 12px; }
.tmap.tmap .egm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.tmap.tmap .egm thead th { vertical-align: bottom; background: var(--ground); border-bottom: 1px solid var(--rule-strong); }
.tmap.tmap .egm .corner { text-align: left; padding: 0 12px 9px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); width: 250px; min-width: 200px; }
.tmap.tmap .egm .ch { padding: 10px 4px 9px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink-2); text-align: center; cursor: pointer; }
.tmap.tmap .egm .ch:hover, .tmap.tmap .egm .ch[aria-pressed="true"] { color: var(--accent-ink); }
.tmap.tmap .egm .ch[aria-pressed="true"] span { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tmap.tmap .egm.domains .ch { height: 170px; padding: 6px 0 8px; }
.tmap.tmap .egm.domains .ch span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; text-align: left; font-weight: 500; }
.tmap.tmap .egm .ch.tot { color: var(--ink-3); cursor: default; padding-left: 10px; padding-right: 12px; }
.tmap.tmap .egm tbody th { text-align: left; font-weight: 400; border-bottom: 1px solid var(--rule); background: var(--card); }
.tmap .egm .rh { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 12px 5px 14px; border: 0; background: none; text-align: left; font-size: 13px; line-height: 1.3; color: var(--ink); }
.tmap .egm tr.type .rh { padding-left: 38px; color: var(--ink-2); }
.tmap .egm tr.cat .rh { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.tmap.tmap .egm tr.cat th, .tmap.tmap .egm tr.cat td { border-top: 1px solid var(--rule-strong); }
.tmap.tmap .egm tbody tr:first-child th, .tmap.tmap .egm tbody tr:first-child td { border-top: 0; }
.tmap .egm .rh .sw { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: var(--swatch-edge); }
.tmap .egm .rh .caret { flex: none; width: 14px; height: 14px; display: grid; place-items: center; color: var(--accent); transition: transform .15s; }
.tmap .egm .rh[aria-expanded="true"] .caret { transform: rotate(90deg); }
.tmap .egm .rh:hover .nm { color: var(--accent-ink); }
.tmap .egm .rh[aria-pressed="true"] .nm { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tmap.tmap .egm td { border-bottom: 1px solid var(--card); border-left: 1px solid var(--card); text-align: center; vertical-align: middle; height: 30px; min-width: 34px; font-variant-numeric: tabular-nums; }
.tmap.tmap .egm td.c { cursor: pointer; font-size: 12px; transition: box-shadow .1s; }
.tmap.tmap .egm td.c:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.tmap.tmap .egm td.c.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.tmap.tmap .egm td.gap { color: var(--ink-4); background: var(--ground); }
.tmap.tmap .egm td.dim { opacity: .35; }
.tmap.tmap .egm td.tot { padding: 0 12px 0 10px; text-align: right; color: var(--ink-3); border-bottom: 1px solid var(--rule); border-left: 0; font-size: 12.5px; }
.tmap.tmap .egm tr.cat td.tot { color: var(--ink); font-weight: 700; }
.tmap.tmap .egm tr.cat td.c { font-weight: 700; }

/* ---------- the globe, second view of the map */
.tmap .side-tabs { position: absolute; z-index: 3; left: 8px; top: 8px; padding: 0 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.tmap .side-globe { position: absolute; inset: 0; background: var(--ground); }
.tmap .side-map[data-view="globe"] #side-canvas, .tmap .side-map[data-view="globe"] .side-zoom { display: none; }
.tmap .loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); }
.tmap .loading.err { color: var(--warn); padding: 24px; text-align: center; line-height: 1.6; }
.tmap .scene-tooltip { font-family: var(--font-body) !important; font-size: 12.5px !important; color: var(--ink-2) !important; background: var(--card) !important; border: 1px solid var(--rule); border-radius: 10px !important; padding: 9px 12px !important; box-shadow: var(--shadow-pop); max-width: 320px; line-height: 1.45; }
.tmap .tt b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.tmap .tt .m { font-size: 12px; color: var(--ink-3); }

/* ---------- the trials: one line each (34 px), the title on a second line on request */
.tmap .tab-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmap .tab-tools .seg { margin-right: 10px; }
.tmap .table-wrap { overflow: visible; }
.tmap.tmap .reg { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tmap .reg .w-trial { width: 16%; }
.tmap .reg.titled .w-trial { width: 25%; }
.tmap .reg .w-year { width: 64px; }
.tmap .reg .w-n { width: 104px; }
.tmap .reg .w-age { width: 96px; }
.tmap .reg .w-comp { width: 14%; }
.tmap .reg .w-out { width: 158px; }
.tmap .reg .w-geo { width: 10%; }
.tmap.meta .reg .w-trial { width: 11%; }
.tmap.meta .reg .w-n { width: 64px; }
.tmap.meta .reg .w-int { width: 21%; }
.tmap.meta .reg .w-comp { width: 19%; }
.tmap.meta .reg .w-sel { width: 108px; }
.tmap.meta .reg .w-out { width: 176px; }
.tmap.meta .reg .w-geo { width: 92px; }
.tmap .eff { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmap .eff span { font-size: 12px; color: var(--ink-3); }
.tmap .sel { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.tmap .sel.on { font-weight: 600; color: var(--ink); }
.tmap .sel.on::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
.tmap.tmap .reg thead th { position: sticky; top: calc(var(--tm-top) + var(--fb-h)); z-index: 2; background: var(--ground); text-align: left; vertical-align: bottom; padding: 9px 10px; border-bottom: 1px solid var(--rule-strong); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; user-select: none; }
.tmap.tmap .reg thead th:first-child, .tmap.tmap .reg td:first-child { padding-left: 24px; }
.tmap.tmap .reg thead th:last-child, .tmap.tmap .reg td:last-child { padding-right: 24px; }
.tmap.tmap .reg thead th:hover { color: var(--accent); }
.tmap.tmap .reg th[aria-sort="ascending"]::after { content: " ↑"; color: var(--accent); }
.tmap.tmap .reg th[aria-sort="descending"]::after { content: " ↓"; color: var(--accent); }
.tmap.tmap:not(.meta) .reg th.c-out[aria-sort]::after { content: none; }
.tmap.tmap .reg th.num, .tmap.tmap .reg td.num { text-align: right; }
.tmap.tmap .reg td { height: 34px; padding: 0 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmap.tmap .reg.titled td { height: 50px; }
.tmap.tmap .reg tbody tr.row:nth-child(5n) > td { border-bottom-color: var(--rule-strong); }
.tmap.tmap .reg td.num { font-variant-numeric: tabular-nums; }
.tmap.tmap .reg tr.row { cursor: pointer; }
.tmap.tmap .reg tbody tr.row:hover > td { background: var(--paper-2); }
.tmap .reg .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; border: 0; background: none; padding: 0; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tmap .reg tr.row:hover .lbl { color: var(--accent-ink); }
.tmap .reg .abs { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--warn); }
.tmap .reg .ttl { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--ink-3); }
.tmap .reg .cd { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; box-shadow: var(--swatch-edge); vertical-align: 1px; }
.tmap .reg .c-int b { font-weight: 500; color: var(--ink); }
.tmap .reg .c-int i { font-style: normal; color: var(--ink-3); }
.tmap .reg .more { color: var(--ink-3); font-size: 12px; }
/* outcome groups: a square each, under a column of short names */
.tmap .reg .sg { display: grid; grid-template-columns: repeat(8, 14px); gap: 4px; }
.tmap .reg th .sg span { justify-self: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; font-weight: 500; line-height: 14px; color: var(--ink-3); }
.tmap .reg td .sg i { display: block; justify-self: center; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.tmap .reg td .sg i.on { background: var(--ink-2); box-shadow: none; }
.tmap .reg .u { display: none; }
.tmap .reg .dim { color: var(--ink-3); }
.tmap.tmap .reg .empty { height: auto; padding: 44px 18px; text-align: center; white-space: normal; color: var(--ink-3); }
.tmap .ledger-foot { padding: 11px 16px; border-radius: 0 0 12px 12px; background: var(--ground); }
.tmap .ledger-foot:has(> [hidden]) { display: none; }
@media (max-width: 1100px) { .tmap .table-wrap { overflow-x: auto; } .tmap.tmap .reg { min-width: 1000px; } .tmap.tmap .reg thead th { position: static; } }

/* ---------- about, footer */
.tmap details.about > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px; }
.tmap details.about > summary::-webkit-details-marker { display: none; }
.tmap details.about > summary h2 { font-size: 15.5px; }
.tmap details.about > summary:hover h2 { color: var(--accent-ink); }
.tmap details.about .caret { width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.tmap details.about[open] .caret { transform: rotate(-135deg); }
.tmap details.about[open] > summary { border-bottom: 1px solid var(--rule); }
.tmap .about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px 40px; padding: 14px 24px 22px; font-size: 13.5px; color: var(--ink-2); }
.tmap .about-grid h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.tmap .about-grid p { margin-bottom: 10px; max-width: 64ch; }
.tmap .about-grid ul { padding-left: 18px; list-style: disc; }
.tmap .about-grid li { margin: 4px 0; }
.tmap .about-grid .src { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tmap .tm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 4px 0; font-size: 12px; color: var(--ink-3); }

/* ---------- trial card */
.tmap .fiche {
  position: fixed; z-index: 1100; top: 0; right: 0; bottom: 0; width: min(600px, 100%); overflow: auto;
  background: var(--card); border-left: 1px solid var(--rule); box-shadow: -24px 0 60px -30px rgba(15, 30, 74, .45);
  padding: calc(22px + env(safe-area-inset-top, 0px)) max(26px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) 28px;
  display: grid; gap: 20px; align-content: start;
}
.tmap .fiche:focus { outline: none; }
.tmap .f-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; }
.tmap .f-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.tmap .f-head .close { border: 1px solid var(--rule); background: var(--paper); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; line-height: 1; color: var(--ink-2); }
.tmap .f-head .close:hover { border-color: var(--accent); color: var(--accent); }
.tmap .f-title { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.tmap .f-sub { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.tmap .f-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.tmap .flag { background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.tmap .flag.info { background: var(--accent-soft); color: var(--accent-ink); }
.tmap .f-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; }
.tmap .f-facts div { min-width: 0; }
.tmap .f-facts dt { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tmap .f-facts dd { margin-top: 2px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.tmap .na { color: var(--ink-4); font-style: italic; }
.tmap .f-sec h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.tmap .f-sec ul { display: grid; gap: 8px; }
.tmap .f-note { margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.tmap .f-int { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tmap.tmap .f-arms { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tmap.tmap .f-arms th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 4px 6px; border-bottom: 1px solid var(--rule-strong); }
.tmap.tmap .f-arms td { padding: 6px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.tmap.tmap .f-arms td.num { text-align: right; }
.tmap .f-arms td b { color: var(--ink); }
.tmap .f-arms .desc { color: var(--ink-3); font-size: 11.5px; }
.tmap .f-dom { display: grid; gap: 2px; }
.tmap .f-dom .d { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.tmap .f-dom .i { font-size: 12.5px; color: var(--ink-2); }
.tmap .f-dom .i .m { font-size: 11px; color: var(--ink-3); }
.tmap .f-rep { display: grid; gap: 2px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.tmap .f-rep .role { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tmap .f-rep .role.main { color: var(--accent); }
.tmap .f-rep .ttl { font-weight: 600; color: var(--ink); }

/* ---------- narrow screens */
@media (max-width: 1100px) {
  .tmap .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .tmap .side { order: -1; margin-bottom: 18px; }
  .tmap .side-in { position: static; }
  .tmap .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  /* on two rows the bar would take a fifth of the screen: it scrolls away with the page */
  .tmap .fbar { position: static; }
  .tmap .fbw { border-bottom: 1px solid var(--rule); }
  .tmap .fsearch { flex: 1 1 100%; }
  .tmap .fsearch input { border-radius: 0; }
}
@media (max-width: 760px) {
  .tmap { padding-bottom: 40px; }
  .tmap .fbar-menus { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tmap .fbar-menus::-webkit-scrollbar { display: none; }
  .tmap .fbw { position: static; flex: none; border-bottom: 0; }
  .tmap .fb { height: 54px; }
  .tmap .fsearch { border-top: 1px solid var(--rule); }
  .tmap .fsearch input { min-height: 46px; }
  .tmap .fbar-held { padding: 8px 12px; }
  .tmap .fbar-status { padding: 8px 12px; }
  .tmap .menu, .tmap .menu.right, .tmap .menu.wide { position: fixed; z-index: 1060; left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 78vh; border-radius: 16px 16px 0 0; }
  .tmap .scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1050; background: rgba(14, 27, 46, .35); }
  .tmap .card-head, .tmap .card-tools, .tmap .card-bar { padding-left: 16px; padding-right: 16px; }
  .tmap .tl-grid { padding: 0 16px 16px; }
  .tmap .egm-wrap { margin-left: 16px; margin-right: 16px; }
  .tmap .card-foot, .tmap .about-grid { padding-left: 16px; padding-right: 16px; }
  .tmap .tl { --lab: 140px; --ncol: 44px; }
  .tmap .tl-lab { font-size: 12px; padding-right: 6px; gap: 7px; }
  .tmap .tl-lab.cat { font-size: 12.5px; }
  .tmap .tl-row.type .tl-lab { padding-left: 14px; }
  .tmap .tl-lab .caret { display: none; }
  .tmap .tl-axis-lab, .tmap .tl-axis-n { font-size: 11px; }
  /* the choice of rows goes above the figure: the label column is too narrow for it */
  .tmap .tl { margin-top: 34px; }
  .tmap .tl-axis-lab .seg { position: absolute; top: -34px; left: 0; }
  .tmap .tl-n .of { display: none; }
  .tmap.tmap .egm .corner { width: 150px; min-width: 150px; }
  .tmap.tmap .egm th[scope="row"] { position: sticky; left: 0; z-index: 1; }
  .tmap .st-grid { grid-template-columns: minmax(0, 1fr); }
  .tmap .quick { grid-template-columns: minmax(0, 1fr); margin: 0 16px; }
  .tmap .qf.span2 { grid-column: auto; }
  .tmap .qf-list.cols { grid-template-columns: minmax(0, 1fr); }
  .tmap .tab-tools .seg { display: none; }
  /* the trials as two-line cards: name and N, then the intervention and its outcome squares */
  .tmap .table-wrap { overflow: visible; }
  .tmap.tmap .reg { min-width: 0; table-layout: auto; }
  .tmap.tmap .reg colgroup, .tmap.tmap .reg thead { display: none; }
  .tmap.tmap .reg, .tmap.tmap .reg tbody { display: block; }
  .tmap.tmap .reg tr.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
  .tmap.tmap .reg tbody tr.row:nth-child(5n) { border-bottom-color: var(--rule); }
  .tmap.tmap .reg td, .tmap.tmap .reg.titled td { display: block; height: auto; padding: 0 !important; border: 0; text-align: left; }
  .tmap.tmap .reg td.c-year, .tmap.tmap .reg td.c-age, .tmap.tmap .reg td.c-comp, .tmap.tmap .reg td.c-geo { display: none; }
  .tmap.tmap .reg td.c-trial { grid-column: 1; grid-row: 1; }
  .tmap.tmap .reg td.c-n { grid-column: 2; grid-row: 1; text-align: right; font-size: 12.5px; color: var(--ink-3); }
  .tmap.tmap .reg td.c-int { grid-column: 1; grid-row: 2; }
  .tmap.tmap .reg td.c-out { grid-column: 2; grid-row: 2; align-self: center; }
  .tmap .reg .u { display: inline; }
  /* the meta-analyses: a third line, the outcome, which tells two rows of one article apart */
  .tmap.meta.meta .reg td.c-comp { display: block; grid-column: 1; grid-row: 3; font-size: 12.5px; color: var(--ink-2); }
  .tmap.meta.meta .reg td.c-sel { grid-column: 2; grid-row: 3; text-align: right; }
  .tmap.tmap .where .egm .corner { width: 38%; }
  .tmap .where .ch .l { display: none; }
  .tmap .where .ch .s { display: inline; }
  /* an open menu is a sheet over the page: the fade of the row would hold it under the veil */
  .tmap .fbar-menus:has(.menu) { -webkit-mask-image: none; mask-image: none; }
  .tmap .reg td .sg { grid-template-columns: repeat(8, 9px); gap: 3px; }
  .tmap .reg td .sg i { width: 9px; height: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .tmap * { scroll-behavior: auto !important; transition: none !important; }
}
