:root {
  --state-navy: #0b2340;
  --state-teal: #0d6a6a;
  --state-mint: #dff6ef;
  --state-coral: #ee6d5f;
  --state-gold: #d59b2d;
  --state-ink: #17252d;
  --state-muted: #596b70;
  --state-line: #d7e2df;
  --state-soft: #f4f8f7;
}

.state-site {
  background: #fff;
  background-image: none;
  color: var(--state-ink);
}

.state-site h1,
.state-site h2,
.state-site h3 {
  letter-spacing: 0;
}

.state-top {
  min-height: 82px;
  gap: 20px;
}

.state-top .site-wordmark img {
  width: 220px;
  max-height: 64px;
  object-fit: contain;
}

.state-kicker {
  margin: 0 0 10px;
  color: var(--state-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.state-gateway {
  padding: 70px 0 48px;
}

.state-gateway__intro {
  max-width: 780px;
}

.state-gateway__intro h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--state-navy);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 760;
}

.state-gateway__intro > p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--state-muted);
  font-size: 19px;
}

.state-picker {
  margin: 54px 0 0;
  padding: 38px 0 44px;
  border-top: 1px solid var(--state-line);
  border-bottom: 1px solid var(--state-line);
}

.state-picker__heading h2 {
  margin: 0 0 24px;
  color: var(--state-navy);
  font-size: 30px;
}

.state-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.state-option {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--state-line);
  border-radius: 8px;
  background: #fff;
  color: var(--state-ink);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.state-option:hover,
.state-option:focus-visible {
  border-color: var(--state-teal);
  box-shadow: 0 12px 30px rgba(11, 35, 64, .1);
  transform: translateY(-2px);
}

.state-option__abbr {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.state-option--az .state-option__abbr {
  background: var(--state-coral);
}

.state-option--nv .state-option__abbr {
  background: var(--state-navy);
}

.state-option__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.state-option__body strong {
  color: var(--state-navy);
  font-size: 25px;
}

.state-option__body span {
  font-size: 15px;
  font-weight: 700;
}

.state-option__body small {
  color: var(--state-muted);
  font-size: 14px;
  line-height: 1.35;
}

.state-option__arrow {
  color: var(--state-teal);
  font-size: 25px;
}

.state-public-note {
  max-width: 760px;
  padding: 42px 0 24px;
}

.state-public-note h2 {
  color: var(--state-navy);
  font-size: 24px;
}

.state-public-note p {
  color: var(--state-muted);
}

.state-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 38px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--state-line);
  color: var(--state-muted);
  font-size: 14px;
}

.state-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.state-footer a {
  color: var(--state-navy);
}

.state-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--state-line);
  border-radius: 8px;
  background: var(--state-soft);
}

.state-switch a {
  min-width: 76px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--state-muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.state-switch a[aria-current="page"] {
  background: #fff;
  color: var(--state-navy);
  box-shadow: 0 2px 8px rgba(11, 35, 64, .09);
}

.az-page main {
  padding-bottom: 38px;
}

.az-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 54px;
  align-items: center;
  padding: 62px 0 56px;
}

.az-hero h1 {
  max-width: 680px;
  margin: 0 0 12px;
  color: var(--state-navy);
  font-size: 48px;
  line-height: 1.07;
  font-weight: 780;
}

.az-hero__lead {
  max-width: 650px;
  margin: 0;
  color: var(--state-muted);
  font-size: 20px;
}

.az-legal-name {
  margin: -2px 0 12px;
  color: var(--state-teal);
  font-size: 15px;
  font-weight: 800;
}

.az-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.az-contact-block {
  padding: 24px;
  border-left: 5px solid var(--state-coral);
  background: var(--state-soft);
}

.az-contact-block h2 {
  margin: 0 0 12px;
  color: var(--state-navy);
  font-size: 20px;
}

.az-contact-block address {
  color: var(--state-muted);
  font-style: normal;
}

.az-contact-block a {
  color: var(--state-teal);
  font-weight: 750;
}

.az-band {
  margin: 0 calc(50% - 50vw);
  padding: 54px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--state-line);
}

.az-band--soft {
  background: var(--state-soft);
}

.az-band__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.az-band__head h2 {
  color: var(--state-navy);
  font-size: 31px;
}

.az-band__head p {
  color: var(--state-muted);
  font-size: 17px;
}

.az-service-grid,
.az-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.az-service,
.az-info {
  padding: 24px;
  border: 1px solid var(--state-line);
  border-radius: 8px;
  background: #fff;
}

.az-service h3,
.az-info h3 {
  color: var(--state-navy);
  font-size: 21px;
}

.az-service p,
.az-info p,
.az-info li {
  color: var(--state-muted);
}

.az-info ul {
  padding-left: 20px;
}

.az-admission-note {
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 5px solid var(--state-gold);
  background: #fffaf0;
  color: #5f4a22;
}

.emr-launch {
  position: fixed;
  z-index: 40;
  right: 0;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--state-navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 35, 64, .22);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.emr-launch__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--state-coral);
  font-size: 12px;
}

.emr-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(5, 21, 35, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.emr-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.emr-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: -100vw;
  width: min(980px, 92vw);
  height: 100dvh;
  overflow: auto;
  border-left: 1px solid var(--state-line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(5, 21, 35, .2);
  transition: right .24s ease;
}

.emr-drawer.is-open {
  right: 0;
}

body.emr-open {
  overflow: hidden;
}

.emr-drawer__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--state-line);
  background: #fff;
}

.emr-drawer__header h2 {
  margin: 0;
  color: var(--state-navy);
  font-size: 24px;
}

.emr-drawer__header p {
  margin: 4px 0 0;
  color: var(--state-muted);
  font-size: 14px;
}

.emr-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.emr-entry-toggle {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--state-teal);
  border-radius: 6px;
  background: #fff;
  color: var(--state-teal);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.emr-entry-toggle[aria-pressed="true"] {
  background: var(--state-teal);
  color: #fff;
}

.emr-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--state-line);
  border-radius: 50%;
  background: #fff;
  color: var(--state-navy);
  font-size: 25px;
  cursor: pointer;
}

.emr-alert {
  margin: 18px 24px 0;
  padding: 14px 16px;
  border-left: 5px solid var(--state-coral);
  background: #fff4f1;
  color: #6c3029;
  font-size: 14px;
  font-weight: 700;
}

.emr-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.emr-field {
  display: grid;
  gap: 6px;
}

.emr-field label,
.emr-field > span {
  color: var(--state-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.emr-field input,
.emr-field select,
.emr-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #b9c9c5;
  border-radius: 6px;
  background: #fff;
  color: var(--state-ink);
  font: inherit;
  font-size: 15px;
}

.emr-field textarea {
  min-height: 90px;
  resize: vertical;
}

.emr-field input:disabled,
.emr-field select:disabled,
.emr-field textarea:disabled {
  background: #eef2f1;
  color: #6f7c7c;
}

.emr-drawer.is-entry-mode .emr-field input:not(:disabled),
.emr-drawer.is-entry-mode .emr-field select:not(:disabled),
.emr-drawer.is-entry-mode .emr-field textarea:not(:disabled) {
  border-color: var(--state-teal);
  box-shadow: 0 0 0 2px rgba(0, 104, 99, .08);
}

.emr-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 24px 12px;
  border-bottom: 1px solid var(--state-line);
}

.emr-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--state-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.emr-tab[aria-selected="true"] {
  border-color: var(--state-line);
  background: var(--state-mint);
  color: var(--state-navy);
}

.emr-form {
  padding: 24px 24px 110px;
}

.emr-panel[hidden] {
  display: none;
}

.emr-panel h3 {
  margin: 0 0 6px;
  color: var(--state-navy);
  font-size: 22px;
}

.emr-panel__intro {
  margin: 0 0 20px;
  color: var(--state-muted);
}

.emr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.emr-grid .emr-span-2 {
  grid-column: 1 / -1;
}

.emr-checks {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--state-line);
  border-bottom: 1px solid var(--state-line);
}

.emr-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--state-ink);
  font-size: 14px;
}

.emr-checks input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.emr-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.emr-summary > div {
  padding: 16px;
  border-left: 4px solid var(--state-teal);
  background: var(--state-soft);
}

.emr-summary strong {
  display: block;
  color: var(--state-navy);
  font-size: 20px;
}

.emr-summary span {
  color: var(--state-muted);
  font-size: 13px;
}

.emr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--state-line);
  border-radius: 6px;
}

.emr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.emr-table th,
.emr-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--state-line);
  text-align: left;
  vertical-align: top;
}

.emr-table th {
  background: var(--state-soft);
  color: var(--state-navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.emr-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--state-mint);
  color: #17624f;
  font-size: 12px;
  font-weight: 800;
}

.emr-status--warn {
  background: #fff0cf;
  color: #755115;
}

.emr-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(980px, 92vw);
  padding: 16px 24px;
  border-top: 1px solid var(--state-line);
  background: rgba(255, 255, 255, .97);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.emr-drawer.is-open .emr-actions {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.emr-action {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--state-line);
  border-radius: 6px;
  background: #fff;
  color: var(--state-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.emr-action--primary {
  border-color: var(--state-coral);
  background: var(--state-coral);
  color: #fff;
}

.emr-action:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.emr-live {
  min-height: 24px;
  margin: 0;
  color: var(--state-teal);
  font-size: 14px;
  font-weight: 750;
}

.emr-audit {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.emr-audit li {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--state-line);
  color: var(--state-muted);
  font-size: 14px;
}

.emr-audit time {
  color: var(--state-navy);
  font-weight: 750;
}

@media (max-width: 800px) {
  .state-gateway {
    padding-top: 42px;
  }

  .state-gateway__intro h1,
  .az-hero h1 {
    font-size: 38px;
  }

  .state-options,
  .az-hero,
  .az-service-grid,
  .az-info-grid {
    grid-template-columns: 1fr;
  }

  .az-hero {
    gap: 28px;
    padding-top: 42px;
  }

  .state-footer {
    flex-direction: column;
  }

  .state-footer nav {
    justify-content: flex-start;
  }

  .emr-launch {
    top: 54%;
    right: 0;
    bottom: auto;
    width: 52px;
    padding: 12px;
    border-radius: 8px 0 0 8px;
  }

  .emr-launch > span:last-child {
    display: none;
  }

  .emr-drawer,
  .emr-actions {
    width: 100vw;
  }

  .emr-drawer {
    border-left: 0;
  }

  .emr-grid,
  .emr-summary {
    grid-template-columns: 1fr;
  }

  .emr-grid .emr-span-2 {
    grid-column: auto;
  }

  .emr-actions {
    overflow-x: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .state-top {
    min-height: 74px;
  }

  .state-top .site-wordmark img {
    width: 172px;
  }

  .state-gateway__intro h1,
  .az-hero h1 {
    font-size: 32px;
  }

  .state-option {
    grid-template-columns: 50px minmax(0, 1fr) 18px;
    gap: 12px;
    min-height: 132px;
    padding: 18px;
  }

  .state-option__abbr {
    width: 50px;
    height: 50px;
  }

  .state-option__body strong {
    font-size: 21px;
  }

  .state-switch {
    order: 3;
    width: 100%;
  }

  .state-switch a {
    flex: 1;
  }

  .emr-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .emr-drawer__header,
  .emr-toolbar,
  .emr-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .emr-drawer__header {
    align-items: flex-start;
    gap: 12px;
  }

  .emr-header-actions {
    gap: 6px;
  }

  .emr-entry-toggle {
    max-width: 145px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .emr-close {
    width: 40px;
    height: 40px;
  }

  .emr-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .emr-alert {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .state-option,
  .emr-backdrop,
  .emr-drawer {
    transition: none;
  }
}

@media print {
  body.emr-open > *:not(.emr-drawer) {
    display: none !important;
  }

  .emr-drawer {
    position: static;
    right: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .emr-close,
  .emr-tabs,
  .emr-actions,
  .emr-toolbar {
    display: none !important;
  }

  .emr-form {
    padding: 20px 0;
  }

  .emr-panel[hidden] {
    display: block;
    page-break-before: always;
  }
}
