.state-test-card { overflow: visible; }
.state-test-card .exam-hero { border-radius: .65rem .65rem 0 0; }
.state-test-card .exam-hero-image { object-position: 50% 36%; }
.state-test-card .exam-hero h2 { max-width: 18ch; }
.st-recommended {
  display: inline-block;
  vertical-align: middle;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #ffeadb;
  color: #81391e;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}
.state-test-card .st-hours-note {
  margin-top: .75rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
}
.st-map-block { min-width: 0; }
#state-exam-map {
  display: block;
  width: 100%;
  height: auto;
  margin: .5rem auto;
}
.st-map-block .st-toggle { display: none; }
[data-map-state] { cursor: pointer; }
.st-shape, .st-callout { fill: #eac1a3; stroke: white; stroke-width: 1.4; stroke-linejoin: round; fill-rule: evenodd; }
.st-leader { stroke: #aebcb7; stroke-width: 1; fill: none; pointer-events: none; }
.st-callout { fill: #faeee3; stroke: #d7c4ae; stroke-width: .8; }
.st-abbr {
  fill: #503c32;
  text-anchor: middle;
  dominant-baseline: central;
  font: 700 13px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: .015em;
  pointer-events: none;
}
[data-map-state]:is(:hover,:focus-visible) :is(.st-shape,.st-callout) { fill: #f1aa66; stroke: #895134; stroke-width: 2; }
[data-map-state]:focus-visible { outline: none; }
[data-map-state][aria-pressed="true"] :is(.st-shape,.st-callout) { fill: #a33812; stroke: white; }
[data-map-state][aria-pressed="true"] .st-abbr { fill: white; }
[data-map-state="HI"][aria-pressed="true"] .st-abbr { fill: #a33812; }

.st-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}
.st-picker label { cursor: pointer; }
.st-field {
  position: relative;
  width: 11rem;
  max-width: 100%;
}
.st-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: .65rem;
  top: .7rem;
  width: .42rem;
  height: .42rem;
  border: solid var(--teal);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
#state-exam-picker {
  width: 100%;
  border: 1px solid #9bbab7;
  border-radius: .27rem;
  padding: .33rem 1.55rem .33rem .6rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--navy);
  background: white;
}
#state-exam-picker::placeholder { color: #48626c; opacity: 1; }
#state-exam-options, .st-no-match {
  position: absolute;
  z-index: 4;
  min-width: 100%;
  left: 0;
  right: 0;
  top: calc(100% + .18rem);
  margin: 0;
  padding: 0;
  max-height: min(17.5rem, 40dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid #83a29e;
  border-radius: .3rem;
  background: white;
  box-shadow: 0 .4rem 1.2rem #153f5121;
}
#state-exam-options li, .state-test-card .st-no-match { padding: .55rem .8rem; font-size: 1rem; }
#state-exam-options li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--navy);
  cursor: pointer;
}
#state-exam-options li + li { border-top: 1px solid #e4ebe8; }
#state-exam-options li span { margin-left: .5rem; font-size: .84rem; color: var(--muted); }
#state-exam-options li:is(:hover, .st-active-option) { background: #e7f2ee; }

.st-routes {
  margin: .45rem 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  list-style: none;
  color: #526469;
  font-size: .8rem;
}
.st-routes li { padding: .12rem .35rem; }
.st-routes .st-chosen {
  color: #893315;
  background: #fff1e5;
  box-shadow: inset 0 0 0 1px #edc2a9;
  border-radius: .2rem;
  font-weight: 700;
}
.st-result { min-width: 0; }
.st-state-copy { flex: 1; min-width: 0; }
.st-stamp {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 100%;
  font: 750 1.4rem/1 var(--face);
  color: #943b1b;
  background: #fff1e3;
}
.st-stamp > * { grid-area: 1 / 1; }
.st-stamp svg { width: 58%; height: 70%; fill: #ad4822; visibility: hidden; }
.st-stamp svg.st-fitted { visibility: visible; }
.st-state-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .15rem 1rem;
}
.st-year { color: #805137; font-size: .82rem; font-weight: 700; }
.st-exam + .st-exam { margin-top: .65rem; }
.state-test-card .st-exam h4 { margin: .28rem 0 .08rem; color: var(--navy); }
.st-course-link, .st-sources a { font-weight: 700; font-size: .87rem; }
.st-course-link { display: inline-block; margin: .18rem .8rem 0 0; }
.st-state-copy .st-state-note { margin-top: .5rem; }
.st-sources { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .25rem; }
.st-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 950px) {
  #state-exam-picker { min-height: 44px; font-size: 1rem; }
  .st-field::after { top: 1rem; }
  .st-map-block .st-toggle {
    display: inline-flex;
    align-items: center;
    gap: .52rem;
    min-height: 44px;
    background: none;
    border: 0;
    padding: .35rem 0;
    color: var(--teal);
    font-weight: 700;
    font-size: .9rem;
  }
  .st-toggle::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.1rem) rotate(45deg); }
  .st-toggle[aria-expanded="true"]::after { transform: translateY(.1rem) rotate(225deg); }
  .st-toggle[aria-expanded="false"] ~ #state-exam-map { display: none; }
  .st-routes { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .st-result:not(.st-has-state) { display: none; }
  .st-field { width: 100%; }
  .st-routes { gap: .15rem; margin-top: .15rem; }
  .st-state-heading { display: flex; flex-direction: column-reverse; gap: .25rem; }
  .st-stamp { width: 2.7rem; height: 2.7rem; font-size: 1.05rem; }
  .st-sources a { padding-block: .25rem; }
}
@media (max-width: 600px) {
  .state-test-card .exam-hero { border-radius: .55rem .55rem 0 0; }
  .state-test-card .exam-hero h2 { max-width: 69%; }
  .state-test-card .exam-formats strong { white-space: normal; max-width: 7.2rem; text-align: right; }
  .state-test-card .exam-hero-image { object-position: 52% 39%; }
}
