/* Volume-comparison additions; inherit the existing Medical Help Japan palette. */
.mhj-rank-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:.55rem 1rem}
.mhj-rank-heading-summary{font-size:.66em;font-weight:600;line-height:1.7}
.mhj-rank-badges{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.35rem .55rem;font-variant-numeric:tabular-nums}
.mhj-rank-badge{display:inline-block;padding:.2em .65em;border:1px solid #5c9ca5;border-radius:.35rem;background:#edf8fa;color:#074c59;white-space:nowrap;line-height:1.65}
.mhj-rank-national{border-color:#7897b3;background:#eff4fa;color:#173f68}
.mhj-rank-unavailable{font-size:.9em;color:#5a5e62;font-weight:500;white-space:normal}
.mhj-rank-panel{margin:.7rem 0 1rem;padding:.75rem .9rem;border:1px solid #cbdde1;border-radius:.45rem;background:#f8fbfc;font-size:.88em;line-height:1.65;max-width:100%;box-sizing:border-box}
.mhj-rank-chooser{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem}
.mhj-rank-chooser label{font-weight:700;color:#163d50}
.mhj-rank-chooser select{font:inherit;color:#173e50;background:white;border:1px solid #8ba9b5;border-radius:.3rem;padding:.45rem 1.8rem .45rem .55rem;max-width:100%;min-height:40px}
.mhj-rank-chooser select:focus-visible{outline:3px solid #b97000;outline-offset:3px}
.mhj-rank-scope,.mhj-rank-caution{margin:.45rem 0 0!important;overflow-wrap:anywhere}
.mhj-rank-caution{color:#49616b}
.mhj-rank-method{margin:.45rem 0 0!important;padding:0!important;border:0!important;background:transparent!important}
.mhj-rank-method summary{cursor:pointer;font-weight:600;color:#145c6a}
.mhj-rank-method p{margin:.4rem 0!important}
.mhj-rank-row{margin-top:.6rem;font-size:.87em;line-height:1.65}
.mhj-rank-selected{background:#f2fafb!important}
.mhj-rank-print-measure{display:none}
.mhj-rank-explanation{margin:.6rem 0 1rem;font-size:.9em;color:#495f6c}
.mhj-rank-leaders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:.75rem 0 .6rem}
.mhj-rank-leaders[hidden]{display:none}
.mhj-rank-leader-card{min-width:0;border:1px solid #b9d9de;border-radius:.4rem;padding:.7rem .8rem;background:#edf8fa;overflow-wrap:anywhere}
.mhj-rank-leader-national{border-color:#c5d3e5;background:#eff4fa}
.mhj-rank-leader-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.25rem .75rem;color:#074c59}
.mhj-rank-leader-national .mhj-rank-leader-header{color:#173f68}
.mhj-rank-leader-value{font-size:1.2em;font-variant-numeric:tabular-nums}
.mhj-rank-leader-list{margin:.35rem 0 0!important;padding:0!important;list-style:none!important}
.mhj-rank-leader-list li{margin:.3rem 0!important;padding:0!important;line-height:1.65}
.mhj-rank-leader-name{font-weight:600}
.mhj-rank-leader-pref{font-size:.92em;color:#49616b}
.mhj-rank-leader-alias{display:block;margin-top:.15rem;font-size:.9em;color:#49616b}
.mhj-rank-leader-tied,.mhj-rank-leader-empty{margin:.35rem 0 0!important;font-size:.95em}
.mhj-rank-leader-more{margin:.5rem 0 0!important;padding:0!important;border:0!important;background:transparent!important}
.mhj-rank-leader-more summary{cursor:pointer;color:#145c6a;text-decoration:underline;text-underline-offset:3px}
.mhj-rank-leader-more summary:focus-visible{outline:3px solid #b97000;outline-offset:3px}
.mhj-rank-source-hold{margin-top:.4rem;padding:.45rem .6rem;border-left:3px solid #9a6a00;background:#fff8e5;color:#5b450e;font-size:.88em;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.mhj-rank-source-hold a{color:inherit}
@media(max-width:700px){.mhj-rank-leaders{grid-template-columns:minmax(0,1fr)}.mhj-rank-leader-card{padding:.65rem}.mhj-rank-leader-value{font-size:1.15em}}
@media print{.mhj-rank-leader-card{background:white!important;border-color:#666!important;break-inside:avoid}.mhj-rank-leader-header,.mhj-rank-leader-pref,.mhj-rank-leader-alias{color:#111!important}.mhj-rank-leader-more>ul{display:block!important}.mhj-rank-panel.mhj-rank-many-leaders{break-inside:auto!important}.mhj-rank-many-leaders .mhj-rank-leaders{display:block}.mhj-rank-many-leaders .mhj-rank-leader-card{break-inside:auto;margin-bottom:.5rem}.mhj-rank-leader-list li{break-inside:avoid}.mhj-rank-source-hold{background:white!important;color:#111!important}}
@media(max-width:600px){.mhj-rank-heading{gap:.45rem}.mhj-rank-heading-summary{display:block;width:100%;font-size:.68em}.mhj-rank-panel{padding:.7rem .65rem}.mhj-rank-chooser{align-items:stretch;flex-direction:column}.mhj-rank-chooser select{width:100%}.mhj-rank-badges{gap:.3rem}.mhj-rank-row .mhj-rank-badges{align-items:flex-start;flex-direction:column}}
@media print{.mhj-rank-chooser label,.mhj-rank-chooser select{display:none!important}.mhj-rank-print-measure{display:inline!important;font-weight:700}.mhj-rank-panel{background:white!important;border:1px solid #666!important;break-inside:avoid;font-size:10pt}.mhj-rank-method{display:block!important}.mhj-rank-method>p{display:block!important}.mhj-rank-badge{background:white!important;border-color:#555!important;color:#111!important}.mhj-rank-caution,.mhj-rank-scope,.mhj-rank-explanation{color:#111!important}.mhj-rank-selected{background:white!important}.mhj-rank-row{font-size:9pt}}

/* Single hospital ranks directly above the table reading notes. */
.mhj-rank-table-summary{margin:.8rem 0;font-size:.95rem;font-weight:600;line-height:1.7}
.mhj-rank-table-summary[hidden]{display:none}
