/*
 * 2026-09-01 site-wide usability layer
 * Kept separate from each page's original inline CSS so that it can be
 * reviewed or removed as one small, reversible change.
 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
}

img { height: auto; }

a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* Visible, consistent fallback for images that are not in this publish folder. */
.image-missing {
  min-height: 220px;
  padding: 24px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: #385261;
  background: #edf4f6;
  border: 1px dashed #8aa8b4;
  border-radius: 10px;
  line-height: 1.6;
}

.image-missing strong { font-size: 1rem; }
.image-missing span { font-size: .88rem; }

/* The newer guide pages previously had no way back to the main site. */
.site-utility-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px max(16px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #d7e0e4;
  backdrop-filter: blur(8px);
}

.site-utility-nav__brand {
  margin-right: auto;
  color: #17384a;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.site-utility-nav__link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: #174b68;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.site-utility-nav__link--reserve { color: #fff; background: #1678b5; }

@media (max-width: 768px) {
  /* All legacy pages share a desktop-first left navigation.  These rules
     prevent its desktop width from leaking into the mobile layout. */
  .pc-header-contact, .mobile-capsule-nav { display: none !important; }
  .main-content, .page-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    overflow-x: clip;
  }

  .section, .page-hero, .hero, .intro-text, .service-container,
  .service-item, .story-article, .profile-content, .rates-grid,
  .photo-gallery-wrapper { max-width: 100% !important; }

  .main-content, .page-wrapper, .section, .story-article,
  .service-item, .service-content, .profile-content, .profile-text,
  .rate-card, .rate-details { min-width: 0; }

  .hero-text h1, .page-hero h1, .story-title, .section-title,
  .service-title, .lead-copy {
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal !important;
    max-inline-size: 100%;
  }

  h1, h2, h3, p, li, td, th {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(1.55rem, 7.2vw, 1.8rem) !important;
    letter-spacing: .5px !important;
    line-height: 1.35 !important;
  }

  /* Prevent long English headings from being cut off on a 390px viewport. */
  .hero-text h1 { font-size: clamp(1.85rem, 9vw, 2.65rem) !important; }
  .page-hero { padding: 72px 16px 48px !important; }
  .page-hero h1, .story-title { font-size: clamp(1.55rem, 7.2vw, 1.8rem) !important; }
  .section-title { font-size: clamp(1.4rem, 6.7vw, 1.65rem) !important; letter-spacing: .5px !important; }
  #concept .section-title { font-size: 1.65rem !important; letter-spacing: 1px !important; }
  #concept .site-title-line { display: block; }

  .en-text { overflow-wrap: anywhere; }
  .page-hero p, .intro-text {
    width: calc(100% - 64px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    font-size: .9rem !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .page-hero .en-text, .intro-text .en-text { font-size: .82rem !important; }

  .mobile-menu-toggle,
  .mobile-floating-buttons a,
  .site-utility-nav__link { min-height: 44px; }
  .mobile-menu-close[style] { display: block !important; }

  /* Do not depend on Font Awesome for the essential open/close controls. */
  .mobile-menu-toggle i, .mobile-menu-close i { font-size: 0 !important; }
  .mobile-menu-toggle i::before {
    content: "☰";
    font-family: Arial, sans-serif !important;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
  }
  .mobile-menu-close i::before {
    content: "×";
    font-family: Arial, sans-serif !important;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-floating-buttons { bottom: max(16px, env(safe-area-inset-bottom)) !important; }

  .company-table, .transaction-table,
  .company-table tbody, .transaction-table tbody,
  .company-table tr, .transaction-table tr,
  .company-table th, .transaction-table th,
  .company-table td, .transaction-table td {
    display: block;
    width: 100% !important;
  }

  .company-table tr, .transaction-table tr {
    margin-bottom: 16px;
    border: 1px solid #d7e0e4;
    border-radius: 8px;
    overflow: hidden;
  }

  .company-table th, .company-table td,
  .transaction-table th, .transaction-table td {
    border: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .company-table th, .transaction-table th { border-bottom: 1px solid #d7e0e4 !important; }

  .site-utility-nav { gap: 4px; padding-inline: 10px; }
  .site-utility-nav__brand { font-size: .72rem; letter-spacing: .04em; }
  .site-utility-nav__link { padding-inline: 8px; font-size: .76rem; }

  /* The gourmet guide is an externally hosted application. On mobile,
     opening it directly is more reliable than squeezing it into an iframe. */
  .gourmet-embed { display: none !important; }
  .gourmet-mobile-link {
    display: flex;
    min-height: 52px;
    margin: 96px 20px 32px;
    padding: 14px 18px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1678b5;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }
}

.gourmet-mobile-link { display: none; }

@media (max-width: 768px) {
  body.gourmet-page { overflow: auto !important; }
  .gourmet-mobile-link { display: flex !important; }
}
