.tap-shell {
  width: min(100% - 32px, 46rem);
  margin: 0 auto;
  padding-block: clamp(24px, 5vw, 52px) 64px;
  color: var(--ink);
}
.tap-shell h1 {
  color: var(--navy);
  font: 400 clamp(1.75rem, 5vw, 2.65rem)/1.4 var(--serif);
}
.tap-shell h2 { color: var(--navy); font-size: 1.2rem; line-height: 1.45; }
.tap-shell p { margin-block: 8px 16px; }
.tap-shell a:focus-visible,
.tap-shell button:focus-visible,
.tap-shell [tabindex="-1"]:focus-visible {
  outline: 2px solid #235d86;
  outline-offset: 3px;
}
.tap-shell [hidden] { display: none; }
.tap-shell [id] { scroll-margin-top: 1.5rem; }
.tap-options {
  display: grid;
  gap: 8px;
  margin-block: 12px 24px;
}
.tap-options--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}
.tap-control, .tap-small, .tap-jumps a {
  display: flex;
  min-width: 44px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #a9bdcc;
  border-radius: 5px;
  color: var(--navy);
  background: #fff;
  font: 600 1rem/1.5 var(--sans);
  text-align: start;
  overflow-wrap: anywhere;
}
.tap-control { width: 100%; }
.tap-control:hover, .tap-small:hover, .tap-jumps a:hover { background: #eaf3f8; }
.tap-control:focus-visible { z-index: 1; }
button.tap-control, button.tap-small { cursor: pointer; }
.tap-control--primary { border-color: var(--navy); color: #fff; background: var(--navy); }
.tap-control--primary:hover { background: #244d6c; }
.tap-control--alert { border-color: #b88877; color: #783626; background: #fff1eb; }
.tap-control--alert:hover { background: #fce2d8; }
.tap-control--call { border-color: #8a3626; color: #fff; background: #8a3626; }
.tap-control--call:hover { background: #70291d; }
.tap-selected { color: #3a5266; font-size: .9375rem; }
.tap-quiet { color: #41586a; font-size: .9375rem; }
.tap-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px 24px; }
.tap-jumps a { justify-content: center; }
.tap-section { margin-block-start: 32px; }
.tap-section h2:focus { outline-offset: 4px; }
.tap-progress { margin-block: 20px 16px; color: var(--navy); }
.tap-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-block-start: 6px;
  appearance: none;
  border: 0;
  background: #d6e2eb;
  color: var(--navy);
}
.tap-progress progress::-webkit-progress-bar { background: #d6e2eb; }
.tap-progress progress::-webkit-progress-value { background: var(--navy); }
.tap-progress progress::-moz-progress-bar { background: var(--navy); }
.tap-urgent { margin-block: 16px 22px; }
.tap-symptom-page { scroll-padding-top: 4rem; }
.tap-urgent--sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-block-end: 6px;
  padding-block: 6px;
  background: var(--bg);
}
.tap-footer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 20px;
}
.tap-footer-controls--before { margin-block: 8px 16px; }
.tap-note {
  padding: 14px 16px;
  border-inline-start: 3px solid #5f8d7e;
  background: #eef5f1;
}
.tap-note p:last-child { margin-block-end: 0; }
.tap-text-link { text-decoration: underline; text-underline-offset: 3px; }
.tap-note a, .tap-source { display: inline-flex; align-items: center; min-height: 44px; }
.tap-emergency-card {
  margin-block: 20px;
  padding: 16px;
  border: 1px solid #bc8c7d;
  border-radius: 6px;
  background: #fff4ef;
}
.tap-emergency-card h2 { color: #783626; }
.tap-emergency-card ul { padding-inline-start: 1.25em; margin-block: 10px 14px; }

.tap-specialty-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: 20px;
}
.tap-area-examples {
  display: block;
  margin-block-start: 2px;
  color: #435d70;
  font-size: .875rem;
  font-weight: 400;
}
.tap-control--back { width: fit-content; }
.tap-specialty-context {
  width: fit-content;
  margin: 0;
  padding: 6px 12px;
  border-radius: 4px;
  background: #eaf3f8;
  color: var(--navy);
  font-weight: 600;
}
.tap-specialty-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-block-end: 12px;
}
.tap-specialty-refine { margin-block-end: 16px; }
.tap-specialty-refine summary {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #a9bdcc;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}
.tap-specialty-refine .filter-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-block-start: 8px;
}
.tap-specialty-refine .filter-field.wide,
.tap-specialty-refine .nm-search-submit { grid-column: auto; }
.tap-specialty-refine [hidden] { display: none; }
@media (max-width: 600px) {
  .tap-specialty-options,
  .tap-specialty-refine .filter-panel { grid-template-columns: minmax(0, 1fr); }
}
