/* /support, since 2026-10-15: one centered column, at Husky's word. The heading and the Discord
   button, then the chat, which is the page, then the other addresses and the social accounts.
   The chat itself is chat.css's, the same panel the staff page draws; only its place is set here.
   Centered on purpose, against the direction's ranged-left default (check-site prints it as a
   soft finding): he asked for it. The messages inside the chat stay ranged by whose they are. */

.support {
  width: min(100%, 760px);
  margin-inline: auto;
}

.support-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 40px;
  text-align: center;
}

.support-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.support-hero .public-lead {
  max-width: 54ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
}

.support-hero .public-kicker { color: var(--accent); }

.support-mark {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: color var(--dur-120) var(--ease);
}
/* Colour only on hover, as every button here: the brand's mark takes the accent. */
.support .btn:hover .support-mark { color: var(--accent); }

.support-discord { padding: 12px 22px; font-size: var(--text-lg); }

/* The chat and a refusal above it keep their own ranging: a message sits left or right by whose it is. */
.support .chat { margin: 0; text-align: left; }
.support .chat-refusal { margin-bottom: var(--space-5); text-align: left; }

/* Etalon's answers carry its mark beside the message, once at the foot of a run of them. The mark is
   drawn from the brand file, so a message chat.js adds while the page is open carries it too. */
.support .chat-theirs {
  display: grid;
  grid-template-columns: 28px minmax(0, auto);
  column-gap: 10px;
  justify-items: start;
}
.support .chat-theirs::before {
  content: '';
  grid-row: 2;
  grid-column: 1;
  align-self: end;
  width: 28px;
  height: 28px;
  border: 1px solid var(--chrome);
  border-radius: 50%;
  background: var(--raised) url("/brand/etalon-mark.svg") center / 14px no-repeat;
}
.support .chat-theirs:has(+ .chat-theirs)::before { visibility: hidden; }
.support .chat-theirs > * { grid-column: 2; }
.support .chat-theirs .chat-meta { grid-row: 1; }
.support .chat-theirs .chat-body { grid-row: 2; }

.support-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-7);
}

.support-way {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 6px 16px;
  text-align: center;
}
.support-way + .support-way { border-inline-start: 1px solid var(--line); }
.support-way span { color: var(--muted); font-size: var(--text-sm); }
.support-way a {
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}

.support-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--quiet);
}

.support-social h2 {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.support-social ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-social .btn { padding: 9px 16px; font-size: var(--text-md); }

/* THE OPENING, as the home page's: each part rises 16px into place, 70 ms apart, the chat a beat
   later and slower, then the rest. Once per load, and not on a page that slid in from another page
   of the site (nav.js marks it), which has moved already. */
@media (prefers-reduced-motion: no-preference) {
  .support.public-shell { animation: none; }
  .support-hero > *,
  .support > .chat,
  .support > .chat-refusal,
  .support-ways,
  .support-social { animation: support-rise 700ms var(--ease) backwards; }
  .support-hero > :nth-child(2) { animation-delay: 70ms; }
  .support-hero > :nth-child(3) { animation-delay: 140ms; }
  .support-hero > :nth-child(4) { animation-delay: 210ms; }
  .support > .chat-refusal,
  .support > .chat { animation-duration: 900ms; animation-delay: 260ms; }
  .support-ways { animation-delay: 400ms; }
  .support-social { animation-delay: 470ms; }
  .slid-in .support-hero > *,
  .slid-in .support > * { animation: none; }
}
@keyframes support-rise { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 640px) {
  .support-hero { padding: 8px 0 32px; }
  .support-hero h1 { font-size: var(--text-verdict); }
  .support-ways { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .support-way + .support-way { border-inline-start: 0; padding-top: var(--space-5); border-top: 1px solid var(--line); }
}
