/* SS Bucket Biryani website: a branch's page, the one every branch gets (/branches/deira). Loaded
   after site.css and menu-page.css (its dish cards are the menu's). Not in the Figma: it grows out
   of the branch in Our Branches' spotlight, the photo in a cream-edged arch beside the name on a dark
   ground, and adds what a visitor comes for: whether the branch is open now, its hours, the way
   there, its phone and what it serves.

   It is the design canvas's branch.css, with what the site does differently: no services, written
   directions or second story photo yet (they come back with the client's words for them), the call
   card's numbers beside its words on a tablet, a long name that steps down so its words stay whole,
   and a trail of links that may wrap. The opening's ground follows the branch's region, as the
   region tiles of Our Branches do (data-tone: maroon, red or ink). --u is one pixel at 1512 px; the
   screen-size rules are container queries on .page. */

.bp-wrap { width: calc(1180 * var(--u)); margin-inline: auto; }

/* ---------- 1. The opening: the branch, and whether it is open ---------- */
.bp-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(176 * var(--u)) var(--gutter) calc(108 * var(--u)); background: var(--maroon); color: var(--cream); }
.bp-hero[data-tone="ink"] { background: var(--maroon-ink); }
.bp-hero[data-tone="red"] { background: var(--red); }
/* the wide circle behind the arch, as behind Home's story and its bucket */
.bp-hero::before { content: ""; position: absolute; z-index: -1; left: calc(50% - 890 * var(--u)); top: calc(232 * var(--u)); width: calc(860 * var(--u)); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 242, 222, .05); }
.bp-hero__inner { display: grid; grid-template-columns: calc(440 * var(--u)) minmax(0, 1fr); column-gap: calc(96 * var(--u)); align-items: center; width: calc(1180 * var(--u)); margin-inline: auto; }
.bp-hero__art { position: relative; order: -1; }
.bp-arch { position: relative; aspect-ratio: 440 / 492; overflow: hidden; border: 3px solid var(--cream); border-radius: 999px 999px 18px 18px; background: var(--red); }
/* a cut-out of the building stands on the arch's floor */
.bp-arch__photo { position: absolute; left: 3%; bottom: 0; width: 94%; height: 86% !important; object-fit: contain; object-position: 50% 100%; }
/* no photo yet: the drawn shop front fills the arch, as on Our Branches' cards */
.bp-arch--drawn { background: #6E0A10; }
.bp-arch__drawn { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 100%; }
/* an outlet's own photo fills the arch */
.bp-arch__fill { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
/* the sign on the door says what the status line says, for the eye: open is cream with red words, closed is dark */
.bp-sign { position: absolute; right: calc(-30 * var(--u)); bottom: 44px; display: grid; justify-items: center; gap: 3px; min-width: 150px; padding: 13px 22px 12px; border-radius: 14px; rotate: -5deg; background: var(--cream); color: var(--red); box-shadow: 0 12px 24px rgba(0, 0, 0, .42); outline: 2px dotted var(--maroon); outline-offset: -7px; }
.bp-sign::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -24px; width: 62px; height: 62px; translate: -50% 0; rotate: 45deg; border: solid var(--cream); border-width: 2px 0 0 2px; opacity: .85; }
.bp-sign::after { content: ""; position: absolute; left: 50%; top: -30px; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: var(--gold-light); }
.bp-sign b { font-family: var(--font-condensed); font-weight: 400; font-size: 54px; line-height: .88; letter-spacing: .02em; text-transform: uppercase; }
.bp-sign span { font-weight: 600; font-size: 13px; line-height: 16px; color: var(--maroon); white-space: nowrap; }
.bp-sign[data-state="closed"] { background: var(--dark); color: var(--cream); outline-color: rgba(255, 242, 222, .55); box-shadow: 0 0 0 1.6px rgba(255, 242, 222, .5), 0 12px 24px rgba(0, 0, 0, .42); }
.bp-sign[data-state="closed"] span { color: var(--gold-light); }
.bp-sign[data-state="soon"] { background: var(--gold-light); color: var(--maroon-deep); }

/* a long name wraps the trail onto two lines: each link's reach stays on its own line */
.bp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; font-size: 13.5px; line-height: 20px; }
.bp-crumbs li { display: flex; align-items: center; }
.bp-crumbs li + li::before { content: ""; width: 5px; height: 5px; margin-inline: 12px; rotate: 45deg; background: var(--gold-light); }
.bp-crumbs a { display: inline-block; padding-block: 4px; margin-block: -4px; text-decoration: underline; text-decoration-color: rgba(255, 242, 222, .5); text-underline-offset: 4px; }
.bp-crumbs a:hover { text-decoration-color: currentColor; }
.bp-crumbs [aria-current] { color: #F4DCC0; }
.bp-hero__brand { margin-top: 26px; font-family: var(--font-serif); font-size: 13px; line-height: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
/* a long name steps down so its longest word stays whole: the page gives that word's letters as
   --name-letters, and a letter of this face is at most .41 of its size wide. The space is the opening's
   words column: beside the arch on a computer and a tablet, the whole width below 900 px. */
.bp-hero__title { margin-top: 8px; font-family: var(--font-condensed); font-weight: 400; font-size: min(max(64px, calc(168 * var(--u))), calc(644 * var(--u) / (var(--name-letters) * .41))); line-height: .88; text-transform: uppercase; overflow-wrap: anywhere; }
/* the status in words: the page's own answer to "is it open?" */
.bp-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 22px; font-size: 18px; line-height: 26px; }
.bp-now .mn-dot { width: 13px; height: 13px; border-width: 2.5px; color: var(--gold-light); }
.bp-now b { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 30px; font-synthesis: none; }
.bp-now[data-state="open"] b { color: var(--gold-light); }
.bp-hero__address { display: flex; align-items: flex-start; gap: 10px; max-width: 540px; margin-top: 18px; font-size: 15.5px; line-height: 25px; }
.bp-hero__address .icon { margin-top: 5px; font-size: 16px; color: var(--red-on-dark); }
.bp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bp-hero__actions .btn-compact { min-height: 50px; padding: 0 24px; font-size: 14.5px; }
.bp-hero__actions .btn-compact .icon { font-size: 16px; }

/* ---------- 2. Hours, the way there, the phone ---------- */
.bp-facts { padding: calc(88 * var(--u)) var(--gutter) calc(96 * var(--u)); background: var(--cream); }
.bp-facts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bp-card { padding: 30px 28px 30px; border-radius: 24px; background: var(--white); color: var(--ink-copy); box-shadow: 0 0 0 1px rgba(210, 169, 101, .55); }
.bp-card__title { font-family: var(--font-condensed); font-weight: 400; font-size: 40px; line-height: .94; text-transform: uppercase; color: var(--maroon); }
.bp-card__sub { margin-top: 26px; padding-top: 20px; border-top: 1.6px solid var(--rule); font-family: var(--font-serif); font-weight: 400; font-size: 12px; line-height: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.bp-card__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13.5px; line-height: 20px; color: var(--ink-quiet); }
.bp-card__note .icon { margin-top: 2.5px; font-size: 15px; }
/* the week: today's row is filled and says "Today", so it stands out without its colour */
.bp-week { width: calc(100% + 24px); margin: 14px -12px 0; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 22px; }
.bp-week th, .bp-week td { padding: 9px 12px; vertical-align: top; text-align: left; font-weight: 400; }
.bp-week th { white-space: nowrap; }
.bp-week td { text-align: right; }
.bp-week td span { display: block; white-space: nowrap; }
.bp-week tr:not(:last-child) :is(th, td) { border-bottom: 1px solid rgba(126, 13, 18, .1); }
.bp-week .bp-today :is(th, td) { border-bottom-color: transparent; background: var(--maroon); font-weight: 600; color: var(--cream); }
.bp-week .bp-today th { border-radius: 12px 0 0 12px; }
.bp-week .bp-today td { border-radius: 0 12px 12px 0; }
.bp-week tr:has(+ .bp-today) :is(th, td) { border-bottom-color: transparent; }
.bp-tag { margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--gold-light); font-weight: 700; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon-deep); }
/* dated hours that replace a weekday's: holidays, a festival's timetable */
.bp-dates { display: grid; gap: 10px; margin-top: 12px; font-size: 14.5px; line-height: 21px; }
.bp-dates li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.bp-dates b { font-weight: 600; color: var(--maroon); white-space: nowrap; }
.bp-dates span:last-child { text-align: right; white-space: nowrap; }

/* the landmark, the way a driver or a taxi would be told: there is no map until each branch has its pin */
.bp-find__tag { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--panel); font-family: var(--font-display); font-size: 19px; line-height: 25px; color: var(--maroon); font-synthesis: none; }
.bp-find__tag .icon { flex: none; margin-top: 4px; font-size: 17px; color: var(--red); }
.bp-find__address { margin-top: 16px; font-size: 15px; line-height: 23px; }
.bp-find__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bp-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 1.6px solid var(--maroon); border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; line-height: 18px; color: var(--maroon); transition: background-color .3s var(--tap), color .3s var(--tap); }
.bp-chip .icon { font-size: 14px; }
.bp-chip:hover { background: var(--maroon); color: var(--cream); }
.bp-find__said { min-height: 20px; margin-top: 10px; font-size: 13.5px; line-height: 20px; color: var(--veg); }

.bp-reach__text { margin-top: 12px; font-size: 14.5px; line-height: 22px; }
.bp-phones { display: grid; gap: 8px; margin-top: 16px; }
.bp-phones a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--red); font-weight: 600; font-size: 17px; line-height: 22px; color: var(--white); transition: background-color .3s var(--tap); }
.bp-phones a:hover { background: #C8061F; }
.bp-phones .icon { font-size: 16px; }
.bp-phones a span { white-space: nowrap; }
/* a branch with several numbers: the first is the button, the rest are quieter, two to a row where they fit */
.bp-phones--many { grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); }
.bp-phones--many li:first-child { grid-column: 1 / -1; }
.bp-phones--many li:not(:first-child) a { min-height: 46px; padding: 0 14px; border: 1.6px solid var(--maroon); background: none; font-size: 15px; color: var(--maroon); }
.bp-phones--many li:not(:first-child) a:hover { background: rgba(126, 13, 18, .08); }

/* ---------- 3. On the menu here ---------- */
.bp-menu { padding: calc(92 * var(--u)) var(--gutter) calc(96 * var(--u)); background: var(--panel); }
.bp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.bp-h2 { margin-top: 10px; font-family: var(--font-condensed); font-weight: 400; font-size: max(44px, calc(84 * var(--u))); line-height: .92; text-transform: uppercase; color: var(--maroon); }
.bp-h2 em { font-style: normal; color: var(--red); }
.bp-h2--cream { color: var(--cream); }
.bp-h2--cream em { color: var(--gold-light); }
.bp-menu__cards { margin-top: 34px; }
.bp-menu .mn-card { box-shadow: none; }
.bp-menu__live { margin-top: 20px; font-size: 14px; line-height: 21px; color: var(--ink-copy); }

/* ---------- 4. Inside the branch ---------- */
.bp-about { padding: calc(104 * var(--u)) var(--gutter); background: var(--cream); }
.bp-about__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: calc(88 * var(--u)); align-items: center; }
.bp-about__photo { border-radius: 22px; object-fit: cover; }
.bp-about__photo--1 { width: 100%; aspect-ratio: 4 / 3; height: auto !important; }
.bp-about__words p:not(.mn-eyebrow) { max-width: 480px; margin-top: 16px; font-size: 16px; line-height: 26px; color: var(--ink-copy); }

/* ---------- 5. The branches nearby ---------- */
.bp-others { padding: calc(96 * var(--u)) var(--gutter); background: var(--maroon); color: var(--cream); }
.bp-others__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.bp-other { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--maroon-deep); transition: background-color .3s var(--tap); }
.bp-other__photo { width: 112px; aspect-ratio: 1; height: auto !important; border-radius: 14px; object-fit: cover; }
.bp-other__photo--drawn { background: #F7DDB0; object-fit: contain; object-position: 50% 100%; padding: 8px 8px 0; }
.bp-other__words { display: grid; gap: 4px; }
.bp-other h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 27px; font-synthesis: none; }
.bp-other h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
/* a landmark or the address, in two lines at most */
.bp-other__words > p:not(.mn-status) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13.5px; line-height: 20px; color: #F4DCC0; }
.bp-other .mn-status[data-state="open"] { color: var(--gold-light); }
@media (hover: hover) {
  .bp-other:hover { background: #4A0506; }
}

/* ---------- On a phone: call and directions stay in reach ---------- */
/* It takes no room in the page (no height of its own) and sticks to the bottom of the screen; the page's script
   shows it once the opening's own buttons are out of sight. */
.bp-dock { position: sticky; bottom: 0; z-index: 15; display: none; height: 0; }
.bp-dock__bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1.6px rgba(126, 13, 18, .14), 0 14px 30px rgba(42, 5, 8, .34); }
.bp-dock a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; border-radius: 14px; font-weight: 600; font-size: 15px; line-height: 20px; }
.bp-dock__call { background: var(--red); color: var(--white); }
.bp-dock__way { background: var(--panel); color: var(--maroon); }
.bp-dock .icon { font-size: 16px; }

/* ---------- Motion ---------- */
[data-motion="on"] .bp-arch { --from-y: 12%; }
@media (prefers-reduced-motion: no-preference) {
  .bp-dock__bar { animation: mn-sheet-in var(--dur-short) var(--ease-out); }
}

/* ---------- Narrower windows ---------- */
@container page (max-width: 1100px) {
  .bp-wrap, .bp-hero__inner { width: min(100%, 1180px); }
  .bp-hero__inner { column-gap: 56px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .bp-hero__title { font-size: min(max(64px, calc(168 * var(--u))), calc(100cqw - 2 * var(--gutter) - 396px / (var(--name-letters) * .41))); }
  .bp-sign { right: -18px; }
  .bp-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the call card takes the row under the other two: its words on the left, its numbers on the right */
  .bp-reach { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
  .bp-reach > :is(.bp-card__title, .bp-reach__text) { grid-column: 1; }
  .bp-reach > .bp-phones { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
  .bp-others__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page (max-width: 900px) {
  .bp-hero { padding-top: 142px; padding-bottom: 72px; }
  .bp-hero::before { left: -220px; top: 360px; width: 620px; }
  /* the words come first: the name, whether it is open, the address and the two buttons */
  .bp-hero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .bp-hero__art { order: 0; width: min(100%, 360px); }
  .bp-hero__title { font-size: min(max(64px, calc(168 * var(--u))), calc(100cqw - 2 * var(--gutter) / (var(--name-letters) * .41))); }
  .bp-sign { right: -22px; }
  .bp-about__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .bp-about__photos { max-width: 560px; }
}
@container page (max-width: 760px) {
  .bp-hero { padding-top: 112px; padding-bottom: 56px; }
  .bp-hero__brand { margin-top: 18px; }
  .bp-hero__title { font-size: min(clamp(60px, 21cqw, 120px), calc(100cqw - 2 * var(--gutter) / (var(--name-letters) * .41))); }
  .bp-now { margin-top: 16px; font-size: 16px; }
  .bp-now b { font-size: 23px; }
  .bp-hero__address { font-size: 15px; line-height: 23px; }
  .bp-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .bp-hero__actions .btn-compact { padding: 0 12px; }
  .bp-hero__actions .btn-compact:first-child { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
  /* a branch with no menu here has one button under the call: it takes the row */
  .bp-hero__actions .btn-compact:nth-child(2):last-child { grid-column: 1 / -1; }
  .bp-hero__art { width: min(86%, 320px); }
  .bp-sign { right: -30px; bottom: 30px; padding: 11px 18px 10px; }
  .bp-sign b { font-size: 46px; }
  .bp-facts { padding-top: 40px; padding-bottom: 56px; }
  .bp-facts__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bp-card { padding: 24px 20px 24px; border-radius: 20px; }
  .bp-card__title { font-size: 36px; }
  .bp-reach { display: block; }
  .bp-reach > .bp-phones { margin-top: 16px; }
  .bp-menu, .bp-others { padding-top: 56px; padding-bottom: 60px; }
  .bp-menu__cards { margin-top: 24px; }
  .bp-about { padding-block: 60px; }
  .bp-others__list { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; }
  .bp-other { grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; padding: 12px 14px 12px 12px; }
  .bp-other__photo { width: 88px; }
  .bp-other h3 { font-size: 20px; line-height: 25px; }
  .bp-dock { display: block; }
}

/* on a phone the call and directions bar lies over the foot of the screen: what the keyboard reaches is
   kept above it */
html:has(.branch-page) { scroll-padding-bottom: 84px; }
