/* The guides (how-to-win-*, how to bid, vendor registration, bid portals): Post a bid's pieces on a
   long read. Navy tiles for the steps, one process at a glance (.g-path) whose yellow signal runs
   tile to tile once when it reaches the screen, checklists as ticked cards, past results as cards
   with the low bid set large. The shared reveal (motion.js, pages.css [data-reveal]) brings each
   part in. Everything is visible without scripts and still under reduced motion. */

/* the step numbers: the hero's night, as Post a bid's How it works tiles */
.guide .steps > li::before {
  border: 0;
  background: var(--night);
  box-shadow: 0 1px 2px rgb(10 22 40/18%), 0 4px 12px -6px rgb(10 22 40/45%);
  color: var(--paper);
}

/* ---- a process at a glance: a phone stacks the tiles on a hairline, from 48rem they sit in a row */
.prose .g-path__steps {
  display: grid;
  margin-top: var(--sp-5);
  padding: 0;
  list-style: none;
}
.g-path__steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-content: start;
  min-height: 2.5rem;
  padding-bottom: var(--sp-4);
}
.g-path__steps > li:last-child {
  padding-bottom: 0;
}
.g-path__steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(2.5rem + var(--sp-1));
  bottom: var(--sp-1);
  left: calc(1.25rem - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--rule-2);
}
.g-path__tile {
  position: relative;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: var(--night);
  box-shadow: 0 1px 2px rgb(10 22 40/18%), 0 6px 16px -6px rgb(10 22 40/45%);
  color: var(--paper);
}
.g-path__tile svg {
  width: 1.25rem;
  height: 1.25rem;
}
.g-path__lamp {
  position: absolute;
  top: -0.1875rem;
  right: -0.1875rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--hivis);
  box-shadow: 0 0 0 2px var(--page);
}
.prose .g-path h3 {
  margin: 0;
  padding-top: 0.125rem;
  font: 600 0.9375rem/1.3 var(--sign);
  letter-spacing: -0.01em;
}
/* a step that links to its section: the whole step is the target */
.g-path h3 a {
  color: inherit;
  text-decoration: none;
}
.g-path h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
}
.g-path h3 a:focus-visible {
  outline: 0;
}
.g-path__steps > li:has(a:focus-visible) {
  border-radius: var(--r-md);
  outline: 2px solid var(--asphalt);
  outline-offset: var(--sp-1);
}
.prose .g-path__steps p {
  margin-top: var(--sp-1);
  color: var(--gravel);
  font-size: 0.875rem;
  line-height: 1.45;
}
.prose .g-path__steps .g-path__flag {
  color: var(--flag);
  font-weight: 500;
}
@media (hover: hover) {
  .g-path h3 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--rule-2);
    text-underline-offset: 0.2em;
  }
}
@media (min-width: 48rem) {
  .prose .g-path__steps {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    column-gap: var(--sp-4);
  }
  .g-path__steps > li {
    display: block;
    padding-bottom: 0;
  }
  .g-path__steps > li:not(:last-child)::after {
    top: calc(1.25rem - 1px);
    right: calc(var(--sp-2) - var(--sp-4));
    bottom: auto;
    left: calc(2.5rem + var(--sp-2));
    width: auto;
    height: 2px;
    background:
      linear-gradient(90deg, transparent, var(--hivis) 45%, var(--hivis) 55%, transparent) -70% 0 / 40% 100%
        no-repeat,
      var(--rule-2);
  }
  .prose .g-path h3 {
    margin-top: var(--sp-3);
    padding-top: 0;
  }
}
/* the moment: once the row has risen in, the signal runs along it and the lamp pings three times.
   Only when motion.js armed the reveal (the row started below the screen), so a page that opens on
   it is still, and every animation ends. */
@media (prefers-reduced-motion: no-preference) {
  .g-path.will-reveal.is-in .g-path__lamp::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--hivis);
    opacity: 0;
    animation: g-ping 1.6s var(--ease-out) calc(0.6s + var(--step, 0) * 0.42s) 3;
  }
  @keyframes g-ping {
    0% {
      opacity: 0.7;
      transform: scale(1);
    }
    70%,
    100% {
      opacity: 0;
      transform: scale(2.8);
    }
  }
}
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .g-path.will-reveal.is-in .g-path__steps > li::after {
    animation: g-signal 0.5s var(--ease-out) calc(0.4s + var(--step, 0) * 0.42s) both;
  }
  @keyframes g-signal {
    from {
      background-position: -70% 0, 0 0;
    }
    to {
      background-position: 170% 0, 0 0;
    }
  }
}

/* ---- a checklist: one ticked card per item */
.prose .g-checks {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 0;
  list-style: none;
}
.prose .g-checks > li {
  position: relative;
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 1.5rem + var(--sp-3));
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-1);
}
.g-checks > li::before {
  content: "";
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-4);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--night)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.875rem no-repeat;
}

/* ---- past bid results: a card each, the low bid set large above the sentence that says it */
.prose .g-results {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .prose .g-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.prose .g-results > li {
  margin: 0;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-1);
  color: var(--gravel);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.g-results__low {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--asphalt);
  font: 600 clamp(1.75rem, 1vw + 1.375rem, 2rem)/1.15 var(--sign);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---- the bid types (how to bid): a card each, the letters large */
.prose .g-terms {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 40rem) {
  .prose .g-terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.g-terms > div {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-1);
}
.g-terms dt b {
  display: block;
  color: var(--asphalt);
  font: 600 1.5rem/1.1 var(--sign);
  letter-spacing: -0.02em;
}
.g-terms dd {
  color: var(--gravel);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---- the portals (bid portals): a card each, two across from 40rem */
.prose .guide-portals.g-cards {
  display: grid;
  gap: var(--sp-3);
  border-top: 0;
}
@media (min-width: 40rem) {
  .prose .guide-portals.g-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.guide-portals.g-cards > li {
  position: relative;
  padding: var(--sp-2) var(--sp-4) var(--sp-4);
  border-bottom: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--d-hover, 0.15s) var(--ease-out);
}
.guide-portals.g-cards > li > a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.prose .guide-portals.g-cards > li > p {
  color: var(--gravel);
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (hover: hover) {
  .guide-portals.g-cards > li:hover {
    box-shadow: var(--sh-2);
  }
}

/* ---- what we do and what you do (bid portals): two cards, yours in slate */
.prose .g-duo {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
@media (min-width: 40rem) {
  .prose .g-duo {
    grid-template-columns: 3fr 2fr;
  }
}
.prose .g-duo h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  font: 600 1rem/1.3 var(--sign);
}
.g-duo h3 svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}
.prose .g-duo ul {
  margin-top: var(--sp-3);
}
.prose .g-duo li {
  font-size: 0.9375rem;
  line-height: 1.5;
}
.g-duo__you {
  background: var(--concrete);
}

/* a process right under the signup card (vendor registration) keeps the section gap */
.signup-inline + .g-path > .g-path__steps {
  margin-top: var(--sec-y);
}

/* ---- where (Post a bid's night map): every county outlined, the counties the guide names lit.
   The lit ones are the only yellow, as on Post a bid. */
.prose .g-where {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
  background: radial-gradient(120% 140% at 0% 50%, var(--night-hi), transparent 70%), var(--night);
  box-shadow: 0 1px 2px rgb(10 22 40/18%), 0 10px 24px -14px rgb(10 22 40/55%);
}
@media (min-width: 40rem) {
  .prose .g-where {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: var(--sp-5);
  }
}
.g-where__map {
  display: block;
  width: 100%;
  height: auto;
}
.g-where__map path {
  fill: rgb(207 224 245/7%);
  stroke: rgb(207 224 245/30%);
  stroke-width: 2;
  stroke-linejoin: round;
}
.g-where__map path.is-lit {
  fill: var(--hivis);
  stroke: var(--hivis);
}
.prose .g-where figcaption {
  margin: 0;
  color: var(--on-night-2);
  font: 400 0.9375rem/1.5 var(--sign);
}
.g-where figcaption b {
  color: var(--paper);
  font-weight: 600;
}

/* ---- the payment clock: the location pages' figure row (pages.css .loc-stats), three across */
.prose .g-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--sp-4);
}
.prose .g-stats > div {
  padding-right: var(--sp-3);
}
.prose .g-stats dt,
.prose .g-stats dd {
  margin: 0;
}

/* a guide is a long read scrolled fast: each part rises a shorter way and settles sooner than the
   shared reveal (pages.css), so words never trail the finger half faded (2026-11-26) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].will-reveal,
  [data-reveal].will-reveal [data-reveal-step] {
    translate: 0 6px;
  }
  [data-reveal].will-reveal.is-in,
  [data-reveal].will-reveal.is-in [data-reveal-step] {
    transition-duration: 0.45s;
    transition-delay: calc(var(--step, 0) * 60ms);
  }
}
