/* Show the logo after scrolling, except while the menu drawer is open. */
body .hd .hd-logo { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
body .hd.hd-scrolled:not(.hd-menu-open) .hd-logo { opacity: 1; visibility: visible; pointer-events: auto; }

/* A single sakura surface carries through the introduction, sections and footer. */
.site-surface { background: #fbf4fa url(/img/art/page-bg.webp) repeat-y center top / max(100%, 900px) auto; }
.site-surface main, .site-surface .hero, .site-surface .hero .hero-body, .site-surface .sk, .site-surface .ft2 { background: transparent; }
.site-surface .ft2 { padding-top: clamp(48px, 6vw, 90px); }

/* Three navigation cards share their column width and row height. */
.ft2-in { grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); align-items: stretch; }
.ft2-card { min-width: 0; min-height: 440px; height: 100%; }
.ft2-brand { align-self: start; }
@media (max-width: 1100px) {
  .ft2-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft2-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .ft2-in { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .ft2-card, .ft2-card:last-of-type { grid-column: auto; min-height: 0; height: auto; }
  .ft2-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 18px 20px; border-radius: 22px; }
  .ft2-ico { grid-row: 1 / span 2; align-self: center; width: 40px; height: 40px; }
  .ft2-card small { grid-column: 2; margin-top: 0; font-size: 11px; }
  .ft2-title { grid-column: 2; margin-top: 2px; padding-bottom: 8px; font-size: 24px; }
  .ft2-card ul { grid-column: 1 / -1; margin-top: 8px; }
  .ft2-card li a { min-height: 44px; padding: 8px 0; font-size: 15px; }
  .ft2-card .ft2-two a b { font-size: 20px; }
  .ft2-card .ft2-two a span { font-size: 13px; }
  .ft2-two li + li { margin-top: 2px; padding-top: 2px; }
  .ft2-brand { padding-top: 0; margin-bottom: 0; }
  .ft2-logo img { width: 160px; }
  .ft2-x { min-height: 44px; margin-top: 8px; padding: 10px 16px; font-size: 14px; }
  .ft2-brand p { margin-top: 12px; font-size: 12px; line-height: 1.6; }
  .ft2-legal { margin-top: 12px; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
  .ft2-legal::before, .ft2-legal li + li::before { display: none; }
  .ft2-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { body .hd .hd-logo { transition: none; } }
@media print { .site-surface { background: none; } }

/* inner pages: same header as the first view (in flow, transparent) then the white bar once scrolled */
.page-back-nav { width: min(100%, 1240px); margin: 0 auto; padding: 12px clamp(18px, 4vw, 48px) 0; }
.page-back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid #d9c3e8; border-radius: 12px; background: #fff; color: #482064; box-shadow: 0 2px 8px rgba(72, 32, 100, .08); font: 700 16px/1.5 var(--font); letter-spacing: .02em; text-decoration: none; }
.page-back-link > span { font-size: 22px; line-height: 1; }
.page-back-link:hover { background: #f5edf9; border-color: #9464b0; }
.page-back-link:focus-visible { outline: 3px solid #f59a3a; outline-offset: 3px; }
body .hd.hd-flow:not(.hd-solid) { background: transparent; box-shadow: none; }

/* inner pages: the header floats over the page's own sakura surface (no separate beige strip), exactly like the first view */
body .hd.hd-flow { position: fixed; left: 0; right: 0; }
body:has(.hd-flow) .site-surface { padding-top: var(--hd-h, 76px); }

/* WEB reservation: day -> hour -> only that hour's 12 slots, so there is never a wall of buttons */
body .picker .picker-hours-heading { margin: 22px 0 10px; color: #392062; font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.5; }
body .picker .hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 18px; }
body .picker .hour-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-width: 0; min-height: 80px; padding: 12px 8px; border: 2px solid #dec1ee; border-radius: 14px; background: #fff; color: #392062; font-family: inherit; font-weight: 700; font-size: 20px; line-height: 1.4; cursor: pointer; }
body .picker .hour-btn small { font-size: 14px; font-weight: 700; color: #65417e; }
body .picker .hour-btn small.zero { color: #8a8190; }
body .picker .hour-btn[aria-pressed="true"] { background: #7a3f9a; border-color: #7a3f9a; color: #fff; }
body .picker .hour-btn[aria-pressed="true"] small { color: #fff; }
body .picker .hour-btn:focus-visible { outline: 3px solid #f59a3a; outline-offset: 3px; }
@media (max-width: 560px) {
  body .picker .hours { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
body.page-reserve #main .picker .slots, body #main .picker .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.page-reserve #main .picker .slot, body #main .picker .slot { min-height: 60px; font-size: 20px; border-radius: 14px; }
@media (max-width: 560px) { body #main .picker .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } body #main .picker .slot { min-height: 54px; font-size: 18px; } }

/* decorative sparkles on the home overview presenters poke a few px past the viewport on phones: never scroll sideways */
html, body { overflow-x: clip; }

/* phones: the news button no longer overflows its padded column at 320px */
@media (max-width: 380px) { body #news .hi-news > .reference-button { min-width: 0; width: 100%; box-sizing: border-box; margin-left: 0; margin-right: 0; } }
/* Drawer actions need room for their label, icon and arrow on narrow screens. */
body .drawer-acct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .drawer-acct .hd-btn { min-width: 0; box-sizing: border-box; }
@media (max-width: 700px) {
  body .drawer-acct { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* touch: slider dots are 4px tall - give each a comfortable invisible tap area */
.hero2-dots button { position: relative; }
.hero2-dots button::before { content: ""; position: absolute; inset: -14px -6px; }
/* touch: small text links get a taller tap area */
.before-reserve-link, .crumb a { display: inline-block; padding-block: 8px; }

/* "Back to previous screen": identical to the hero's previous-image arrow (white round glass button, purple chevron, same hover),
   fixed to the left edge at mid-height so it never moves while scrolling. */
body .page-back-nav { position: fixed; top: 50%; left: clamp(14px, 2vw, 34px); z-index: 40; width: auto; margin: 0; padding: 0; transform: translateY(-50%); }
body .page-back-link { position: relative; display: block; width: clamp(44px, 3.8vw, 62px); height: clamp(44px, 3.8vw, 62px); min-height: 0; padding: 0; gap: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(120, 60, 150, .18); font-size: 0; color: transparent; transition: transform .25s, background .25s, box-shadow .25s; }
body .page-back-link::before { content: ""; position: absolute; top: 50%; left: 50%; width: 30%; height: 30%; border-left: 3px solid var(--fv-purple, #8a3fa0); border-bottom: 3px solid var(--fv-purple, #8a3fa0); border-radius: 2px; transform: translate(-30%, -50%) rotate(45deg); transition: border-color .25s; }
body .page-back-link:hover { background: var(--fv-purple, #8a3fa0); transform: scale(1.08); box-shadow: 0 10px 26px rgba(138, 63, 160, .38); }
body .page-back-link:hover::before { border-color: #fff; }
body .page-back-link:focus-visible { outline: 3px solid #f59a3a; outline-offset: 3px; }
@media (max-width: 760px) { body .page-back-link { width: 40px; height: 40px; } }
