/* Shared footer surface: quiet woven paper, resolved from the active hub tokens. */
.site-footer.footer-textured {
  --footer-base: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --footer-ink: var(--ink);
  --footer-muted: var(--ink-soft);
  position: relative;
  isolation: isolate;
  background: var(--footer-base) !important;
  color: var(--footer-ink);
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 14%, transparent);
}
body[data-route="index"] .site-footer.footer-textured {
  --footer-base: var(--scene-surface);
  --footer-ink: var(--scene-ink);
  --footer-muted: var(--scene-muted);
}
.site-footer.footer-textured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--footer-ink) 4%, transparent) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, color-mix(in srgb, var(--footer-ink) 3%, transparent) 5px 6px),
    radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--footer-ink) 5%, transparent), transparent 70%);
}
.site-footer.footer-textured .footer-main {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) repeat(3,minmax(0,1fr));
  gap: 40px;
  padding-block: 56px 44px;
  background: none !important;
}
.site-footer.footer-textured .footer-main nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.site-footer.footer-textured .footer-main nav h2 {
  margin: 0 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .025em;
  color: var(--footer-muted);
}
.site-footer.footer-textured .footer-main nav :is(a,button) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color: var(--footer-ink);
  background: none;
}
.site-footer.footer-textured .footer-main nav :is(a,button):hover { text-decoration: underline; }
.site-footer.footer-textured .footer-identity { grid-column: auto; }
.site-footer.footer-textured .footer-identity p { color: var(--footer-muted); max-width: 26ch; margin-top: 16px; }
.site-footer.footer-textured .footer-bottom { color: var(--footer-muted); border-top: 1px solid color-mix(in srgb,var(--footer-ink) 12%,transparent); padding-block: 20px; }
@media(max-width:900px) {
  .site-footer.footer-textured .footer-main { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
  .site-footer.footer-textured .footer-identity { grid-column: 1/-1; }
}
@media(max-width:560px) {
  .site-footer.footer-textured .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 36px 28px; }
  .site-footer.footer-textured .footer-main nav { gap: 4px; }
  .site-footer.footer-textured .footer-main nav:last-child { grid-column: 1/-1; }
  .site-footer.footer-textured .footer-main nav :is(a,button) { min-height: 44px; }
}
