/* BidFeed site v2: the few styles that need selectors (focus, motion, phone-only parts).
   Everything else is inline on the artboard so it stays editable on the canvas.
   The production build moves all of it into files (Nov 3 security policy). */

.bf-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 6px;
  background: #f26a1b;
  color: #15171c;
  font-weight: 800;
  text-decoration: none;
}
.bf-skip:focus { top: 16px; color: #15171c; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f2ea, 0 0 0 4px #15171c;
  border-radius: 6px;
}
.bf-dark a:focus-visible,
.bf-dark button:focus-visible,
.bf-dark input:focus-visible {
  box-shadow: 0 0 0 2px #15171c, 0 0 0 4px #f26a1b;
}

.bf-link-d { color: #f5f2ea; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.bf-link-d:hover { color: #f5f2ea; border-bottom-color: #f26a1b; }

.bf-btn-hi { transition: background-color .15s ease; }
.bf-btn-hi:hover { background-color: #ff7d33 !important; color: #15171c !important; }
.bf-btn-ghost-d { transition: background-color .15s ease; }
.bf-btn-ghost-d:hover { background-color: rgba(245, 242, 234, 0.1) !important; color: #f5f2ea !important; }
.bf-btn-white { transition: background-color .15s ease; }
.bf-btn-white:hover { background-color: #f5f2ea !important; color: #15171c !important; }
.bf-btn-ghost { transition: background-color .15s ease, color .15s ease; }
.bf-btn-ghost:hover { background-color: #15171c !important; color: #f5f2ea !important; }

/* Hero chips: filled pills that lift and light up on hover; each one jumps to the part of the page that explains it. */
.bf-chip { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.bf-chip:hover { background-color: #333844 !important; border-color: #f26a1b !important; color: #f5f2ea !important; transform: translateY(-2px); }

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.bf-plus { transition: transform .2s ease; }
details[open] .bf-plus { transform: rotate(45deg); }

input[type="range"] { accent-color: #15171c; }
input::placeholder { color: #80889a; }

/* Calculator: tap targets that answer the tap; bars that slide to the new number. */
.bf-pick { transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
.bf-pick:hover { border-color: #f26a1b !important; }
.bf-pick:active { transform: scale(0.96); }
.bf-bar { transition: width .35s cubic-bezier(.2, .7, .2, 1); }

/* The one orchestrated moment: the bid desk screens 18 agency lists and checks the 9 that fit. */
@keyframes bf-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bf-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bf-pop { 0% { opacity: 0; transform: scale(0.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bf-dim { from { opacity: 1; } to { opacity: 0.2; } }

.bf-a-fade { animation: bf-fade .6s cubic-bezier(.2, .7, .2, 1) both; }
.bf-a-draw { transform-origin: left center; animation: bf-draw .55s cubic-bezier(.2, .7, .2, 1) both; }
.bf-a-drawdim { transform-origin: left center; animation: bf-draw .55s cubic-bezier(.2, .7, .2, 1) both, bf-dim .45s ease-out both; }
.bf-a-pop { transform-origin: center; animation: bf-pop .4s cubic-bezier(.3, 1.5, .5, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .bf-a-fade, .bf-a-draw, .bf-a-drawdim, .bf-a-pop { animation: none !important; }
  .bf-plus, .bf-btn-hi, .bf-btn-ghost, .bf-btn-ghost-d, .bf-btn-white, .bf-chip, .bf-pick, .bf-bar { transition: none; }
  .bf-pick:active { transform: none; }
  .bf-chip:hover { transform: none; }
}

/* Plan comparison on phones: tighter columns so both plans stay side by side. */
@media (max-width: 719px) {
  .bf-cmp { font-size: 14px !important; }
  .bf-cmp th, .bf-cmp td { padding-left: 10px !important; padding-right: 10px !important; }
  .bf-cmp thead th:first-child, .bf-cmp tbody th, .bf-cmp tfoot td:first-child { padding-left: 0 !important; padding-right: 8px !important; }
  .bf-col-f { width: 34% !important; }
  .bf-col-p { width: 33% !important; }
  .bf-cmp-name { font-size: 18px !important; line-height: 22px !important; }
  .bf-cmp-price { font-size: 22px !important; }
  .bf-cmp-tag { font-size: 10px !important; letter-spacing: 0.03em !important; padding: 2px 6px !important; }
  .bf-cmp a { font-size: 14px !important; min-height: 44px !important; }
}

/* Phone: the bottom bar shows, the top bar slims down. */
.bf-sticky { display: none; }
@media (max-width: 719px) {
  .bf-hide-sm { display: none !important; }
  .bf-sticky { display: flex; }
}

/* Tap targets: top-bar links reach 44px tall. */
.bf-link-d { display: inline-flex; align-items: center; min-height: 44px; }
.bf-sticky a { white-space: nowrap; }

/* Phones: let the "Most complete" tag wrap inside its column. */
@media (max-width: 719px) {
  .bf-cmp-tag { font-size: 12px !important; white-space: normal !important; border-radius: 6px !important; line-height: 14px !important; }
}

/* Small phones (iPhone SE 1st gen, older Androids, 320–379px). */
@media (max-width: 379px) {
  .bf-cmp { font-size: 13px !important; line-height: 1.4 !important; }
  .bf-cmp th, .bf-cmp td { padding-left: 6px !important; padding-right: 6px !important; }
  .bf-cmp thead th:first-child, .bf-cmp tbody th, .bf-cmp tfoot td:first-child { padding-right: 6px !important; }
  .bf-cmp-name { font-size: 16px !important; line-height: 20px !important; }
  .bf-cmp-price { font-size: 19px !important; }
  .bf-cmp a { font-size: 13px !important; padding-left: 4px !important; padding-right: 4px !important; }
  .bf-trk-card { padding-left: 14px !important; padding-right: 14px !important; }
  .bf-trk { font-size: 13px !important; table-layout: fixed; }
  .bf-trk th:nth-child(1) { width: 34%; } .bf-trk th:nth-child(2) { width: 38%; } .bf-trk th:nth-child(3) { width: 28%; }
  .bf-trk th, .bf-trk td { padding-right: 6px !important; }
  .bf-trk td:nth-child(3) { word-break: break-word; white-space: normal !important; font-size: 12px !important; }
  .bf-trk td span { letter-spacing: 0.02em !important; padding: 3px 5px !important; }
  .bf-trk th { letter-spacing: 0.02em !important; }
  .bf-sticky { gap: 6px !important; padding: 8px 10px !important; }
  .bf-sticky a { font-size: 15px !important; }
}
