/* Preferencias compartidas entre las vistas de salud. */
html.reading-page { font-size: 100%; }
html.reading-page[data-reading-size="large"] { font-size: 150%; }
html.reading-page[data-reading-size="largest"] { font-size: 200%; }

[data-reading-options][hidden] { display: none !important; }
.reading-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .35rem .75rem;
  align-items: end;
  margin-block: .55rem;
}
.reading-controls > * { min-width: 0; }
.reading-controls label { font-size: .9rem; font-weight: 700; }
.reading-controls select { display: block; width: 100%; margin-top: .24rem; font: inherit; }
.reading-check {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: 44px;
  cursor: pointer;
}
.reading-check input {
  flex: none;
  width: .95rem;
  height: .95rem;
  margin: 0;
  accent-color: var(--accent, #155840);
}
[data-reading-status]:empty { display: none; }

html[data-reading-motion],
html[data-reading-motion] *,
html[data-reading-motion] *::before,
html[data-reading-motion] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.public-health .reading-settings {
  margin-block: .75rem;
}
.public-health .reading-settings summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 750;
  padding-block: .25rem;
}
.public-health .reading-controls select {
  min-height: 44px;
  border-color: #617e70;
}
.public-health .health-field :is(input,select) { border-color: #617e70; }
.public-health .health-header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .85rem;
}
.public-health a.easy-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 750;
}
.public-health .header-inner { flex-wrap: wrap; }
.reading-page .public-health h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.reading-page .public-health h2 { font-size: clamp(1.45rem, 3vw, 2.125rem); }
.reading-page .public-health h3 { font-size: clamp(1.125rem, 2vw, 1.35rem); }
.reading-page .public-health .intro p { font-size: 1rem; }
.reading-page .public-health .button,
.reading-page .public-health .health-card .links,
.reading-page .public-health .health-card dt,
.reading-page .public-health .health-filters label,
.reading-page .public-health .note,
.reading-page .public-health .back-link { font-size: .875rem; }
.reading-page .public-health .button { white-space: normal; }

html.reading-page:is([data-reading-size="large"],[data-reading-size="largest"]) .public-health .directory-filters,
html.reading-page:is([data-reading-size="large"],[data-reading-size="largest"]) .public-health .service-list {
  grid-template-columns: minmax(0,1fr);
}
html.reading-page:is([data-reading-size="large"],[data-reading-size="largest"]) .public-health .health-table :is(td,th) {
  overflow-wrap: anywhere;
}
html.reading-page[data-reading-contrast] {
  --ink: #111;
  --muted: #222;
  --accent: #063b2b;
  --dark: #111;
  --ground: #fff;
  --line: #222;
  --control-line: #222;
  --paper: #fff;
  --accent-weak: #fff;
  --emergency-ink: #721d13;
  --emergency-bg: #fff;
  --emergency-line: #721d13;
  --focus: #1644af;
}
html.reading-page[data-reading-contrast] .public-health :is(.today-panel,.panel,.health-field input,.health-field select,.reading-controls select) {
  background: #fff;
  border-color: #222;
}
html.reading-page[data-reading-contrast] .public-health :is(.notice-meta,.health-card dt,.weekly-axis) {
  color: #222;
}
html.reading-page[data-reading-contrast] .public-health .urgent-care { border: 2px solid #721d13; }
html.reading-page[data-reading-contrast] .public-health .urgent-care :is(h2,p) { color: #721d13; }

html.reading-page[data-reading-contrast] :focus-visible {
  outline-color: var(--focus);
  outline-offset: 4px;
}
html.reading-page[data-reading-contrast] :is(.masthead,.easy-header) :focus-visible {
  outline-color: #f8d568;
}
@media (forced-colors: active) {
  .reading-page :focus-visible { outline-color: Highlight; }
  .reading-page :is(.easy-emergency,.easy-button,.urgent-care) { border-color: ButtonText; }
}
