:root {
  color-scheme: light;
  color: #182e44;
  background: #f8f6ef;
  font: 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --portal-blue: #2361ae;
  --portal-ink: #182e44;
  --portal-muted: #445b6c;
  --portal-paper: #fffdfa;
  --portal-line: #d3dce3;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #9a4b15; outline-offset: 4px; }

.portal-width { width: min(calc(100% - 2.25rem), 64rem); margin-inline: auto; }
.portal-header { background: var(--portal-blue); color: #fff; border-bottom: 1px solid #123c75; }
.portal-header :focus-visible { outline-color: #ffe0ab; }
.portal-header-inner {
  min-height: 5.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.portal-brand { display: inline-block; border-radius: 0.45rem; }
.portal-brand img {
  display: block;
  width: clamp(8rem, 27vw, 10.5rem);
  height: clamp(3rem, 10vw, 3.875rem);
  object-fit: cover;
  border-radius: inherit;
}
.portal-home {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 680;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.portal-main { padding-block: clamp(2rem, 7vw, 4.5rem); }
.portal-intro { padding-bottom: clamp(1.5rem, 5vw, 2.75rem); }
.portal-section-label { color: var(--portal-blue); font-weight: 700; }
.portal-intro h1 {
  margin-block: 0.2rem 0.6rem;
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
}
.portal-intro p:not(.portal-section-label) { max-width: 45rem; color: var(--portal-muted); }
.portal-main h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.23; }
.portal-results h2, .portal-stations h2 { margin-bottom: 0.9rem; }

.report-card, .station-list a {
  background: var(--portal-paper);
  border: 1px solid var(--portal-line);
  border-radius: 0.7rem;
}
.report-card + .report-card { margin-top: 0.65rem; }
.report-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 3.75rem;
  padding: 0.75rem clamp(0.8rem, 3vw, 1.4rem);
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.report-card summary::-webkit-details-marker { display: none; }
.report-card summary::after {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border: solid var(--portal-blue);
  border-width: 0 0.13rem 0.13rem 0;
  transform: rotate(45deg);
}
.report-card[open] summary::after { transform: rotate(225deg); }
.report-card summary:hover { background: #eef5fb; }
.report-title { font-weight: 750; }
.report-card time { color: var(--portal-muted); font-variant-numeric: tabular-nums; }
.report-content { padding: 0.9rem clamp(0.8rem, 3vw, 1.4rem) 1.25rem; border-top: 1px solid var(--portal-line); }
.demo-label { color: var(--portal-muted); margin-bottom: 0.65rem; }
.report-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem 1rem; }
.report-values dt { color: var(--portal-muted); }
.report-values dd { margin-top: 0.15rem; font-size: 1.18rem; font-weight: 750; }
.report-values dd span { color: var(--portal-muted); font-size: 1rem; font-weight: 500; }
.portal-note {
  margin-top: clamp(1.5rem, 5vw, 2.6rem);
  padding: 1rem clamp(0.9rem, 3vw, 1.4rem);
  background: #ebf2f8;
  border-radius: 0.6rem;
}
.portal-note p { margin-top: 0.3rem; color: var(--portal-muted); }
.patient-booking { margin: 0 0 clamp(1.5rem, 5vw, 2.6rem); }

.portal-primary {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-block: 1.2rem 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--portal-blue);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.portal-primary:hover { background: #1a4c88; }
.portal-intro .workflow-access { font-size: 0.95rem; }
.station-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; list-style: none; margin: 0; padding: 0; }
.station-list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.05rem clamp(0.9rem, 3vw, 1.4rem);
  text-decoration: none;
}
.station-list a:hover { border-color: var(--portal-blue); background: #eef5fb; }
.station-list strong { color: var(--portal-blue); font-size: 1.15rem; }
.station-list span { margin-top: 0.25rem; color: var(--portal-muted); }

@media (max-width: 38rem) {
  .portal-width { width: calc(100% - 1.75rem); }
  .portal-header-inner { min-height: 4.25rem; }
  .station-list { grid-template-columns: 1fr; }
}

@media (max-width: 25rem) {
  .report-card summary { grid-template-columns: minmax(0, 1fr) auto; gap: 0.05rem 0.6rem; }
  .report-card time { grid-column: 1; grid-row: 2; }
  .report-card summary::after { grid-column: 2; grid-row: 1 / 3; }
  .report-values { grid-template-columns: 1fr; }
}
