* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 25px 5%;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand,
header {
  display: flex;
  align-items: center;
}
.brand {
  text-decoration: none;
  gap: 12px;
}
.mark {
  width: 48px;
  height: 48px;
  text-align: center;
  border-radius: 50%;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  text-decoration: none;
  padding: 10px 0;
}
nav a.active {
  border-bottom: 2px solid var(--green);
}
#barcount {
  padding: 3px 6px;
  border-radius: 10px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 45px 5% 70px;
}
.art-note,
.badge,
.eyebrow {
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 35px;
  align-items: center;
}
h1 {
  margin: 18px 0;
}
.hero p {
  max-width: 470px;
}
.button,
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-block;
}
.primary {
  border-color: var(--green);
}
.small {
  padding: 8px 12px;
}
.hero-art {
  border-radius: 130px 130px 12px 12px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-art svg {
  width: 260px;
  height: 260px;
}
.art-note {
  position: absolute;
  bottom: 20px;
}
.summary {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin: 25px 0 18px;
}
h2 {
  margin: 0;
}
h3 {
  margin: 12px 0 7px;
}
.toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.tabs,
.toolbar {
  display: flex;
  flex-wrap: wrap;
}
.tabs {
  gap: 5px;
}
.tabs button {
  padding: 9px 14px;
  border-color: transparent;
}
input[type="search"] {
  border: 1px solid var(--line);
  padding: 11px 14px;
  border-radius: 6px;
  width: 240px;
}
.grid {
  display: grid;
  gap: 23px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.card-art {
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
}
.card-art svg {
  height: 165px;
  width: 165px;
  transition: transform 0.3s;
}
.card:hover svg {
  transform: rotate(-4deg);
}
.save {
  position: absolute;
  top: 12px;
  border: 0;
  padding: 8px 10px;
  border-radius: 50%;
}
.card-content {
  padding: 20px;
}
.card p {
  margin: 6px 0 15px;
  min-height: 42px;
}
.meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card .view {
  border: 0;
  padding: 0;
}
.notice {
  border: 1px solid var(--border);
  padding: 17px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.inventory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.group {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.checkrow {
  gap: 10px;
  padding: 11px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.checkrow input {
  width: 18px;
  height: 18px;
}
.checkrow small {
  margin-left: auto;
}
.empty {
  padding: 45px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  grid-column: 1/-1;
}
.shopping {
  max-width: 780px;
}
.shoprow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.shoprow p {
  margin: 5px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 5%;
  justify-content: space-between;
  gap: 20px;
}
dialog {
  border: 0;
  border-radius: 15px;
  max-width: 620px;
  width: 92%;
  padding: 35px;
  max-height: 90vh;
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
}
.recipe-art {
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.recipe-art svg {
  height: 155px;
  width: 155px;
}
.ingredients {
  list-style: none;
  padding: 0;
}
.ingredients li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
ol {
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 8px;
  display: none;
  z-index: 5;
  box-shadow: 0 8px 40px var(--border);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--border);
  outline-offset: 4px;
}
@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
    padding: 18px 5%;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .hero {
    grid-template-columns: 1fr 0.7fr;
    gap: 12px;
  }
  .hero-art {
    height: 250px;
  }
  .hero-art svg {
    width: 200px;
  }
  .inventory {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  main {
    padding-top: 25px;
  }
  .grid,
  .hero {
    grid-template-columns: 1fr;
  }
  .card-art {
    height: 190px;
  }
  .section-top,
  .shoprow {
    align-items: start;
  }
  .shoprow button {
    flex-shrink: 0;
  }
  .brand {
    width: 100%;
  }
}
header {
  max-width: 1600px;
  margin: auto;
  padding: 28px 5%;
  gap: 35px;
}
.mark {
  width: auto;
  height: auto;
  text-align: left;
  border-radius: 0;
}
.mark span {
  display: block;
  margin-top: 10px;
}
nav {
  gap: 34px;
}
nav a.active {
  border: 0;
  position: relative;
}
nav a.active:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: 0;
  left: 50%;
}
#barcount {
  margin-left: 5px;
}
main {
  max-width: 1500px;
  padding-top: 20px;
}
.hero {
  min-height: 330px;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  position: relative;
}
.hero h1 {
  margin: 22px 0;
}
.hero p {
  max-width: 380px;
  margin-bottom: 22px;
}
.primary {
  border-color: var(--border);
}
.button,
button {
  border-radius: 4px;
}
.button.primary {
  padding: 13px 19px;
}
.hero-art {
  border-radius: 0;
  height: 300px;
  overflow: visible;
}
.hero-art svg {
  width: 340px;
  height: 320px;
  filter: drop-shadow(0 20px 24px var(--border));
}
.art-note {
  bottom: 0;
}
.summary {
  gap: 9px;
  margin-top: 22px;
}
.section-top {
  margin: 20px 0 25px;
}
.toolbar {
  margin-bottom: 26px;
  align-items: center;
}
.tabs {
  gap: 18px;
}
.tabs button {
  padding: 9px 0;
  border: 0;
  border-radius: 0;
}
.tabs button.selected {
  border-bottom: 1px solid var(--border);
}
input[type="search"] {
  border-color: var(--border);
  border-radius: 4px;
  padding: 12px 15px;
}
.grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  border: 0;
  border-radius: 0;
}
.card-art {
  height: 255px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.card-art:before {
  content: "GËZ / COLLECTION";
  position: absolute;
  left: 15px;
  top: 18px;
}
.card-art svg {
  height: 240px;
  width: 240px;
  filter: drop-shadow(0 18px 14px var(--border));
  transition: transform 0.4s;
}
.card:hover svg {
  transform: translateY(-5px) rotate(-2deg);
}
.card:hover .card-art,
.notice {
  border-color: var(--border);
}
.save {
  right: 12px;
  top: 10px;
  border-radius: 0;
}
.card-content {
  padding: 20px 0 6px;
}
.card h3 {
  margin: 10px 0;
}
.card p {
  margin-top: 7px;
}
.meta {
  padding-top: 12px;
}
.notice button {
  margin-left: 8px;
}
.inventory {
  gap: 30px;
}
.group {
  border-top-color: var(--border);
}
.group h3 {
  margin-bottom: 20px;
}
.checkrow {
  border-bottom-color: var(--border);
  padding: 14px 0;
}
footer {
  max-width: 1350px;
  margin: auto;
  padding: 25px 0 35px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
}
.recipe-art {
  height: 200px;
}
.recipe-art svg {
  height: 200px;
  width: 220px;
}
dialog h3 {
  margin: 25px 0 15px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline-color: var(--border);
}
@media (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 800px) {
  header {
    padding: 24px 5%;
  }
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
  }
  .hero-art svg {
    width: 260px;
    height: 260px;
  }
  .hero-art {
    height: 260px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .card-art {
    height: 225px;
  }
  .card-art svg {
    width: 210px;
    height: 210px;
  }
  footer {
    margin: 0 5%;
  }
  nav {
    justify-content: start;
    gap: 35px;
  }
}
@media (max-width: 520px) {
  header {
    padding: 22px 6% 0;
    gap: 24px;
  }
  .primary-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 68px;
    padding: 14px 20px;
    backdrop-filter: blur(16px);
    z-index: 4;
    justify-content: space-around;
    border-top: 1px solid var(--border);
  }
  .hero {
    display: block;
    min-height: 0;
    padding: 30px 0 25px;
    margin-bottom: 28px;
  }
  .hero h1 {
    max-width: 340px;
  }
  .hero p {
    max-width: 290px;
  }
  .hero-art {
    display: none;
  }
  main {
    padding: 20px 6% 35px;
  }
  .shoprow,
  .summary {
    flex-wrap: wrap;
  }
  .section-top {
    gap: 8px;
    margin-bottom: 18px;
  }
  .section-top > .eyebrow {
    max-width: 75px;
    text-align: right;
  }
  .toolbar {
    gap: 14px;
  }
  .tabs {
    justify-content: space-between;
    gap: 8px;
  }
  .tabs,
  input[type="search"] {
    width: 100%;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 13px;
  }
  .card-art {
    height: 174px;
  }
  .card-art svg {
    width: 170px;
    height: 170px;
  }
  .card-art:before {
    left: 9px;
    top: 13px;
  }
  .save {
    right: 2px;
    top: 1px;
  }
  .card-content {
    padding-top: 15px;
  }
  .card p {
    min-height: 48px;
  }
  .meta {
    gap: 8px;
  }
  .notice {
    padding: 14px;
  }
  .notice button {
    margin: 10px 0 0;
  }
  .inventory {
    grid-template-columns: 1fr;
  }
  footer {
    margin: 0 6%;
    padding-bottom: 95px;
    gap: 13px;
  }
  dialog {
    padding: 25px;
  }
}
.welcome {
  padding: 62px 0 48px;
  border-top: 1px solid var(--line);
}
.welcome h1 {
  margin: 22px 0;
}
.lede,
.welcome p {
  max-width: 650px;
}
.service {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  min-height: 220px;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s;
  text-decoration: none;
}
.service:hover {
  border-color: var(--border);
}
.service h2 {
  margin: 24px 0 12px;
}
.service p {
  max-width: 250px;
  margin-bottom: 30px;
}
.featured {
  grid-row: span 2;
  padding-bottom: 240px;
}
.back {
  display: block;
  margin: 10px 0 35px;
}
.card-art:before {
  display: none;
}
.card-art img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}
.card:hover img {
  transform: scale(1.025);
}
.card-art .save {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 0;
}
.tool-preview {
  min-height: 38px;
}
.recipe-art {
  height: 300px;
  overflow: hidden;
}
.recipe-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.toolbox {
  padding: 1px 18px 10px;
  margin-top: 20px;
  border-radius: 6px;
}
.toolbox h3 {
  margin-top: 15px;
}
.credit {
  display: block;
  margin-top: 8px;
}
.recipe-facts {
  margin-bottom: 12px;
}
.planner-controls {
  display: flex;
  gap: 20px;
  margin: 32px 0;
}
.planner-controls label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.planner-controls input,
.planner-controls select {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.plan-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ingredient-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.ingredient-total strong {
  text-align: right;
}
.pairing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.learning {
  margin-top: 40px;
}
.learning details {
  border-top: 1px solid var(--border);
}
.learning summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 26px 0;
  list-style: none;
}
.learning summary small {
  display: block;
  margin-top: 8px;
}
.learning summary b {
  margin-left: auto;
}
.lesson {
  max-width: 750px;
  padding: 0 0 30px 50px;
}
.lesson li {
  margin-bottom: 16px;
}
.lesson button {
  margin: 6px;
}
.photo-pending {
  padding: 35px;
}
.photo-pending span {
  display: block;
  margin-top: 15px;
  opacity: 0.7;
}
header nav {
  gap: 22px;
}
#recipe > .close,
a,
button,
input,
select,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 5px;
}
@media (max-width: 900px) {
  .featured {
    grid-row: span 2;
  }
  .service:last-child {
    grid-column: span 2;
  }
  .plan-layout {
    grid-template-columns: 1fr;
  }
  .pairing {
    gap: 20px;
  }
  header nav {
    gap: 15px;
  }
}
@media (max-width: 520px) {
  .welcome {
    padding: 34px 0 28px;
  }
  .featured,
  .service {
    grid-row: auto;
    min-height: 0;
    padding: 24px;
  }
  .service:last-child {
    grid-column: auto;
  }
  .featured {
    padding-right: 125px;
    min-height: 220px;
  }
  .featured p {
    max-width: 190px;
  }
  .service h2 {
    margin: 15px 0 10px;
  }
  .service p {
    margin-bottom: 20px;
  }
  header nav {
    gap: 8px;
    padding: 10px 8px;
  }
  .card .meta {
    display: block;
  }
  .meta button {
    margin-top: 8px;
    padding-left: 0;
  }
  .planner-controls {
    flex-wrap: wrap;
    gap: 15px;
  }
  .planner-controls label {
    flex-basis: 40%;
  }
  .panel {
    padding: 20px;
  }
  .pairing {
    grid-template-columns: 1fr;
  }
  .learning summary {
    gap: 15px;
  }
  .lesson {
    padding-left: 0;
  }
  .recipe-art {
    height: 250px;
  }
  .back {
    margin-bottom: 25px;
  }
  .photo-pending {
    padding: 15px;
  }
}
.upgrade-box {
  margin-top: 28px;
  padding: 26px;
  border-radius: 14px;
}
.upgrade-box h4 {
  margin-bottom: 5px;
}
.course {
  display: grid;
  grid-template-columns: 42px 1fr 180px;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.course h2 {
  margin: 8px 0;
}
.course h3 {
  margin-bottom: 0;
}
.course p {
  margin-top: 7px;
}
.card-art img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s;
  object-fit: contain;
}
.card-art {
  overflow: hidden;
}
.card:hover .card-art img {
  transform: scale(1.035);
}
.photo-pending {
  padding: 24px;
}
@media (max-width: 640px) {
  .course {
    grid-template-columns: 28px 1fr;
  }
  .course,
  header nav {
    gap: 12px;
  }
}
@media (max-width: 520px) {
  header nav {
    height: auto;
    min-height: 68px;
    gap: 10px 16px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  main {
    padding-bottom: 100px;
  }
}
.inventory-controls,
.pairing-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 30px 0;
}
.inventory-controls input[type="search"] {
  flex: 1;
}
.inventory-controls .checkrow {
  border: 0;
  white-space: nowrap;
}
.inventory-category {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
}
.inventory-category summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 23px;
}
.ingredient-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 25px;
  padding: 0 23px 20px;
}
.ingredient-options .checkrow {
  min-height: 48px;
}
.collection-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}
.collection-switch button {
  border: 1px solid var(--border);
  padding: 12px 19px;
}
.pairing-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pairing-controls select {
  border: 1px solid var(--border);
  padding: 13px;
  border-radius: 5px;
}
.food-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0;
}
.food-option {
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 12px;
}
.food-match {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: 20px;
}
.food-match button {
  padding-left: 0;
}
.recipe-no-photo {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  gap: 12px;
}
.recipe-art img {
  object-fit: contain !important;
}
.food-options button:focus-visible {
  outline: 2px solid var(--border);
}
@media (max-width: 700px) {
  .inventory-controls,
  .pairing-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .ingredient-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .food-options {
    grid-template-columns: 1fr;
  }
  .inventory-category summary {
    gap: 12px;
    padding: 18px;
  }
  .recipe-no-photo {
    padding: 15px;
  }
}
@media (max-width: 400px) {
  .ingredient-options {
    grid-template-columns: 1fr;
  }
}
.back-link {
  display: inline-block;
  margin: 16px 0;
}
.toolbar .tabs {
  flex-wrap: wrap;
}
.pairing-lesson {
  max-width: 900px;
  margin: 24px 0;
}
.pairing-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pairing-lesson h3 {
  margin-top: 26px;
}
@media (max-width: 600px) {
  .pairing-reasons {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.host-options {
  max-height: 430px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px;
}
.host-option {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  padding: 12px;
  min-width: 0;
}
.host-option > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.host-option h3 {
  margin: 0;
}
.host-thumb {
  width: 68px;
  height: 85px;
  flex-shrink: 0;
}
.host-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.host-option button {
  padding: 9px;
}
.host-option button:disabled {
  opacity: 0.45;
}
.host-plan {
  margin-top: 30px;
}
.host-selected {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.host-selected > div {
  flex: 1;
}
.host-selected label {
  width: 70px;
}
.host-selected input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
}
.host-selected > button {
  padding: 8px;
}
@media (max-width: 800px) {
  .host-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .host-selected {
    flex-wrap: wrap;
  }
  .host-selected > div {
    flex-basis: 65%;
  }
  .host-thumb {
    width: 50px;
  }
  .host-option {
    gap: 10px;
  }
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 35px 0;
}
.story-photo {
  height: 190px;
  margin: -5px -5px 24px;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feedback-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.feedback-label select {
  border: 1px solid var(--border);
  padding: 12px;
}
header nav {
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-photo {
    height: 220px;
  }
}
.primary-nav {
  gap: 30px;
  flex-wrap: nowrap;
}
.primary-nav a {
  display: flex;
  gap: 8px;
  min-height: 44px;
}
.primary-nav svg {
  width: 20px;
  height: 20px;
}
.utility-links {
  max-width: 1500px;
  margin: auto;
  padding: 0 5% 16px;
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.utility-links a {
  text-decoration: none;
  padding: 8px 0;
}
.collection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 28px;
}
.collection-chips a,
.collection-chips button {
  border-radius: 30px;
  padding: 11px 17px;
  border: 1px solid var(--border);
  min-height: 44px;
}
.collection-chips .selected {
  border-color: var(--border);
}
.browse-search {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: end;
}
.browse-search input {
  width: 100%;
  min-height: 48px;
}
.browse-search label {
  display: grid;
  gap: 8px;
}
.browse-refine select,
.browse-search select {
  border: 1px solid var(--border);
  border-radius: 5px;
  min-height: 46px;
  padding: 10px;
}
.browse-refine {
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.browse-refine summary {
  cursor: pointer;
  padding: 17px 0;
}
.browse-refine summary span {
  margin-left: 16px;
}
.browse-refine .checkrow {
  flex-direction: row;
  align-items: center;
}
.browse-refine .checkrow input {
  width: auto;
}
.collection-section {
  margin: 24px 0 38px;
}
.collection-fold summary,
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.collection-fold {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 0;
}
.collection-fold summary {
  cursor: pointer;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}
.collection-fold summary::-webkit-details-marker {
  display: none;
}
.collection-fold summary b {
  margin-left: 18px;
}
.collection-fold[open] summary b {
  display: inline-block;
  transform: rotate(45deg);
}
.collection-fold .drink-grid {
  padding-bottom: 35px;
}
.drink-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.drink-tile {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile-picture {
  height: 260px;
}
.tile-picture > a {
  width: 100%;
}
.tile-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-fit: cover;
}
.tile-save {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.tile-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 20px;
}
.tile-body {
  padding: 21px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tile-kicker {
  margin: 0 0 12px;
}
.tile-kicker span {
  padding: 0 5px;
}
.tile-body h3 {
  margin: 0;
  min-height: 55px;
}
.group-card h2 a,
.learn-row,
.tile-body h3 a,
.tile-make {
  text-decoration: none;
}
.tile-flavour {
  margin: 10px 0 20px;
  min-height: 20px;
}
.tile-stock {
  margin: 0 0 18px;
}
.tile-actions {
  margin-top: auto;
  display: grid;
  gap: 7px;
}
.tile-make {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  padding: 14px 17px;
  min-height: 48px;
}
.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1500px) {
  .drink-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .drink-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .tile-picture {
    height: 220px;
  }
  .tile-body {
    padding: 17px;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  header {
    padding: 22px 6% 15px;
  }
  .primary-nav {
    inset: auto 0 0;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 20;
  }
  .primary-nav a {
    gap: 5px;
    min-width: 0;
    min-height: 54px;
    padding: 5px;
    border-radius: 9px;
    border: 0;
  }
  .primary-nav svg {
    width: 22px;
    height: 22px;
  }
  .utility-links {
    padding: 0 6% 10px;
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }
  .browse-search {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .browse-search label {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .browse-search select {
    width: 100%;
  }
  .collection-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .collection-chips a,
  .collection-chips button {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .collection-fold summary b {
    margin-left: 7px;
  }
  .tile-picture {
    height: 210px;
  }
  .tile-body {
    padding: 16px;
  }
  .tile-body h3 {
    min-height: 48px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding-bottom: 30px;
  }
  #toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 21;
  }
  .browse-refine summary span {
    display: block;
    margin: 8px 0 0;
  }
}
@media (max-width: 430px) {
  .drink-grid {
    grid-template-columns: 1fr;
  }
  .tile-picture {
    height: 285px;
  }
  .tile-body h3 {
    min-height: 0;
  }
  .tile-flavour {
    margin-bottom: 20px;
  }
  .tile-body {
    padding: 21px;
  }
  .tile-actions {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 18px;
  }
}
.button,
.button.primary,
.primary,
.tile-make,
button,
header {
  border-color: var(--border);
}
.utility-links {
  display: none;
}
main {
  max-width: 1360px;
}
.button,
button {
  border-radius: 14px;
}
.empty,
.food-option,
.notice,
.panel,
.upgrade-box {
  border-color: var(--border);
  border-radius: 22px;
}
.browse-refine select,
.browse-search select,
input,
select {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  min-height: 48px;
}
.browse-refine,
.collection-chips a,
.collection-chips button,
.collection-fold {
  border-color: var(--border);
}
.drink-tile,
.tile-save {
  border: 0;
}
.drink-tile,
.tile-picture {
  border-radius: 22px;
}
.tile-body {
  padding: 22px 3px;
}
.editorial-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 20px 0 65px;
}
.editorial-hero p {
  max-width: 440px;
  margin: 25px 0 40px;
}
.hero-pour {
  position: relative;
  display: block;
  height: 520px;
  overflow: hidden;
  border-radius: 140px 140px 24px 24px;
}
.hero-pour img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-pour > span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 25px 25px;
}
.bar-links {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.result-count {
  grid-column: 1/-1;
}
.story-grid .panel {
  border: 0;
  padding: 0;
}
.story-photo {
  overflow: hidden;
}
.story-photo,
dialog {
  border-radius: 24px;
}
dialog,
footer {
  border-color: var(--border);
}
@media (max-width: 800px) {
  .editorial-hero {
    gap: 30px;
  }
  .hero-pour {
    height: 420px;
  }
  .primary-nav {
    border-color: var(--border);
  }
}
@media (max-width: 600px) {
  .editorial-hero {
    grid-template-columns: 1fr;
    padding-top: 0;
    gap: 28px;
    padding-bottom: 35px;
  }
  .editorial-hero p {
    margin: 20px 0 26px;
  }
  .hero-pour {
    height: 300px;
    border-radius: 100px 100px 20px 20px;
  }
  .tile-picture {
    height: 330px;
  }
  .bar-links {
    flex-wrap: wrap;
  }
}
header {
  border: 0;
}
.utility-links {
  display: none !important;
}
.browse-refine,
.checkrow,
.collection-fold,
.empty,
.food-option,
.group,
.inventory-category,
.notice,
.panel,
.service,
.toolbox,
.upgrade-box,
footer {
  border-color: var(--edge);
}
.button,
.collection-chips a,
.collection-chips button,
button {
  border-color: var(--edge);
  border-radius: 14px;
}
.button.primary,
.collection-chips .selected,
.collection-switch .selected,
.primary,
.tabs button.selected,
.tile-make {
  border-color: var(--accent);
}
.tile-save {
  border: 1px solid var(--border);
}
.browse-refine select,
.browse-search select,
.feedback-label select,
.host-selected input,
.pairing-controls select,
.planner-controls input,
.planner-controls select,
input,
select,
textarea {
  border-color: var(--edge) !important;
}
input::placeholder {
  opacity: 1;
}
input[type="checkbox"] {
  width: 21px !important;
  height: 21px !important;
  min-height: 21px !important;
  flex: 0 0 21px;
}
.checkrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.planner-controls .checkrow {
  flex-direction: row;
}
dialog {
  border-color: var(--edge);
  border-radius: 28px;
}
.close {
  border-radius: 50%;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.hero-pour {
  border-radius: 32px;
}
.primary-nav {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 6px;
  gap: 4px;
  box-shadow: 0 8px 28px var(--border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.primary-nav a {
  padding: 9px 18px;
  border-radius: 22px;
  transition:
    background 0.18s,
    color 0.18s;
}
.primary-nav a.active:after {
  display: none;
}
.primary-nav svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}
.primary-nav a:active {
  transform: scale(0.96);
}
@media (max-width: 700px) {
  header {
    padding: 24px 6% 16px;
  }
  main {
    padding-top: 12px;
  }
  body {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    height: 72px;
    padding: 6px;
    display: grid;
    gap: 4px;
    z-index: 30;
    border-radius: 30px;
    box-shadow:
      0 10px 40px var(--border),
      inset 0 1px 0 var(--border);
  }
  .primary-nav a {
    padding: 6px 2px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    border-radius: 24px;
  }
  .primary-nav svg {
    width: 24px;
    height: 24px;
  }
  .hero-pour {
    border-radius: 26px;
  }
  #toast {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
  footer {
    padding-bottom: 20px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .primary-nav {
    backdrop-filter: none;
  }
}
.upgrade-box .upgrade-box {
  padding: 20px 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  margin: 24px 0;
}
.offscript-brand {
  gap: 12px;
}
.brand-symbol {
  width: 54px;
  height: 58px;
  object-fit: contain;
}
.brand-type > span {
  display: block;
  margin-top: 9px;
}
.button.primary,
.collection-chips .selected,
.collection-switch .selected,
.primary,
.tile-make {
  border-color: var(--border);
}
.hero-pour {
  border-radius: 28px 10px;
}
footer {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
footer p {
  margin: 6px 0;
}
footer > span {
  margin-left: auto;
  max-width: 310px;
}
@media (max-width: 700px) {
  .brand-symbol {
    width: 42px;
    height: 48px;
  }
  footer {
    gap: 22px;
  }
  footer > span {
    margin-left: 0;
    max-width: none;
  }
}
.group-card {
  display: flex;
  flex-direction: column;
}
.group-card > .button {
  align-self: flex-start;
  margin-top: auto;
}
.food-variations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.food-variations article {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.food-variations .actions {
  gap: 12px;
}
.menu-pair-button {
  margin-top: 20px;
}
.group-more {
  display: block;
  margin-top: 18px;
}
.inspiration-next {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 35px;
}
.host-selected select {
  max-width: 260px;
}
.group-grid {
  margin-bottom: 30px;
}
@media (max-width: 650px) {
  .food-variations {
    grid-template-columns: 1fr;
  }
  .host-selected,
  .section-top {
    flex-wrap: wrap;
  }
  .host-selected select {
    width: 100%;
    max-width: none;
  }
}
.home-story-feature {
  overflow: hidden;
  border-radius: 24px;
  min-width: 0;
}
.home-story-photo {
  display: block;
  height: 265px;
  overflow: hidden;
}
.home-story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-story-body {
  padding: 24px;
}
.home-story-body h2 {
  margin: 9px 0 10px;
}
.home-story-body p {
  margin: 0 0 18px;
}
.home-story-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-story-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  white-space: nowrap;
  text-align: center;
  padding: 12px;
}
.journey-hero {
  margin-bottom: 0;
  padding-bottom: 24px;
}
.journey-learn {
  padding: 24px 0;
}
#recipebody #addmissing,
#recipebody #recipe-pair-more,
#recipebody .recipe-save-actions > button,
#recipebody .recipe-save-actions > p:first-of-type > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
}
#recipebody .recipe-save-actions > p:first-of-type {
  margin: 0;
}
#recipebody #recipe-pair-more {
  margin-top: 10px;
}
.recipe-context-links p {
  margin: 9px 0;
}
@media (max-width: 600px) {
  .home-story-photo {
    height: 220px;
  }
  .home-story-body {
    padding: 20px;
  }
  .home-story-actions .button {
    flex-basis: 100%;
  }
  .journey-hero {
    margin-bottom: 0;
    padding-bottom: 18px;
  }
  .journey-learn {
    padding: 20px 0;
  }
}
header {
  gap: 16px;
}
.header-story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 24px;
  margin-left: auto;
  white-space: nowrap;
}
.header-story-link span {
  display: inline-block;
}
footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(220px, 0.8fr);
  gap: 28px;
  align-items: start;
  text-align: left;
  max-width: 1500px;
  padding: 25px 5% 35px;
}
.footer-brand {
  min-width: 0;
  text-align: left;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.footer-brand-link .brand-symbol {
  width: 48px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand-link small,
.footer-brand-link strong {
  display: block;
}
.footer-brand-link small {
  margin-top: 7px;
}
.footer-brand p {
  margin: 11px 0 0;
}
.footer-story-link {
  align-self: center;
  white-space: nowrap;
}
footer .footer-storage {
  justify-self: end;
  max-width: 255px;
  margin: 0;
  text-align: left;
}
.about-upcoming {
  max-width: 800px;
  margin: 22px 0 42px;
  border-radius: var(--radius);
  padding: 18px 24px;
}
.about-upcoming summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  min-height: 50px;
}
.about-upcoming summary::-webkit-details-marker {
  display: none;
}
.about-upcoming summary .eyebrow,
.about-upcoming summary strong {
  grid-column: 1;
}
.about-upcoming-icon {
  grid-column: 2;
  grid-row: 1/3;
}
.about-upcoming[open] .about-upcoming-icon {
  transform: rotate(45deg);
}
.about-upcoming p {
  margin: 16px 0 3px;
  max-width: 650px;
}
@media (max-width: 700px) {
  header {
    gap: 10px;
  }
  .header-story-link {
    padding: 9px 12px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: start;
    margin: 0 6%;
    padding: 25px 0 35px;
  }
  footer .footer-storage {
    justify-self: start;
    max-width: 440px;
  }
  .footer-story-link {
    align-self: start;
  }
  .footer-brand-link .brand-symbol {
    width: 42px;
    height: 48px;
  }
  .about-upcoming {
    padding: 17px 20px;
  }
}
@media (max-width: 520px) {
  footer {
    padding-bottom: 100px;
  }
}
.prep-stage,
.tile-picture {
  position: relative;
}
.prep-guide {
  margin: 24px 0;
  padding: 20px;
}
.prep-guide-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.prep-stage {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.prep-stage svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520/320;
}
.prep-step-text {
  max-width: 620px;
  min-height: 100px;
  padding: 16px 4px 8px;
}
.prep-step-text p {
  margin: 7px 0 0;
}
.prep-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.prep-controls button {
  min-height: 44px;
  padding: 10px 8px;
}
.prep-variant {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.prep-variant button {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 100px;
}
.prep-variant span {
  flex: 1;
  min-width: 150px;
}
@media (max-width: 600px) {
  .prep-guide {
    padding: 14px;
    margin: 20px 0;
  }
  .prep-step-text {
    min-height: 122px;
  }
  .prep-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#recipe {
  overflow-y: auto;
  max-height: calc(min(90dvh, 100dvh - 24px));
  overscroll-behavior: contain;
}
#recipe > .close {
  position: sticky;
  top: 8px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0 0 -48px auto;
  z-index: 50;
}
#recipebody {
  padding-top: 54px;
}
.recipe-exit-bottom {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 32px 0 8px;
}
.hero-start {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 65px;
  margin: 12px 0 23px;
  padding: 18px 24px !important;
  border-radius: 16px;
}
.home-secondary {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.journey-learn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.journey-learn p {
  max-width: 470px;
}
.recipe-save-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.recipe-save-actions > h3 {
  display: none;
}
.lesson-disclosure small {
  display: block;
  margin-top: 7px;
}
.learn-tabs {
  margin: 28px 0;
}
.journey-hero {
  margin-bottom: 45px;
}
@media (max-width: 650px) {
  .journey-learn {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .hero-start {
    width: 100%;
    max-width: 340px;
  }
  .home-secondary {
    gap: 15px 24px;
  }
  .recipe-save-actions {
    gap: 8px;
  }
}
.browse-refine {
  margin-bottom: 12px;
}
.browse-refine summary {
  padding: 12px 0;
}
.recipe-focused > h3 {
  margin: 24px 0 12px;
}
.recipe-focused .recipe-description {
  margin: 0 0 16px;
}
.recipe-focused .recipe-disclosure {
  padding: 0;
  margin: 0;
  border-width: 0 0 1px;
  border-style: solid;
}
.recipe-focused .recipe-disclosure > summary {
  padding: 16px 0;
  cursor: pointer;
}
.recipe-focused .recipe-disclosure > .upgrade-box {
  padding: 0;
  margin: 8px 0 20px;
  border: 0;
}
.recipe-focused .recipe-disclosure .eyebrow {
  display: none;
}
.recipe-focused .recipe-art {
  height: 240px;
  margin: 8px 0;
}
.recipe-focused .recipe-tip {
  padding: 0 0 0 16px;
  margin: 24px 0;
  border-left: 2px solid;
}
.recipe-focused .recipe-equipment {
  margin: 16px 0;
}
.recipe-focused .prep-guide {
  padding: 0;
  margin: 28px 0 16px;
  border: 0;
  scroll-margin-top: 24px;
}
.recipe-focused .prep-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}
.recipe-focused .prep-controls button {
  min-width: 44px;
  padding: 8px 12px;
}
.recipe-focused .prep-controls .prep-step-number {
  min-width: 48px;
  text-align: center;
}
.recipe-focused .prep-step-text {
  padding: 8px 0 16px;
}
.recipe-focused .prep-variant {
  gap: 8px;
}
.recipe-focused .recipe-save-actions {
  margin: 0 0 8px;
}
.drink-tile .tile-body {
  padding: 16px 0;
}
.drink-tile .tile-actions {
  display: block;
}
.drink-tile .tile-make {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  width: 100%;
}
.recipe-focused .recipe-art {
  height: auto;
  max-height: none;
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}
.recipe-focused .recipe-art img {
  object-fit: cover;
  display: block;
  height: auto;
  max-height: 440px;
}
.card-art img,
.tile-picture img {
  object-fit: contain !important;
  object-position: center;
}
.recipe-focused .prep-guide-head {
  align-items: center;
  margin-bottom: 16px;
}
#recipe[open],
.recipe-focused .prep-scene {
  overflow: hidden;
}
.recipe-focused .prep-step-text {
  padding: 24px 24px 8px;
  min-height: 132px;
}
.recipe-focused .prep-stage {
  max-width: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.recipe-focused .prep-stage svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 36/35;
}
.recipe-focused .prep-controls {
  padding: 8px 16px;
  justify-content: space-between;
}
.recipe-focused .prep-controls [data-prep-control="play"] {
  min-width: 110px;
}
.mix-progress {
  display: block;
  width: 100%;
  height: 2px;
  border: 0;
}
@media (max-width: 600px) {
  .recipe-focused .prep-step-text {
    padding: 18px 16px 0;
    min-height: 156px;
  }
  .recipe-focused .recipe-art img {
    max-height: 360px;
  }
}
#recipe[open] {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
}
#recipe > .close {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 0 0 auto;
}
#recipebody {
  overflow-y: auto;
  min-height: 0;
  padding-top: 8px;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scroll-padding-top: 8px;
}
.about-story {
  max-width: 720px;
  padding: 0 0 40px;
}
.about-story > p {
  margin: 0 0 16px;
}
.lede:has(+ .about-story) {
  margin-bottom: 24px;
}
.about-story > h2 {
  margin: 40px 0 16px;
}
.about-story > .actions {
  margin-top: 32px;
}
.plan-choose {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.plan-choose .host-options {
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.plan-choose .host-option {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 20px 0;
}
.plan-choose .host-thumb {
  width: 64px;
  height: 80px;
}
.plan-choose .host-option p,
.plan-food-inline p {
  margin: 8px 0;
}
.plan-food-inline {
  flex-basis: 100%;
  width: 100%;
  grid-column: 1/-1;
}
.plan-food-inline select,
.unpaired-food select {
  width: 100%;
  margin-top: 8px;
}
.plan-food-inline label,
.unpaired-food label {
  display: block;
}
.host-selected {
  flex-wrap: wrap;
}
.unpaired-food {
  margin-top: 24px;
}
.plan-choose #host-more {
  margin-top: 16px;
}
@media (max-width: 700px) {
  .plan-choose .host-options {
    grid-template-columns: 1fr;
  }
  .plan-choose .host-option {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .plan-choose .host-thumb {
    width: 48px;
    height: 64px;
  }
  .plan-choose .host-option button {
    padding: 10px;
  }
  .about-story > h2 {
    margin-top: 32px;
  }
}
.plan-return {
  margin: 24px 0;
}
#bar-matches,
#plan {
  scroll-margin-top: 24px;
}
.plan-choose > .planner-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.plan-choose > .planner-controls label,
.starter-drink > div {
  min-width: 0;
}
@media (max-width: 700px) {
  .plan-choose > .planner-controls {
    grid-template-columns: 1fr;
  }
}
.recipe-focused .prep-stage {
  max-width: 440px;
}
.host-selected > .plan-food-inline {
  flex: 0 0 100%;
  width: 100%;
}
.host-selected .plan-food-inline label {
  width: 100%;
}
.host-selected > .plan-food-inline > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.host-selected > .plan-food-inline > p.muted {
  display: block;
}
.plan-prep-notes {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.learn-sources > summary,
.plan-prep-notes > summary,
.prep-options summary,
.prep-read-all summary {
  min-height: 44px;
  cursor: pointer;
}
.plan-prep-notes h3 {
  margin-top: 24px;
}
.learn-article,
.learn-directory,
.learn-start {
  max-width: 820px;
}
.learn-start {
  padding: 24px 0 32px;
}
.learn-start p {
  max-width: 620px;
}
.learn-directory > h2 {
  margin: 24px 0 16px;
}
.learn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.learn-row small,
.learn-row strong {
  display: block;
}
.learn-row small {
  margin-top: 8px;
  max-width: 650px;
}
.learn-experiments-title {
  padding-top: 32px;
}
.learn-article > section {
  margin: 32px 0;
}
.learn-article h2 {
  margin-bottom: 16px;
}
.learn-article ol {
  padding-left: 24px;
}
.learn-article li {
  padding-left: 8px;
  margin-bottom: 20px;
}
.learn-watch {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 32px 0;
}
.learn-watch p {
  margin-bottom: 0;
}
.learn-practice {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.learn-next,
.learn-sources {
  padding: 24px 0;
}
.learn-tabs a {
  flex: 0 1 auto;
}
@media (max-width: 600px) {
  .learn-row {
    padding: 20px 0;
    gap: 16px;
  }
  .learn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .learn-tabs a {
    padding: 12px;
  }
  .learn-article .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .learn-article .actions a {
    width: 100%;
  }
}
.prep-context {
  margin: 8px 0 16px;
}
.prep-read-all {
  margin-top: 16px;
}
.prep-read-all summary {
  padding: 12px 0;
}
.prep-read-all ol {
  padding-left: 24px;
}
.prep-read-all li {
  margin-bottom: 20px;
}
.prep-read-all li p {
  margin: 6px 0;
}
.bar-workflow,
.launch-links,
.plan-steps,
.prep-variant {
  flex-wrap: wrap;
}
.prep-variant label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.prep-variant input {
  min-height: 20px;
  width: 20px;
  height: 20px;
}
.prep-options {
  margin: 0 0 12px;
}
.prep-options summary {
  padding: 10px 0;
}
.prep-context {
  margin: 4px 0 8px;
}
.recipe-focused .prep-step-text {
  min-height: 0;
  padding: 16px;
}
.recipe-focused .prep-step-text p {
  margin: 8px 0 0;
}
@media (max-width: 600px) {
  .recipe-focused .prep-stage svg {
    height: 250px;
    aspect-ratio: auto;
  }
  .prep-variant {
    gap: 8px;
    margin: 0 0 12px;
  }
}
.context-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.plan-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 32px;
}
.plan-steps > button,
.plan-steps > span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
}
.plan-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.starter-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.starter-paths > section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.starter-drink {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.starter-drink p {
  margin: 8px 0;
}
.starter-drink summary,
.starter-grow > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
}
.starter-grow {
  margin: 32px 0;
}
.home-first-bar {
  margin: 24px 0;
}
.journey-hero:has(+ .home-first-bar) {
  grid-template-columns: 1fr;
}
.home-first-bar + .home-story-feature {
  width: 100%;
  margin: 32px 0;
}
.starter-drink .button,
.starter-drink button {
  flex-shrink: 0;
}
#bar-matches {
  margin-top: 32px;
}
@media (max-width: 600px) {
  .starter-paths {
    grid-template-columns: 1fr;
  }
  .starter-drink {
    flex-direction: column;
    gap: 12px;
  }
  .home-first-bar .actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
.flow-foods,
.flow-intent {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
.flow-foods legend,
.flow-intent legend {
  padding: 0;
  margin-bottom: 12px;
}
.flow-food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.flow-food-grid .checkrow,
.personal-fields fieldset {
  min-width: 0;
}
.flow-pair-group {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.flow-pair-group .host-options {
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.flow-pair-group .host-option,
.plan-choose .flow-pair-group .host-option {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
}
.flow-pair-group .host-option > button {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
}
.flow-pair-group .host-thumb {
  width: 64px;
  height: 80px;
}
#intent-content input[type="search"],
#intent-content select {
  width: 100%;
}
#intent-content > label {
  display: block;
  max-width: 420px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .flow-food-grid,
  .flow-pair-group .host-options,
  .plan-choose .flow-pair-group .host-options {
    grid-template-columns: 1fr;
  }
  .flow-intent .collection-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .flow-intent button {
    min-width: 0;
    white-space: normal;
  }
}
.recipe-focused .prep-guide .prep-step-text {
  min-height: 0;
}
.recipe-focused .prep-guide .prep-stage svg {
  height: 300px;
}
@media (max-width: 600px) {
  .recipe-focused .prep-guide .prep-stage svg {
    height: calc(clamp(190px, 34dvh, 270px));
  }
  .recipe-focused .prep-controls {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}
.recipe-focused .prep-scene {
  overflow: clip;
}
@media (max-width: 360px) {
  .recipe-focused .prep-guide .prep-stage svg {
    height: 190px;
  }
  .recipe-focused .prep-step-text {
    padding: 12px;
  }
}
.drink-constraints {
  margin: 16px 0 24px;
  padding: 16px;
}
.personal-fields {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.allergen-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.personal-editor form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.personal-editor label {
  display: grid;
  gap: 6px;
}
.personal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.personal-row > label:first-child.checkrow {
  grid-column: 1/-1;
  display: flex;
}
.personal-editor input,
.personal-editor select,
.personal-editor textarea {
  width: 100%;
  min-width: 0;
}
.personal-editor input[type="checkbox"] {
  width: auto;
}
.personal-notes {
  white-space: pre-wrap;
}
.personal-saved {
  padding: 16px;
  margin: 16px 0;
}
.personal-library {
  display: grid;
  gap: 16px;
}
.personal-plan-warning,
.planned-version {
  grid-column: 1/-1;
  width: 100%;
}
.personal-editor .checkrow {
  display: flex;
}
.personal-recipe {
  padding: 0;
  margin: 12px 0 20px;
}
.personal-editor summary {
  overflow-wrap: anywhere;
}
.swap-options {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}
.swap-options li {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}
.swap-options p {
  margin: 8px 0;
}
.bar-workflow,
.personal-editor {
  scroll-margin-top: 16px;
}
.recipe-focused .personal-recipe {
  margin: 16px 0 0;
}
.recipe-focused .recipe-disclosure .upgrade-box > h3:first-of-type,
.recipe-personal-anchor {
  display: none;
}
.recipe-focused .recipe-disclosure h3,
.recipe-focused .recipe-disclosure p {
  margin: 12px 0;
}
.recipe-focused .recipe-disclosure .recipe-tip {
  padding: 0;
  border: 0;
  margin: 12px 0;
}
.recipe-focused .recipe-disclosure > summary {
  padding: 12px 0;
  min-height: 48px;
}
.recipe-focused .personal-guidance {
  margin: 12px 0;
}
.recipe-focused .personal-guidance > summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
.recipe-focused .personal-row {
  gap: 8px;
}
.recipe-focused .ingredients li {
  padding: 12px 0;
}
.recipe-focused .recipe-exit-bottom {
  margin-top: 20px;
}
.bar-help > summary,
.recipe-focused .personal-edit-form > summary {
  padding: 12px 0;
  min-height: 48px;
  cursor: pointer;
}
.bar-workflow {
  display: flex;
  gap: 10px;
  margin: 24px 0 12px;
}
.bar-workflow button {
  flex: 1;
  min-width: 140px;
  min-height: 48px;
}
.bar-help {
  margin: 24px 0;
}
.bar-match-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.bar-match-card[hidden] {
  display: none;
}
.bar-match-art {
  height: 90px;
  overflow: hidden;
  border-radius: 12px;
}
.bar-match-art img,
.bar-match-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bar-match-card h4 {
  margin: 0 0 6px;
}
.bar-match-card p {
  margin: 6px 0;
}
.bar-match-card button {
  display: block;
  margin-top: 10px;
}
.bar-match-group {
  margin: 24px 0;
}
.bar-match-group > button {
  margin-top: 16px;
}
.bar-start-link {
  margin-top: 24px;
}
#bar-results #bar-matches {
  margin-top: 16px;
}
#bar-ingredients[hidden],
#bar-results[hidden] {
  display: none;
}
.drinks-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}
.drinks-entry button {
  max-width: 75%;
  text-align: left;
}
#ingredient-picker {
  width: calc(min(620px, 100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
}
#ingredient-picker[open] {
  display: flex;
  flex-direction: column;
}
.ingredient-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}
.ingredient-picker-head h2 {
  margin: 0;
}
.ingredient-picker-head button {
  min-width: 44px;
  min-height: 44px;
}
.ingredient-picker-body {
  overflow: auto;
  padding: 0 24px;
  overscroll-behavior: contain;
}
.ingredient-picker-body > input,
.ingredient-picker-foot button {
  width: 100%;
}
.ingredient-picker-body > .checkrow {
  margin: 14px 0;
}
.ingredient-picker-foot {
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.ingredient-picker-foot p {
  margin: 0 0 10px;
}
.ingredient-owned {
  margin-top: 6px;
  min-height: 36px;
}
@media (max-width: 700px) {
  .primary-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bar-workflow {
    display: flex;
    gap: 8px;
  }
  .bar-workflow button {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
  }
  .drinks-entry {
    gap: 8px;
  }
}
.ingredient-views {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ingredient-views button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
}
.inline-food label {
  display: grid;
  gap: 8px;
}
.inline-food select {
  width: 100%;
  min-width: 0;
}
.inline-food p {
  margin: 12px 0;
}
.primary-nav a {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.inline-food .inline-food-choices {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.inline-food .inline-food-choices .checkrow {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.drink-food-match {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.drink-food-match h4,
.drink-food-match p {
  margin: 0 0 10px;
}
.drink-food-match button {
  max-width: 100%;
  white-space: normal;
}
.header-utilities {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-utilities .header-story-link {
  margin: 0;
  padding: 0;
  min-height: 44px;
  border-radius: 0;
}
.language-control {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
  border-radius: 8px;
  flex-shrink: 0;
}
.language-control > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.language-control > .language-chevron {
  width: 12px;
  height: 12px;
}
#language-switch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
@media (min-width: 1101px) {
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
  }
  header .brand {
    grid-column: 1;
    min-width: 0;
  }
  header .brand-type {
    min-width: 0;
  }
  header .brand-type > span {
    white-space: normal;
  }
  header .primary-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    box-shadow: none;
  }
  header .header-utilities {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }
}
@media (max-width: 1100px) and (min-width: 701px) {
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
  }
  header .brand {
    min-width: 0;
  }
  header .brand-type > span {
    white-space: normal;
  }
  header .header-utilities {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }
  header .primary-nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    justify-content: center;
    margin: 0;
    box-shadow: none;
  }
}
@media (max-width: 700px) {
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  header .brand {
    min-width: 0;
  }
  header .brand-type > span {
    white-space: normal;
  }
  header .header-utilities {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 16px;
  }
  header .header-story-link {
    padding: 0;
  }
}
.recipe-focused .prep-guide .prep-stage svg {
  height: auto;
}
.launch-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 48px;
}
.launch-page h2 {
  margin-top: 32px;
}
.launch-page li {
  margin: 12px 0;
}
.launch-page label {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.launch-page textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 14px;
}
.launch-page input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.launch-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.launch-page .analytics-choice {
  display: flex;
  align-items: center;
  gap: 12px;
}
.launch-page label {
  min-width: 0;
}
#recipe {
  width: min(960px, 100% - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 20px;
}
.recipe-focused .recipe-art {
  height: calc(clamp(220px, 40svh, 440px));
}
.recipe-focused .recipe-art img {
  height: 100%;
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}
.recipe-focused .prep-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
}
.recipe-focused .prep-guide .prep-step-text {
  max-width: none;
  min-width: 0;
  padding: 16px 20px 8px;
}
.recipe-focused .prep-guide .prep-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  max-width: none;
  width: 100%;
  height: var(--prep-stage-height, 300px);
  padding: 8px 12px 0;
  margin: 0;
  overflow: visible;
}
.recipe-focused .prep-guide .prep-stage svg {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
}
.prep-layer-key {
  display: flex;
  justify-content: center;
  align-content: start;
  flex-wrap: wrap;
  gap: 4px 14px;
  list-style: none;
  padding: 8px 4px;
  margin: 0;
}
.prep-layer-key li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.prep-swatch {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.recipe-focused .prep-controls {
  grid-column: 1/-1;
  position: static;
  padding: 6px 12px;
  margin: 0;
  min-height: 56px;
}
.recipe-focused .mix-progress {
  grid-column: 1/-1;
  margin: 0;
}
@media (max-width: 374px) {
  #recipe {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    padding: 10px;
  }
  .recipe-focused .prep-guide .prep-step-text {
    padding: 12px 12px 4px;
  }
  .recipe-focused .prep-guide .prep-stage {
    padding: 4px 4px 0;
  }
  .recipe-focused .prep-controls {
    padding: 4px 8px;
    min-height: 52px;
  }
}
@media (min-width: 375px) and (max-width: 767px) {
  #recipe {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }
  .recipe-focused .prep-guide .prep-step-text {
    padding: 16px 16px 8px;
  }
}
@media (min-width: 768px) {
  .recipe-focused .prep-scene {
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  }
  .recipe-focused .prep-guide .prep-step-text {
    padding: 28px 24px;
    align-self: center;
  }
  .recipe-focused .prep-guide .prep-stage {
    padding: 16px 12px 0;
  }
  .recipe-focused .prep-controls {
    padding: 8px 20px;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  #recipe {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 12px);
    padding: 8px;
  }
  .recipe-focused .prep-scene {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .recipe-focused .prep-guide .prep-step-text {
    padding: 10px 12px;
  }
  .recipe-focused .prep-controls {
    padding: 4px 12px;
    min-height: 52px;
  }
}
@media (max-width: 700px) {
  .has-food-pairings .drink-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.food-category-choice,
.plan-food-heading strong {
  min-width: 0;
}
.food-category-choice > .checkrow {
  margin: 0;
  min-height: 48px;
}
.inline-food-choices .food-category-choice:last-child > .checkrow {
  border-bottom: 0;
}
.food-category-refine {
  margin: 0 0 16px 32px;
  padding: 0;
}
.food-category-refine[hidden] {
  display: none;
}
.food-refine-fields {
  display: grid;
  gap: 16px;
  padding: 12px 0;
}
.food-refine-fields label {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.food-refine-fields select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.food-refine-fields .food-refine-help {
  margin: 0;
  display: grid;
  gap: 4px;
}
.food-detail-label {
  margin: 4px 0 12px;
}
.flow-food-grid,
.inline-food-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
@media (min-width: 900px) {
  .flow-food-grid,
  .inline-food-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
  }
  .inline-food-choices .food-category-choice:nth-last-child(-n + 2) > .checkrow {
    border-bottom: 0;
  }
}
.plan-food-entry {
  padding: 12px 0;
}
.plan-food-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-food-editor {
  margin-top: 12px;
}
.plan-food-editor summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  align-content: center;
}
.plan-food-form {
  padding: 12px 0;
  max-width: 640px;
}
.plan-food-form select {
  max-width: 100%;
  min-width: 0;
}
.plan-food-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.plan-food-actions button {
  max-width: 100%;
  white-space: normal;
  min-height: 44px;
}
.plan-food-move {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.plan-food-editor .food-refine-fields:empty {
  display: none;
}
.drinks-entry {
  margin: 12px 0;
  gap: 16px;
}
.bar-workflow {
  margin: 12px 0;
}
.browse-search {
  margin: 16px 0;
}
.drinks-refinements {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.drinks-refinements > .browse-refine {
  flex: 1;
  min-width: 240px;
  margin: 0;
}
.drinks-refinements details[open] {
  flex-basis: 100%;
}
#browse-count {
  margin: 8px 0;
}
.collection-section {
  margin-top: 16px;
}
.tile-picture {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.tile-picture > a {
  height: 100%;
  display: block;
}
.card-art img,
.tile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-secondary a,
.home-story-body > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.journey-hero .hero-pour {
  max-height: 420px;
}
.tile-actions {
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px) {
  .drinks-refinements {
    gap: 0;
  }
  .drinks-refinements > .browse-refine {
    min-width: 0;
    flex-basis: 100%;
  }
  .journey-hero .hero-pour {
    max-height: 260px;
  }
  .bar-workflow button {
    min-height: 44px;
  }
  .browse-search,
  .drinks-entry {
    margin: 8px 0;
  }
  .drinks-refinements summary {
    padding: 10px 0;
  }
  .collection-fold > summary {
    padding: 12px 0;
  }
}
.recipe-details-grid {
  display: flex;
  flex-direction: column;
}
.recipe-details-grid > .prep-guide {
  order: -1;
}
.recipe-ingredients {
  min-width: 0;
}
@media (min-width: 1200px) {
  #recipe {
    width: calc(min(1120px, 100vw - 48px));
    max-width: 1120px;
  }
  .recipe-details-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
  }
  .recipe-details-grid > .prep-guide {
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }
  .recipe-ingredients {
    grid-column: 1;
    grid-row: 1;
  }
  .recipe-details-grid .prep-scene {
    grid-template-columns: 1fr;
  }
  .recipe-details-grid .prep-stage {
    grid-column: 1;
  }
  .recipe-details-grid .prep-step-text {
    padding: 16px;
  }
}
.browse-search {
  grid-template-columns: 1fr;
}
.drinks-entry {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.drinks-entry button {
  margin-right: auto;
}
.drinks-entry a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.drinks-refinements summary {
  min-height: 44px;
}
@media (max-width: 600px) {
  .drinks-refinements {
    gap: 12px;
  }
  .drinks-refinements > .browse-refine {
    flex-basis: calc(50% - 6px);
  }
  .drinks-refinements > details[open] {
    flex-basis: 100%;
  }
  .drinks-entry {
    gap: 4px 16px;
  }
  .drinks-entry button {
    max-width: none;
  }
  .drinks-entry a {
    flex: 1;
  }
  .browse-search {
    display: block;
  }
  .browse-search input {
    width: 100%;
  }
}
#app.drinks-page {
  padding-top: 16px;
}
#app.drinks-page > h1 {
  margin: 8px 0 16px;
}
.journey-hero:has(+ .home-first-bar) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.journey-hero .hero-pour {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: none;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}
.journey-hero .hero-pour img {
  height: 100%;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.journey-hero .hero-pour > span {
  position: static;
  display: block;
  padding: 16px 20px;
  min-height: 52px;
}
@media (max-width: 700px) {
  .journey-hero:has(+ .home-first-bar) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .journey-hero .hero-pour {
    max-height: none;
  }
  .journey-hero .hero-pour img {
    aspect-ratio: 4/3;
  }
  .journey-hero {
    margin-bottom: 28px;
  }
  header .brand {
    max-width: 100%;
  }
  main {
    padding-bottom: 36px;
  }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 700px) {
    header {
      padding-top: max(24px, env(safe-area-inset-top));
    }
  }
}

.language-placeholder{display:flex;align-items:center;justify-content:center;width:76px;min-height:44px}
/* Card aspect ratio owns its height, including older large-image layouts. */
.tile-picture{height:auto;min-height:0;aspect-ratio:4/3}
.tile-picture img{display:block}
.journey-hero .hero-pour{height:auto;grid-template-rows:auto auto}

/* Desktop editorial layout: image and copy sit alongside one another. */
@media (min-width: 801px) {
  .home-story-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }
  .home-story-photo { height: 100%; min-height: 330px; }
  .home-story-body { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
  .home-story-body p { max-width: 58ch; }
  .home-story-actions { margin-top: 8px; }
  .home-story-actions .button { flex: 0 1 auto; padding: 12px 20px; }
  .home-first-bar + .home-story-feature { margin-bottom: 12px; }
  footer {
    width: 100%; max-width: 1360px; margin: 0 auto;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 24px 40px; padding-top: 32px; padding-bottom: 32px;
  }
  .footer-brand p { max-width: 40ch; }
  .footer-story-link { align-self: start; white-space: normal; margin-top: 12px; }
  footer .footer-storage { max-width: 30ch; justify-self: end; margin-top: 12px; }
  footer .launch-links { grid-column: 1 / -1; justify-content: flex-end; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }
}

/* Home and learning: intentional wide-screen composition, natural mobile flow. */
@media (min-width: 801px) {
  .journey-hero:has(+ .home-first-bar) { gap: clamp(32px, 5vw, 72px); padding-bottom: 48px; }
  .journey-hero > div > p { max-width: 42ch; }
  .journey-hero .hero-start { width: auto; min-width: 240px; }
  .journey-hero .home-secondary { flex-wrap: wrap; gap: 20px 28px; }
  .home-first-bar { display: block; padding: 48px 0; }
  .home-first-bar > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 64px; align-items: start; }
  .home-first-bar .eyebrow { grid-column: 1; }
  .home-first-bar h2 { grid-column: 1; grid-row: 2 / 4; margin: 0; max-width: 12ch; }
  .home-first-bar p { grid-column: 2; grid-row: 1 / 3; max-width: 54ch; margin: 0; }
  .home-first-bar .actions { grid-column: 2; margin-top: 8px; }
  .learn-hub { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.7fr); gap: 48px; align-items: start; padding: 24px 0 48px; }
  .learn-hub > .learn-start { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
  .learn-hub .learn-start .button { white-space: normal; text-align: left; }
  .learn-directory { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .learn-directory > h2, .learn-directory > p { grid-column: 1 / -1; }
  .learn-directory .learn-row { align-items: start; padding: 24px 0; }
  .learn-article { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 24px 64px; align-items: start; }
  .learn-article .learn-why { grid-column: 1 / -1; max-width: 72ch; }
  .learn-article > section { margin: 0; }
  .learn-article .learn-method { grid-column: 1; grid-row: 2 / 4; max-width: 68ch; }
  .learn-article .learn-equipment { grid-column: 2; grid-row: 2; }
  .learn-article .learn-watch { grid-column: 2; grid-row: 3; margin: 0; }
  .learn-article .learn-practice { grid-column: 1 / -1; padding-top: 32px; }
  .learn-article .learn-practice p { max-width: 72ch; }
  .learn-article .learn-next, .learn-article .learn-sources { grid-column: 1 / -1; max-width: 72ch; width: 100%; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .story-grid .panel { display: flex; flex-direction: column; min-width: 0; padding: 28px; overflow: hidden; }
  .story-grid .story-photo { height: 260px; margin: -28px -28px 28px; flex-shrink: 0; }
  .story-grid .story-photo img { width: 100%; height: 100%; object-fit: cover; }
  .story-grid .panel > .button { align-self: flex-start; margin-top: auto; }
  .starter-paths { gap: 32px; }
  .starter-paths > section { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; }
  .starter-paths > section > p { max-width: 48ch; }
  .starter-paths > section > .button { margin-top: auto; }
}
@media (min-width: 801px) and (max-width: 1050px) {
  .learn-hub { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 32px; }
  .learn-directory { grid-template-columns: 1fr; }
}

.footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-contact a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 44px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .footer-contact { grid-template-columns: 1fr; } }

/* Homepage featured drinks: native horizontal swipe with fixed-width slides. */
.featured-drinks{min-width:0;width:100%;overflow:hidden}
.featured-track{display:flex;position:relative;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:var(--radius);overscroll-behavior-x:contain}
.featured-track::-webkit-scrollbar{display:none}
.featured-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column}
.featured-slide>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center}
.featured-caption{padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:1}
.featured-caption h2,.featured-caption p{margin:0}
.featured-caption .button{margin-top:auto}
.featured-dots{display:flex;justify-content:center;gap:4px;padding:8px 0}
.featured-dots button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0}
.featured-dots button span{display:block;width:8px;height:8px;border-radius:50%}
.featured-dots button[aria-pressed="true"] span{width:24px;border-radius:8px}

/* Manual carousel for the latest five stories on Home. */
.story-carousel{margin-block:32px}
.story-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box;margin:0}
.story-carousel .featured-dots{display:grid;grid-template-columns:repeat(5,minmax(0,44px));gap:0}
.story-carousel .featured-dots button{width:100%;min-width:0}

/* Stories have a persistent archive, separate from the learning directory. */
.stories-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.stories-heading h2{margin-bottom:0}
.home-stories{margin-top:40px}
.story-grid .story-photo{display:block}
.footer-stories-link{align-self:center}
@media(max-width:600px){.stories-heading{align-items:flex-start}.story-grid{grid-template-columns:minmax(0,1fr)}.footer-stories-link{align-self:flex-start}}

/* Shared editorial layout: fixed alignment, complete photography, no text clipping. */
footer {
  display: grid;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 5%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  justify-items: stretch;
}
footer > * { min-width: 0; }
.footer-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}
.footer-editorial a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: 0;
  min-height: 44px;
  white-space: normal;
}
footer .footer-storage {
  justify-self: stretch;
  align-self: start;
  max-width: 32ch;
  margin: 0;
  padding-top: 10px;
}
.footer-brand p { max-width: 36ch; }
footer .footer-contact {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 24px;
}
footer .footer-contact a { margin: 0; padding: 0; gap: 8px; }
footer .launch-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 24px;
  margin: 0;
  padding-top: 20px;
}
footer .launch-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.journey-hero > .featured-drinks { max-width: 520px; justify-self: end; }
.featured-caption { padding: 24px; gap: 12px; }
.featured-caption h2, .featured-caption p { max-width: 100%; }
.featured-caption .button { align-self: flex-start; }
.home-story-feature { border-radius: var(--radius); }
.home-story-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  align-self: center;
}
.home-story-photo img, .story-grid .story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.home-story-body { min-width: 0; padding: 32px; }
.home-story-actions .button { white-space: normal; }
.stories-heading { align-items: center; }
.stories-heading .eyebrow { display: block; margin-bottom: 8px; }
.stories-heading h2 { margin: 0; }
.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; align-items: stretch; }
.story-grid .panel { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px; gap: 16px; overflow: hidden; }
.story-grid .story-photo { display: block; width: 100%; height: auto; aspect-ratio: 4/3; flex-shrink: 0; margin: 0; border-radius: var(--radius-sm); }
.story-grid .panel > h2, .story-grid .panel > p { margin: 0; }
.story-grid .panel > .button { align-self: flex-start; justify-self: start; margin-top: auto; }
@supports(grid-template-rows: subgrid) {
  .story-grid .panel { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 16px; }
}
@media(max-width:800px) {
  .journey-hero > .featured-drinks { justify-self: center; max-width: 520px; }
  .home-story-body { padding: 24px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
}
@media(max-width:700px) {
  footer { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 6% calc(112px + env(safe-area-inset-bottom, 0px)); }
  .footer-editorial { gap: 4px; }
  footer .footer-storage { max-width: 44ch; padding: 0; }
  footer .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  footer .launch-links { gap: 8px 20px; }
  .story-grid .panel { padding: 20px; }
  .featured-caption { padding: 20px; }
}

/* Ingredient-match thumbnails use the same uncropped photo treatment. */
.bar-match-art img { object-fit: contain; object-position: center; }
