/* © 2026 Cromulent, Inc. All Rights Reserved.
   splash.css - the suite's one front-page hero layout: every room's splash puts its word, headline, subhead and way in
   at the same size and the same place (Maestro, 2026-11-28: "every one of these needs identical font size and
   placement. Given the same browser window these should line up perfectly"). Served by the edge at
   /_cromulent/splash.css on every product host (conf.d/_mark.caddy); standpoints serves a byte-identical copy from
   web/static/_cromulent/splash.css (sfhsbta/admin/test_product_leads.py holds the two together).

   THE RULE. Each part of the splash takes a fixed slot from the top of the page, so where a part lands never depends
   on what sits above it: the bar, then the stage (the room's art, any height inside its slot), then the word, the
   headline, the subhead and the way in. The headline and the subhead hold their lines (one and three on a wide
   screen, two and five on a phone), so a short line leaves the button where a long one would. Nothing is centred
   vertically: centring moves every part whenever the copy changes length.

   WHAT STAYS EACH ROOM'S. The art, the colours, the faces, the button shapes, the motto, the counters, the background.
   This file sets only sizes and vertical places, and it loads after the room's own stylesheet; its rules carry
   !important because a room's older, more specific rules (media queries included) must not move a part off its slot.

   THE CONTRACT. A room's splash marks its parts with these classes (tests/deploy/test_suite_splash.py reads every
   front page against it, in this order):
     .hx-splash   the splash's root
     .hx-bar      the header across the top (motto and top nav)
     .hx-stage    the art's slot; with .hx-holds-word it also takes the word's slot (tag, whose mosaic is its word)
     .hx-word     the word's lockup: an optional .hx-mark, then the name in .hx-name
     .hx-head     the headline
     .lede        the subhead (the suite's existing name for it, so no room's copy line is touched to join)
     .hx-go       the way in: a row of .hx-btn links, or standpoints' sign-in row
   Any element between the root and a part that would add space carries .hx-flow, which zeroes its vertical space. */

.hx-splash {
  --hx-bar: 72px;
  --hx-air: clamp(8px, 2.2vh, 24px);
  --hx-stage: clamp(140px, 30vh, 290px);
  --hx-word: min(12vw, 10.5vh, 104px);
  --hx-gap-head: clamp(14px, 2.8vh, 30px);
  --hx-head: min(max(24px, 3vw), 44px, 5vh);
  --hx-head-lines: 1;
  --hx-gap-sub: clamp(12px, 2vh, 20px);
  --hx-sub: clamp(15px, 1.25vw, 19px);
  --hx-sub-lines: 3;
  --hx-gap-go: clamp(18px, 3.2vh, 34px);
  --hx-btn: 48px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: clamp(40px, 6vh, 64px) !important;  /* room for a room's counter in the bottom corner */
  gap: 0 !important;
}
@media (max-width: 560px) {
  .hx-splash { --hx-bar: 60px; --hx-stage: clamp(140px, 28vh, 240px); --hx-head-lines: 2; --hx-sub-lines: 5; }
}

.hx-splash .hx-flow {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: none !important;
  gap: 0 !important;
  width: 100%;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* the bar: one height (a room's header lays out its own row; bench's is the wrapper shell.py's bar sits in) */
.hx-splash .hx-bar {
  box-sizing: border-box !important;
  align-self: stretch;
  flex: none !important;
  height: var(--hx-bar) !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* the stage: the art's slot, whatever the art */
.hx-splash .hx-stage {
  box-sizing: border-box !important;
  flex: none !important;
  height: var(--hx-stage) !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: var(--hx-air) !important;
  margin-bottom: 0 !important;
}
/* a stage its room hides (fathom's, when its data cannot load) keeps its slot, empty */
.hx-splash .hx-stage[hidden] { display: block !important; visibility: hidden !important; }
.hx-splash .hx-stage.hx-holds-word { height: calc(var(--hx-stage) + var(--hx-word)) !important; }

/* the word: the name at one size, its mark beside it */
.hx-splash .hx-word {
  box-sizing: border-box !important;
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .16em !important;
  font-size: var(--hx-word) !important;
  line-height: 1 !important;
  height: var(--hx-word) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hx-splash .hx-word .hx-name { font-size: 1em !important; line-height: 1 !important; margin: 0 !important; padding: 0 !important; }
.hx-splash .hx-word .hx-mark { flex: none !important; width: auto !important; height: .82em !important; margin: 0 !important; }

/* the headline: one size, its lines held (a fixed height, so an inline-block span in it cannot grow the box) */
.hx-splash .hx-head {
  box-sizing: content-box !important;
  flex: none !important;
  font-size: var(--hx-head) !important;
  line-height: 1.12 !important;
  height: calc(1.12em * var(--hx-head-lines)) !important;
  min-height: 0 !important;
  margin: var(--hx-gap-head) 0 0 !important;
  padding: 0 !important;
  max-width: min(100%, 24em);
  text-align: center;
}

/* the subhead: one size and measure, its lines held */
.hx-splash .lede {
  box-sizing: content-box !important;
  flex: none !important;
  font-size: var(--hx-sub) !important;
  line-height: 1.5 !important;
  height: calc(1.5em * var(--hx-sub-lines)) !important;
  min-height: 0 !important;
  max-width: min(100%, 34em) !important;
  margin: var(--hx-gap-sub) 0 0 !important;
  padding: 0 !important;
  text-align: center;
}

/* the way in: one row, one button height and size */
.hx-splash .hx-go {
  flex: none !important;
  margin: var(--hx-gap-go) 0 0 !important;
  padding: 0 !important;
}
/* a wrapper inside the row (bench's door with its line under the button) adds no space above the button */
.hx-splash .hx-go > * { margin-top: 0 !important; }
.hx-splash .hx-go .hx-btn {
  box-sizing: border-box !important;
  height: var(--hx-btn) !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
