:root {
  --ink-950: #211c24;
  --ink-900: #2d2730;
  --ink-800: #443a49;
  --ink-700: #625769;
  --ink-600: #7c7282;
  --ink-500: #968b9d;
  --ink-300: #d5cbdc;
  --ink-200: #e8dfeb;
  --ink-100: #f6eef8;
  --ink-050: #fff7fb;
  --white: #ffffff;
  --accent-700: #b63362;
  --accent-600: #dc3f72;
  --accent-500: #ff5f8f;
  --accent-300: #ffabc7;
  --accent-100: #ffe5ef;
  --mint-700: #087d79;
  --mint-500: #26c6b3;
  --mint-100: #dffaf5;
  --blue-700: #3267a8;
  --blue-100: #e6f1ff;
  --amber-700: #946b00;
  --amber-100: #fff3bd;
  --red-700: #b73535;
  --red-100: #ffe5e2;
  --sunny: #ffd166;
  --paper: #fffdf8;
  --line: #2d2730;
  --shadow-sm: 0 1px 0 rgb(45 39 48 / 95%), 0 7px 18px rgb(45 39 48 / 8%);
  --shadow-md: 0 14px 0 rgb(45 39 48 / 9%), 0 22px 45px rgb(45 39 48 / 14%);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --shell: 1440px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--ink-050);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: linear-gradient(135deg, #fff7fb 0%, #f3fff9 48%, #fff8d9 100%);
  color: var(--ink-900);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgb(45 39 48 / 4%) 1px, transparent 1px),
    linear-gradient(rgb(45 39 48 / 4%) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body > * {
  position: relative;
  z-index: 1;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--blue-700);
}

a:hover {
  text-decoration-thickness: 2px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  transform: translateY(-160%);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--line);
  background: rgb(255 253 248 / 90%);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-950);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sunny) 0%, var(--accent-500) 100%);
  color: var(--ink-950);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  box-shadow: 4px 4px 0 var(--line);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 1px;
  color: var(--ink-600);
  font-size: 0.76rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.text-link {
  color: var(--ink-800);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-700);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translate(-1px, -2px);
}

.button:focus-visible,
.quick-view:focus-visible,
.sort-button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(255 95 143 / 32%);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  border-color: var(--line);
  background: var(--ink-950);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--mint-500);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-700);
}

.button-secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink-950);
  box-shadow: 3px 3px 0 rgb(45 39 48 / 12%);
}

.site-header .button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink-950);
}

.button-accent {
  border-color: var(--line);
  background: var(--accent-500);
  color: var(--ink-950);
  box-shadow: 5px 5px 0 var(--line);
}

.button-accent:hover:not(:disabled) {
  background: var(--sunny);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-800);
}

.button-ghost:hover:not(:disabled) {
  background: var(--amber-100);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 86px;
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 28%) 0 12px, transparent 12px 24px),
    linear-gradient(110deg, #ff8ab3 0%, #ffd166 47%, #26c6b3 100%);
  color: var(--ink-950);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 2px, transparent 2px),
    linear-gradient(90deg, var(--line) 2px, transparent 2px);
  background-size: 72px 72px;
  opacity: 0.06;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: -26px;
  width: min(46vw, 560px);
  height: 92px;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, var(--paper) 50%, transparent 50%) 0 0 / 34px 34px,
    var(--mint-100);
  transform: rotate(-2deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.section-kicker,
.saved-view-kicker {
  margin: 0 0 8px;
  color: var(--accent-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
  text-shadow: 3px 3px 0 rgb(255 255 255 / 55%);
}

.hero-lede {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--ink-900);
  font-size: 1.14rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.meta-pill {
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-800);
  font-size: 0.84rem;
  font-weight: 750;
  box-shadow: 3px 3px 0 rgb(45 39 48 / 14%);
}

.meta-pill strong {
  color: var(--ink-950);
}

.saved-view-card {
  position: relative;
  padding: 28px;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--line);
  transform: rotate(1.2deg);
}

.saved-view-card::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 26px;
  right: 26px;
  top: -17px;
  border: 2px solid var(--line);
  background: var(--sunny);
  transform: rotate(6deg);
}

.saved-view-card h2 {
  position: relative;
  max-width: 300px;
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.saved-view-number {
  position: relative;
  margin: 17px 0 6px;
  color: var(--accent-600);
  font-size: 4.2rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.95;
}

.saved-view-card p:not(.saved-view-kicker) {
  position: relative;
  margin: 10px 0 20px;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.workspace {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding-bottom: 72px;
}

.filter-card,
.results-card,
.method-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.filter-card {
  padding: clamp(20px, 3vw, 32px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 78%), rgb(255 253 248 / 96%)),
    linear-gradient(90deg, var(--accent-100), var(--mint-100));
}

.filter-heading-row,
.results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.filter-heading-row h2,
.results-toolbar h2,
.method-card h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 1.75rem;
  letter-spacing: 0;
}

.filter-card .section-kicker,
.results-card .section-kicker,
.method-card .section-kicker,
.dialog-header .section-kicker {
  color: var(--accent-700);
}

.quick-views {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 22px;
}

.quick-views > span {
  margin-right: 3px;
  color: var(--ink-800);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-view {
  padding: 7px 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-800);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.quick-view:hover {
  background: var(--amber-100);
  color: var(--ink-950);
}

.quick-view.is-active {
  border-color: var(--line);
  background: var(--accent-500);
  color: var(--ink-950);
  box-shadow: 3px 3px 0 var(--line);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(160px, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink-800);
  font-size: 0.8rem;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:hover,
.field select:hover {
  box-shadow: 3px 3px 0 rgb(45 39 48 / 12%);
}

.field input:focus,
.field select:focus {
  border-color: var(--line);
  box-shadow: 4px 4px 0 var(--mint-500);
  outline: none;
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon svg {
  position: absolute;
  left: 13px;
  top: 50%;
  color: var(--ink-500);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.stat-card {
  min-width: 0;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stat-card:nth-child(2n) {
  background: var(--mint-100);
}

.stat-card:nth-child(3n) {
  background: var(--amber-100);
}

.stat-card:nth-child(5n) {
  background: var(--accent-100);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--ink-700);
}

.stat-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 4px 0 1px;
  color: var(--ink-950);
  font-size: 2rem;
  letter-spacing: 0;
}

.stat-card small {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-card {
  overflow: hidden;
  background: var(--white);
}

.results-toolbar {
  padding: 27px 30px 22px;
}

.results-summary {
  margin: 6px 0 0;
  color: var(--ink-600);
  font-size: 0.88rem;
}

.results-actions {
  display: flex;
  gap: 10px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 30px 20px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 6px 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--ink-950);
  font-size: 0.77rem;
  font-weight: 700;
}

.active-filter button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

table {
  width: 100%;
  min-width: 1140px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--ink-200);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--amber-100);
  color: var(--ink-900);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

th:nth-child(1) { width: 27%; }
th:nth-child(2) { width: 11%; }
th:nth-child(3) { width: 15%; }
th:nth-child(4) { width: 9%; }
th:nth-child(5) { width: 20%; }
th:nth-child(6) { width: 7%; }
th:nth-child(7) { width: 9%; }
th:nth-child(8) { width: 48px; }

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #fff7fb;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -5px -4px;
  padding: 5px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sort-button span {
  color: var(--ink-300);
}

.sort-button.is-active {
  color: var(--ink-950);
}

.sort-button.is-active span {
  color: var(--accent-600);
}

.facility-name {
  display: block;
  color: var(--ink-950);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.35;
}

.facility-address,
.location-subline,
.cell-muted {
  display: block;
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ccn {
  color: var(--ink-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.79rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-certified {
  background: var(--mint-100);
  color: var(--mint-700);
}

.status-terminated {
  background: var(--red-100);
  color: var(--red-700);
}

.status-unknown {
  background: var(--ink-100);
  color: var(--ink-700);
}

.specialty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.specialty-tag,
.specialty-more {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  border: 1px solid rgb(45 39 48 / 16%);
  border-radius: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
}

.specialty-tag.is-orthopedic {
  background: var(--accent-100);
  color: var(--accent-700);
}

.specialty-more {
  background: var(--ink-100);
  color: var(--ink-700);
}

.specialty-none {
  color: var(--ink-500);
  font-size: 0.75rem;
}

.room-count {
  display: block;
  color: var(--ink-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.details-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-900);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.details-button:hover {
  background: var(--sunny);
  color: var(--ink-950);
}

.loading-cell {
  height: 180px;
  color: var(--ink-600);
  text-align: center;
  vertical-align: middle;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
}

.empty-state > div {
  color: var(--ink-300);
  font-size: 3rem;
}

.empty-state h3 {
  margin: 7px 0 5px;
  color: var(--ink-950);
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--ink-600);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 30px;
}

.pagination span {
  min-width: 140px;
  color: var(--ink-600);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.method-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.4fr) auto;
  align-items: center;
  gap: 34px;
  margin-top: 18px;
  padding: 28px 30px;
  background: linear-gradient(90deg, var(--paper), var(--blue-100));
}

.method-card > p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.9rem;
}

.method-links {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.method-links a {
  font-size: 0.82rem;
  font-weight: 750;
}

.site-footer {
  padding: 38px 0;
  border-top: 3px solid var(--line);
  background: var(--ink-950);
  color: var(--ink-100);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  max-width: 620px;
  margin: 5px 0 0;
  font-size: 0.8rem;
}

.details-dialog {
  width: min(850px, calc(100% - 28px));
  max-height: min(88vh, 940px);
  padding: 0;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink-900);
  box-shadow: 12px 12px 0 var(--line), 0 40px 100px rgb(0 0 0 / 24%);
}

.details-dialog::backdrop {
  background: rgb(45 39 48 / 58%);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  display: flex;
  max-height: min(88vh, 940px);
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 2px solid var(--line);
  background: var(--accent-100);
}

.dialog-header h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 1.85rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.dialog-header p:last-child {
  margin: 7px 0 0;
  color: var(--ink-600);
  font-size: 0.84rem;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.dialog-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 28px 0;
}

.dialog-content {
  overflow-y: auto;
  padding: 22px 28px 30px;
}

.detail-section + .detail-section {
  margin-top: 26px;
}

.detail-section h3 {
  margin: 0 0 10px;
  color: var(--ink-800);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-item {
  min-width: 0;
  padding: 12px 14px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--white);
}

.detail-item:nth-child(4n + 3),
.detail-item:nth-child(4n + 4) {
  background: var(--ink-050);
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-600);
  font-size: 0.69rem;
  font-weight: 760;
}

.detail-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-950);
  font-size: 0.82rem;
  font-weight: 620;
}

.detail-source-key {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 28px;
  border-top: 2px solid var(--line);
  background: var(--paper);
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  padding: 11px 15px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1180px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-search {
    grid-column: span 2;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-card {
    grid-template-columns: 1fr 1.5fr;
  }

  .method-links {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .saved-view-card {
    max-width: 540px;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-search {
    grid-column: 1 / -1;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:last-child {
    grid-column: span 2;
  }

  .method-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .method-links {
    grid-column: auto;
  }
}

@media (max-width: 660px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .nav-row {
    min-height: 64px;
  }

  .brand small,
  .header-actions .text-link,
  .header-actions .button span {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .site-header .button {
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .saved-view-card {
    padding: 22px;
  }

  .workspace {
    margin-top: -24px;
  }

  .filter-card {
    border-radius: var(--radius-lg);
  }

  .filter-heading-row,
  .results-toolbar,
  .footer-grid {
    flex-direction: column;
  }

  .filter-heading-row .button {
    align-self: flex-start;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .field-search {
    grid-column: auto;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card:last-child {
    grid-column: span 2;
  }

  .results-toolbar {
    padding: 22px 18px 18px;
  }

  .results-actions {
    width: 100%;
  }

  .results-actions .button {
    flex: 1;
  }

  .active-filters {
    padding: 0 18px 16px;
  }

  .pagination {
    gap: 8px;
    padding-inline: 14px;
  }

  .pagination span {
    min-width: 108px;
    font-size: 0.74rem;
  }

  .pagination .button {
    padding-inline: 10px;
  }

  .method-card {
    padding: 22px 20px;
  }

  .method-links {
    grid-auto-flow: row;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-item:nth-child(4n + 3),
  .detail-item:nth-child(4n + 4) {
    background: var(--white);
  }

  .detail-item:nth-child(even) {
    background: var(--ink-050);
  }

  .dialog-header,
  .dialog-content,
  .dialog-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dialog-specialties {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dialog-footer {
    flex-wrap: wrap;
  }

  .dialog-footer .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
