/* Shared navigation and ordering surfaces. Keep the existing food-led home hero. */
:root { --paper: #fafbf9; --paper-strong: #fff; --line: #e0e4df; --muted: #5e645f; }
body { letter-spacing: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #237554; outline-offset: 3px; }
.site-header, .home-page .site-header { padding: 14px 32px; gap: 22px; background: #ffffffed; }
.site-header .brand, .home-page .site-header .brand { gap: 10px; min-width: 0; }
.site-header .brand img, .home-page .site-header .brand img { width: 42px; height: 42px; flex-shrink: 0; }
.site-header .brand > span:not(.jp-stamp), .home-page .site-header .brand > span:not(.jp-stamp) { font-family: Georgia, serif; font-weight: 500; font-size: 28px; text-transform: none; white-space: nowrap; }
.site-header .brand .jp-stamp, .home-page .site-header .brand .jp-stamp { font-size: 9px; height: 35px; width: auto; padding: 4px; }
.site-nav, .home-page .site-nav { gap: 24px; }
.site-nav a, .home-page .site-nav a { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.header-action, .home-page .header-action { width: 48px; min-height: 44px; padding: 0; position: relative; background: transparent; color: var(--ink); flex-shrink: 0; }
.header-action svg, .home-page .header-action svg { width: 28px; height: 28px; }
.header-action span, .home-page .header-action .cart-badge { position: absolute; right: -2px; top: 0; border-radius: 50%; background: var(--red); color: white; width: 21px; height: 21px; font-size: 11px; display: grid; place-items: center; }
.menu-hero { padding: 24px 32px; gap: 20px; align-items: center; }
.menu-hero h1 { font-size: 42px; margin: 0; }
.menu-hero .service-line { margin: 0 0 4px; font-size: 13px; }
.menu-search { width: 340px; max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.menu-search label { font-size: 12px; }
.menu-search input { height: 44px; padding: 10px 14px; }
.menu-layout { padding: 0 32px 48px; grid-template-columns: 175px minmax(0,1fr) 275px; gap: 22px; align-items: start; }
.category-navigation { position: sticky; top: 90px; }
.category-navigation .category-rail { position: static; }
#categorySelect, .category-select-label { display: none; }
.category-filter { min-height: 44px; font-size: 14px; border-radius: 4px; }
.category-filter:focus-visible { outline-offset: -3px; }
.menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.menu-results-header { margin-bottom: 16px; align-items: center; display: flex; justify-content: space-between; text-align: left; }
.menu-results-header > div { text-align: left; }
.menu-results-header h2 { margin: 0; }
.menu-page::before { display: none; }
.menu-results-header h2 { font-size: 27px; }
.menu-results-header .section-kicker { display: none; }
.menu-card { box-shadow: none; border-color: var(--line); background: #fff; }
.dish-image-button { display: block; width: 100%; padding: 0; border: 0; background: #f4f6f2; cursor: zoom-in; }
.menu-card .dish-image-button img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; padding: 8px; }
.menu-card-body { padding: 16px; gap: 10px; }
.menu-card h3 { font-size: 19px; line-height: 1.3; min-height: 0; overflow-wrap: anywhere; }
.menu-card-category { font-size: 11px; letter-spacing: 0; }
.dish-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.menu-card-footer { margin-top: auto; gap: 10px; }
.menu-price { font-size: 18px; }
.add-button { min-width: 70px; min-height: 44px; font-size: 15px; }
.variant-options { min-width: 0; }
.variant-options legend { letter-spacing: 0; font-size: 11px; }
.variant-options label span { min-height: 44px; padding: 8px; font-size: 13px; overflow-wrap: anywhere; }
.variant-options input:focus-visible + span, .dining-options input:focus-visible + span { outline: 3px solid #237554; outline-offset: 2px; }
.order-panel { top: 90px; padding: 18px; border-radius: 6px; box-shadow: none; }
.order-list { max-height: 50vh; overflow: auto; }
.order-row { gap: 12px; grid-template-columns: minmax(0,1fr) auto; }
.order-row > div:first-child { min-width: 0; }
.order-row strong { overflow-wrap: anywhere; font-size: 14px; }
.quantity-controls { flex-shrink: 0; gap: 2px; grid-template-columns: 36px 22px 36px; }
.quantity-controls button { width: 36px; min-height: 44px; }
.quantity-controls span { min-width: 22px; text-align: center; }
.order-total, .submit-summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; }
.payment-note, .privacy-note, .time-availability, .allergy-note { margin: 0; font-size: 13px; line-height: 1.6; color: #515952; }
.privacy-note a, .allergy-note a { text-decoration: underline; text-underline-offset: 3px; }
.payment-note { margin-bottom: 12px; }
.order-mail { font-size: 14px; min-height: 48px; }
.mobile-cart { display: none; }
.cart-feedback { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; margin: 0; width: max-content; max-width: calc(100% - 32px); background: #224a37; color: white; border-radius: 4px; font-size: 13px; padding: 10px 16px; pointer-events: none; }
.cart-feedback:empty { display: none; }
.menu-empty { grid-column: 1/-1; padding: 32px 0; }
.dish-dialog { max-width: 600px; width: calc(100% - 32px); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 28px; color: var(--ink); }
.dish-dialog::backdrop { background: #17231d99; }
.dish-dialog img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
.dish-dialog h2 { font-size: 26px; line-height: 1.3; }
.dialog-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 26px; cursor: pointer; }
.checkout-form select, .reservation-form select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; background: white; color: var(--ink); }
.checkout-form input, .checkout-form textarea, .reservation-form input, .reservation-form textarea { min-width: 0; max-width: 100%; }
.checkout-form label, .reservation-form label { min-width: 0; }
.reservation-form .time-availability, .reservation-form .privacy-note { color: #515952; }
.checkout-form .privacy-note, .checkout-form .payment-note, .submit-summary, .time-availability { grid-column: 1/-1; }
.checkout-order-list { max-height: none; }
.checkout-form h2 { font-size: 26px; }
.checkout-form button[type=submit] { width: 100%; }
.success-panel { box-shadow: none; background: transparent; border: 0; }
.success-card { box-shadow: none; border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--line); }
.success-card dd { overflow-wrap: anywhere; }
.home-page .hero-copy h1 { font-size: 70px; }
.home-page .category-card span { font-size: 36px; }
@media (min-width: 1550px) { .menu-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1120px) {
  .site-header, .home-page .site-header { gap: 16px; padding: 12px 24px; }
  .site-header .brand .jp-stamp, .home-page .site-header .brand .jp-stamp { display: none; }
  .site-nav, .home-page .site-nav { gap: 18px; }
  .menu-layout { grid-template-columns: minmax(0,1fr); padding: 0 24px 40px; }
  .category-navigation { top: 80px; z-index: 15; background: #fafbf9fa; padding: 8px 0; }
  .category-navigation .category-rail { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding: 0; }
  .category-filter { flex: 0 0 auto; white-space: nowrap; }
  #categorySelect { display: block; width: 100%; min-height: 44px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; background: white; }
  .order-panel { position: static; scroll-margin-top: 210px; }
  .order-list { max-height: none; }
  .menu-page { padding-bottom: 88px; }
  .mobile-cart { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #a92820; color: white; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); min-height: 62px; box-shadow: 0 -2px 10px #00000012; }
  .cart-feedback { bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .site-header, .home-page .site-header { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 0 10px; padding: 8px 16px 0; }
  .site-header .brand, .home-page .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .brand img, .home-page .site-header .brand img { width: 34px; height: 34px; }
  .site-header .brand > span:not(.jp-stamp), .home-page .site-header .brand > span:not(.jp-stamp) { font-size: 25px; }
  .site-nav, .home-page .site-nav { grid-row: 2; grid-column: 1/-1; display: flex; width: 100%; justify-content: space-between; gap: 8px; flex-wrap: nowrap; padding: 0; }
  .site-nav a, .home-page .site-nav a { font-size: 12px; min-height: 44px; }
  .header-action, .home-page .header-action { grid-column: 2; grid-row: 1; width: 40px; min-height: 40px; }
  .menu-hero { display: grid; grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .menu-hero h1 { font-size: 34px; }
  .menu-search { width: 100%; }
  .menu-search label { display: none; }
  .menu-layout { padding: 0 16px 24px; gap: 16px; }
  .category-navigation { top: 92px; margin-inline: -16px; padding: 8px 16px; }
  .category-navigation .category-rail { display: none; }
  #categorySelect { margin: 0; }
  .menu-results-header { margin-bottom: 12px; flex-direction: row; align-items: center; }
  .menu-results-header h2 { font-size: 24px; text-align: left; }
  .menu-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .menu-card .dish-image-button img { aspect-ratio: 16/10; max-height: 240px; }
  .menu-card h3 { font-size: 21px; }
  .menu-card-body { padding: 16px; }
  .variant-options label span { font-size: 14px; }
  .checkout-layout { padding-inline: 16px; gap: 24px; }
  .checkout-hero h1 { font-size: 32px; }
  .checkout-hero p { font-size: 14px; }
  .checkout-back { min-height: 44px; justify-self: start; }
  .checkout-form, .checkout-summary { padding: 18px; }
  .checkout-form input, .checkout-form select, .checkout-form textarea, .reservation-form input, .reservation-form select, .reservation-form textarea { font-size: 16px; min-height: 48px; width: 100%; }
  .checkout-form label, .reservation-form label { font-size: 12px; }
  .home-page .hero-section { min-height: 660px; }
  .home-page .hero-media { height: 100%; min-height: 0; }
  .home-page .hero-copy { padding: 34px 22px 32px; }
  .home-page .hero-copy h1 { font-size: 44px; line-height: 1.08; }
  .home-page .hero-text { font-size: 18px; }
  .home-page .hero-seal { margin-bottom: 18px; }
  .home-page .hero-actions .button { font-size: 17px; min-height: 54px; }
  .home-page .hero-status { gap: 12px; }
  .home-page .hero-status span, .home-page .hero-status strong { font-size: 14px; }
  .home-page .category-card span { font-size: 30px; }
  .home-page .reservation-form .button { font-size: 17px; padding: 14px; min-height: 52px; }
  .home-page .reservation-form { padding: 20px; }
  .success-page { padding: 24px 16px; }
  .success-panel { padding: 0; }
  .success-panel h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
