/* Pali Bhavan site styles.
   Corporate A Pro Medium: navigation, headings, menu.
   Apercu Pro Regular: small sans text. Both are served from /assets/fonts/. */
@font-face { font-family: 'Corporate A'; src: url('/assets/fonts/CorporateAPro-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Apercu'; src: url('/assets/fonts/ApercuPro-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --ground: #F1ECE4;
  --burgundy: #41161A;
  --green: #182918;
  --muted: #5C3A3D;
  --serif: 'Corporate A', Georgia, 'Times New Roman', serif;
  --sans: Apercu, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--ground); color: var(--burgundy);
  font-family: var(--serif); font-weight: 500; line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, .paper-scroll:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--burgundy); color: var(--ground); padding: 10px 14px; }

/* Header */
.site-header { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 22px; }
.logo { display: block; margin-bottom: 24px; }
.logo img { display: block; height: 37px; width: auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.site-header nav a { display: block; padding: 8px 0; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (min-width: 768px) {
  .site-header { padding: 48px 48px 22px; }
  .logo { margin-bottom: 52px; }
  .logo img { height: 46px; }
  .site-header nav a { font-size: 17px; }
}

main { flex: 1; width: 100%; }
.icon-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

/* Home and confirmation */
.home, .confirmed { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home { gap: 10px; padding: 0 16px 48px; }
.home .hero { display: block; width: 85%; max-width: 430px; margin-bottom: 14px; }
.phone { padding: 8px 0; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
.address { margin: 0; font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
@media (min-width: 768px) {
  .home { gap: 24px; padding: 40px 48px 64px; }
  .home .hero { width: auto; max-width: min(85%, 430px); max-height: 64vh; object-fit: contain; margin-bottom: 8px; }
  .phone { font-size: 17px; }
  .address { font-size: 12px; }
}
.confirmed { gap: 20px; padding: 32px 16px 48px; }
.confirmed h1 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.confirmed .hero { display: block; width: auto; max-width: min(90%, 460px); max-height: 66vh; object-fit: contain; }
.directions-link, .directions a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) { .confirmed { gap: 28px; padding: 48px 48px 56px; } .confirmed h1 { font-size: 20px; } .directions-link { font-size: 16px; } }

/* Hours and location */
.hours { max-width: 896px; margin: 0 auto; padding: 56px 16px 32px; text-align: center; }
.hours .open-line { margin: 0 0 32px; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.025em; text-transform: uppercase; }
.hours h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.hours .time { margin: 0 0 36px; letter-spacing: 0.025em; }
.hours h1 { margin: 0 0 16px; font-size: 18px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.hours .addr { margin: 0 0 24px; font-size: 12px; letter-spacing: 0.025em; text-transform: uppercase; line-height: 1.6; }
.map { aspect-ratio: 16 / 9; border: 4px solid #e8e3db; border-radius: 10px; overflow: hidden; background: #E9E3D7; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: sepia(0.15) saturate(0.7) brightness(1.05); }
.directions { margin: 8px 0 0; }
@media (min-width: 768px) {
  .hours { padding: 72px 48px 48px; }
  .hours .open-line { font-size: 16px; margin-bottom: 48px; }
  .hours .time { margin-bottom: 48px; }
  .hours h1 { font-size: 20px; margin-bottom: 32px; }
  .hours .addr { margin-bottom: 32px; }
  .map { aspect-ratio: 21 / 9; }
}

/* Menu */
.menu-tabs { border-bottom: 1px solid rgba(65, 22, 26, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); padding: 8px 16px; overflow-x: auto; scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs-inner { display: flex; gap: 8px; width: max-content; margin: 0 auto; }
.tab { min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--burgundy); font: inherit; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover, .js-menu .tab[aria-pressed="true"] { background: var(--burgundy); color: var(--ground); }
html:not(.js-menu) .menu-tabs { display: none; }
.menu { display: flex; justify-content: center; padding: 32px 16px; }
.paper { width: 595px; max-width: 100%; display: flex; flex-direction: column; padding: 48px 20px; text-align: center; color: #4F4F44; background: linear-gradient(135deg, #E8E3D8, #EAE5DA 50%, #E6E1D6); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 0 100px rgba(0, 0, 0, 0.02); }
.js-menu .paper { height: 842px; max-height: calc(100dvh - 120px); min-height: 480px; }
.paper-icon { display: block; width: 32px; height: 32px; margin: 0 auto 28px; }
.paper-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px; scrollbar-width: thin; scrollbar-color: #D1CDC5 transparent; }
.menu-section h2 { margin: 0 0 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
html:not(.js-menu) .menu-section + .menu-section { margin-top: 56px; }
.dish { margin-bottom: 30px; }
.dish h3 { margin: 0 0 8px; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.dish p { margin: 0; padding: 0 8px; font-family: var(--sans); font-weight: 400; font-size: 13px; line-height: 1.6; color: #55554A; }
@media (min-width: 768px) {
  .menu-tabs { padding: 10px 32px; } .menu-tabs-inner { gap: 12px; } .tab { font-size: 13px; padding: 0 16px; }
  .menu { padding: 48px; } .paper { padding: 64px 40px; } .dish p { padding: 0 32px; }
}

/* Embedded forms */
.embed-fill { display: flex; flex-direction: column; min-height: 640px; }
.embed-fill > [data-tf-live] { flex: 1; min-height: 640px; }
.note { margin: 0 0 32px; text-align: center; font-family: var(--sans); font-weight: 400; color: #2C2C2C; }
.note a { text-decoration: underline; }
.reservations { max-width: 896px; margin: 0 auto; padding: 32px 16px; }
.eat { position: relative; width: 100%; padding-bottom: 150%; height: 0; }
.eat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) { .reservations { padding: 32px 48px; } }

.notfound { text-align: center; padding: 80px 24px; }
.notfound h1 { font-size: 20px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.notfound a { text-decoration: underline; text-underline-offset: 4px; }
