/*
 * AAMS 1.6.46 uncodixfy pass.
 *
 * The canonical 8 July header, footer, presentation hero, Poppins typography
 * and ambient light are protected brand elements. This layer removes generic
 * SaaS treatment from the site body and product surfaces without changing that
 * shell or the RRCS interaction model.
 */

:root {
  --aams-ui-radius: 8px;
  --aams-ui-surface: #07131f;
  --aams-ui-surface-raised: #0a1928;
  --aams-ui-line: rgba(196, 221, 239, 0.18);
  --aams-ui-blue: #3b82f6;
  --aams-ui-green: #21b889;
}

.aams-body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

/* Buttons behave like controls, not floating promotional objects. */
.aams-page-shell .aams-button,
.aams-page-shell .wl-button,
.aams-account-workspace button,
.aams-assessment-wrap :is(button, .wl-button),
.aams-july-page :is(button, .aams-button) {
  border-radius: var(--aams-ui-radius) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease !important;
}

.aams-page-shell .aams-button-primary,
.aams-page-shell .wl-button:not(.wl-button-secondary):not(.wl-button-danger),
.aams-account-workspace button[type="submit"],
.aams-assessment-wrap button[type="submit"] {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #fff !important;
}

.aams-page-shell .aams-button-secondary,
.aams-page-shell .wl-button-secondary,
.aams-account-workspace .wl-button-secondary {
  border-color: var(--aams-ui-line) !important;
  background: transparent !important;
  color: #e7eef6 !important;
}

/* Homepage chapters: editorial hierarchy replaces uniform card walls. */
.aams-july-reasons {
  gap: 0;
  border-top: 1px solid var(--aams-ui-line);
  border-bottom: 1px solid var(--aams-ui-line);
}

.aams-july-reason {
  min-height: 0;
  padding: 28px 30px;
  border: 0;
  border-left: 3px solid var(--aams-ui-green);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aams-july-reason:nth-child(odd) {
  border-right: 1px solid var(--aams-ui-line);
}

.aams-july-reason:nth-child(-n + 2) {
  border-bottom: 1px solid var(--aams-ui-line);
}

.aams-july-reason > span {
  display: none;
}

.aams-july-reason h3 {
  margin-bottom: 9px;
  color: #f4f7fb !important;
  font-size: 21px;
}

.aams-july-reason p {
  font-size: 15px;
}

.aams-july-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 24px;
  align-items: center;
  padding: 25px 27px;
  border: 1px solid var(--aams-ui-line);
  border-radius: var(--aams-ui-radius);
  background: var(--aams-ui-surface);
  box-shadow: none;
  text-align: left;
}

.aams-july-choice p {
  margin: 0;
}

.aams-july-choice .aams-button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.aams-july-feature-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.825fr) minmax(0, 0.825fr);
  gap: 0;
  border-top: 1px solid var(--aams-ui-line);
  border-bottom: 1px solid var(--aams-ui-line);
}

.aams-july-feature-grid article {
  padding: 29px 30px;
  border: 0;
  border-right: 1px solid var(--aams-ui-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.aams-july-feature-grid article:last-child {
  border-right: 0;
}

.aams-july-feature-grid article:hover {
  box-shadow: none;
  transform: none;
}

.aams-july-feature-icon {
  display: none;
}

.aams-july-feature-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.aams-july-feature-grid p {
  font-size: 14px;
}

.aams-july-paths {
  background: #030912;
}

.aams-july-path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--aams-ui-line);
  border-bottom: 1px solid var(--aams-ui-line);
}

.aams-july-path {
  min-height: 0;
  padding: 27px 30px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.aams-july-path:nth-child(odd) {
  border-right: 1px solid var(--aams-ui-line);
}

.aams-july-path:nth-child(-n + 2) {
  border-bottom: 1px solid var(--aams-ui-line);
}

.aams-july-path > span {
  color: #8fa8bb !important;
  font-size: 10px;
}

.aams-july-path h3 {
  margin: 7px 0 8px;
  font-size: 22px;
}

.aams-july-path a {
  margin-top: 15px;
  padding-top: 0;
  color: #8fc5ff;
  font-size: 13px;
}

.aams-home-final-panel {
  border: 1px solid var(--aams-ui-line) !important;
  border-radius: var(--aams-ui-radius) !important;
  background: var(--aams-ui-surface) !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Public resources and language gateways: content first, decoration second. */
.aams-resource-hero-guide,
.aams-library-hero,
.aams-gateway-panel,
.aams-resource-callout {
  border-radius: var(--aams-ui-radius) !important;
  background: var(--aams-ui-surface) !important;
  box-shadow: none !important;
}

.aams-resource-hero-guide,
.aams-library-hero {
  padding: 54px 34px 32px;
  text-align: left;
}

.aams-resource-hero-content,
.aams-library-hero-content {
  max-width: 720px;
  margin: 0;
}

.aams-resource-hero p:not(.aams-resource-kicker) {
  margin-right: 0;
  margin-left: 0;
}

.aams-resource-kicker,
.aams-library-hero .aams-kicker,
.aams-library-catalog .wl-auth-kicker {
  display: none;
}

.aams-resource-hero h1,
.aams-library-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
}

.aams-library-catalog .wl-lead-magnets__grid {
  gap: 0;
  border-top: 1px solid var(--aams-ui-line);
}

.aams-library-catalog .wl-lead-magnet-card,
.aams-library-catalog .wl-lead-magnet-card:nth-child(n) {
  min-height: 0;
  padding: 25px 27px;
  border: 0;
  border-right: 1px solid var(--aams-ui-line);
  border-bottom: 1px solid var(--aams-ui-line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
}

.aams-library-catalog .wl-lead-magnet-card:nth-child(even) {
  border-right: 0;
}

.aams-library-catalog .wl-lead-magnet-card::before {
  display: none;
}

.aams-library-catalog .wl-lead-magnet-card:hover {
  border-color: var(--aams-ui-line);
  box-shadow: none !important;
  transform: none;
}

.aams-library-catalog .wl-lead-magnet-card__meta {
  gap: 8px 14px;
}

.aams-library-catalog .wl-lead-magnet-card__meta span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8fa8bb;
}

/* Authentication, registration and account forms. */
.aams-auth-page .wl-auth {
  max-width: 760px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aams-auth-page .wl-auth-kicker {
  display: none;
}

.aams-page-shell :is(.wl-auth-card, .wl-gate-card, .wl-profile-panel) {
  border: 1px solid var(--aams-ui-line) !important;
  border-radius: var(--aams-ui-radius) !important;
  background: var(--aams-ui-surface) !important;
  box-shadow: none !important;
}

.aams-auth-page :is(input[type="submit"], button[type="submit"]) {
  border: 1px solid #2563eb !important;
  border-radius: var(--aams-ui-radius) !important;
  background: #2563eb !important;
  box-shadow: none !important;
  color: #fff !important;
  transform: none !important;
}

.aams-page-shell.aams-auth-page .wl-auth .wl-auth-card :is(input[type="submit"], button[type="submit"]) {
  background-color: #2563eb !important;
  background-image: none !important;
}

.aams-page-shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-radius: 6px !important;
  background: #030b14 !important;
  box-shadow: none !important;
}

/* Dashboard: a stable workspace with one clear navigation rail. */
.aams-dashboard-shell .wl-dashboard[data-wl-dashboard-workspace] {
  gap: 25px;
}

.aams-dashboard-shell .wl-dashboard[data-wl-dashboard-workspace] > .wl-dashboard-hero {
  padding: 0;
}

.aams-dashboard-shell .wl-dashboard[data-wl-dashboard-workspace] > .wl-dashboard-hero .wl-auth-kicker,
.aams-dashboard-shell .wl-tab-panel__eyebrow,
.aams-dashboard-shell .wl-dashboard-panel .wl-auth-kicker {
  display: none;
}

.aams-dashboard-shell .wl-dashboard[data-wl-dashboard-workspace] > .wl-dashboard-hero h1 {
  font-size: clamp(26px, 3.3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.aams-dashboard-shell .wl-dashboard[data-wl-dashboard-workspace] > .wl-dashboard-hero p:last-child {
  max-width: 680px;
  margin-top: 7px;
  color: #9db0bd;
  font-size: 13px;
}

.aams-dashboard-shell .wl-dashboard-app {
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 32px;
}

.aams-dashboard-shell .wl-dashboard-sidebar {
  top: 118px;
  gap: 2px;
  padding: 0 20px 0 0;
  border: 0;
  border-right: 1px solid var(--aams-ui-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aams-dashboard-shell .wl-dashboard-sidebar [role="tab"] {
  display: block;
  min-height: 42px;
  padding: 10px 12px;
  border: 0 !important;
  border-left: 2px solid transparent !important;
  border-radius: 0;
  background: transparent !important;
  color: #a9bbc7;
  font-size: 12px;
  font-weight: 600;
}

.aams-dashboard-shell .wl-dashboard-sidebar [role="tab"]:hover,
.aams-dashboard-shell .wl-dashboard-sidebar [role="tab"]:focus-visible {
  border-left-color: #56738a !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #fff;
}

.aams-dashboard-shell .wl-dashboard-sidebar [role="tab"][aria-selected="true"] {
  border-left-color: var(--aams-ui-green) !important;
  background: rgba(33, 184, 137, 0.08) !important;
  color: #fff;
}

.aams-dashboard-shell .wl-dashboard-tab-index {
  display: none;
}

.aams-dashboard-shell .wl-dashboard-panel {
  gap: 16px;
  animation: none;
}

.aams-dashboard-shell :is(
  .wl-profile-summary > div,
  .wl-dashboard-card,
  .wl-onboarding,
  .wl-profile-panel,
  .wl-notification-center,
  .wl-download-history,
  .wl-assessment-archive,
  .wl-compliance-score,
  .wl-knowledge-hub,
  .wl-tab-panel,
  .wl-library-resource
) {
  border: 1px solid var(--aams-ui-line) !important;
  border-radius: var(--aams-ui-radius) !important;
  background: var(--aams-ui-surface) !important;
  box-shadow: none !important;
  transform: none !important;
}

.aams-dashboard-shell .wl-dashboard-grid {
  gap: 0;
  border-top: 1px solid var(--aams-ui-line);
  border-left: 1px solid var(--aams-ui-line);
}

.aams-dashboard-shell .wl-dashboard-card {
  border-top: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
}

.aams-dashboard-shell .wl-dashboard-card:hover,
.aams-dashboard-shell .wl-dashboard-card:focus-visible {
  background: var(--aams-ui-surface-raised) !important;
  box-shadow: none !important;
  transform: none !important;
}

.aams-dashboard-shell .wl-onboarding__steps {
  gap: 0;
  border-top: 1px solid var(--aams-ui-line);
}

.aams-dashboard-shell .wl-onboarding__steps li {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--aams-ui-line);
  border-radius: 0;
  background: transparent;
}

.aams-dashboard-shell .wl-onboarding__number {
  display: none;
}

.aams-dashboard-shell .wl-onboarding__body {
  grid-column: 1;
}

.aams-dashboard-shell .wl-onboarding__steps li > .wl-button {
  grid-column: 2;
  width: auto;
  min-width: 145px;
}

.aams-dashboard-shell .wl-onboarding__status {
  color: #8fa8bb !important;
}

.aams-dashboard-shell .wl-onboarding__status,
.aams-dashboard-shell .wl-notification-count,
.aams-dashboard-shell .wl-assessment-archive__meta span,
.aams-dashboard-shell .wl-notification-item__meta span {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aams-dashboard-shell :is(.wl-download-history__list li, .wl-assessment-archive__item, .wl-notification-item) {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aams-dashboard-shell .wl-tab-list {
  gap: 0;
  border-bottom: 1px solid var(--aams-ui-line);
  background: transparent;
}

.aams-dashboard-shell .wl-tab-list button {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.aams-dashboard-shell .wl-tab-list button[aria-selected="true"] {
  border-bottom-color: var(--aams-ui-blue) !important;
  background: transparent !important;
}

.aams-dashboard-shell .wl-library-resource__icon {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8fa8bb;
  font-size: 10px;
}

/* Real RRCS data remains intact; the presentation no longer implies a gauge. */
.aams-dashboard-shell .wl-rrcs-mini-ring,
.aams-dashboard-shell .wl-rrcs-mini-ring.is-compact,
.aams-dashboard-shell .wl-assessment-archive__visual .wl-rrcs-mini-ring {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  flex-basis: auto;
}

.aams-dashboard-shell .wl-rrcs-mini-ring svg {
  display: none;
}

.aams-dashboard-shell .wl-rrcs-mini-ring > div {
  position: static;
  display: block;
}

.aams-dashboard-shell .wl-rrcs-mini-ring strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.aams-dashboard-shell .wl-rrcs-mini-ring small {
  margin-top: 2px;
  text-transform: none;
}

/* RRCS public and private result panels use status, facts and next steps. */
.aams-assessment-wrap :is(.wl-rrcs-disclosure, .wl-rrcs-public-result),
.aams-dashboard-shell .wl-rrcs-public-result {
  border-radius: var(--aams-ui-radius) !important;
  background: var(--aams-ui-surface) !important;
  box-shadow: none !important;
}

.aams-assessment-wrap .wl-rrcs-disclosure__mark {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--aams-ui-green);
}

.aams-assessment-wrap .wl-rrcs-public-ring {
  display: block;
  width: auto;
  height: auto;
}

.aams-assessment-wrap .wl-rrcs-public-ring svg {
  display: none;
}

.aams-assessment-wrap .wl-rrcs-public-ring strong,
.aams-assessment-wrap .wl-rrcs-public-ring small {
  position: static;
  display: block;
}

.aams-assessment-wrap .wl-rrcs-public-result__facts div,
.aams-assessment-wrap .rrcs-result-fact {
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.aams-assessment-progress,
.aams-assessment-form,
.aams-save-panel {
  border-radius: var(--aams-ui-radius) !important;
  background: var(--aams-ui-surface) !important;
  box-shadow: none !important;
}

/* Reconstructed pages lose canned template motion. Literal July pages do not. */
.aams-july-page [class*="rounded-"] {
  border-radius: var(--aams-ui-radius) !important;
}

.aams-july-page [class*="shadow-"] {
  box-shadow: none !important;
}

.aams-july-page :is(.hover-lift, [class*="hover:-translate"], [class*="hover:scale"]):hover {
  box-shadow: none !important;
  transform: none !important;
}

.aams-july-community,
.aams-july-tier-label {
  border-radius: 4px;
}

.aams-july-aep-signal-grid,
.aams-july-aep-rrcs-steps {
  gap: 0;
  border: 1px solid var(--aams-ui-line);
}

.aams-july-aep-signal-grid article,
.aams-july-aep-rrcs-steps section {
  border: 0;
  border-right: 1px solid var(--aams-ui-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aams-july-aep-signal-grid article:last-child,
.aams-july-aep-rrcs-steps section:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .aams-july-feature-grid {
    grid-template-columns: 1fr;
  }

  .aams-july-feature-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--aams-ui-line);
  }

  .aams-july-feature-grid article:last-child {
    border-bottom: 0;
  }

  .aams-dashboard-shell .wl-dashboard-app {
    grid-template-columns: 1fr;
  }

  .aams-dashboard-shell .wl-dashboard-sidebar {
    top: 78px;
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--aams-ui-line);
    background: #030912;
  }

  .aams-dashboard-shell .wl-dashboard-sidebar [role="tab"] {
    border-left: 0 !important;
    border-bottom: 2px solid transparent !important;
  }

  .aams-dashboard-shell .wl-dashboard-sidebar [role="tab"]:hover,
  .aams-dashboard-shell .wl-dashboard-sidebar [role="tab"]:focus-visible,
  .aams-dashboard-shell .wl-dashboard-sidebar [role="tab"][aria-selected="true"] {
    border-left: 0 !important;
    border-bottom-color: var(--aams-ui-green) !important;
  }

  .aams-july-aep-signal-grid,
  .aams-july-aep-rrcs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .aams-july-reasons,
  .aams-july-path-grid {
    grid-template-columns: 1fr;
  }

  .aams-july-reason,
  .aams-july-reason:nth-child(odd),
  .aams-july-reason:nth-child(-n + 2),
  .aams-july-path,
  .aams-july-path:nth-child(odd),
  .aams-july-path:nth-child(-n + 2) {
    padding: 22px 19px;
    border-right: 0;
    border-bottom: 1px solid var(--aams-ui-line);
  }

  .aams-july-reason:last-child,
  .aams-july-path:last-child {
    border-bottom: 0;
  }

  .aams-july-choice {
    grid-template-columns: 1fr;
    padding: 22px 19px;
  }

  .aams-july-choice .aams-button {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin-top: 12px;
  }

  .aams-resource-hero-guide,
  .aams-library-hero {
    padding: 34px 20px 24px;
  }

  .aams-library-catalog .wl-lead-magnet-card,
  .aams-library-catalog .wl-lead-magnet-card:nth-child(n) {
    grid-column: 1 / -1;
    padding: 22px 19px;
    border-right: 0;
  }

  .aams-dashboard-shell .wl-dashboard-sidebar {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px;
  }

  .aams-dashboard-shell .wl-dashboard-sidebar [role="tab"] {
    min-height: 46px;
    padding: 11px 12px;
  }

  .aams-dashboard-shell .wl-onboarding__steps li {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aams-dashboard-shell .wl-onboarding__body,
  .aams-dashboard-shell .wl-onboarding__steps li > .wl-button {
    grid-column: 1;
  }

  .aams-dashboard-shell .wl-onboarding__steps li > .wl-button {
    width: 100%;
  }

  .aams-july-aep-signal-grid,
  .aams-july-aep-rrcs-steps {
    grid-template-columns: 1fr;
  }

  .aams-july-aep-signal-grid article,
  .aams-july-aep-rrcs-steps section {
    border-right: 0;
    border-bottom: 1px solid var(--aams-ui-line);
  }

  .aams-july-aep-signal-grid article:last-child,
  .aams-july-aep-rrcs-steps section:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aams-page-shell *,
  .aams-account-workspace *,
  .aams-assessment-wrap *,
  .aams-july-page * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
