/* All Skills College — focused Pathway Check experience */

html.pathway-check-document {
  --pathway-canvas: var(--c-bg-soft, #f1f0fc);
  --pathway-card: #fff;
  --pathway-brand: var(--c-brand, #6425eb);
  --pathway-brand-dark: #5317ca;
  --pathway-ink: var(--c-heading, #110629);
  --pathway-copy: rgba(17, 6, 41, .7);
  --pathway-line: rgba(17, 6, 41, .13);
  --pathway-line-strong: rgba(17, 6, 41, .22);
  scroll-behavior: auto;
  background: var(--c-bg-soft, #f1f0fc);
}

html.pathway-check-document body {
  min-height: 100%;
  background: var(--c-bg-soft, #f1f0fc);
}

html.pathway-check-document .site-header,
html.pathway-check-document .site-search-modal,
html.pathway-check-document .site-footer {
  display: none !important;
}

html.pathway-check-document #main {
  min-height: calc(100svh - 76px);
}

.pathway-app {
  min-height: calc(100svh - 76px);
  color: var(--pathway-copy);
  background: var(--pathway-canvas);
}

.pathway-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 76px;
  border-bottom: 1px solid rgba(17, 6, 41, .08);
  background: #fff;
}

.pathway-header__inner {
  display: flex;
  width: min(100%, 1440px);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 72px;
}

.pathway-header__logo {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.pathway-header__logo img {
  width: 204px;
  height: auto;
}

.pathway-header__exit {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--pathway-ink);
  font: 600 14px/1 var(--font-primary, "Roboto", sans-serif);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.pathway-header__exit:hover,
.pathway-header__exit:focus-visible {
  border-color: var(--pathway-line);
  background: rgba(17, 6, 41, .035);
  text-decoration: none;
}

.pathway-check {
  display: block;
  min-height: calc(100svh - 76px);
  padding: 28px 24px 24px;
  background: var(--pathway-canvas);
}

.pathway-check__inner {
  width: min(100%, 960px);
  min-height: calc(100svh - 124px);
  margin: 0 auto;
}

.pathway-progress {
  width: 100%;
  padding: 0;
}

.pathway-progress__track {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 6, 41, .12);
}

.pathway-progress__fill {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--pathway-brand);
  transition: width 260ms cubic-bezier(.2, .8, .2, 1);
}

.pathway-form {
  display: flex;
  min-height: calc(100svh - 156px);
  flex-direction: column;
  padding: 48px 0 0;
}

.pathway-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.pathway-form__alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #c93434;
  border-radius: 10px;
  background: #fff4f3;
  color: #8e2020;
  font-size: 14px;
  font-weight: 600;
}

.pathway-context,
.pathway-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid rgba(100, 37, 235, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
}

.pathway-context__copy,
.pathway-summary__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pathway-context small,
.pathway-summary small {
  color: var(--pathway-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pathway-context strong,
.pathway-summary strong {
  overflow: hidden;
  color: var(--pathway-ink);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.pathway-context button,
.pathway-summary button {
  flex: 0 0 auto;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--pathway-brand);
  font: 600 14px/1 var(--font-primary, "Roboto", sans-serif);
  cursor: pointer;
}

.pathway-form__screens {
  width: min(100%, 960px);
  flex: 1 0 auto;
  margin: 0 auto;
}

.pathway-screen {
  width: 100%;
  animation: pathway-screen-in 220ms ease both;
}

@keyframes pathway-screen-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.pathway-screen__eyebrow,
.pathway-success__eyebrow {
  margin: 0 0 10px;
  color: var(--pathway-brand);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
}

.pathway-screen h1,
.pathway-success h1 {
  max-width: 760px;
  margin: 0;
  color: var(--pathway-ink);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-align: left;
  text-transform: none;
}

.pathway-screen__notice {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--pathway-brand);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .62);
  color: var(--pathway-ink);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.pathway-fieldset {
  min-width: 0;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.pathway-choices {
  display: grid;
  gap: 10px;
}

.pathway-choices--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pathway-choices--scroll {
  max-height: min(390px, 44svh);
  overflow-y: auto;
  padding: 2px 4px 4px 2px;
  scrollbar-color: rgba(100, 37, 235, .35) transparent;
  scrollbar-width: thin;
}

.pathway-choice {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--pathway-line);
  border-radius: 12px;
  background: var(--pathway-card);
  color: var(--pathway-ink);
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.pathway-choice:hover {
  border-color: rgba(100, 37, 235, .45);
  box-shadow: 0 6px 18px rgba(17, 6, 41, .055);
  transform: translateY(-1px);
}

.pathway-choice:has(input:focus-visible) {
  outline: 3px solid var(--c-focus, rgba(100, 37, 235, .35));
  outline-offset: 2px;
}

.pathway-choice.is-selected,
.pathway-choice:has(input:checked) {
  border-color: var(--pathway-brand);
  background: #faf8ff;
  box-shadow: inset 0 0 0 1px var(--pathway-brand);
}

.pathway-choice--compact {
  min-height: 58px;
  padding-block: 12px;
}

.pathway-choice__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pathway-choice__copy strong {
  color: var(--pathway-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.pathway-choice__copy small {
  color: var(--pathway-copy);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.pathway-choice input,
.pathway-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.pathway-choice__indicator,
.pathway-consent__indicator {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1.5px solid var(--pathway-line-strong);
  background: #fff;
}

.pathway-choice input[type="radio"] + .pathway-choice__indicator {
  border-radius: 50%;
}

.pathway-choice input[type="checkbox"] + .pathway-choice__indicator,
.pathway-consent__indicator {
  border-radius: 6px;
}

.pathway-choice input[type="radio"]:checked + .pathway-choice__indicator {
  border: 6px solid var(--pathway-brand);
}

.pathway-choice input[type="checkbox"]:checked + .pathway-choice__indicator,
.pathway-consent input:checked + .pathway-consent__indicator {
  border-color: var(--pathway-brand);
  background: var(--pathway-brand);
}

.pathway-choice input[type="checkbox"]:checked + .pathway-choice__indicator::after,
.pathway-consent input:checked + .pathway-consent__indicator::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.pathway-search {
  margin-top: 24px;
}

.pathway-search label,
.pathway-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--pathway-ink);
  font-size: 13px;
  font-weight: 600;
}

.pathway-search__control {
  position: relative;
  display: block;
}

.pathway-search__control svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--pathway-copy);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.pathway-search input,
.pathway-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--pathway-line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--pathway-ink);
  font: 400 16px/1.45 var(--font-primary, "Roboto", sans-serif);
  outline: none;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.pathway-search input {
  padding-left: 46px;
}

.pathway-search input:focus,
.pathway-field input:focus {
  border-color: var(--pathway-brand);
  box-shadow: 0 0 0 3px rgba(100, 37, 235, .12);
}

.pathway-search input[aria-invalid="true"],
.pathway-field input[aria-invalid="true"] {
  border-color: #c93434;
  box-shadow: 0 0 0 3px rgba(201, 52, 52, .1);
}

.pathway-fields {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.pathway-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pathway-field {
  min-width: 0;
}

.pathway-error {
  min-height: 0;
  margin: 8px 0 0;
  color: #a22222;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.pathway-error:empty {
  display: none;
}

.pathway-empty {
  margin: 10px 0 0;
  padding: 15px;
  border: 1px dashed var(--pathway-line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  color: var(--pathway-copy);
  font-size: 14px;
  text-align: left;
}

.pathway-course-state {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--pathway-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  color: var(--pathway-copy);
  font-size: 14px;
}

.pathway-course-state--error {
  display: grid;
  grid-template-columns: 1fr auto;
}

.pathway-course-state--error strong {
  color: var(--pathway-ink);
}

.pathway-course-state--error span {
  grid-column: 1;
}

.pathway-course-state--error button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.pathway-spinner {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid rgba(100, 37, 235, .2);
  border-top-color: var(--pathway-brand);
  border-radius: 50%;
  animation: pathway-spin 700ms linear infinite;
}

@keyframes pathway-spin { to { transform: rotate(360deg); } }

.pathway-link-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--pathway-brand);
  font: 600 14px/1 var(--font-primary, "Roboto", sans-serif);
  cursor: pointer;
}

.pathway-actions {
  display: flex;
  width: min(100%, 960px);
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 30px auto 0;
  padding-top: 18px;
}

.pathway-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 23px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 600 15px/1 var(--font-primary, "Roboto", sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.pathway-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.pathway-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.pathway-button--primary {
  min-width: 142px;
  border-color: var(--pathway-brand);
  background: var(--pathway-brand);
  color: #fff;
}

.pathway-button--primary:hover,
.pathway-button--primary:focus-visible {
  border-color: var(--pathway-brand-dark);
  background: var(--pathway-brand-dark);
  box-shadow: 0 7px 18px rgba(100, 37, 235, .16);
}

.pathway-button--secondary {
  min-width: 94px;
  border-color: var(--pathway-line-strong);
  background: #fff;
  color: var(--pathway-ink);
}

.pathway-button--secondary:hover,
.pathway-button--secondary:focus-visible {
  border-color: var(--pathway-brand);
  background: #faf8ff;
}

.pathway-button--link {
  margin-right: auto;
  padding-inline: 8px;
  background: transparent;
  color: var(--pathway-brand);
}

.pathway-submit-status {
  min-height: 21px;
  margin: 9px auto 0;
  color: var(--pathway-copy);
  font-size: 13px;
  text-align: right;
  width: min(100%, 960px);
}

.pathway-summary {
  margin-top: 24px;
  margin-bottom: 18px;
}

.pathway-consent__message {
  margin: 0 0 13px;
  color: var(--pathway-copy);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.pathway-consent {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--pathway-line);
  border-radius: 11px;
  background: #fff;
  color: var(--pathway-ink);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.pathway-consent:has(input:checked) {
  border-color: var(--pathway-brand);
  background: #faf8ff;
}

.pathway-consent:has(input:focus-visible) {
  outline: 3px solid var(--c-focus, rgba(100, 37, 235, .35));
  outline-offset: 2px;
}

.pathway-consent a {
  color: var(--pathway-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pathway-consent__note,
.pathway-success__note {
  margin: 12px 0 0;
  color: var(--pathway-copy);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.pathway-submission-error {
  width: min(100%, 620px);
  margin: auto;
  padding: 32px;
  border: 1px solid rgba(201, 52, 52, .22);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.pathway-submission-error__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff0ee;
  color: #a22222;
  font-size: 22px;
  font-weight: 600;
}

.pathway-submission-error h2 {
  color: var(--pathway-ink);
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
}

.pathway-submission-error p {
  margin-top: 12px;
  color: var(--pathway-copy);
  font-size: 15px;
}

.pathway-submission-error__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.pathway-exit-dialog {
  width: min(calc(100% - 32px), 440px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(17, 6, 41, .28);
}

.pathway-exit-dialog::backdrop {
  background: rgba(17, 6, 41, .58);
  backdrop-filter: blur(2px);
}

.pathway-exit-dialog__panel {
  padding: 30px;
  border-radius: 16px;
  background: #fff;
}

.pathway-exit-dialog h2 {
  color: var(--pathway-ink);
  font-size: 29px;
  line-height: 1.18;
  text-align: left;
  text-transform: none;
}

.pathway-exit-dialog p {
  margin-top: 12px;
  color: var(--pathway-copy);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.pathway-exit-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.pathway-success {
  display: grid;
  min-height: calc(100svh - 76px);
  place-items: center;
  padding: 56px 24px;
  background: var(--pathway-canvas);
}

.pathway-success__inner {
  width: min(100%, 920px);
  text-align: center;
}

.pathway-success__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--pathway-brand);
  color: #fff;
}

.pathway-success__mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.pathway-success__eyebrow {
  color: #23835a;
  text-align: center;
}

.pathway-success h1 {
  margin-inline: auto;
  text-align: center;
}

.pathway-success__message {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--pathway-copy);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.pathway-success__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.pathway-success__note {
  max-width: 660px;
  margin: 20px auto 0;
  text-align: center;
}

@media (max-width: 720px) {
  html.pathway-check-document #main {
    min-height: calc(100svh - 68px);
  }

  .pathway-app {
    min-height: calc(100svh - 68px);
  }

  .pathway-header {
    height: 68px;
  }

  .pathway-header__inner {
    padding-inline: 16px;
  }

  .pathway-header__logo img {
    width: 158px;
  }

  .pathway-check {
    min-height: calc(100svh - 68px);
    padding: 18px 18px calc(102px + env(safe-area-inset-bottom));
  }

  .pathway-check__inner {
    min-height: calc(100svh - 98px);
  }

  .pathway-form {
    min-height: calc(100svh - 118px);
    padding-top: 22px;
  }

  .pathway-form__screens {
    width: 100%;
  }

  .pathway-screen h1,
  .pathway-success h1 {
    font-size: clamp(32px, 9.4vw, 42px);
  }

  .pathway-choices--two,
  .pathway-fields--two {
    grid-template-columns: 1fr;
  }

  .pathway-choices--scroll {
    max-height: none;
    overflow: visible;
  }

  .pathway-choice {
    min-height: 68px;
  }

  .pathway-choice--compact {
    min-height: 56px;
  }

  .pathway-actions {
    position: fixed;
    z-index: 25;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(17, 6, 41, .1);
    background: rgba(241, 240, 252, .96);
    box-shadow: 0 -10px 28px rgba(17, 6, 41, .07);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .pathway-button--primary {
    min-width: 136px;
  }

  .pathway-submit-status {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pathway-context,
  .pathway-summary {
    padding: 12px 13px;
  }

  .pathway-submission-error {
    padding: 26px 20px;
  }

  .pathway-submission-error__actions,
  .pathway-success__actions {
    display: grid;
  }

  .pathway-success {
    min-height: calc(100svh - 68px);
    padding: 44px 20px;
  }

  .pathway-success__actions .pathway-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .pathway-check {
    padding-inline: 14px;
  }

  .pathway-screen h1 {
    font-size: 32px;
  }

  .pathway-screen__eyebrow {
    margin-bottom: 8px;
  }

  .pathway-fieldset,
  .pathway-fields {
    margin-top: 22px;
  }

  .pathway-actions {
    gap: 8px;
    padding-inline: 14px;
  }

  .pathway-button {
    min-height: 46px;
    padding-inline: 18px;
  }

  .pathway-button--secondary {
    min-width: 82px;
  }

  .pathway-button--link {
    padding-inline: 3px;
    font-size: 13px;
  }

  .pathway-exit-dialog__panel {
    padding: 24px 20px;
  }

  .pathway-exit-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .pathway-actions {
    gap: 6px;
    padding-inline: 10px;
  }

  .pathway-button--primary {
    min-width: 112px;
  }

  .pathway-button--secondary {
    min-width: 68px;
  }

  .pathway-button--link {
    white-space: nowrap;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathway-screen,
  .pathway-progress__fill,
  .pathway-choice,
  .pathway-button,
  .pathway-spinner {
    animation: none !important;
    transition: none !important;
  }
}
