/* Biteback Premium: header component (v0.3 design pass) */

/* Panels must honor the hidden attribute even where a class sets display */
[data-bbp-panel][hidden] { display: none !important; }

.bbp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: var(--bb-font-body);
}
body.admin-bar .bbp-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .bbp-header { top: 46px; }
}
.bbp-header__sticky {
  position: relative;
  box-shadow: 0 10px 30px rgba(2, 12, 27, .14);
}

/* Review bar */
.bbp-reviewbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 36px;
  padding: .32rem 1rem;
  background: linear-gradient(180deg, #0c3550, #072638);
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  border-bottom: 1px solid rgba(245, 185, 66, .35);
  transition: background var(--bb-speed) ease;
}
.bbp-reviewbar:hover { background: linear-gradient(180deg, #0f4062, #093049); }
.bbp-reviewbar__stars { color: var(--bb-star); letter-spacing: .14em; font-size: .82rem; text-shadow: 0 1px 6px rgba(248, 195, 61, .45); }
.bbp-reviewbar__text strong { font-weight: 800; }
.bbp-google { font-weight: 700; }

/* Main bar */
.bbp-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .72rem clamp(1.25rem, 3.5vw, 2.75rem);
  background: linear-gradient(180deg, #57b4e2 0%, #46a4d5 58%, #3d9ccc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: padding var(--bb-speed) ease;
}
.bbp-header.is-shrunk .bbp-header__bar { padding-top: .32rem; padding-bottom: .32rem; }

/* Brand lockup */
.bbp-brand { display: inline-flex; align-items: center; gap: .65rem; line-height: 1; text-decoration: none; flex: none; }
.bbp-brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(150deg, #123a5c 0%, #0b3764 55%, #04182d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.25), 0 6px 14px rgba(2,12,27,.28);
  color: #fff;
  font-family: var(--bb-font-display);
  font-weight: 900;
  font-size: 1.55rem;
  position: relative;
  flex: none;
}
.bbp-brand__badge::after {
  content: "";
  position: absolute;
  right: 7px; bottom: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bb-gold);
  box-shadow: 0 0 0 2px rgba(245, 185, 66, .25);
}
.bbp-brand__text { display: inline-flex; flex-direction: column; }
.bbp-brand__name {
  font-family: var(--bb-font-display);
  font-weight: 900;
  font-size: 1.72rem;
  letter-spacing: -.02em;
  color: #04182d;
}
.bbp-brand__sub {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #07304d;
  margin-top: .3rem;
}

/* Desktop nav */
.bbp-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: 1 1 auto;
  min-width: 0;
}
.bbp-nav a, .bbp-nav__areas {
  color: #052a44;
  font: 700 .96rem var(--bb-font-body);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .55rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--bb-speed) ease, color var(--bb-speed) ease;
}
.bbp-nav a:hover, .bbp-nav__areas:hover { background: rgba(255, 255, 255, .28); color: #02182b; }
.bbp-nav__areas::after { content: "▾"; font-size: .68rem; margin-left: .35rem; opacity: .75; }
.bbp-nav__group { position: relative; }
.bbp-nav__dropdown {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 272px;
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 18px;
  box-shadow: var(--bb-shadow-lg);
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.bbp-nav__dropdown a { display: block; padding: .65rem .8rem; border-radius: 12px; }
.bbp-nav__dropdown a strong { display: block; color: #0b3d63; font-size: .98rem; }
.bbp-nav__dropdown a span { display: block; color: var(--bb-muted); font-size: .83rem; font-weight: 600; margin-top: .1rem; }
.bbp-nav__dropdown a:hover { background: var(--bb-ice); }

/* Actions */
.bbp-header__actions { display: flex; align-items: center; gap: .65rem; margin-left: auto; flex: none; }
.bbp-btn--help, .bbp-btn--portal {
  color: #fff;
  background: linear-gradient(145deg, #25c6e6 0%, #0f83b0 56%, #075477 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 5px 12px rgba(2,12,27,.18);
  padding: .62rem 1.05rem;
  font-size: .92rem;
  white-space: nowrap;
}
.bbp-btn--help { display: none; }
.bbp-btn--help:hover, .bbp-btn--portal:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 9px 18px rgba(2,12,27,.24); }
.bbp-quote-cta { flex-direction: column; gap: 0; padding: .5rem 1.35rem; line-height: 1.12; position: relative; overflow: hidden; }
.bbp-quote-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.bbp-quote-cta:hover::after { transform: translateX(120%); }
.bbp-quote-cta:hover { transform: translateY(-1px); }
.bbp-quote-cta__main { font-size: 1.02rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.bbp-quote-cta__sub { font-size: .68rem; font-weight: 600; opacity: .85; }

.bbp-menubtn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 13px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.bbp-menubtn span { display: block; height: 2px; background: #04182d; border-radius: 2px; }

/* Panels */
.bbp-panel {
  background: #fff;
  border-top: 1px solid var(--bb-line);
  box-shadow: 0 24px 40px rgba(2,12,27,.16);
  padding: .85rem clamp(1rem, 3vw, 2rem) 1.15rem;
}
.bbp-panel--menu { display: flex; flex-direction: column; }
.bbp-panel__quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-bottom: .85rem; margin-bottom: .35rem; border-bottom: 1px solid var(--bb-line); }
.bbp-panel__quick a {
  text-align: center;
  border-radius: 999px;
  padding: .65rem .5rem !important;
  font-weight: 800;
  border-bottom: 0 !important;
}
.bbp-panel__quick-call { background: linear-gradient(140deg, #27b968, #137442); color: #fff !important; }
.bbp-panel__quick-text { background: var(--bb-ice); color: #075477 !important; }
.bbp-panel--menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .78rem .4rem;
  color: #263447;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--bb-line);
}
.bbp-panel--menu a::after { content: "›"; color: var(--bb-teal); font-weight: 800; }
.bbp-panel__quick a::after, .bbp-panel__cta::after { content: ""; }
.bbp-panel--menu a:last-child { border-bottom: 0; }
.bbp-panel__cta { color: var(--bb-blue) !important; }

.bbp-panel--help {
  background: linear-gradient(155deg, #0e2a44, #06131f);
  color: #e7faff;
}
.bbp-help__guarantee {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
  padding-left: .9rem;
  border-left: 3px solid var(--bb-gold);
}
.bbp-help__guarantee strong { display: block; font-size: 1.08rem; }
.bbp-help__guarantee span { color: #9cecff; font-size: .9rem; }
.bbp-help__actions { display: grid; gap: .6rem; }
.bbp-help__action {
  display: block;
  border-radius: var(--bb-r-sm);
  padding: .85rem 1rem;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform var(--bb-speed) ease;
}
.bbp-help__action:hover { transform: translateY(-1px); }
.bbp-help__action--call { background: linear-gradient(140deg, #1a6a96, #0d425f); }
.bbp-help__action--text { background: linear-gradient(140deg, #1cad63, #116d40); }
.bbp-help__action--portal { background: linear-gradient(140deg, #1b547a, #082a3e); }
.bbp-help__action--faqs { background: linear-gradient(140deg, #2b7a78, #17494e); }
.bbp-help__label { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.bbp-help__dot { width: .6rem; height: .6rem; border-radius: 50%; background: #ef4444; flex: none; box-shadow: 0 0 0 3px rgba(239, 68, 68, .22); }
.bbp-help__note { display: block; font-size: .85rem; opacity: .88; margin-top: .15rem; }
.bbp-help__foot { margin: .95rem 0 0; font-size: .82rem; color: #9eb2c8; }

/* Bite Risk bar (levels filled from the Bite Index data feed) */
.bbp-riskbar { background: linear-gradient(90deg, #081a2a, #0d2f47 55%, #081a2a); }
.bbp-riskbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: .5rem 1rem;
  color: #e7faff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bbp-riskbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.bbp-riskbar__chip {
  border-radius: 999px;
  padding: .14rem .62rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .14);
  color: #e7faff;
}
.bbp-riskbar__chip[data-level="low"] { background: #1d9e57; color: #fff; }
.bbp-riskbar__chip[data-level="moderate"] { background: #d9a514; color: #231a00; }
.bbp-riskbar__chip[data-level="high"] { background: #c74a2e; color: #fff; }
.bbp-riskbar__chip[data-level="very-high"] { background: #9e2b1d; color: #fff; }
.bbp-riskbar__sep { color: #5b7d99; }
.bbp-riskbar__place { color: var(--bb-sky); font-weight: 800; }

/* Menu panel contact cards */
.bbp-panel__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.bbp-panel__card { display: block !important; border-radius: 16px; padding: .85rem 1rem !important; border-bottom: 0 !important; }
.bbp-panel__card::after { content: "" !important; }
.bbp-panel__card strong { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.bbp-panel__card span { display: block; font-size: .85rem; opacity: .92; margin-top: .15rem; }
.bbp-panel__card--call { background: linear-gradient(140deg, #27b968, #137442); color: #fff !important; }
.bbp-panel__card--text { background: #dceefb; color: #0b3d63 !important; }
.bbp-panel__guarantee { justify-content: center !important; text-align: center; color: #075477 !important; font-size: .94rem !important; border-bottom: 0 !important; }
.bbp-panel__guarantee::after { content: "" !important; }

/* Mobile and tablet header: the live pattern (pills action row) */
@media (max-width: 1024px) {
  .bbp-header__bar { gap: .6rem; padding: .55rem .8rem; }
  .bbp-header__actions { flex: 1; margin-left: 0; }
  .bbp-quote-cta { flex: 1.15 1 0; min-width: 0; padding: .5rem .6rem; }
  .bbp-btn--portal { flex: 1 1 0; min-width: 0; white-space: nowrap; padding: .62rem .6rem; }
  .bbp-quote-cta__main, .bbp-quote-cta__sub { white-space: nowrap; }
  .bbp-menubtn { border-radius: 50%; flex: none; }
}
@media (max-width: 767px) {
  .bbp-reviewbar { font-size: .8rem; min-height: 34px; }
  .bbp-riskbar a { font-size: .8rem; gap: .55rem; padding: .45rem .5rem; }
  .bbp-riskbar__chip { font-size: .66rem; padding: .12rem .5rem; }
  /* Live order on phones: Instant Quote leads, then My BiteBack, then menu */
  .bbp-quote-cta { order: 1; }
  .bbp-btn--portal { order: 2; }
  .bbp-menubtn { order: 3; }
}
@media (max-width: 480px) {
  .bbp-quote-cta__main { font-size: .92rem; letter-spacing: .01em; }
  .bbp-quote-cta { padding: .5rem .45rem; }
  .bbp-btn--portal { font-size: .88rem; }
}

@media (min-width: 1025px) and (max-width: 1320px) {
  .bbp-header__bar { gap: 1rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .bbp-nav { gap: .15rem; }
  .bbp-nav a, .bbp-nav__areas { font-size: .9rem; padding: .5rem .65rem; }
  .bbp-header__actions { gap: .45rem; }
  .bbp-btn--help, .bbp-btn--portal { font-size: .86rem; padding: .58rem .8rem; }
  .bbp-quote-cta { padding: .48rem 1rem; }
  .bbp-quote-cta__main { font-size: .94rem; }
}

@media (min-width: 1025px) {
  .bbp-nav { display: flex; }
  .bbp-menubtn { display: none; }
  .bbp-panel--menu { display: none !important; }
  .bbp-btn--help, .bbp-btn--portal { display: inline-flex; }
  .bbp-reviewbar { min-height: 42px; }
  .bbp-panel--help { margin-left: auto; width: min(880px, 100%); border-radius: 0 0 0 var(--bb-r-md); }
  .bbp-help__actions { grid-template-columns: repeat(3, 1fr); }
}

/* ===== v0.12.0 header: white logo bar (owner-approved mock, 2026-11-08) ===== */
.bbp-header--v3 .bbp-header__sticky { background: #fff; box-shadow: 0 2px 18px rgba(4, 24, 40, .10); }
.bbp-header__bar--v3 { display: flex; align-items: center; gap: 1.6rem; max-width: 1360px; margin: 0 auto; padding: .55rem 1.25rem; }
.bbp-logo { flex: 0 0 auto; display: block; line-height: 0; }
.bbp-logo img { height: 52px; width: auto; display: block; }
.bbp-nav--v3 { display: flex; align-items: center; gap: 1.35rem; margin: 0 auto; }
.bbp-nav--v3 .bbp-nav__top { color: #123a5c; font-weight: 600; font-size: 1.02rem; text-decoration: none; background: none; border: 0; padding: .4rem 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.bbp-nav--v3 .bbp-nav__top:hover { color: #2f9e2c; }
.bbp-nav--v3 .bbp-nav__chev { color: #e8537a; font-size: .8em; }
.bbp-header__actions--v3 { display: flex; align-items: center; gap: 1.1rem; flex: 0 0 auto; }
.bbp-phone { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #123a5c; }
.bbp-phone__icon { width: 26px; height: 26px; color: #123a5c; flex: 0 0 auto; }
.bbp-phone__text { display: flex; flex-direction: column; line-height: 1.15; }
.bbp-phone__text strong { font-size: 1.18rem; font-weight: 800; letter-spacing: .01em; }
.bbp-phone__status { display: flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; color: #2f9e2c; }
.bbp-phone__status .bbp-help__dot { width: 8px; height: 8px; border-radius: 50%; background: #42e884; display: inline-block; }
.bbp-btn--fastquote { background: linear-gradient(135deg, #4db8e8, #1b74c4); color: #fff !important; font-weight: 800; font-size: 1.05rem; padding: .68rem 1.5rem; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 16px rgba(27, 116, 196, .35); white-space: nowrap; }
.bbp-btn--fastquote:hover { filter: brightness(1.06); }
.bbp-panel__card--portal { background: linear-gradient(140deg, #1b547a, #082a3e); color: #fff !important; }
.bbp-header--v3 .bbp-panel--menu { background: #fff; }
@media (max-width: 1180px) { .bbp-nav--v3 { display: none; } .bbp-header__bar--v3 { justify-content: space-between; } }
@media (max-width: 640px) {
  .bbp-logo img { height: 42px; }
  .bbp-phone__text strong { font-size: 1rem; }
  .bbp-phone__status { display: none; }
  .bbp-btn--fastquote { padding: .55rem 1.05rem; font-size: .95rem; }
  .bbp-header__bar--v3 { gap: .7rem; padding: .5rem .8rem; }
}

/* v0.12.2: the v3 bar itself must be white (the base bar rule carries the old sky-blue gradient) */
.bbp-header__bar--v3 { background: #fff; }

/* v0.13.2 mobile header: icon-only phone so logo, call, Fast Quote and menu all fit */
@media (max-width: 760px) {
  .bbp-phone__text { display: none; }
  .bbp-phone__icon { width: 30px; height: 30px; }
  .bbp-header__actions--v3 { gap: .65rem; }
  .bbp-header__bar--v3 { flex-wrap: nowrap; }
}

/* v0.14.0: mobile header fit per MOBILE-FIX-SPEC */
.bbp-phone__call { display: none; }
.bbp-fq__short { display: none; }
@media (max-width: 760px) {
  .bbp-header__bar--v3 { padding-inline: .8rem; gap: .55rem; }
  .bbp-header__actions--v3 { gap: .55rem; }
  .bbp-header--v3 .bbp-logo img { height: 40px; }
  .bbp-phone { gap: .4rem; }
  .bbp-phone__call { display: inline; font-weight: 800; color: var(--bb-ink); font-size: .95rem; }
  .bbp-fq__full { display: none; }
  .bbp-fq__short { display: inline; }
  .bbp-btn--fastquote { padding: .6rem 1rem; }
  .bbp-reviewbar { font-size: .82rem; padding-top: .32rem; padding-bottom: .32rem; }
  .bbp-riskbar { font-size: .86rem; }
  .bbp-riskbar__inner { flex-wrap: wrap; row-gap: .1rem; }
}
@media (max-width: 380px) {
  .bbp-phone__call { display: none; }
  .bbp-header--v3 .bbp-logo img { height: 36px; }
}

/* v0.14.3: compact mobile menu — main rows + two-column secondary grid */
.bbp-panel--menu { max-height: calc(100dvh - 120px); overflow-y: auto; }
.bbp-panel--menu > a { padding-top: .62rem; padding-bottom: .62rem; }
.bbp-panel__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.4rem; padding: .3rem 0 .35rem; }
.bbp-panel__grid a { justify-content: flex-start; padding: .52rem .4rem; font-size: .95rem; font-weight: 600; }
.bbp-panel__grid a::after { content: ""; }

/* v0.14.11: the header logo fills its bar (owner) — bigger on desktop and phones */
.bbp-logo img { height: 76px; }
@media (max-width: 1100px) {
  .bbp-logo img { height: 62px; }
}
@media (max-width: 760px) {
  .bbp-header--v3 .bbp-logo img { height: 50px; }
  .bbp-header__bar--v3 { gap: .55rem; padding-left: .8rem; padding-right: .8rem; }
}
@media (max-width: 380px) {
  .bbp-header--v3 .bbp-logo img { height: 45px; }
}

/* v0.14.14: slim the three phone header strips (owner's pick) */
@media (max-width: 760px) {
  .bbp-reviewbar { min-height: 30px; padding: .18rem 1rem; font-size: .78rem; gap: .45rem; }
  .bbp-reviewbar__stars { font-size: .74rem; }
  .bbp-header__bar--v3 { padding-top: .3rem; padding-bottom: .3rem; }
  .bbp-header--v3 .bbp-logo img { height: 48px; }
  .bbp-btn--fastquote { padding: .5rem .95rem; }
  .bbp-riskbar a { padding: .32rem .5rem; font-size: .78rem; gap: .5rem; }
  .bbp-riskbar__chip { font-size: .64rem; padding: .1rem .45rem; }
  .bbp-riskbar__item { gap: .35rem; }
}

/* v0.15.0: mobile header per the owner's reference mock (current blue palette) */
.bbp-reviewbar__text--mob, .bbp-reviewbar__sep, .bbp-reviewbar__families, .bbp-fq__mob, .bbp-riskbar__bug, .bbp-riskbar__colon, .bbp-place--mob { display: none; }
@media (max-width: 760px) {
  .bbp-reviewbar { gap: .55rem; }
  .bbp-reviewbar__text { display: none; }
  .bbp-reviewbar__text--mob { display: inline-flex; align-items: center; gap: .35rem; }
  .bbp-reviewbar__sep { display: inline; color: rgba(255, 255, 255, .45); }
  .bbp-reviewbar__families { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
  .bbp-reviewbar__leaf { width: 15px; height: 15px; color: #7ed957; flex: 0 0 auto; }
  .bbp-phone { background: #e9f4fb; border-radius: 50%; width: 42px; height: 42px; align-items: center; justify-content: center; flex: 0 0 auto; }
  .bbp-phone__icon { width: 21px; height: 21px; }
  .bbp-phone__call { display: none; }
  .bbp-header__actions--v3 { flex: 1 1 auto; }
  .bbp-btn--fastquote { flex: 1 1 auto; text-align: center; padding: .62rem .8rem; font-size: .98rem; }
  .bbp-fq__full, .bbp-fq__short { display: none; }
  .bbp-fq__mob { display: inline; }
  .bbp-header--v3 .bbp-logo img { height: 44px; }
  .bbp-riskbar__bug { display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; }
  .bbp-riskbar__colon { display: inline; }
  .bbp-place--desk { display: none; }
  .bbp-place--mob { display: inline; }
}
@media (max-width: 380px) {
  .bbp-header--v3 .bbp-logo img { height: 40px; }
  .bbp-btn--fastquote { font-size: .9rem; }
  .bbp-reviewbar { font-size: .74rem; gap: .4rem; }
}

/* v0.15.1: fit fixes from the owner's phone check — no wrapping, no clipped ends */
@media (max-width: 760px) {
  .bbp-reviewbar { font-size: .76rem; gap: .45rem; flex-wrap: nowrap; }
  .bbp-reviewbar__stars { font-size: .72rem; }
  .bbp-reviewbar__text--mob, .bbp-reviewbar__families { white-space: nowrap; }
  .bbp-reviewbar__leaf { width: 14px; height: 14px; }
  .bbp-header__bar--v3 { padding-inline: .6rem; gap: .45rem; }
  .bbp-header__actions--v3 { gap: .45rem; }
  .bbp-header--v3 .bbp-logo img { height: 40px; }
  .bbp-phone { width: 40px; height: 40px; }
  .bbp-phone__icon { width: 20px; height: 20px; }
  .bbp-btn--fastquote { font-size: .92rem; padding: .58rem .7rem; }
  .bbp-riskbar a { font-size: .74rem; gap: .38rem; padding: .32rem .4rem; flex-wrap: nowrap; }
  .bbp-riskbar__item { gap: .22rem; white-space: nowrap; }
  .bbp-riskbar__bug { width: 15px; height: 15px; }
  .bbp-riskbar__chip { font-size: .6rem; padding: .08rem .38rem; }
  .bbp-riskbar__place { white-space: nowrap; }
}
@media (max-width: 380px) {
  .bbp-header--v3 .bbp-logo img { height: 38px; }
  .bbp-reviewbar { font-size: .72rem; gap: .35rem; }
}

/* v0.15.4: risk bar spreads edge to edge on phones, like the owner's reference */
.bbp-riskbar__sep--mid { display: none; }
@media (max-width: 760px) {
  .bbp-riskbar a { justify-content: space-between; font-size: .72rem; gap: .3rem; padding: .34rem .5rem; }
  .bbp-riskbar__item { gap: .18rem; }
  .bbp-riskbar__bug { width: 14px; height: 14px; }
  .bbp-riskbar__chip { font-size: .58rem; padding: .08rem .36rem; }
  .bbp-riskbar__sep--mid { display: inline; }
}

/* v0.17.0: the Bite Index strip must never clip its right-hand link */
@media (max-width: 760px) {
  .bbp-riskbar { font-size: .7rem; gap: .35rem; }
  .bbp-riskbar__inner { padding: 0 .55rem; flex-wrap: nowrap; }
  .bbp-riskbar__group { min-width: 0; }
  .bbp-riskbar__group svg { width: 13px; height: 13px; }
  .bbp-riskbar__place { flex: 0 0 auto; }
  .bbp-riskbar__sep { flex: 0 0 auto; }
}

/* v0.20.3: larger phone logo without a taller header (bar padding trimmed
   to absorb the growth) */
@media (max-width: 760px) {
  .bbp-header--v3 .bbp-logo img { height: 52px; }
  .bbp-header__bar--v3 { padding-top: .1rem; padding-bottom: .1rem; }
}
@media (max-width: 380px) {
  .bbp-header--v3 .bbp-logo img { height: 48px; }
}

/* v0.20.5: phone icon removed from the phone header (owner) */
@media (max-width: 760px) {
  .bbp-phone { display: none; }
}

/* v0.20.6: pale blue-gray header tint instead of white (owner's pick) */
.bbp-header--v3 .bbp-header__sticky { background: #edf3f7; }
.bbp-header__bar--v3 { background: #edf3f7; }

/* v0.21.0: on scroll, the review bar and risk bar collapse away; the logo
   bar stays. Restores at the top. */
.bbp-reviewbar { overflow: hidden; max-height: 80px; transition: max-height .28s ease, min-height .28s ease, padding .28s ease, opacity .22s ease; }
.bbp-riskbar { overflow: hidden; max-height: 80px; transition: max-height .28s ease, opacity .22s ease; }
.bbp-header.is-shrunk .bbp-reviewbar { max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; visibility: hidden; }
.bbp-header.is-shrunk .bbp-riskbar { max-height: 0; opacity: 0; visibility: hidden; }
