/* Motion values are kept in the stylesheet so the static site can use a strict CSP. */
.bh-rise-0 {--bh-duration:4.5s;--bh-delay:-2.2s;--bh-drift:2px;--bh-rise:-56px;--bh-alpha:.65}
.bh-rise-1 {--bh-duration:6.3s;--bh-delay:-4.1s;--bh-drift:-3px;--bh-rise:-47px;--bh-alpha:.8}
.bh-rise-2 {--bh-duration:5.1s;--bh-delay:-.8s;--bh-drift:3px;--bh-rise:-54px;--bh-alpha:.68}
.bh-rise-3 {--bh-duration:6.8s;--bh-delay:-5.6s;--bh-drift:-4px;--bh-rise:-49px;--bh-alpha:.72}
.bh-rise-4 {--bh-duration:5.6s;--bh-delay:-3.8s;--bh-drift:4px;--bh-rise:-52px;--bh-alpha:.8}
.bh-rise-5 {--bh-duration:4.9s;--bh-delay:-3s;--bh-drift:-2px;--bh-rise:-50px;--bh-alpha:.7}
.bh-rise-6 {--bh-duration:7.1s;--bh-delay:-1.6s;--bh-drift:2px;--bh-rise:-56px;--bh-alpha:.64}
.bh-rise-7 {--bh-duration:5.8s;--bh-delay:-4.8s;--bh-drift:-3px;--bh-rise:-48px;--bh-alpha:.75}
.static-cols-1 {--bh-table-width:235px}
.static-cols-2 {--bh-table-width:380px}
.static-cols-3 {--bh-table-width:525px}
.static-cols-4 {--bh-table-width:670px}
.compare-table :is(img,svg.beer-visual) {height:75px}
.compare-table button.bh-remove {color:var(--ink);background:var(--foam);font-weight:500}
.sort select,.filter select {background-image:none;appearance:auto;-webkit-appearance:menulist;padding-right:8px}
.bh-index-error :is(#mobileFilter,#sortForm,#filterForm,[data-select],#searchForm) {display:none}
.bh-static-no-dialog #sidebar {display:grid}
.bh-static-no-dialog #mobileFilter {display:none}
.bh-category-index ul,.bh-related-reading ul {display:grid;gap:.55rem 1.25rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.bh-category-index a,.bh-related-reading a {text-underline-offset:.2em;overflow-wrap:anywhere}
.ed-card>div>strong,.ed-card>div>span {display:block}
.ed-card>div>span {margin-top:.25rem;color:var(--muted);font-size:.9rem;line-height:1.55}
.static-catalogue-page,.static-compare-page {padding-block:24px clamp(36px,5vw,72px)}
.static-compare-page {max-width:1040px}
.catalog-page-intro h1 {margin:0 0 .35rem;color:var(--ink);font-size:clamp(25px,3.4vw,36px)}
.catalog-page-intro p {color:var(--muted);max-width:60em}
.catalog-page-intro .search {max-width:760px;margin-top:16px}
.static-compare-page .bh-sheet {margin-top:20px;min-width:0}
.catalog-style-links {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:16px 0}
.catalog-style-links>strong {margin-right:4px;color:var(--muted);font-size:12px}
.catalog-style-links a {display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:2px 8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-size:12px}
.catalog-style-links a:hover,.catalog-style-links a.active,.quick a.active {border-color:var(--primary);background:var(--selected)}
.catalog-style-links a span {color:var(--muted);font-variant-numeric:tabular-nums}
.catalog-page-intro .search input {min-width:0;margin:0;border:0;border-radius:0;align-self:stretch}
.catalog-page-intro .search button {margin:0;border:0;border-radius:0;align-self:stretch}
.style-tile strong {max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}
.beer-art img.catalog-product-image {position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:contain;background:#fff;padding:5px 18px}
.compare-table img.catalog-product-image {width:88px;height:75px;object-fit:contain;background:#fff}
.beer-art[data-beer-media] {isolation:isolate}
.beer-art img[data-beer-photo] {background:transparent}
.beer-photo-kind {z-index:1;padding:2px 4px;border-radius:3px;background:#fffaf1}
.beer-compare-image {display:block}
.beer-compare-image[data-beer-media] {display:grid;grid-template-rows:75px auto;justify-items:center}
.beer-compare-image :is(img,svg.beer-visual) {grid-area:1 / 1}
.beer-compare-image img[data-beer-photo] {grid-area:1 / 1;background:transparent}
.beer-compare-caption {grid-area:2 / 1;color:var(--muted);font-size:.72rem}
.beer-profile-head figure[data-beer-media] {gap:0;aspect-ratio:auto}
.beer-detail-media {--detail-height:clamp(145px,19vw,215px);position:relative;display:grid;width:100%;height:var(--detail-height);place-items:center}
.beer-profile-head figure .beer-detail-media .beer-visual {width:min(100%,var(--detail-height));height:auto}
.beer-detail-media img.catalog-product-image {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:6px}
.beer-profile-head figure[data-beer-media] figcaption {width:100%;padding:3px 8px 8px;overflow-wrap:anywhere}
.beer-image-credit,.beer-image-note {display:block;margin-top:2px}
.beer-photo-gallery {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.beer-photo-gallery figure {margin:0;max-width:24rem}
.beer-photo-gallery img {display:block;width:100%;height:14rem;object-fit:contain}
.beer-photo-gallery figcaption {margin-top:.5rem;overflow-wrap:anywhere}
.beer-photo-gallery figcaption span {display:block;font-size:.9em}
.beer-profile-head figure[data-beer-media] figcaption a {display:block}
[data-beer-media]:is([data-beer-media="static"],[data-beer-media="loaded"]) [data-beer-fallback],
[data-beer-media]:not([data-beer-media="static"],[data-beer-media="loaded"]) [data-beer-caption] {display:none}
[data-beer-media]:not([data-beer-media="static"],[data-beer-media="loaded"]) img[data-beer-photo] {visibility:hidden}
.beer-art:is([data-beer-media="static"],[data-beer-media="loaded"]) img[data-beer-photo] {background:#fff}
[data-beer-related-item] {display:none}
[data-beer-media="failed"][data-beer-related="loaded"] [data-beer-related-item] {display:block}
[data-beer-media="failed"][data-beer-related="loaded"] :is([data-beer-fallback],[data-beer-primary-details]) {display:none}
.beer-card .art-wrap {min-width:0}
.beer-card .spec b {overflow-wrap:anywhere}
.ed-page .static-standalone-grid .beer-card .maker {line-height:1.5;margin:0}
.ed-page .static-standalone-grid .beer-card .style-label {line-height:1.5;margin:0 0 8px}
.ed-page .static-standalone-grid .beer-name {color:var(--ink)}
.ed-page .static-standalone-grid .compare-check.selected {color:white}
.compare-picker {display:grid;grid-template-columns:minmax(0,30rem) auto;align-items:center;justify-content:start;gap:6px 8px;margin-bottom:16px}
.compare-picker label {grid-column:1/-1;font-weight:650}
.compare-picker select {min-width:0;width:100%;height:44px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding-inline:8px}
.compare-picker button {min-height:44px;padding-inline:16px;background:var(--primary);color:white;border:0}
.compare-table th[scope="col"] a {min-height:44px;display:flex;align-items:center}
.compare-table .bh-remove {min-height:36px}
.compare-scroll-hint {margin:8px 0 0;color:var(--muted);font-size:12px}
.static-compare-page noscript table {table-layout:fixed}
.static-compare-page noscript th,.static-compare-page noscript td {white-space:normal;overflow-wrap:anywhere}
.bh-table-scroll:focus-visible {outline:2px solid var(--primary);outline-offset:1px}
.compare-dock {bottom:max(12px,env(safe-area-inset-bottom))}
@media(max-width:768px) {
  .static-catalogue-page,.static-compare-page {padding-top:16px}
  .catalog-style-links {gap:5px;margin:12px 0}
  .catalog-style-links>strong {flex:0 0 100%}
  .catalog-page-intro .search {margin-top:12px}
  .catalog-style-links a {padding-inline:7px}
  .beer-detail-media {--detail-height:clamp(165px,58vw,300px)}
  .beer-detail-media img.catalog-product-image {max-height:none}
}
@media(max-width:650px) {
  .bh-category-index ul,.bh-related-reading ul {grid-template-columns:1fr}
}
