.skipLink {
  background: #ffffff;
  border: 2px solid #b8944a;
  border-radius: 8px;
  color: #10243e;
  font-weight: 800;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 1000;
}

.skipLink:focus {
  top: 12px;
}

.authMsg.success {
  color: #365c3b;
}

.sourceControl {
  background: #f7f1e5;
  border-left: 3px solid #b8944a;
  color: #3f4f61;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 10px;
}

.sourceControl a {
  color: #12386f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
[role="button"],
input,
select,
a {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #d9ad45;
}

@media (max-width: 620px) {
  .modal {
    border-radius: 16px;
    max-height: 94vh;
    padding: 18px;
    width: 100%;
  }

  .authGate {
    align-items: flex-start;
    overflow-y: auto;
    padding: 10px;
  }

  .authShell {
    margin: 10px 0;
    width: 100%;
  }

  .adminTableWrap {
    max-width: calc(100vw - 44px);
  }

  button,
  .chip,
  .filter,
  .authTab {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Defer layout and paint work for the long-form curriculum below the dashboard. */
main > section:not(:first-child),
body > section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media print {
  .skipLink {
    display: none !important;
  }
}
.authRecoveryLink {
  color: #12386f;
  font-size: 0.82rem;
  font-weight: 800;
  justify-self: start;
}

.captchaHost {
  margin: 4px 0 8px;
  min-height: 65px;
}

.accountSecurityLink {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adminShortcut[hidden] {
  display: none !important;
}

/* Production alignment: keep the approved welcome composition centred. */
.welcomePanel {
  padding-left: clamp(18px, 3.5vw, 46px) !important;
  padding-right: clamp(18px, 3.5vw, 46px) !important;
}

.welcomePanel .heroCrest {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Production navigation: balanced desktop spacing and clear account controls. */
.top .nav {
  gap: 16px;
  height: 76px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1500px;
  padding: 0 20px;
  width: min(1500px, 96vw);
}

.top .brand {
  flex: 0 0 auto;
  white-space: nowrap;
}

.top .dashSearchTop {
  flex: 1 1 320px;
  margin-left: 8px;
  max-width: 430px;
  min-width: 240px;
}

.top .links {
  flex: 0 0 auto;
  gap: 14px;
  margin-left: 0;
  white-space: nowrap;
}

.top .memberMenu {
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.top .memberTag {
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top .accountSecurityLink {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.top .memberBtn {
  background: #d9ad45;
  color: #10243e;
  min-height: 40px;
  padding: 9px 14px;
}

@media (max-width: 1300px) {
  .top .nav {
    gap: 12px;
    padding: 0 14px;
  }

  .top .dashSearchTop {
    flex-basis: 260px;
    margin-left: 4px;
    min-width: 220px;
  }

  .top .links {
    gap: 10px;
    font-size: 13px;
  }

  .top .memberTag {
    max-width: 150px;
  }
}

@media (max-width: 1120px) {
  .top .nav {
    gap: 11px;
    padding: 0 14px;
  }

  .top .dashSearchTop {
    flex-basis: 230px;
    min-width: 180px;
  }

  .top .links {
    gap: 10px;
    font-size: 12px;
  }

  .top .memberTag {
    max-width: 125px;
  }
}

@media (max-width: 900px) {
  .top .dashSearchTop,
  .top .links {
    display: none;
  }

  .top .memberMenu {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .top .nav {
    padding: 0 10px;
  }

  .top .memberTag,
  .top .accountSecurityLink {
    display: none;
  }
}

/* Production responsive QA: keep secondary controls clear of learner content. */
@media (max-width: 1100px) {
  .v32MidNav {
    display: none !important;
  }

  .floating.askSilvestroV34 {
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    height: 60px !important;
    left: auto !important;
    min-width: 60px !important;
    padding: 5px !important;
    right: 14px !important;
    transform: none !important;
    width: 60px !important;
  }

  .floating.askSilvestroV34:hover {
    transform: translateY(-2px) !important;
  }

  .floating.askSilvestroV34 .mini {
    flex: 0 0 48px !important;
    height: 48px !important;
    width: 48px !important;
  }

  .floating.askSilvestroV34 .askSilvestroCopy {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}
