/* ---- rn-foot v2 (owner request 2026-09-20): the Regulatory News footer.
   One stylesheet, loaded from templates/footer.html, so every page (articles, hubs, hand pages, the
   front page) takes the same footer from one source. It sits on top of the older footer rules in
   news.css / article.css / the shell, which is why every selector starts `footer.rnf`.
   Four bands: the Briefing sign-up, the link groups, how we report, and the signature + legal row.
   Phones: the link groups are laid out by the estate-foot block (owner ruling 2026-09-16, a
   two-column ledger with !important throughout), so the grid rules here start at 769px and only
   the bands this file adds are styled below that. ---- */

footer.rnf { background: #ffffff; border-top: 1px solid var(--border, #e2e8f0); }
footer.rnf > .container { padding-top: clamp(36px, 4.5vw, 60px); }

/* ---------- 1. The Briefing ---------- */
footer.rnf .rnf-briefing {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: clamp(34px, 3.8vw, 52px) clamp(24px, 3.6vw, 56px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px -30px rgba(11, 13, 16, 0.55), 0 0 60px -24px rgba(47, 220, 128, 0.45);
}
/* The newsletter is the one place the site goes dark: the pulse surface comes from briefing.css
   (.rnb-pulse), so the pop-up, the Briefing's page and this band are one piece of branding. */
footer.rnf .rnf-briefing .rnb-trace { top: 0; height: 46px; opacity: 0.75; }
footer.rnf .rnf-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; }
footer.rnf .rnf-kicker i { font-style: normal; color: var(--pulse, #2fdc80); }
footer.rnf .rnf-eyebrow { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pulse, #2fdc80); }
footer.rnf .rnf-briefing-title { margin: 10px 0 0; font-family: var(--serif, "DM Serif Display", Georgia, serif); font-weight: 400; font-size: clamp(26px, 2.5vw, 35px); line-height: 1.1; letter-spacing: -0.005em; color: #fff; }
footer.rnf .rnf-briefing-title em { display: block; font-style: italic; color: var(--pulse, #2fdc80); }
footer.rnf .rnf-briefing-sub { margin: 12px 0 0; max-width: 40em; font-size: 15.5px; line-height: 1.6; color: #d6dae1; }
footer.rnf .rnf-briefing-form form { margin: 0; }
footer.rnf .rnf-briefing .rnb-done { margin: 0; }
footer.rnf .rnf-fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: #8f99a8; }
footer.rnf .rnf-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer.rnf .rnf-fine a:hover { color: #fff; }
/* Where the page already carries the sign-up (the front page's band, the Briefing's own pages),
   the footer does not ask a second time. */
body:has(#newsletter) footer.rnf .rnf-briefing,
body:has(main[data-briefing]) footer.rnf .rnf-briefing,
body:has(.bp-note) footer.rnf .rnf-briefing { display: none; }

/* ---------- 2. The link groups (769px up; phones belong to estate-foot) ---------- */
@media (min-width: 769px) {
  footer.rnf .footer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px clamp(20px, 2.4vw, 36px);
    padding-bottom: clamp(36px, 4vw, 52px);
  }
  footer.rnf .footer-brand {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px clamp(24px, 3vw, 48px);
    padding-bottom: 32px; border-bottom: 1px solid var(--border, #e2e8f0);
  }
  footer.rnf .footer-brand-link { margin-bottom: 0; }
  footer.rnf .footer-tag { margin: 0; max-width: 56ch; }
  footer.rnf .footer-col { border-left: 0; padding-left: 0; min-width: 0; }
}
@media (min-width: 1240px) {
  footer.rnf .footer-grid { grid-template-columns: minmax(280px, 1.55fr) repeat(5, minmax(0, 1fr)); }
  footer.rnf .footer-brand { grid-column: auto; display: block; padding: 0 clamp(16px, 2vw, 36px) 0 0; border-bottom: 0; }
  footer.rnf .footer-brand-link { margin-bottom: 18px; }
  footer.rnf .footer-tag { margin: 0 0 20px; max-width: 34ch; }
}
footer.rnf .footer-tag { font-size: 14.5px; line-height: 1.65; color: var(--text-muted, #4a5568); }
footer.rnf .footer-col h4 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-deep, #23262b);
}
@media (min-width: 769px) {
  footer.rnf .footer-col h4::before { content: ""; flex: 0 0 auto; width: 14px; height: 2px; background: #0d9f4a; }
  footer.rnf .footer-col-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; justify-items: start; }
  footer.rnf .footer-col-links a {
    position: relative;
    font-size: 14.5px; line-height: 1.35; color: var(--text-muted, #4a5568); text-decoration: none;
    background-image: linear-gradient(var(--accent, #106d37), var(--accent, #106d37));
    background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
    transition: color 0.18s ease, background-size 0.22s ease;
  }
  footer.rnf .footer-col-links a:hover,
  footer.rnf .footer-col-links a:focus-visible { color: var(--accent, #106d37); background-size: 100% 1px; }
}
footer.rnf .footer-col-links a:focus-visible,
footer.rnf .rnf-standards a:focus-visible,
footer.rnf .footer-legal a:focus-visible,
footer.rnf .rnf-top:focus-visible,
footer.rnf .footer-social:focus-visible { outline: 2px solid var(--accent, #106d37); outline-offset: 3px; border-radius: 2px; }

footer.rnf .footer-social-row { display: flex; flex-wrap: wrap; gap: 10px; }
footer.rnf .footer-social {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border-strong, #cbd5e0); background: #fff;
  color: var(--ink, #33373f); text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
footer.rnf .footer-social--wide { width: auto; padding: 0 15px 0 13px; font-size: 13px; font-weight: 700; }
footer.rnf .footer-social:hover { color: var(--accent, #106d37); border-color: var(--accent, #106d37); transform: translateY(-1px); }

/* ---------- 3. How we report ---------- */
footer.rnf .rnf-standards {
  list-style: none; margin: 0; padding: 26px 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--border, #e2e8f0);
}
footer.rnf .rnf-standards li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.6; color: var(--text-muted, #4a5568); }
footer.rnf .rnf-standards svg { margin-top: 2px; color: var(--accent, #106d37); }
footer.rnf .rnf-standards strong { color: var(--ink-deep, #23262b); font-weight: 700; }
footer.rnf .rnf-standards a { color: var(--accent, #106d37); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(16, 109, 55, 0.35); text-underline-offset: 3px; }
footer.rnf .rnf-standards a:hover { text-decoration-color: currentColor; }

/* ---------- 4. Signature and legal ---------- */
footer.rnf .rnf-sign {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding: clamp(26px, 3.4vw, 44px) 0 clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--border, #e2e8f0);
}
footer.rnf .rnf-promise {
  margin: 0;
  font-family: var(--serif, "DM Serif Display", Georgia, serif); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--ink-deep, #23262b);
}
footer.rnf .rnf-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong, #cbd5e0); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink, #33373f); text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
footer.rnf .rnf-top:hover { color: var(--accent, #106d37); border-color: var(--accent, #106d37); }
footer.rnf .rnf-top:hover svg { transform: translateY(-2px); }
footer.rnf .rnf-top svg { transition: transform 0.18s ease; }
footer.rnf .footer-legal {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px;
  padding: 16px 0 24px; border-top: 1px solid var(--border, #e2e8f0);
}
/* #5d6a80: 5.6:1 on white. */
footer.rnf .footer-legal p { margin: 0; font-size: 13px; line-height: 1.6; color: #5d6a80; }
footer.rnf .footer-legal a { color: #5d6a80; text-decoration: underline; text-decoration-color: var(--border-strong, #cbd5e0); text-underline-offset: 2px; }
footer.rnf .footer-legal a:hover { color: var(--accent, #106d37); }

/* ---------- Phones: only the bands this file adds ---------- */
@media (max-width: 768px) {
  footer.rnf .rnf-briefing { grid-template-columns: minmax(0, 1fr); gap: 20px; border-radius: 8px; margin-bottom: 36px; }
  footer.rnf .rnf-briefing .rnb-field { flex-direction: column; }
  footer.rnf .rnf-briefing .rnb-field button { margin: 0 4px 4px; padding: 13px 20px; }
  footer.rnf .footer-grid { padding-bottom: 32px; }
  footer.rnf .rnf-standards { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  footer.rnf .rnf-sign { align-items: flex-start; flex-direction: column; }
  footer.rnf .footer-legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  footer.rnf .footer-col-links a, footer.rnf .footer-social, footer.rnf .rnf-top, footer.rnf .rnf-top svg { transition: none; }
}
@media print { footer.rnf .rnf-briefing, footer.rnf .rnf-top { display: none; } }
