/* The can label system (shared/label.js): labels (.bl), the full-bleed hero
   (.bl-hero) and the can figure (.can3d).
   Everything on a label is sized in container query units, so the same
   markup works as a tile, a hero or a can wrap.
   A label fills its parent's width at 4:5 unless the parent gives it a size:
   add .bl--fill to make it fill a positioned parent instead. */

/* Rajdhani is declared in base.css; --font-label is kept as an alias. */
:root { --font-label: "Rajdhani", "Arial Narrow", sans-serif; }

.bl {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bl-ratio, 4 / 5);
  container-type: size;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(172deg, var(--bl-bg) 38%, var(--bl-deep));
  color: var(--bl-fg);
  font-family: var(--font-display);
  user-select: none;
}
.bl--fill { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
/* A canned beer's real can in place of the drawn label (label.js labelHTML), standing on the beer's colour. */
.bl--can { display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 92%, color-mix(in oklab, var(--bl-bg) 80%, #fff) 0, var(--bl-bg) 55%, var(--bl-deep) 100%); }
.bl__can { display: block; width: auto; height: 86%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.bl--chip .bl__can { height: 92%; filter: none; }
.bl p { margin: 0; white-space: nowrap; }
.bl .bl__info { white-space: normal; }

/* Shared measures for the children (container units resolve against .bl). */
.bl > * {
  --bl-nf: min(calc(var(--bl-fit) * 1cqh), 32cqw);
  --bl-lfs: calc(var(--bl-nf) * var(--bl-lr, 0));
  --bl-x: 5.5cqw;
  --bl-fine: max(6px, min(1.9cqh, 2.7cqw));
}

/* Photograph as a single-colour duotone: greyscale, multiplied into the field. */
.bl__photo {
  position: absolute; inset: 0; z-index: -1;
  background: var(--bl-photo) var(--bl-photo-pos, 50% 50%) / var(--bl-photo-size, cover) no-repeat;
  filter: grayscale(1) contrast(1.2) brightness(1.08);
  mix-blend-mode: multiply;
  opacity: .6;
}
.bl--dark-on-light .bl__photo { opacity: .24; }

.bl__facets { position: absolute; inset: 0; width: 100%; height: 100%; color: #FFFFFF; opacity: .1; pointer-events: none; }
.bl--dark-on-light .bl__facets { color: var(--bl-fg); opacity: .05; }

/* The hop, oversized, turned on its side and cropped off the right edge. */
.bl__hop {
  position: absolute;
  height: 96cqmin; width: auto; aspect-ratio: 229 / 297;
  left: calc(100cqw - 50cqmin);
  top: 50cqh;
  transform: translateY(-50%) rotate(-90deg);
}

/* Name: vertical, reading bottom to top, heavy word then the light one. */
.bl__name {
  position: absolute;
  left: var(--bl-x); bottom: 5cqh;
  height: 79cqh;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: .8;
}
.bl__heavy { font-weight: 800; text-transform: uppercase; font-size: var(--bl-nf); letter-spacing: -.005em; }
.bl__light { font-family: var(--font-label); font-weight: 500; font-size: var(--bl-lfs); letter-spacing: .02em; margin-block-start: .2em; opacity: .95; }
.bl--outline .bl__light { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: transparent; -webkit-text-stroke: max(1px, .028em) var(--bl-fg); letter-spacing: 0; opacity: 1; }

/* Style tag at the top end of the name. */
.bl__tag {
  position: absolute; left: var(--bl-x); top: 5cqh;
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  font-size: max(8px, min(2.6cqh, 3.6cqw)); letter-spacing: .32em;
}

/* The fine print sits on a solid patch of the field colour, so the photo,
   the facets, the deep end of the gradient and the hop never pass under it:
   tag and info text keep the field's own contrast (4.5:1 or more, fieldFor). */
.bl__tag { padding: .3em .45em .3em 0; background: var(--bl-bg); }
.bl:not(.bl--sm) .bl__info, .bl:not(.bl--sm) .bl__cold span { background: var(--bl-bg); }

/* The striped diamonds beside the name (labels without a second word), as
   on the real cans: the label's own colour showing through white stripes. */
.bl__tri {
  position: absolute;
  left: calc(var(--bl-x) + var(--bl-nf) * .86 + 2.5cqw);
  top: 12cqh; height: 40cqh; width: calc(var(--bl-nf) * .4);
  opacity: .5;
}

/* Fine print: a ruled strip, and KEEP COLD bottom right. */
.bl__info {
  position: absolute;
  left: calc(var(--bl-x) + var(--bl-nf) * .86 + var(--bl-lfs) * 1.05 + 4cqw);
  bottom: 6cqh;
  width: max(19cqw, calc(100cqw - 33cqw - var(--bl-x) - var(--bl-nf) * .86 - var(--bl-lfs) * 1.05 - 4cqw));
  padding: .55em .2em;
  border-block: max(1px, .12cqh) solid currentColor;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase;
  font-size: var(--bl-fine); letter-spacing: .1em; line-height: 1.35;
  text-wrap: balance;
}
.bl__cold {
  position: absolute; right: 5cqw; bottom: 6cqh;
  display: grid; justify-items: center; gap: .5em;
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  font-size: var(--bl-fine); letter-spacing: .5em; line-height: 1;
}
.bl__cold span { margin-right: -.5em; padding-block: .55em; }
.bl__snow { width: 2.2em; height: 2.2em; }

/* A beer card in its can's colours (labelHTML card: true): the name in the can's display ink, the hop and
   diamonds in its marks colour, First Mate's second word in its red. */
.bl--tones .bl__name { color: var(--bl-name); }
.bl--tones .bl__light { color: var(--bl-name2, var(--bl-name)); }
.bl--tones .bl__hop, .bl--tones .bl__tri { color: var(--bl-marks); }

/* Small labels: the fine print would be unreadable, so keep the shapes only. */
.bl--sm .bl__info span, .bl--sm .bl__cold span { visibility: hidden; }
.bl--sm .bl__tag { font-size: max(9px, 3.4cqh); }

/* Wide labels (tiles, the can wrap): the name still runs up the left edge. */
@container (aspect-ratio > 1.15) {
  .bl__hop { height: 92cqh; left: calc(100cqw - 54cqh); }
}


/* ---- The label hero (heroHTML) ----
   The can's front label at the size of the screen, in the grammar of the
   brewery's own labels (DARK.md, "The label hero"). Pulls itself up under
   the header by --overlap (theme.js heroHeader), which also measures, onto
   the section: --band-left (right of the name block), --band-h (the buy
   band's height) and --foot-up (hero bottom to the top of the spec line).
   Inside the hero the field is the label, so .t-field parts (the band's
   buttons, the can's button, the tap) take the hero's ink and scrim. */
.bl-hero {
  position: relative; margin-top: calc(-1 * var(--overlap, 0px));
  background: var(--bl-mid); color: var(--bl-ink);
  --beer: var(--bl-scrim); --beer-ink: var(--bl-ink);
  --aside-w: 0px; --aside-gap: 0px;
  --gut-v: max(var(--gutter, 16px), 3vw);
}
/* No spec line (merch, clubs): no foot, the band sits at the bottom. */
.bl-hero:not(.bl-hero--foot) { --foot-up: 3svh; }
.bl-hero--aside { --aside-w: min(27vw, 430px); --aside-gap: 3vw; }
.bl-hero--aside.bl-hero--tap { --aside-w: min(15vw, 230px); }
.bl--hero { aspect-ratio: auto; height: max(calc(100svh - var(--hero-top, 0px)), 660px); background: var(--bl-mid); color: var(--bl-ink); font-family: var(--font-label); }
.bl-hero--flag .bl--hero { background: #FFFFFF; }
.bl-hero--none .bl--hero { background: linear-gradient(165deg, var(--bl-light) 10%, var(--bl-mid) 55%, var(--bl-dark)); }
.bl--hero > * {
  --top: calc(var(--overlap, 0px) + 3cqh);
  --bot: 4.5cqh;
  --gut: max(var(--gutter, 16px), 3cqw);
  --fine: max(15px, min(2.1cqh, 1.3cqw));
  --st-fs: max(20px, min(3.1cqh, 2.3cqw));
  --cap: 15cqw;
  --avail: calc(100cqh - var(--top) - var(--bot));
  /* How much of the bottom sits under small type: the spec line and, on wide screens, the band. */
  --under: calc(var(--foot-up, 90px) + var(--band-h, 0px) + 3cqh);
}

/* The photograph: an SVG <image> under the duotone filter (heroHTML), or a
   plain photo for merch. The flag pattern stands in for it on First Mate. */
.bl-hero__photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.bl-hero__photo image { transform-box: view-box; }
.bl-hero--photo img.bl-hero__photo { object-fit: cover; }
/* Three rows of the flag on wide screens, from under the header. */
.bl-hero__flag { position: absolute; z-index: 0; top: calc(var(--overlap, 0px) + 1cqh); right: 0; left: calc(var(--band-left, 30cqw) + 1cqw); width: auto; height: auto; aspect-ratio: 650 / 390; max-height: calc(100cqh - var(--overlap, 0px) - var(--under) - 8cqh); }
.bl-hero__photo image { transform: scale(calc(var(--zoom, 1) * var(--zoom-k, 1))); }

/* The scrim: a thin fade under the header, and the tone the label deepens
   to (or brightens to, with a dark ink) under the spec line and the band, so
   small type keeps its contrast (DARK.md). */
.bl-hero__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bl-scrim) 94%, transparent) 0, color-mix(in srgb, var(--bl-scrim) 84%, transparent) var(--overlap, 0px), transparent calc(var(--overlap, 0px) + 10cqh));
}
/* Under the band and the spec line, so small type keeps its contrast: a
   full-width shade rising from the bottom of the hero, solid only under the
   lower half of the band and fading out on a long eased curve, with no side
   edge, so it reads as the photo darkening (or lightening) towards the
   bottom rather than as a panel. */
.bl-hero__scrim::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--under) + 40cqh);
  background: linear-gradient(0deg,
    var(--bl-scrim) 0,
    var(--bl-scrim) calc(var(--under) * .7),
    color-mix(in srgb, var(--bl-scrim) 97%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.1),
    color-mix(in srgb, var(--bl-scrim) 90%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.2),
    color-mix(in srgb, var(--bl-scrim) 79%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.3),
    color-mix(in srgb, var(--bl-scrim) 65%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.4),
    color-mix(in srgb, var(--bl-scrim) 50%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.5),
    color-mix(in srgb, var(--bl-scrim) 35%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.6),
    color-mix(in srgb, var(--bl-scrim) 21%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.7),
    color-mix(in srgb, var(--bl-scrim) 10%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.8),
    color-mix(in srgb, var(--bl-scrim) 3%, transparent) calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 0.9),
    transparent calc(var(--under) * .7 + (var(--under) * .7 + 40cqh) * 1));
}
.bl-hero--flag .bl-hero__scrim, .bl-hero--flag .bl-hero__scrim::after { background: none; }
/* Merch photographs in colour: a side scrim for the name as well. */
.bl-hero--photo .bl-hero__scrim { background:
    linear-gradient(90deg, color-mix(in srgb, var(--bl-scrim) 88%, transparent) 0, color-mix(in srgb, var(--bl-scrim) 70%, transparent) 28%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--bl-scrim) 84%, transparent) 0, transparent calc(var(--overlap, 0px) + 10cqh)); }

/* Big translucent facets (Amigo, Category 3, Mega Loop). */
.bl-hero__facets { position: absolute; z-index: 0; top: 0; right: 0; width: 72cqw; height: 72cqh; pointer-events: none; }

/* The hop: white (the marks colour), oversized, on its side, its stem
   cropped off the right edge. --H is its unrotated height; rotated it is
   --H wide and .771 --H tall, and about 70% of that width shows. */
.bl--hero .bl__hop {
  --H: min(50cqh, 36cqw);
  z-index: 1; color: var(--bl-marks);
  height: var(--H); width: auto;
  left: calc(100cqw - var(--H) * .5855); top: calc(var(--top) - var(--H) * .1145 - 1cqh);
  transform: rotate(-90deg);
}

/* The mast: the style word over its rule, the name, the striped diamonds. */
.bl-hero__mast { color: var(--bl-display, inherit);
  position: absolute; z-index: 2; left: var(--gut); top: var(--top); bottom: var(--bot);
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto minmax(0, 1fr); column-gap: max(10px, 1.2cqw); align-items: start;
  --avail-n: var(--avail);
  --nf: min(calc(var(--avail-n) * .97 / var(--bl-len)), var(--cap));
}
.bl-hero--style .bl-hero__mast { --avail-n: calc(var(--avail) - var(--st-fs) * 2.3); }
/* .bl .bl__style, not .bl__style: ".bl p { margin: 0 }" outranks a lone class, and the gap under the rule went. The
   gap and the style word fit inside the 2.3em the mast keeps for them (--avail-n). */
.bl .bl__style {
  grid-column: 1; grid-row: 1; margin: 0 0 .75em; padding: 0 0 .3em .16em;
  border-bottom: max(2px, .11em) solid currentColor;
  font-family: var(--font-label); font-weight: 700; line-height: 1.05;
  text-transform: uppercase; letter-spacing: .16em; text-align: center;
  white-space: normal !important; text-wrap: balance;
  /* Never wider than the name: its longest word (--bl-slen, in em, from the
     same advance widths) sets the most it can be, and it adds no width of its
     own to the column, so the layout does not move when the font arrives. */
  font-size: min(var(--st-fs), calc(var(--nf) * .8 / var(--bl-slen)));
  contain: inline-size;
}
.bl--hero .bl__name {
  position: static; grid-column: 1; grid-row: 2; justify-self: center; align-self: stretch;
  height: auto; margin: 0; z-index: 2;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; flex-direction: column; align-items: flex-start; line-height: .8;
}
.bl__deg { font-size: .5em; vertical-align: .42em; }
.bl--hero .bl__heavy { font-family: var(--font-label); font-weight: 700; font-size: var(--nf); line-height: .8; letter-spacing: -.01em; text-transform: uppercase; }
.bl--hero .bl__light {
  align-self: flex-end; margin: 0; margin-block-start: .1em;
  font-family: var(--font-label); font-weight: 500; line-height: .9; letter-spacing: .01em; opacity: 1;
  font-size: min(calc(var(--nf) * var(--bl-lr)), calc(var(--avail-n) * .97 / var(--bl-llen)));
}
/* Mega Loop: LOOP outlined in the light tone, DIPA under it in the second ink. */
.bl-hero--outline .bl__light { font-weight: 500; text-transform: uppercase; color: transparent; -webkit-text-stroke: max(1.5px, .022em) var(--bl-light-ink); }
.bl__second { display: flex; flex-direction: row; justify-content: flex-end; align-items: flex-start; align-self: stretch; margin-block-start: .1em; gap: .3em; }
.bl__second .bl__light { margin: 0; align-self: auto; }
.bl__after { writing-mode: horizontal-tb; transform: rotate(180deg); font-family: var(--font-label); font-weight: 700; font-size: calc(var(--nf) * .3); line-height: 1; color: var(--bl-ink2); text-transform: uppercase; }
/* First Mate: both words heavy, FIRST in blue and MATE in red, both from the top. */
.bl-hero--pair .bl__name { align-items: flex-end; }
/* Two heavy columns share the width one name would have. */
.bl-hero--pair .bl-hero__mast { --cap: 9cqw; }
.bl-hero--pair .bl__light { font-weight: 700; text-transform: uppercase; color: var(--bl-ink2); line-height: .8; letter-spacing: -.01em; }
.bl--hero .bl__tri { position: static; grid-column: 2; grid-row: 1 / 3; width: calc(var(--nf) * .4); height: min(100%, 60cqh); color: var(--bl-marks); opacity: .42; }

/* The aside: the can or the tap, standing in the label beside the name, from
   the top of the label to its foot. It rises in once (motion on only). */
.bl--hero .bl-hero__aside {
  position: absolute; z-index: 3; container-type: size; background: transparent; font-family: var(--font-body); color: var(--bl-ink);
  left: var(--band-left, 30cqw); width: var(--aside-w); top: var(--top); bottom: var(--bot);
}
.bl-hero__aside > figure { height: 100%; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; align-items: end; }
/* As big as the box allows, keeping the art's own proportions (the foot under it is about 64px). */
.bl-hero__aside .can3d__stage { width: min(100cqw, (100cqh - 64px) * 558 / 900); height: auto;
  /* The can's pool of light was lit for the dark ground: its square edges fade out (the can itself is never masked). */
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 93%, transparent 100%); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 93%, transparent 100%); mask-composite: intersect; }
.bl-hero__aside .can3d__foot { font-size: .875rem; line-height: 1.3; }
/* After the pour: the style, the glass and why, under the buttons, never wider than the figure. */
.can3d .can3d__pour { flex-basis: 100%; min-width: 0; white-space: normal; margin: 2px auto 0; font-size: .8125rem; line-height: 1.35; text-wrap: balance; }
/* The can's button sits on the photo: give it the scrim, so its text keeps 4.5:1. */
.bl-hero__aside .btn--ghost { background: var(--bl-scrim); }
/* The tap: centred, as tall as the box allows. The caption is read but not shown. */
.bl-hero__aside > .tap { height: 100%; grid-template-rows: minmax(0, 1fr); justify-items: center; align-items: end; gap: 0; }
.bl-hero__aside .tap__frame { --tap-w: min(100cqw, 100cqh * 4 / 15); }
.bl-hero__aside .tap__caption { position: absolute; width: 1px; height: 1px; overflow: clip; clip: rect(0 0 0 0); white-space: nowrap; }
/* Merch: a drawing of the item (shop/merch-art.js), as big as the box allows, the note under it on the scrim. */
.merch-fig { margin: 0; display: grid; gap: 10px; justify-items: center; }
.bl-hero__aside .merch-fig__stage { width: min(100cqw, (100cqh - 44px) * 6 / 7); }
.merch-fig__art { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .3)); }
.merch-fig__foot { font-size: .8125rem; line-height: 1.3; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--bl-scrim); color: var(--bl-ink); }
@keyframes aside-rise { from { opacity: 0; transform: translateY(28px); } }
html[data-motion="full"] .bl-hero__aside { animation: aside-rise .8s var(--ease-out) .1s both; }

/* The foot: the spec line between two rules, and KEEP COLD under its snowflake. */
.bl-hero__foot {
  position: absolute; z-index: 3; bottom: var(--bot); right: var(--gut);
  left: calc(var(--band-left, 30cqw) + var(--aside-w) + var(--aside-gap));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 4cqw; flex-wrap: wrap;
}
.bl__spec {
  margin: 0; padding: .55em 0; border-block: max(2px, .12em) solid currentColor;
  display: flex; flex-wrap: wrap; gap: 0 .65em;
  font-family: var(--font-label); font-weight: 600; font-size: var(--fine); line-height: 1.2; letter-spacing: .03em;
  white-space: normal !important;
}
.bl--hero .bl__cold { position: static; display: grid; justify-items: center; gap: .6em; font-size: var(--fine); letter-spacing: .5em; }
.bl--hero .bl__cold span { margin-right: -.5em; padding: 0; background: none; }
.bl--hero .bl__snow { width: 1.9em; height: 1.9em; }

/* The band: the buy controls, right of the can, above the spec line. */
.bl-hero__band { position: absolute; z-index: 4; left: calc(var(--band-left, 36vw) + var(--aside-w) + var(--aside-gap)); right: var(--gut-v); bottom: calc(var(--foot-up, 90px) + 2.2svh); }
@media (min-width: 861px) { .bl-hero__band.t-field { background: transparent; } }

/* The header over the hero takes the hero's ink until the page scrolls
   (theme.js heroHeader sets --hero-ink and --hero-scrim). */
body.hero-label:not(.is-scrolled) .site-header, body.hero-label:not(.is-scrolled) [data-announce] { --beer: var(--hero-scrim); --beer-ink: var(--hero-ink); }

@media (max-width: 860px) {
  .bl-hero { --aside-gap: 0px; --gut-v: var(--gutter, 16px); }
  .bl-hero--aside, .bl-hero--aside.bl-hero--tap { --aside-w: 0px; }
  .bl--hero { height: max(calc(86svh - var(--hero-top, 0px)), 560px); }
  .bl--hero > * {
    --top: calc(var(--overlap, 0px) + 2.4cqh); --bot: 2.6cqh;
    --cap: 31cqw; --fine: 14px; --st-fs: max(19px, min(2.8cqh, 5cqw));
    --under: calc(var(--foot-up, 90px) + 1cqh);
  }
  .bl--hero .bl__hop { --H: 60cqw; left: calc(100cqw - var(--H) * .4); top: calc(30cqh - var(--H) * .1145); }
  .bl--hero .bl__tri { height: min(100%, 50cqh); }
  .bl-hero__facets { width: 100cqw; height: 60cqh; }
  /* On phones the figure is the picture: most of the label's width, standing on the spec line, under the name
     (which stays on top, so it is never covered). The mug runs off the right edge, handle and all (clubs.css). */
  .bl--hero .bl-hero__aside { width: auto; left: 22cqw; right: var(--gut); top: calc(var(--top) + 6cqh); bottom: calc(var(--foot-up, 90px) - 4px); }
  .bl--hero .bl-hero__aside:has(.mug-fig) { left: 38cqw; } /* the Mug Club photo keeps the gutter on the right */
  .bl-hero--tap .bl--hero .bl-hero__aside { left: 46cqw; }
  .bl--hero .bl-hero__mast { z-index: 3; }
  .bl-hero__foot { left: var(--band-left, 40vw); flex-direction: column; align-items: stretch; gap: 10px; }
  .bl--hero .bl__cold { display: flex; align-items: center; justify-content: flex-end; gap: .9em; }
  .bl__spec { gap: 0 .4em; letter-spacing: .01em; }
  .bl--hero .bl__snow { width: 1.6em; height: 1.6em; }
  .bl-hero__flag { aspect-ratio: auto; height: calc(100cqh - var(--overlap, 0px) - var(--under) - 6cqh); max-height: none; }
  .bl-hero--pair .bl-hero__mast { --cap: 17cqw; }
  /* A portrait crop shows more of a photo: zoom a little further, so the crops chosen for the labels still leave out other beers' cans. */
  .bl-hero__photo image { --zoom-k: 1.3; }
  .bl-hero__band { position: static; padding: 22px var(--gutter, 16px) 28px; background: var(--bl-scrim); color: var(--bl-ink); }
}
/* Phones: the spec column is too narrow for one line, and a wrap left a bar hanging at the end of the first line. */
@media (max-width: 600px) {
  .bl__spec { gap: 0 .9em; }
  .bl__spec .bl__bar { display: none; }
}
@media (max-width: 860px) and (orientation: landscape) { .bl--hero { height: max(100svh, 440px); } }

/* ---- The can figure (canFigureHTML, can3d.js) ---- */
.can3d { margin: 0; display: grid; gap: 12px; justify-items: center; }
.can3d__stage { position: relative; width: 100%; aspect-ratio: 558 / 900; touch-action: pan-y; }
.can3d.is-3d .can3d__stage { cursor: grab; }
.can3d.is-3d.is-closed .can3d__stage { cursor: pointer; } /* a click opens it (can3d.js) */
.can3d__stage.is-dragging { cursor: grabbing; }
.can3d__stage:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; border-radius: 8px; }
.can3d__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.can3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; }
.can3d.is-3d .can3d__canvas { opacity: 1; }
.can3d.is-3d .can3d__still { opacity: 0; }
.can3d__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-size: .875rem; text-align: center; }

/* Chips: under 100px wide the style tag cannot fit, so it goes rather than clipping. */
@container (max-width: 100px) {
  .bl__tag { display: none; }
}

/* ---- The tap (shared/tap.js): beers poured at the taproom, not canned ----
   The cut-out photograph straight on the ground or the beer's field, no card.
   The stage is the whole photo, 1024x1536, so the SVG layers line up with it;
   the frame (a reserved 4:15 box, so nothing shifts as it loads) shows
   x 312 to 712 and y 0 to 1500, just around the tap and the glass. Stacked by
   default; pages lay the tap and the controls side by side where it fits. */
.tap { margin: 0; display: grid; gap: 14px; justify-items: start; align-content: start; font-family: var(--font-body); }
.tap [hidden] { display: none !important; }
.tap p { margin: 0; white-space: normal; }
.tap__frame { position: relative; width: var(--tap-w, min(100%, 120px)); aspect-ratio: 4 / 15; overflow: clip; isolation: isolate; user-select: none; -webkit-user-select: none; }
.tap__stage { position: absolute; top: 0; left: -78%; width: 256%; height: 102.4%; }
.tap__photo, .tap__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.tap__layer { overflow: visible; }
/* The photograph below the 36.9% line (the faucet, the plate, the glass); above it the collar from the same photograph
   and the handle, a strip of sixteen pictures of it being pulled, one showing at a time (tap.js sets --tap-frame while
   a pint pours, and --tap-cos and --tap-drop so the collar and the name follow the handle about the hinge). */
.tap__base { clip-path: inset(36.9% 0 0 0); }
.tap__handle { position: absolute; inset: 0; pointer-events: none; }
.tap__collar { clip-path: inset(33.07% 0 63.1% 0); transform-origin: 50% 36.9%; transform: scaleY(var(--tap-cos, 1)); }
.tap__pull { position: absolute; left: 42.3828%; top: -.2604%; width: 15.2344%; height: 37.5%; overflow: clip; }
.tap__pull img { position: absolute; top: 0; left: 0; width: 1600%; height: 100%; max-width: none; display: block; transform: translateX(calc(var(--tap-frame, 0) * -6.25%)); }
.tap__words { transform-origin: 50% 36.9%; transform: translateY(calc(var(--tap-drop, 0) * 1%)) scaleY(var(--tap-cos, 1)); }
.tap__name { font-family: var(--font-display); font-weight: 800; }
.tap__small { font-family: var(--font-body); font-weight: 600; }
/* The hop printed on the glass: barely there on an empty glass, clearer over the beer. */
/* A soft pool under the glass in the ground's own text colour: a glow on dark grounds, a shadow on pale beers' fields. */
.tap__pool { color: var(--fg); }
.tap__glass-hop { opacity: .22; transition: opacity .4s; }
.tap.is-wet .tap__glass-hop { opacity: .5; }
.tap__stream { opacity: 0; }
.tap.is-pouring .tap__stream { opacity: 1; }
.tap__bubble { opacity: 0; }
html[data-motion="full"]:not(.save-data) .tap.is-pouring .tap__stream { animation: tap-flow .2s linear infinite; }
html[data-motion="full"]:not(.save-data) .tap.is-wet .tap__bubble { animation: tap-bubble var(--d, 3s) linear var(--w, 0s) infinite; }
@keyframes tap-flow { 50% { opacity: .83; } }
@keyframes tap-bubble { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .6; } 90% { opacity: .4; } 100% { transform: translateY(-460px); opacity: 0; } }
.tap__caption { font-size: .9375rem; }

/* A mounted tap pours a fresh pint on a click (tap.js mountTap). */
.tap[data-mounted] { cursor: pointer; }
.tap[data-mounted]:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; border-radius: 12px; }

/* While it pours, the can's canvas covers the hero and runs over the text
   beside it (can3d.js spill): no fade at the box's edges, above the band, and
   clicks go through to what is under it. */
.can3d.is-spill .can3d__stage { -webkit-mask: none; mask: none; }
.can3d.is-spill .can3d__canvas { pointer-events: none; max-width: none; max-height: none; }
.bl-hero__aside:has(.can3d.is-spill) { z-index: 6; }

/* ---- The keg figure (kegFigureHTML in shop/browse.js, keg3d.js): the can figure's box, so the hero keeps its layout ---- */
.keg3d { margin: 0; display: grid; justify-items: center; }
.keg3d__stage { position: relative; width: 100%; aspect-ratio: 558 / 900; touch-action: pan-y; }
.keg3d.is-3d .keg3d__stage { cursor: grab; }
.keg3d__stage.is-dragging { cursor: grabbing; }
.keg3d__stage:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; border-radius: 8px; }
.keg3d__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.keg3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; }
.keg3d.is-3d .keg3d__canvas { opacity: 1; }
.keg3d.is-3d .keg3d__still { opacity: 0; }
/* In the hero, as big as the box allows (no foot under the keg). */
.bl-hero__aside .keg3d__stage { width: min(100cqw, 100cqh * 558 / 900); height: auto; }
