/* ED attendance forecast: the Forecast bubble opened out to fill the page.
   Nine hospitals on a ring around today's date; each opens its own scorecard. */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/caslon-400.6564df5cd887.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/caslon-400-italic.dab39c7e25a9.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caslon-700.882609d7e89f.woff2") format("woff2"); }

:root {
    --serif: "Libre Caslon Text", "Big Caslon", Georgia, serif;
    --fc-ink: #24282b;
    --fc-muted: #646b70;
    --fc-faint: #9aa2a7;
    --fc-line: #e3e6e8;
    --fc-grey: #f2f4f5;      /* light grey banners and figure boxes */
    --fc-red: #d93443;
    --fc-blue: #17608d;
    /* Where the question sits once the bubble has opened. forecast.js reads this. */
    --fc-question-top: 64px;
    --fc-lift: 0 1px 0 rgba(0, 0, 0, .05), 0 10px 24px -14px rgba(20, 30, 40, .35);
}
.forecast-body { font-family: var(--serif); color: var(--fc-ink); background: #fff; }
.fc { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(14px, 3vw, 36px) 40px; }
/* The first screen: question, notice and ring. Scores and method sit below it. */
.fc-screen { display: flex; flex-direction: column; min-height: 100dvh; }
/* The wheel page fits one screen exactly: no bottom padding to scroll into. */
.fc--ring { padding-bottom: 0; }
.fc a { color: var(--fc-blue); text-underline-offset: 3px; }

/* Top: the question that was on the bubble, with the full notice right under it. */
.fc-top { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: var(--fc-question-top); text-align: center; }
.fc-close { position: absolute; top: 18px; left: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 22px; font-size: 14px; letter-spacing: .04em; color: var(--fc-ink) !important; text-decoration: none; }
.fc-close:hover { background: var(--fc-grey); }
.fc-close:focus-visible, .fc-hospital:focus-visible, .fc-switch a:focus-visible { outline: 3px solid var(--fc-blue); outline-offset: 2px; }
.fc-question { max-width: var(--fc-question-width, 100%); margin: 0; font-weight: 400; font-size: calc(.75 * clamp(22px, 2.6vw, 30px)); line-height: 1.3; } /* .75 of the bubble: forecast.js shrinks it to match */

/* The ring of hospitals. Sizes inside it scale with the ring (cqi), so it reads the same at any size. */
/* The first screen: the question, then the side panels either side of the ring, with the notice under the ring. */
.fc-body { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 28px; }
.fc-centre { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 18px 0 8px; }
.fc-stage { display: flex; justify-content: center; width: 100%; container: stage / inline-size; }
/* The wheel page: the question, the ring and what sits under it share three rows, with the two
   outer rows equal, so the ring's centre is the screen's centre. The ring takes whatever height
   is left once the taller of the question and the key + notice is reserved on both sides. */
.fc--ring .fc-screen { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; }
.fc--ring .fc-body, .fc--ring .fc-centre { display: contents; }
.fc--ring .fc-top { grid-row: 1; align-self: start; }
.fc--ring .fc-stage { grid-row: 2; padding: 0 12px; }
.fc--ring .fc-under { grid-row: 3; align-self: start; }
.fc-ring { --ring: clamp(min(300px, 100cqi), min(100cqi, calc(100dvh - 2 * max(var(--fc-head, 140px), var(--fc-tail, 150px)) - var(--fc-ring-gap, 24px))), 640px); position: relative; width: var(--ring); aspect-ratio: 1; container: ring / inline-size; transition: width 520ms cubic-bezier(.3, .7, .2, 1); }
.fc-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fc-orbit circle { fill: none; stroke: #dfe3e6; stroke-width: .25; }
.fc-orbit .fc-orbit__inner { stroke-dasharray: .5 1.1; stroke: #cfd5d9; }

.fc-hub { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40%; aspect-ratio: 1; padding: 4%; border-radius: 50%; transform: translate(-50%, -50%); background: var(--fc-grey); text-align: center; }
.fc-hub p { margin: 0; }
.fc-hub__label { font-size: max(10px, 2.1cqi); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fc-muted); }
.fc-hub__date { margin-top: 1.2cqi !important; font-size: max(15px, 4.4cqi); white-space: nowrap; line-height: 1.15; }
.fc-hub__lock { margin-top: 1.4cqi !important; font-size: max(10.5px, 2.1cqi); line-height: 1.45; color: var(--fc-muted); }
.fc-hub__next { display: block; font-variant-numeric: tabular-nums; }

.fc-hospitals { margin: 0; padding: 0; list-style: none; }
.fc-hospital-spot { position: absolute; left: var(--x); top: var(--y); width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.fc-hospital { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 8%; border: 1px solid #d5dbdf; border-radius: 50%; background: #fff; color: var(--fc-ink) !important; text-decoration: none; text-align: center; box-shadow: var(--fc-lift); transition: transform 200ms ease, box-shadow 200ms ease, background-color 240ms ease, color 240ms ease, opacity 240ms ease, border-color 240ms ease; }
.fc-hospital:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 16px 26px -14px rgba(20, 30, 40, .45); border-color: #b9c1c6; }
/* Rings show MOH's codes (AH, CGH ...); the full name heads each scorecard. */
.fc-hospital__name { display: none; }
.fc-hospital__code { display: block; font-size: max(10px, 2.6cqi); font-weight: 700; letter-spacing: .1em; color: var(--fc-muted); }
.fc-hospital__value { margin-top: .8cqi; font-size: max(18px, 5.6cqi); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.fc-hospital--empty .fc-hospital__value { color: var(--fc-faint); }
/* Today's forecast against the usual day for this weekday: white near usual, then steadily
   redder (higher) or bluer (lower). --fc-tint is the share of full colour, set per circle. */
:root { --fc-tint-red: #ee9fa7; --fc-tint-blue: #93b5cb; }
.fc-hospital--higher { background: color-mix(in srgb, var(--fc-tint-red) var(--fc-tint, 0%), #fff); }
.fc-hospital--lower { background: color-mix(in srgb, var(--fc-tint-blue) var(--fc-tint, 0%), #fff); }
.fc-hospital--higher .fc-hospital__code, .fc-hospital--lower .fc-hospital__code { color: #4a5156; }
.fc-under { display: flex; flex-direction: column; align-items: center; width: 100%; }
.fc-key-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; }
/* -30% at the left, -10% to +10% white, +30% at the right. */
.fc-key-bar__bar { flex: none; width: 88px; height: 6px; border-radius: 3px; border: 1px solid var(--fc-line); background: linear-gradient(to right, var(--fc-tint-blue), #fff 33.3%, #fff 66.7%, var(--fc-tint-red)); }
.fc-key-bar__label { font-size: 9.5px; font-style: italic; letter-spacing: .02em; color: var(--fc-muted); white-space: nowrap; }
@container ring (max-width: 470px) {
    .fc-hub__label, .fc-hub__lock { font-size: 10px; letter-spacing: .02em; }
    .fc-hub__label { letter-spacing: .1em; white-space: nowrap; }
}


/* A hospital's own page: the notice, a row of every hospital, then its scorecard. */
.fc--hospital .fc-top { padding-top: 70px; }
.fc--hospital .fc-notice--top { margin-top: 0; }
.fc-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: min(820px, 100%); margin: 22px auto 0; }
.fc-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #d5dbdf; border-radius: 18px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--fc-muted) !important; text-decoration: none; background: #fff; transition: border-color 160ms ease, color 160ms ease; }
.fc-switch a:hover { border-color: #9aa2a7; color: var(--fc-ink) !important; }
.fc-switch a[aria-current="page"] { background: var(--fc-ink); border-color: var(--fc-ink); color: #fff !important; }
.fc--hospital .fc-panel { width: min(820px, 100%); margin: 18px auto 0; }
.fc.is-ready .fc-panel { animation: fc-fade 380ms ease-out 80ms both; }
.fc-panel__model { margin: 12px 2px 0; font-size: 13px; line-height: 1.5; color: var(--fc-muted); }
.fc-panel__model p { margin: 0; }
.fc-panel__model p + p { margin-top: 3px; }
.fc-panel__model abbr { text-decoration: none; font-weight: 700; }
/* The explorer opens below the scorecard; whether it is open carries across hospitals. */
.fc-explorer-toggle { display: none; justify-content: center; margin-top: 22px; }
.fc-js .fc-explorer-toggle { display: flex; }
.fc-explorer-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid #d5dbdf; border-radius: 22px; background: #fff; box-shadow: var(--fc-lift); font: 700 11.5px var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--fc-ink); cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; }
.fc-explorer-button:hover { border-color: #9aa2a7; transform: translateY(-1px); }
.fc-explorer-button:focus-visible { outline: 3px solid var(--fc-blue); outline-offset: 2px; }
.fc-explorer-button__hide, .fc-explorer-open .fc-explorer-button__show { display: none; }
.fc-explorer-open .fc-explorer-button__hide { display: inline; }
.fc-js .fc-explorer { display: none; }
.fc-js.fc-explorer-open .fc-explorer { display: block; }
.fc-panel { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--fc-line); border-radius: 12px; background: #fff; box-shadow: var(--fc-lift); outline: none; }
.fc-panel__head { margin: 0; }
.fc-panel__code { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--fc-red); }
.fc-panel__name { margin: 4px 0 0; font-weight: 400; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; }

.fc-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; }
.fc-figure { padding: 12px 12px 10px; border-radius: 8px; background: var(--fc-grey); }
.fc-figure dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fc-muted); }
.fc-figure dd { margin: 6px 0 0; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.fc-figure small { font-size: 13px; color: var(--fc-muted); }
.fc-figure--today { background: var(--fc-ink); color: #fff; }
.fc-figure--today dt { color: rgba(255, 255, 255, .7); }

.fc-chart { margin: 20px 0 0; }
.fc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.fc-chart__grid { stroke: #eceff1; stroke-width: 1; }
.fc-chart__week { stroke: var(--fc-line); stroke-width: 1; stroke-dasharray: 2 3; }
.fc-chart__label { font: 10px var(--serif); fill: var(--fc-muted); }
.fc-chart__actual, .fc-chart__forecast { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fc-chart__actual { stroke: var(--fc-ink); }
.fc-chart__forecast { stroke: var(--fc-red); stroke-dasharray: 5 4; }
.fc-chart__dot { fill: #fff; stroke: var(--fc-red); stroke-width: 1.4; }
.fc-chart figcaption { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--fc-muted); }
.fc-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--fc-ink); }
.fc-key--forecast { margin-left: 14px; border-top: 2px dashed var(--fc-red); }

/* The explorer: one month at a time. */
.fc--hospital .fc-explorer { margin-top: 18px; }
.fc.is-ready .fc-explorer { animation: fc-fade 320ms ease-out both; }
.fc-explorer__title { margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fc-muted); }
.fc-months { display: flex; align-items: center; gap: 6px; }
.fc-months__list { display: flex; flex: 0 1 auto; min-width: 0; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.fc-months__list::-webkit-scrollbar { display: none; }
.fc-months a, .fc-months__step { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 8px; border-radius: 17px; font-size: 13px; color: var(--fc-muted) !important; text-decoration: none; scroll-snap-align: center; transition: background-color 160ms ease, color 160ms ease; }
.fc-months__list a small { font-size: 10.5px; margin-left: 1px; }
.fc-months a:hover { background: var(--fc-grey); color: var(--fc-ink) !important; }
.fc-months a[aria-current="true"] { background: var(--fc-ink); color: #fff !important; }
.fc-months__step { min-width: 34px; padding: 0; color: var(--fc-ink) !important; }
span.fc-months__step { opacity: .3; }
.fc-months a:focus-visible { outline: 3px solid var(--fc-blue); outline-offset: 1px; }
.fc-month { margin-top: 16px; }
.fc-explorer.is-loading .fc-month { opacity: .55; transition: opacity 120ms ease 120ms; }
.fc-month__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.fc-month__name { margin: 0; font-weight: 400; font-size: 20px; }
.fc-month__metrics { display: flex; gap: 22px; margin: 0; }
.fc-month__metrics dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fc-muted); }
.fc-month__metrics abbr { text-decoration: none; }
.fc-month__metrics dd { margin: 2px 0 0; font-size: 18px; font-variant-numeric: tabular-nums lining-nums; }
.fc-month__metrics small { font-size: 12px; color: var(--fc-muted); }
.fc-chart__dot--backtest { fill: var(--fc-red); fill-opacity: .25; stroke-opacity: .6; }
.fc-key--backtest { width: 8px; height: 8px; margin-left: 14px; border: 1.4px solid var(--fc-red); border-radius: 50%; background: rgba(217, 52, 67, .2); }
.fc-table-wrap { margin-top: 14px; }
.fc-table tfoot th, .fc-table tfoot td { border-top: 1.5px solid var(--fc-ink); border-bottom: 0; font-weight: 700; }
.fc-table tfoot small { font-weight: 400; font-size: 11px; color: var(--fc-muted); letter-spacing: .06em; }
.fc-table tr.is-backtest td:nth-child(2) { color: #6f4a4f; }
/* Weekends shaded in a pale EMCO blue; public holidays named in EMCO blue. */
.fc-table tbody tr.is-weekend > * { background: #edf3f7; }
.fc-holiday { margin-left: 4px; color: var(--fc-blue); }
.fc-backtest-mark { margin-left: 2px; font-size: .8em; color: var(--fc-red); vertical-align: .25em; }
.fc-note { margin: 4px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--fc-muted); }
.fc-table { width: 100%; margin: 2px 0 14px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums lining-nums; }
.fc-table th, .fc-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #eef0f2; }
.fc-table th:first-child { text-align: left; font-weight: 400; }
.fc-table thead th { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fc-muted); background: var(--fc-grey); border: 0; }
.fc-table thead th:first-child { border-radius: 6px 0 0 6px; }
.fc-table thead th:last-child { border-radius: 0 6px 6px 0; }
.fc-table tbody tr:last-child > * { border-bottom: 0; }
.fc-empty { margin: 16px 0 0; font-style: italic; color: var(--fc-muted); }

/* Side panels: the model on the left, its scores on the right. Each one tucks behind a small
   raised tab on its edge and slides in when the tab is pressed. Both are the same height
   (forecast.js) and centred on the ring's centre (--fc-ring-y), so they mirror each other. */
.fc-centre { padding-inline: 12px; }
.fc-side { position: fixed; z-index: 30; top: var(--fc-ring-y, 50%); width: min(300px, calc(100vw - 52px)); transition: transform 320ms cubic-bezier(.3, .7, .2, 1), visibility 0s linear 320ms; visibility: hidden; }
.fc-side--info { left: 0; transform: translate(-100%, -50%); }
.fc-side--scores { right: 0; transform: translate(100%, -50%); }
.fc-side.is-open { transform: translate(0, -50%); visibility: visible; transition-delay: 0s; }
.fc-side__inner { display: flex; flex-direction: column; box-sizing: border-box; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 22px; border: 1px solid var(--fc-line); background: #fff; box-shadow: var(--fc-lift); }
.fc-side--info .fc-side__inner { border-left: 0; border-radius: 0 12px 12px 0; }
.fc-side--scores .fc-side__inner { border-right: 0; border-radius: 12px 0 0 12px; }
/* The tab rides on the panel's outer edge, so it stays in view while the panel is away. */
.fc-side__tab { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 22px; min-height: 88px; padding: 10px 0; border: 1px solid #d5dbdf; background: #fff; color: var(--fc-muted); box-shadow: var(--fc-lift); transform: translateY(-50%); visibility: visible; cursor: pointer; font: 700 10px var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.fc-side--info .fc-side__tab { left: 100%; border-left: 0; border-radius: 0 10px 10px 0; }
.fc-side--scores .fc-side__tab { right: 100%; border-right: 0; border-radius: 10px 0 0 10px; }
.fc-side__tab:hover { color: var(--fc-ink); }
.fc-side__tab-label { writing-mode: vertical-rl; }
.fc-side--info .fc-side__tab-label { transform: rotate(180deg); }
.fc-side.is-open .fc-side__tab { color: var(--fc-red); }
.fc-scrim { position: fixed; z-index: 20; inset: 0; background: rgba(36, 40, 43, .18); opacity: 0; transition: opacity 280ms ease; }
.fc-scrim[hidden] { display: none; }
.fc-scrim.is-shown { opacity: 1; }

.fc-side__label, .fc-scores dt { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fc-muted); }
.fc-side__model { margin: 6px 0 0; font-size: 19px; line-height: 1.3; }
.fc-side__others { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--fc-line); font-size: 12.5px; line-height: 1.45; color: var(--fc-muted); }
.fc-side__others p { margin: 0; }
.fc-side__others ul { margin: 6px 0 0; padding: 0; list-style: none; }
.fc-side__links { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; }
.fc-side__button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid #d5dbdf; border-radius: 8px; background: #fff; font: 14.5px var(--serif); color: var(--fc-ink); text-align: left; cursor: pointer; }
.fc-side__button small { font-size: 11px; font-style: italic; color: var(--fc-faint); }
.fc-side__button:disabled { cursor: default; background: var(--fc-grey); border-color: var(--fc-grey); color: var(--fc-muted); }
.fc-side__button:focus-visible, .fc-side__tab:focus-visible { outline: 3px solid var(--fc-blue); outline-offset: 2px; }
.fc-scores { margin: 0; }
.fc-scores > div + div { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--fc-line); }
.fc-scores dd { margin: 5px 0 0; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums lining-nums; }
.fc-scores__until dd { font-size: 17px; }
.fc-scores small { font-size: 12.5px; color: var(--fc-muted); }
.fc-scores abbr { text-decoration: none; font-weight: 700; }
.fc-scores dd.fc-scores__note { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--fc-muted); }
.fc-scores__backtest { margin: 14px 0 0; font-size: 11.5px; line-height: 1.45; font-style: italic; color: var(--fc-faint); }

/* Computers: the same panels, a size up. */
@media (min-width: 1100px) {
    .fc-side { width: 360px; }
    .fc-side__inner { padding: 28px 28px 30px; border-radius: 0 16px 16px 0; }
    .fc-side--scores .fc-side__inner { border-radius: 16px 0 0 16px; }
    .fc-side__tab { width: 30px; min-height: 124px; font-size: 11.5px; }
    .fc-side--info .fc-side__tab { border-radius: 0 12px 12px 0; }
    .fc-side--scores .fc-side__tab { border-radius: 12px 0 0 12px; }
    .fc-side__label, .fc-scores dt { font-size: 11.5px; }
    .fc-side__model { font-size: 23px; }
    .fc-side__others { margin-top: 20px; padding-top: 18px; font-size: 14px; }
    .fc-side__links { gap: 10px; padding-top: 24px; }
    .fc-side__button { min-height: 52px; padding: 10px 16px; font-size: 16px; }
    .fc-side__button small { font-size: 12px; }
    .fc-scores > div + div { margin-top: 20px; padding-top: 20px; }
    .fc-scores dd { font-size: 27px; }
    .fc-scores__until dd { font-size: 20px; }
    .fc-scores small { font-size: 14px; }
    .fc-scores dd.fc-scores__note { font-size: 14px; }
    .fc-scores__backtest { font-size: 12.5px; }
}

/* The notice: under the ring, and on every hospital page. */
.fc-notice { margin-top: 24px; padding: 14px 18px; border-radius: 8px; background: var(--fc-grey); box-shadow: inset 3px 0 0 var(--fc-red); font-size: 14px; line-height: 1.5; }
.fc-notice p { margin: 0; }
.fc-notice p + p { margin-top: 6px; }
.fc-notice--top { width: min(560px, 100%); margin-top: 16px; padding: 10px 16px; font-size: 12.5px; line-height: 1.45; text-align: center; }
.fc-notice--top p + p { margin-top: 3px; }

/* Phones and tablets. */
@media (max-width: 979px) {
    .fc--hospital .fc-panel { padding: 16px 14px 20px; }
    .fc-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-notice--top { margin-top: 12px; padding: 8px 12px; font-size: 11.5px; line-height: 1.4; }
    .fc-notice--top p + p { margin-top: 2px; }
    .fc-month__name { font-size: 18px; }
    .fc-month__metrics { gap: 18px; }
    .fc-month__metrics dd { font-size: 16px; }
    .fc-months { margin: 0 -6px; gap: 2px; }
    .fc-months__list { flex: 1 1 auto; }
    .fc-wide { display: none; }
    .fc-table tfoot small { display: block; font-size: 9px; }
    .fc-holiday { display: block; margin: 1px 0 0; font-size: 11px; line-height: 1.2; white-space: normal; }
    .fc-table { font-size: 13.5px; }
    .fc-table th, .fc-table td { padding: 6px 4px; white-space: nowrap; }
    .fc-table thead th { font-size: 9px; letter-spacing: .06em; }
}
/* Phones: the chart shrinks to fit, so its labels are drawn larger to stay readable. */
@media (max-width: 599px) {
    /* The key stays under the ring; the notice sits near the bottom of the screen, balancing the question at the top. */
    .fc--ring { --fc-ring-gap: 0px; }
    .fc--ring .fc-under { align-self: stretch; justify-content: space-between; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
    .fc-chart__label { font-size: 14px; }
}
/* Small phones: the scorecard table stays inside the screen. */
@media (max-width: 374px) {
    .fc-table { font-size: 12px; }
    .fc-table th, .fc-table td { padding: 5px 3px; }
    .fc-table thead th { font-size: 8px; letter-spacing: .03em; }
    .fc-close span { display: none; }
    .fc-close { top: 12px; left: -6px; padding: 0 10px; }
}

/* Arrival: the ring settles in once the bubble has filled the page. */
.fc.is-ready .fc-hub { animation: fc-fade 420ms ease-out 80ms both; }
.fc.is-ready .fc-hospital-spot { animation: fc-orbit-in 560ms cubic-bezier(.2, .75, .25, 1) calc(140ms + var(--i) * 45ms) both; }
.fc.is-ready .fc-orbit { animation: fc-fade 700ms ease-out both; }
.fc.is-ready .fc-notice--top { animation: fc-fade 420ms ease-out 260ms both; }
/* Hospital pages: the notice and the hospital row stay still; only the scorecard fades in. */
.fc--hospital.is-ready .fc-notice--top { animation: none; }
@keyframes fc-fade { from { opacity: 0; } }
@keyframes fc-orbit-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
@media (prefers-reduced-motion: reduce) {
    .fc *, .fc *::after { animation: none !important; transition: none !important; }
}
