/* ============================================================
   templates/magazine.css
   The /magazine/ page only (DECISIONS 2026-12-03, magazine entry).

   Enqueued by holod_magazine_enqueue() in inc/design-system.php on the page whose slug is `magazine`,
   and every rule is scoped again under the body class `.holod-page-magazine`: the double guard
   advertise.css explains. Classes are `holod-mag-*`: one page, not the design system.

   The prose (h2, h3, p) is the article layer's own (templates/single.css). This file adds the form
   card, the covers row, the call to action and the FAQ spacing, from tokens only.
   ============================================================ */

.holod-page-magazine .holod-mag__lede {
  font-size: 18px;
  color: var(--rfi-text-2);
  margin-bottom: 8px;
}

/* ---- the form card ----------------------------------------
   The form is the register tab's own component (register-form.php). Inside the article, the prose
   layer (templates/single.css:210, `.rfi-article__body p` at 17px with an 18px margin) outranks the
   form's own rules (`.rfi-legal` and friends, components/forms.css), which is what made the consent
   sentence render larger than on the register tab. The rules below restore forms.css's values for
   the form's paragraphs, so the two places look the same.                                       */

.holod-page-magazine .holod-mag__formcard {
  background: var(--rfi-navy-tint);
  border-radius: var(--rfi-radius);
  padding: var(--rfi-pad-panel);
  margin: 18px 0 12px;
}
.holod-page-magazine .rfi-article__body .holod-mag__formh { margin: 0 0 14px; }
.holod-page-magazine .holod-mag__formcard .rfi-form { max-width: 420px; gap: 12px; }
.holod-page-magazine .holod-mag__formcard .rfi-input { background: var(--rfi-surface); }
.holod-page-magazine .holod-mag__formcard .rfi-btn { align-self: flex-start; }
.holod-page-magazine .rfi-article__body .holod-mag__formcard .rfi-legal {
  margin: 0; font-size: 13px; line-height: 1.5; color: var(--rfi-text-3);
}
.holod-page-magazine .rfi-article__body .holod-mag__formcard .rfi-field__hint {
  margin: -8px 0 0 24px; font-size: 12.5px; line-height: 1.4; color: var(--rfi-text-2);
}
.holod-page-magazine .rfi-article__body .holod-mag__formcard .rfi-authform__msg {
  margin: 0 0 12px; font-size: 13.5px; line-height: 1.45;
}
.holod-page-magazine .rfi-article__body .holod-mag__formcard .rfi-authdone p {
  margin: 0; font-size: 15px; line-height: 1.55;
}
.holod-page-magazine .rfi-article__body .holod-mag__formcard .rfi-authdone .rfi-legal { font-size: 13px; color: var(--rfi-text-2); }
.holod-page-magazine .holod-mag__under {
  font-size: 15px;
  color: var(--rfi-text-2);
}

/* ---- the covers -------------------------------------------
   One row on wide screens. The covers are landscape (the magazine's pages are), so on a phone
   four go 2x2 and three stack in one column, where each stays large enough to read its masthead. */

.holod-page-magazine .holod-mag__covers { margin: 22px 0 8px; }
.holod-page-magazine .rfi-article__body .holod-mag__grid {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.holod-page-magazine .holod-mag__grid--n3 { grid-template-columns: repeat(3, 1fr); }
.holod-page-magazine .holod-mag__grid--n4 { grid-template-columns: repeat(4, 1fr); }
.holod-page-magazine .rfi-article__body .holod-mag__grid li { margin: 0; }
.holod-page-magazine .holod-mag__grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rfi-radius-sm);
  box-shadow: var(--rfi-shadow);
}
.holod-page-magazine .holod-mag__covers figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--rfi-text-2);
}

/* ---- the call to action (advertise.css's button, its own scope) */

.holod-page-magazine .holod-mag__cta { margin: 18px 0 6px; }
.holod-page-magazine .rfi-article__body .holod-mag__cta a {
  display: inline-block;
  background: var(--rfi-teal);
  color: var(--rfi-inverse);
  font-family: var(--rfi-font-ui);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--rfi-radius-sm);
}
.holod-page-magazine .rfi-article__body .holod-mag__cta a:hover {
  background: var(--rfi-navy);
  color: var(--rfi-inverse);
}
.holod-page-magazine .holod-mag__alt { font-size: 15px; color: var(--rfi-text-2); }

/* ---- FAQ ---------------------------------------------------- */

.holod-page-magazine .holod-mag__faq h3 { font-size: 17px; margin: 20px 0 6px; }

@media (max-width: 768px) {
  .holod-page-magazine .holod-mag__formcard { padding: 16px; }
  .holod-page-magazine .holod-mag__formcard .rfi-form { max-width: none; }
  .holod-page-magazine .holod-mag__formcard .rfi-btn { align-self: stretch; }
  .holod-page-magazine .holod-mag__grid--n3 { grid-template-columns: 1fr; }
  .holod-page-magazine .holod-mag__grid--n4 { grid-template-columns: repeat(2, 1fr); }
}
