/* VenusClip · the plans' discount (promo.js adds body.bf-on and the bars; Black Friday until 30/11, since 03/12 «Descuento»). The one place outside the
   statistics panel with a color: the owner asked for the discount «con un lindo color». Square corners as always. */
:root{--bf:#ffd83d;--bf-ink:#0b0b0c;--bf-h:34px}

.bf-bar{display:flex;align-items:stretch;width:100%;height:var(--bf-h);margin:0;border-bottom:1px solid rgb(255 216 61 / .35);background:var(--bf-ink);color:#f4f4ef;overflow:hidden}
.bf-go{display:flex;align-items:center;flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:600 12px/1 "Kode Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bf-go:focus-visible,.bf-x:focus-visible{outline:2px solid var(--bf);outline-offset:-2px}
.bf-x{flex:none;display:grid;place-items:center;width:max(var(--bf-h),40px);height:100%;margin:0;padding:0;border:0;border-left:1px solid rgb(255 216 61 / .25);border-radius:0;background:var(--bf-ink);color:#f4f4ef;font:600 13px/1 "Kode Mono",ui-monospace,monospace;cursor:pointer;transition:color 150ms ease}
.bf-x:hover{color:var(--bf)}
.bf-track{display:flex;flex:none;width:max-content;animation:bf-slide 48s linear infinite}
.bf-go:hover .bf-track,.bf-go:focus-visible .bf-track{animation-play-state:paused}
.bf-run{display:flex;flex:none}
.bf-item{display:flex;align-items:center;gap:12px;padding-right:12px;white-space:nowrap}
.bf-name{color:var(--bf);font-weight:700;letter-spacing:.1em}
.bf-off{font-style:normal;font-weight:700;padding:4px 7px;background:var(--bf);color:var(--bf-ink);letter-spacing:.04em}
.bf-item u{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:1px}
.bf-dot{width:5px;height:5px;background:rgb(255 216 61 / .7);flex:none}
@keyframes bf-slide{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .bf-track{animation:none}
  .bf-run+.bf-run{display:none}
}

/* The site: the bar on top and the menu just under it. */
#site>.bf-bar{position:fixed;inset:0 0 auto;z-index:26}
body.bf-on:not(.bf-shut) #site-nav.site-nav{top:var(--bf-h)!important}
/* The page moves down with the menu (2026-11-29: the menu covered the top of the first clips and of #planes). */
body.bf-on:not(.bf-shut){--nav-h:calc(72px + var(--bf-h))}
body.bf-on:not(.bf-shut) #site [id]{scroll-margin-top:calc(88px + var(--bf-h))}
@media (max-width:600px){:root{--bf-h:30px}.bf-go{font-size:11px}.bf-item{gap:10px;padding-right:10px}.bf-off{padding:3px 6px}}

/* The app window: on top of the work area (not over the menu on the left), and out of the way while editing. */
.app-main>.bf-bar{position:sticky;top:0;z-index:22}
body.bf-on:not(.bf-shut) .set-nav{top:calc(var(--bf-h) + 20px)}
body.bf-on:not(.bf-shut) .st-side{top:calc(var(--bf-h) + 20px);height:calc(100vh - var(--bf-h) - 40px)}
body:is(.editing,.ev-mode,.long-edit) .app-main>.bf-bar{display:none}
@media (max-width:900px){body.bf-on:not(.bf-shut) .app-main>.app-top{top:var(--bf-h)!important}}

/* Beside each plan's crossed-out price (studio.js priceWas): the name of the sale and its percentage in color. */
body.bf-on .price-was{flex-wrap:wrap;row-gap:4px}
body.bf-on .price-was::before{content:"Descuento";flex-basis:100%;color:var(--bf);font:700 11px/1.1 "Kode Mono",ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}
html[lang^="en"] body.bf-on .price-was::before{content:"Sale"}
body.bf-on .price-was i{background:var(--bf);border-color:var(--bf);color:var(--bf-ink);font-size:13px;padding:3px 7px}
