/* /bar-menu/: printable bar menu sign. Fonts for the sign designs (all SIL OFL 1.1, latin subset). */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 500 700; font-display: block; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-display: block; }
@font-face { font-family: "Limelight"; src: url("/assets/fonts/limelight.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald.woff2") format("woff2"); font-weight: 400 600; font-display: block; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: block; }

.bm-layout > * { min-width: 0; }
.bm-layout { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .bm-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .bm-stage { position: sticky; top: 96px; } }
.bm-from { margin: 0 0 1rem; }
.bm-h3 { font-size: 1.125rem; margin: 1.75rem 0 .25rem; }

/* Design picker: a scrolling row of thumbnails */
.bm-designs { min-inline-size: 0; min-width: 0; border: 0; padding: 0 0 8px; margin: 0 0 .5rem; display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.bm-design { position: relative; display: block; cursor: pointer; scroll-snap-align: start; }
.bm-design input { position: absolute; opacity: 0; inset: 0; }
.bm-design img { display: block; width: 120px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.bm-design input:checked + img { outline: 3px solid var(--ink); outline-offset: 2px; }
.bm-design input:focus-visible + img { outline: 3px solid var(--focus); outline-offset: 2px; }
.bm-design-name { display: block; font-weight: 500; font-size: .875rem; margin-top: 8px; line-height: 1.25; }
.bm-design-for { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }

/* Drink editor */
.bm-items-edit { list-style: none; padding: 0; margin: .75rem 0 1rem; display: grid; gap: 10px; }
.bm-item-edit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; border: 1px solid var(--field, var(--line)); background: var(--ivory); padding: 10px 12px; }
.bm-item-edit input[type="checkbox"] { width: 22px; height: 22px; grid-row: span 2; margin: 0; accent-color: var(--ink); }
.bm-item-edit input[type="text"] { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; font: inherit; color: var(--ink); padding: 4px 0; }
.bm-item-edit input[type="text"]:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.bm-item-edit .bm-in-name { font-weight: 500; }
.bm-item-edit .bm-in-line { font-size: .875rem; color: var(--muted); }
.bm-item-edit.is-off input[type="text"] { opacity: .45; }
.bm-tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* The sign. Every size inside is in cqw (percent of the sign's width) so it prints the same at any size. */
.bm-sign { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 18 / 24; overflow: hidden; background: #f3ede2; box-shadow: 0 1px 0 rgba(28, 34, 48, .04), 0 22px 48px -26px rgba(28, 34, 48, .45); margin: 0 auto; max-width: 640px; }
.bm-art { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.bm-zone { position: absolute; display: flex; flex-direction: column; justify-content: center; overflow: hidden; font-size: 4cqw; }
.bm-content { width: 100%; }
.bm-zone .ln { margin: 0; white-space: nowrap; overflow: visible; max-width: none; line-height: 1.12; }
.bm-zone .ln > span { display: inline-block; }
.bm-title { font-size: 1.7em; font-weight: 600; margin-bottom: .1em !important; }
.bm-event { font-size: 1.1em; font-weight: 500; }
.bm-date { font-family: "Jost", sans-serif; font-size: .42em; letter-spacing: .16em; text-transform: uppercase; margin-top: .45em !important; }
.bm-rule { height: max(1px, .06cqw); width: 18%; margin: .55em auto .5em; }
.bm-zone[data-align="left"] .bm-rule { margin-left: 0; }
.bm-items { display: grid; gap: .55em 1.2em; }
.bm-items.is-2col { grid-template-columns: 1fr 1fr; }
.bm-item .bm-name { font-size: 1em; font-weight: 600; }
.bm-item .bm-line, .bm-bwline { font-family: "Jost", sans-serif; font-size: .46em; font-weight: 400; margin-top: .25em !important; letter-spacing: .02em; }
.bm-sec { font-family: "Jost", sans-serif; font-size: .38em; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 1.6em 0 .7em !important; }
.bm-note { font-family: "Jost", sans-serif; font-size: .4em; letter-spacing: .08em; margin-top: 1.6em !important; }
.bm-zone[data-caps] .bm-title, .bm-zone[data-caps] .bm-name, .bm-zone[data-caps] .bm-event { text-transform: uppercase; letter-spacing: .03em; }
.bm-zone[data-italic] .bm-name, .bm-zone[data-italic] .bm-event { font-style: italic; }
.bm-small { margin-top: .75rem; text-align: center; }
.bm-pour { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.bm-peek { display: none; }
/* On phones the preview sits above the fields, so offer a way back up to it. */
@media (max-width: 959px) { .bm-peek { display: block; margin-top: .75rem; } .bm-peek a { display: inline-block; padding: 10px 0; } }

@media print {
  .site-header, .site-footer, .dock, .est-dock, .bm-hide-print, .bm-small, .skip-link { display: none !important; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .bm-section, .bm-section .wrap, .bm-layout, .bm-stage { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; position: static !important; }
  .bm-sign { box-shadow: none; max-width: none; width: var(--print-w); height: var(--print-h); aspect-ratio: auto; break-inside: avoid; }
}
@media (max-width: 959px) { .bm-stage { order: -1; } .bm-sign { max-width: min(100%, 460px); } }
