:root {
  color-scheme: light;
  --sky: #dff3fb;
  --sky-soft: #f3fbfe;
  --sage: #8fb9ad;
  --sage-soft: #e7f3ef;
  --leaf: #32a86d;
  --teal: #0f6f78;
  --teal-dark: #094b52;
  --paper: #ffffff;
  --warm: #fbfdf9;
  --ink: #173033;
  --muted: #607477;
  --line: #d6e7e5;
  --danger: #b6423a;
  --ok: #16845d;
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--sky-soft), var(--warm));
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(18px, calc((100vw - 1120px) / 2));
  background: rgba(243, 251, 254, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 13px; line-height: 1.2; }
.top-nav { display: flex; gap: 10px; color: var(--teal-dark); font-weight: 800; }
.top-nav a { padding: 8px 10px; border-radius: 8px; }
.top-nav a:hover { background: var(--sage-soft); }

.environment-banner {
  position: sticky;
  top: 75px;
  z-index: 19;
  padding: 8px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
}
.environment-banner.test { background: #fff4cf; color: #6d4f00; }
.environment-banner.mock { background: #eaf2ff; color: #17436f; }
.environment-banner.blocked { background: #fde6e2; color: var(--danger); }
.environment-banner.line-identity { background: #e8f6ef; color: var(--teal-dark); }
.environment-banner.line-identity.pending { background: #f4f7f7; color: var(--muted); }
.environment-banner + .environment-banner { top: 113px; }

.hero, .detail-hero {
  display: grid;
  align-items: center;
  min-height: 340px;
  padding: 54px max(18px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 80% 18%, rgba(50, 168, 109, .18), transparent 28%),
    linear-gradient(135deg, #f8fdfb 0%, #dff3fb 54%, #d7eee8 100%);
}
.hero h1, .detail-hero h1 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero p, .lead { max-width: 740px; font-size: 22px; color: #315d62; }
.eyebrow, .tag {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
}
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}
.primary-btn { background: var(--teal); color: #fff; }
.primary-btn:hover { background: var(--teal-dark); }
.primary-btn:disabled { background: #8aa1a4; cursor: not-allowed; }
.secondary-btn { background: #fff; color: var(--teal-dark); border-color: var(--line); }
.full-btn { width: 100%; }

.friendship-gate-section {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 42px max(18px, calc((100vw - 760px) / 2)) calc(42px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at top, rgba(224, 194, 132, .18), transparent 44%), var(--ivory);
}
.friendship-gate-card {
  width: 100%;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(184, 145, 65, .36);
  border-top: 6px solid #b89141;
  border-radius: 12px;
  background: rgba(255, 253, 247, .98);
  box-shadow: 0 20px 46px rgba(15, 91, 85, .13);
}
.friendship-gate-card h1 { margin: 8px 0 18px; color: var(--teal-dark); }
.friendship-gate-card > p { font-size: 18px; }
.friendship-gate-actions { display: grid; gap: 12px; margin: 26px 0 22px; }
.friendship-gate-help {
  padding: 16px;
  border-radius: 8px;
  background: var(--sage-soft);
  color: var(--teal-dark);
}
.friendship-gate-help p { margin: 6px 0 0; }

.booking-contact-confirmation {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(184, 145, 65, .4);
  border-left: 6px solid #b89141;
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(15, 111, 120, .08);
}
.booking-contact-confirmation h2 { color: var(--teal-dark); }
.booking-chat-copy-text {
  margin: 16px 0;
  padding: 14px;
  border: 2px dashed #b89141;
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  user-select: text;
}
.copy-status { min-height: 1.5em; color: var(--teal-dark); font-weight: 800; }
.booking-contact-confirmation .muted a { color: var(--teal-dark); font-weight: 900; text-decoration: underline; }

.section { padding: 42px max(18px, calc((100vw - 1120px) / 2)); }
.compact-section { padding-top: 28px; }
.narrow { max-width: 880px; margin: 0 auto; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-title h2 { margin: 0; color: var(--teal-dark); font-size: 32px; }
.section-title p { max-width: 640px; margin: 0; color: var(--muted); }

.entry-grid, .hospital-grid, .addon-grid, .program-grid, .photo-grid, .issue-list, .article-card-grid, .result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.entry-card, .hospital-card, .plan-card, .compare-card, .addon-card, .program-card, .info-panel, .side-panel, .article-card, .issue-card, .form-panel, .success-panel, .assessment-card, .result-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 111, 120, .09);
}
.entry-card { min-height: 190px; padding: 22px; }
.entry-card span { color: var(--leaf); font-size: 28px; font-weight: 900; }
.entry-card h3, .hospital-card h3, .plan-card h3, .addon-card h3 { margin: 8px 0; color: var(--teal-dark); }
.entry-card p, .hospital-card p, .plan-card p, .addon-card p { margin: 0 0 10px; }

.toolbar {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.toolbar label, .form-field { display: grid; gap: 6px; font-weight: 900; color: var(--teal-dark); }
.form-field, .check-row, .selection-group { scroll-margin-top: 150px; }
.hospital-card { overflow: hidden; }
.image-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(110deg, var(--sky-soft) 8%, #fff 18%, var(--sky-soft) 33%);
  background-size: 220% 100%;
  animation: image-shimmer 1.7s linear infinite;
}
.image-shell img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
}
.image-shell.image-ready { animation: none; background: var(--sky); }
.image-shell.image-ready img { opacity: 1; }
.image-loading-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}
.image-loading-copy small { display: none; max-width: 260px; }
.image-shell.image-slow .image-loading-copy small { display: block; }
.image-shell.image-ready .image-loading-copy { display: none; }
@keyframes image-shimmer { to { background-position-x: -220%; } }
.hospital-card img, .detail-hero img, .photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sky);
}
.hospital-card img.image-fallback, .detail-hero img.image-fallback, .photo-grid img.image-fallback {
  object-fit: cover;
  background: #f4efe5;
}
.hospital-card > div { padding: 18px; }
.center-name { color: var(--teal); font-weight: 900; }
.muted { color: var(--muted); font-size: 16px; }

.detail-hero {
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
}
.detail-hero .image-shell { border-radius: 8px; border: 1px solid var(--line); }
.back-link { color: var(--teal); font-weight: 900; }
.detail-tabs {
  position: sticky;
  top: 75px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  background: rgba(243, 251, 254, .96);
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}
.detail-tabs button.active { background: var(--teal); color: #fff; }
.hospital-detail-section { padding-bottom: 32px; }
.hospital-detail-section.has-fixed-booking-cta { padding-bottom: 118px; }
.notice-section { padding-top: 16px; padding-bottom: 0; }
.notice-box {
  padding: 14px 16px;
  border: 1px solid #a8d7ce;
  border-radius: 8px;
  background: var(--sage-soft);
  color: var(--teal-dark);
  font-weight: 900;
}
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px max(18px, calc((100vw - 1120px) / 2)) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 111, 120, .12);
}
.fixed-cta-status {
  max-width: 1120px;
  margin: 0 auto 8px;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}
.fixed-cta .primary-btn { width: 100%; }
.fixed-booking-button[aria-disabled="true"] {
  border-color: #b8c8c8;
  background: #dfe7e7;
  box-shadow: none;
  color: #526969;
  cursor: pointer;
}
.plan-select-button.is-selected {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(15, 111, 120, .16);
}
.booking-guidance-highlight {
  border-radius: 10px;
  animation: booking-guidance-pulse 1.8s ease-out;
}
@keyframes booking-guidance-pulse {
  0%, 40% { box-shadow: 0 0 0 5px rgba(230, 166, 34, .38); }
  100% { box-shadow: 0 0 0 0 rgba(230, 166, 34, 0); }
}
.selected-plan-content { display: grid; gap: 16px; margin-top: 22px; }
.plan-item-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.plan-item-row p { margin: 4px 0; }
.addon-list { display: grid; gap: 16px; }
.addon-option {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.addon-option input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 4px; accent-color: var(--teal); }
.addon-option span { display: grid; gap: 4px; }
.addon-option small { color: var(--muted); font-size: 15px; }
.booking-panel { max-width: 760px; margin: 0 auto; }
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}
.side-panel { position: sticky; top: 88px; padding: 20px; }
.plan-list, .comparison-list, .article-list, .form-stack { display: grid; gap: 16px; }
.plan-card, .compare-card, .addon-card, .program-card, .info-panel, .issue-card, .form-panel, .success-panel { padding: 20px; }
.plan-card.selected { outline: 3px solid rgba(50, 168, 109, .28); }
.plan-intro {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.plan-intro p, .plan-intro-raw { margin: 0 0 8px; white-space: pre-line; }
.plan-detail-header {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.plan-detail-header h2 { margin: 4px 0 12px; color: var(--teal-dark); }
.link-button {
  justify-self: start;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 900;
  cursor: pointer;
}
.price-rule, .upgrade-price, .confirm-row, .summary-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  margin: 12px 0;
  background: var(--sky-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.upgrade-price { background: var(--sage-soft); color: var(--teal-dark); }
.summary-box p { margin: 0; }

.selection-block { margin-top: 12px; display: grid; gap: 12px; }
.selection-group {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.selection-group legend { color: var(--teal-dark); font-weight: 900; }
.selection-group legend span { margin-left: 8px; color: var(--muted); font-size: 15px; }
.choice-row, .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 6px 0;
  cursor: pointer;
}
.choice-row input, .check-row input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--teal); }
.selection-message { margin: 6px 0 0; color: var(--teal); font-weight: 800; }

.compare-card h3 { margin-top: 0; color: var(--teal-dark); }
.compare-item {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(240px, 1.1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.plan-badges { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.included, .excluded {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}
.included { background: #e3f7ee; color: var(--ok); }
.excluded { background: #fde8e5; color: var(--danger); }

.addon-price { margin: 14px 0; color: var(--teal-dark); font-size: 26px; font-weight: 900; }
.addon-price span { font-size: 16px; color: var(--muted); }
.note { border-top: 1px solid var(--line); padding-top: 10px; color: #4e6669; }
.photo-grid .image-shell { border-radius: 8px; border: 1px solid var(--line); }
.environment-photo-grid .image-shell {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.environment-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.traffic-info-card {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky-soft);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.traffic-info-card p { margin: 0 0 10px; white-space: pre-wrap; }
.traffic-info-card p:last-child { margin-bottom: 0; }

.form-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky-soft);
}
.form-section h3 { margin: 0 0 10px; color: var(--teal-dark); }
.error { color: var(--danger); font-size: 15px; font-weight: 800; margin: 4px 0 0; }
.field-hint { color: var(--muted); font-size: 14px; font-weight: 700; }
.form-error-summary { margin-bottom: 16px; border-left: 4px solid var(--danger); }
.loading-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
}
.loading-panel p { margin: 0; }
.loading-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 4px solid var(--sky);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: loading-spin .8s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
.date-field-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.date-field-button[aria-invalid="true"] { border-color: var(--danger); }
.calendar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 49, 53, .56);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.date-calendar {
  width: min(100%, 420px);
  max-height: calc(100dvh - 32px);
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
  overflow-y: auto;
}
.calendar-header, .calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.calendar-header h2 { margin: 0; color: var(--teal-dark); font-size: 21px; }
.calendar-nav {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  font-size: 28px;
  cursor: pointer;
}
.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.calendar-weekdays { margin: 16px 0 7px; color: var(--muted); text-align: center; font-size: 14px; font-weight: 900; }
.calendar-day, .calendar-empty { aspect-ratio: 1; min-width: 0; }
.calendar-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}
.calendar-day:hover:not(:disabled), .calendar-day:focus-visible { border-color: var(--teal); outline: 3px solid var(--sky); }
.calendar-day.selected { border-color: var(--teal); background: var(--teal); color: #fff; }
.calendar-day:disabled, .calendar-day.disabled {
  border-color: #e5e9e9;
  background: #f1f3f3;
  color: #9aa5a6;
  cursor: not-allowed;
}
.calendar-day.used { text-decoration: line-through; }
.calendar-actions { justify-content: flex-end; margin-top: 18px; }
.calendar-actions .primary-btn, .calendar-actions .secondary-btn { width: auto; min-width: 120px; }
.disclaimer {
  padding: 12px;
  border-left: 4px solid var(--leaf);
  background: var(--sage-soft);
  color: #365b5f;
}
.success-panel h2 { margin-top: 0; color: var(--teal-dark); }
.check-list { padding-left: 22px; }
.check-list li { margin: 8px 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--teal-dark);
  font-weight: 900;
}
.store-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 111, 120, .09);
}
.store-section h2 { margin: 4px 0 8px; color: var(--teal-dark); }
.store-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.store-categories span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 900;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.filter-tabs button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}
.filter-tabs button.active { background: var(--teal); color: #fff; }
.article-card { padding: 18px; }
.article-card summary { cursor: pointer; }
.article-card summary::marker { color: var(--leaf); }
.article-card h2 { margin: 4px 0; color: var(--teal-dark); }
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--sky);
}
.article-card summary p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.assessment-card {
  width: 100%;
  min-width: 0;
  padding: 22px;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
}
.assessment-section { width: 100%; min-width: 0; }
.assessment-shell { width: 100%; max-width: 880px; min-width: 0; margin-inline: auto; }
.assessment-shell .section-title { width: 100%; min-width: 0; }
.assessment-shell .section-title > * { min-width: 0; }
.assessment-card h2, .answer-card span { min-width: 0; writing-mode: horizontal-tb; }
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--teal-dark);
  font-weight: 900;
}
.progress-bar {
  height: 10px;
  margin: 12px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sky);
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--leaf);
}
.answer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  gap: 12px;
  margin: 18px 0;
}
.answer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  min-width: 0;
}
.answer-card input { flex: 0 0 auto; }
.answer-card.selected {
  border-color: var(--teal);
  background: var(--sage-soft);
}
.answer-card input { width: 22px; height: 22px; accent-color: var(--teal); }
.assessment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
  min-width: 0;
}
.assessment-actions button { min-width: 0; white-space: normal; }
.result-card {
  padding: 20px;
  border-left: 6px solid var(--leaf);
}
.result-card.medium { border-left-color: #f0a93b; }
.result-card.high { border-left-color: var(--danger); }
.assessment-disclaimer { margin-top: 18px; }

.health-topic-card { display: flex; flex-direction: column; }
.health-topic-card .card-actions { margin-top: auto; }
.health-plan-detail .warning-panel {
  margin-top: 16px;
  padding: 18px;
  border-left: 5px solid #d9822b;
  border-radius: 8px;
  background: #fff7eb;
}
.health-plan-detail .warning-panel h2 { margin-top: 0; color: #8a4915; }
.product-section-title { margin-top: 34px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 111, 120, .09);
}
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--sky-soft); }
.product-card h3 { margin: 6px 0; color: var(--teal-dark); }
.product-card .primary-btn { margin-top: auto; }
.authorized-reseller { margin-bottom: 20px; padding: 18px; border-radius: 8px; background: var(--sage-soft); }
.authorized-reseller p { margin-bottom: 0; }
.member-benefits-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 54px);
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  border: 1px solid #eadfc8;
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 16px 38px rgba(56, 76, 67, .1);
}
.member-benefits-card h2 { margin: 4px 0 10px; color: var(--teal-dark); font-size: clamp(28px, 4vw, 40px); line-height: 1.25; }
.member-benefits-lead { margin: 0; color: #315d62; font-size: 20px; }
.member-benefits-actions { margin-top: 24px; }
.member-benefits-content ul { margin: 0; padding-left: 24px; columns: 2; column-gap: 32px; }
.member-benefits-content li { break-inside: avoid; margin: 0 0 12px; }
.member-benefits-content li::marker { color: var(--teal); }
.member-benefits-content li strong { color: #9a6b18; }
.member-benefits-reminder { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #eadfc8; color: #536568; font-size: 15px; }
.member-offer-notice,
.member-offer-modal-note {
  padding: 16px 18px;
  border: 1px solid #d9e8d8;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f4f8e9;
}
.member-offer-notice { width: 100%; margin-bottom: 20px; }
.member-offer-notice p,
.member-offer-modal-note p { margin: 5px 0 0; }
.member-offer-modal-note { margin: 16px 0; }
.member-plan-note { margin: -8px 0 20px; color: var(--teal-dark); font-weight: 700; }
.member-offer-badge {
  align-self: flex-start;
  max-width: 100%;
  margin: 2px 0 12px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eef5dc;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}
.commerce-disclaimer { margin-top: 24px; }
.bundle-section { margin-top: 24px; padding: 22px; border: 1px solid #d9e8e3; border-radius: 20px; background: #f7fbfa; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.bundle-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 42, 46, .66);
}
.product-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}
.product-modal h2 { padding-right: 38px; color: var(--teal-dark); }
.product-modal h3 { margin: 20px 0 5px; color: var(--teal-dark); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--teal-dark);
  font-size: 28px;
  cursor: pointer;
}
.safety-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-weight: 900; }
.safety-confirm input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--teal); }

.empty-state {
  padding: 24px;
  border: 1px dashed var(--sage);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(18px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
}
.site-footer a { color: var(--teal); font-weight: 900; }

@media (max-width: 860px) {
  .member-benefits-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .member-benefits-content ul { columns: 1; }
  .member-benefits-lead { font-size: 18px; }
  .bundle-section { align-items: stretch; flex-direction: column; }
  .bundle-actions { justify-content: stretch; }
  .bundle-actions .bundle-primary-cta { width: 100%; }
  body { font-size: 17px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .environment-banner { top: 112px; font-size: 14px; }
  .environment-banner + .environment-banner { top: 150px; }
  .top-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .detail-hero { min-height: auto; padding-top: 34px; padding-bottom: 34px; }
  .hero h1, .detail-hero h1 { font-size: 42px; }
  .hero p, .lead { font-size: 19px; }
  .section { padding-top: 30px; padding-bottom: 30px; }
  .section-title, .site-footer { align-items: stretch; flex-direction: column; }
  .toolbar, .entry-grid, .hospital-grid, .addon-grid, .program-grid, .photo-grid, .issue-list, .detail-hero, .two-column, .article-card-grid, .result-grid, .store-section, .product-grid {
    grid-template-columns: 1fr;
  }
  .detail-tabs {
    top: 112px;
    grid-template-columns: repeat(2, 1fr);
  }
  .side-panel { position: static; }
  .compare-item { grid-template-columns: 1fr; }
  .primary-btn, .secondary-btn { width: 100%; min-height: 54px; }
  .card-actions, .hero-actions { width: 100%; }
  .assessment-actions { grid-template-columns: 1fr; }
  .date-calendar { width: 100%; }
  .calendar-actions { align-items: stretch; flex-direction: column-reverse; }
  .calendar-actions .primary-btn, .calendar-actions .secondary-btn { width: 100%; }
  .product-modal { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .hospital-detail-section.has-fixed-booking-cta {
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }
  .fixed-cta {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 861px) {
  .assessment-shell .section-title { align-items: flex-end; }
  .assessment-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .booking-guidance-highlight { animation: none; outline: 4px solid rgba(230, 166, 34, .5); }
}
