/* =====================================================================
   site-footer.css — the site footer (the block written by tools/site-chrome/site_footer.py).
   Five sections, the "Popular" links, the site line and the copyright line.
   Two looks for the five sections: cards (the first design; plain .hf-card) and the "trail" (round icons
   on one wavy line; .hf-card.hf-trail, at the end of this file). Every page is written with the trail since
   2026-11-30; the card rules stay because a Razor layout shows its old markup until the app is rebuilt.
   The file is linked from inside the <footer> itself, so every builder that copies a donor
   page's footer also carries the styles. Everything is scoped to .site-footer and uses its
   own colour tokens (no page variables needed). Sizes follow the site type scale. Prefix: hf-
   ===================================================================== */
.site-footer{
  --hf-purple:#7c3aed; --hf-pink:#ec4899; --hf-coral:#f97316; --hf-mint:#10b981; --hf-blue:#3b82f6;
  --hf-surface:#ffffff; --hf-soft:#f3f0ff; --hf-text:#1f1b3a; --hf-muted:#5b5878; --hf-border:rgba(124,58,237,.12);
  position:relative; margin-top:40px; font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif; line-height:1.5; color:var(--hf-text); text-align:left;
}
html[data-theme="dark"] .site-footer{ --hf-surface:#1a1540; --hf-soft:#151030; --hf-text:#f1efff; --hf-muted:#a8a2c9; --hf-border:rgba(167,139,250,.18); }
.site-footer *, .site-footer *::before, .site-footer *::after{ box-sizing:border-box; }
.site-footer .hf-wrap{ max-width:1280px; margin:0 auto; padding:0 24px 40px; }
.site-footer .hf-card{ position:relative; overflow:hidden; isolation:isolate; padding:48px; border:1px solid var(--hf-border); border-radius:24px;
  background:color-mix(in srgb,var(--hf-surface) 78%,transparent); -webkit-backdrop-filter:blur(20px) saturate(140%); backdrop-filter:blur(20px) saturate(140%);
  box-shadow:0 8px 24px -8px rgba(124,58,237,.18); }
.site-footer .hf-card::before{ content:""; position:absolute; left:0; right:0; top:0; height:4px;               /* moving brand line */
  background:linear-gradient(90deg,var(--hf-purple),var(--hf-pink),var(--hf-coral),var(--hf-mint),var(--hf-blue),var(--hf-purple));
  background-size:200% 100%; animation:hf-slide 14s linear infinite; }
.site-footer .hf-card::after{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;            /* two soft colour glows */
  background:radial-gradient(460px 240px at 6% 0%,color-mix(in srgb,var(--hf-purple) 13%,transparent),transparent 70%),
             radial-gradient(460px 260px at 97% 100%,color-mix(in srgb,var(--hf-pink) 12%,transparent),transparent 70%); }
@keyframes hf-slide{ to{ background-position:-200% 0; } }

/* section cards */
.site-footer .hf-hubs{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.site-footer .hf-hub{ --c1:var(--hf-purple); --c2:var(--hf-pink);
  position:relative; overflow:hidden; display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid transparent; border-radius:16px;
  color:var(--hf-text); text-decoration:none;
  background:linear-gradient(var(--hf-surface),var(--hf-surface)) padding-box,
             linear-gradient(135deg,color-mix(in srgb,var(--c1) 32%,transparent),color-mix(in srgb,var(--c2) 32%,transparent)) border-box;
  transition:transform .25s ease,box-shadow .25s ease; }
.site-footer .hf-hub > *{ position:relative; }
.site-footer .hf-hub::before{ content:""; position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .25s ease;   /* glow under the pointer */
  background:radial-gradient(200px circle at var(--mx,50%) var(--my,0%),color-mix(in srgb,var(--c1) 16%,transparent),transparent 70%); }
.site-footer .hf-hub::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px; transform:scaleX(0); transform-origin:left;
  background:linear-gradient(90deg,var(--c1),var(--c2)); transition:transform .3s ease; }
.site-footer .hf-ico{ display:grid; place-items:center; width:40px; height:40px; margin-bottom:6px; border-radius:12px; color:#fff;
  background:linear-gradient(135deg,var(--c1),var(--c2)); box-shadow:0 10px 18px -12px var(--c1); transition:transform .25s ease; }
.site-footer .hf-ico svg{ display:block; width:20px; height:20px; }
.site-footer .hf-go{ position:absolute; right:14px; top:14px; width:18px; height:18px; color:var(--c1); opacity:0; transform:translate(-6px,6px);
  transition:opacity .25s ease,transform .25s ease; }
.site-footer .hf-hub b{ font-size:1.0625rem; font-weight:700; line-height:1.3; }
.site-footer .hf-hub span:not(.hf-ico){ font-size:.9375rem; line-height:1.5; color:var(--hf-muted); }
.site-footer .hf-hub:hover, .site-footer .hf-hub:focus-visible{ transform:translateY(-4px);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--c1) 55%,transparent),0 18px 30px -20px var(--c1); }
.site-footer .hf-hub:hover::before, .site-footer .hf-hub:focus-visible::before{ opacity:1; }
.site-footer .hf-hub:hover::after, .site-footer .hf-hub:focus-visible::after{ transform:scaleX(1); }
.site-footer .hf-hub:hover .hf-ico, .site-footer .hf-hub:focus-visible .hf-ico{ transform:rotate(-6deg) scale(1.08); }
.site-footer .hf-hub:hover .hf-go, .site-footer .hf-hub:focus-visible .hf-go{ opacity:1; transform:none; }
.site-footer .hf-hub:active{ transform:translateY(-1px) scale(.99); }

/* popular links */
.site-footer .hf-label{ margin:24px 0 10px; padding:0; font-size:.9375rem; font-weight:600; color:var(--hf-muted); }
.site-footer .hf-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.site-footer .hf-chips li{ margin:0; padding:0; list-style:none; }
.site-footer .hf-chips a{ display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border:1px solid transparent; border-radius:999px;
  background:linear-gradient(var(--hf-surface),var(--hf-surface)) padding-box,linear-gradient(var(--hf-border),var(--hf-border)) border-box;
  color:var(--hf-text); font-size:.9375rem; font-weight:400; text-decoration:none; transition:transform .2s ease,color .2s ease,box-shadow .2s ease; }
.site-footer .hf-chips a::after{ content:"\2192"; display:inline-block; max-width:0; margin-left:0; opacity:0; overflow:hidden;
  transition:max-width .2s ease,margin-left .2s ease,opacity .2s ease; }
.site-footer .hf-chips a:hover, .site-footer .hf-chips a:focus-visible{ color:var(--hf-purple); transform:translateY(-2px);
  background:linear-gradient(var(--hf-soft),var(--hf-soft)) padding-box,linear-gradient(135deg,var(--hf-purple),var(--hf-pink)) border-box;
  box-shadow:0 10px 18px -14px var(--hf-purple); }
.site-footer .hf-chips a:hover::after, .site-footer .hf-chips a:focus-visible::after{ max-width:1.2em; margin-left:6px; opacity:1; }
.site-footer .hf-chips a:active{ transform:none; }

/* site line */
.site-footer .hf-bottom{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; margin-top:28px; padding-top:20px;
  border-top:1px solid transparent;
  border-image:linear-gradient(90deg,color-mix(in srgb,var(--hf-purple) 35%,transparent),color-mix(in srgb,var(--hf-pink) 35%,transparent),transparent) 1; }
.site-footer .hf-brand{ margin:0; padding:0; font-size:.9375rem; color:var(--hf-muted); }
.site-footer .hf-brand a{ font-family:'Fredoka','Inter',sans-serif; font-size:1.1875rem; font-weight:700; text-decoration:none;
  background:linear-gradient(135deg,var(--hf-purple),var(--hf-pink),var(--hf-blue)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.site-footer .hf-badge{ display:inline-block; vertical-align:middle; width:44px; height:42px; margin-right:10px; }   /* the round Bol badge */
.site-footer .hf-brand span::before{ content:"\00b7"; margin:0 8px; }
.site-footer .hf-links{ display:flex; flex-wrap:wrap; font-size:.9375rem; }
.site-footer .hf-links a{ position:relative; padding:6px 0; color:var(--hf-muted); font-weight:400; text-decoration:none;
  background:linear-gradient(90deg,var(--hf-purple),var(--hf-pink)) no-repeat 0 calc(100% - 3px) / 0 2px; transition:color .2s ease,background-size .25s ease; }
.site-footer .hf-links a + a{ margin-left:20px; }
.site-footer .hf-links a + a::before{ content:"\00b7"; position:absolute; left:-12px; color:var(--hf-muted); }
.site-footer .hf-links a:hover, .site-footer .hf-links a:focus-visible{ color:var(--hf-purple); background-size:100% 2px; }

/* copyright line */
.site-footer .hf-legal{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 24px; margin-top:14px;
  font-size:.8125rem; color:var(--hf-muted); }
.site-footer .hf-legal p{ margin:0; padding:0; }
.site-footer .hf-legal span::before{ content:"\00b7"; margin:0 8px; }
.site-footer .hf-legal p a{ color:inherit; font-weight:600; text-decoration:underline; }
.site-footer .hf-legal p a:hover{ color:var(--hf-purple); }
.site-footer .hf-social{ display:flex; gap:8px; }
.site-footer .hf-soc{ position:relative; overflow:hidden; display:grid; place-items:center; width:40px; height:40px; border-radius:10px;
  background:var(--hf-soft); color:var(--hf-muted); transition:color .2s ease,transform .2s ease,box-shadow .2s ease; }
.site-footer .hf-soc::before{ content:""; position:absolute; inset:0; opacity:0; transition:opacity .2s ease; background:linear-gradient(135deg,var(--hf-purple),var(--hf-pink)); }
.site-footer .hf-soc svg{ position:relative; width:16px; height:16px; }
.site-footer .hf-soc:hover, .site-footer .hf-soc:focus-visible{ color:#fff; transform:translateY(-3px); box-shadow:0 10px 18px -12px var(--hf-purple); }
.site-footer .hf-soc:hover::before, .site-footer .hf-soc:focus-visible::before{ opacity:1; }

.site-footer .hf-hub:focus-visible, .site-footer .hf-chips a:focus-visible, .site-footer .hf-links a:focus-visible,
.site-footer .hf-brand a:focus-visible, .site-footer .hf-legal a:focus-visible{ outline:2px solid var(--hf-purple); outline-offset:2px; border-radius:6px; }
.site-footer .hf-hub:focus-visible{ border-radius:16px; }
.site-footer .hf-chips a:focus-visible{ border-radius:999px; }

@media (max-width:1023px){ .site-footer .hf-hubs{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:767px){ .site-footer .hf-card{ padding:32px; } }
@media (max-width:640px){
  .site-footer .hf-wrap{ padding:0 16px 28px; }
  .site-footer .hf-card{ padding:20px; }
  .site-footer .hf-hubs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .site-footer .hf-bottom{ flex-direction:column; align-items:flex-start; }
  .site-footer .hf-links{ gap:2px 18px; }
  .site-footer .hf-links a + a{ margin-left:0; }
  .site-footer .hf-links a + a::before{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .site-footer .hf-card::before{ animation:none; }
  .site-footer .hf-hub, .site-footer .hf-hub::before, .site-footer .hf-hub::after, .site-footer .hf-ico, .site-footer .hf-go, .site-footer .hf-chips a,
  .site-footer .hf-chips a::after, .site-footer .hf-links a, .site-footer .hf-soc, .site-footer .hf-soc::before{ transition:none !important; }
  .site-footer .hf-hub:hover, .site-footer .hf-hub:focus-visible, .site-footer .hf-hub:active, .site-footer .hf-hub:hover .hf-ico, .site-footer .hf-hub:focus-visible .hf-ico,
  .site-footer .hf-chips a:hover, .site-footer .hf-chips a:focus-visible, .site-footer .hf-soc:hover, .site-footer .hf-soc:focus-visible{ transform:none; }
}
@media print{ .site-footer{ display:none; } }

/* =====================================================================
   The "trail" look (owner mockup, 2026-11-30), on .hf-card.hf-trail: the five sections are round icons on
   one wavy line, with no cards around them. The line is an inline <svg class="hf-wave"> stretched over the
   row: its peaks sit at the centre of each of the five equal columns, its dips half-way between them, where
   each section draws a small ring.
   Width: the 1280px page column (.hf-wrap above). A full-width footer and a flush one with no gutters were
   both tried on 2026-11-30 and dropped by the owner.
   ===================================================================== */
.site-footer .hf-trail{ --hf-ico:80px; padding-top:56px; }
.site-footer .hf-trail .hf-hubs{ position:relative; gap:0; grid-template-columns:repeat(5,minmax(0,1fr)); }

/* the line: as tall as an icon plus its halo, so the peak (50%) is the icon's centre */
.site-footer .hf-wave{ position:absolute; left:0; top:0; width:100%; height:calc(var(--hf-ico) + 16px); overflow:visible; pointer-events:none; }
.site-footer .hf-wave path{ fill:none; stroke:url(#hfWave); stroke-width:4; stroke-linecap:round; vector-effect:non-scaling-stroke; opacity:.85; }

/* a section: icon, name, one line */
.site-footer .hf-trail .hf-hub{ align-items:center; gap:4px; padding:8px 10px 6px; overflow:visible; border:0; border-radius:20px; background:none; text-align:center; }
.site-footer .hf-trail .hf-hub::before{ content:none; }
.site-footer .hf-trail .hf-hub::after{                                   /* the ring on the line, half-way to the next section */
  left:100%; right:auto; bottom:auto; top:calc((var(--hf-ico) + 16px) * .7083); width:18px; height:18px; margin:-9px 0 0 -9px;
  border:4px solid var(--hf-dot,var(--c2)); border-radius:50%; background:var(--hf-surface); transform:none; transition:transform .25s ease; }
.site-footer .hf-trail .hf-hub:last-child::after{ content:none; }
.site-footer .hf-trail .hf-hub:nth-child(3)::after{ --hf-dot:#fb923c; }   /* nth-child counts the <svg> before the links */
.site-footer .hf-trail .hf-hub:nth-child(4)::after{ --hf-dot:#6366f1; }
.site-footer .hf-trail .hf-hub:nth-child(5)::after{ --hf-dot:#84cc16; }
.site-footer .hf-trail .hf-ico{ width:var(--hf-ico); height:var(--hf-ico); margin:0 0 18px; border-radius:50%;
  box-shadow:0 0 0 8px color-mix(in srgb,var(--c1) 16%,var(--hf-surface)),0 18px 28px -14px var(--c1);
  transition:transform .25s ease,box-shadow .25s ease; }
.site-footer .hf-trail .hf-ico svg{ width:34px; height:34px; }
.site-footer .hf-trail .hf-go{ display:none; }
.site-footer .hf-trail .hf-hub b{ font-size:1.3125rem; line-height:1.3; transition:color .2s ease; }
.site-footer .hf-trail .hf-hub span:not(.hf-ico){ max-width:11em; font-size:1.0625rem; }

.site-footer .hf-trail .hf-hub:hover, .site-footer .hf-trail .hf-hub:focus-visible,
.site-footer .hf-trail .hf-hub:active{ transform:none; box-shadow:none; }
.site-footer .hf-trail .hf-hub:hover .hf-ico, .site-footer .hf-trail .hf-hub:focus-visible .hf-ico{ transform:translateY(-4px) scale(1.06);
  box-shadow:0 0 0 10px color-mix(in srgb,var(--c1) 24%,var(--hf-surface)),0 22px 30px -14px var(--c1); }
.site-footer .hf-trail .hf-hub:hover b, .site-footer .hf-trail .hf-hub:focus-visible b{ color:color-mix(in srgb,var(--c1) 80%,var(--hf-text)); }
.site-footer .hf-trail .hf-hub:hover::after, .site-footer .hf-trail .hf-hub:focus-visible::after{ transform:scale(1.25); }
.site-footer .hf-trail .hf-hub:focus-visible{ border-radius:20px; }

/* more room around the rows under the trail */
.site-footer .hf-trail .hf-label{ margin:40px 0 12px; font-size:1.0625rem; color:var(--hf-text); }
.site-footer .hf-trail .hf-chips{ gap:10px; }
.site-footer .hf-trail .hf-chips a{ min-height:44px; padding:0 16px; }
.site-footer .hf-trail .hf-bottom{ align-items:center; margin-top:48px; padding-top:24px; }

@media (max-width:1023px){
  .site-footer .hf-trail{ --hf-ico:64px; padding-top:44px; }
  .site-footer .hf-trail .hf-ico svg{ width:28px; height:28px; }
  .site-footer .hf-trail .hf-hub{ padding:8px 4px 6px; }
  .site-footer .hf-trail .hf-hub b{ font-size:1.0625rem; }
  .site-footer .hf-trail .hf-hub span:not(.hf-ico){ font-size:.9375rem; }
}
@media (max-width:767px){                                                 /* too narrow for five in a row: no line, a plain grid of icons */
  .site-footer .hf-trail{ padding-top:32px; }
  .site-footer .hf-wave, .site-footer .hf-trail .hf-hub::after{ display:none; }
  .site-footer .hf-trail .hf-hubs{ grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:22px; }
  .site-footer .hf-trail .hf-label{ margin-top:28px; }
  .site-footer .hf-trail .hf-bottom{ margin-top:32px; }
}
@media (max-width:640px){
  .site-footer .hf-trail{ padding-top:24px; }
  .site-footer .hf-trail .hf-hubs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .site-footer .hf-trail .hf-hub:last-child{ grid-column:1 / -1; }
  .site-footer .hf-trail .hf-bottom{ align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce){
  .site-footer .hf-trail .hf-ico, .site-footer .hf-trail .hf-hub b, .site-footer .hf-trail .hf-hub::after{ transition:none !important; }
  .site-footer .hf-trail .hf-hub:hover .hf-ico, .site-footer .hf-trail .hf-hub:focus-visible .hf-ico,
  .site-footer .hf-trail .hf-hub:hover::after, .site-footer .hf-trail .hf-hub:focus-visible::after{ transform:none; }
}
