/* ============================================================
   components/advertise.css
   The /advertise/ page: reach cards, the job-function donut, the
   geography bars, and the media-kit form.

   THE MARKUP FOR THE FIRST THREE LIVES IN post_content, because the
   advertise copy is edited in the admin and the blocks are part of that
   copy. The styling does NOT: it lives here, so an editor can move a
   block without carrying styles around with it, and so a colour changes
   in one place. That split is the reason every rule below is keyed on a
   class the content carries and never on element position.

   Colours are TOKENS, not the prototype's raw hexes. The prototype was
   drawn standalone and invented its own palette; on the real site navy
   and teal already mean something, and a second navy would read as a
   mistake next to the first.
   ============================================================ */

/* ---------- lede and the two calls to action ---------- */

.rfi-adv-lede {
  font-size: 17.5px; line-height: 1.5; color: var(--rfi-text-2);
  margin: 0 0 24px; max-width: var(--rfi-measure);
}

.rfi-adv-ctarow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 8px; }

/* Sized like .rfi-btn but taller, because these two are the page's own top-level actions
   rather than a control inside a form. */
.rfi-adv-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px;
  background: var(--rfi-teal); color: var(--rfi-inverse);
  border: 1px solid var(--rfi-teal); border-radius: var(--rfi-radius);
  font-family: var(--rfi-font-ui); font-size: 15.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.rfi-adv-cta:hover { background: var(--rfi-teal-dark); border-color: var(--rfi-teal-dark); color: var(--rfi-inverse); }

.rfi-adv-cta--ghost { background: none; color: var(--rfi-navy); border-color: var(--rfi-border); }
.rfi-adv-cta--ghost:hover { background: var(--rfi-surface); color: var(--rfi-navy); border-color: var(--rfi-border); }

/* ---------- section eyebrow ---------- */

.rfi-adv-eyebrow {
  font-family: var(--rfi-font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--rfi-navy);
  margin: 34px 0 12px;
}

/* ---------- reach cards ---------- */

.rfi-adv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 8px; }

.rfi-adv-card {
  background: var(--rfi-navy-tint); border-left: 5px solid var(--rfi-navy);
  border-radius: var(--rfi-radius-xs); padding: 16px 18px;
  display: flex; flex-direction: column;
}
.rfi-adv-card__n {
  font-family: var(--rfi-font-ui); font-size: 25px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--rfi-navy);
  font-variant-numeric: tabular-nums;
}
.rfi-adv-card__l { font-size: 12.5px; line-height: 1.35; color: var(--rfi-text-2); margin-top: 5px; }

/* ---------- who reads us: donut + legend ---------- */

.rfi-adv-split { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin: 6px 0 0; }
.rfi-adv-donut { display: block; max-width: 100%; height: auto; }
.rfi-adv-donut__n { font-size: 5.4px; font-weight: 600; fill: var(--rfi-text); font-family: var(--rfi-font-ui); }
.rfi-adv-donut__c { font-size: 2.4px; fill: var(--rfi-text-3); font-family: var(--rfi-font-ui); }

.rfi-adv-legend div { display: flex; align-items: baseline; gap: 9px; margin-bottom: 11px; font-size: 14px; }
.rfi-adv-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; flex: none; position: relative; top: 2px; }
.rfi-adv-legend b { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }

/* ---------- geography bars ---------- */

.rfi-adv-bar { display: grid; grid-template-columns: 150px 1fr 46px; align-items: center; gap: 12px; margin-bottom: 10px; }
.rfi-adv-bar__l { font-size: 14px; }
.rfi-adv-bar__t { background: var(--rfi-surface); border-radius: var(--rfi-radius-xs); height: 20px; display: block; overflow: hidden; }
.rfi-adv-bar__f { display: block; height: 20px; background: var(--rfi-navy); border-radius: var(--rfi-radius-xs); }
.rfi-adv-bar__f--pale { background: var(--rfi-navy-tint); border: 1px solid var(--rfi-border); }
.rfi-adv-bar__v { font-size: 13.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.rfi-adv-cap { font-size: 12.5px; color: var(--rfi-text-3); margin: 10px 0 0; }

/* ---------- the deadline note ---------- */

.rfi-adv-deadline {
  background: var(--rfi-partner-tint, var(--rfi-surface));
  border: 1px solid var(--rfi-border);
  border-left: 4px solid var(--rfi-orange, var(--rfi-navy));
  border-radius: var(--rfi-radius); padding: 14px 16px; margin: 16px 0 0; font-size: 14.5px;
}

/* ============================================================
   The media-kit form. Deliberately close to .rfi-contactform: two forms
   that behave the same should look the same, and a visitor who has seen
   one should not have to read the other.
   ============================================================ */

.rfi-mkform {
  background: var(--rfi-surface); border: 1px solid var(--rfi-border);
  border-radius: var(--rfi-radius); padding: 26px 28px; margin: 32px 0;
  scroll-margin-top: 24px;
}
.rfi-mkform__title { font-family: var(--rfi-font-ui); font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.rfi-mkform__lede { font-size: 14px; color: var(--rfi-text-2); margin: 0 0 18px; }

.rfi-mkform__row { margin: 0 0 15px; }
.rfi-mkform__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rfi-mkform__label {
  display: block; font-family: var(--rfi-font-ui); font-size: 13px; font-weight: 500;
  color: var(--rfi-text-2); margin: 0 0 6px;
}
.rfi-mkform__opt { font-weight: 400; color: var(--rfi-text-3); }
.rfi-mkform__ta { min-height: 86px; padding-top: 11px; resize: vertical; }

.rfi-mkform__err { color: var(--rfi-orange-text, #B3261E); font-size: 13px; margin: 6px 0 0; }
.rfi-input.is-error { border-color: var(--rfi-orange-text, #B3261E); }

/* Off-canvas, not display:none: a bot that skips hidden fields would skip this one too. */
.rfi-mkform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rfi-mkform__submit { margin-top: 4px; }
.rfi-mkform__legal { font-size: 12.5px; color: var(--rfi-text-3); margin: 12px 0 0; }

.rfi-mkform__ok { background: var(--rfi-brandfill-bg, var(--rfi-navy-tint)); border: 1px solid var(--rfi-border); border-radius: var(--rfi-radius); padding: 18px 20px; }
.rfi-mkform__oktitle { font-family: var(--rfi-font-ui); font-weight: 600; margin: 0 0 5px; }
.rfi-mkform__ok span { display: block; font-size: 14px; color: var(--rfi-text-2); }
.rfi-mkform__small { margin-top: 7px; font-size: 13px; }

/* ---------- narrow screens ----------
   The four-up card row and the two-up donut split are the only things here that cannot
   survive a phone. Everything else already reflows. */
@media (max-width: 768px) {
  .rfi-adv-cards { grid-template-columns: repeat(2, 1fr); }
  .rfi-adv-split { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .rfi-adv-legend { width: 100%; }
  .rfi-adv-bar { grid-template-columns: 110px 1fr 42px; gap: 8px; }
  .rfi-mkform { padding: 20px 18px; }
  .rfi-mkform__pair { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .rfi-adv-cards { grid-template-columns: 1fr; }
}
