/* Signature action cleanup — keep secondary result actions inside the graphite/blue system.
   This narrowly overrides legacy evidence-state button colors without changing any result semantics. */

/* Some source-backed rows arrive through older action markup before the PO6 enhancer
   adds its canonical classes. The direct-child anchor is the stable contract: every
   visible link in a source-backed card action rail is Directions; the original
   coordinate handoff is separately hidden with .po6-coordinate-link. Keep the
   canonical combined selector too so release checks continue to verify that path. */
.po6-has-results .place-card .card-actions > a:not(.po6-coordinate-link),
.po6-has-results .place-card .card-actions > .po6-card-directions,
.po6-has-results .place-card .card-actions > .nearbycheck-directions,
.po6-has-results .place-card .card-actions > .po6-card-directions.nearbycheck-directions{
  border-color:#0b0e0d!important;
  background:#0b0e0d!important;
  color:#fff!important;
}

.po6-has-results .place-card .card-actions > a:not(.po6-coordinate-link):hover,
.po6-has-results .place-card .card-actions > a:not(.po6-coordinate-link):focus-visible,
.po6-has-results .place-card .card-actions > .po6-card-directions:hover,
.po6-has-results .place-card .card-actions > .po6-card-directions:focus-visible,
.po6-has-results .place-card .card-actions > .nearbycheck-directions:hover,
.po6-has-results .place-card .card-actions > .nearbycheck-directions:focus-visible,
.po6-has-results .place-card .card-actions > .po6-card-directions.nearbycheck-directions:hover,
.po6-has-results .place-card .card-actions > .po6-card-directions.nearbycheck-directions:focus-visible{
  border-color:#2e3431!important;
  background:#2e3431!important;
  color:#fff!important;
}

/* Result-state shell polish — once a decision exists, collapse the last pieces of
   landing-page chrome and make the screen read like one precise utility surface. */
body.has-live-results .topbar{
  min-height:58px!important;
}
body.has-live-results .brand-mark{
  width:26px!important;
  height:26px!important;
}
body.has-live-results .pilot-badge{
  font-size:9px!important;
  letter-spacing:.09em!important;
}
body.has-live-results .results-section{
  padding-top:0!important;
}
body.has-live-results .section-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:18px!important;
  align-items:end!important;
  margin-bottom:12px!important;
  padding-bottom:10px!important;
}
body.has-live-results .section-heading .eyebrow{
  font-size:9px!important;
  letter-spacing:.15em!important;
}
body.has-live-results .section-heading h2{
  font-size:clamp(30px,3.8vw,46px)!important;
}
body.has-live-results .result-count{
  max-width:190px;
  padding-bottom:2px;
  text-align:right;
  font-size:10.5px!important;
  line-height:1.35!important;
  font-variant-numeric:tabular-nums;
}

/* Give the Best Match action area an explicit rail on desktop. The recommendation
   remains dominant while Map and Refresh read as utilities instead of equal CTAs. */
@media(min-width:761px){
  .po6-has-results .decision-banner{
    grid-template-columns:minmax(0,1fr) 168px!important;
  }
  .po6-has-results .decision-actions{
    width:168px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    align-content:center!important;
    gap:6px!important;
  }
  .po6-has-results .decision-actions .decision-primary{
    grid-column:1 / -1!important;
    width:100%!important;
  }
  .po6-has-results .decision-actions>button[data-po-action="map"]{
    grid-column:1!important;
    width:100%!important;
  }
  .po6-has-results .decision-actions .decision-refresh{
    grid-column:2!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    padding:0!important;
  }
  .po6-has-results .place-card{
    grid-template-columns:minmax(0,1fr) 140px!important;
    column-gap:30px!important;
  }
  .po6-has-results .place-card .card-actions{
    width:140px!important;
  }
}

/* Mobile keeps the same hierarchy but spends less vertical space above the actual
   recommendation. Touch targets stay governed by the existing 44px refinement rules. */
@media(max-width:760px){
  body.has-live-results .topbar{
    min-height:54px!important;
  }
  body.has-live-results .brand-mark{
    width:24px!important;
    height:24px!important;
  }
  body.has-live-results .pilot-badge{
    max-width:50%!important;
    font-size:8px!important;
    letter-spacing:.08em!important;
  }
  body.has-live-results .section-heading{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;
    margin-bottom:10px!important;
    padding-bottom:8px!important;
  }
  body.has-live-results .section-heading h2{
    font-size:28px!important;
    line-height:1.02!important;
  }
  body.has-live-results .result-count{
    max-width:92px;
    font-size:9.5px!important;
  }
  .po6-has-results .decision-banner{
    margin-bottom:11px!important;
  }
  .po6-has-results .result-view-tabs{
    margin-bottom:10px!important;
  }
}
