/* ASU Unity Design System tokens — values from unity-bootstrap-theme
   src/scss/_custom-asu-variables.scss (@asu/unity-bootstrap-theme). */
:root {
  --asu-maroon: #8c1d40;
  --asu-gold: #ffc627;
  --asu-darkgold: #7f6227;
  --asu-blue: #00a3e0; /* brand blue */
  --asu-bluefocus: #00baff; /* a11y focus highlight (uds bluefocus) */
  --asu-gray-1: #191919;
  --asu-gray-2: #484848;
  --asu-gray-3: #747474;
  --asu-gray-4: #bfbfbf;
  --asu-gray-5: #d0d0d0;
  --asu-gray-6: #e8e8e8;
  --asu-gray-7: #fafafa;
  --bg-error: #f7dddd;
  --alert-error: #cc2f2f;
  --bg-success: #e9f5db;
  --font-base: Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", FreeSans, sans-serif;
  --pill: 400rem;
  --transition: 0.4s;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--asu-gray-7);
  color: var(--asu-gray-1);
  font-family: var(--font-base);
  line-height: 1.5;
}

.site-header {
  background: var(--asu-maroon);
  border-bottom: 5px solid var(--asu-gold);
  color: #fff;
  padding: 1rem 1.25rem;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--asu-gray-6);
  border-top: 4px solid var(--asu-maroon);
  border-radius: 0; /* square corners */
  max-width: 860px;
  width: 100%;
  padding: 1.5rem 1.5rem 2rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.intro {
  color: var(--asu-gray-1);
  margin: 0 0 1.25rem;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--asu-gray-4);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
}

input:focus-visible {
  outline: 2px solid var(--asu-bluefocus);
  outline-offset: 1px;
}

.ssn-row {
  display: flex;
  gap: 0.5rem;
}

.toggle {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--asu-gray-4);
  padding: 0 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.toggle:focus-visible {
  outline: 2px solid var(--asu-bluefocus);
  outline-offset: 1px;
}

.hint {
  color: var(--asu-gray-3);
  font-size: 0.8rem;
  margin: 0.3rem 0 0;
}

.field-error {
  color: var(--alert-error);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
  min-height: 1em;
}

input[aria-invalid="true"] {
  border-color: var(--alert-error);
}

.submit {
  background: var(--asu-maroon);
  color: #fff;
  border: 0;
  border-radius: var(--pill);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform var(--transition);
}

/* Unity source of truth (asu-unity-stack _buttons.scss): buttons never change color on
   hover/press, only size. Below the lg breakpoint, hover is a no-op and press shrinks
   slightly; at lg and up, hover grows slightly and press returns to normal size. */
.submit:hover {
  transform: none;
}

.submit:active {
  transform: scale(0.95);
}

@media (min-width: 992px) {
  .submit:hover {
    transform: scale(1.05);
  }

  .submit:active {
    transform: scale(1);
  }
}

.submit:disabled {
  background: var(--asu-gray-3);
  cursor: default;
}

.submit:focus-visible {
  outline: 2px solid var(--asu-bluefocus);
  outline-offset: 2px;
}

.status {
  margin-bottom: 1rem;
}

.status.error {
  background: var(--bg-error);
  border-left: 4px solid var(--alert-error);
  padding: 0.75rem 1rem;
}

.card.success {
  border-top-color: var(--asu-maroon);
  background: var(--bg-success);
}

/* ASU Unity Global Footer — GlobalElementsOnly static markup, plus a hand-added mobile
   accordion (see .footer-accordion-toggle below) that the canonical partial gets for free
   from Bootstrap JS, which this no-build page does not load. */
#asu-footer .container {
  width: 100%;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

#asu-footer .row {
  display: flex;
  flex-wrap: wrap;
}

#asu-footer .col {
  flex: 1 0 0%;
}

#asu-footer .d-flex {
  display: flex;
}

#asu-footer .nav {
  display: flex;
  flex-wrap: wrap;
}

#asu-footer .nav-link {
  display: block;
  min-width: 48px;
  min-height: 48px;
  color: var(--asu-gray-1);
  text-decoration: none;
}

#asu-footer .nav-link:hover,
#asu-footer #manualConsentoptout:hover {
  text-decoration: underline;
}

#asu-footer a:focus-visible,
#asu-footer button:focus-visible {
  outline: 2px solid var(--asu-bluefocus);
  outline-offset: 2px;
}

#wrapper-endorsed-footer,
#wrapper-footer-columns {
  background: var(--asu-gray-1);
  color: #fff;
}

#wrapper-endorsed-footer {
  border-bottom: 1px solid var(--asu-gray-2);
}

#endorsed-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 136px;
  gap: 2rem;
}

#endorsed-footer .health-lockup {
  display: block;
  width: min(100%, 380px);
  color: #fff;
  text-decoration: none;
}

#endorsed-footer .health-lockup img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

#footer-columns {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) repeat(5, minmax(120px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#footer-columns h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

#footer-columns .footer-unit h2 {
  max-width: 19rem;
}

/* Nav columns use a real h2 (unchanged accessible heading) wrapping the accordion trigger
   button, so the button keeps its native button role/aria-expanded exposure to assistive
   tech — see the ARIA APG accordion pattern. Base rules replicate the h2 styling above;
   below 575.98px, the button becomes visibly interactive (padding/cursor/icon) and drives
   the panel's visibility via :has() on its h2 wrapper (button and panel are not direct
   siblings, so the state has to be read off the ancestor). */
#footer-columns .footer-column-heading {
  margin: 0;
}

#footer-columns .footer-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

#footer-columns .footer-column-panel {
  display: block;
}

#footer-columns .footer-unit,
#footer-columns .footer-column {
  min-width: 0;
}

#footer-columns .footer-column {
  display: flex;
  flex-direction: column;
}

#footer-columns .nav-link,
#footer-columns .contact-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--asu-gray-6);
  text-decoration: none;
}

#footer-columns .nav-link {
  margin: 0;
  padding: 0;
  line-height: 1.45;
}

#footer-columns .contact-link {
  width: fit-content;
  margin: 1rem 0 1.5rem;
  text-decoration: underline;
}

#footer-columns .nav-link:hover,
#footer-columns .contact-link:hover {
  color: var(--asu-gold);
  text-decoration: underline;
}

#footer-columns .support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 50px;
  padding: 0.65rem 2rem;
  border-radius: var(--pill);
  background: var(--asu-gold);
  color: var(--asu-gray-1);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition);
}

/* Unity source of truth (asu-unity-stack _buttons.scss): buttons never change color on
   hover/press, only size — see the .submit rule above for the same pattern. */
#footer-columns .support-link:hover {
  text-decoration: none;
  transform: none;
}

#footer-columns .support-link:active {
  transform: scale(0.95);
}

@media (min-width: 992px) {
  #footer-columns .support-link:hover {
    transform: scale(1.05);
  }

  #footer-columns .support-link:active {
    transform: scale(1);
  }
}

#wrapper-footer-innovation {
  background-color: var(--asu-gold);
}

#wrapper-footer-innovation a {
  margin-right: 1.5rem;
  color: var(--asu-gray-1);
  text-decoration: none;
}

#footer-innovation .footer-innovation-links {
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

#footer-innovation .footer-innovation-links .img-link {
  display: block;
  order: 2;
  min-width: 48px;
  min-height: 48px;
  margin-right: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}

#footer-innovation .footer-innovation-links .img-link img {
  width: auto;
  max-width: 320px;
  height: auto;
  display: block;
}

#footer-innovation .footer-innovation-links .nav-link {
  padding: 0;
  display: flex;
  align-items: center;
}

#wrapper-footer-colophon {
  background-color: var(--asu-gray-6);
}

#wrapper-footer-colophon a {
  margin-right: 1.5rem;
  color: var(--asu-gray-1);
  text-decoration: none;
}

#wrapper-footer-colophon .colophon {
  margin: 1rem 0;
}

#footer-colophon .nav-link {
  padding: 0;
  display: flex;
  align-items: center;
}

#asu-footer #manualConsentoptout {
  color: var(--asu-gray-2);
  border: none;
  background-color: transparent;
  width: auto;
  min-height: 48px;
  cursor: pointer;
  padding: 0;
  text-align: right;
  justify-self: end;
  font: inherit;
}

@media (max-width: 1199.98px) {
  #footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  #footer-columns .footer-unit {
    grid-column: 1 / -1;
  }

  #footer-innovation .footer-innovation-links {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  #footer-innovation .footer-innovation-links .img-link {
    margin-right: 0;
    transform: none;
  }

  #footer-innovation .footer-innovation-links .img-link img {
    width: 100%;
    height: auto;
    order: -1;
  }

  #footer-innovation .footer-innovation-links .nav {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-auto-flow: column;
    justify-items: start;
    width: 100%;
  }

  #footer-innovation .footer-innovation-links .nav-link {
    margin-right: 0;
    padding: 0.5rem 0;
  }

  #footer-innovation .footer-innovation-links .nav-link:nth-child(n + 4) {
    justify-self: end;
  }
}

@media (max-width: 767.98px) {
  #endorsed-footer {
    align-items: center;
    justify-content: center;
    min-height: 136px;
  }

  #endorsed-footer .health-lockup {
    max-width: 300px;
  }

  #footer-colophon .nav {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-auto-flow: column;
    justify-items: start;
    width: 100%;
  }

  #footer-colophon .nav-link {
    margin-right: 0;
    padding: 0.5rem 0;
  }

  #footer-colophon .nav-link:nth-child(n + 4),
  #asu-footer #manualConsentoptout {
    justify-self: end;
  }
}

@media (max-width: 575.98px) {
  #footer-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  #footer-innovation .footer-innovation-links .img-link img {
    max-width: 100%;
  }

  /* Mobile footer accordion. aria-expanded on .footer-accordion-toggle is the single source
     of truth for both semantics and visibility (no separate JS-toggled class to drift out of
     sync) — main.js only ever flips this one attribute. */
  #footer-columns .footer-column:not(.footer-unit) {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  #footer-columns .footer-accordion-toggle {
    cursor: pointer;
    padding: 0.75rem 0;
  }

  #footer-columns .footer-accordion-toggle:hover {
    color: var(--asu-gold);
  }

  #footer-columns .footer-accordion-toggle::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: 0.5rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  #footer-columns .footer-accordion-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }

  #footer-columns .footer-column-panel {
    display: none;
    padding-bottom: 0.75rem;
  }

  #footer-columns .footer-column-heading:has(.footer-accordion-toggle[aria-expanded="true"]) + .footer-column-panel {
    display: block;
  }
}

@media (min-width: 992px) {
  #footer-innovation .footer-innovation-links .img-link {
    padding-right: 16px;
  }
}
