html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body .button { text-decoration: none; }
body .button.primary, body .button.primary:visited { background: #1d4ed8; color: #fff; text-decoration: none; }
body .button.primary:hover { background: #1e40af; color: #fff; }
body .button.primary:active { background: #1e3a8a; color: #fff; }
body .button.secondary, body .button.secondary:visited { background: #fff; color: #172d4b; text-decoration: none; }
body .button.secondary:hover { background: #e8f0ff; }
body .button.secondary:active { background: #dbe8fc; }
body .button:is(:disabled,[aria-disabled=true]) { background: #e2e8f0; color: #475569; opacity: 1; cursor: default; }
body .button:focus-visible, .mobile-nav summary:focus-visible { outline: 3px solid #1766cf; outline-offset: 3px; }
.legacy-mobile-nav { display: none; }
.site-header :is(.mobile-nav nav) { max-height: 65vh; max-height: 65dvh; overflow: auto; overscroll-behavior: contain; }
.search-dialog { max-height: min(75vh, 540px); max-height: min(75dvh, 540px, var(--visible-dialog-height, 540px)); overflow: auto; }
.contact-line-card img, .official-line-qr img, .home-contact-qr img { display: block; flex: none; aspect-ratio: 1; object-fit: contain; background: #fff; }
.contact-line-card img { padding: 8px; margin-block: 12px; }
.ios-review-list { display: grid; gap: 12px; margin: 20px 0; }
.ios-review-list article { min-width: 0; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; }
.ios-review-list label { display: grid; gap: 4px; margin: 8px 0; }
.ios-review-list input, .ios-review-list select { max-width: 100%; }
.ios-review-list button[aria-pressed="true"] { background: #1e40af; color: white; border-color: #1e40af; }
.ios-review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 18px; }
@media (max-width: 785px) {
  html { scroll-padding-top: 12px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(16px, 1em); }
  .site-header { position: relative; top: auto; padding-top: env(safe-area-inset-top, 0px); padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  .site-header .header-inner { flex-flow: row nowrap; align-items: center; min-height: 62px; padding-block: 6px; }
  .site-header .header-inner > nav, .site-header .header-actions > [data-search] { display: none; }
  .site-header .legacy-mobile-nav { display: block; position: relative; }
  .legacy-mobile-nav summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px 12px; color: #172d4b; background: #f1f5fb; border: 1px solid #a6b7cf; border-radius: 8px; font-weight: 700; list-style: none; cursor: pointer; }
  .legacy-mobile-nav summary::-webkit-details-marker { display: none; }
  .site-header .legacy-mobile-nav:not([open]) nav { display: none; }
  .site-header .legacy-mobile-nav nav { position: absolute; z-index: 5; inset: calc(100% + 6px) 0 auto auto; display: grid; width: min(230px, 78vw); gap: 0; padding: 8px; border: 1px solid #a6b7cf; border-radius: 10px; background: white; color: #172d4b; box-shadow: 0 10px 32px #0f172a30; }
  .legacy-mobile-nav a { padding: 9px; min-height: 42px; }
  .mobile-nav summary { min-width: 44px; min-height: 44px; }
  .mobile-nav nav .search-open { justify-content: center; margin-top: 5px; }
  .official-line, .home-contact-card, .contact-line-card { text-align: center; }
  .official-line-inner, .home-line-main { flex-direction: column; align-items: center; justify-content: center; }
  .official-line-qr, .home-contact-qr { padding: 12px; background: #fff; }
  .official-line-qr img, .home-contact-qr img { width: 132px; height: 132px; }
  .contact-line-card img { margin-inline: auto; }
  .home-contact-card .contact-line { justify-content: center; }
  .footer, .line-footer, .home-footer { padding-bottom: max(26px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 430px) { .image-comparison { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: auto; } }
