/* THE PREMIUM LOOK on La Mesa's public pages and the card scanner (2026-10-23, the owner's chosen design).
 *
 * Linked last in <head> by hub, events, announcements, give, groups, groups/request, prayer, visitor and scanner,
 * each with <body class="lm-premium ju-app-groups ju-page-glow">. EVERY rule below is scoped to body.lm-premium,
 * which also outranks each page's own one-class rules without !important, so nothing here can reach another page.
 *
 * Only how things look changes: no markup, id, word or script depends on this file.
 *  - the ground: plain cream (juntos-ui.css's .ju-page-glow; this page's own `body` rule loses to it);
 *  - each page's header block (.page-hdr, .welcome-banner, .hero, .welcome) is a light see-through card (option B,
 *    2026-10-23: the top bar is the only dark band), navy title, slate words, teal icon tile;
 *  - cards are soft: --r-lg 20px and --shadow-sm becomes --shadow-card, the two tokens every card already reads;
 *  - buttons are pills. The PRIMARY buttons KEEP the church's own colour (var(--accent) with its --accent-ink, set by
 *    branding.js / juntos-ink.js): a gradient ending on a light church colour would put white words on it. They gain
 *    the soft glow shadow instead.
 */

body.lm-premium {
  --r-lg: 20px;
  --shadow-sm: var(--shadow-card);
}

/* ── The page header: a light see-through card (option B, 2026-10-23) ──
 * The navy top bar is the only dark band on a page, so the welcome / hero / page header under it is a light card
 * standing apart from it: navy title, slate words, the same white rim as every card. */
body.lm-premium :is(.page-hdr, .welcome-banner, .hero, .welcome) {
  position: relative;
  overflow: hidden;
  color: var(--text-1);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 24px;
  padding: 24px 20px;
  margin-bottom: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(6,29,45,.04), 0 6px 20px rgba(6,29,45,.06);
}
/* No blur on purpose: a header card sits in the page, so nothing passes behind it, and a backdrop-filter would make it the
   containing block for any position:fixed element inside (the round + on My Work, a phone menu). 2026-10-23. */
/* The older teal blob in the corner goes. */
body.lm-premium :is(.hero, .welcome)::after { display: none; }
body.lm-premium :is(.page-hdr, .welcome-banner, .hero, .welcome) h1 { color: var(--navy); }
body.lm-premium :is(.page-hdr, .welcome-banner, .hero, .welcome) p { color: var(--slate); }
body.lm-premium :is(.page-hdr, .welcome-banner, .hero, .welcome) > :last-child { margin-bottom: 0; }
body.lm-premium :is(.page-hdr, .welcome-banner, .hero, .welcome) :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* The round icon above a title: a soft teal tile on the light card. */
body.lm-premium :is(.welcome-icon, .banner-icon, .hero-icon) {
  color: var(--teal);
  background: var(--teal-pale, rgba(6,97,100,.08));
  border: 1px solid rgba(6,97,100,.12);
  box-shadow: none;
}
/* Groups' two hero buttons on the light card: the church's own colour and a white pill with a strong edge. */
body.lm-premium .hero-btn { border-radius: 999px; }
body.lm-premium .hero-btn-primary { background: var(--accent); color: var(--accent-ink, #ffffff); }
body.lm-premium .hero-btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }

/* Hub's "Next up" card: the page's one dark content card, apart from the top bar; navy to navy-2 only. */
body.lm-premium .event-card {
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
  box-shadow: var(--shadow-card);
}

/* ── Pills ── */
body.lm-premium :is(.ju-btn, .btn, .btn-give, .btn-submit, .btn-again, .reg-btn, .join-btn, .retry-btn, .cal-btn,
  .cal-choice, button.primary, button.secondary) { border-radius: 999px; }
body.lm-premium :is(.ju-btn:not(.ju-btn--secondary):not(.ju-btn--quiet), .btn-primary, .btn-give, .btn-submit,
  .reg-btn, .join-btn, button.primary):not(:disabled) { box-shadow: var(--shadow-glow); }
/* On the dark "Next up" card a glow under a light button reads as a smudge. */
body.lm-premium .event-card .ju-btn { box-shadow: none; }

/* The scanner's drop zone and the social pills follow the softer corners. */
body.lm-premium .drop-zone { border-radius: 16px; }

/* 44px tap areas (visual rule 14, measured live 2026-10-23): the header's language button and the small text
   buttons on the hub and Events keep their look; an invisible strip makes each at least 44px tall. */
body.lm-premium .see-more-btn, body.lm-premium .reg-btn, body.lm-premium .ann-card-more { position: relative; }
body.lm-premium .see-more-btn::after, body.lm-premium .reg-btn::after, body.lm-premium .ann-card-more::after {
  content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%);
}
/* The public top bar's Scanner, Staff Login and ES (cohesion pass 2026-11-09, R14: measured 26px tall). The button
   itself is 44px tall now, and the -9px block margins give the 18px back, so it takes the same 26px in the bar
   as before: the bar does not grow, on a phone (Core's two-row grid) or a desktop. */
body.lm-premium header.ju-topbar .nav-btn {
  min-height: 44px; margin-block: -9px; padding-top: 0; padding-bottom: 0; box-sizing: border-box;
}
