/* /gsi/ hospital lookup. Builds on main.css, questions.css and refresh.css tokens. */

.gsi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.qa-hero.gsi-hero { padding: 168px 0 72px; overflow: visible; position: relative; z-index: 5; }
.gsi-hero h1 em { font-style: italic; color: var(--sky, #8fd0f0); }
.gsi-hero .qa-lede { max-width: 680px; }
.gsi-hero__count { margin: 16px 0 0; font-size: 14px; color: rgba(226, 238, 248, 0.6); }

/* ── Search ─────────────────────────────────────────── */
.gsi-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 880px;
  margin-top: 36px;
  padding: 8px 8px 8px 20px;
  background: rgba(251, 250, 247, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(2, 8, 20, 0.8);
}
.gsi-search__icon { color: #5d6878; flex: 0 0 auto; }
.gsi-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--ink, #0d1e3a);
  padding: 12px 4px;
  outline: none;
}
.gsi-search input::placeholder { color: #8a93a1; }
.gsi-search input::-webkit-search-cancel-button { display: none; }
.gsi-search .btn-primary { width: auto; flex: 0 0 auto; justify-content: center; padding: 13px 24px; border: 0; cursor: pointer; font-family: inherit; }

.gsi-options {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card, #fbfaf7);
  border: 1px solid rgba(13, 30, 58, 0.1);
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(2, 8, 20, 0.6);
  max-height: 380px;
  overflow: auto;
}
.gsi-options li { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 10px; cursor: pointer; }
.gsi-options li:hover, .gsi-options li.is-active { background: var(--paper-2, #ece9e0); }
.gsi-opt__name { font-size: 16px; font-weight: 600; color: var(--ink, #0d1e3a); }
.gsi-opt__meta { font-size: 13px; color: #5d6878; }

/* ── Result card (dark glass, under the search) ────── */
.gsi-result { max-width: 880px; margin-top: 18px; }
.gsi-card {
  padding: 26px 28px;
  border-radius: 20px;
  background: rgba(8, 21, 43, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  animation: gsi-in .3s ease both;
}
@keyframes gsi-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gsi-card { animation: none; } }
.gsi-card__status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--sky, #8fd0f0); }
.gsi-dot { width: 9px; height: 9px; border-radius: 50%; background: #8fd0f0; }
.gsi-card--yes .gsi-dot { background: #5ee0a0; box-shadow: 0 0 0 4px rgba(94, 224, 160, 0.18); }
.gsi-card--yes .gsi-card__status { color: #8ff0bf; }
.gsi-card--no .gsi-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18); }
.gsi-card--no .gsi-card__status { color: #fcd34d; }
.gsi-card h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.gsi-card__where { margin: 6px 0 0 !important; font-size: 15px !important; color: rgba(226, 238, 248, 0.65) !important; }
.gsi-card p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: rgba(232, 242, 250, 0.82); }
.gsi-card p strong { color: #fff; }
.gsi-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.gsi-card__tel { color: rgba(232, 242, 250, 0.85); font-size: 15px; text-decoration: none; }
.gsi-card__tel:hover { color: #fff; text-decoration: underline; }
.gsi-card__more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 20px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px !important; }
.gsi-card__more span { color: rgba(226, 238, 248, 0.6); }
.gsi-card__more a { color: var(--sky, #8fd0f0); text-decoration: none; }
.gsi-card__more > span { flex-basis: 100%; }
.gsi-card__more a { overflow-wrap: anywhere; }
.gsi-card__more a:hover { text-decoration: underline; }
.gsi-card__more em { font-style: normal; color: rgba(226, 238, 248, 0.5); }
.gsi-card__choices { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gsi-card__choices a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.gsi-card__choices a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(143, 208, 240, 0.6); }
.gsi-card__choices span { font-size: 15px; font-weight: 600; color: #fff; }
.gsi-card__choices small { font-size: 13px; color: rgba(226, 238, 248, 0.6); }

/* Looking up… */
.gsi-card--loading { display: flex; align-items: center; gap: 16px; padding: 22px 26px; }
.gsi-spinner {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(143, 208, 240, 0.25);
  border-top-color: #8fd0f0;
  animation: gsi-spin .8s linear infinite;
}
@keyframes gsi-spin { to { transform: rotate(360deg); } }
.gsi-card__loading-title { margin: 0 !important; font-size: 17px !important; font-weight: 600; color: #fff !important; }
.gsi-card__loading-step { margin: 3px 0 0 !important; font-size: 14px !important; color: rgba(226, 238, 248, 0.65) !important; }
.gsi-search.is-busy .btn-primary { opacity: .65; pointer-events: none; }

/* ── Why check first ───────────────────────────────── */
.gsi-why { padding: 96px 0 40px; }
.gsi-why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.gsi-why h2, .gsi-all h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink, #0d1e3a);
  text-wrap: balance;
}
.gsi-why__list { list-style: none; margin: 0; padding: 0; counter-reset: why; display: grid; gap: 14px; }
.gsi-why__list li {
  counter-increment: why;
  position: relative;
  padding: 20px 22px 20px 64px;
  background: var(--card, #fbfaf7);
  border: 1px solid var(--hairline, rgba(13, 30, 58, 0.1));
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #3f4a5c;
}
.gsi-why__list li::before {
  content: counter(why);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d2044 var(--tex-hero) center / cover;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gsi-why__list strong { color: var(--ink, #0d1e3a); }
.gsi-why__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }

/* ── Full list (compact, readable, crawlable) ──────── */
.gsi-all { padding: 72px 0 104px; }
.gsi-all__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--hairline, rgba(13, 30, 58, 0.1)); }
.gsi-all h2 { font-size: clamp(26px, 2.8vw, 34px); }
.gsi-all__head > p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.55; color: #5d6878; }
.gsi-states { columns: 4 210px; column-gap: 36px; }
.gsi-state { break-inside: avoid; margin: 0 0 26px; }
.gsi-state h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f6f99;
}
.gsi-state ul { list-style: none; margin: 0; padding: 0; }
.gsi-state li { margin: 0; }
.gsi-state a {
  display: block;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink, #0d1e3a);
  text-decoration: none;
}
.gsi-state a:hover { color: #1f6f99; text-decoration: underline; }

/* ── Homepage lookup band ──────────────────────────── */
.gsi-home { position: relative; overflow: visible !important; z-index: 5; }
.gsi-home__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.gsi-home .gsi-search { margin-top: 0; }
.gsi-home__note { margin: 14px 0 0; font-size: 14px; color: rgba(226, 238, 248, 0.6); }
.gsi-home__note a { color: var(--sky, #8fd0f0); }

@media (max-width: 900px) {
  .gsi-why__grid, .gsi-home__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gsi-why__links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .qa-hero.gsi-hero { padding: 116px 0 52px; }
  .gsi-search { padding: 6px 6px 6px 14px; border-radius: 16px; }
  .gsi-search input { font-size: 16px; padding: 10px 2px; }
  .gsi-search .btn-primary { padding: 11px 16px; }
  .gsi-search__icon { display: none; }
  .gsi-why { padding: 64px 0 24px; }
  .gsi-card { padding: 22px 20px; }
  .gsi-card__choices { grid-template-columns: minmax(0, 1fr); }
  .gsi-all { padding: 48px 0 72px; }
  .gsi-states { columns: 2 150px; column-gap: 20px; }
}

/* A hospital picked from the dropdown, ready to check */
.gsi-search.is-picked { box-shadow: 0 0 0 8px rgba(143, 208, 240, 0.22), 0 30px 60px -30px rgba(2, 8, 20, 0.8); }
.gsi-search.is-picked input { font-weight: 600; }
.gsi-search.is-picked .gsi-search__icon { color: #1f6f99; }

/* Homepage band sits on a light-leak paper texture (between About and Testimonials) */
.section.gsi-home { background: var(--paper, #f5f3ed) url("/assets/textures/light-band.webp") center / cover no-repeat; }
.gsi-home .section-sub { color: #3f4a5c; }
.gsi-home .gsi-search { border-color: rgba(13, 30, 58, 0.08); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 24px 50px -30px rgba(13, 30, 58, 0.45); }
.gsi-home__note { color: #5d6878; }
.gsi-home__note a { color: #1f6f99; }

/* Lookup hero always fills the screen; grows if a result needs more room */
.qa-hero.gsi-hero { min-height: 100vh; min-height: 100svh; box-sizing: border-box; }

/* Link from a lookup result to a hospital's program page */
.gsi-card__guide { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(143, 208, 240, 0.45); background: rgba(143, 208, 240, 0.1); color: #e8f6fd; font-size: 15px; font-weight: 600; text-decoration: none; }
.gsi-card__guide:hover { background: rgba(143, 208, 240, 0.2); }

/* ── Program page (/gsi/<hospital>/) ─────────────────── */
.gsi-program-status { margin-bottom: 14px; color: #8ff0bf; }
.gsi-program-status .gsi-dot { background: #5ee0a0; box-shadow: 0 0 0 4px rgba(94, 224, 160, 0.18); }
.gsi-program-hero .qa-lede { max-width: 700px; }
.gsi-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 4px 0 0; background: var(--card, #fbfaf7); border: 1px solid var(--hairline, rgba(13, 30, 58, 0.1)); border-radius: 16px; overflow: hidden; font-size: 15px; }
.gsi-table th, .gsi-table td { padding: 13px 18px; text-align: left; vertical-align: top; line-height: 1.5; border-top: 1px solid var(--hairline, rgba(13, 30, 58, 0.1)); }
.gsi-table tr:first-child th, .gsi-table tr:first-child td { border-top: 0; }
.gsi-table th { width: 34%; font-weight: 600; color: #5d6878; }
.gsi-table td { color: var(--ink, #0d1e3a); font-weight: 500; }
.gsi-table__note { margin: 12px 0 0 !important; font-size: 14px !important; color: #5d6878 !important; }
.gsi-program-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.gsi-sources { list-style: disc; padding-left: 20px; margin: 8px 0 0; }
.gsi-sources a { color: #1f6f99; }
.qa-side__sticky .gsi-side__card { margin-top: 24px; }
@media (max-width: 640px) {
  .gsi-table th, .gsi-table td { display: block; width: auto; }
  .gsi-table td { border-top: 0; padding-top: 0; }
  .gsi-program-questions { grid-template-columns: minmax(0, 1fr); }
}
.gsi-side__card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 24px; border-radius: 20px; background: #0d2044 var(--tex-hero) center / cover; color: #fff; box-shadow: 0 30px 60px -34px rgba(8, 21, 43, 0.7); }
.gsi-side__card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.6); }
.gsi-side__name { margin: 14px 0 0; font-size: 17px; font-weight: 700; }
.gsi-side__label { margin: 4px 0 20px; font-size: 14px; line-height: 1.45; color: rgba(226, 238, 248, 0.75); }
.gsi-side__card .btn-primary { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }
.gsi-side__tel { margin-top: 10px; font-size: 14px; color: rgba(232, 242, 250, 0.85); text-decoration: none; }
.gsi-side__tel:hover { color: #fff; text-decoration: underline; }
.gsi-card--ask .gsi-dot { background: #8fd0f0; box-shadow: 0 0 0 4px rgba(143, 208, 240, 0.2); }
.gsi-hero__count a, .gsi-all__head a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gsi-all__head a { color: #1f6f99; }
.gsi-card__more--text { display: block; }
