/* Contact: direct contact first, compact social channels second.
   QR source files are the user's approved originals; never crop or regenerate. */
.contact-page {
  padding: clamp(64px, 5vw, 96px) var(--site-edge);
  background: #fafbf8;
}
.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(48px, 4.2vw, 80px);
  align-items: stretch;
  width: 100%;
  margin-inline: auto;
}
.contact-page__details { min-width: 0; }
.contact-page__heading {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9e0e4;
}
.contact-page__heading .eyebrow { margin: 0 0 12px; }
.contact-page__heading h2 { margin: 0; }
.contact-page__directory {
  display: grid;
  /* Keep every divider interval equal, including when the address wraps. */
  grid-auto-rows: 1fr;
  margin: 0;
}
.contact-page__directory > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  align-content: center;
  min-height: 72px;
  padding-block: 16px;
  border-bottom: 1px solid #e1e6e8;
}
.contact-page__directory > div:last-child { border-bottom: 0; }
.contact-page__directory dt { color: #607083; font: 400 16px/1.7 var(--body); }
.contact-page__directory dd { min-width: 0; margin: 0; color: #112c50; }
.contact-page__value {
  display: block;
  font: 500 19px/1.8 var(--body);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  user-select: text;
}
.contact-page__directory address { font: 400 19px/1.8 var(--body); overflow-wrap: anywhere; text-wrap: pretty; }
.contact-page__channels {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.contact-page__channels .contact-page__heading {
  /* The first code starts exactly on the left heading's divider baseline. */
  border-bottom: 0;
  margin-bottom: 0;
}
.contact-page__codes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, clamp(180px, 11.25vw, 214px)));
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  width: 100%;
}
.contact-code { min-width: 0; margin: 0; text-align: center; }
.contact-code__canvas {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  background: #fff;
}
.contact-code__canvas img {
  display: block;
  width: 82%;
  height: 82%;
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
  /* Do not animate or filter the scan target. */
  transform: none;
  filter: none;
}
/* The Douyin original already contains whitespace: optically match its code,
   while retaining every original pixel and the quiet area around the code. */
.contact-code--douyin .contact-code__canvas img { width: 98%; height: 98%; }
@media (max-width: 1360px) {
  /* Reflow before three readable scan targets and the address compete for space. */
  .contact-page__layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-page__channels { max-width: none; }
  .contact-page__codes { max-width: 648px; }
}
@media (max-width: 800px) {
  .contact-page { padding-block: 48px 56px; }
  .contact-page__heading { padding-bottom: 20px; }
  .contact-page__directory > div { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; min-height: 76px; padding-block: 18px; }
  .contact-page__value,
  .contact-page__directory address { font-size: 17px; }
  .contact-page__codes { gap: 20px; }
}
@media (max-width: 560px) {
  /* Keep each scan target readable after removing the visual captions. */
  .contact-page__codes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact-code { width: 176px; justify-self: center; }
}
@media (max-width: 360px) {
  .contact-code { width: 160px; }
}
