/* SPDX-License-Identifier: LicenseRef-Proprietary */
/* Hosted-only styles. Colors come from the theme variables built by scripts/build_themes.py. */
.hosted-staging-badge {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 1rem);
  margin: 0.5rem auto;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--text);
  border: 2px solid var(--warning);
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}

/* A native details menu works with keyboard, touch and without JavaScript. */
.legal-page { max-width: 48rem; margin-inline: auto; overflow-wrap: anywhere; }
/* Public reading/marketing pages should not inherit upstream's 32rem sign-in card. */
body:not(.has-bottom-nav) main.page:has(.landing-hero) { max-width: 72rem; }
body:not(.has-bottom-nav) main.page:has(.legal-page) { max-width: 52rem; }
.landing-hero { display: grid; gap: 2rem; padding-block: 1.5rem 2.5rem; align-items: center; }
.landing-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; margin-block: 0.75rem 1.25rem; }
.landing-eyebrow { font-weight: 700; color: var(--text); }
.landing-intro { max-width: 38rem; font-size: 1.15rem; }
.landing-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.landing-preview-head { display: flex; align-items: center; gap: 0.75rem; }
.landing-preview-head img { flex: none; }
.landing-preview-head p { margin-block: 0.25rem; }
.landing-stages { list-style: none; padding: 0; display: grid; gap: 1rem; }
.landing-stages li { display: flex; gap: 0.75rem; align-items: center; }
.landing-stages p { margin: 0; }
.landing-step { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--text); font-weight: 700; }
.landing-features { display: grid; gap: 1.5rem; margin-block: 1.5rem; }
.landing-features article { border-top: 1px solid var(--line); padding-top: 0.5rem; min-width: 0; }
@media (min-width: 60rem) {
  .landing-hero { grid-template-columns: 1.2fr 1fr; }
  .landing-features { grid-template-columns: repeat(3, 1fr); }
}
.space-switcher { min-width: 0; flex: 1; margin-right: auto; }
.space-switcher > summary { display: flex; width: 100%; gap: 0.5rem; color: var(--text); font-weight: 750; }
.space-switcher-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-switcher > ul { left: 0; right: auto; width: max-content; min-width: 100%; max-width: min(26rem, calc(100vw - 2rem)); max-height: 65vh; overflow-y: auto; }
.space-switcher li a { padding-block: 0.5rem; }
.space-switcher li .space-switcher-name { white-space: normal; overflow-wrap: anywhere; }
.space-switcher-empty { max-width: 22rem; padding: 0.75rem; color: var(--muted); }
.space-switcher [aria-current="true"] { background: var(--accent-soft); }
.space-switcher .icon { flex: none; }
.link-created { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-block: 1rem; background: var(--surface); }
.link-created input { width: 100%; min-width: 0; }
.link-created img { display: block; max-width: 100%; }
.stack-form { display: grid; gap: 1rem; max-width: 36rem; margin-block: 1rem 1.75rem; }
.stack-form > button { justify-self: start; }
.sec-main strong, .sec-main a { overflow-wrap: anywhere; }
/* Upstream hides the bar on holiday pages; sharing needs a space switcher there too. */
@media (max-width: 47.99rem) {
  body.no-app-bar .site-header .bar { display: flex; }
  .space-switcher { max-width: 100%; }
  .space-switcher > ul { min-width: min(16rem, calc(100vw - 2rem)); }
}
@media (min-width: 48rem) {
  .sidebar > .space-switcher { flex: none; }
}
