/* Shared widget. Bump the same ?v= value on widget CSS and scripts in all pages
   when deploying changes, so cached assets cannot mix different versions. */
.contact-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  font-size: 15px;
  line-height: 1.5;
}
.contact-widget [hidden] { display: none !important; }
.contact-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-left: auto;
  padding: 12px 18px;
  border: 1px solid var(--light);
  border-radius: 28px;
  background: var(--ink);
  color: var(--light);
  box-shadow: 0 4px 16px #113d3c25;
  cursor: pointer;
  font-size: 14px;
}
.contact-launcher:hover { background: var(--sea); }
.contact-panel {
  width: min(366px, calc(100vw - 32px - env(safe-area-inset-right)));
  max-height: calc(100vh - 98px);
  max-height: calc(100dvh - 98px - env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 8px 30px #113d3c25;
  overflow-wrap: anywhere;
}
.contact-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding: 0 8px;
  background: var(--light);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .04em;
}
.contact-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.contact-close:hover { background: var(--sage); }
.contact-content { padding: 4px 22px 22px; }
.contact-panel h2 { text-align: center; font-size: 29px; margin: 0 0 12px; line-height: 1.15; }
.contact-panel .contact-intro { text-align: center; margin: 0 0 18px; font-size: 14px; }
.contact-options { display: grid; gap: 9px; }
.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.contact-option:hover { background: var(--mist); color: var(--ink); border-color: var(--sea); }
.contact-option > svg { flex-shrink: 0; }
.contact-option > svg:last-child { width: 16px; height: 16px; margin-left: auto; }
.contact-option-text { min-width: 0; }
.contact-option strong { display: block; font-size: 14px; }
.contact-option-text > span { display: block; font-size: 12px; color: var(--text); margin-top: 2px; }
.contact-widget .contact-privacy { text-align: left; font-size: 12px; line-height: 1.55; margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.contact-back { display: flex; align-items: center; gap: 7px; min-height: 44px; margin: -10px 0 10px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; }
.contact-back svg { width: 17px; height: 17px; }
.contact-back:hover { text-decoration: underline; }
.contact-qr-card { width: fit-content; margin: 0 auto 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#enw-qr { width: 174px; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.contact-panel .contact-number { font-size: 23px; font-weight: 700; text-align: center; color: var(--ink); margin: 12px 0; letter-spacing: .02em; user-select: text; }
.contact-copy { width: 100%; }
.contact-panel .contact-status { font-size: 12px; line-height: 1.5; margin: 6px 0; }
.contact-panel .contact-status:empty { min-height: 0; height: 0; margin: 0; }
.contact-panel .contact-hint { font-size: 12px; margin: 0; text-align: center; }
.contact-panel .contact-call-note { text-align: center; font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.contact-subpanel .contact-intro { margin-bottom: 12px; }
.contact-subpanel .contact-number { margin: 10px 0; }
.contact-subpanel .contact-hint { margin-top: 8px; }
.contact-subpanel .contact-back { margin-bottom: 6px; }
.contact-app { margin-top: 4px; display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; }
/* Headings receive focus for orientation, but are not interactive controls.
   Keep the site focus-visible styles on every button and link. */
.contact-panel h2:focus { outline: none; }
/* Ensure the last footer links can be scrolled clear of the launcher. */
body { padding-bottom: 88px; }
@media (max-width: 600px) {
  .contact-launcher { width: 54px; height: 54px; padding: 0; }
  .contact-launcher span { display: none; }
  .contact-content { padding: 4px 18px 18px; }
}
@media print { body { padding-bottom: 0; } }

/* Email fits within the same panel; copying uses no external service. */
.contact-email-panel .contact-number{font-size:clamp(16px,5.5vw,20px);letter-spacing:0;overflow-wrap:anywhere}
.contact-copy-fallback{position:fixed;left:0;top:0;width:1px;height:1px;opacity:0}
