/* Post a bid: the hero's copy beside (from 60rem) or over (below it) its animation, post-hero.js.
   The stage borrows home's .bsh-* look (styles.css: the top bar, the email card, its rows, the
   flying row, the lamp dot) under its own .bsp root, and draws its own parts (.bsp-*): the poster's
   form, the saved searches, the bid's public page and the reply's envelope. No new font or colour:
   night plate, ink, paper, the yellow lamp only on the reply's dot. */

/* ---- the hero: copy, then the stage; two columns from 60rem ---- */
.post-hero {
  row-gap: 0;
}
.post-hero::before {
  grid-area: 1 / 1 / 3 / 2;
}
.post-hero .hero__copy {
  grid-area: 1 / 1;
}
.post-anim {
  grid-area: 2 / 1;
  min-width: 0;
  margin: 0;
  padding-block: var(--sp-2) var(--sp-5);
}
.post-anim__frame {
  position: relative;
  container-type: inline-size; /* the stage's em is its width / 26 */
  max-width: 28rem;
  margin-inline: auto;
}
/* a phone: the stage takes the column and --sp-2 of each margin, never more */
@media (width < 30rem) {
  .post-anim__frame {
    margin-inline: calc(var(--sp-2) * -1);
  }
}
/* a phone: the lede keeps home's air under the headline (pages.css tightens a place page's to 12px) */
@media (width < 40rem) {
  .post-hero .lede {
    margin-top: var(--sp-4);
  }
}
/* a tablet, stacked: a little smaller, so the form still starts on the first screen */
@media (40rem <= width < 60rem) {
  .post-anim__frame {
    max-width: 26rem;
  }
}
@media (width >= 60rem) {
  .post-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: var(--sp-7);
  }
  .post-hero::before {
    grid-area: 1 / 1 / 2 / 3;
  }
  .post-hero .hero__copy {
    align-self: center;
  }
  .post-anim {
    grid-area: 1 / 2;
    align-self: center;
    padding-block: var(--sp-4);
  }
  .post-anim__frame {
    max-width: 28rem;
    margin-right: 0;
  }
}
/* the stage takes no tap (owner 2026-11-19); no pause button under it (owner 2026-11-20) */
.post-anim {
  padding-bottom: var(--sp-2);
}
/* home's height (owner 2026-11-27): the first screen on phones and desktops, as tall as what it
   holds on stacked tablets, like [data-page="home"] .hero. Only a hero that holds the stage: the
   agency landing (agency-bids/) has none, so it stays as tall as its copy (.hero--loc) and the
   agency's bids start on the first screen (review 2026-11-27 D1) */
.hero.post-hero:has(.post-anim) {
  min-height: 100vh;
  min-height: var(--screen);
}
@media (40rem <= width < 60rem) {
  .hero.post-hero:has(.post-anim) {
    min-height: 0;
  }
}
/* desktop: home's scale (owner 2026-11-27): the stage is as wide as home's frame, sized from the
   hero's height the same way (styles.css .hero__media at 60rem), so its em matches home's .bsh */
@media (width >= 60rem) {
  .post-anim {
    container-type: size;
    align-self: stretch;
    display: grid;
    align-content: center;
    padding-block: 0;
  }
  /* home's frame runs past its column by its clear margin; this one does too, evenly each side */
  .post-anim__frame {
    --stage-w: calc(min(100cqw - 1rem, (100cqh - 3.5rem) * 0.7385) / 0.9231);
    width: var(--stage-w);
    max-width: none;
    margin-inline: calc((100cqw - var(--stage-w)) / 2);
  }
}
@media (forced-colors: active) {
  .post-anim__frame {
    forced-color-adjust: none;
    border-radius: var(--r-lg);
    background: var(--night);
  }
}

/* ---- the stage: 26em square, a picture (no clicks, no selection) ---- */
.bsp {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  overflow: hidden;
  font-size: calc(100cqw / 26);
  line-height: 1.3;
  color: var(--on-night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  user-select: none;
  pointer-events: none;
}
.bsp *,
.bsp *::before,
.bsp *::after {
  box-sizing: border-box;
}
.bsp svg :is(path, rect, circle) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bsp .bsh-avatar :is(path, circle) {
  stroke: none;
}
.bsp .bsh-avatar path {
  fill: #fff;
}
.bsp .bsh-avatar circle {
  fill: var(--hivis);
}
.bsp .bsh-ok path {
  stroke-width: 2.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
/* the rest frame (no script, reduced motion, t = 7.4 s): label 3 and the email, nothing else */
.bsp .bsh-lab:nth-child(3),
.bsp .bsh-emph {
  opacity: 1;
}
.bsp-env,
.bsp-form,
.bsp-finds,
.bsp-scan,
.bsp-fly,
.bsp-page,
.bsp-tap,
.bsp-sb,
.bsp-match,
.bsp-lit,
.bsp-sflash,
.bsp-pill-on,
.bsp-box-on {
  opacity: 0;
}
/* the movers get their own layers while the script draws them (six at most) */
.bsp.is-live :is(.bsp-form, .bsp-fly, .bsp-finds, .bsh-card, .bsp-page, .bsp-env) {
  will-change: transform, opacity;
}

/* ---- top bar: the step on the left, the reply's envelope and the clock on the right ---- */
.bsp-right {
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.bsp-env {
  position: relative;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.5em;
  background: #fff;
  color: var(--night);
  box-shadow: 0 0.5em 1.2em -0.4em rgb(3 8 18/70%);
}
.bsp-env svg {
  width: 1em;
  height: 1em;
}
.bsp-env .bsh-tdot {
  box-shadow: 0 0 0 0.14em var(--night);
}
.bsp .bsh-clk {
  font-size: 0.82em;
}

/* ---- the poster's form ---- */
.bsp-form {
  position: absolute;
  top: 4em;
  left: 1em;
  width: 24em;
  padding: 0.8em 0.95em 0.95em;
  border-radius: 1em;
  border: 1px solid rgb(207 224 245/16%);
  background: rgb(16 34 61/55%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255/6%),
    0 1.2em 2.6em -1.2em rgb(3 8 18/55%);
  color: #fff;
  transform-origin: 50% 0;
}
.bsp-fhead {
  padding-bottom: 0.55em;
  font-size: 1.04em;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.bsp-frow {
  display: grid;
  grid-template-columns: 3.9em minmax(0, 1fr);
  align-items: center;
  min-height: 2.25em;
  box-shadow: inset 0 1px 0 rgb(207 224 245/11%);
}
.bsp-fk {
  font-size: 0.82em;
  color: var(--on-night-2);
}
.bsp-fv {
  min-width: 0;
  font-size: 0.88em;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.bsp-pills {
  display: flex;
  gap: 0.4em;
}
.bsp-pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em 0.3em 0.5em;
  border: 1px solid rgb(207 224 245/22%);
  border-radius: 999px;
  font-size: 0.95em;
  line-height: 1.2;
  color: var(--on-night);
}
.bsp-pick {
  color: #fff;
}
.bsp-pill-on {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid rgb(255 255 255/70%);
  border-radius: inherit;
  background: rgb(255 255 255/14%);
}
.bsp-box {
  position: relative;
  flex: none;
  width: 0.85em;
  height: 0.85em;
  border: 1px solid rgb(207 224 245/45%);
  border-radius: 0.22em;
}
.bsp-box-on {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: #fff;
}
.bsp-box .bsh-ok {
  inset: -1px;
  width: auto;
  height: auto;
  color: var(--night);
  opacity: 1;
}
.bsp-fill {
  justify-self: start;
}
.bsp-fscope {
  align-items: start;
  padding-block: 0.5em;
}
.bsp-fscope .bsp-fk {
  line-height: 1.5;
}
.bsp-line {
  display: block;
  line-height: 1.4;
}
.bsp-w {
  display: inline-block;
}
.bsp-submit {
  position: relative;
  display: grid;
  place-items: center;
  height: 2.5em;
  margin-top: 0.8em;
  overflow: hidden;
  border-radius: 0.6em;
  background: #fff;
  color: var(--night);
  font-size: 0.92em;
  font-weight: 600;
}
.bsp-sa,
.bsp-sb {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.bsp-sb .bsh-ok,
.bsp-match .bsh-ok {
  position: static;
  width: 1.1em;
  height: 1.1em;
  opacity: 1;
}
.bsp-tap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.2em;
  height: 3.2em;
  margin: -1.6em 0 0 -1.6em;
  border-radius: 50%;
  background: rgb(21 23 28/16%);
  pointer-events: none;
}

/* ---- saved searches, matched by trade and county ---- */
.bsp-finds {
  position: absolute;
  top: 10em;
  left: 1em;
  right: 1em;
}
.bsp-fcap {
  margin-bottom: 0.55em;
  font-size: 0.82em;
  color: var(--on-night-2);
}
.bsp-srch {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 2.55em;
  padding: 0 0.85em 0 0.75em;
  border: 1px solid rgb(207 224 245/12%);
  border-radius: 0.6em;
  background: rgb(255 255 255/3.5%);
}
.bsp-srch + .bsp-srch {
  margin-top: 0.5em;
}
.bsp-sflash {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgb(207 224 245/10%);
}
.bsp-sico {
  flex: none;
  width: 1em;
  height: 1em;
  color: var(--on-night-2);
}
.bsp-terms {
  font-size: 0.9em;
  color: var(--on-night);
  white-space: nowrap;
}
.bsp-tag {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0.14em 0.42em;
  border-radius: 0.38em;
}
.bsp-lit {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgb(255 255 255/14%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255/55%);
}
.bsp-match {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-left: auto;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
}
.bsp-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.6em;
}

/* ---- the email: home's card, its rows and the posted line ---- */
.bsp .bsh-card {
  top: 4em;
}
.bsp .bsh-time,
.bsp .bsh-meta,
.bsp .bsh-tile-l {
  font-size: 0.82em;
}
.bsp .bsh-tile-l {
  letter-spacing: 0.06em;
}
.bsp .bsh-subj-t {
  font-size: 1.04em;
  text-wrap: balance;
}
.bsp-posted {
  margin-top: 0.4em;
  text-wrap: balance;
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}
/* styles.css lifts every row child (position: relative): the tap ring stays out of the flow */
.bsp .bsh-row > .bsp-tap {
  position: absolute;
  top: 1.25em;
  left: 8.5em;
  background: rgb(255 255 255/18%);
}

/* ---- the posted bid, flying from the matches into the email ---- */
.bsp-fly {
  --tint: rgb(255 255 255/8%);
  --rule-2: rgb(207 224 245/24%);
  --asphalt: #fff;
  --gravel: var(--on-night-2);
  position: absolute;
  top: 4em;
  /* exactly row 1's box (the card's 1px border and 0.95em padding in): it lands unscaled */
  left: calc(1.95em + 1px);
  z-index: 3;
  width: calc(22.1em - 2px);
  color: #fff;
}
.bsp-fly :is(.bsh-fly-dark, .bsh-fly-light) {
  transform-origin: 50% 0; /* stretched down to row 1's height from the shared top edge */
}
.bsp-fly-in {
  position: relative;
  display: grid;
  grid-template-columns: 3.1em 1fr;
  gap: 0.75em;
  align-items: start;
  padding: 0.6em 0.7em;
  border: 1px solid transparent;
}

/* ---- the bid's public page and its reply button ---- */
.bsp-page {
  position: absolute;
  top: 6.2em;
  left: 1em;
  z-index: 4;
  width: 24em;
  overflow: hidden;
  border-radius: 0.9em;
  background: var(--paper);
  color: var(--asphalt);
  box-shadow:
    0 1.4em 3em -1em rgb(3 8 18/70%),
    0 0.2em 0.6em rgb(3 8 18/35%);
  transform-origin: 50% 0;
}
.bsp-url {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.55em 0.95em;
  border-bottom: 1px solid var(--rule);
  background: var(--tint);
  color: var(--gravel);
  font-family: var(--mono);
  font-size: 0.82em;
  white-space: nowrap;
}
.bsp-url svg {
  flex: none;
  width: 1em;
  height: 1em;
}
.bsp-pbody {
  padding: 0.9em 0.95em 1em;
}
.bsp-ptitle {
  font-size: 1.12em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.bsp-pby {
  margin-top: 0.3em;
  font-size: 0.82em;
  font-weight: 500;
}
/* an agency's bid page (post-a-bid/agencies/): the Verified agency mark under the poster's line,
   the manage page's approved chip (post.css .pm-status) at the stage's scale */
.bsp-pver {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.4em;
  padding: 0.18em 0.6em 0.18em 0.45em;
  border-radius: 999px;
  background: #ecfdf3;
  box-shadow: 0 0 0 1px #abefc6;
  color: var(--asphalt);
  font-size: 0.76em;
  font-weight: 600;
}
.bsp .bsp-pver svg {
  width: 1.05em;
  height: 1.05em;
}
.bsp .bsp-pver path {
  stroke-width: 2.4;
}
.bsp-pmeta {
  margin-top: 0.15em;
  font-size: 0.82em;
  color: var(--gravel);
}
.bsp-pscope {
  margin-top: 0.6em;
  padding-top: 0.6em;
  border-top: 1px solid var(--rule);
  font-size: 0.82em;
  line-height: 1.4;
}
.bsp-pbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.85em;
  padding: 0.6em 1.05em 0.6em 0.9em;
  overflow: hidden;
  border-radius: 0.6em;
  background: var(--asphalt);
  color: #fff;
  font-size: 0.88em;
  font-weight: 600;
}
.bsp-pbtn svg {
  width: 1.1em;
  height: 1.1em;
}
.bsp-pbtn .bsp-tap {
  background: rgb(255 255 255/22%);
}

/* the Florida map (home's chart), faint behind the stage: veiled on the copy's side so the headline
   stays on plain night; a phone sees it low behind the stacked stage */
.hero.post-hero::before {
  background:
    linear-gradient(90deg, var(--night) 0 42%, rgb(10 22 40/80%) 58%, rgb(10 22 40/55%) 100%),
    var(--chart) 78% 55% / auto 118% no-repeat,
    radial-gradient(70% 60% at 76% 45%, var(--night-hi), transparent 72%),
    var(--night);
}
@media (width < 60rem) {
  .hero.post-hero::before {
    background:
      linear-gradient(180deg, var(--night) 0 38%, rgb(10 22 40/80%) 62%, rgb(10 22 40/62%) 100%),
      var(--chart) 50% 100% / min(140%, 46rem) auto no-repeat,
      radial-gradient(90% 50% at 50% 85%, var(--night-hi), transparent 75%),
      var(--night);
  }
}

/* the agency pages' heroes (post-a-bid/agencies/, agency-bids/): the main action goes to another
   page, so it is a button: the home closing band's hivis go (styles.css .last .btn--go; an ink
   fill is lost on the night plate), under the figures; the quiet link under it */
.post-hero .hero__go {
  margin-top: var(--sp-5);
}
.post-hero .btn--go {
  background: var(--hivis);
  color: var(--asphalt);
  box-shadow:
    inset 0 0 0 1px rgb(140 100 0/22%),
    0 1px 2px rgb(0 0 0/25%);
}
@media (hover: hover) {
  .post-hero .btn--go:not([disabled]):hover {
    background-color: #ffdc33;
    box-shadow:
      inset 0 0 0 1px rgb(140 100 0/22%),
      0 10px 24px -12px rgb(255 208 0/45%);
  }
}
.post-hero .btn--go:not([disabled]):focus-visible {
  outline-color: #fff;
}
.post-hero .hero__go + .loc-picks {
  margin-top: var(--sp-2);
}
