/* Design83: public home readability, loaded after app.css by the release owner.
   Both guards are intentional: members may have an .lx.ms root.
   Keep the existing art, hero staging, font families and motion rules intact.
   No dock/launcher geometry here; that belongs to avatar-clearance.css. */

/* Paper-backed text strips, not one large card across the hero painting.
   Leave the original hero/container padding, minimum height and artwork alone. */
body:not(.mx) .lx:not(.ms) .lx-ot > small,
body:not(.mx) .lx:not(.ms) .lx-ot > h1,
body:not(.mx) .lx:not(.ms) .lx-ot > p,
body:not(.mx) .lx:not(.ms) .lx-ot > .emk-os {
  width: fit-content;
  max-width: 100%;
  background-color: var(--washi);
}
body:not(.mx) .lx:not(.ms) .lx-ot > small {
  color: #a8231e;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body:not(.mx) .lx:not(.ms) .lx-ot > p {
  max-width: min(470px, 46ch);
  color: var(--ink2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body:not(.mx) .lx:not(.ms) .lx-ot .emk-os > span {
  color: var(--ink2);
}
body:not(.mx) .lx:not(.ms) .emk-foot {
  width: fit-content;
  max-width: min(72ch, calc(100% - 12vw));
  background-color: var(--paper);
  color: var(--ink2);
  line-height: 1.5;
}

/* The final v68 mobile cascade already separates art and copy. On desktop,
   back only the existing copy column; retain the full-bleed painting above it. */
body:not(.mx) .lx:not(.ms) .lx-ct > div {
  min-width: 0;
  max-width: min(760px, 100%);
  padding: 14px 18px;
  background-color: var(--paper);
}
body:not(.mx) .lx:not(.ms) .lx-ct .eyebrow,
body:not(.mx) .lx:not(.ms) .lx-ct .h2,
body:not(.mx) .lx:not(.ms) .lx-ct .lx-fact em {
  text-shadow: none;
  overflow-wrap: anywhere;
}
body:not(.mx) .lx:not(.ms) .lx-ct .h2 {
  max-width: 24ch;
}
body:not(.mx) .lx:not(.ms) .lx-fact {
  display: block;
  max-width: 60ch;
  color: var(--ink2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body:not(.mx) .lx:not(.ms) .lx-fact > span {
  display: inline-block;
  margin-inline-end: .6em;
  vertical-align: middle;
}
body:not(.mx) .lx:not(.ms) .lx-sh > p,
body:not(.mx) .lx:not(.ms) .lx-atl .lead {
  max-width: 56ch;
  color: var(--ink2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body:not(.mx) .lx:not(.ms) .lx-gc > .muted {
  width: fit-content;
  max-width: 46ch;
  background-color: var(--washi);
  color: var(--ink2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* Existing primary ink buttons (and the vermilion gate-cta) retain hierarchy.
   Secondary buttons get dependable paper instead of transparent image overlays. */
body:not(.mx) .lx:not(.ms) :is(.lx-cta, .lx-ctas, .lx-atl, .lx-gc) .btn {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  justify-content: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
}
body:not(.mx) .lx:not(.ms) :is(.lx-cta, .lx-ctas, .lx-atl, .lx-gc) .btn.ghost {
  background: var(--washi);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:not(.mx) .lx:not(.ms) :is(.lx-cta, .lx-ctas, .lx-atl, .lx-gc) .btn.ghost:hover,
body:not(.mx) .lx:not(.ms) :is(.lx-cta, .lx-ctas, .lx-atl, .lx-gc) .btn.ghost:focus-visible {
  background: var(--paper2);
  color: var(--ink);
  border-color: var(--ink);
}
body:not(.mx) .lx:not(.ms) .lx-rb {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  overflow-wrap: anywhere;
  background: var(--washi);
  line-height: 1.4;
}
body:not(.mx) .lx:not(.ms) .lx-rb > b {
  min-width: 0;
  overflow-wrap: anywhere;
}
body:not(.mx) .lx:not(.ms) .lx-rb.now > i {
  flex: none;
}
body:not(.mx) .lx:not(.ms) .lx-cta,
body:not(.mx) .lx:not(.ms) .lx-ctas {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}
/* The atlas actions are an existing plain paragraph, not an action-row div. */
body:not(.mx) .lx:not(.ms) .lx-atl > div > p:has(> .btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body:not(.mx) .lx:not(.ms) :is(.lx-cta, .lx-ctas, .lx-atl, .lx-gc) .btn:focus-visible,
body:not(.mx) .lx:not(.ms) .lx-rb:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--washi);
}

@media (max-width: 719px) {
  body:not(.mx) .lx:not(.ms) .lx-ct > div {
    flex: 1 1 auto;
    padding: 0;
  }
}
/* At the narrowest phone widths keep both real hero actions visible and labelled;
   do not shrink their existing type or hide the Gate icon/copy. */
@media (max-width: 390px) {
  body:not(.mx) .lx:not(.ms) .lx-cta > .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}
