/* Contact component: uses the site's existing dark/gold identity. */
.contact-header .nav { align-items: center; }
.contact-nav-link { padding: 7px 13px; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap; }
.nav .contact-nav-link::after { display: none; }
.contact-nav-link:hover { background: var(--gold-soft); }
.contact-trigger { font: inherit; cursor: pointer; }
.contact-dialog {
  width: min(760px, calc(100% - 40px)); max-width: none;
  max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0;
  color: var(--text); background: #11141a; border-radius: 12px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .48); overflow: auto;
  overscroll-behavior: contain; color-scheme: dark;
}
.contact-dialog::backdrop { background: rgba(0, 0, 0, .76); }
.contact-dialog [hidden] { display: none !important; }
html.contact-is-open { overflow: hidden; scrollbar-gutter: stable; }
.contact-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 40px; padding: 52px 40px 36px; }
.contact-close { position: absolute; top: 10px; right: 14px; min-height: 40px; padding: 0 10px; border: 0; color: #c7c5c1; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.contact-close:hover { color: var(--gold); }
.contact-intro { display: flex; flex-direction: column; align-items: flex-start; }
.contact-intro h2 { margin: 0 0 22px; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.contact-people { display: flex; gap: 8px; margin: -6px 0 20px; }
.contact-people button { min-height: 40px; padding: 0 17px; border: 1px solid #605a4d; border-radius: 4px; background: transparent; color: #c7c5c1; font: inherit; font-size: 14px; cursor: pointer; }
.contact-people button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.contact-people button:hover { color: var(--text); border-color: var(--gold); }
.contact-person { display: flex; align-items: center; gap: 13px; }
.contact-person img { width: 56px; height: 64px; object-fit: cover; object-position: center 18%; border-radius: 4px; }
.contact-person strong { display: block; font-size: 17px; font-weight: 600; }
.contact-person p { margin: 3px 0 0; font-size: 13px; color: #bdb6ab; }
.contact-note { margin: 22px 0 26px; font-size: 15px; color: #c7c5c1; }
.contact-account { width: 100%; margin-top: auto; }
.contact-account label { display: block; margin-bottom: 5px; font-size: 13px; color: #bdb6ab; }
.contact-id { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; outline-offset: 5px; background: transparent; color: var(--text); font: inherit; font-size: 25px; font-weight: 600; letter-spacing: .01em; }
.contact-copy { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 44px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #111; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.contact-copy:hover { background: #e6c16a; border-color: #e6c16a; }
.contact-copy:active { transform: translateY(1px); }
.contact-qr { margin: 0; text-align: center; }
.contact-qr img { display: block; width: 288px; height: 288px; max-width: 100%; border-radius: 4px; background: white; }
.contact-qr figcaption { margin-top: 13px; font-size: 14px; color: #c7c5c1; }
.contact-save { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.contact-status { min-height: 20px; margin: 7px 0 0; color: #c7c5c1; font-size: 12px; }
.contact-dialog :focus-visible, .contact-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.contact-dialog ::selection { color: #111; background: var(--gold); }
.contact-image-error { color: #c7c5c1; font-size: 14px; }
@media (min-width: 721px) { .contact-header .nav { flex-wrap: nowrap; } }
@media (min-width: 721px) and (max-width: 1100px) { .contact-header .brand-unit { display: none; } }
@media (max-width: 720px) {
  .contact-header .contact-nav-link { position: absolute; top: 18px; right: 20px; min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; }
  .contact-header .brand { padding-right: 100px; }
  .contact-header .brand-unit { display: none; }
  .contact-dialog { width: 100%; max-height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .contact-card { grid-template-columns: 1fr; gap: 12px; padding: 36px 24px max(18px, env(safe-area-inset-bottom)); }
  .contact-intro h2 { margin: 0 0 14px; font-size: 25px; }
  .contact-people { margin: -2px 0 14px; }
  .contact-person img { width: 40px; height: 46px; }
  .contact-person strong { font-size: 15px; }
  .contact-person p { font-size: 12px; }
  .contact-note { display: none; }
  .contact-account { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-top: 18px; }
  .contact-account label { grid-column: 1; margin: 0; font-size: 12px; }
  .contact-id { grid-column: 1; font-size: 22px; }
  .contact-copy { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 0 13px; }
  .contact-status { grid-column: 1 / -1; margin-top: 5px; }
  .contact-qr { justify-self: center; }
  .contact-qr img { width: min(248px, 68vw); height: auto; aspect-ratio: 1; }
  .contact-qr figcaption { margin-top: 10px; font-size: 13px; }
  .contact-save { min-height: 40px; }
}
@media (max-height: 600px) and (min-width: 560px) and (max-width: 720px) {
  .contact-card { grid-template-columns: minmax(0, 1fr) 180px; padding: 42px 20px 20px; gap: 20px; }
  .contact-qr img { width: 180px; }
  .contact-account { display: block; }
  .contact-copy { margin-top: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] { animation: contact-appear .2s ease-out; }
  @keyframes contact-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
