/* HospiStat 3.0 additions on top of style.css (sponsori), md.css (medicamente) and host.css (copied unchanged).
   Colours only through the light-dark() tokens of style.css, so both themes follow the reader's system setting. */
.ors{--hs-c1:var(--ors-c-ink);--hs-c2:var(--ors-c-red);--hs-c3:var(--ors-c-slate);--hs-c4:var(--ors-c-stone);--hs-dot:var(--ors-c-slate)}

/* preview with fake data: impossible to miss */
.hs-mock{margin:0;padding:10px var(--ors-pad);background:#c8102e;color:#fff;font-weight:650;font-size:.875rem;line-height:1.45}

/* ---------- chapter 1: KPI band ---------- */
.hs-kpis{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15.5rem),1fr))}
.hs-kpi{display:flex;flex-direction:column;gap:3px;padding:14px 22px 16px 0;border-bottom:1px solid var(--ors-line);min-width:0}
.hs-kpi dt{order:2;font-size:.875rem;line-height:1.35;color:var(--ors-ink-2);font-weight:600}
.hs-kpi .hs-kv{order:1;margin:0;font-size:2rem;line-height:1.05;font-weight:780;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hs-kpi .hs-kv .u{font-size:.9375rem;font-weight:600;letter-spacing:0;margin-left:5px;color:var(--ors-muted)}
.hs-kpi .hs-ks{order:3;margin:2px 0 0;font-size:.75rem;line-height:1.45;color:var(--ors-muted)}
.hs-kpi .hs-ks a{color:var(--ors-ink-2);white-space:nowrap}
.hs-knote{margin-top:12px}
@container ors (max-width:620px){.hs-kpi .hs-kv{font-size:1.625rem}}

/* ---------- controls ---------- */
.hs-check{display:inline-flex;align-items:center;gap:8px;font-size:.8125rem;font-weight:600;color:var(--ors-ink-2);min-height:38px;cursor:pointer;flex:0 1 auto}
.hs-check input{width:18px;height:18px;margin:0;accent-color:var(--ors-c-red);flex:none}
.hs-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;flex:1 1 100%}
.hs-tabs button{appearance:none;border:1px solid var(--ors-line-2);background:transparent;color:var(--ors-ink-2);font-size:.8125rem;font-weight:600;
  padding:6px 11px;min-height:34px;border-radius:2px;cursor:pointer;text-align:left}
.hs-tabs button:hover{border-color:var(--ors-ink);color:var(--ors-ink)}
.hs-tabs button[aria-pressed=true]{background:var(--ors-c-ink);border-color:var(--ors-c-ink);color:var(--ors-paper)}
.hs-distf,.hs-mapctl,.hs-dirf,.hs-exf{border-bottom:0;padding:6px 0 12px}
.hs-dirf .md-q{flex:1 1 18rem;max-width:30rem}
/* the shared cite.js buttons sit inside .ors, where style.css's `.ors button{color:inherit}` outranks topbar.css and
   leaves light text on the white button; restate the colours here */
.ors .rh-cite .rh-copy{color:#000}
.ors .rh-cite .rh-copy:hover,.ors .rh-cite .rh-copy[data-done]{color:#fff}
.hs-exf .ors-seg{margin:0;align-self:flex-end}
.hs-exf .ors-f.hs-exr,.hs-exf .ors-f.hs-exx{flex-basis:22rem}
.hs-btn{appearance:none;border:1px solid var(--ors-line-2);background:var(--ors-paper);color:var(--ors-ink);font-size:.8125rem;font-weight:650;
  padding:6px 12px;min-height:36px;border-radius:2px;cursor:pointer}
.hs-btn:hover{border-color:var(--ors-ink)}
.hs-btn[aria-pressed=true]{background:var(--ors-c-ink);border-color:var(--ors-c-ink);color:var(--ors-paper)}
.hs-btn[disabled]{opacity:.5;cursor:default}
.hs-more{margin:0;padding:12px 14px;border-left:3px solid var(--ors-red);background:var(--ors-hover);font-size:.9375rem;line-height:1.55}
.hs-more a{color:inherit;text-decoration-color:var(--ors-red);text-underline-offset:3px}
.ors-prose a,.hs-surse a,.hs-files a{overflow-wrap:anywhere}

/* ---------- chapter 2: map ---------- */
.hs-map{display:grid;grid-template-columns:minmax(0,1fr);gap:14px 26px;align-items:start}
@container ors (min-width:1180px){.hs-map{grid-template-columns:minmax(0,1fr) 17.5rem}}
.hs-map-c{min-height:200px}
.ors-svg .hs-cty{stroke:var(--ors-paper);stroke-width:.8;cursor:pointer}
.ors-svg .hs-cty:hover,.ors-svg .hs-cty.sel{stroke:var(--ors-ink);stroke-width:1.6}
.ors-svg .hs-cty.sel{stroke-width:2.2}
.ors-svg .hs-pt{fill:var(--hs-dot);fill-opacity:.62;stroke:var(--ors-paper);stroke-width:.7;cursor:pointer}
.ors-svg .hs-pt:hover{fill-opacity:1;stroke:var(--ors-ink);stroke-width:1.4}
.ors-svg .hs-pt.dim{fill-opacity:.18}
.hs-map-p{font-size:.8125rem;line-height:1.5;color:var(--ors-ink-2);border-top:1px solid var(--ors-line);padding-top:10px;min-width:0}
.hs-map-p h4{margin:0 0 2px;font-size:1rem;font-weight:700;color:var(--ors-ink)}
.hs-map-p dl{margin:8px 0 10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px}
.hs-map-p dt{color:var(--ors-muted)}
.hs-map-p dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:var(--ors-ink)}
.hs-map-p ol{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:2px;max-height:19rem;overflow:auto}
.hs-map-p ol button{appearance:none;width:100%;display:flex;justify-content:space-between;gap:10px;background:transparent;border:0;border-bottom:1px solid var(--ors-line);
  padding:6px 2px;text-align:left;font:inherit;color:var(--ors-ink);cursor:pointer}
.hs-map-p ol button:hover{background:var(--ors-hover)}
.hs-map-p ol button span:last-child{color:var(--ors-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.hs-ramp{display:inline-flex;align-items:center;gap:8px}
.ors-legend i.hs-dash{background:transparent !important;border:1.5px dashed var(--ors-c-stone)}
.hs-ramp i{width:130px;height:10px;border-radius:2px}

/* ---------- chapter 3: directory ---------- */
.hs-dir td.name{min-width:13rem;max-width:22rem}
@container (max-width:640px){.hs-dir td.name{min-width:0}}
.hs-dir td.hs-add,.hs-dir th.hs-add{width:42px;text-align:center;padding-left:2px;padding-right:2px}
.hs-plus{appearance:none;width:30px;height:30px;border:1px solid var(--ors-line-2);border-radius:2px;background:transparent;color:var(--ors-ink-2);
  font-size:1rem;font-weight:700;line-height:1;cursor:pointer}
.hs-plus:hover{border-color:var(--ors-ink);color:var(--ors-ink)}
.hs-plus[aria-pressed=true]{background:var(--ors-c-red);border-color:var(--ors-c-red);color:#fff}
.hs-nc{color:var(--ors-muted);font-size:.75rem;font-style:italic}
.hs-low{color:var(--ors-muted)}
.hs-badge{display:inline-block;min-width:2.1em;text-align:center;font-size:.75rem;font-weight:700;padding:1px 6px;border:1px solid var(--ors-line-2);border-radius:2px;color:var(--ors-ink)}
.hs-badge.exp{border-style:dashed;color:var(--ors-red-ink);border-color:var(--ors-red)}
.hs-empty{padding:22px 0;color:var(--ors-muted);font-size:.875rem}
.hs-empty button{margin-left:8px}

/* ---------- distributions (strips by hospital type) ---------- */
.ors-svg .hs-dot{fill:var(--ors-c-ink);fill-opacity:.55;stroke:var(--ors-paper);stroke-width:.6;cursor:pointer}
.ors-svg .hs-dot:hover,.ors-svg .hs-dot:focus{fill:var(--ors-c-red);fill-opacity:1;outline:none}
.ors-svg .hs-dot.hi{fill:var(--ors-c-red);fill-opacity:.95}
.ors-svg .hs-med{stroke:var(--ors-c-red);stroke-width:2}
.ors-svg .hs-medall{stroke:var(--ors-ink);stroke-width:1.2;stroke-dasharray:4 3}
.ors-svg .hs-tick{stroke:var(--ors-c-mark2);stroke-width:1.2}
.ors-svg .hs-tick.hi{stroke:var(--ors-c-red);stroke-width:2}
.ors-svg .hs-lolli{stroke:var(--ors-c-stone);stroke-width:2}
.ors-svg .hs-lolhead{fill:var(--ors-c-ink)}
.ors-svg .hs-row{cursor:pointer}
.ors-svg .hs-row:hover .hs-lolhead,.ors-svg .hs-row:focus .hs-lolhead{fill:var(--ors-c-red)}
.ors-svg .hs-row:focus{outline:none}
.ors-svg .hs-row:focus .hs-rowbg{fill:var(--ors-hover);stroke:var(--ors-focus);stroke-width:1.5}
.ors-svg .hs-rowbg{fill:transparent}
.ors-svg .hs-row:hover .hs-rowbg{fill:var(--ors-hover)}

/* ---------- chapter 9: comparison ---------- */
.hs-cmp-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding:6px 0 12px}
.hs-combo{position:relative;flex:1 1 22rem;max-width:34rem;min-width:0}
.hs-combo .ors-f{max-width:none;width:100%}
.hs-combo-l{position:absolute;z-index:8;left:0;right:0;top:100%;margin:2px 0 0;padding:4px 0;list-style:none;background:var(--ors-paper);
  border:1px solid var(--ors-ink);border-radius:2px;box-shadow:0 10px 24px rgba(0,0,0,.18);max-height:20rem;overflow:auto}
.hs-combo-l li{padding:7px 10px;cursor:pointer;font-size:.875rem;line-height:1.35}
.hs-combo-l li small{display:block;color:var(--ors-muted);font-size:.75rem}
.hs-combo-l li[aria-selected=true],.hs-combo-l li:hover{background:var(--ors-hover);box-shadow:inset 3px 0 0 var(--ors-red)}
.hs-combo-l li.hs-none{cursor:default;color:var(--ors-muted);box-shadow:none;background:none}
.hs-cmp-act{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.hs-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.hs-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--ors-line-2);border-left-width:5px;border-radius:2px;padding:4px 4px 4px 9px;
  font-size:.8125rem;max-width:100%;min-height:36px;background:var(--ors-paper)}
.hs-chip button{appearance:none;background:transparent;border:0;cursor:pointer;color:inherit;font:inherit}
.hs-chip .nm{text-align:left;font-weight:650;overflow-wrap:anywhere}
.hs-chip .nm:hover{text-decoration:underline}
.hs-chip .x{font-size:1.125rem;line-height:1;padding:4px 8px;color:var(--ors-muted)}
.hs-chip .x:hover{color:var(--ors-red-ink)}
.hs-cmp th.hs-h{min-width:9.5rem;max-width:15rem;vertical-align:bottom;white-space:normal !important}
.hs-cmp th.hs-h i{display:block;height:4px;margin:0 0 6px;border-radius:2px}
.hs-cmp tbody th{font-weight:500;color:var(--ors-ink-2);min-width:12rem;max-width:20rem}
.hs-cmp tr.hs-grp th{background:var(--ors-hover);color:var(--ors-ink);font-weight:700;font-size:.75rem;letter-spacing:.02em}
.hs-cmp td.med{color:var(--ors-muted)}
/* the identity rows wrap, as wide as a hospital's header at most (an ANMCS label is up to 61 characters); the
   indicator values stay on one line */
.hs-cmp td.hs-idc{white-space:normal;max-width:15rem}
/* the indicator names stay in view when the comparison scrolls sideways */
.hs-cmp tbody th,.hs-cmp thead th:first-child{position:sticky;left:0;background:var(--ors-paper);z-index:1}
.hs-cmp thead th:first-child{z-index:2}
.hs-cmp tr.hs-grp th{position:static}
@container (max-width:640px){.hs-cmp tbody th{min-width:8.5rem;max-width:11rem}.hs-cmp th.hs-h{min-width:8.5rem}}
.hs-cmp-tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:22px 28px;margin-top:18px}
.hs-cmp-tr h4{margin:0 0 4px;font-size:.875rem;font-weight:650}

/* ---------- sources and downloads ---------- */
.hs-surse td{min-width:8rem}
.hs-surse td.set{min-width:14rem}
.hs-files{list-style:none;margin:0;padding:0;display:grid;gap:0}
.hs-files li{padding:12px 0;border-bottom:1px solid var(--ors-line);display:grid;gap:2px}
.hs-files a{font-weight:650;color:var(--ors-ink);text-decoration-color:var(--ors-red);text-underline-offset:3px}
.hs-files .d{color:var(--ors-ink-2);font-size:.875rem}
.hs-files .m{color:var(--ors-muted);font-size:.75rem;font-variant-numeric:tabular-nums}

/* ---------- hospital profile (dialog over the page) ---------- */
html.hs-noscroll{overflow:hidden}
.hs-dlg{width:min(100%,72rem);max-width:none;max-height:calc(100dvh - 32px);height:auto;margin:16px auto;padding:0;border:0;border-top:6px solid var(--ors-mh-red);
  border-radius:2px;background:var(--ors-paper);color:var(--ors-ink);box-shadow:0 24px 60px rgba(0,0,0,.4);overflow:auto;overscroll-behavior:contain}
.hs-dlg::backdrop{background:rgba(10,10,10,.62)}
.hs-dlg-in{container:hsp/inline-size;padding:0 var(--ors-pad) 32px}
.hs-dlg-bar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;
  padding:10px 0;background:var(--ors-paper);border-bottom:1px solid var(--ors-line)}
.hs-dlg-k{margin:0;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ors-muted)}
.hs-dlg-act{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-left:auto}
.hs-x{appearance:none;width:38px;height:38px;border:1px solid var(--ors-line-2);border-radius:2px;background:transparent;color:var(--ors-ink);font-size:1.375rem;line-height:1;cursor:pointer}
.hs-x:hover{border-color:var(--ors-ink);background:var(--ors-hover)}
@media (max-width:640px){.hs-dlg{width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0}}
#pr-h{margin:16px 0 4px;font-size:clamp(1.375rem,1.1rem + 1.4cqi,2rem);line-height:1.15;font-weight:780;letter-spacing:-.015em;text-wrap:balance;outline:none}
.hs-pr-sub{margin:0 0 12px;color:var(--ors-ink-2);font-size:.9375rem}
.hs-facts{margin:8px 0 18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:0 24px;border-top:1px solid var(--ors-line)}
@container hsp (max-width:520px){.hs-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}}
.hs-facts div{padding:8px 0;border-bottom:1px solid var(--ors-line);min-width:0}
.hs-facts dt{font-size:.75rem;color:var(--ors-muted)}
.hs-facts dd{margin:2px 0 0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}
.hs-facts dd a{color:inherit}
.hs-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,14.5rem),1fr));gap:14px 22px;margin:6px 0 8px}
.hs-tile{border-top:2px solid var(--ors-c-ink);padding-top:8px;min-width:0}
.hs-tile .l{margin:0;font-size:.75rem;line-height:1.35;color:var(--ors-ink-2);font-weight:600;min-height:2.7em}
.hs-tile .v{margin:3px 0 0;font-size:1.5rem;font-weight:780;letter-spacing:-.015em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hs-tile .v .u{font-size:.8125rem;font-weight:600;color:var(--ors-muted);margin-left:4px;letter-spacing:0}
.hs-tile .m{margin:2px 0 0;font-size:.75rem;color:var(--ors-muted);line-height:1.45}
.hs-tile .m b{color:var(--ors-ink-2);font-weight:650}
.hs-tile svg{display:block;width:100%;height:auto;margin-top:6px;overflow:visible}
.hs-pr-sec{margin-top:28px;border-top:1px solid var(--ors-c-ink);padding-top:12px}
.hs-pr-sec>h3{margin:0 0 4px;font-size:1.125rem;font-weight:720}
.hs-pr-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:22px 30px;margin-top:10px}
.hs-pr-g h4{margin:0 0 4px;font-size:.875rem;font-weight:650}
.hs-pr-g .ors-chart{min-height:120px}
.hs-nota{margin:10px 0 0;padding:10px 12px;background:var(--ors-hover);border-left:3px solid var(--ors-line-2);font-size:.8125rem;line-height:1.55;color:var(--ors-ink-2)}
.hs-nota ul{margin:4px 0 0;padding-left:1.1em}
.hs-pr-out{margin:6px 0 0;color:var(--ors-muted);font-size:.875rem}

/* ---------- footer (as /satisfactie-pacienti) ---------- */
.site-foot.sf{display:block}
.sf .sf-head{margin:0 0 10px;color:var(--color-fg)}
.sf .sf-rows{margin:0}
.sf .sf-rows>div{display:grid;grid-template-columns:10.5rem minmax(0,1fr);gap:4px 20px;padding:9px 0;border-top:1px solid light-dark(#e4e2dc,#2f2e2b)}
.sf dt{font-weight:600;color:var(--color-fg)}
.sf dd{margin:0}
.sf dd p{margin:0 0 6px}
.sf dd p:last-child{margin-bottom:0}
@media (max-width:640px){.sf .sf-rows>div{grid-template-columns:minmax(0,1fr)}}

@media print{.hs-dlg,.hs-tabs,.hs-plus,.hs-cmp-pick{display:none !important}}
@media (forced-colors:active){
  .hs-tabs button[aria-pressed=true],.hs-btn[aria-pressed=true],.hs-plus[aria-pressed=true]{outline:2px solid CanvasText;outline-offset:-2px}
}

/* writer track, 2 Nov 2026: value labels drawn over bars keep a halo in the page colour (posts chart); dates on one line */
.ors-svg .hs-halo{paint-order:stroke fill;stroke:var(--ors-paper);stroke-width:3.5px;stroke-linejoin:round}
.hs-nw{white-space:nowrap}

/* stage C, 2 Nov 2026 */
/* map: București repeated, magnified, in the top left corner, with its own hospitals (the main map keeps its colour) */
.ors-svg .hs-inset-bg{fill:var(--ors-paper);stroke:var(--ors-line-2);stroke-width:1}
.ors-svg .hs-ins{stroke:var(--ors-paper);stroke-width:.8;cursor:pointer}
.ors-svg .hs-ins:hover,.ors-svg .hs-ins.sel{stroke:var(--ors-ink);stroke-width:1.6}
/* data colours with at least 3:1 against the page in both themes (style.css is shared with /monitorizare-cheltuieli, so
   the tokens are overridden here): rose for vacant posts and ended accreditations, fog segments with an outline */
.ors{--ors-c-rose:light-dark(#d9707b,#a85560);--hs-dot:light-dark(#1d5b92,#6a9fd6)}
.ors-svg .hs-pt{fill-opacity:.75}
/* search fields: the placeholder in the muted text colour (the browser's grey fails 4.5:1 on the dark page) */
.ors input::placeholder{color:var(--ors-muted);opacity:1}
/* links inside findings, notes, prose and the sources table keep the text colour, underlined */
.ors-find a,.hs-surse a,.ors-note a,.ors-prose a,.hs-nota a{color:inherit;text-decoration-color:var(--ors-red);text-underline-offset:3px}
/* the directory's hint about the columns hidden on narrow screens (style.css hides .sec under a 640 px container) */
.hs-narrow{display:none}
@container (max-width:640px){.hs-narrow{display:block}}
/* ---------- masthead logo (web/brand; pipeline/brand.py inlines the two dark lockups in the h1) ----------
   The h1 keeps its name as .ors-sr text. The masthead is black in both themes, so the dark lockups serve both. Compact
   map at 32 px (whole pixels: 4 px pitch, 3 px dots); from a 980 px wide page the master map at 48 px, whose 30 px
   capitals match the 44 px text title it replaces. */
.ors-title.hs-brand{margin:6px 0 2px;line-height:0;max-width:none}
.hs-brand .hs-logo{display:block;max-width:100%;height:auto}
.hs-brand .hs-logo-m{display:none}
@container ors (min-width:980px){.hs-brand .hs-logo-c{display:none}.hs-brand .hs-logo-m{display:block}}

/* ---------- post-launch update, 3 Nov 2026 (the user: a block of text fills the width, adapted to phones) ----------
   Every prose block fills its content column, fluid with the window; the gutters stay those of style.css (16 px on
   phones). The measures of the copied style.css (dek 68ch, chapter head 62rem, findings 70ch, notes 78ch,
   method 72ch, fhelp 90ch, declnote 70ch), the footnote's 30rem columns and the citation strip's 120ch (topbar.css)
   are lifted here, for HospiStat only. Charts, tables, tooltips and form controls keep their sizes. The main prose
   (dek, findings, method) grows gently with the page, 17 to 20 px and 16 to 18,7 px, so that a full line at 1440 px
   holds about 127 characters instead of 149 (measured; notes/build/PANEL.md, „Post-launch update”). */
.ors-dek,.ors-pg-h,.ors-find,.ors-note,.ors-prose,.ors-fhelp,.ors-declnote,.ors .rh-cite-t{max-width:none}
.ors-footnote{columns:auto}
.ors-dek,.ors-find{font-size:clamp(1.0625rem,.95rem + .35cqi,1.25rem)}
.ors-prose{font-size:clamp(1rem,.9rem + .3cqi,1.1875rem)}
.ors-prose h3{font-size:1em}
