/* State selection inside the two dual-state practice cards. */
.pa-state-toggle {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.pa-door:has(.pa-state-toggle:focus-visible) {
  outline: 3px solid var(--pa-lemon);
  outline-offset: 3px;
}
.pa-state-options[hidden] { display: none; }
.pa-state-options {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  gap: 10px;
  color: white;
}
.pa-state-options h3 {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  padding-inline-end: 32px;
  color: inherit;
  text-align: start;
  font: 600 clamp(22px, 2.4vw, 36px)/1.13 var(--pa-head);
}
.pa-state-close {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #c4d7f0;
  font: 400 25px/1 var(--pa-text);
  cursor: pointer;
}
.pa-state-options .pa-state-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 46px;
  padding: 9px clamp(8px,1vw,14px);
  border: 1px solid #86a2c5;
  border-radius: 10px;
  background: #1a3762;
  color: white;
  text-decoration: none;
  font: 600 14px/1.3 var(--pa-text);
}
.pa-state-link::after { content: '→' / ''; color: var(--pa-lemon); }
.pa-state-options:dir(rtl) .pa-state-link::after { content: '←' / ''; }
.pa-state-options .pa-state-link:hover { background: #24497a; border-color: var(--pa-lemon); }
.pa-state-options :is(a,button):focus-visible { outline: 3px solid var(--pa-lemon); outline-offset: 2px; }
@media (min-width: 1024px) {
  .pa-state-toggle, .pa-state-close { display: none; }
  .pa-state-options {
    grid-area: 2 / 1;
    display: flex;
    flex-wrap: wrap;
    align-self: end;
    justify-content: flex-start;
    gap: 7px 8px;
    padding-top: 12px;
    z-index: auto;
  }
  .pa-state-options h3 {
    flex-basis: 100%;
    margin: 0;
    padding: 0;
    color: #dce6fa;
    font: 600 13px/1.35 var(--pa-text);
  }
  .pa-state-options .pa-state-link {
    min-height: 44px;
    padding: 8px 12px;
    font-size: clamp(13px, 1.05vw, 14px);
  }
}
@media (max-width: 1023.98px) {
  .pa-state-options { grid-column: 1 / -1; padding: 15px 0 4px; margin: 0 15px 8px; border-top: 1px solid #536d94; }
  .pa-state-options h3 { font-size: 22px; }
  .pa-state-close { inset-block-start: 3px; }
  .pa-door:has(.pa-state-toggle[aria-expanded="true"]) .pa-btn { visibility: hidden; }
}
