/* Top bar 1 to 5 (Opus, Nov 9, NEW). Preview only. Group "topbar", URL ?v-topbar=1 ... 5.
   One bar: logo on the left container edge, the shortcut cards (they ARE the nav) in the middle, Order on the right edge.
   Everything is scoped to .tb9 / .topbar-v1 ... .topbar-v5 and html.tb9-on, so the Nov 8 bar (group r2cbar) and the
   other lanes are untouched when no Opus top bar is picked. The header keeps one fixed height per variant (no jumps);
   once it scrolls away a fixed mini bar slides in on transform only. */

/* ---------- when an Opus top bar is on: the old nav row + Around Buffalo strip step aside ---------- */
html.tb9-on #mainNav, html.tb9-on #r2cBar, html.tb9-on #navOverlay { display: none !important; }

/* ---------- shared frame ---------- */
.tb9, .tb9-mini {
  --tb-bg: #16203d; --tb-ink: #fdf8f0; --tb-sub: rgba(253, 248, 240, .7); --tb-line: rgba(255, 255, 255, .12);
  --tb-gold: #e5be5e; --tb-plum: #4a1942; --tb-navy: #16203d; --tb-cream: #fdf8f0;
  --tb-logo: 58px; --tb-pad-y: 12px; --tb-gap: 10px; --tb-fade: 28px;
  position: relative; z-index: 90; width: 100%; box-sizing: border-box; flex: none; align-self: stretch;
  background: var(--tb-bg); color: var(--tb-ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; text-align: left;
}
/* the page body is inset; the bar keeps that inset and rounds its lower corners like a sign */
.tb9 { border-radius: 0 0 22px 22px; contain: layout paint; }
.tb9-mini { text-align: left; }
.tb9[hidden], .tb9-mini[hidden] { display: none !important; }
.tb9 *, .tb9-mini * { box-sizing: border-box; }
.tb9-in {
  max-width: 1200px; margin-inline: auto; padding: var(--tb-pad-y) clamp(16px, 3vw, 32px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo rail order";
  align-items: center; column-gap: clamp(12px, 2vw, 28px);
}
.tb9-logo { grid-area: logo; display: block; flex: none; border-radius: 50%; line-height: 0; }
.tb9-logo img { display: block; width: var(--tb-logo); height: var(--tb-logo); border-radius: 50%; object-fit: cover; }
.tb9-logo:focus-visible, .tb9 a:focus-visible, .tb9 button:focus-visible, .tb9-mini a:focus-visible { outline: 3px solid var(--tb-gold); outline-offset: 3px; }

.tb9-rail { grid-area: rail; position: relative; min-width: 0; }
.tb9-cards {
  display: flex; gap: var(--tb-gap); margin: 0; padding: 8px 4px; list-style: none;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 4px;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  --fl: 0px; --fr: var(--tb-fade);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.tb9-cards::-webkit-scrollbar { display: none; }
.tb9-rail[data-start="0"] .tb9-cards { --fl: var(--tb-fade); }
.tb9-rail[data-end="1"] .tb9-cards { --fr: 0px; }
.tb9-cards > li { flex: none; scroll-snap-align: start; }
.tb9-cards.is-drag { scroll-snap-type: none; cursor: grabbing; }
.tb9-cards.is-drag a { pointer-events: none; }
.tb9-card { display: block; position: relative; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-drag: none; }
.tb9-card img { display: block; -webkit-user-drag: none; pointer-events: none; }
.tb9-card small { display: block; }

.tb9-arrow {
  position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--tb-cream); color: var(--tb-navy); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
  transition: opacity .2s ease, scale .2s ease;
}
.tb9-arrow svg { width: 16px; height: 16px; }
.tb9-prev { left: -6px; } .tb9-next { right: -6px; }
.tb9-rail[data-start="1"] .tb9-prev, .tb9-rail[data-end="1"] .tb9-next, .tb9-rail[data-over="0"] .tb9-arrow { opacity: 0; pointer-events: none; }
.tb9-arrow:active { scale: .92; }
@media (hover: none) { .tb9-arrow { display: none; } }

.tb9-order {
  grid-area: order; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 800 17px/1 'DM Sans', sans-serif; letter-spacing: .01em;
  background: var(--tb-gold); color: var(--tb-navy);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tb9-order svg { width: 18px; height: 18px; flex: none; transition: translate .25s cubic-bezier(.22, 1, .36, 1); }
.tb9-order small { display: none; }
@media (hover: hover) {
  .tb9-order:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .6), inset 0 -2px 0 rgba(0, 0, 0, .12); }
  .tb9-order:hover svg { translate: 3px 0; }
}

/* phones: logo + Order on one line, the cards swipe edge to edge under them, inside the same bar */
@media (max-width: 719.98px) {
  .tb9 { --tb-logo: 50px; --tb-pad-y: 10px; }
  .tb9-in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo . order" "rail rail rail"; row-gap: 6px; }
  .tb9-rail { margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); width: calc(100% + 2 * clamp(16px, 3vw, 32px)); max-width: none; justify-self: start; }
  .tb9-cards { padding-inline: clamp(16px, 3vw, 32px); scroll-padding-inline: clamp(16px, 3vw, 32px); --tb-fade: 26px; } /* the card cut at the screen edge fades out, so it reads as more to swipe, not a clipped tab */
  .tb9-order { min-height: 46px; padding: 0 20px; font-size: 16px; }
}

/* ---------- mini bar: fixed, slides in on transform once the full bar has scrolled away ---------- */
.tb9-mini {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 60px;
  background: var(--tb-bg); color: var(--tb-ink); font-family: 'DM Sans', sans-serif;
  box-shadow: 0 12px 28px -16px rgba(10, 14, 32, .6);
  transform: translateY(-110%); transition: transform .35s cubic-bezier(.22, 1, .36, 1); will-change: transform;
}
html.tb9-stuck .tb9-mini { transform: none; }
.tb9-mini .tb9-in { height: 100%; padding-block: 0; column-gap: 14px; }
.tb9-mini .tb9-logo img { width: 40px; height: 40px; }
.tb9-mini .tb9-cards { gap: 6px; padding: 6px 2px; --tb-fade: 22px; }
.tb9-mini .tb9-cards > li { scroll-snap-align: start; }
.tb9-mini .tb9-card { padding: 8px 14px; border-radius: 999px; font: 700 14px/1 'DM Sans', sans-serif; white-space: nowrap; background: var(--tb-chip, rgba(255, 255, 255, .08)); }
.tb9-mini .tb9-order { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 719.98px) {
  .tb9-mini { height: 56px; }
  /* phones: the mini bar is just logo + Order (the Bon Bon button already sits top-center on phones) */
  .tb9-mini .tb9-in { grid-template-areas: "logo . order"; grid-template-columns: auto 1fr auto; }
  .tb9-mini .tb9-rail { display: none; }
}
html.glz-static .tb9-mini, html.glz-static .tb9 * { transition: none !important; animation: none !important; }

/* ---------- slim bar "More" (Loops b28): only whole pills in the row, 6 at most; the rest sit in a porcelain list ---------- */
.tb9-mini .tb9-cards > li.tb9-fold { display: none !important; }
.tb9-mini .tb9-more {
  display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 8px 12px 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 14px/1 'DM Sans', sans-serif; white-space: nowrap; color: inherit;
  background: var(--tb-chip, rgba(255, 255, 255, .08)); box-shadow: inset 0 0 0 1px rgba(212, 168, 67, .55);
}
.tb9-mini .tb9-more svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.tb9-mini .tb9-more[aria-expanded="true"] { background: #fff6df; box-shadow: inset 0 0 0 1.5px #d4a843; }
.tb9-mini .tb9-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) { .tb9-mini .tb9-more:hover { box-shadow: inset 0 0 0 1.5px #d4a843; } }
.tb9-mini .tb9-more:focus-visible { outline: 3px solid var(--tb-gold); outline-offset: 3px; }
.tb9-more-pop {
  position: fixed; z-index: 1001; min-width: 200px; max-width: calc(100vw - 24px); padding: 8px; box-sizing: border-box;
  border-radius: 18px; border: 1px solid rgba(212, 168, 67, .8);
  background: linear-gradient(180deg, #fffdf8 0%, #fbf3e8 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 3px rgba(255, 253, 248, .7), 0 18px 36px -18px rgba(45, 25, 40, .5);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: #4a1942;
}
.tb9-more-pop[hidden] { display: none !important; }
.tb9-more-pop::before {
  content: ""; position: absolute; top: -6px; left: calc(var(--tip, 50%) - 6px); width: 10px; height: 10px; transform: rotate(45deg);
  background: #fffdf8; border-left: 1px solid rgba(212, 168, 67, .8); border-top: 1px solid rgba(212, 168, 67, .8);
}
.tb9-more-pop ul { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.tb9-more-link {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none;
  font: 700 15px/1.2 'DM Sans', sans-serif; color: #4a1942; white-space: nowrap;
}
@media (hover: hover) { .tb9-more-link:hover { background: rgba(74, 25, 66, .06); } }
.tb9-more-link:focus-visible { outline: 2px solid #d4a843; outline-offset: -2px; background: #fff6df; }
@media print { .tb9-more-pop { display: none !important; } }

/* ---------- slim bar on tablets (Loops b30) ----------
   At 820 the row held 3 pills and the More list 7 links. From 720 to 1199 px the pills and the More pill are 40 px
   tall tap targets with a little less side padding and gap (text stays 14 px). From 720 to 979 px, where room is
   shortest, the sign-in pill shows its round BonBon coin only (still labeled "Sign in to My Glaze", as on the
   narrowest phones) and Build a box drops its arrow, so 6 pills fit at 820 and More holds 4 links. */
@media (min-width: 720px) and (max-width: 1199.98px) {
  .tb9-mini .tb9-in { column-gap: 8px; padding-inline: 14px; }
  .tb9-mini .tb9-cards { gap: 4px; padding: 4px 2px; }
  .tb9-mini .tb9-card, .tb9-mini .tb9-more { min-height: 40px; display: inline-flex; align-items: center; }
  .tb9-mini .tb9-card { padding: 0 10px; }
  .tb9-mini .tb9-more { padding: 0 8px 0 10px; }
  .tb9-mini .tb9-order { padding: 0 14px; }
}
@media (min-width: 720px) and (max-width: 979.98px) {
  .tb9-mini .tb9-in { column-gap: 6px; padding-inline: 12px; }
  .tb9-mini .tb9-cards { gap: 3px; }
  .tb9-mini .tb9-card { padding: 0 8px; }
  .tb9-mini .tb9-more { padding: 0 6px 0 9px; }
  .tb9-mini .tb9-in .glz-signin { padding: 0 5px; gap: 0; }
  .tb9-mini .tb9-in .glz-signin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tb9-mini .tb9-in .tb9-order { gap: 0; padding: 0 16px; }
  .tb9-mini .tb9-in .tb9-order > svg { display: none; }
}

/* ---------- hero shares the same 1200px container: text ~640px on the left edge, media close beside it ---------- */
html.tb9-on body section.hero { padding-top: 40px; }
@media (min-width: 960px) {
  html.tb9-on body section.hero:has(> #r2cHero) {
    width: 100% !important; max-width: 1200px !important; margin-inline: auto !important; align-self: center !important;
    padding-inline: clamp(16px, 3vw, 32px) !important; box-sizing: border-box;
    grid-template-columns: minmax(0, 640px) minmax(0, 1fr) !important; column-gap: clamp(28px, 4vw, 56px) !important;
  }
  html.tb9-on body section.hero:has(> #r2cHero) > .hero-content { max-width: 640px; width: 100%; justify-self: start; margin-left: 0; }
  html.tb9-on body section.hero > .r2c-hero { justify-self: start; max-width: 480px; }
}
@media (max-width: 959.98px) {
  html.tb9-on body section.hero:has(> #r2cHero) { padding-inline: clamp(16px, 3vw, 32px) !important; }
}

/* ---------- preview switcher: one pill, fixed bottom-left, never on top of the bar or the Order button ---------- */
/* bottom center: the compare launcher owns bottom-left, Bon Bon owns bottom-right */
#tb9Switch { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1001; width: max-content; max-width: min(560px, calc(100vw - 32px)); }
#tb9Switch .glzv { position: static; max-width: 100%; justify-content: center; }
@media (max-width: 719.98px) { #tb9Switch { bottom: calc(150px + env(safe-area-inset-bottom)); } }
@media print { #tb9Switch, .tb9-mini { display: none; } }

/* =====================================================================================
   Top bar 1 (Opus, Nov 9, NEW) . Navy rail: navy bar, framed logo, photo chips, gold Order
   ===================================================================================== */
.topbar-v1 { --tb-bg: #16203d; --tb-logo: 60px; box-shadow: inset 0 -1px 0 rgba(229, 190, 94, .35); }
.topbar-v1 .tb9-logo img { box-shadow: 0 0 0 3px #fdf8f0, 0 0 0 5px rgba(229, 190, 94, .7), 0 8px 18px rgba(0, 0, 0, .35); }
.topbar-v1 .tb9-card {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 6px 16px 6px 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--tb-line);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.topbar-v1 .tb9-card img, .topbar-v1 .tb9-card .tb9-ph { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; }
.topbar-v1 .tb9-card b { display: block; font: 700 15px/1.15 'DM Sans', sans-serif; white-space: nowrap; }
.topbar-v1 .tb9-card small { font: 500 12px/1.2 'DM Sans', sans-serif; color: var(--tb-sub); white-space: nowrap; margin-top: 3px; }
@media (hover: hover) { .topbar-v1 .tb9-card:hover { background: rgba(255, 255, 255, .13); border-color: rgba(229, 190, 94, .55); transform: translateY(-1px); } }
.tb9-mini.tbm-v1 { --tb-bg: #16203d; }
@media (max-width: 719.98px) {
  .topbar-v1 .tb9-card { height: 52px; padding-right: 14px; }
  .topbar-v1 .tb9-card img, .topbar-v1 .tb9-card .tb9-ph { width: 40px; height: 40px; }
}

/* =====================================================================================
   Top bar 2 (Opus, Nov 9, NEW) . Fanned stack: cream bar, XL dark rounded cards fanned with depth,
   pill labels (the social-stack look), plum Order
   ===================================================================================== */
.topbar-v2 { --tb-bg: #fbf3e8; --tb-ink: #2d1928; --tb-sub: #6b5a52; --tb-logo: 66px; --tb-gap: 0px; --tb-pad-y: 6px; box-shadow: 0 1px 0 #eadcc8, 0 14px 30px -24px rgba(45, 25, 40, .5); }
.topbar-v2 .tb9-logo img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #4a1942, 0 10px 20px -6px rgba(45, 25, 40, .45); }
.topbar-v2 .tb9-cards { padding: 16px 18px 18px; scroll-padding-inline: 18px; } /* snap matches the padding, so the first card sits at rest, not 14px under the left fade */
.topbar-v2 .tb9-cards > li { position: relative; margin-left: -14px; z-index: 1; }
.topbar-v2 .tb9-cards > li:first-child { margin-left: 0; }
.topbar-v2 .tb9-card {
  width: 150px; height: 100px; border-radius: 22px; overflow: hidden;
  background: #1c1118; border: 3px solid #f4e7d5;
  box-shadow: 0 14px 26px -14px rgba(45, 25, 40, .75);
  transform: rotate(var(--r, -3deg)) translateY(var(--y, 0)); transform-origin: 50% 90%;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.topbar-v2 .tb9-cards > li:nth-child(3n+2) .tb9-card { --r: 2.5deg; --y: 3px; }
.topbar-v2 .tb9-cards > li:nth-child(3n) .tb9-card { --r: -1.5deg; --y: -2px; }
.topbar-v2 .tb9-card img, .topbar-v2 .tb9-card .tb9-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topbar-v2 .tb9-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 17, 24, .55) 0%, rgba(28, 17, 24, 0) 46%, rgba(28, 17, 24, .55) 100%); }
.topbar-v2 .tb9-card b {
  position: absolute; z-index: 1; top: 8px; left: 8px; max-width: calc(100% - 16px);
  padding: 5px 10px; border-radius: 999px; background: #f4e7d5; color: #4a1942;
  font: 800 12px/1.1 'DM Sans', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-v2 .tb9-card small {
  position: absolute; z-index: 1; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 4px 9px; border-radius: 999px; background: rgba(28, 17, 24, .78); color: #fdf8f0;
  font: 600 10.5px/1.15 'DM Sans', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-v2 .tb9-cards > li:is(:hover, :focus-within) { z-index: 5; }
@media (hover: hover) { .topbar-v2 .tb9-card:hover { --r: 0deg; --y: -6px; box-shadow: 0 22px 30px -14px rgba(45, 25, 40, .85); } }
.topbar-v2 .tb9-card:focus-visible { --r: 0deg; --y: -6px; }
.topbar-v2 .tb9-arrow { background: #2d1928; color: #fdf8f0; }
.topbar-v2 .tb9-order { background: #4a1942; color: #fdf8f0; min-height: 54px; padding: 0 10px 0 26px; font-size: 18px; box-shadow: 0 14px 26px -12px rgba(74, 25, 66, .7); }
.topbar-v2 .tb9-order svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #e5be5e; color: #2d1928; }
.tb9-mini.tbm-v2 { --tb-bg: #fbf3e8; --tb-ink: #2d1928; --tb-chip: rgba(74, 25, 66, .08); }
@media (max-width: 719.98px) {
  .topbar-v2 { --tb-logo: 54px; }
  .topbar-v2 .tb9-cards { padding: 12px clamp(16px, 3vw, 32px) 14px; scroll-padding-inline: clamp(16px, 3vw, 32px); }
  .topbar-v2 .tb9-card { width: 138px; height: 92px; }
  .topbar-v2 .tb9-order { min-height: 48px; font-size: 16px; padding-left: 20px; }
  .topbar-v2 .tb9-order svg { width: 30px; height: 30px; padding: 7px; }
}

/* =====================================================================================
   Top bar 3 (Opus, Nov 9, NEW) . Counter clean: cream bar like the live site, round photo pills,
   a solid plum Order block
   ===================================================================================== */
.topbar-v3 { --tb-bg: #fdf8f0; --tb-ink: #2d1928; --tb-sub: #6b5a52; --tb-logo: 58px; --tb-gap: 8px; border-bottom: 1px solid #e8ddd0; }
.topbar-v3 .tb9-logo img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4a1942, 0 6px 14px -6px rgba(45, 25, 40, .4); }
.topbar-v3 .tb9-card {
  display: flex; align-items: center; gap: 9px; height: 46px; padding: 4px 16px 4px 4px; border-radius: 999px;
  background: #fff; border: 1px solid #e8ddd0; color: #2d1928;
  transition: border-color .2s ease, background-color .2s ease;
}
.topbar-v3 .tb9-card img, .topbar-v3 .tb9-card .tb9-ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.topbar-v3 .tb9-card b { font: 700 14.5px/1 'DM Sans', sans-serif; white-space: nowrap; }
.topbar-v3 .tb9-card small { display: none; }
@media (hover: hover) { .topbar-v3 .tb9-card:hover { border-color: #4a1942; background: #fffdf9; } }
.topbar-v3 .tb9-arrow { background: #4a1942; color: #fdf8f0; }
.topbar-v3 .tb9-order { background: #4a1942; color: #fdf8f0; border-radius: 14px; min-height: 52px; padding: 0 26px; box-shadow: 0 10px 20px -12px rgba(74, 25, 66, .8); }
.topbar-v3 .tb9-order svg { color: #e5be5e; }
.tb9-mini.tbm-v3 { --tb-bg: #fdf8f0; --tb-ink: #2d1928; --tb-chip: #fff; box-shadow: 0 1px 0 #e8ddd0, 0 12px 24px -18px rgba(45, 25, 40, .5); }
.tb9-mini.tbm-v3 .tb9-card { border: 1px solid #e8ddd0; }

/* =====================================================================================
   Top bar 4 (Opus, Nov 9, NEW) . Plum deck: dark plum bar, XL dark cards with pill labels that
   settle into depth (the card nearest the middle stands forward) as you swipe, gold Order
   ===================================================================================== */
.topbar-v4 { --tb-bg: #2a1626; --tb-ink: #fdf8f0; --tb-logo: 64px; --tb-gap: 6px; --tb-pad-y: 6px;
  background: radial-gradient(120% 140% at 50% 0%, #3d1f37 0%, #2a1626 55%, #22111f 100%); }
.topbar-v4 .tb9-logo img { box-shadow: 0 0 0 3px #fdf8f0, 0 0 0 6px #e5be5e, 0 10px 24px rgba(0, 0, 0, .45); }
.topbar-v4 .tb9-cards { padding: 14px 10px; }
.topbar-v4 .tb9-cards > li { position: relative; }
.topbar-v4 .tb9-card {
  --d: 0; width: 136px; height: 100px; border-radius: 24px; overflow: hidden;
  background: #170c15; border: 2px solid rgba(253, 248, 240, .9);
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .8);
  transform: scale(calc(1 - var(--d) * .07)) translateY(calc(var(--d) * 4px));
  opacity: calc(1 - var(--d) * .12);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.topbar-v4 .tb9-card img, .topbar-v4 .tb9-card .tb9-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topbar-v4 .tb9-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 12, 21, 0) 35%, rgba(23, 12, 21, .82) 100%); }
.topbar-v4 .tb9-card b {
  position: absolute; z-index: 1; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 6px 11px; border-radius: 999px; background: #fdf8f0; color: #2a1626;
  font: 800 12.5px/1.05 'DM Sans', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-v4 .tb9-card small {
  position: absolute; z-index: 1; top: 8px; left: 8px; max-width: calc(100% - 16px);
  padding: 4px 9px; border-radius: 999px; background: rgba(23, 12, 21, .72); color: #fdf8f0;
  font: 600 10.5px/1.15 'DM Sans', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: hover) { .topbar-v4 .tb9-card:hover { --d: 0 !important; opacity: 1; } }
.topbar-v4 .tb9-order { background: linear-gradient(180deg, #f0cf78, #e0b44e); color: #2a1626; min-height: 54px; padding: 0 28px; font-size: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 14px 30px -12px rgba(229, 190, 94, .55); }
.tb9-mini.tbm-v4 { --tb-bg: #2a1626; }
@media (max-width: 719.98px) {
  .topbar-v4 { --tb-logo: 54px; }
  .topbar-v4 .tb9-cards { padding: 10px clamp(16px, 3vw, 32px) 12px; }
  .topbar-v4 .tb9-card { width: 120px; height: 90px; }
  .topbar-v4 .tb9-order { min-height: 48px; font-size: 16px; padding: 0 22px; }
}
html.glz-static .topbar-v4 .tb9-card { transform: none; opacity: 1; }

/* =====================================================================================
   Top bar 5 (Opus, Nov 9, NEW) . Photo tiles: warm white bar, photo tiles with the name on the photo,
   a navy Order block with a second line
   ===================================================================================== */
.topbar-v5 { --tb-bg: #fffaf3; --tb-ink: #16203d; --tb-sub: #5a4d44; --tb-logo: 60px; --tb-gap: 10px; --tb-pad-y: 8px; box-shadow: 0 1px 0 #ecdfcd, 0 16px 30px -26px rgba(22, 32, 61, .55); }
.topbar-v5 .tb9-logo img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #16203d, 0 8px 16px -6px rgba(22, 32, 61, .45); }
.topbar-v5 .tb9-card {
  width: 112px; height: 76px; border-radius: 16px; overflow: hidden; background: #3a2a22;
  box-shadow: 0 8px 16px -10px rgba(22, 32, 61, .6);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.topbar-v5 .tb9-card img, .topbar-v5 .tb9-card .tb9-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.topbar-v5 .tb9-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(20, 12, 10, .78) 100%); }
.topbar-v5 .tb9-card b { position: absolute; z-index: 1; left: 10px; right: 8px; bottom: 8px; color: #fff; font: 800 13.5px/1.1 'DM Sans', sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.topbar-v5 .tb9-card small { display: none; }
@media (hover: hover) {
  .topbar-v5 .tb9-card:hover { transform: translateY(-2px); box-shadow: 0 14px 22px -12px rgba(22, 32, 61, .7); }
  .topbar-v5 .tb9-card:hover img { transform: scale(1.06); }
}
.topbar-v5 .tb9-arrow { background: #16203d; color: #fdf8f0; }
.topbar-v5 .tb9-order { flex-direction: column; align-items: flex-start; gap: 4px; border-radius: 16px; min-height: 58px; padding: 10px 46px 10px 20px; position: relative; background: #16203d; color: #fdf8f0; font-size: 18px; box-shadow: 0 12px 24px -12px rgba(22, 32, 61, .8); }
.topbar-v5 .tb9-order small { display: block; font: 600 12px/1 'DM Sans', sans-serif; color: #e5be5e; letter-spacing: .02em; }
.topbar-v5 .tb9-order svg { position: absolute; right: 16px; top: 50%; margin-top: -9px; color: #e5be5e; }
.tb9-mini.tbm-v5 { --tb-bg: #fffaf3; --tb-ink: #16203d; --tb-chip: rgba(22, 32, 61, .07); }
.tb9-mini.tbm-v5 .tb9-order { flex-direction: row; min-height: 42px; padding: 0 18px; }
.tb9-mini.tbm-v5 .tb9-order small { display: none; }
.tb9-mini.tbm-v5 .tb9-order svg { position: static; margin: 0; }
@media (max-width: 719.98px) {
  .topbar-v5 .tb9-card { width: 104px; height: 72px; }
  .topbar-v5 .tb9-order { min-height: 50px; padding: 8px 40px 8px 16px; font-size: 16px; }
}

/* the photo-less Brownies card: honest, no stand-in photo, just a fudge-colored tile with the name */
.tb9-ph { display: block; background: radial-gradient(120% 120% at 30% 20%, #6b4230 0%, #3b2016 60%, #24130c 100%); }
.tb9-mini.tbm-v2 .tb9-order, .tb9-mini.tbm-v3 .tb9-order { background: #4a1942; color: #fdf8f0; }
.tb9-mini.tbm-v2 .tb9-order svg { width: 18px; height: 18px; padding: 0; background: none; color: #e5be5e; }
.tb9-mini.tbm-v5 .tb9-order { background: #16203d; color: #fdf8f0; }

/* Top bar 1 borrows the Around Buffalo card voice (ref 03): small gold kicker over a serif name */
.topbar-v1 .tb9-txt { display: flex; flex-direction: column-reverse; gap: 3px; }
.topbar-v1 .tb9-card small { margin-top: 0; font: 800 10px/1.1 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #e5be5e; }
.topbar-v1 .tb9-card b { font: 600 16px/1.1 'Glaze Display', 'Fraunces', Georgia, serif; letter-spacing: -.005em; }
