/* ==========================================================================
   Francis Davis Millet Institute - Sponsors & Contributors
   Requires tokens.css, base.css and lists.css (the split rows: heading left,
   names in three columns right), in that order.
   Template: page-sponsors-contributors.php. Figma: frame 249:712.

   The three lists need nothing from this file. It holds:
   1. A note under a name.
   2. The page column for Code Snippet 08's block, when the snippet prints it.
   ========================================================================== */

/* 1. Note under a name ----------------------------------------------------- */

/* A note an editor can add to a name ("Name | note" in the field), which the
   frame does not draw: it sits under the name, one size smaller and muted. */
.fdm-sponsors__note {
  display: block;
  font-size: var(--fdm-fs-16);
  line-height: var(--fdm-lh-16);
  color: var(--fdm-color-text-muted);
  overflow-wrap: break-word;
}

/* 2. Code Snippet 08's block ----------------------------------------------- */

/* The teammate's Code Snippet 08 prints its own lists on this page: a
   <div class="sc-body"> straight after our page title, outside .fdm-container,
   with an inline <style> that makes it full width with no side padding. Its
   intro, headings and names then started at the left edge of the window.
   This gives the block the column of .fdm-container (same width cap, same
   gutters at every width, centred), so it lines up under the h1. The
   snippet's own type and vertical spacing stay as they are.
   The snippet's <style> comes after this file, so the body class is there to
   outrank its one-class rules. Without the snippet nothing here matches. */
body.fdm-view-sponsors .sc-body {
  width: 100%;
  max-width: var(--fdm-page-max);
  margin-inline: auto;
  padding-inline: var(--fdm-gutter);
}

/* The snippet's intro stands in for our .fdm-lead (its style hides ours), so
   it sits where the lead would: 14px under the h1, 12px on phones, as in the
   title block of every page. Browsers without :has() keep 32px (20px). */
body.fdm-view-sponsors .fdm-page-head:has(~ .sc-body) {
  --fdm-page-head-pb: var(--fdm-space-14);
  --fdm-page-head-pb-phone: var(--fdm-space-12);
}
