/* Festivaluke uses its supplied pink-and-blue identity on the selected
   Soft studio layout. Load after soft-studio.css. */
:root {
  --surface: #e8f5ff;
  --paper: #fffdfa;
  --ink: #201b20;
  --muted: #5f626a;
  --pink: #df2f68;
  --action: #c62259;
  --action-hover: #a51b49;
  --line: #cbdce6;
  --control-line: #8b9da9;
  --festival-blue: #d7eeff;
  background: var(--surface);
  color: var(--ink);
}

body { background: var(--surface); }
.screen { padding-inline: 26px; }
.eyebrow, .back, .close-flow, .text-button, .plain, .text-link,
.nav-link, .signin, .dock-caption, .pass-instruction,
.profile-options summary { color: var(--muted); }
.button.secondary { background: #ffffff55; border-color: var(--control-line); }
.button.secondary:hover:not(:disabled), .back:hover, .close-flow:hover { background: #ffffffa8; }
.question-art, .question-icon { background: #ffffffb3; border-color: var(--line); }
.segment { background: #ccdce5; }
.field input::placeholder { color: #70727b; }
.review-bar { background: #d7e8f2; color: #4d5b64; }

/* A recognisable festival entrance, with the user's copy intact. */
.welcome-top { display: flex; align-items: center; justify-content: center; min-height: 26px; }
.welcome-top p, .welcome-top .festival-date {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: .8125rem;
  line-height: 1.4;
}
.festival-logo { display: block; height: auto; object-fit: contain; }
.festival-hero {
  display: grid;
  place-items: center;
  width: min(100%, 290px);
  margin: 22px auto 0;
}
.festival-hero > .festival-logo { width: 100%; max-height: 201px; }
.welcome-copy { margin-top: 25px; }
.welcome-copy h1 { font-size: 2.25rem; line-height: 1.05; letter-spacing: -.045em; }
.welcome-message { margin: 13px 0 0; font-size: 1.0625rem; line-height: 1.45; }
.welcome-message .price-intro { white-space: nowrap; }
.welcome-screen .prices { gap: 8px; margin-top: 18px; }
.welcome-screen .prices li {
  flex: 1 1 0;
  padding: 12px 7px;
  border-color: #e1b4c4;
  background: #ffffff80;
  border-radius: 13px;
  color: #b52051;
  font-size: 1.45rem;
  white-space: nowrap;
}
.welcome-screen .prices small { color: #8b3e5a; }
.welcome-question { margin: 20px 0 0; font-size: 1.0625rem; line-height: 1.45; }
.welcome-screen .screen-actions { padding-top: 24px; }
.welcome-screen .screen-actions .button + .button { margin-top: 10px; }
.welcome-screen .button.secondary { min-height: 48px; padding-block: 11px; }

/* Public discovery is one landscape dish at a time. */
.browse-shell { max-width: 580px; }
.browse-header { gap: 12px; padding: 18px 24px 13px; }
.browse-header .brand img { width: 43px; }
.browse-header .nav { gap: 6px 14px; }
.browse-header .signin { border-color: #adbdc7; }
.browse-main { padding-top: 12px; }
.festival-heading { margin-bottom: 28px; }
.festival-heading > .festival-logo { width: min(100%, 209px); max-height: 146px; margin-inline: auto; }
.festival-date { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.festival-heading .festival-date { margin: 11px 0 21px; text-align: center; }
.festival-heading h1 { margin: 0; font-size: 1.8rem; line-height: 1.13; letter-spacing: -.035em; }
.food-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.food-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 4px 12px #203a4e08;
}
.food-card .photo { aspect-ratio: 3 / 2; border-radius: 19px 19px 0 0; background: #d3e3ed; }
.food-card .photo img { object-position: var(--photo-position, 50% 50%); }
.food-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; }
.food-card h3 { grid-column: 1; min-width: 0; margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-price { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--action); font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.card-price small { font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.card-restaurant { grid-column: 1; min-width: 0; margin: 0; font-size: .8125rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-restaurant strong { font-weight: 500; }
.card-area { color: var(--muted); }
.food-card:hover, .food-card:focus-visible { border-color: var(--action); }
.restaurant-info { margin: 5px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.dock { border-color: var(--line); background: #e8f5fff5; }
.dock-caption { font-size: .8125rem; }
.footer { color: var(--muted); }

/* A dish opens its restaurant location; the offer follows the place. */
.branch-page { padding: 0 24px 28px; }
.branch-page > .back { justify-content: flex-start; border-radius: 8px; margin-bottom: 13px; }
.branch-cover { width: 100%; aspect-ratio: 3 / 2; margin: 0; overflow: hidden; border-radius: 20px; background: #d7e5ee; }
.branch-cover img, img.branch-cover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
img.branch-cover { height: auto; aspect-ratio: 3 / 2; }
.branch-heading { margin: 24px 0 0; }
.branch-heading .eyebrow { margin-bottom: 9px; }
.branch-heading h1 { margin: 0; font-size: 2rem; line-height: 1.12; letter-spacing: -.04em; }
.branch-location { margin: 9px 0 0; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.branch-location a { color: inherit; }
.branch-description { margin: 15px 0 0; font-size: 1rem; line-height: 1.5; }
.branch-facts { margin-top: 18px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.branch-facts > summary { min-height: 44px; padding-block: 12px; cursor: pointer; }
.branch-facts p { margin: 8px 0 14px; }
.branch-facts dl { margin: 0; }
.branch-facts dl > div { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--line); }
.branch-facts dt { color: var(--muted); }
.branch-facts dd { margin: 0; color: var(--ink); }
.branch-facts a { display: inline-flex; align-items: center; min-height: 44px; }
.branch-dishes { margin-top: 31px; }
.branch-dishes > h2 { margin: 0 0 16px; font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.25; }
.branch-dish + .branch-dish { margin-top: 30px; }
.branch-dish > img, .branch-dish .dish-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--photo-position, center); border-radius: 18px; }
.branch-dish h2, .branch-dish h3 { margin: 15px 0 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; }
.branch-dish .price, .branch-dish .offer-price { margin: 11px 0 0; color: var(--action); font-size: 1.5rem; line-height: 1.25; font-weight: 500; }
.branch-dish .price small { font-size: .9375rem; font-weight: 400; }
.branch-dish p { margin-top: 11px; font-size: .9375rem; }
.branch-dish .dish-description { color: var(--muted); }
.branch-actions { margin-top: 27px; }
.branch-actions .button, .branch-actions .plain { width: 100%; }

/* A reduced, named version of the supplied pink-edged festival ticket.
   The original logo remains an image, with no recreated lettering. */
.festival-ticket {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 350px;
  margin-inline: auto;
  padding: 11px;
  border-radius: 25px;
  background: var(--pink);
  color: #170e0b;
  box-shadow: 0 12px 28px -21px #4c173b70;
}
.festival-ticket::before, .festival-ticket::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 74%;
  width: 19px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  pointer-events: none;
}
.festival-ticket::before { left: -10px; }
.festival-ticket::after { right: -10px; }
.ticket-inner { overflow: hidden; padding: 18px 16px 14px; border: 1px solid var(--pink); outline: 4px solid #fefbf0; outline-offset: -5px; border-radius: 19px; background: linear-gradient(#d7eeff, #f0f8ff); }
.ticket-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .6875rem; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.ticket-inner > .festival-logo { width: min(100%, 252px); max-height: 174px; margin: 17px auto 18px; }
.ticket-band { display: block; margin: 0 -16px; padding: 11px 15px; color: #fffdfa; background: var(--pink); text-align: center; font-size: 1.875rem; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.ticket-date { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.4; text-align: center; font-weight: 500; }
.ticket-owner { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 18px; padding: 17px 3px 0; border-top: 1px dashed var(--pink); text-align: center; }
.ticket-owner small, .ticket-owner > span { color: #5f5258; font-size: .625rem; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.ticket-owner strong { max-width: 100%; font-size: 1.3125rem; line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; }
.ticket-foot { margin: 18px 0 0; text-align: center; font-size: .875rem; line-height: 1.4; }
.festival-ticket .demo-stamp { margin-top: 12px; color: #665b61; font-size: .5625rem; line-height: 1.5; letter-spacing: .025em; text-align: center; }
.festival-ticket.compact { max-width: 252px; padding: 8px; border-radius: 20px; }
.compact .ticket-inner { padding: 13px 13px 12px; border-radius: 15px; }
.compact .ticket-meta { font-size: .5625rem; }
.compact .ticket-inner > .festival-logo { width: 166px; max-height: 106px; margin-block: 10px 12px; }
.compact .ticket-band { margin-inline: -13px; padding: 8px 12px; font-size: 1.375rem; }
.compact .ticket-date { margin-top: 10px; font-size: .8125rem; }
.compact .ticket-owner { gap: 3px; margin-top: 11px; padding-top: 10px; }
.compact .ticket-owner strong { font-size: 1.0625rem; }
.compact .demo-stamp { margin-top: 8px; }
.compact .ticket-foot { display: none; }
.issued-art { margin: 27px 0 28px; }
.issued-art > .festival-ticket { transform: rotate(-3deg); }
.issued-copy .eyebrow { margin-bottom: 9px; }
.issued-copy h1 { font-size: 2rem; }
.issued-copy .intro { margin-top: 13px; color: var(--muted); }
.issued-screen .screen-actions { padding-top: 25px; }
.question-art:has(.festival-ticket) { display: block; width: 100%; height: auto; padding: 0; margin: 0 0 25px; border: 0; background: none; }
.question-art .festival-ticket.compact { max-width: 216px; }
.question-art .compact .ticket-inner { padding-top: 11px; padding-bottom: 10px; }
.question-art .compact .ticket-inner > .festival-logo { width: 125px; max-height: 78px; margin-block: 8px 10px; }
.question-art .compact .ticket-band { padding-block: 7px; font-size: 1.2rem; }
.question-art .compact .ticket-date { margin-top: 8px; font-size: .75rem; }
.question-art .compact .ticket-owner { margin-top: 9px; padding-top: 8px; }
.question-art .compact .ticket-owner strong { font-size: 1rem; }
.question-art .compact .demo-stamp { margin-top: 6px; font-size: .5rem; }
.pass-screen > .festival-ticket { margin-top: 22px; }
.pass-screen .pass-instruction { text-align: center; margin-top: 20px; }
.pass-screen .pass-links { margin-top: 24px; }

/* A permanent profile home makes the pass easy to find on return. */
.profile-screen { padding-top: 0; }
.profile-screen > .browse-header { margin-inline: -26px; }
.profile-heading { margin: 27px 0 25px; }
.profile-heading .eyebrow { margin-bottom: 10px; }
.profile-heading h1 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.04em; }
.profile-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.profile-pass-link { display: block; padding: 21px 19px 0; border: 1px solid #c7d9e5; border-radius: 24px; background: #ffffff66; text-decoration: none; }
.profile-pass-link .festival-ticket.compact { max-width: 245px; }
.profile-pass-link .ticket-inner { background: linear-gradient(#d7eeff, #f0f8ff); }
.profile-pass-link .festival-ticket::before, .profile-pass-link .festival-ticket::after { background: #f2faff; }
.profile-pass-link .link-label, .profile-pass-link .profile-pass-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; color: var(--action); font-size: 1.0625rem; font-weight: 500; }
.profile-pass-link:hover { border-color: var(--action); }
.profile-menu { margin-top: 27px; border-top: 1px solid var(--line); }
.profile-menu > a, .profile-menu > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 57px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; font-size: .9375rem; line-height: 1.45; text-align: left; text-decoration: none; }
.profile-menu > a:hover, .profile-menu > button:hover { color: var(--action); }
.profile-menu small { color: var(--muted); }
.profile-screen .profile-options { margin-top: 22px; }
.profile-screen > .legal-links { margin-top: auto; padding-top: 20px; }
.profile-screen .optional-invitation { border: 0; margin-top: 0; }

/* Nine quick food choices, plus the visitor's own answer. */
.taste-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.taste { justify-content: center; align-items: center; min-height: 87px; gap: 7px; padding: 10px 3px 9px; border: 1px solid #c7d9e5; border-radius: 15px; background: #ffffffb3; font-size: .8125rem; }
.taste .taste-symbol { display: grid; place-items: center; height: 35px; width: 100%; font-size: 1.8rem; line-height: 1; }
.taste img { width: 100%; height: 54px; aspect-ratio: auto; object-fit: cover; border-radius: 9px; }
.taste:has(img) { padding: 5px 5px 8px; }
.taste[aria-pressed='true'] { border: 1px solid var(--action); background: #fff0f5; box-shadow: inset 0 0 0 1px var(--action); }
.taste[aria-pressed='true']::after { top: 5px; right: 5px; width: 18px; height: 18px; font-size: 11px; }
.selection-row { font-size: .75rem; }
.preference-status { margin-block: 5px 0; min-height: 1.4em; }
.custom-text.field { margin-top: 17px; }
.custom-text label { font-size: .875rem; }
.custom-text input, .custom-text textarea { min-height: 54px; }
.field textarea { display: block; width: 100%; min-width: 0; resize: vertical; padding: 14px 16px; border: 1px solid var(--control-line); border-radius: 16px; color: var(--ink); background: white; font: inherit; font-size: 1rem; line-height: 1.45; }

@media (max-width: 350px) {
  .screen { padding-inline: 22px; }
  .festival-hero { width: 245px; max-width: 100%; margin-top: 19px; }
  .festival-hero > .festival-logo { max-height: 165px; }
  .welcome-copy { margin-top: 21px; }
  .welcome-copy h1 { font-size: 2rem; }
  .welcome-message, .welcome-question { font-size: 1rem; }
  .welcome-screen .prices { gap: 6px; }
  .welcome-screen .prices li { font-size: 1.3rem; padding-inline: 4px; }
  .browse-header { padding-inline: 20px; gap: 10px; }
  .browse-header .brand img { width: 39px; }
  .browse-header .nav { gap: 5px 10px; }
  .browse-main, .branch-page { padding-inline: 20px; }
  .festival-heading > .festival-logo { width: 187px; max-height: 130px; }
  .festival-heading h1 { font-size: 1.65rem; }
  .branch-heading h1 { font-size: 1.8rem; }
  .profile-screen > .browse-header { margin-inline: -22px; }
  .profile-pass-link { padding-inline: 15px; }
  .festival-ticket { padding: 9px; }
  .ticket-inner { padding-inline: 13px; }
  .ticket-band { margin-inline: -13px; font-size: 1.65rem; }
  .ticket-inner > .festival-logo { max-height: 145px; }
  .ticket-date { font-size: .9375rem; }
  .ticket-owner strong { font-size: 1.2rem; }
  .issued-copy h1 { font-size: 1.875rem; }
  .taste-grid { gap: 7px; }
  .taste { font-size: .75rem; min-height: 82px; }
}

@media (max-height: 650px) {
  .festival-hero { width: 235px; margin-top: 16px; }
  .festival-hero > .festival-logo { max-height: 157px; }
  .welcome-copy { margin-top: 21px; }
  .issued-art { margin-top: 22px; margin-bottom: 25px; }
}

@media (forced-colors: active) {
  .festival-ticket, .ticket-inner, .profile-pass-link, .taste, .food-card .price { border: 1px solid CanvasText; }
  .festival-ticket::before, .festival-ticket::after { display: none; }
  .ticket-band { background: Canvas; color: CanvasText; border-block: 1px solid CanvasText; }
  .ticket-owner { border-color: CanvasText; }
}

/* Keep the last dish reachable above the fixed pass action. */
.branch-page.with-dock { padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); }
.profile-screen > .button { margin-top: 16px; }
.signin[aria-current="page"] { border-color: var(--action); color: var(--action); }

/* Contact details are part of the visible profile identity. */
.profile-details { display: grid; gap: 10px; margin: 19px 0 0; padding: 0; }
.profile-details > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; align-items: baseline; }
.profile-details dt { color: var(--muted); font-size: .8125rem; }
.profile-details dd { margin: 0; color: var(--ink); font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere; }
.signup-consent { margin-top: 23px; }
.signup-consent .check { align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: .9375rem; line-height: 1.45; }
.signup-consent .check input { margin-top: 2px; flex: none; }
.signup-consent .consent-note { margin: 5px 0 0 33px; font-size: .75rem; line-height: 1.5; }
.last-question { display: block; margin-bottom: 12px; color: var(--muted); font-size: .875rem; line-height: 1.4; letter-spacing: 0; font-weight: 400; }
