/* ==========================================================================
   6ixmerchandise — generic page, FAQ template, shared rich-text (§2.7, §2.8)
   Owner: FE-3. Depends on collection.css for the shared primitives.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Rich text — used by pages, articles and the collection body
   -------------------------------------------------------------------------- */

.sixm-rte { font-size: 15px; line-height: 1.7; color: var(--6m-ink); }
.sixm-rte > :first-child { margin-top: 0; }
.sixm-rte > :last-child { margin-bottom: 0; }
.sixm-rte p { margin: 0 0 16px; }

.sixm-rte h2,
.sixm-rte h3,
.sixm-rte h4 {
  font-family: var(--6m-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 32px 0 12px;
  color: var(--6m-ink);
}

.sixm-rte h2 { font-size: 30px; }
.sixm-rte h3 { font-size: 22px; }
.sixm-rte h4 { font-size: 18px; }

.sixm-rte a { color: var(--6m-ink); text-underline-offset: 2px; }
.sixm-rte a:hover { color: var(--6m-signal); }
.sixm-rte ul,
.sixm-rte ol { margin: 0 0 16px; padding-left: 1.25em; }
.sixm-rte li { margin: 0 0 6px; }
.sixm-rte img { max-width: 100%; height: auto; }
.sixm-rte blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--6m-signal);
  color: var(--6m-muted);
}
.sixm-rte table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sixm-rte th,
.sixm-rte td { border: 1px solid var(--6m-line); padding: 8px 10px; text-align: left; }
.sixm-rte code { font-family: var(--6m-mono); font-size: 0.9em; background: var(--6m-bg-2); padding: 1px 4px; }

/* --------------------------------------------------------------------------
   2. Generic page (§2.8) — 42rem prose column
   -------------------------------------------------------------------------- */

.sixm-page { padding-bottom: 80px; }

.sixm-page__article {
  max-width: var(--normal-content-width);
  margin: 0 auto;
  padding: 40px var(--6m-gutter) 0;
}

.sixm-page__header { margin-bottom: 32px; }

.sixm-page__title {
  font-family: var(--6m-display);
  font-weight: 400;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--6m-ink);
}

.sixm-page__pages { margin-top: 24px; font-size: 13px; }

@media screen and (min-width: 768px) {
  .sixm-page__article { padding-inline: 0; }
  .sixm-page { padding-inline: var(--6m-gutter); }
}

/* --------------------------------------------------------------------------
   3. FAQ page (§2.7) — centred 840px column
   -------------------------------------------------------------------------- */

.sixm-faq { padding: 48px 0; }

.sixm-faq__inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}

.sixm-faq__title {
  font-family: var(--6m-display);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px;
  color: var(--6m-ink);
}

.sixm-faq__intro {
  text-align: center;
  margin: 0 0 30px;
  color: #555;
  font-size: 15px;
}

.sixm-faq__intro p { margin: 0; }

/* The .sixm-faq__list / __item / __a rules live in collection.css so the imported
   collection bodies and this template share one definition (§6.4: the schema and the
   visible copy must never diverge, and neither must their styling). */

.sixm-faq .sixm-faq__item summary { font-size: 17px; }
.sixm-faq .sixm-faq__item { padding: 16px 2px; }
/* #888 = 3.54:1 on white; the +/- marker is text to a screen reader too. */
.sixm-faq .sixm-faq__item summary::after { font-size: 24px; color: var(--6m-muted); }
.sixm-faq .sixm-faq__a { padding: 12px 0 2px; color: #444; line-height: 1.65; }
.sixm-faq .sixm-faq__list { border-top: 1px solid #e7e7e7; margin-top: 0; }
.sixm-faq .sixm-faq__item { border-bottom-color: #e7e7e7; }
