/**
 * The Meetings home inside the TruBible OS window (TINL-1378). Only on a computer (`html.tbos-desktop`,
 * set by /os/tb-os.js); phones, tablets and the store apps never match these rules.
 * A meeting room itself (meet/room.html) is not in the shell: a call takes the whole screen.
 */
/* the page was a column on <body> (footer at the bottom); here the window's body is a side panel and the
   page beside it (tb-os.css, .tbos-side), and the main part is at least the window's height */
html.tbos-desktop .mh-body .mh-main { min-height: calc(var(--app-vh) - 72px); }
/* the page's own top bar (search, language, account, sign in) is the desktop's menu bar and the window's title bar here */
html.tbos-desktop .mh-body .mh-top { display: none; }

/* ---------- Signed in: this is the app's home, not an advertisement ----------
   The headline and the paragraph that sell the product to a visitor are not drawn for someone who already
   uses it; "TruBible Meetings" becomes the screen's title. (The headline stays for screen readers.) */
html.mh-in .mh-hero h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.mh-in .mh-lead { display: none; }
html.mh-in .mh-eyebrow { margin: 0 0 14px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
html.mh-in .mh-eyebrow svg { display: none; }
@media (max-width: 760px) { html.mh-in .mh-hero { padding-top: 18px; } }

/* ---------- Signed out, on a phone or inside an installed app: a welcome screen ----------
   (html.tbos-phone = a phone-sized screen; html.tbos-app = a store app, an installed web app.) Inside an app
   the feature cards are not drawn; in a phone browser they follow below. */
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-top,
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-eyebrow,
html.tbos-app:not(.mh-in) .mh-features { display: none; }
html.tbos-phone:not(.tbos-app):not(.mh-in) .mh-hero { min-height: 92svh; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-home { flex: 1; display: flex; flex-direction: column; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0; max-width: 520px; padding: calc(18px + env(safe-area-inset-top)) 22px 6px; text-align: center; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-hero-side { order: -1; margin: 0 6px; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-bubble { left: -10px; bottom: 30%; text-align: left; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-hero-text { display: flex; flex-direction: column; align-items: center; margin-top: -40px; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-hero-text::before { content: ''; position: relative; z-index: 2; width: 80px; height: 80px; margin-bottom: 14px; border-radius: 22.5%; background: url("/os/img/app-meet.svg?v=2") center / cover; box-shadow: 0 0 0 5px var(--bg-page), 0 14px 28px -12px rgba(0, 0, 0, 0.5); }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-hero h1 { margin: 0 0 10px; font-size: clamp(1.55rem, 6.6vw, 2rem); line-height: 1.12; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-lead { margin: 0 0 20px; font-size: 1rem; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-join { align-self: stretch; max-width: none; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-join-hint { max-width: none; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-cta { flex-direction: column; flex-wrap: nowrap; align-self: stretch; gap: 4px; margin-top: 18px; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-cta .btn { width: 100%; justify-content: center; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-cta .btn-primary { min-height: 54px; border-radius: 16px; font-size: 1.05rem; }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-foot { border-top: 0; padding: 0 0 calc(10px + var(--safe-bottom)); }
:is(html.tbos-app, html.tbos-phone):not(.mh-in) .mh-foot .mh-wrap { justify-content: center; font-size: 0.8rem; }
/* inside an app the page meets the status bar, which takes the page's own colour: no tint at the top edge */
html.tbos-app .mh-body { background: var(--bg-page); }

/* The join row with the desktop control shapes (css/os-controls.css): the field keeps room for its icon and
   stands as tall as the Join button beside it. */
@media (hover: hover) and (pointer: fine) {
  html.tbos-desktop .mh-join-field .form-control { min-height: 40px; padding-left: 42px; font-size: 0.95rem; }
  html.tbos-desktop .mh-join .btn { min-height: 40px; padding-left: 20px; padding-right: 20px; }
}
html.tbos-desktop .mh-join-field .form-control { padding-left: 42px; border-radius: 9px; }
