@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Portal Symbols';
  src: url('symbols.woff2') format('woff2');
  font-display: block;
}
:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --white: #fffefa;
  --ink: #173d36;
  --quiet: #55675e;
  --teal: #07584b;
  --deep: #123f37;
  --line: #d9ded3;
  --tint: #e8efe4;
  --pale: #f2f4ec;
  --danger: #913e34;
  --radius: 19px;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--paper);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.site-footer {
  margin-top: auto;
  padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  color: var(--quiet);
  text-align: center;
}
.site-footer small {
  font-size: 0.8125rem;
}
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
h1 {
  font: 400 clamp(3rem, 5.6vw, 4.85rem)/0.99 var(--display);
  letter-spacing: -0.041em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.23;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
p {
  color: var(--quiet);
}
p + p {
  margin-top: 0.7rem;
}
a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid #16826b;
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.icon {
  font-family: 'Portal Symbols';
  font-size: 1.22rem;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  overflow: hidden;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -6rem;
  padding: 0.65rem 1rem;
  background: white;
  border-radius: 8px;
  z-index: 8;
}
.skip:focus {
  top: 0.75rem;
}
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.masthead-inner,
.container {
  width: min(1192px, calc(100% - clamp(36px, 9vw, 144px)));
  margin-inline: auto;
}
.masthead-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.24em;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand > span:last-child {
  font-weight: 440;
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--deep);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  padding: 8px;
  gap: 1.5px;
  margin-right: 6px;
}
.brand-mark i {
  display: block;
  background: #e3efcc;
  border-radius: 1px 75% 1px 75%;
}
.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) {
  border-radius: 75% 1px 75% 1px;
}
.brand-mark i:nth-child(2) {
  background: #a1c7a5;
}
.brand-mark i:nth-child(3) {
  background: #c0dac0;
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav a,
.header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9px;
  padding: 0.55rem 0.96rem;
  color: var(--quiet);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}
nav a:hover,
.header-link:hover {
  background: var(--pale);
  color: var(--teal);
}
nav [aria-current='page'] {
  background: var(--tint);
  color: var(--teal);
  font-weight: 650;
}
nav .icon,
.header-link .icon {
  font-size: 1.1rem;
}
nav a > span:last-child {
  white-space: nowrap;
}
.container {
  padding-block: 32px 58px;
}
.botanical {
  background: #14493d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f9faee;
}
.botanical::before {
  content: '';
  position: absolute;
  z-index: -2;
  background-image: url('ferns.webp');
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.55) brightness(1.3);
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.botanical::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.art-credit {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 550;
  color: #f1f4e7;
  text-decoration: none;
  background: #174a3edb;
  border-radius: 5px;
  padding: 3px 6px;
}
.art-credit:hover {
  text-decoration: underline;
}
.art-credit .icon {
  font-size: 0.72rem;
}
.hero {
  border-radius: 23px;
  min-height: 218px;
  padding: 42px 46px;
  display: flex;
  align-items: center;
}
.hero::before {
  inset: 0 0 0 47%;
  background-position: 52% 39%;
  opacity: 0.82;
}
.hero::after {
  background: linear-gradient(90deg, #123f36 0%, #154c40 40%, #154c40ed 50%, #154c4080 72%, #154c4024 100%);
}
.hero-copy {
  max-width: 57%;
  color: #fbf8ea;
}
.hero h1 {
  margin: 0 0 14px;
}
.lead {
  font-size: 1.04rem;
  line-height: 1.55;
  max-width: 54ch;
}
.hero .lead,
.art-copy p {
  color: #e2ebdb;
}
.portal-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 24px;
}
.panel,
.sign-panel {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(21px, 2.25vw, 34px);
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  margin-bottom: 12px;
}
.panel-heading h2 {
  flex: 1;
}
.panel-heading + .muted,
.panel > p {
  font-size: 0.94rem;
}
.icon-tile,
.row-icon,
.empty-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--teal);
  background: var(--tint);
}
.icon-tile {
  width: 39px;
  height: 39px;
  border-radius: 12px;
}
.icon-tile .icon {
  font-size: 1.36rem;
}
.row-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe3d8;
  background: #f3f6ee;
  border-radius: 10px;
}
.count {
  border: 1px solid #d9e1d4;
  border-radius: 99px;
  background: #f2f5ec;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.3;
  min-width: 1.7rem;
  padding: 0.18rem 0.42rem;
  text-align: center;
}
label {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}
label small {
  font-weight: 400;
  color: var(--quiet);
}
input,
button {
  font: inherit;
}
input:not([type='checkbox']):not([type='hidden']) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  margin-top: 0.36rem;
  padding: 0.65rem 0.8rem;
  font: 400 1rem/1.35 var(--body);
  color: var(--ink);
  border: 1px solid #829587;
  border-radius: 9px;
  background: #fffffc;
}
input::placeholder {
  color: #63756b;
  opacity: 1;
}
input:focus {
  border-color: var(--teal);
}
.field-icon {
  display: block;
  position: relative;
}
.field-icon > .icon {
  position: absolute;
  left: 0.73rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64796c;
  font-size: 1.12rem;
}
.field-icon input:not([type='checkbox']):not([type='hidden']) {
  padding-left: 2.35rem;
}
input[type='checkbox'] {
  width: 1.13rem;
  height: 1.13rem;
  accent-color: var(--teal);
  vertical-align: middle;
  margin: 0 0.36rem 0 0;
}
button,
.button {
  min-height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.48rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.62rem 1.08rem;
  background: var(--teal);
  color: white;
  font: 650 0.9rem/1.35 var(--body);
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #073f36;
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.58;
  cursor: wait;
}
button.secondary,
.button.secondary {
  border-color: #b9c7ba;
  background: var(--white);
  color: var(--ink);
}
button.secondary:hover,
.button.secondary:hover {
  background: var(--pale);
  border-color: #829c8c;
}
button .icon,
.button .icon {
  font-size: 1.1rem;
}
.full {
  width: 100%;
}
.danger-link,
button.danger {
  color: var(--danger);
}
button.danger-solid {
  background: #8e3c32;
}
button.danger-solid:hover {
  background: #723027;
}
.text-button {
  background: transparent;
  color: var(--teal);
  padding: 0.25rem 0.4rem;
}
.text-button:hover {
  background: var(--pale);
}
.search-form {
  margin-top: 23px;
}
.fields {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.search-form .fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}
.search-form > button,
.token-form > button {
  margin-top: 17px;
}
.link-note,
.aux-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.link-note {
  color: var(--quiet);
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.link-note .icon {
  color: #5d7867;
  font-size: 1.02rem;
}
.aux-link {
  color: var(--teal);
  text-decoration: none;
  width: fit-content;
  min-height: 38px;
  font-weight: 600;
  margin-top: 14px;
}
.aux-link:hover {
  text-decoration: underline;
}
.aux-link .icon {
  font-size: 1rem;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px 16px 21px;
  background: #f2f4ec;
  border-radius: 12px;
  margin-top: 16px;
}
.empty-icon {
  width: 44px;
  height: 44px;
  background: #e3eada;
  border: 1px solid #d5dfce;
  border-radius: 50%;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 1rem;
}
.empty p {
  max-width: 32ch;
  font-size: 0.91rem;
  margin-top: 5px;
}
.results,
.chart-list,
.key-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.result-heading {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.result-heading h3 {
  font-size: 1.06rem;
}
.section-jump {
  display: none;
}
.result-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.hospital-row-main {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.hospital-row-main .hospital-map-choice { flex: 1; min-width: 0; }
.hospital-map-choice button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: .2rem 0;
  gap: .65rem;
  border: 0;
  background: transparent;
  color: var(--deep);
  text-align: left;
  font: inherit;
}
.hospital-map-choice button:hover { background: var(--pale); }
.hospital-map-choice button > .icon:last-child { flex: none; font-size: 1.1rem; color: var(--teal); }
.hospital-map-choice button[aria-expanded="true"] > .icon:last-child { transform: rotate(90deg); }
.area-map { margin-top: 1rem; }
.area-map .hospital-map-choice button { width: auto; color: var(--teal); font-weight: 600; }
.inline-hospital-map[hidden] { display: none; }
.inline-hospital-map { scroll-margin-top: 1rem; }
.map-external { display: inline-block; font-size: .85rem; margin-top: .3rem; }
.result-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.result-copy {
  flex: 1;
  min-width: 0;
}
.result-copy > strong {
  display: block;
  line-height: 1.35;
}
.result-copy small,
.key-row small {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.81rem;
  color: var(--quiet);
  font-weight: 400;
}
.result-row form {
  margin: 0;
}
.compact {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  font-size: 0.83rem;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.35;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--teal);
}
.state::before {
  content: '';
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  background: #387b5d;
  flex: none;
}
.state.caution {
  color: #78521e;
}
.state.caution::before {
  background: #967029;
}
.state.quiet {
  color: var(--quiet);
}
.state.quiet::before {
  background: #738277;
}
.results .state {
  margin-top: 6px;
}
.no-results {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--pale);
}
.chart-list {
  margin-top: 14px;
}
.chart-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.chart-item:last-child {
  padding-bottom: 0;
}
.chart-item h3,
.result-copy strong,
summary,
.key-row,
legend {
  overflow-wrap: anywhere;
}
.chart-item .state {
  margin-top: 0.23rem;
}
.chart-item .chart-feeds {
  margin-top: 6px;
  font-size: 0.86rem;
}
.institution-name {
  font-size: 0.87rem;
}
.manage-chart {
  margin-top: 8px;
}
.manage-chart summary,
.recovery-disclosure summary,
.client-details > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  min-height: 42px;
}
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
summary .icon:last-child {
  margin-left: auto;
}
details[open] > summary > .icon:last-child {
  transform: rotate(90deg);
}
.manage-chart summary {
  width: fit-content;
  font-size: 0.88rem;
}
.manage-chart summary .icon:last-child {
  margin-left: 0.15rem;
}
.manage-chart form {
  margin: 0.55rem 0;
}
.manage-chart label {
  margin: 0.55rem 0;
}
.manage-chart .danger-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.86rem;
}
.notice {
  padding: 0.85rem 1rem;
  border: 1px solid #bbcdbd;
  background: #eaf3e7;
  color: #24563e;
  border-radius: 11px;
  margin: 16px 0;
  font-size: 0.95rem;
}
.notice.problem,
[role='alert'] {
  background: #fff2e6;
  color: #734527;
  border: 1px solid #e2c9a9;
}
.notice:first-child {
  margin-top: 0;
}
.sharing-limits {
  border-top: 1px solid var(--line);
  margin-top: .8rem;
  padding-top: 1rem;
}
.sharing-limits p { margin: .4rem 0 .65rem; }
.hospital-map {
  display: block;
  width: 100%;
  height: clamp(17rem, 45vh, 27rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  margin: .75rem 0 0;
}
.sharing-limits ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: .25rem 1.25rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--quiet);
  font-size: .9rem;
}
.sign-layout {
  max-width: 1024px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.sign-art::before {
  inset: 0;
  background-position: 50% 24%;
  opacity: 0.92;
}
.sign-art::after {
  background: linear-gradient(10deg, #103d32 1%, #164a3be8 29%, #17493d48 72%);
}
.sign-art {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 46px 38px 62px;
}
.art-copy {
  position: relative;
}
.art-copy h2 {
  font: 400 clamp(3.65rem, 5.8vw, 5.6rem)/0.92 var(--display);
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}
.art-copy p {
  max-width: 31ch;
  font-size: 1rem;
  line-height: 1.55;
}
.sign-art .art-credit {
  left: 33px;
  right: auto;
  bottom: 15px;
}
.sign-panel {
  border: 0;
  border-radius: 0;
  padding: clamp(30px, 3.6vw, 55px);
}
.sign-panel h1 {
  font-size: clamp(3.2rem, 5vw, 4.3rem);
}
.sign-panel > .lead {
  margin-top: 13px;
  font-size: 0.97rem;
}
.signin-action {
  margin: 24px 0;
}
.signin-action .icon:last-child {
  margin-left: auto;
}
.signin-action .icon:first-child {
  margin-right: auto;
}
.create-account {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.create-account h2 {
  font-size: 1.17rem;
  margin-bottom: 12px;
}
.create-account button {
  margin-top: 13px;
}
.recovery-disclosure {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.recovery-disclosure summary {
  font-size: 0.88rem;
}
.recovery-disclosure p {
  font-size: 0.9rem;
}
.recovery-disclosure form {
  margin-top: 11px;
}
.recovery-disclosure button {
  margin-top: 10px;
}
#status:empty {
  display: none;
}
#status:not(:empty),
.recovery-codes {
  padding: 12px 14px;
  background: var(--pale);
  color: var(--ink);
  border-radius: 9px;
  margin: 16px 0 0;
}
.recovery-codes h2 {
  font-size: 1.2rem;
}
pre {
  font:
    500 0.94rem/1.55 ui-monospace,
    monospace;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.page-heading {
  margin: 17px 0 30px;
  padding-left: 2px;
}
.page-heading h1 {
  font-size: clamp(3.1rem, 5.6vw, 4.5rem);
}
.page-heading .lead {
  margin-top: 12px;
}
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-grid .panel > p {
  margin-bottom: 15px;
}
.key-list {
  margin: 12px 0 16px;
}
.key-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.key-row form {
  margin-left: auto;
}
.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-details {
  margin-top: 13px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.client-details > summary > span:nth-child(2) {
  flex: 1;
}
.client-details > summary small {
  display: block;
  font-size: 0.8rem;
  color: var(--quiet);
  font-weight: 400;
}
.client-details[open] > summary {
  margin-bottom: 13px;
}
.client-details p,
.token-form p {
  margin: 11px 0;
}
.client-details button {
  margin-top: 9px;
}
.token-form {
  margin-top: 18px;
}
.token-form .fields {
  grid-template-columns: minmax(0, 1.4fr) minmax(88px, 0.6fr);
}
fieldset {
  margin: 18px 0;
  padding: 12px 15px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
legend {
  padding: 0 6px;
  font-weight: 650;
  font-size: 0.92rem;
}
fieldset label {
  display: block;
  padding: 8px 0;
  font-weight: 450;
}
fieldset label + label {
  border-top: 1px solid #e5e9df;
}
fieldset small {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.token-form h3,
.client-details h3,
.task-panel form h3 {
  margin-top: 17px;
}
.task-wrap {
  max-width: 690px;
  margin: 14px auto;
}
.task-panel {
  padding: clamp(23px, 4vw, 48px);
}
.task-panel h1 {
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  margin-bottom: 18px;
}
.task-panel p {
  margin-bottom: 13px;
}
.task-panel [role='alert'] {
  padding: 12px;
  border-radius: 9px;
}
.task-panel form + form,
.task-panel form + a,
.task-panel form + p {
  margin-top: 14px;
  display: block;
}
.task-panel button + button {
  margin-left: 8px;
}
.task-panel > hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
@media (max-width: 900px) {
  .masthead-inner,
  .container {
    width: calc(100% - 48px);
  }
  .portal-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .sign-panel {
    padding: 31px;
  }
  .sign-art {
    padding-left: 28px;
  }
  .hero {
    min-height: 194px;
    padding: 31px;
  }
}
@media (max-width: 720px) {
  .section-jump {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 0.85rem;
    font-weight: 600;
  }
  .masthead-inner,
  .container {
    width: calc(100% - 32px);
  }
  .container {
    padding-block: 18px 35px;
  }
  .masthead-inner {
    min-height: 64px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .masthead-inner:has(nav) {
    padding: 13px 0 8px;
  }
  .brand {
    font-size: 1.26rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9px;
  }
  nav {
    gap: 3px;
  }
  nav a,
  .header-link {
    font-size: 0.82rem;
    min-height: 40px;
    padding: 0.42rem 0.6rem;
    gap: 0.3rem;
  }
  nav .icon {
    font-size: 1rem;
  }
  .portal-grid,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 16px;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 172px;
    border-radius: 17px;
    padding: 25px;
  }
  .hero::before {
    left: 42%;
  }
  .hero-copy {
    max-width: 72%;
  }
  .hero h1 {
    margin-bottom: 9px;
  }
  .hero .lead {
    font-size: 0.91rem;
  }
  .art-credit {
    right: 9px;
    bottom: 6px;
    font-size: 0.59rem;
  }
  .sign-layout {
    margin-top: 0;
    grid-template-columns: 1fr;
  }
  .sign-art {
    min-height: 158px;
    padding: 23px 26px;
  }
  .sign-art::before {
    inset: 0 0 0 37%;
    background-position: center 32%;
  }
  .sign-art::after {
    background: linear-gradient(90deg, #123f35 8%, #174a3d 35%, #174a3db0 65%, #174a3d10);
  }
  .art-copy {
    max-width: 65%;
  }
  .art-copy h2 {
    font-size: 2.55rem;
    margin-bottom: 6px;
  }
  .art-copy h2 br {
    display: none;
  }
  .art-copy h2 br::after {
    content: ' ';
  }
  .art-copy p {
    font-size: 0.86rem;
  }
  .sign-art .art-credit {
    left: auto;
    right: 8px;
    bottom: 6px;
  }
  .sign-panel {
    padding: 24px;
  }
  .sign-panel h1 {
    font-size: 3rem;
  }
  .signin-action {
    margin: 17px 0;
  }
  .create-account {
    padding-top: 17px;
  }
  .recovery-disclosure {
    margin-top: 14px;
  }
  .page-heading {
    margin: 10px 0 19px;
  }
  .task-wrap {
    margin: 5px auto;
  }
}
@media (max-width: 510px) {
  .masthead-inner:has(nav) {
    row-gap: 7px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
  nav a {
    flex: 1 1 auto;
    min-height: 44px;
    padding-inline: 6px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .search-form > button {
    width: 100%;
  }
  .hero-copy {
    max-width: 77%;
  }
  .hero {
    padding: 23px 20px;
  }
  .hero::before {
    left: 50%;
    opacity: 0.68;
  }
  .hero::after {
    background: linear-gradient(90deg, #123f36 0%, #154c40 40%, #154c40e8 52%, #154c4066 82%, #154c4050);
  }
  .hospital-row-main { gap: .4rem; }
  .hospital-row-main .row-icon { display: none; }
  .hospital-map-choice button { gap: .35rem; }
  .art-copy {
    max-width: 74%;
  }
  .sign-panel {
    padding: 22px;
  }
  .sign-art {
    min-height: 146px;
    padding: 20px 22px;
  }
}
@media (max-width: 350px) {
  nav a {
    padding-inline: 3px;
  }
  nav .icon {
    display: none;
  }
  .hero-copy {
    max-width: 92%;
  }
  .panel,
  .sign-panel {
    padding: 16px;
  }
  .header-link {
    padding-inline: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.server-field {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.server-field small {
  color: var(--quiet);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 3px;
}
.server-field code {
  color: var(--ink);
  user-select: all;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.token-disclosure {
  margin-top: 18px;
}
.token-disclosure > summary {
  width: fit-content;
}

.records-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.7fr);
  gap: clamp(16px, 2.3vw, 32px);
  margin-top: 24px;
  align-items: start;
}
.record-filters form { margin-top: 22px; }
.record-filters select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 6px 0 12px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #9ba99a;
  border-radius: 9px;
  font: 400 1rem/1.35 var(--body);
}
.record-panel { min-width: 0; overflow-wrap: anywhere; }
.record-panel .record-source { margin: 8px 0 18px; font-size: 0.9rem; }
.record-title { margin-top: 12px; }
.record-list, .record-documents > ul { list-style: none; margin: 0; padding: 0; }
.record-list li, .document-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.record-list li > span, .document-heading > span { min-width: 0; }
.record-list li > .icon { color: var(--teal); }
.record-list a { font-weight: 650; text-decoration-thickness: 1px; }
.record-list small, .record-documents small { display: block; color: var(--quiet); margin-top: 3px; }
.record-status { color: var(--quiet); font-size: 0.86rem; }
.record-pages { display: flex; justify-content: space-between; gap: 18px; }
.record-documents, .record-data { margin-top: 22px; }
.record-documents > h3 { margin-bottom: 10px; }
.record-fields { margin: 8px 0 0; }
.record-fields > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.record-fields .record-fields > div { display: block; padding-block: 4px; border: 0; }
.record-fields dt { font-size: 0.83rem; font-weight: 650; color: var(--quiet); }
.record-fields dd { margin: 0; min-width: 0; white-space: pre-wrap; }
.record-fields dd > .record-fields { margin: 0; }
.record-fields ul { margin: 0; padding-left: 1.1rem; }
.record-fields pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .records-layout { grid-template-columns: 1fr; margin-top: 16px; }
  .record-filters form { margin-top: 14px; }
}
@media (max-width: 510px) {
  .record-fields > div { grid-template-columns: 1fr; gap: 3px; }
  nav { flex-wrap: wrap; }
}
.document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.record-summary { border-block-start: 2px solid var(--teal); padding-block-start: 18px; margin-block: 22px 28px; }
.record-summary > h3 { font: 400 clamp(1.65rem, 3vw, 2rem)/1.15 var(--display); color: var(--deep); }
.summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 0; column-gap: 24px; }
.summary-facts > div { min-width: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
.summary-facts dt { color: var(--quiet); font-size: .83rem; font-weight: 600; }
.summary-facts dd { margin: 3px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 1rem; }
.summary-facts > .summary-wide { grid-column: 1 / -1; }
.hospital-narrative, .record-technical, .raw-json { margin-top: 18px; }
.hospital-narrative p { white-space: pre-line; margin-top: 10px; }
.record-panel summary { color: var(--teal); font-weight: 650; cursor: pointer; padding-block: 6px; }
.record-technical { border-top: 1px solid var(--line); padding-top: 12px; }
.record-technical > summary > span { display: block; margin-inline-start: 18px; font-size: .85rem; font-weight: 400; color: var(--quiet); }
.raw-json pre { overflow: auto; max-height: 32rem; padding: 16px; background: var(--pale); color: var(--ink); border-radius: 8px; white-space: pre-wrap; }
.document-heading { align-items: flex-start; flex-wrap: wrap; }
.document-heading strong { display: block; font-size: 1.03rem; }
.document-actions { gap: 9px 12px; }
.document-actions > a { font-size: .85rem; }
.record-document { display: block; min-width: 0; padding-bottom: 12px; scroll-margin-top: 20px; }
.document-prose { margin: 7px 0 16px; padding: clamp(12px, 2vw, 22px); border-left: 3px solid #9eb8a8; background: var(--pale); color: var(--ink); line-height: 1.66; overflow-wrap: anywhere; }
.document-prose p { color: inherit; }
.document-prose > :first-child { margin-top: 0; }
.document-prose > :last-child { margin-bottom: 0; }
.document-prose h4, .document-prose h5, .document-prose h6 { color: var(--deep); font-size: 1.05rem; margin: 1.25em 0 .45em; }
.document-prose h4 { font-size: 1.2rem; }
.document-prose ol, .document-prose ul { margin: .5rem 0; padding-inline-start: 1.4rem; }
.document-prose p + .document-table, .document-prose .document-table + p { margin-top: .75rem; }
.document-table { max-width: 100%; overflow: auto; }
.document-prose table { border-collapse: collapse; font-size: .93rem; }
.document-prose th, .document-prose td { padding: .4em .65em; border: 1px solid #bbc9bc; vertical-align: top; text-align: left; }
.document-prose th { background: var(--tint); }
.document-prose pre { font: .94rem/1.6 ui-monospace, monospace; white-space: pre-wrap; }
.document-pages { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 760px) {
  .record-panel { order: -1; }
}
@media (max-width: 560px) {
  .summary-facts { grid-template-columns: 1fr; }
  .document-heading { gap: 8px; }
}
.access-panel { max-width: 58rem; }
.access-events, .access-items { list-style: none; margin: 0; padding: 0; }
.access-event { border-top: 1px solid var(--line); padding-block: 1.25rem; overflow-wrap: anywhere; }
.access-events { margin-block-start: 1.25rem; }
.access-event header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.access-event time, .access-source dt, .access-items span { color: var(--quiet); font-size: .875rem; }
.access-source { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: .75rem 0; }
.access-source dd { margin: 0; font-weight: 600; }
.access-event summary { cursor: pointer; width: fit-content; color: var(--teal); font-weight: 650; padding-block: .25rem; }
.access-items { border-left: 2px solid var(--line); padding-inline-start: .85rem; }
.access-items li { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding-block: .35rem; }
.access-items span { display: block; }
.access-items a { display: inline-flex; align-items: center; gap: .2rem; font-size: .875rem; }
@media (max-width: 560px) {
  .access-event header, .access-items li { display: grid; }
  .access-source { gap: .4rem 1.25rem; }
}
