/*
 * support.css
 * Styles for the support article page only (views/supportArticle.ejs):
 * .shell, .crumb, .card, .eyebrow, article heading/intro/body, divider,
 * actions and buttons.
 *
 * Generic selectors that previously matched bare "h1", ".body" and
 * ".button" (risking collisions with other pages) are now scoped under
 * ".shell", the article's own wrapper, so they can only ever match inside
 * this page. No markup changes were needed for this since the class names
 * themselves (h1, body, button, button--primary, button--secondary) are
 * unchanged.
 */

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 92, 168, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(138, 35, 135, 0.11), transparent 30%),
    var(--cream);
  font-family: var(--body);
}

:root {
  --ticker-h: 23px;
}

body > main > .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body > main > .mobile-menu {
  position: fixed;
  top: var(--menu-h);
  left: 0;
  right: 0;
}

html.intro-pending body > main > .topbar > * {
  opacity: 1;
}

html.intro-pending body > main > .ticker {
  opacity: 1;
}

.shell {
  /*
   * This page previously carried its own local ":root" re-declaration of
   * the shared "--line" variable, softer than global.css's value (0.12
   * alpha vs. 0.22 alpha) — a pre-existing, likely-unintentional difference
   * from the homepage's borders. Because navbar.css also reads "--line" for
   * the shared topbar/mobile-menu, overriding it here leaked into the
   * navbar. It's now a page-scoped "--support-line" variable instead, used
   * only by this page's own .card/.divider, so the navbar always matches
   * home.ejs exactly.
   */
  --support-line: rgba(22, 11, 29, 0.12);
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--menu-h, 76px) + var(--ticker-h, 23px) + 32px) 0 64px;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(22, 11, 29, 0.74);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--support-line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(22, 11, 29, 0.08);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-image {
  margin: 0 0 22px;
}

.hero-image img {
  display: block;
  width: min(100%, 220px);
  max-height: 220px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(22, 11, 29, 0.1);
}

.shell h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.intro {
  margin: 22px 0 0;
  max-width: 48rem;
  color: rgba(22, 11, 29, 0.78);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
  font-weight: 700;
}

.divider {
  height: 1px;
  margin: 30px 0;
  background: var(--support-line);
}

.shell .body {
  display: grid;
  gap: 18px;
}

.shell .body > :first-child {
  margin-top: 0;
}

.shell .body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.72;
}

.shell .body h2,
.shell .body h3,
.shell .body h4 {
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
}

.shell .body h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.shell .body h3 {
  font-size: clamp(20px, 3vw, 28px);
}

.shell .body img {
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.shell .body img[data-align="left"] {
  margin-left: 0;
  margin-right: auto;
}

.shell .body img[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.shell .body img[data-align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.shell .body ul,
.shell .body ol {
  margin: 0;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.72;
}

.shell .body li + li {
  margin-top: 10px;
}

.shell .body strong {
  color: var(--ink);
}

.related-topics {
  margin-top: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.related-topics__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
}

.related-topics__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--support-line);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(22, 11, 29, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.related-topics__pill:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.shell .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.shell .button--primary {
  color: var(--ink);
  background: var(--yellow);
}

.shell .button--secondary {
  border: 1px solid rgba(22, 11, 29, 0.16);
  background: transparent;
}

@media (max-width: 640px) {
  :root {
    --ticker-h: 0px;
  }

  .shell {
    width: min(100% - 18px, 920px);
    padding-top: calc(var(--menu-h, 76px) + 16px);
    padding-bottom: 28px;
  }

  .card {
    border-radius: 24px;
    padding: 24px 18px;
  }

  .shell .body p {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
  }
}
