/* Beers section: the tap list (/beers/) and the beer page (/beers/beer.html).
   Builds on shared/kit.css and the label system (shared/label.css); the beer
   page also uses shared/theme.css (.t-field, .t-deep, .t-pale and the
   --beer* variables set by applyTheme). */

.link-btn { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Beer list: label cards in three groups ---------- */
.tapsheet { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.tapsheet__lede { margin: 18px 0 6px; }
.tapsheet__lede .warm { color: var(--warm); }
.tapsheet__flight { margin: 0 0 clamp(22px, 3vw, 32px); font-weight: 600; }

.controls__label { display: block; font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--fg); margin-bottom: 8px; padding: 0; }
.filter { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
html:not(.js) .filter { display: none; }
.filter__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter__opt { position: relative; }
.filter__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.filter__opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--panel); font-family: var(--font-body); font-weight: 700; font-size: .95rem; }
.filter__opt span small { font-weight: 600; font-size: .875rem; color: var(--muted); }
.filter__opt input:hover + span { border-color: var(--fg); }
.filter__opt input:checked + span { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.filter__opt input:checked + span small { color: inherit; }
.filter__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.controls__status { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.controls__status:empty { display: none; }
.controls__empty { padding: 28px 0 0; }

.group { padding-bottom: clamp(36px, 5vw, 64px); }
.group[hidden] { display: none; }
.group__band { padding: clamp(18px, 2.4vw, 26px) 0 clamp(16px, 2vw, 22px); margin-bottom: clamp(20px, 3vw, 32px); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.group__head h2 { margin: 0; }
.group__note { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }

.bcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.bcard { position: relative; display: grid; gap: 12px; align-content: start; }
.bcard[hidden] { display: none; }
/* "Also in cans": a small can and the words, in the label's bottom corner, linking to the shop. */
.bcard__can { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  border-radius: 999px; background: rgba(12, 12, 12, .82); color: #fff; font-weight: 700; font-size: .8125rem; line-height: 1; text-decoration: none; backdrop-filter: blur(4px); }
.bcard__can img { display: block; width: auto; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.bcard__can:hover, .bcard__can:focus-visible { background: #000; text-decoration: underline; }
.bcard__label { position: relative; border-radius: var(--radius-sm); overflow: clip; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
/* The label leans about 4deg, with a deeper shadow and a glow in the beer's
   own colour (--c, from cardHTML). Touch screens get the lean once, in view. */
@media (hover: hover) {
  html[data-motion="full"] .bcard:hover .bcard__label, html[data-motion="full"] .bcard:focus-within .bcard__label { transform: translateY(-6px) rotate(-4deg); box-shadow: 0 22px 40px rgba(0, 0, 0, .6), 0 0 34px color-mix(in oklab, var(--c, var(--sun)) 55%, transparent); }
}
@media (hover: none) { html[data-motion="full"] .bcard.is-seen .bcard__label { animation: tilt-once 1s var(--ease-out) calc(var(--i, 0) * 80ms) both; } }
.bcard__body { display: grid; gap: 4px; }
.bcard__name { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.15; margin: 0; letter-spacing: 0; text-transform: none; }
.bcard__name a { display: inline-block; padding-block: 13px; margin-block: -13px; text-decoration: none; color: inherit; }
.bcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bcard__name a:focus-visible { outline: none; }
.bcard:has(.bcard__name a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-sm); }
.bcard:hover .bcard__name a, .bcard__name a:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bcard__style { margin: 0; font-size: .9375rem; color: var(--muted); }
.bcard__facts { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-body); font-weight: 700; font-size: .9375rem; }
.bcard__new { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .bcard__label { transition: none; } }
html[data-motion="reduce"] .bcard__label { transition: none; }

@media (max-width: 600px) {
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .bcard__name { font-size: 1.0625rem; }
  .bcard__facts, .bcard__style { font-size: .875rem; }
}

.tapsheet__end { padding-bottom: clamp(40px, 6vw, 72px); }
.takehome-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.takehome-note p { margin: 0; flex: 1 1 320px; }
/* "Powered by Untappd": full-strength text, never faded (4.5:1 or better). */
.untappd-credit, .untappd-credit a { color: var(--fg); opacity: 1; }
.tapsheet__end .untappd-credit { margin-top: 18px; }

/* ---------- Beer page ---------- */
/* Hero band (inside heroHTML's .bl-hero__band, on the beer's field). */
.bb-band { display: grid; gap: 14px; }
.bb-lede { margin: 0; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; }
/* Parish: the real medal beside the award line, swinging a little on its ribbon. */
.bb-award { display: flex; align-items: center; gap: 14px; }
/* The line wraps short, so it never runs under the big hop mark at the hero's top right. */
.bb-award > span { max-width: 20ch; }
.bb-medal { width: clamp(72px, 7vw, 104px); }
.bb-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.bb-legend { margin: 0 0 6px; font-family: var(--font-body); font-weight: 600; font-size: .875rem; }
.bb-pours { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.bb-pours li { display: flex; align-items: baseline; gap: 8px; font-size: 1rem; }
.bb-pours .price { font-size: 1.6rem; line-height: 1; }
.bb-where { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; }
.bb-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-opt { display: grid; gap: 4px; justify-items: start; }
.bb-add { min-height: 52px; padding: 10px 22px; gap: 12px; }
.bb-add .price { font-size: 1.25rem; letter-spacing: .02em; }
.t-field .stock, .t-field .sample { color: inherit; }
.bb-note { margin: 0; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.bb-note a { color: inherit; }

/* Story: the tasting note and the facts, on the deep shade (the can or the
   tap is up in the hero, label.css .bl-hero__aside). */
.bs-story, .br { padding: clamp(48px, 7vw, 104px) 0; }
.bs-story .crumbs { padding: 0 0 clamp(24px, 4vw, 48px); color: var(--muted); }
.bs-story .crumbs a { color: var(--fg); }
.bs-story__in { display: grid; }
.bs-taste .kicker { color: var(--accent); margin-bottom: 14px; }
/* The brewery's own words, in the body face: big, upright, plain. */
.bs-taste__text { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.32; letter-spacing: -.005em; margin: 0 0 28px; }
.bs-taste__text--long { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.42; }
.bs-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 28px; border-top: 2px solid var(--accent); }
.bs-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bs-facts dt { font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--accent); }
.bs-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; }
.bs-facts dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -8px; }
.bs-story .untappd-credit { margin: 12px 0 0; }
.bs-more { margin: 24px 0 0; }
.bs-where { margin-top: 28px; }
.bs-where__h { margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; color: var(--accent); }
.bs-where__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent); }
.bs-where__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.bs-where__list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.0625rem; }
.bs-where__list span { font-weight: 600; }
.bs-where__more { margin: 12px 0 0; font-weight: 600; }
.bs-where__checked { margin: 10px 0 0; font-size: .9375rem; font-weight: 600; }
.bs-where__more .link { display: inline-flex; align-items: center; min-height: 44px; }

/* Have it in a flight: a band in the beer's own colour. */
/* The pour: the glass still beside its line, straight after the story. */
.bpour { padding: 0 0 clamp(48px, 7vw, 96px); scroll-margin-top: var(--overlap, 80px); }
.bpour:focus { outline: none; }
.bpour__in { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.bpour__glass { margin: 0; }
.bpour__glass svg { display: block; width: 100%; height: auto; }
.bpour__line { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.35; margin: 8px 0 0; text-wrap: balance; }
.bpour__note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
@media (max-width: 560px) { .bpour__in { grid-template-columns: 112px minmax(0, 1fr); } }
.bf { padding: clamp(48px, 7vw, 96px) 0; }
.bf__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.bf__lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; margin: 16px 0 24px; }
.bf__photo { margin: 0; }
.bf__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }

/* If you like this, try: label cards on the deep shade. */
.br h2 { padding-bottom: 12px; border-bottom: 2px solid currentColor; margin-bottom: 24px; }
.bcards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; }
.br .bcard__style { color: var(--muted); }
.br-all { margin: 32px 0 0; }
.br--plain { padding-top: 0; }

.not-found { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.not-found .crumbs { padding: 0 0 24px; }
.not-found .lede { margin: 18px 0 24px; }
.noscript { padding: 40px 0; }

@media (max-width: 860px) {
  .bf__in { grid-template-columns: 1fr; }
  .bf__photo { max-width: 420px; }
  .bb-row { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .bcards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .bb-buttons, .bb-opt, .bb-add { width: 100%; }
  .bb-add { justify-content: space-between; }
}

/* View transitions (kit.css): this page's hero is where a clicked label or can lands. */
.bl-hero .bl--hero { view-transition-name: beer-label; }
.bl-hero__aside .can3d__stage { view-transition-name: beer-can; }
