/* Site-specific additions on top of home-design.css. */

/* JS-toggled wrappers must not disturb the flex and grid gaps of what they wrap. */
.toggle { display: contents; }
.toggle[hidden], [hidden] { display: none !important; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 7px; background: #2E1E3D; color: #F6F0E4; font-family: 'Public Sans', system-ui, sans-serif; }
.skip-link:focus { top: 8px; }

/* Controls the design styled through inline state. */
.seg { flex: 1; min-height: 40px; border: none; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; background: transparent; color: #45395A; }
.seg[aria-pressed="true"] { background: #2E1E3D; color: #F6F0E4; }
.stage-name { text-align: left; padding: 8px 0; min-height: 44px; border: none; background: transparent; font: inherit; cursor: pointer; transition: color .25s; color: #45395A; }
.stage-name[aria-pressed="true"] { color: #86601F; font-weight: 600; }
.faq-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: #ECE4F6; color: #41276B; display: inline-flex; align-items: center; justify-content: center; line-height: 1; transition: transform .25s; }
[aria-expanded="true"] > .faq-ico { transform: rotate(45deg); }
.st-btn { min-width: 44px; min-height: 36px; padding: 0 8px; border: none; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; background: #F6F0E4; color: #45395A; }
.st-btn[aria-pressed="true"] { background: #2E1E3D; color: #F6F0E4; }
.spots-track { height: 8px; border-radius: 999px; background: #EFE4D2; overflow: hidden; }
.spots-fill { height: 100%; width: 0; background: #DCB264; }
.pack-link, .pack-link:hover { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; min-height: 48px; box-sizing: border-box; border-radius: 10px; background: #F6F0E4; color: #2E1E3D; text-decoration: none; font-weight: 600; }
.pack-link:hover { background: #EFE4D2; }
.file-input { font: inherit; font-size: 15px; color: #2E1E3D; max-width: 100%; min-height: 44px; }
.file-list { overflow-wrap: anywhere; }
.file-list:empty { display: none; }
#formArea .opt a { overflow-wrap: anywhere; }

/* A little air above the form when a deep link lands on it. */
#apply, #formCard, #practice { scroll-margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Log in: one menu, two products (from the previous site chrome). */
.login-menu { position: relative; display: inline-flex; }
.login-menu-btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; cursor: pointer; }
.login-menu-btn.lnk { background: none; border: 0; padding: 0; font-size: 15px; color: #2E1E3D; }
.login-menu-btn.pg-login { border: 0; }
.login-menu-chev { width: 14px; height: 14px; flex: none; transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.login-menu-btn[aria-expanded="true"] .login-menu-chev { transform: rotate(180deg); }
.login-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 190px; padding: 6px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 10px 15px -3px rgba(35, 26, 46, 0.14); }
.login-menu-panel[hidden] { display: none; }
.login-menu-item { display: block; padding: 10px 12px; border-radius: 7px; text-decoration: none; }
.login-menu-item:hover, .login-menu-item:focus-visible { background: #F5F2ED; }
.login-menu-label { font-size: 14px; font-weight: 600; color: #231A2E; line-height: 1.3; }

.split-grid > * { min-width: 0; }
#oneCount { flex: none; white-space: nowrap; }
#apply li svg { flex: none; }

/* Phones: every control is a comfortable tap. */
@media (max-width: 760px) {
  .pg-top .pg-login-menu { display: none; }
  .st-btn { min-height: 44px; }
  .st-box { max-height: 240px; }
  .opt { min-height: 44px; align-items: center; }
  .role { min-height: 44px; }
  .lsw button { min-height: 44px; }
  .seg { min-height: 44px; }
}
@media (max-width: 480px) {
  /* The logo and the lane switch need the whole header; Apply stays in the hero below. */
  .pro .adv-top .adv-login { display: none; }
  #formCard { padding: 24px 20px !important; }
  .lsw-light button { flex: 1 1 auto; padding: 0 8px; }
}
