:root {
  font-family: Inter, system-ui, sans-serif;
  color: #142436;
  background: #f4f6f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #041f3a;
  padding: 12px max(20px, calc((100vw - 760px) / 2));
  height: 64px;
}
header img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}
main {
  max-width: 760px;
  margin: 36px auto;
  padding: 0 18px;
}
.eyebrow {
  font-size: 13px;
  color: #587088;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#status {
  background: #fff;
  padding: 24px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
}
article {
  background: white;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  overflow: hidden;
}
.card-head {
  background: #041f3a;
  color: white;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.identity {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.identity small {
  color: #607388;
  font-size: 11px;
  font-weight: 700;
}
.identity h1 {
  font-size: 25px;
  margin: 4px 0;
}
.identity p {
  margin: 0;
  color: #536779;
}
.photo {
  width: 110px;
  height: 110px;
  flex: none;
  background: #e9eff5;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #041f3a;
  font-weight: 700;
  font-size: 30px;
  overflow: hidden;
}
.photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px 26px;
}
.details div,
.emergency div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.details span,
.emergency span {
  font-size: 12px;
  color: #607388;
}
.details strong,
.emergency strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.emergency {
  border-top: 1px solid #dce3ea;
  background: #f8fafc;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.emergency h2 {
  grid-column: 1/-1;
  font-size: 18px;
  margin: 0;
}
.blood strong {
  font-size: 22px;
  color: #af2d32;
}
.emergency a {
  color: #075b9e;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.note {
  font-size: 13px;
  line-height: 1.5;
  color: #64788a;
  margin: 18px 2px;
}
@media (max-width: 520px) {
  main {
    margin: 20px auto;
  }
  .identity {
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }
  .identity h1 {
    font-size: 20px;
  }
  .photo {
    width: 82px;
    height: 92px;
  }
  .details,
  .emergency {
    padding-left: 20px;
    padding-right: 20px;
  }
  .card-head {
    padding: 14px 20px;
  }
  .emergency {
    grid-template-columns: 1fr 1fr;
  }
}
