@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
[hidden] { display: none !important; }
#test-banner {
  padding: .2rem 1.5rem;
  background: #eff4ff;
  color: #233d66;
  text-align: center;
  font-size: .75rem;
}
#mobile-menu { padding: .5rem 1.5rem 1rem; }
#mobile-menu a { display: block; padding: .55rem 0; }
#shop button[aria-pressed="true"] { background: hsl(var(--primary)); color: white; border-color: transparent; }
#apply, #result { max-width: 52rem; margin: auto; padding: 4rem 1.5rem; }
:is(#apply,#result) h1 { margin: .5rem 0 1rem; font-size: clamp(2.2rem,5vw,3.25rem); line-height: 1.08; font-weight: 700; }
:is(#apply,#result) .eyebrow { color: hsl(var(--primary)); text-transform: uppercase; font-size: .875rem; font-weight: 600; letter-spacing: .05em; }
:is(#apply,#result) fieldset { border-top: 1px solid hsl(var(--border)); margin: 2rem 0; padding-top: 1rem; }
#apply legend { padding-right: 1rem; font-size: 1.25rem; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
:is(#apply,#result,#catalog-dialog) label { display: grid; align-content: start; gap: .4rem; font-weight: 550; }
:is(#apply,#result,#catalog-dialog) :is(input,select) { width: 100%; min-height: 44px; min-width: 0; border: 1px solid #949aa5; border-radius: .5rem; padding: .6rem .75rem; background: white; }
#apply small { color: #555; font-weight: 400; }
:is(#apply,#result) :is(button,.action), #catalog-dialog button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.5rem; border-radius: .5rem; background: hsl(var(--primary)); color: white; font-weight: 650; margin: 1rem .5rem 0 0; }
:is(#apply,#result) button:disabled { opacity: .6; }
:is(#apply,#result,#catalog-dialog) :focus-visible, #mobile-menu a:focus-visible { outline: 3px solid #2974ff; outline-offset: 3px; }
#result .secondary { background: #edf2fa; color: #143051; }
#result dl { margin: 2rem 0 1rem; display: grid; grid-template-columns: auto 1fr; }
#result :is(dt,dd) { padding: .75rem 0; border-bottom: 1px solid hsl(var(--border)); }
#result dd { text-align: right; font-weight: 600; }
#another { display: block; margin-top: 1rem; color: hsl(var(--primary)); }
#error { color: #a31f2c; margin-top: 1rem; }
#access { margin: 1rem 0; }
#catalog-dialog { position: fixed; inset: 0; width: min(90vw,28rem); padding: 1.5rem; margin: auto; border-radius: .75rem; box-shadow: 0 12px 56px #0003; }
#catalog-dialog::backdrop { background: #0007; }
#catalog-dialog h2 { font-size: 1.5rem; font-weight: 650; margin-bottom: .75rem; }
#catalog-dialog form[method="dialog"] { float: right; }
#catalog-dialog form[method="dialog"] button { width: 40px; height: 40px; font-size: 1.5rem; }
#catalog-dialog li { padding: .4rem 0; border-bottom: 1px solid hsl(var(--border)); }
#catalog-dialog p { margin: .75rem 0; }
@media(max-width:640px) {
  .form-grid { grid-template-columns: 1fr; }
  #apply,#result { padding-top: 2.5rem; }
  #shop section:nth-child(2) > div { align-items: flex-start; flex-direction: column; gap: .75rem; }
}
@media(min-width:1024px) { #mobile-menu { display: none; } }
