/* Phase 2 server-auth controls live inside the established signed-out
   landing. The parent owns the tabs, map, Explore toggle, and product strip;
   no rule here may replace that shell. */
.pt-gate.gv6 .rs-p2-inline { width: 100%; }
.pt-gate.gv6 .pt-gate-map-status {
  position: absolute;
  z-index: 3;
  right: .75rem;
  bottom: .75rem;
  max-width: min(32rem, calc(100% - 1.5rem));
  padding: .65rem .8rem;
  border: 1px solid #a85e12;
  border-radius: .4rem;
  background: rgba(255, 248, 238, .96);
  color: #6e3608;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 3px 12px rgba(16, 28, 45, .16);
}
.pt-gate.gv6 .rs-p2-inline h2 { margin: 1.25rem 0 .4rem; color: var(--pha-text); font-size: 1.2rem; }
.pt-gate.gv6 .rs-p2-inline h3 { margin: 0 0 .35rem; color: var(--pha-text); font-size: 1rem; }
.pt-gate.gv6 .rs-p2-intro,
.pt-gate.gv6 .rs-p2-inline p { color: var(--pha-muted); line-height: 1.5; }
.pt-gate.gv6 .rs-p2-intro { margin: 0 0 1rem; }
.rs-p2-form { display: grid; gap: .5rem; margin: 1rem 0; }
.pt-gate.gv6 .rs-p2-form label { color: var(--pha-text); font-size: .75rem; font-weight: 700; }
.rs-p2-form input {
  width: 100%;
  min-height: 2.6rem;
  padding: .6rem .7rem;
  border: 1px solid var(--pha-hairline-strong);
  border-radius: .4rem;
  background: var(--pha-bg, #fff);
  color: var(--pha-text);
}
.rs-p2-form .pt-gate-cta { margin-top: .35rem; }
.rs-p2-message {
  margin: 1rem 0;
  padding: .75rem;
  border: 1px solid var(--pha-hairline-strong);
  border-radius: .4rem;
  background: var(--pha-cyan-bg, #eef6ff);
  color: var(--pha-text);
  font-size: .875rem;
}
.rs-p2-message.error {
  border-color: var(--pha-red, #a43b3b);
  background: var(--pha-red-bg, #fff0f0);
  color: var(--pha-red, #8f3030);
}
.rs-p2-aal {
  display: inline-block;
  padding: .35rem .55rem;
  border-radius: 999px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .75rem;
  font-weight: 700;
}
.rs-p2-aal1 { background: var(--pha-amber-bg, #fff5df); color: var(--pha-amber, #9d5d0a); }
.rs-p2-aal2 { background: var(--pha-cyan-bg, #e8f3ff); color: var(--pha-blue-deep); }
.rs-p2-whoami {
  margin: .1rem 0 .9rem;
  font-size: .8125rem;
  color: var(--pha-muted);
}
.rs-p2-whoami b { color: var(--pha-text); }
.rs-p2-tier2 {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pha-hairline);
}
.rs-p2-results { margin-top: .75rem; font-size: .8125rem; }
.rs-p2-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--pha-hairline); border-radius: .4rem; }
.rs-p2-table-wrap table { width: 100%; border-collapse: collapse; }
.rs-p2-table-wrap th, .rs-p2-table-wrap td {
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--pha-hairline);
  color: var(--pha-text);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.rs-p2-table-wrap th {
  background: var(--pha-panel, var(--pha-cyan-bg, #eef6ff));
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .6875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rs-p2-link {
  margin-top: 1rem;
  padding: .25rem 0;
  color: var(--pha-blue);
  font: inherit;
  text-decoration: underline;
}
.rs-p2-qr {
  width: min(100%, 14rem);
  margin: .75rem auto;
  padding: .5rem;
  border: 1px solid var(--pha-hairline);
  border-radius: .5rem;
  background: #fff;
}
.rs-p2-foot { margin-top: 1.5rem !important; font-size: .75rem; }
.pt-gate.gv6 .rs-p2-inline :focus-visible {
  outline: 3px solid var(--pha-blue);
  outline-offset: 3px;
}
@media (max-width: 30rem) {
  .pt-gate.gv6 .rs-p2-inline .rs-p2-message { padding: .65rem; }
}

/* The original landing header is intentionally retained for signed-out
   visitors.  At phone width, preserve its portal switcher as one readable
   row and remove only its secondary marketing links rather than allowing
   the brand lock-up or links to overlap the auth entry point. */
@media (max-width: 40rem) {
  .pt-gate.gv6 .gv8-top {
    min-height: 56px;
    height: auto;
    padding: 7px 12px;
    gap: 8px;
  }
  .pt-gate.gv6 .gv8-brand {
    flex: 0 1 108px;
    gap: 6px;
  }
  .pt-gate.gv6 .gv8-brand svg {
    width: 22px;
    height: 22px;
  }
  .pt-gate.gv6 .gv8-brand b { font-size: 15px; }
  .pt-gate.gv6 .gv8-brand > div > span {
    font-size: 8px;
    letter-spacing: .08em;
  }
  .pt-gate.gv6 .gv8-links { gap: 0; min-width: 0; }
  .pt-gate.gv6 .gv8-portals a {
    padding: 8px 7px;
    font-size: 10px;
    white-space: nowrap;
  }
  .pt-gate.gv6 .pt-gate-tabs {
    align-items: stretch;
  }
  .pt-gate.gv6 .pt-gtab {
    min-height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pt-gate.gv6 .gv8-link,
  .pt-gate.gv6 .rsn-slot { display: none; }
  /* v18 P2 register #15 (2026-08-17): Contact Sales and Sign In must stay
     reachable on phones. Re-show ONLY those two CTAs in compact form and
     let the bar wrap to a second row; the Self-Serve Demo link stays
     reachable through the Platform menu at this width. */
  .pt-gate.gv6 .gv8-top { flex-wrap: wrap; }
  .pt-gate.gv6 .gv8-links { flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; }
  .pt-gate.gv6 .gv8-link.gv8-cta,
  .pt-gate.gv6 .gv8-link.gv8-signin {
    display: inline-block;
    padding: 7px 9px;
    font-size: 11px;
  }
  /* v18 P2 register #18: keep the PHA SOLUTIONS lock-up on one line. */
  .pt-gate.gv6 .gv8-brand > div > span,
  .pt-gate.gv6 .gv8-brand-link > div > span { white-space: nowrap; font-size: 9px; letter-spacing: .14em; }
}

/* ---- v14 fold density (2026-08-15 owner directive) ---- */
/* BUG FIX: .rs-p2-form{display:grid} overrode the hidden attribute, so the
   email/password form stayed visible after sign-in and pushed the card below
   a 740px fold. Scoped hard override: */
.pt-gate.gv6 .rs-p2-inline [hidden] { display: none !important; }
.pt-gate.gv6 .rs-p2-inline h2 { margin: .65rem 0 .3rem; font-size: 1.05rem; }
.pt-gate.gv6 .rs-p2-inline p { margin: .25rem 0 .55rem; font-size: .8125rem; line-height: 1.45; }
.rs-p2-form { gap: .4rem; margin: .6rem 0; }
.rs-p2-form input { min-height: 2.35rem; padding: .5rem .65rem; }
.rs-p2-message { margin: .6rem 0; padding: .55rem .65rem; font-size: .8125rem; }
.rs-p2-toprow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .2rem; }
.rs-p2-toprow .rs-p2-aal { margin: 0; }
.rs-p2-toprow .rs-p2-link { margin-top: 0; font-size: .75rem; }
.rs-p2-foot { margin-top: .9rem !important; font-size: .75rem; }
.rs-p2-why { margin: .55rem 0 0; }
.rs-p2-why summary { cursor: pointer; color: var(--pha-blue); font-size: .75rem; text-decoration: underline; }
.rs-p2-why p { margin: .3rem 0 0; font-size: .75rem; }
.rs-p2-tier2 { margin-top: .8rem; padding-top: .8rem; }
/* gv14: explore row in the signed-out card — quiet pill links */
.rs-p2-explore{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:14px;
  padding-top:12px;border-top:1px solid #e7edf5}
/* Wave 4 (2026-08-30, VPAT 1.4.3): was 10px #7a8aa0 (3.52:1 on white) — raised to the
   12px floor and darkened within the slate ramp to #5a6c85 (5.36:1). */
.rs-p2-explore-t{font:700 12px/1 ui-monospace,monospace;letter-spacing:.09em;text-transform:uppercase;
  color:#5a6c85;flex:0 0 100%}
.rs-p2-explore a{font:600 12px/1 Inter,system-ui;color:#1a56a4;text-decoration:none;
  border:1px solid #d7dfeb;border-radius:999px;padding:6px 11px;white-space:nowrap}
.rs-p2-explore a:hover{background:#eef3fa}
