/* The bid and place pages' look (out/ui-2026-11-26/plan-A.md, lane A). Loaded after pages.css and
   the family's sheet (seo-places.css, seo-trades.css) on the bid pages (seo/bids.py BID_HEAD) and
   the location pages (seo/locations.py STAGE_HEAD) only: the content pages that share .hero--loc
   and .loc-layout (pricing, report, compare, method, guides) never load it.

   One signature a page: the bid's clock on a bid page, the lit county on a place page. The product's
   own artifacts are the pictures: the chart with the place lit, the morning email with the bid in it,
   the days left, the record as tiles. Ink-navy hero, paper body, one signal-yellow lamp. Every
   moving thing waits for prefers-reduced-motion: no-preference, eases out and ends. */

/* ===== The stage: the chart behind the email card, in the plate at every width ===== */

/* phones and tablets: the plate holds row 1 (the copy) and row 2 (the stage); the card no longer
   falls past it onto the grey page */
.hero--stage::before {
  grid-area: 1 / 1 / 3 / 2;
}
.hero--stage .hero__copy {
  position: relative;
  z-index: 1;
}
/* a bid's own name in white (a place page's two-tone heading keeps its tones) */
.hero--stage h1 {
  color: var(--on-ink);
}
.bid-stage {
  --stage-card: 26rem;
  grid-area: 2 / 1;
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding-bottom: var(--sp-6);
}
.bid-stage .loc-map {
  display: block;
  justify-self: stretch;
  position: relative;
  height: 12rem;
  margin: 0 calc(var(--gutter) * -1) -3.5rem;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  /* the band comes out of the plate: no hard edge where the chart starts */
  mask-image: linear-gradient(transparent, #000 2.5rem);
}
/* the svg is placed by its pin spot (geo.PIN_AT: half across, a quarter down) */
.bid-stage .loc-map__svg {
  --map-w: 28rem;
  --pin-x: 30%;
  --pin-y: 5rem;
  position: absolute;
  left: calc(var(--pin-x) - var(--map-w) * 0.5);
  top: calc(var(--pin-y) - var(--map-w) / 1.12 * 0.25);
  width: var(--map-w);
  max-width: none;
  height: auto;
  aspect-ratio: 1.12;
  mask-image: radial-gradient(50% 46% at 50% 25%, #000 45%, rgb(0 0 0/45%) 72%, transparent);
}
.bid-stage .loc-map__svg image {
  filter: brightness(1.5) saturate(1.1);
}
.bid-stage .loc-map figcaption {
  position: absolute;
  left: calc(30% + 1rem);
  top: calc(5rem - 0.8rem);
  max-width: calc(70% - 1.5rem);
  margin: 0;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgb(10 22 40/78%);
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: var(--on-night);
  font: 500 0.75rem/1.3 var(--sign);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bid-stage .hero__media--card {
  --card-w: min(100%, var(--stage-card));
  position: relative;
  z-index: 1;
  grid-area: auto;
  justify-self: center;
  padding: 0;
}
.bid-stage .bsh--card .bsh-chips {
  justify-content: flex-end;
}
/* the subject is the email's message: two lines before it is cut ("..., and 1 like it" read
   as "..., a...") */
.bid-stage .bsh--card .bsh-subj-t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
/* the card's own glass, a touch lifted off the chart */
.bid-stage .bsh--card .bsh-card {
  box-shadow:
    0 0 0 1px var(--night-line),
    0 24px 48px -20px rgb(0 0 0/60%);
}
/* no card: the chart alone, a little taller */
.bid-stage--map .loc-map {
  height: 15rem;
  margin-bottom: 0;
}
.bid-stage--map .loc-map__svg {
  --pin-x: 50%;
  --pin-y: 6rem;
}
.bid-stage--map .loc-map figcaption {
  left: 50%;
  top: auto;
  bottom: var(--sp-2);
  translate: -50% 0;
}
/* the whole state (a statewide trade page, a statewide bid): the chart's own ratio, its own dots */
.bid-stage .loc-map--state {
  height: 17rem;
  margin-bottom: -4rem;
}
.bid-stage .loc-map--state .loc-map__svg {
  --map-w: 18rem;
  left: calc(50% - var(--map-w) * 0.5);
  top: var(--sp-5);
  aspect-ratio: 1030 / 906;
  mask-image: linear-gradient(#000 70%, transparent);
}
.bid-stage .loc-map--state figcaption {
  display: none;
}
.bid-stage--map .loc-map--state {
  height: 17rem;
  margin-bottom: 0;
}

/* the pin: the bid's county, a lamp dot ringed in ink, and its ring */
.loc-map__pin .loc-map__dot {
  fill: var(--hivis);
  stroke: var(--night);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.loc-map__pin .loc-map__ring {
  opacity: 0;
}
.bid-stage .loc-map__county {
  stroke-width: 2px;
}
.bid-stage .loc-map__near {
  stroke: rgb(207 224 245/22%);
}

/* tablets: the card a column of its own beside the band's middle */
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .bid-stage .loc-map {
    height: 14rem;
    margin-bottom: -4rem;
  }
  .bid-stage .loc-map__svg {
    --map-w: 36rem;
    --pin-x: 34%;
    --pin-y: 6rem;
  }
  .bid-stage .loc-map figcaption {
    left: calc(34% + 1.1rem);
    top: calc(6rem - 0.8rem);
  }
  .bid-stage .loc-map--state .loc-map__svg {
    --map-w: 19rem;
  }
  .bid-stage .loc-map--state {
    height: 17rem;
    margin-bottom: -5rem;
  }
}

/* wide: the copy left, the stage right. The stage is the card's own box (centred on the copy), the
   chart drawn around it with the pin up and to the left of the card's corner */
@media (min-width: 60rem) {
  .hero--stage::before {
    grid-area: 1 / 1 / 2 / 3;
  }
  .bid-stage {
    grid-area: 1 / 2;
    align-self: center;
    justify-self: end;
    width: min(100%, var(--stage-card));
    padding-block: var(--sp-7);
  }
  .bid-stage .loc-map {
    position: absolute;
    grid-area: auto; /* pages.css puts the hero's map in column 2: the stage's own box here */
    place-self: stretch;
    inset: 0;
    height: auto;
    margin: 0;
    overflow: visible;
    mask-image: none; /* a mask clips to the box: the chart runs past it here */
  }
  /* the pin a step left of the card's top corner, the chart faded out before it reaches the copy
     (the left edge: 7rem to 2rem left of the pin, in the svg's own box) and toward the plate's
     foot */
  .bid-stage .loc-map__svg {
    --map-w: 42rem;
    --pin-x: -2.25rem;
    --pin-y: calc(var(--sp-7) + 1.25rem);
    mask-image:
      linear-gradient(90deg, transparent calc(50% - 6rem), #000 calc(50% - 1.5rem)),
      linear-gradient(transparent 4%, #000 14%),
      radial-gradient(60% 55% at 50% 25%, #000 55%, transparent);
    mask-composite: intersect;
  }
  .bid-stage .loc-map figcaption {
    left: -2.25rem;
    top: calc(var(--sp-7) + 1.25rem - 2.75rem);
    translate: -50% 0;
    max-width: 14rem;
  }
  .bid-stage .hero__media--card {
    --card-w: 100%;
    justify-self: stretch;
  }
  .bid-stage .bsh--card .bsh-chips {
    justify-content: flex-end;
  }
  /* no card: the chart fills the right column, faded out before the copy */
  .bid-stage--map {
    align-self: stretch;
    justify-self: stretch;
    width: auto;
    min-height: 22rem;
  }
  .bid-stage--map .loc-map__svg {
    --map-w: 40rem;
    --pin-x: 55%;
    --pin-y: 40%;
    mask-image:
      linear-gradient(90deg, transparent 8%, #000 26%),
      radial-gradient(closest-side at 50% 30%, #000 45%, transparent);
    mask-composite: intersect;
  }
  .bid-stage--map .loc-map figcaption {
    left: 55%;
    top: calc(40% + 1.5rem);
    bottom: auto;
  }
  /* a narrower desktop: the copy runs closer to the stage, so the chart fades in later (no
     chart lines under the heading's last words) */
  @media (max-width: 74.99rem) {
    .bid-stage:not(.bid-stage--map) .loc-map__svg {
      mask-image:
        linear-gradient(90deg, transparent calc(50% - 4rem), #000 calc(50% - 1.25rem)),
        linear-gradient(transparent 4%, #000 14%),
        radial-gradient(60% 55% at 50% 25%, #000 55%, transparent);
    }
  }
  @media (min-width: 75rem) {
    .bid-stage:not(.bid-stage--map) .loc-map__svg {
      --map-w: 46rem;
      --pin-x: -3.5rem;
    }
    .bid-stage:not(.bid-stage--map) .loc-map figcaption {
      left: -3.5rem;
    }
  }
  /* the whole state over the card, the Gulf and the peninsula's tip under the card's top */
  .bid-stage:has(.loc-map--state) {
    padding-top: 17rem;
  }
  .bid-stage .loc-map--state .loc-map__svg {
    --map-w: 25rem;
    left: -6rem;
    top: var(--sp-4);
    mask-image:
      linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent),
      linear-gradient(transparent, #000 6%, #000 92%, transparent);
    mask-composite: intersect;
  }
  .bid-stage:has(.loc-map--state) .bsh--card .bsh-chips {
    justify-content: flex-start;
  }
  .bid-stage--map:has(.loc-map--state) {
    padding-top: var(--sp-7);
    min-height: 26rem;
  }
  .bid-stage--map .loc-map--state .loc-map__svg {
    --map-w: 28rem;
    left: calc(50% - var(--map-w) * 0.5);
    top: calc(50% - var(--map-w) * 0.44);
  }
}

/* the hero's own parts on a stage page */
.hero--stage .hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
}
.hero--stage .hero__kicker[data-mono]::before {
  content: attr(data-mono);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-xs);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: var(--on-night);
  font: 600 0.6875rem/1 var(--sign);
  letter-spacing: 0.02em;
}
/* the stats as glass tiles (2 up on a phone; 4 up and the quiet coverage line from 36rem) */
.hero--stage .loc-stats {
  gap: var(--sp-2);
  border-top: 0;
}
.hero--stage .loc-stats > div:not(:nth-child(n + 5)) {
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  border-radius: var(--r-md);
  background: rgb(16 34 61/72%);
  box-shadow: inset 0 0 0 1px var(--night-line);
}
.hero--stage .loc-stats > div:only-child {
  grid-column: 1 / -1;
}
.hero--stage .loc-stats > div:nth-child(n + 5) {
  padding-inline: 0;
  border-bottom: 0;
}
.hero--stage .loc-stats dd {
  font-size: clamp(1.625rem, 1vw + 1.25rem, 2rem);
}
/* a tablet: the copy runs the plate's width, so the tiles do too (no empty fifth of a row) */
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .hero--stage .loc-stats {
    max-width: none;
  }
}

/* crumbs on a phone: the last linked step as a way back; the rest stay in the markup (the
   breadcrumb's JSON-LD and microdata read it), hidden from sight only */
@media (width < 40rem) {
  .hero--stage .crumbs li:not(:has(a)),
  .hero--stage .crumbs li:has(a):has(~ li a) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hero--stage .crumbs li:has(a):not(:has(~ li a)) {
    margin-left: 0;
  }
  .hero--stage .crumbs li:has(a):not(:has(~ li a))::before {
    content: "‹";
    position: static;
    width: auto;
    margin-right: var(--sp-2);
    font-size: 1.125rem;
    line-height: 1;
  }
  .hero--stage .crumbs ol {
    margin-left: 0;
  }
  /* a hidden step that takes the keyboard's focus comes into sight (never a focus you cannot
     see) */
  .hero--stage .crumbs li:focus-within {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

/* ===== The body: the components carry the structure, so no hairline over each heading ===== */
.hero--stage ~ .loc-layout .loc-body > h2 {
  margin-top: var(--sp-6);
  padding-top: 0;
  border-top: 0;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero--stage ~ .loc-layout .loc-body > h2:first-child {
  margin-top: var(--lead);
}
@media (min-width: 40rem) {
  .hero--stage ~ .loc-layout .loc-body > h2 {
    margin-top: var(--sp-7);
    font-size: 1.625rem;
  }
}

/* ===== The bid's clock (the bid page's signature): a days-left ring and the key dates ===== */
.bid-clock {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-2);
}
.bid-clock__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  --ring: 5.5rem;
}
.bid-ring {
  flex: none;
  width: var(--ring);
  height: var(--ring);
}
.bid-ring__track {
  fill: none;
  stroke: var(--rule);
  stroke-width: 10;
}
.bid-ring__left {
  fill: none;
  stroke: var(--asphalt);
  stroke-width: 10;
  stroke-linecap: round;
}
.bid-ring__left.is-soon {
  stroke: var(--flag);
}
.bid-ring__cap {
  fill: var(--hivis);
  stroke: var(--asphalt);
  stroke-width: 2.5;
}
.bid-ring__cap.is-soon {
  stroke: var(--flag);
}
.prose .bid-clock p {
  margin: 0;
}
.bid-clock__n {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  color: var(--asphalt);
}
/* the days in the ring's middle, the words beside it */
.bid-clock__n b {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--ring);
  translate: 0 -50%;
  font: 600 2.25rem/1 var(--sign);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
/* "Closed", "Due today": words, not a figure: beside the ring */
.bid-clock__n b:only-child {
  position: static;
  width: auto;
  translate: none;
  font-size: 1.5rem;
  text-align: left;
}
.bid-clock__n span {
  color: var(--gravel);
  font: 500 1rem/1.3 var(--sign);
}
.prose .bid-clock .bid-clock__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--ok-wash);
  color: var(--ok);
  font: 500 0.8125rem/1.3 var(--sign);
}
.bid-clock__status::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
}
.prose .bid-clock .bid-clock__status.is-closed {
  background: var(--concrete);
  color: var(--gravel);
}
/* the steps: a vertical rail on a phone, done in ink, ahead dashed; today wears the lamp's halo
   and the due day the lamp itself */
.prose .bid-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bid-step {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  min-height: 2.25rem;
  padding: 0 0 var(--sp-3) var(--sp-6);
}
.bid-step::before {
  /* the rail to the next step */
  content: "";
  position: absolute;
  left: calc(0.3125rem - 1px);
  top: 0.8rem;
  bottom: -0.35rem;
  border-left: 2px solid var(--asphalt);
  transform-origin: top;
}
.bid-step:last-child::before {
  content: none;
}
.bid-step.is-now::before,
.bid-step.is-ahead::before {
  border-left-style: dashed;
  border-left-color: var(--rule-2);
}
.bid-step::after {
  /* the dot */
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--asphalt);
}
.bid-step.is-ahead::after {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--rule-2);
}
.bid-step.is-now::after {
  box-shadow: 0 0 0 4px rgb(255 208 0/45%);
}
.bid-step.is-due::after {
  left: -0.125rem;
  top: 0.225rem;
  width: 0.875rem;
  height: 0.875rem;
  background: var(--hivis);
  box-shadow: inset 0 0 0 2px var(--asphalt);
}
.bid-step span {
  color: var(--gravel);
  font: 500 0.8125rem/1.3 var(--sign);
}
.bid-step.is-now span {
  color: var(--gold);
  font-weight: 600;
}
.bid-step.is-due span {
  color: var(--asphalt);
  font-weight: 600;
}
.bid-step time {
  color: var(--asphalt);
  font: 500 0.9375rem/1.3 var(--sign);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
@media (min-width: 40rem) {
  .bid-clock {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-6);
    padding: var(--sp-5) var(--sp-6);
  }
  .bid-clock__head {
    --ring: 6rem;
  }
  .prose .bid-steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .bid-step {
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--sp-1);
    min-height: 0;
    padding: var(--sp-5) var(--sp-2) 0 0;
  }
  .bid-step::before {
    left: 0.625rem;
    right: 0;
    top: calc(0.3125rem - 1px);
    bottom: auto;
    border-left: 0;
    border-top: 2px solid var(--asphalt);
    transform-origin: left;
  }
  .bid-step.is-now::before,
  .bid-step.is-ahead::before {
    border-top-style: dashed;
    border-top-color: var(--rule-2);
  }
  .bid-step::after {
    top: 0;
  }
  .bid-step.is-due::after {
    top: -0.125rem;
  }
  .bid-step time {
    text-align: left;
  }
}
.prose .bid-clock__line {
  margin-top: var(--sp-3);
  color: var(--gravel);
  font-size: 0.875rem;
}

/* ===== The facts as tiles: the same <dl class="bid-facts">, rows and words ===== */
.bid-glance {
  margin-top: var(--sp-4);
}
.bid-facts,
.prose .bid-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
  border-top: 0;
}
.bid-glance .bid-facts {
  margin-top: 0;
}
.bid-facts > div {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
}
.bid-facts > div.is-wide {
  grid-column: 1 / -1;
}
.bid-facts dt {
  color: var(--gravel);
  font: 600 0.6875rem/1.3 var(--sign);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bid-facts dd {
  font: 500 1rem/1.4 var(--sign);
  overflow-wrap: break-word; /* a word breaks only when it cannot fit a line of its own */
}
@media (width < 26rem) {
  .bid-facts,
  .prose .bid-facts {
    grid-auto-flow: row dense;
  }
  .bid-facts > div[data-mono] {
    grid-column: 1 / -1;
  }
}
/* the buyer's two letters on an ink tile beside its name (never its logo or seal) */
.bid-facts > div[data-mono] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-3);
  row-gap: var(--sp-1);
  align-items: center;
}
.bid-facts > div[data-mono]::before {
  content: attr(data-mono);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-sm);
  background: var(--night);
  color: var(--on-ink);
  font: 600 0.75rem/1 var(--sign);
  letter-spacing: 0.02em;
}
.bid-facts > div.is-due {
  grid-column: 1 / -1;
}
.bid-facts > div.is-soon {
  background: var(--flag-wash);
  box-shadow: 0 0 0 1px rgb(180 35 24/18%);
}
.bid-facts > div.is-soon dd {
  color: var(--flag);
}
@media (min-width: 40rem) {
  .bid-facts,
  .prose .bid-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row dense; /* a short tile fills the cell beside Due: no hole in the grid */
  }
  .bid-facts > div.is-due {
    grid-column: span 2;
  }
  .bid-facts > div.is-wide {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .bid-glance.will-reveal.is-in [data-reveal-step],
  .bid-buyer-tiles.will-reveal.is-in [data-reveal-step] {
    transition-delay: calc(min(var(--step, 0), 6) * 60ms);
  }
}
.prose .bid-source {
  margin-top: var(--sp-3);
  font-size: 0.875rem;
}

/* ===== The ask card: the page's one call to action, a night head over the form on paper ===== */
.ask-card {
  --ask-pad: clamp(var(--sp-4), 4vw, var(--sp-6));
  margin-top: var(--sp-5);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-3);
}
.hero--stage ~ .loc-layout .loc-body > .ask-card:first-child {
  margin-top: var(--lead);
}
.ask-card__head {
  position: relative;
  padding: var(--ask-pad) var(--ask-pad) var(--sp-4);
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(255 208 0/12%), transparent 60%),
    radial-gradient(80% 140% at 85% 0%, var(--night-hi), transparent 70%),
    var(--night);
  color: var(--on-night);
}
.ask-card__head::after {
  /* the lamp */
  content: "";
  position: absolute;
  top: calc(var(--ask-pad) + var(--sp-2));
  right: var(--ask-pad);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hivis);
  box-shadow: 0 0 0 4px rgb(255 208 0/18%);
}
.prose .ask-card__head h2,
.ask-card__title {
  margin: 0;
  padding: 0 var(--sp-5) 0 0;
  border: 0;
  color: var(--on-ink);
  font: 600 1.375rem/1.2 var(--sign);
  letter-spacing: -0.02em;
}
.prose .ask-card .ask-card__title {
  margin: 0;
}
.prose .ask-card__bid {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: rgb(16 34 61/80%);
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: var(--on-ink);
  font: 600 0.9375rem/1.3 var(--sign);
}
.ask-card__bid > span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ask-card__bid .bid__days {
  flex: none;
  width: 3rem;
  background: rgb(207 224 245/10%);
  color: var(--on-ink);
}
.ask-card__bid .bid__days span {
  color: var(--on-night-2);
}
.ask-card__bid .bid__days b {
  color: var(--on-ink);
}
.ask-card__bid .bid__days.is-soon {
  background: rgb(180 35 24/35%);
  box-shadow: inset 0 0 0 1px rgb(253 162 155/35%);
}
.ask-card__bid .bid__days.is-soon :is(b, span) {
  color: #ffc9c2;
}
/* the form keeps its own even padding (site/tests/test_signup_card_padding.py: "Your work email"
   never on the card's edge), its ring gone into the card's */
.ask-card__body > :not(form) {
  margin: 0;
  padding: var(--ask-pad) var(--ask-pad) 0;
}
.loc-layout .ask-card .signup-inline {
  margin: 0;
  padding: var(--ask-pad);
  border: 1px solid transparent;
  box-shadow: none;
}
.ask-card .signup-inline__email,
.ask-card .signup-inline__go {
  min-height: var(--control);
}
@media (width < 40rem) {
  .ask-card .signup-inline__go,
  .ask-card .signup-inline__email {
    flex-basis: 100%;
  }
}
@media (min-width: 40rem) {
  .ask-card__head {
    padding-bottom: var(--sp-5);
  }
  .prose .ask-card__head h2,
  .ask-card__title {
    font-size: 1.625rem;
  }
}

/* ===== The side card: it stays, the bid itself on top (a bid page's ticket) ===== */
.loc-aside--ask .loc-aside__card,
.loc-layout:has(.signup-inline) .loc-aside.loc-aside--ask .loc-aside__card {
  display: block;
}
.loc-aside__card {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  border: 0;
}
@media (min-width: 64rem) {
  .hero--stage ~ .loc-layout .loc-aside {
    max-height: calc(100svh - 7rem);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .hero--stage ~ .loc-layout .loc-toc {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }
  /* scrolls on its own only when taller than the screen, and hands the wheel back to the page
     (never overscroll-behavior: contain, which held the page still under the cursor) */
  .hero--stage ~ .loc-layout .loc-toc ol {
    overflow-y: auto;
  }
}
.loc-aside__ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-items: center;
}
.loc-aside__ticket .bid__days {
  grid-row: 1 / 3;
  width: 3.25rem;
}
.loc-aside__name {
  color: var(--asphalt);
  font: 600 1rem/1.3 var(--sign);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.loc-aside__due {
  margin-top: var(--sp-1);
  color: var(--gravel);
  font: 500 0.8125rem/1.3 var(--sign);
  font-variant-numeric: tabular-nums;
}
.has-ticket .loc-aside__go {
  margin-top: var(--sp-4);
}
.has-ticket .loc-aside__l {
  margin-top: var(--sp-3);
  font: 500 0.875rem/1.4 var(--sign);
}
.has-ticket .loc-aside__l--lead {
  color: var(--gravel);
}
.has-ticket .loc-aside__l--lead a {
  color: inherit;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 0.2em;
}
.has-ticket .loc-aside__l--lead a:hover {
  color: var(--asphalt);
}
.has-ticket .loc-aside__n {
  display: inline;
  margin-top: var(--sp-3);
  font-size: 1rem;
  letter-spacing: 0;
}
.loc-aside--ask .loc-aside__n {
  font-size: 2.5rem;
}
/* the section you are reading, on the rail */
.loc-toc a[aria-current="true"] {
  margin-left: calc(var(--sp-3) * -1 - 1px);
  padding-left: calc(var(--sp-3) - 1px);
  border-left: 2px solid var(--asphalt);
  color: var(--asphalt);
}

/* ===== The phone's ask bar: once the hero's button has gone by, never over the form ===== */
.ask-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--gutter) calc(var(--sp-2) + env(safe-area-inset-bottom));
  background: var(--night);
  box-shadow:
    0 -1px 0 var(--night-line),
    0 -12px 32px -16px rgb(0 0 0/45%);
}
.ask-bar[hidden] {
  display: none;
}
.ask-bar__left {
  flex: none;
  color: var(--on-night);
  font: 500 0.8125rem/1.25 var(--sign);
  font-variant-numeric: tabular-nums;
}
.ask-bar__left::before {
  content: "";
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  margin: 0 var(--sp-2) 1px 0;
  border-radius: 50%;
  background: var(--hivis);
  vertical-align: middle;
}
.ask-bar__go.btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  min-height: var(--control);
  background: var(--paper);
  color: var(--asphalt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 64rem) {
  .ask-bar {
    display: none;
  }
}
/* while the bar is up, a focused field or a jump never lands under it */
@media (width < 64rem) {
  html:has(.ask-bar:not([hidden])) {
    scroll-padding-bottom: 5rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ask-bar {
    transition: translate 0.24s var(--ease-out);
  }
  .ask-bar.is-off {
    translate: 0 110%;
    transition-duration: 0.16s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ask-bar.is-off {
    display: none;
  }
}

/* ===== The rest of the record ===== */
/* the posting's words: a pull quote on a rail, no indent */
.loc-body > p.dir-not-yet:has(+ blockquote[data-fact]) {
  color: var(--gravel);
  font: 600 0.75rem/1.3 var(--sign);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.loc-body blockquote[data-fact] {
  position: relative;
  margin: var(--sp-3) 0 0;
  padding: 0 0 0 var(--sp-5);
  border-left: 3px solid var(--rule-2);
  color: var(--asphalt);
  font-size: 1.125rem;
  line-height: 1.55;
}
.loc-body blockquote[data-fact] > p {
  margin-top: 0;
}
.loc-body blockquote[data-fact] > p + p {
  margin-top: var(--sp-3);
}
/* the documents as file chips (the buyer's own names) */
.prose .bid-files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
}
.bid-files > li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  max-width: 100%;
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--asphalt-2);
  font: 500 0.875rem/1.35 var(--sign);
  overflow-wrap: anywhere;
}
.bid-files > li::before,
.bid-actions > .go-link::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--gravel);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.bid-files > li {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
}
/* a phone: one list card with a hairline between the names (rows as separate cards read as
   buttons, and the names are not links) */
@media (width < 40rem) {
  .prose .bid-files {
    gap: 0;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--paper);
    box-shadow: 0 0 0 1px var(--rule);
  }
  .bid-files > li {
    flex: 1 1 100%;
    min-height: 0;
    padding: var(--sp-3) var(--sp-4);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .bid-files > li + li {
    box-shadow: inset 0 1px 0 var(--rule);
  }
}
/* the addenda on a rail */
.prose .bid-addenda {
  display: grid;
  gap: 0;
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
}
.bid-addenda > li {
  position: relative;
  padding: 0 0 var(--sp-4) var(--sp-6);
  color: var(--asphalt-2);
}
.bid-addenda > li::before {
  content: "";
  position: absolute;
  left: calc(0.3125rem - 1px);
  top: 0.85rem;
  bottom: -0.35rem;
  border-left: 2px solid var(--rule);
}
.bid-addenda > li:last-child::before {
  content: none;
}
.bid-addenda > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--asphalt);
}

/* open bids as cards: the whole card is the link to the bid's page */
.hero--stage ~ .loc-layout .loc-bids {
  display: grid;
  gap: var(--sp-2);
  border-top: 0;
}
.hero--stage ~ .loc-layout .loc-bids > li {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
}
.hero--stage ~ .loc-layout .loc-bids > li > .bid__days {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 3.25rem;
}
.hero--stage ~ .loc-layout .loc-bids > li > :not(.bid__days) {
  grid-column: 2;
}
.hero--stage ~ .loc-layout .loc-bids > li > .loc-bids__due {
  grid-row: auto;
  align-self: start;
}
.hero--stage ~ .loc-layout .loc-bids :is(a.bid-held__what, a.loc-bids__title)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.hero--stage ~ .loc-layout .loc-bids .bid-held__open {
  position: relative;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero--stage ~ .loc-layout .loc-bids > li:has(> a) {
    transition:
      translate var(--d-hover) var(--ease-out),
      box-shadow var(--d-hover) var(--ease-out);
  }
  .hero--stage ~ .loc-layout .loc-bids > li:has(> a):hover {
    translate: 0 -1px;
    box-shadow: var(--sh-2);
  }
}
@media (min-width: 48rem) {
  [data-page="county"] .hero--stage ~ .loc-layout #similar ~ .loc-bids {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* "Send this bid to a sub" and "Post your sub bids free" as two tiles */
.bid-actions {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.prose .bid-actions > .go-link {
  position: relative;
  display: block;
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 1.25rem + var(--sp-3));
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--gravel);
  font-size: 0.9375rem;
}
.bid-actions > .go-link::before {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  translate: 0 -50%;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--asphalt);
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z'/%3E%3Cpath d='M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14'/%3E%3Cpath d='M8 6v8'/%3E%3C/svg%3E");
}
.bid-actions > .bid-forward::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}
.bid-actions > .go-link a {
  font-weight: 500;
}
.bid-actions > .go-link a::before {
  /* the whole tile is the link */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .prose .bid-actions > .go-link {
    transition:
      translate var(--d-hover) var(--ease-out),
      box-shadow var(--d-hover) var(--ease-out);
  }
  .prose .bid-actions > .go-link:hover {
    translate: 0 -1px;
    box-shadow: var(--sh-2);
  }
}
@media (min-width: 30rem) {
  .bid-actions:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* the buyer's numbers as tiles over its sentences */
.prose .bid-buyer-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
/* an odd last tile takes the row, its figure beside its words */
.bid-buyer-tiles > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  gap: var(--sp-3);
}
@media (min-width: 40rem) {
  .prose .bid-buyer-tiles:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bid-buyer-tiles > div:last-child:nth-child(odd) {
    grid-column: auto;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--sp-1);
  }
  .bid-buyer-tiles > div:only-child {
    grid-column: 1 / -1;
  }
}
.bid-buyer-tiles > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
}
.bid-buyer-tiles dd {
  margin: 0;
  white-space: nowrap;
  color: var(--asphalt);
  font: 600 1.75rem/1 var(--sign);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.bid-buyer-tiles dt {
  color: var(--gravel);
  font: 500 0.8125rem/1.35 var(--sign);
}
/* "What this page shows": a quiet card at the end */
.bid-about {
  margin-top: var(--sp-7);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--concrete);
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--gravel);
  font-size: 0.9375rem;
}
.prose .bid-about h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
}
.prose .bid-about p {
  margin-top: var(--sp-2);
}

/* a hub's "Due next" table as cards on a phone */
@media (width < 40rem) {
  .hero--stage ~ .loc-layout .run-log-wrap {
    overflow: visible;
  }
  .hero--stage ~ .loc-layout .run-log {
    display: block;
    min-width: 0;
  }
  /* a sentence, so never set in capitals */
  .hero--stage ~ .loc-layout .run-log caption {
    display: block;
    margin-bottom: var(--sp-3);
    color: var(--gravel);
    font: 500 0.8125rem/1.4 var(--sign);
    text-align: left;
  }
  .hero--stage ~ .loc-layout .run-log thead {
    display: none;
  }
  .hero--stage ~ .loc-layout .run-log tbody {
    display: grid;
    gap: var(--sp-2);
  }
  .hero--stage ~ .loc-layout .run-log tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sp-1) var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border: 0; /* the table's row rule: the card's own ring draws its edge */
    border-radius: var(--r-md);
    background: var(--paper);
    box-shadow: 0 0 0 1px var(--rule);
  }
  .hero--stage ~ .loc-layout .run-log :is(th, td) {
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  .hero--stage ~ .loc-layout .run-log :is(th, td):first-child {
    flex: 1 1 100%;
    color: var(--asphalt);
    font: 500 0.9375rem/1.4 var(--sign);
  }
  .hero--stage ~ .loc-layout .run-log td:not(:first-child) {
    color: var(--gravel);
    font-size: 0.8125rem;
  }
  /* the days left as a pill (its unit from the cell: "1 day"), the whole card the bid's link */
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td:nth-child(4):empty {
    display: none;
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td:nth-child(4) {
    order: -1;
    margin-left: auto;
    padding: 0 var(--sp-2);
    border-radius: var(--r-pill);
    background: var(--concrete);
    box-shadow: 0 0 0 1px var(--rule);
    color: var(--asphalt);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td:nth-child(4)::before {
    content: none;
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td[data-unit]:nth-child(4)::after {
    content: " " attr(data-unit);
    font-weight: 500;
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td:first-child {
    order: -2;
    flex: 1 1 0;
    min-width: 60%;
  }
  /* the bid and its pill on the first line, the buyer and the due day always under them (a short
     buyer, "City", never squeezes in beside the pill): a full-width break after the pill */
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] tr {
    row-gap: 0;
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] tr::after {
    content: "";
    order: -1;
    flex-basis: 100%;
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td:is(:nth-child(2), :nth-child(3)) {
    margin-top: var(--sp-1);
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] td:first-child a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
  }
  .hero--stage ~ .loc-layout .run-log-wrap[data-due] tr:has(> td[colspan]) {
    padding-inline: 0;
    background: none;
    box-shadow: none;
  }
}

/* ===== The closing band: the headline left, the button under it ===== */
.hero--stage ~ .last .wrap {
  justify-items: start;
  text-align: start;
}
.hero--stage ~ .last h2 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
  text-align: start;
}
.hero--stage ~ .last .last__go {
  justify-items: start;
}
@media (width < 30rem) {
  .hero--stage ~ .last .last__go {
    justify-self: stretch;
    justify-items: stretch;
  }
}
@media (min-width: 60rem) {
  .hero--stage ~ .last .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Motion (none under reduced motion; every loop ends) ===== */
@media (prefers-reduced-motion: no-preference) {
  .bid-stage .loc-map__svg {
    animation: settle 0.9s var(--ease-out) 0.1s backwards;
  }
  .bid-stage .loc-map__county {
    animation: stage-light 1.1s var(--ease-out) 0.35s backwards;
  }
  .bid-stage .loc-map__pin {
    animation: pin-drop 0.45s var(--ease-out) 0.7s backwards;
  }
  .bid-stage .loc-map__pin .loc-map__ring {
    animation: ping 1.6s var(--ease-out) 1s 3 both;
  }
  .bid-stage .loc-map figcaption {
    animation: settle 0.4s var(--ease-out) 1s backwards;
  }
  /* the clock: the arc draws, the rail grows, the dots settle, today's halo pings once */
  .bid-clock.will-reveal.is-in .bid-ring__left {
    animation: ring-draw 0.9s var(--ease-out) 0.15s backwards;
  }
  .bid-clock.will-reveal.is-in .bid-ring__cap {
    animation: settle 0.3s var(--ease-out) 0.95s backwards;
  }
  .bid-clock.will-reveal.is-in .bid-step::before {
    animation: rail-y 0.7s var(--ease-out) backwards;
    animation-delay: calc(0.2s + var(--i, 0) * 80ms);
  }
  .bid-clock.will-reveal.is-in .bid-step::after {
    animation: settle 0.4s var(--ease-out) backwards;
    animation-delay: calc(0.2s + var(--i, 0) * 80ms);
  }
  .bid-step:nth-child(2) {
    --i: 1;
  }
  .bid-step:nth-child(3) {
    --i: 2;
  }
  .bid-step:nth-child(4) {
    --i: 3;
  }
  .bid-step:nth-child(n + 5) {
    --i: 4;
  }
  @media (min-width: 40rem) {
    .bid-clock.will-reveal.is-in .bid-step::before {
      animation-name: rail-x;
    }
  }
}
@keyframes stage-light {
  from {
    fill-opacity: 0;
    stroke-opacity: 0.2;
  }
}
@keyframes pin-drop {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}
@keyframes ring-draw {
  from {
    stroke-dasharray: 0 200;
  }
}
@keyframes rail-y {
  from {
    transform: scaleY(0);
  }
}
@keyframes rail-x {
  from {
    transform: scaleX(0);
  }
}
@media print {
  .ask-bar {
    display: none;
  }
}
