/* Gaia Healers — Living Network production reshape (2026-07-21)
   Event-led, mobile-first, and deliberately calm. This layer sits last so the
   existing data integrations keep working while every public screen shares one
   visual system. */

:root {
  --g-bg: #07100b;
  --g-surface: #101a13;
  --g-surface-hi: #152219;
  --g-line: rgba(232, 242, 230, 0.12);
  --g-line-strong: rgba(232, 242, 230, 0.22);
  --g-text: #f1f5ef;
  --g-text-muted: #aeb9ab;
  --g-text-faint: #869383;
  --g-accent: #9ee565;
  --g-accent-deep: #72c63f;
  --g-on-accent: #071309;
  --g-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-font-serif: "Cormorant Garamond", Georgia, serif;
  --g-r-md: 16px;
  --g-r-lg: 20px;
  --g-r-xl: 26px;
}

html { background: var(--g-bg); scroll-behavior: smooth; }
body.gaia-v2 {
  min-width: 0;
  background: var(--g-bg);
  color: var(--g-text);
  font-family: var(--g-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.gaia-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--g-accent);
  color: var(--g-on-accent);
  font-weight: 700;
}
.gaia-skip-link:focus { transform: translateY(0); }

body.gaia-v2 .gaia-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--g-bg);
}

.g-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  background: rgba(7, 16, 11, 0.94);
  border-bottom: 1px solid rgba(232, 242, 230, 0.06);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
/* The brand is a link home; at 30px tall it fell short of a comfortable tap
   target on a phone. The extra height is padding, so nothing moves visually. */
.g-topbar__brand { font-size: 18px; letter-spacing: -0.025em; min-height: 44px; display: inline-flex; align-items: center; }
.g-topbar__brand img { width: 34px; height: 34px; }
.g-topbar__actions { min-width: 48px; justify-content: flex-end; }

.gaia-live-sync { display: none !important; }

.gaia-profile-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: var(--g-surface);
  color: var(--g-accent);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.gaia-profile-button:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }

.gaia-menu-button {
  width: auto;
  min-width: 66px;
  height: 48px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: var(--g-surface);
  color: var(--g-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.gaia-menu-button svg { width: 23px; height: 23px; }
.gaia-menu-button:focus-visible { outline: none; box-shadow: var(--g-focus); }

.g-home,
.g-page,
.g-store {
  gap: 22px;
  padding: 12px 16px calc(116px + env(safe-area-inset-bottom));
  background: var(--g-bg);
}

/* Event-first Home ------------------------------------------------------ */
.g-event-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-xl);
  background-color: #08100b;
  background-image: url("assets/gaia-event-hero.webp");
  background-size: cover;
  background-position: 58% center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}
.g-event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 4, 0.24);
  pointer-events: none;
}
.g-event-hero__content {
  position: relative;
  z-index: 1;
  width: min(86%, 390px);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.g-event-hero__kicker,
.g-priority__kicker,
.g-member-access__kicker,
.g-founder-row__kicker {
  margin: 0;
  color: var(--g-accent);
  font: 700 11px/1.1 var(--g-font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.g-event-hero__title {
  margin: 0;
  max-width: 7ch;
  color: var(--g-text);
  font: 600 clamp(46px, 13vw, 64px) / 0.86 var(--g-font-serif);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.g-event-hero__title em { color: var(--g-accent); font-style: normal; }
.g-event-hero__title--long {
  max-width: 10.5ch;
  font-size: clamp(37px, 10.5vw, 48px);
  line-height: 0.9;
}
.g-event-hero__summary {
  max-width: 30ch;
  margin: 0;
  color: #d7ded4;
  font-size: 15px;
  line-height: 1.55;
}
.g-event-hero__meta {
  margin: 2px 0 0;
  color: var(--g-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.g-event-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.g-event-hero__actions .g-btn { min-height: 48px; border-radius: 999px; padding-inline: 20px; }
.g-event-hero__status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--g-text-muted);
  font-size: 13px;
}

.g-home-priorities {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--g-line);
  border-bottom: 1px solid var(--g-line);
}
.g-priority {
  min-width: 0;
  min-height: 188px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  color: var(--g-text);
  text-decoration: none;
}
.g-priority + .g-priority { border-left: 1px solid var(--g-line); }
.g-priority strong {
  font: 600 clamp(25px, 7.4vw, 35px) / 0.98 var(--g-font-serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.g-priority > span:last-child { color: var(--g-accent); font-size: 13px; font-weight: 700; }
.g-priority:focus-visible { outline: 2px solid var(--g-accent); outline-offset: -3px; }

.g-member-access {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-lg);
  background: var(--g-surface);
}
.g-member-access__body { min-width: 0; flex: 1; }
.g-member-access__title { margin: 6px 0 0; font: 600 25px/1 var(--g-font-serif); }
.g-member-access__meta { margin: 5px 0 0; color: var(--g-text-muted); font-size: 13px; line-height: 1.4; }
.g-member-access .g-btn { flex: none; border-radius: 999px; }
.g-member-access__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.g-chakra-hero { border-radius: var(--g-r-xl); background: #050906; }
.g-chakra-hero { --stage-h: min(44vh, 370px); }
@supports (height: 100dvh) { .g-chakra-hero { --stage-h: min(44dvh, 370px); } }
.g-chakra-hero__fig img { content: url("assets/gaia-chakra-meditation.webp"); }
.g-chakra-hero__overlay { padding: 26px 22px 22px; }
.g-chakra-hero__title { font-family: var(--g-font-serif); font-size: clamp(36px, 10vw, 52px); }
.g-chakra-guide {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px 18px;
  border-top: 1px solid var(--g-line);
  background: #0d1710;
}
.g-chakra-guide__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.g-chakra-guide__kicker { margin: 0; color: var(--active-chakra, var(--g-accent)); font: 700 10px/1 var(--g-font-mono); letter-spacing: 0.13em; text-transform: uppercase; }
.g-chakra-guide__name { font: 600 26px/1 var(--g-font-serif); color: var(--g-text); }
.g-chakra-guide__meta { color: var(--g-text-muted); font-size: 12px; line-height: 1.4; }
.g-chakra-guide__shop { border-color: var(--active-chakra, var(--g-line)); white-space: normal; text-align: center; }
.g-chakra-guide__steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.g-chakra-guide__steps button {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--g-line);
  cursor: pointer;
}
.g-chakra-guide__steps button.is-active { background: var(--ck, var(--g-accent)); box-shadow: 0 0 12px var(--ck, var(--g-accent)); }
.g-chakra-guide__steps button:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }

.g-sec-head { gap: 6px; margin-bottom: -12px; }
.g-sec-head__title { font-family: var(--g-font-serif); font-size: 34px; }

.g-founder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  border-top: 1px solid var(--g-line);
  border-bottom: 1px solid var(--g-line);
}
.g-founder-row__title { margin: 7px 0 0; font: 600 27px/1 var(--g-font-serif); }
.g-founder-row__meta { margin: 5px 0 0; color: var(--g-text-muted); font-size: 13px; line-height: 1.45; }
.g-founder-row .g-btn { border-radius: 999px; }
.g-founder-row--home {
  padding: 18px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-lg);
  background: linear-gradient(145deg, rgba(125, 217, 86, 0.08), transparent 62%), var(--g-surface);
}

.g-tile[type="button"] {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gaia-product-modal__body {
  flex: 1;
  overflow: auto;
  background: var(--g-bg);
  -webkit-overflow-scrolling: touch;
}
.gaia-product-modal__image { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; background: var(--g-surface); }
.gaia-product-modal__content { display: grid; gap: 14px; padding: 24px 20px calc(32px + env(safe-area-inset-bottom)); }
.gaia-product-modal__kicker { margin: 0; color: var(--g-accent); font: 700 10px/1 var(--g-font-mono); letter-spacing: .14em; text-transform: uppercase; }
.gaia-product-modal__title { margin: 0; color: var(--g-text); font: 600 34px/1 var(--g-font-serif); }
.gaia-product-modal__description { margin: 0; color: var(--g-text-muted); font-size: 14px; line-height: 1.65; }
.gaia-product-modal__note { margin: 0; color: var(--g-text-muted); font-size: 12px; line-height: 1.5; }
.gaia-product-modal__buy { width: 100%; min-height: 50px; margin-top: 4px; text-align: center; }

/* Shared page treatment ------------------------------------------------ */
.g-page__head,
.g-store__head {
  min-height: 172px;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-xl);
  background: var(--g-surface);
}
.g-page__title,
.g-store__title {
  font-family: var(--g-font-serif);
  font-size: clamp(43px, 13vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.g-page__sub { max-width: 36ch; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.g-page__head--academy { background-color: #111a13; }
.g-page__head--community { background-color: #0e1913; }
.g-page__head--profile { background-color: #111913; }
.g-page__head--energy {
  background:
    radial-gradient(circle at 84% 12%, rgba(125, 217, 86, 0.13), transparent 35%),
    #101a13;
}

.g-energy { gap: 16px; }
.g-energy-note {
  display: grid;
  gap: 5px;
  padding: 16px 17px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-md);
  background: var(--g-surface);
  color: var(--g-text);
}
.g-energy-note strong { font: 600 18px/1.2 var(--g-font-serif); }
.g-energy-note span { color: var(--g-text-muted); font-size: 12px; line-height: 1.55; }

.g-card {
  gap: 10px;
  padding: 18px;
  border-radius: var(--g-r-lg);
  background: var(--g-surface);
  box-shadow: none;
}
.g-card--feature { background: #142319; border-color: var(--g-line-strong); }
.g-card__value,
.g-card__value--lg { font-family: var(--g-font-serif); font-size: clamp(25px, 7vw, 34px); font-weight: 600; }
.g-card__meta { color: var(--g-text-muted); font-size: 14px; line-height: 1.55; }
.g-card__actions .g-btn { border-radius: 999px; }

.g-access-grid { gap: 10px; }
.g-access {
  min-height: 82px;
  padding: 14px 14px 14px 18px;
  border-radius: var(--g-r-md);
  background: var(--g-surface);
}
.g-access::before { width: 2px; }
.g-access__name { white-space: normal; overflow: visible; font-size: 14px; line-height: 1.35; }
.g-access__meta { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-access__act { max-width: 42%; white-space: normal; text-align: right; }

.g-section__title { font-family: var(--g-font-serif); font-size: 26px; }
.g-stats { gap: 7px; }
.g-stat { padding: 13px 11px; background: var(--g-surface); }
.g-stat__n { font-family: var(--g-font-serif); font-size: 28px; }
.g-stat__l { font-size: 9px; }

.g-tabs { position: sticky; top: 72px; z-index: 20; max-width: none; background: #0d1710; }
.g-tab { min-height: 46px; font-size: 13px; }
.g-store-panel { gap: 28px; }
.g-store-rail { gap: 12px; }
.g-tile { flex-basis: 10rem; }
.g-tile__media { border-radius: var(--g-r-md); }
.g-tile__title { font-size: 13px; line-height: 1.4; }

/* Native auth and membership sheets ----------------------------------- */
.gaia-auth-modal,
.gaia-menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.gaia-auth-modal[hidden],
.gaia-menu-sheet[hidden] { display: none; }

/* Social sign-in buttons (Google / Apple) in the member sign-in sheet. Shown
   only when the proxy reports the provider is configured. */
.gaia-auth-modal__social { display: grid; gap: 10px; margin: 2px 0 6px; }
.gaia-auth-modal__social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--g-line-strong); background: #ffffff; color: #111111;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gaia-auth-modal__social-btn:active { opacity: 0.9; }
.gaia-auth-modal__social-btn[data-oauth="apple"] { background: #000000; color: #ffffff; border-color: #000000; }
.gaia-auth-modal__or {
  display: flex; align-items: center; gap: 12px;
  color: var(--g-text-dim, #9aa3a0); font-size: 13px; margin: 4px 0 6px;
}
.gaia-auth-modal__or span { flex: 0 0 auto; }
.gaia-auth-modal__or::before, .gaia-auth-modal__or::after {
  content: ""; flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, 0.14);
}

/* In-app Join form inside the sign-in sheet. */
.gaia-auth-modal__joinform { display: grid; gap: 10px; margin-top: 10px; }
.gaia-auth-modal__joinalt {
  justify-self: start; background: none; border: none; padding: 0;
  color: var(--g-accent); font: 600 13px/1.4 inherit; cursor: pointer; text-align: left;
}
.gaia-auth-modal__joinalt:hover { text-decoration: underline; }
.gaia-auth-modal__panel,
.gaia-menu-sheet__panel {
  width: min(100%, 480px);
  max-height: min(88vh, 720px);
  max-height: min(88dvh, 720px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--g-line-strong);
  border-radius: 28px;
  background: #0d1710;
  color: var(--g-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}
.gaia-auth-modal__top,
.gaia-menu-sheet__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gaia-auth-modal__kicker,
.gaia-menu-sheet__kicker { margin: 0 0 7px; color: var(--g-accent); font: 700 11px/1 var(--g-font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.gaia-auth-modal__title,
.gaia-menu-sheet__title { margin: 0; font: 600 36px/0.95 var(--g-font-serif); }
.gaia-auth-modal__body { margin: 12px 0 0; color: var(--g-text-muted); font-size: 14px; line-height: 1.55; }
.gaia-sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--g-line);
  border-radius: 50%;
  background: var(--g-surface-hi);
  color: var(--g-text);
  font-size: 23px;
  cursor: pointer;
}
.gaia-auth-modal__form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.gaia-auth-modal__input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--g-line-strong);
  border-radius: 15px;
  background: #07100b;
  color: var(--g-text);
  font: 500 16px var(--g-font);
}
.gaia-auth-modal__input:focus { outline: none; border-color: var(--g-accent); box-shadow: var(--g-focus); }
.gaia-auth-modal__submit { width: 100%; border-radius: 15px; }
.gaia-auth-modal__status { min-height: 20px; margin: 12px 0 0; color: var(--g-text-muted); font-size: 13px; line-height: 1.45; }
.gaia-auth-modal__status.is-sent { display: grid; gap: 6px; text-align: left; margin-top: 14px; padding: 14px 16px; color: var(--g-text); background: rgba(166,237,104,.10); border: 1px solid rgba(166,237,104,.34); border-radius: 14px; }
.gaia-auth-modal__sent-title { color: var(--g-accent, #A8E063); font-size: 15px; font-weight: 700; }
.gaia-auth-modal__sent-body { font-size: 13px; line-height: 1.5; }
.gaia-auth-modal__sent-hint { font-size: 12px; color: var(--g-text-muted); line-height: 1.45; }
.gaia-auth-modal__join { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--g-line); color: var(--g-text-muted); font-size: 13px; line-height: 1.5; }
.gaia-auth-modal__joinlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--g-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.gaia-auth-modal__joinlink:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; border-radius: 3px; }

.gaia-menu-sheet__nav { display: grid; gap: 8px; margin-top: 22px; }
.gaia-menu-sheet__link {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 3px;
  border: 0;
  border-bottom: 1px solid var(--g-line);
  background: transparent;
  color: var(--g-text);
  font: 600 16px var(--g-font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.gaia-menu-sheet__link span { color: var(--g-accent); }

/* Existing reusable iframe sheet, recolored to the selected direction. */
.gaia-booking-modal__sheet { background: #0d1710 !important; border: 1px solid var(--g-line-strong); }
.gaia-booking-modal__head { background: #0d1710; border-color: var(--g-line) !important; }
.gaia-booking-modal__title { color: var(--g-text) !important; font-family: var(--g-font-serif); font-size: 24px !important; }
.gaia-booking-modal__close { background: var(--g-surface-hi) !important; color: var(--g-text) !important; }
.gaia-booking-modal__loading,
.gaia-booking-modal__auth { background: #0d1710 !important; color: var(--g-text-muted) !important; }
.gaia-booking-modal__auth-title { color: var(--g-text) !important; font-family: var(--g-font-serif); font-size: 28px !important; }
.gaia-booking-modal__auth-body,
.gaia-booking-modal__auth-hint { color: var(--g-text-muted) !important; }
.gaia-booking-modal__fallback { background: #111e15 !important; border-color: var(--g-line) !important; color: var(--g-accent) !important; }

/* In-app reader (Shopify pages we render instead of framing). This file owns
   the dark theming for the booking sheet, so it owns the reader's too — the
   reader's own stylesheet stays light-neutral and is themed only here. */
.gaia-reader__body { background: #0d1710 !important; color: var(--g-text) !important; }
.gaia-reader__loading,
.gaia-reader__fallback { color: var(--g-text-muted) !important; }
.gaia-reader__cta { background: var(--g-accent) !important; color: #0d1710 !important; }
.gaia-reader__item { border-bottom-color: var(--g-line) !important; }
.gaia-reader__item strong { color: var(--g-text) !important; font-family: var(--g-font-serif); }
.gaia-reader__item span { color: var(--g-text-muted) !important; }
.gaia-reader__item:active { background: var(--g-surface-hi) !important; }
.gaia-reader__article { color: var(--g-text) !important; }
.gaia-reader__article h1,
.gaia-reader__article h2,
.gaia-reader__article h3 { color: var(--g-text) !important; font-family: var(--g-font-serif); }
.gaia-reader__article a { color: var(--g-accent) !important; }
.gaia-reader__article td,
.gaia-reader__article th { border-color: var(--g-line) !important; }

/* Bottom navigation ----------------------------------------------------- */
body.gaia-v2.gaia-has-tabbar { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
body.gaia-v2 .gaia-tabbar { padding-inline: max(12px, env(safe-area-inset-left)) !important; }
body.gaia-v2 .gaia-tabbar__inner {
  min-height: 66px;
  padding: 6px 4px !important;
  border-color: var(--g-line-strong) !important;
  background: rgba(7, 13, 9, 0.96) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48) !important;
}
body.gaia-v2 .gaia-tabbar__link { min-height: 48px; color: #a9b3a6 !important; }
body.gaia-v2 .gaia-tabbar__link.is-active { color: var(--g-accent) !important; }
body.gaia-v2 .gaia-tabbar__link.is-active::before { background: #142118; border-color: var(--g-line); }
body.gaia-v2 .gaia-tabbar__label { font-size: 9px !important; }
body.gaia-v2 .gaia-tabbar__assist {
  width: 58px;
  height: 58px;
  background: var(--g-accent);
  box-shadow: 0 0 0 3px #07100b, 0 12px 28px rgba(114, 198, 63, 0.34);
}

/* First entrance: a compact welcome once per browsing session, not a
   persistent takeover on every screen. */
body.gaia-v2 .gaia-assist--welcome .gaia-assist__panel {
  max-height: min(64vh, 31rem);
  max-height: min(64dvh, 31rem);
}
body.gaia-v2 .gaia-assist--welcome .gaia-assist__settings,
body.gaia-v2 .gaia-assist--welcome .gaia-assist__toolbar,
body.gaia-v2 .gaia-assist--welcome .gaia-assist__route,
body.gaia-v2 .gaia-assist--welcome .gaia-assist__error,
body.gaia-v2 .gaia-assist--welcome .gaia-assist__voice {
  display: none !important;
}
body.gaia-v2 .gaia-assist--welcome .gaia-assist__transcript {
  flex: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
body.gaia-v2 .gaia-assist--welcome .gaia-assist__bubble--bot {
  align-self: stretch;
  max-width: none;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 560px) {
  /* Long live event names need more vertical room than the original fixed
     card. Without it the flex-end content can overflow behind the sticky
     header on common 390–430px phones. */
  .g-event-hero { min-height: 460px; }
  .g-event-hero__content { width: 92%; padding: 24px 20px 22px; }
  .g-event-hero__title--long { font-size: clamp(35px, 10vw, 44px); line-height: 0.92; }

  /* Keep copy readable and actions thumb-sized on every normal phone, not
     only on devices narrower than 359px. */
  .g-member-access { min-height: 0; align-items: stretch; flex-direction: column; gap: 16px; padding: 20px; }
  .g-member-access__body { width: 100%; }
  .g-member-access__meta { max-width: 36ch; }
  .g-member-access__actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-member-access .g-btn { width: 100%; min-height: 46px; justify-content: center; text-align: center; }
  .g-member-access__actions .g-btn:last-child { grid-column: 1 / -1; }
}

@media (max-width: 359px) {
  .g-event-hero__content { width: 92%; padding: 22px 18px; }
  .g-event-hero__title { font-size: 46px; }
  .g-priority { min-height: 164px; padding: 20px 12px; }
  .g-priority strong { font-size: 23px; }
  .g-member-access__actions { grid-template-columns: 1fr; }
  .g-member-access__actions .g-btn:last-child { grid-column: auto; }
  .g-chakra-guide { grid-template-columns: 1fr; }
  .g-chakra-guide__shop { width: 100%; }
  body.gaia-v2 .gaia-tabbar__label { display: none; }
  body.gaia-v2 .gaia-tabbar__link { min-width: 40px; }
}

@media (min-width: 700px) {
  body.gaia-v2 .gaia-shell,
  body.gaia-v2 .gaia-tabbar__inner { max-width: 720px !important; }
  .g-home,
  .g-page,
  .g-store { padding-inline: 28px; }
  .g-event-hero { min-height: 590px; }
  .g-event-hero__content { padding: 42px; }
  .g-home-pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  body.gaia-v2 .gaia-shell,
  body.gaia-v2 .gaia-tabbar__inner { max-width: 1080px !important; }
  .g-home,
  .g-page,
  .g-store { padding-inline: 48px; }
  .g-event-hero { min-height: 620px; background-position: center; }
  .g-event-hero__content { width: 48%; }
  .g-home-priorities { grid-template-columns: 1fr 1fr; }
  .g-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Responsive fit pass --------------------------------------------------
   Safari already lays normal browser tabs below its chrome. Only installed
   PWAs add the full safe-area inset to the header, avoiding a doubled gap. */
.g-topbar {
  min-height: 64px;
  padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
}
.g-topbar__brand { font-size: 17px; }
.g-topbar__brand img { width: 32px; height: 32px; }
.gaia-menu-button { height: 44px; }

.g-home,
.g-page,
.g-store {
  gap: 16px;
  padding: 8px 14px calc(92px + env(safe-area-inset-bottom));
}

body.gaia-v2.gaia-has-tabbar { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
body.gaia-v2 .gaia-tabbar {
  padding: 0 max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
}
body.gaia-v2 .gaia-tabbar__inner { min-height: 58px; padding: 4px !important; }
body.gaia-v2 .gaia-tabbar__link { min-height: 44px; }
body.gaia-v2 .gaia-tabbar__assist { width: 52px; height: 52px; margin: -0.55rem auto -0.1rem; }

@media (max-width: 560px) {
  .g-topbar { min-height: 60px; padding-block: 7px; }
  .g-topbar__brand { gap: 9px; font-size: 16px; }
  .g-topbar__brand img { width: 30px; height: 30px; }
  .gaia-menu-button { height: 42px; padding-inline: 15px; }

  body.gaia-v2 .g-home,
  .g-page,
  .g-store {
    gap: 10px;
    padding: 6px 10px 20px;
  }

  .g-event-hero { min-height: clamp(332px, 40svh, 350px); align-items: center; border-radius: 20px; }
  .g-event-hero__content { width: 94%; gap: 7px; padding: 14px 16px; }
  .g-event-hero__title--long { font-size: clamp(30px, 8.6vw, 36px); line-height: 0.94; }
  .g-event-hero__meta { font-size: 12px; line-height: 1.3; }
  .g-event-hero__actions { margin-top: 1px; }
  .g-event-hero__actions .g-btn { min-height: 42px; padding-inline: 16px; }

  .g-member-access { gap: 10px; padding: 14px; border-radius: 20px; }
  .g-member-access__title { font-size: clamp(29px, 8vw, 33px); }
  .g-member-access__meta { margin-top: 4px; font-size: 12px; line-height: 1.4; }
  .g-member-access__actions { gap: 7px; }
  .g-member-access .g-btn { min-height: 42px; }
  .g-member-access__actions .g-btn:last-child { min-height: 32px; }

  .g-founder-row { gap: 9px; padding: 13px 14px; border-radius: 20px; }
  .g-founder-row__title { font-size: 24px; }
  .g-founder-row__meta { margin-top: 3px; font-size: 12px; line-height: 1.35; }
  .g-page__head,
  .g-store__head { min-height: 132px; padding: 18px; border-radius: 20px; }
  .g-page__title,
  .g-store__title { font-size: clamp(38px, 11vw, 48px); }
  .g-card,
  .g-community-card,
  .g-course-card,
  .g-store-card { border-radius: 18px; }
  body.gaia-v2 .gaia-tabbar__label { font-size: 8px !important; }
  body.gaia-v2.gaia-has-tabbar { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 700px) {
  body.gaia-v2 .gaia-shell,
  body.gaia-v2 .gaia-tabbar__inner { max-width: 880px !important; }
  .g-home,
  .g-page,
  .g-store { padding: 18px 24px calc(98px + env(safe-area-inset-bottom)); }
  .g-event-hero { min-height: min(540px, 64svh); }
  .g-home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  #home-event-hero,
  #home-announcements { grid-column: 1 / -1; }
  #home-announcements:empty { display: none; }
  #home-member-access,
  #home-founder { height: 100%; }
  #home-founder .g-founder-row { height: 100%; }
  .g-member-access { flex-direction: column; align-items: stretch; }
  .g-member-access__actions { justify-content: flex-start; }
}

@media (min-width: 980px) {
  body.gaia-v2 .gaia-shell,
  body.gaia-v2 .gaia-tabbar__inner { max-width: 1180px !important; }
  .g-home,
  .g-page,
  .g-store { padding: 24px 36px calc(98px + env(safe-area-inset-bottom)); }
  .g-home {
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
    grid-template-areas:
      "hero announcements"
      "hero access"
      "hero founder";
    gap: 18px;
  }
  #home-event-hero { grid-area: hero; }
  #home-announcements { grid-area: announcements; }
  #home-member-access { grid-area: access; }
  #home-founder { grid-area: founder; }
  .g-event-hero { min-height: clamp(540px, calc(100dvh - 130px), 700px); }
  .g-event-hero__content { width: 48%; padding: 46px 42px; }
  .g-member-access { flex-direction: column; align-items: stretch; gap: 18px; }
  .g-member-access__actions { justify-content: flex-start; }
}

@media (display-mode: standalone) {
  .g-topbar {
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: max(8px, env(safe-area-inset-top));
  }
}

/* Premium consistency pass -------------------------------------------- */
.g-btn,
.g-btn--sm,
.g-event-hero__actions .g-btn,
.g-member-access .g-btn,
.g-card__actions .g-btn,
.g-founder-row .g-btn,
.g-chakra-guide__shop,
.g-profile-signout {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
}

.g-btn--ghost {
  min-height: 44px;
  padding-inline: 14px;
}

.gaia-menu-button,
.g-tab {
  min-height: 44px;
  height: 44px;
}

.g-card,
.g-member-access,
.g-founder-row--home,
.g-page__head,
.g-store__head {
  border-color: rgba(232, 242, 230, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 14px 32px -28px rgba(0, 0, 0, 0.9);
}

.g-card { border-radius: 20px; }
.g-access { border-radius: 18px; }
.g-row--link { min-height: 48px; }
.g-profile-signout { min-width: 120px; }

.g-tile[type="button"] {
  gap: 8px;
  padding: 7px 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(232, 242, 230, 0.12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(158, 229, 101, 0.045), transparent 48%), #0d1710;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.g-tile[type="button"] .g-tile__media { border-radius: 13px; }
.g-tile[type="button"] .g-tile__title,
.g-tile[type="button"] .g-tile__meta { margin-inline: 3px; }

@media (hover: hover) {
  .g-btn:hover { transform: translateY(-1px); }
  .g-btn--primary:hover { box-shadow: 0 10px 24px -14px rgba(158, 229, 101, 0.75); }
  .g-tile[type="button"]:hover { box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.9); }
}

@media (max-width: 560px) {
  body.gaia-v2 .g-page,
  body.gaia-v2 .g-store {
    gap: 12px;
    padding: 6px 10px calc(86px + env(safe-area-inset-bottom));
  }

  .g-event-hero { min-height: clamp(316px, 37svh, 332px); }
  .g-member-access .g-member-access__actions .g-btn { min-height: 44px; }

  .g-page__head,
  .g-store__head {
    min-height: 132px;
    padding: 16px;
  }

  .g-card { padding: 16px; }
  .g-access { padding: 13px 13px 13px 17px; }
  .g-tabs { top: 66px; }
}

/* Editorial type, colour, and spacing rhythm -------------------------- */
:root {
  --g-bg: #07100b;
  --g-surface: #0f1912;
  --g-surface-hi: #15231a;
  --g-line: rgba(232, 242, 230, 0.13);
  --g-line-strong: rgba(232, 242, 230, 0.22);
  --g-text: #f3f6f1;
  --g-text-muted: #a9b5a6;
  --g-text-faint: #829080;
}

.g-page__kicker,
.g-store__kicker,
.g-event-hero__kicker,
.g-priority__kicker,
.g-member-access__kicker,
.g-founder-row__kicker,
.g-card__label,
.g-section__kicker,
.g-chakra-guide__kicker {
  color: var(--g-accent);
  font: 700 10px/1.1 var(--g-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.g-page__title,
.g-store__title {
  color: var(--g-text);
  font-family: var(--g-font-serif);
  font-size: clamp(42px, 11vw, 48px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.g-section__title,
.g-sec-head__title,
.g-store-cat .g-section__title {
  color: var(--g-text);
  font-family: var(--g-font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.g-card__value,
.g-card__value--lg {
  color: var(--g-text);
  font-family: var(--g-font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.g-page__sub,
.g-card__meta,
.g-member-access__meta,
.g-founder-row__meta,
.g-energy-note span,
.gaia-product-modal__description {
  color: var(--g-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.g-access__name {
  color: var(--g-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.g-access__meta {
  color: var(--g-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.g-tile__title {
  color: var(--g-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.g-tile__meta {
  color: var(--g-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.g-page__head,
.g-store__head {
  gap: 6px;
  background:
    radial-gradient(circle at 88% 8%, rgba(158, 229, 101, 0.09), transparent 38%),
    linear-gradient(155deg, #132017, #0c1510);
}

.g-card:not(.g-card--feature),
.g-member-access,
.g-founder-row--home,
.g-access {
  background:
    linear-gradient(145deg, rgba(158, 229, 101, 0.035), transparent 48%),
    var(--g-surface);
}

.g-sec-head { gap: 5px; margin-bottom: 0; }
.g-page-sec { gap: 14px; }
.g-access-grid { gap: 9px; }
.g-store-panel { gap: 26px; }
.g-store-cat { gap: 12px; }

@media (max-width: 560px) {
  .g-member-access__meta,
  .g-founder-row__meta { font-size: 13px; line-height: 1.45; }
  .g-member-access__title { font-size: 32px; line-height: 1; }
  .g-founder-row__title { font-size: 25px; line-height: 1; }
}

/* Cross-device app shell ------------------------------------------------
   Keep the phone experience compact, let tablets breathe, and turn the
   mobile dock into a proper header navigation on wide desktop screens. */

/* `.g-energy` is also the name of the compact energy-result component in
   gaia-system.css. On the Energy page that component rule was centring every
   direct child at its intrinsic width. The page modifier must win. */
body.gaia-v2 .g-page.g-energy {
  align-items: stretch;
}

body.gaia-v2 .g-page.g-energy > *,
body.gaia-v2 .g-page > *,
body.gaia-v2 .g-store > * {
  min-width: 0;
}

@media (min-width: 700px) and (max-width: 1099px) {
  body.gaia-v2 #gaia-app-shell.gaia-shell {
    width: 100%;
    max-width: 960px !important;
  }

  body.gaia-v2 .g-home,
  body.gaia-v2 .g-page,
  body.gaia-v2 .g-store {
    padding-inline: clamp(24px, 4vw, 40px);
  }

  body.gaia-v2 .gaia-tabbar {
    left: 50% !important;
    right: auto !important;
    width: min(720px, calc(100% - 32px));
    max-width: 720px !important;
    padding: 0 0 max(8px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%);
  }

  body.gaia-v2 .gaia-tabbar__inner {
    width: 100%;
    max-width: none !important;
  }

  .g-page__head,
  .g-store__head,
  .g-energy-note,
  .g-page-sec,
  .g-sec-head,
  .g-chakra-hero {
    width: 100%;
  }
}

@media (min-width: 1100px) {
  body.gaia-v2 {
    padding-bottom: 0;
  }

  body.gaia-v2 #gaia-app-shell.gaia-shell {
    width: 100%;
    max-width: 1320px !important;
  }

  body.gaia-v2 .g-topbar {
    min-height: 68px;
    padding: 10px 28px;
  }

  body.gaia-v2 .g-home,
  body.gaia-v2 .g-page,
  body.gaia-v2 .g-store {
    padding: 28px 40px 56px;
  }

  body.gaia-v2 .gaia-tabbar {
    top: 8px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    width: min(640px, calc(100vw - 400px));
    max-width: 640px !important;
    padding: 0 !important;
    transform: translateX(-50%);
  }

  body.gaia-v2 .gaia-tabbar__inner {
    width: 100%;
    min-height: 52px;
    max-width: none !important;
    align-items: center;
    padding: 4px !important;
    border-radius: 999px !important;
  }

  body.gaia-v2 .gaia-tabbar__group {
    flex: 1 1 0;
    justify-content: center;
    gap: 2px;
  }

  body.gaia-v2 .gaia-tabbar__link {
    max-width: none;
    min-width: 0;
    min-height: 44px;
    flex-direction: row;
    gap: 7px;
    padding: 0 12px;
  }

  body.gaia-v2 .gaia-tabbar__icon {
    width: 18px;
    height: 18px;
  }

  body.gaia-v2 .gaia-tabbar__label {
    display: inline !important;
    font-size: 11px !important;
  }

  body.gaia-v2 .gaia-tabbar__assist {
    width: 46px;
    height: 46px;
    margin: 0 5px;
  }

  .g-page__head,
  .g-store__head {
    width: 100%;
    min-height: 190px;
    padding: 30px 32px;
  }

  .g-page__title,
  .g-store__title {
    font-size: clamp(50px, 5vw, 68px);
  }

  /* Energy is a tabbed page: a switcher and exactly one visible panel.

     It used to be a two-column workspace, and the rules here placed
     #me-wellness in column one against #home-chakra-hero in column two. Both
     of those now live *inside* the panels rather than being children of
     .g-energy, so none of those placements matched any more: the switcher
     auto-placed into column one, the open panel into column two, and the row
     took the panel's height — leaving 772px of empty column beneath three
     pills. One column, switcher across the top. */
  body.gaia-v2 .g-page.g-energy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }

  body.gaia-v2 .g-page.g-energy > * {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .g-energy .g-chakra-hero {
    --stage-h: 440px;
  }
}
