/* WOW ATLAS Global 2 — UA2. Staging-only UI/authors corrections. */

html.wa-ua1-active {
  --ua1-green: #103f38;
  --ua1-green-soft: #1d675c;
  --ua1-coral: #f45a48;
  --ua1-paper: #fffdf7;
  --ua1-cream: #fbf7ee;
  --ua1-mint: #cce5dd;
  --ua1-purple: #d9d1e8;
}

/* Post-onboarding registration: fixed to the application viewport. */
html.wa-ua1-active .g2-auth[data-ua1-locked="true"] {
  max-width: 100% !important;
  overscroll-behavior-x: none !important;
}

html.wa-ua1-active .g2-auth[data-ua1-locked="true"] {
  overflow-x: hidden !important;
  touch-action: pan-y !important;
}

html.wa-ua1-active .g2-auth[data-ua1-locked="true"] {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: clamp(17px, 5vw, 34px) !important;
}

html.wa-ua1-active .g2-auth[data-ua1-locked="true"] *,
html.wa-ua1-active .g2-auth[data-ua1-locked="true"] input,
html.wa-ua1-active .g2-auth[data-ua1-locked="true"] label {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

html.wa-ua1-active .g2-auth[data-ua1-locked="true"] > img[hidden] {
  display: none !important;
}

html.wa-ua1-active .g2-auth .ua1-auth-brand {
  position: absolute;
  top: max(31px, calc(env(safe-area-inset-top) + 21px));
  left: 50%;
  display: block;
  transform: translateX(-50%);
  color: var(--ua1-green);
  font: 900 12px/1 var(--wow-sans, "Helvetica", Arial, sans-serif);
  letter-spacing: .24em;
  white-space: nowrap;
}

html.wa-ua1-active .g2-auth[data-ua1-locked="true"] > .g2-back {
  float: none !important;
  position: relative;
  z-index: 2;
  margin-bottom: 44px !important;
}

/* Rich illustrations supplied by the owner; decorative and non-interactive. */
html.wa-ua1-active .g2-personal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html.wa-ua1-active .g2-personal-card > * {
  position: relative;
  z-index: 2;
}

html.wa-ua1-active .g2-personal-card::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

html.wa-ua1-active .g2-personal-card--passport::after {
  right: -9%;
  bottom: -17%;
  width: 64%;
  height: 94%;
  opacity: .38;
  mix-blend-mode: multiply;
  background-image: url("/assets/ui-authors-ua1/art/home-passport.webp");
}

html.wa-ua1-active .g2-personal-card--club::after {
  right: -7%;
  bottom: -12%;
  width: 62%;
  height: 91%;
  opacity: .22;
  background-image: url("/assets/ui-authors-ua1/art/home-club.webp");
}

html.wa-ua1-active .g2-personal-card--saved::after {
  right: -7%;
  bottom: -9%;
  width: 66%;
  height: 80%;
  opacity: .79;
  background-image: url("/assets/ui-authors-ua1/art/home-offline.webp");
}

html.wa-ua1-active .g2-personal-card--stories::after {
  right: -9%;
  bottom: -13%;
  width: 61%;
  height: 86%;
  opacity: .8;
  background-image: url("/assets/ui-authors-ua1/art/home-stories.webp");
}

html.wa-ua1-active .g2-personal-card--missions::after {
  left: 4%;
  right: 2%;
  bottom: -3%;
  height: 47%;
  opacity: .54;
  background-position: bottom center;
  background-image: url("/assets/ui-authors-ua1/art/home-missions.webp");
}

/* Guest Passport: dark-green actions must always remain readable. */
html.wa-ua1-active .g2-passport button[data-ua1-dark-button="true"],
html.wa-ua1-active .g2-passport button[data-ua1-dark-button="true"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* Registration arrow keeps a dedicated column and never covers the label. */
html.wa-ua1-active .g2-auth .g2-primary-action {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 32px !important;
  align-items: center !important;
  column-gap: 14px !important;
  padding-right: 17px !important;
}

html.wa-ua1-active .g2-auth .g2-primary-action > strong {
  min-width: 0 !important;
  text-align: center !important;
}

html.wa-ua1-active .g2-auth .g2-primary-action > b,
html.wa-ua1-active .g2-auth .g2-primary-action > app-g2-icon {
  position: static !important;
  inset: auto !important;
  width: 28px !important;
  margin: 0 !important;
  justify-self: end !important;
}

/* The guest profile card uses the same white contrast as Guest Passport. */
html.wa-ua1-active .g2-user-profile .g2-user-avatar > strong,
html.wa-ua1-active .g2-user-profile .g2-user-avatar > strong * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* Profile spacing and persisted inline display-name editor. */
html.wa-ua1-active .g2-user-profile[data-ua1-profile="true"] > .g2-back {
  margin-bottom: 31px !important;
}

html.wa-ua1-active .g2-user-profile[data-ua1-profile="true"] > .g2-kicker,
html.wa-ua1-active .g2-user-profile[data-ua1-profile="true"] > small {
  display: block;
  clear: both;
  margin-top: 0 !important;
}

html.wa-ua1-active .g2-user-profile[data-ua1-profile="true"] > h1 {
  margin-top: 10px !important;
  max-width: 100%;
}

html.wa-ua1-active .ua1-name-editor {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 9px;
  align-items: center;
}

html.wa-ua1-active .ua1-name-editor__field {
  min-width: 0;
  height: 62px;
  border-bottom: 2px solid rgba(16, 63, 56, .28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

html.wa-ua1-active .ua1-name-editor input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--ua1-green);
  background: transparent;
  font: 700 clamp(34px, 8vw, 49px)/1 var(--wow-serif, Georgia, serif);
  letter-spacing: -.025em;
}

html.wa-ua1-active .ua1-name-editor input::placeholder {
  color: rgba(16, 63, 56, .45);
  opacity: 1;
}

html.wa-ua1-active .ua1-name-editor__field:focus-within {
  border-bottom-color: var(--ua1-coral);
}

html.wa-ua1-active .ua1-name-editor__field > i {
  color: var(--ua1-coral);
  font: 500 38px/1 var(--wow-serif, Georgia, serif);
  animation: ua1-name-caret 1.85s ease-in-out infinite;
}

html.wa-ua1-active .ua1-name-editor > button {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ua1-green);
  box-shadow: 0 10px 22px rgba(16, 63, 56, .18);
  font: 900 23px/1 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua1-name-editor[data-saving="true"] > button {
  opacity: .56;
  cursor: wait;
}

html.wa-ua1-active .ua1-name-editor > small {
  grid-column: 1 / -1;
  min-height: 16px;
  color: rgba(16, 63, 56, .7);
  font: 700 10px/1.4 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .03em;
}

html.wa-ua1-active .ua1-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Shared Global 2 bottom-sheet language for city and author selectors. */
html.wa-ua1-active.ua1-sheet-open {
  overflow: hidden;
}

html.wa-ua1-active .ua1-modal-layer {
  position: absolute;
  z-index: 6500;
  inset: 0;
  display: grid;
  align-items: end;
}

html.wa-ua1-active .ua1-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(6, 37, 32, .38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

html.wa-ua1-active .ua1-sheet {
  position: relative;
  z-index: 2;
  max-height: min(82dvh, 760px);
  margin: 14px;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 34px;
  color: var(--ua1-green);
  background:
    radial-gradient(circle at 92% 0, rgba(244, 90, 72, .14), transparent 28%),
    rgba(255, 253, 247, .98);
  box-shadow: 0 24px 70px rgba(5, 35, 30, .3);
  animation: ua1-sheet-enter .34s cubic-bezier(.2, .8, .2, 1) both;
}

html.wa-ua1-active .ua1-sheet > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 12px;
  align-items: start;
  margin-bottom: 17px;
}

html.wa-ua1-active .ua1-sheet > header small,
html.wa-ua1-active .ua1-author-selector small {
  display: block;
  color: var(--ua1-coral);
  font: 900 9px/1.2 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .13em;
}

html.wa-ua1-active .ua1-sheet h2 {
  margin: 5px 0 0;
  font: 700 clamp(31px, 8vw, 43px)/.98 var(--wow-serif, Georgia, serif);
  letter-spacing: -.03em;
}

html.wa-ua1-active .ua1-sheet-close {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 18px;
  color: var(--ua1-green);
  background: #fff;
  box-shadow: 0 9px 22px rgba(16, 63, 56, .12);
  font: 400 29px/1 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua1-city-list,
html.wa-ua1-active .ua1-author-list {
  display: grid;
  gap: 9px;
}

html.wa-ua1-active .ua1-city-list > button,
html.wa-ua1-active .ua1-author-list > button {
  width: 100%;
  min-height: 77px;
  border: 1px solid rgba(16, 63, 56, .09);
  border-radius: 23px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--ua1-green);
  background: rgba(204, 229, 221, .42);
}

html.wa-ua1-active .ua1-city-list > button[aria-current="true"],
html.wa-ua1-active .ua1-author-list > button[aria-current="true"] {
  border-color: rgba(244, 90, 72, .36);
  background: rgba(244, 90, 72, .1);
}

html.wa-ua1-active .ua1-city-list > button > b {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ua1-green);
  font: 900 11px/1 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .08em;
}

html.wa-ua1-active .ua1-city-list strong,
html.wa-ua1-active .ua1-author-list strong,
html.wa-ua1-active .ua1-author-selector strong {
  display: block;
  font: 700 18px/1.1 var(--wow-serif, Georgia, serif);
}

html.wa-ua1-active .ua1-city-list small,
html.wa-ua1-active .ua1-author-list small {
  display: block;
  margin-top: 4px;
  color: rgba(16, 63, 56, .61);
  font: 700 9px/1.25 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua1-city-list i,
html.wa-ua1-active .ua1-author-list i,
html.wa-ua1-active .ua1-author-selector > i {
  color: var(--ua1-coral);
  font: normal 900 20px/1 var(--wow-sans, Arial, sans-serif);
  text-align: center;
}

html.wa-ua1-active .ua1-city-sheet > p {
  margin: 14px 2px 0;
  color: rgba(16, 63, 56, .66);
  font: 700 10px/1.45 var(--wow-sans, Arial, sans-serif);
}

/* Authors selector sits between native filters and native route cards. */
html.wa-ua1-active .ua1-author-selector {
  width: 100%;
  min-height: 78px;
  margin: 14px 0 17px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 25px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--ua1-green);
  background: rgba(255, 253, 247, .92);
  box-shadow: 0 12px 27px rgba(16, 63, 56, .1);
}

html.wa-ua1-active .ua1-author-selector__avatars {
  min-width: 92px;
  display: flex;
  align-items: center;
}

html.wa-ua1-active .ua1-author-selector__avatars > .ua1-mini-avatar + .ua1-mini-avatar {
  margin-left: -14px;
}

html.wa-ua1-active .ua1-mini-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 3px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ua1-green);
  background: linear-gradient(145deg, #f3c6b2, #d9d1e8);
  box-shadow: 0 7px 16px rgba(16, 63, 56, .12);
}

html.wa-ua1-active .ua1-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.wa-ua1-active .ua1-mini-avatar b {
  font: 900 14px/1 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua1-all-authors {
  border-radius: 50%;
  color: #fff;
  background: var(--ua1-green);
}

html.wa-ua1-active .g2-place-list > .g2-place-row[hidden],
html.wa-ua1-active .g2-author-routes > button[hidden] {
  display: none !important;
}

/* Author data from the staging CMS replaces the old hard-coded Anna profile. */
html.wa-ua1-active .g2-author-portrait > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

html.wa-ua1-active .g2-author-summary .g2-avatar {
  overflow: hidden;
}

html.wa-ua1-active .g2-author-summary .g2-avatar > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* Prototype-only Anna data is hidden until matching CMS fields exist. */
html.wa-ua1-active .g2-author-summary[data-ua1-author] > img,
html.wa-ua1-active .g2-author-summary[data-ua1-author] > div,
html.wa-ua1-active .g2-author[data-ua1-managed="true"] .g2-author-stats,
html.wa-ua1-active .g2-author[data-ua1-managed="true"] > blockquote,
html.wa-ua1-active .g2-author[data-ua1-managed="true"] .g2-author-actions > button + button {
  display: none !important;
}

html.wa-ua1-active .g2-author[data-ua1-managed="true"] .g2-author-actions {
  grid-template-columns: 1fr;
}

/* Direct author page opened from the selector. */
html.wa-ua1-active .ua2-author-page {
  position: absolute;
  z-index: 42;
  inset: 0 0 86px;
  padding: max(26px, env(safe-area-inset-top)) 22px 42px;
  overflow: auto;
  color: var(--ua1-green);
  background:
    radial-gradient(circle at 88% 7%, rgba(244, 90, 72, .17), transparent 30%),
    linear-gradient(165deg, #e3f1ec 0%, #fbf7ee 58%, #f6dfd4 100%);
  overscroll-behavior: contain;
}

html.wa-ua1-active .ua2-author-page__back {
  min-height: 48px;
  margin: 0 0 22px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  color: var(--ua1-green);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 9px 24px rgba(16, 63, 56, .1);
  font: 800 12px/1 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua2-author-page__hero {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 21px;
}

html.wa-ua1-active .ua2-author-page__portrait {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border: 5px solid rgba(255, 255, 255, .94);
  border-radius: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--ua1-coral), #d9d1e8);
  box-shadow: 0 15px 34px rgba(16, 63, 56, .17);
}

html.wa-ua1-active .ua2-author-page__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.wa-ua1-active .ua2-author-page__portrait b {
  font: 900 30px/1 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua2-author-page__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

html.wa-ua1-active .ua2-author-page__badges span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ua1-green);
  font: 900 9px/1 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .06em;
}

html.wa-ua1-active .ua2-author-page > small {
  color: var(--ua1-coral);
  font: 900 9px/1.3 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .13em;
}

html.wa-ua1-active .ua2-author-page > h1 {
  margin: 8px 0 11px;
  font: 700 clamp(42px, 11vw, 62px)/.94 var(--wow-serif, Georgia, serif);
  letter-spacing: -.045em;
}

html.wa-ua1-active .ua2-author-page > p {
  max-width: 570px;
  margin: 0 0 28px;
  color: rgba(16, 63, 56, .72);
  font: 600 14px/1.55 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua2-author-page__routes-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: end;
  margin-bottom: 12px;
}

html.wa-ua1-active .ua2-author-page__routes-title > span {
  grid-column: 1 / -1;
  color: var(--ua1-coral);
  font: 900 9px/1.2 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .12em;
}

html.wa-ua1-active .ua2-author-page__routes-title > strong {
  font: 700 28px/1 var(--wow-serif, Georgia, serif);
}

html.wa-ua1-active .ua2-author-page__routes-title > b {
  font: 800 10px/1.3 var(--wow-sans, Arial, sans-serif);
}

html.wa-ua1-active .ua2-author-page__routes {
  display: grid;
  gap: 10px;
}

html.wa-ua1-active .ua2-author-page__routes > button {
  min-height: 94px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 25px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  color: var(--ua1-green);
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 12px 30px rgba(16, 63, 56, .08);
  text-align: left;
}

html.wa-ua1-active .ua2-author-page__routes > button > b {
  color: var(--ua1-coral);
  font: 700 26px/1 var(--wow-serif, Georgia, serif);
}

html.wa-ua1-active .ua2-author-page__routes small {
  display: block;
  margin-bottom: 5px;
  color: rgba(16, 63, 56, .58);
  font: 800 8px/1.2 var(--wow-sans, Arial, sans-serif);
  letter-spacing: .08em;
}

html.wa-ua1-active .ua2-author-page__routes strong {
  display: block;
  font: 700 19px/1.12 var(--wow-serif, Georgia, serif);
}

@keyframes ua1-name-caret {
  0%, 100% { opacity: .24; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@keyframes ua1-sheet-enter {
  from { opacity: 0; transform: translateY(34px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 420px) {
  html.wa-ua1-active .g2-auth .ua1-auth-brand {
    top: max(27px, calc(env(safe-area-inset-top) + 17px));
    font-size: 10px;
  }

  html.wa-ua1-active .g2-auth[data-ua1-locked="true"] > .g2-back {
    margin-bottom: 36px !important;
  }

  html.wa-ua1-active .ua1-name-editor {
    grid-template-columns: minmax(0, 1fr) 49px;
  }

  html.wa-ua1-active .ua1-name-editor input {
    font-size: clamp(30px, 9.5vw, 40px);
  }

  html.wa-ua1-active .ua1-name-editor > button {
    width: 49px;
    height: 49px;
    border-radius: 16px;
  }

  html.wa-ua1-active .ua1-sheet {
    margin: 9px;
    padding: 19px 15px max(18px, env(safe-area-inset-bottom));
    border-radius: 29px;
  }

  html.wa-ua1-active .ua1-author-selector__avatars {
    min-width: 76px;
  }

  html.wa-ua1-active .ua1-mini-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.wa-ua1-active .ua1-name-editor__field > i,
  html.wa-ua1-active .ua1-sheet {
    animation: none !important;
  }
}
