/* Where the design system's pieces sit in the live panel; nothing here restyles a piece (tokens.css and bundle.css are
   the design system's files byte for byte, and bin/gates/ds-parity.mjs holds them to it). */

/* The drawer opens over the screen from the right edge, as the design system's drawer, over its scrim. */
.j-panel-scrim { position: fixed; z-index: 40; animation: j-panel-fade 200ms var(--ease-standard) both; }
.j-panel-drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); border-radius: 12px 0 0 12px; animation: j-enter-side 260ms var(--ease-enter) both; }
.j-panel-drawer__title { display: grid; gap: 4px; }
.j-panel-drawer__form { display: contents; }
@keyframes j-panel-fade { from { opacity: 0; } to { opacity: 1; } }

/* A native select dressed as the design system's input, with its chevron. */
.j-panel-select { position: relative; display: block; }
.j-panel-select select { width: 100%; appearance: none; padding-right: 36px; }
.j-panel-select > svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .j-panel-scrim, .j-panel-drawer { animation: none; } }

/* The composer's field is the design system's field as an input the person types into. */
input.j-composer__field { border: 0; font: inherit; color: inherit; outline: none; min-width: 0; }

/* The QR the gateway draws sits in the design system's QR box at the size of its drawn code. */
.j-qr img { width: 140px; height: 140px; display: block; }

/* The saved replies a slash brings open above the composer, over the thread. */
.j-chat__foot { position: relative; }
.j-chat__foot > .j-menu { bottom: calc(100% + 6px); left: 12px; }

/* The side column of a screen stays in view while the main column scrolls. */
.j-aside { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; }

/* A client's public site: the pieces of the design system laid out as one page, in the colors of the client's brand. The
   brand comes in as the design system's own tokens (the page's theme), so nothing below names a color of its own. */
.j-client-brand { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; }
.j-client-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--radius-m); background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.j-client-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.j-client-logo { display: block; width: auto; max-width: 200px; height: 34px; object-fit: contain; }
.j-client-hero { display: grid; justify-items: center; gap: 18px; padding: 72px 48px 36px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, var(--brand-soft) 0%, transparent 68%); }
.j-client-hero .j-hero__actions { flex-wrap: wrap; justify-content: center; }
.j-client-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); width: 100%; max-width: 976px; margin: 0 auto; padding: 0 48px; }
.j-client-areas .j-segtile__text span { white-space: normal; }
.j-client-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); padding: 56px 48px 0; }
.j-client-numbers .j-metric__value { font-size: 40px; line-height: 1.05; color: var(--brand-ink); }
.j-band > .j-plans { padding: 0; }
.j-plans.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.j-client-note { text-align: center; }
.j-client-more { background: var(--brand-soft); align-content: start; }
.j-client-more .j-btn { justify-self: start; border-radius: var(--radius-pill); }
.j-client-contact { display: grid; gap: var(--space-2); }
.j-client-contact span { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.j-client-contact svg { margin-top: 1px; color: var(--brand-ink); }
.j-client-foot .j-sitefoot__col a { overflow-wrap: anywhere; }

@media (min-width: 761px) {
  .j-client-foot { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .j-sitenav .j-client-links { display: none; }
  .j-sitenav { padding: 0 24px; }
  .j-client-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .j-client-hero { gap: 14px; padding: 36px 18px 24px; }
  .j-client-hero .j-hero__title { font-size: 38px; line-height: 1.06; }
  .j-client-hero .j-hero__lead { font-size: 16.5px; }
  .j-client-hero .j-hero__actions { flex-direction: column; width: 100%; }
  .j-client-hero .j-hero__actions .j-btn { width: 100%; justify-content: center; }
  .j-client-areas { display: none; }
  .j-client-numbers { padding: 24px 18px 0; }
  .j-client-numbers .j-metric__value { font-size: 30px; }
  .j-band > .j-plans, .j-plans.is-three { grid-template-columns: minmax(0, 1fr); }
  .j-mnav .j-client-brand { max-width: calc(100vw - 96px); }
  .j-client-bar .j-btn { height: auto; min-height: 48px; padding: 6px 10px; font-size: 14px; line-height: 1.15; text-align: center; white-space: normal; }
}

@media (max-width: 1080px) {
  .j-client-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-left: 24px; margin-right: 24px; padding: 32px; }
  .j-sitefoot.j-client-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-sitefoot.j-client-foot > .j-stack { grid-column: 1 / -1; }
  .j-client-hero, .j-client-numbers, .j-client-areas, .j-band, .j-sitefoot.j-client-foot { padding-left: 24px; padding-right: 24px; }
  .j-invite { margin-left: 24px; margin-right: 24px; }
}
