/* ============================================================
   Felt Trainer - site-wide footer + related-links block.

   Stamped into every served page by scripts/gen-site-links.mjs (data in
   shared/site-links.js). Self-contained colors so it reads the same under
   the light editorial pages, the dark simulators, and the homepage, which
   does not load shared/styles.css.
   ============================================================ */

.seo-related {
  background: #efe3d2;
  border-top: 1px solid #cbbda8;
  padding: 34px 0 38px;
  color: #10272f;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.seo-related-inner { width: min(100% - 40px, 1120px); margin: 0 auto; }
.seo-related h2 {
  margin: 0 0 14px;
  font: 800 1.05rem/1.2 'Barlow Condensed', 'Manrope', system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase; color: #10272f;
}
.seo-related .seo-cross-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.seo-related .seo-cross-links a {
  display: inline-block; padding: 9px 14px;
  border: 1px solid #bcae9b; border-radius: 10px;
  background: rgba(255,250,240,.6); color: #10272f;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: color .16s, border-color .16s, background .16s;
}
.seo-related .seo-cross-links a:hover { color: #fff; border-color: #c03730; background: #c03730; }

.site-footer {
  background: #10272f;
  color: #d5dfe1;
  padding: 52px 0 40px;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .9rem;
  line-height: 1.55;
}
.site-footer-inner {
  width: min(100% - 40px, 1120px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr); gap: 40px 56px;
}
.site-footer-brand .site-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fffaf0; text-decoration: none;
  font: 800 1.25rem/1 'Barlow Condensed', 'Manrope', system-ui, sans-serif;
  letter-spacing: .02em; text-transform: uppercase;
}
.site-footer-brand .site-brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #c03730; color: #fff; font-size: .95rem;
  border: 2px solid rgba(255,255,255,.3);
}
.site-footer-brand p { margin: 16px 0 0; max-width: 34ch; color: #b8c6c9; }
.site-footer-math { font-size: .82rem; }
.site-footer-math a { color: #8bd2ca; }
.site-footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 28px 20px;
}
.site-footer-col h2 {
  margin: 0 0 10px;
  font: 800 .8rem/1.2 'Barlow Condensed', 'Manrope', system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: #fffaf0;
}
.site-footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer-col li { margin: 0 0 7px; }
.site-footer-col a { color: #d5dfe1; text-decoration: none; }
.site-footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 3px solid #8bd2ca; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 860px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .seo-related-inner, .site-footer-inner { width: min(100% - 28px, 1120px); }
  .site-footer { padding: 40px 0 32px; }
  .site-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .site-footer, .seo-related { display: none; }
}
