.nhis-guide {
  --nhis-edge: #d5e1ea;
  --nhis-blue: #153f68;
  --nhis-muted: #43576d;
  --nhis-mint: #e5f4ee;
  --nhis-sky: #eaf3fb;
  --nhis-lilac: #f1ebf8;
  min-width: 0;
}

.nhis-guide [hidden] {
  display: none !important;
}

.nhis-guide h2 {
  scroll-margin-top: 5.5rem;
}

.nhis-guide :is(.nhis-panel, .nhis-cards, .nhis-steps, .nhis-jump) p {
  margin: .65rem 0 0;
}

.nhis-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.nhis-jump a,
.nhis-guide button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid var(--nhis-edge);
  border-radius: .55rem;
  background: #fff;
  color: var(--nhis-blue);
  font: inherit;
}

.nhis-guide button {
  cursor: pointer;
  font-weight: 650;
}

.nhis-guide :is(button, select, input, a):focus-visible {
  outline: 2px solid var(--nhis-blue);
  outline-offset: 2px;
}

.nhis-panel {
  min-width: 0;
  margin: 0;
  padding: clamp(.8rem, 3vw, 1.4rem);
  border: 1px solid var(--nhis-edge);
  border-radius: .8rem;
  background: #fff;
}

.nhis-panel legend,
.nhis-panel figcaption {
  font-weight: 750;
}

.nhis-guide :is(dt, label) {
  font-weight: 650;
}

.nhis-guide dd {
  margin: 0;
}

.nhis-cards,
.nhis-fields,
.nhis-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: .75rem;
  margin: 0;
}

.nhis-cards > div,
.nhis-totals > div {
  padding: .85rem 1rem;
  border-radius: .7rem;
  background: var(--nhis-sky);
  color: var(--nhis-blue);
}

.nhis-cards > div:nth-child(2),
.nhis-totals > div:nth-child(2) {
  background: var(--nhis-mint);
  color: #155141;
}

.nhis-cards > div:nth-child(3),
.nhis-totals > div:nth-child(3) {
  background: var(--nhis-lilac);
  color: #51376b;
}

.nhis-cards dt span {
  display: block;
  font-size: .85rem;
}

.nhis-cards dd {
  margin-top: .35rem;
  color: #253447;
}

.nhis-benefits > div:nth-child(2) {
  background: #fff0df;
  color: #743c1d;
}

.nhis-route {
  background: var(--nhis-sky);
}

.nhis-route select,
.nhis-fields input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .55rem;
  border: 1px solid #9aafc2;
  border-radius: .55rem;
  background: #fff;
  color: #172b3e;
  font: inherit;
}

.nhis-route select {
  margin: .55rem 0 .8rem;
}

.nhis-route-result,
.nhis-total-note {
  padding: .7rem .9rem;
  border-radius: .6rem;
  background: #fff;
}

.nhis-guide .nhis-panel h3 {
  margin: 0;
}

.nhis-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: .65rem 0;
  border-radius: .6rem;
}

.nhis-split > div {
  display: grid;
  gap: .2rem;
  padding: .65rem;
  background: #275d8f;
  color: #fff;
  text-align: center;
}

.nhis-split > div + div {
  background: #187257;
}

.nhis-split strong,
.nhis-totals output {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.nhis-fields {
  margin: 1rem 0;
}

.nhis-fields label {
  display: grid;
  align-content: space-between;
  gap: .35rem;
}

.nhis-fields input,
.nhis-totals output {
  font-variant-numeric: tabular-nums;
}

.nhis-totals dt,
.nhis-bill dt span {
  font-size: .88rem;
}

.nhis-bill {
  background: #fff8f0;
}

.nhis-bill figcaption {
  color: #713f26;
}

.nhis-bill dl > div {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid #e5d4c4;
}

.nhis-bill dt span {
  display: block;
  color: var(--nhis-muted);
}

.nhis-bill dd {
  text-align: end;
  overflow-wrap: anywhere;
}

.nhis-steps {
  counter-reset: nhis-step;
  list-style: none;
}

.nhis-guide .nhis-steps {
  padding: 0;
  gap: .65rem;
}

.nhis-steps li {
  position: relative;
  counter-increment: nhis-step;
  border: 1px solid var(--nhis-edge);
  border-radius: .65rem;
  background: #fff;
  padding: .7rem .75rem .7rem 3.25rem;
}

.nhis-steps li::before {
  content: counter(nhis-step);
  display: grid;
  place-items: center;
  position: absolute;
  inset: .7rem auto auto .7rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--nhis-sky);
  color: var(--nhis-blue);
  font-weight: 750;
}

.nhis-table {
  table-layout: fixed;
  overflow-wrap: anywhere;
}

.nhis-checklist > div {
  display: grid;
  gap: .35rem;
  margin: .65rem 0;
}

.nhis-checklist label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: .6rem;
  cursor: pointer;
  font-weight: 500;
}

.nhis-checklist input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--nhis-blue);
}

.nhis-phrase button {
  margin-top: .7rem;
}

.nhis-panel span[role="status"] {
  margin-inline-start: .4rem;
  color: var(--nhis-muted);
}

.nhis-faq {
  border-bottom: 1px solid var(--nhis-edge);
  padding-bottom: .7rem;
}

.nhis-faq summary {
  cursor: pointer;
  font-weight: 700;
}
