/* Patient UI stage 2: clarify hierarchy and improve touch/mobile affordances without changing the scientific read model. */

.patient-hero .hero-grid {
  min-height: 392px;
}

.patient-hero .hero-art {
  border: 1px solid rgba(205, 222, 238, .9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 34%, rgba(50,126,235,.14), transparent 95px),
    radial-gradient(circle at 72% 62%, rgba(22,165,173,.13), transparent 110px),
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(241,248,255,.72));
  box-shadow: 0 18px 48px rgba(32,73,118,.06);
}

.patient-hero .hero-art::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(62,132,223,.08);
  border-radius: 18px;
  pointer-events: none;
}

.journey-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.journey-card:hover,
.journey-card:focus-within {
  transform: translateY(-2px);
  border-color: #c8d9ea;
  box-shadow: 0 13px 30px rgba(25,61,101,.07);
}

.patient-test-card .patient-card-facts > div {
  background: rgba(255,255,255,.72);
}
.patient-test-card footer .text-link {
  white-space: nowrap;
}

.patient-record-title {
  align-items: center;
}
.status-card {
  border-width: 1.5px;
}

.answer-grid article {
  background: linear-gradient(180deg,#fbfdff,#f7faff);
  border-color: #dce7f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.answer-grid article:nth-child(1),
.answer-grid article:nth-child(2) {
  background: linear-gradient(180deg,#fff,#f8fbff);
}
.answer-grid small {
  color: #5f7892;
}

.meaning-grid article {
  position: relative;
  overflow: hidden;
}
.meaning-grid article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: currentColor;
  opacity: .55;
}

.evidence-highlight-grid article {
  box-shadow: 0 7px 20px rgba(25,61,101,.035);
}

.technical-disclosure > summary {
  border-radius: 10px;
  padding: 14px 15px;
  background: #f8fafc;
  border: 1px solid #e1e8ef;
}
.technical-disclosure[open] > summary {
  background: #f2f7fc;
  border-color: #cfddea;
}

.glossary-term {
  border-radius: 4px;
  padding: 0 2px;
  touch-action: manipulation;
}
.glossary-term:hover,
.glossary-term:focus-visible {
  background: #edf5ff;
}

@media (max-width: 900px) {
  .patient-hero .hero-grid { min-height: auto; }
  .patient-hero .hero-art {
    min-height: 210px;
    margin-top: 8px;
  }
  .patient-record-title { grid-template-columns: 1fr; }
  .status-card { max-width: 560px; }
}

@media (max-width: 620px) {
  .patient-hero .hero-art {
    min-height: 175px;
    border-radius: 16px;
  }
  .patient-stats {
    grid-template-columns: 1fr 1fr;
  }
  .patient-stats > div:nth-child(2) { border-right: 0; }
  .patient-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--people-line); }
  .answer-grid,
  .meaning-grid,
  .access-questions {
    grid-template-columns: 1fr;
  }
  .answer-grid article,
  .meaning-grid article {
    min-height: 0;
  }
  .patient-panel {
    padding: 18px;
  }
  .glossary-term {
    text-decoration-style: solid;
  }
}
