/* Shared ecosystem footer block (stamped by scripts/sync-shared.mjs). Adapts to light or dark footers. */
.sf { padding: 8px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem; line-height: 1.6; }
.sf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 28px; }
.sf-col--wide { grid-column: span 2; }
@media (max-width: 640px) { .sf-col--wide { grid-column: auto; } }
.sf-h { margin: 0 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.sf ul { list-style: none; margin: 0; padding: 0; }
.sf-col--wide ul { columns: 2 180px; column-gap: 32px; }
.sf li { margin: 0 0 4px; break-inside: avoid; }
.sf a { color: inherit; text-decoration: underline; text-decoration-color: rgba(127, 127, 127, 0.5); text-underline-offset: 2px; }
.sf a:hover, .sf a:focus-visible { text-decoration-color: currentColor; }
.sf [aria-current] { font-weight: 700; }
.sf-fine { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(127, 127, 127, 0.25); }
.sf-fine p { margin: 0 0 6px; }
.sf-fine strong { font-weight: 700; }
.sf-fine button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Accessibility: links inside running text must not rely on colour alone (WCAG 1.4.1) */
:where(main, footer) :where(p, li, td, dd, blockquote, figcaption, .hero-sub, .foot-byline) a:not([class]):not(:has(div, h1, h2, h3, h4, img)) {
  text-decoration: underline; text-underline-offset: 2px;
}
main a[style*="color"]:not([class]):not(:has(div, h1, h2, h3, h4, img)) { text-decoration: underline; text-underline-offset: 2px; }

/* LER.me ecosystem top bar (stamped by scripts/sync-shared.mjs on any page that lacks it) */
.top-banner { background: var(--navy, #0c1f33); color: #fff; padding: 9px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-banner .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.top-banner .tb-text { color: rgba(255,255,255,0.78); }
.top-banner .tb-text strong { color: #fff; font-weight: 600; }
.top-banner a.tb-link { color: var(--gold-bright, #d4a13f); font-weight: 600; text-decoration: none; }
.top-banner a.tb-link:hover { color: #fff; }
@media (max-width: 640px) { .top-banner { padding: 7px 0; font-size: 0.78rem; } .top-banner .top-inner { justify-content: center; gap: 8px; text-align: center; } }
