/* MindzEye overlay: footer layout + sticky Donate bar. Move into the site's own CSS when the source is available. */
@media (min-width:901px){
  .footer-inner{grid-template-columns:.72fr 1.5fr 1fr;grid-template-rows:auto auto 1fr auto;align-items:start}
  .footer-brand{grid-column:1;grid-row:1/4;align-self:center}
  .footer-mission{grid-column:2;grid-row:1/4;align-self:center}
  .footer-inner>.footer-follow{display:contents}
  .footer-follow>.footer-label,.footer-follow>.socials,.footer-follow>.legal{grid-column:3;border-left:1px solid var(--line);padding-inline:clamp(18px,3vw,40px);margin:0;align-self:stretch}
  .footer-follow>.footer-label{grid-row:1;padding-top:10px;padding-bottom:14px}
  .footer-follow>.socials{grid-row:2}
  .footer-follow>.legal{grid-row:3;display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px 22px;padding-top:18px;padding-bottom:10px}
  .footer .newsletter{grid-column:1/-1;grid-row:4;margin-top:34px;padding:24px clamp(18px,3vw,40px);border:1px solid var(--line);border-radius:18px;background:rgba(9,19,38,.6);
    display:grid;grid-template-columns:minmax(240px,.8fr) 2fr;grid-template-areas:"t f" "c f" "m m";column-gap:clamp(24px,4vw,56px);row-gap:4px;align-items:center}
  .footer .newsletter>.footer-label{grid-area:t;align-self:end}
  .footer .newsletter>.nl-copy{grid-area:c;align-self:start}
  .footer .newsletter>.nl-fields{grid-area:f;grid-template-columns:1fr 1.35fr auto;align-items:center}
  .footer .newsletter>.nl-fields .btn{min-width:120px}
  .footer .newsletter>.nl-msg{grid-area:m;min-height:0}
  .footer .newsletter>.nl-msg:empty{display:none}
  .footer-bottom{margin-top:26px}
}
@media (min-width:561px) and (max-width:900px){
  .footer-inner{grid-template-columns:minmax(200px,.7fr) 1.3fr}
  .footer-inner>.footer-brand{grid-column:1}
  .footer-inner>.footer-mission{grid-column:2;border-top:0;margin-top:0;padding-top:10px;border-left:1px solid var(--line)}
  .footer-inner>.footer-follow{grid-column:1/-1;display:grid;grid-template-columns:minmax(200px,.7fr) 1.3fr;column-gap:clamp(18px,3vw,40px);grid-template-areas:"l n" "s n" "g n"}
  .footer-follow>.footer-label{grid-area:l}
  .footer-follow>.socials{grid-area:s}
  .footer-follow>.legal{grid-area:g}
  .footer-follow>.newsletter{grid-area:n;margin-top:0}
}
.mz-donate{display:none}
@media (max-width:1040px){
  .mz-donate{position:fixed;inset:auto 0 0;z-index:44;display:flex;align-items:center;justify-content:space-between;gap:14px;
    padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom));background:#050b1a;border-top:1px solid var(--line-strong);box-shadow:0 -12px 30px -14px rgba(0,0,0,.8);
    transition:transform .35s var(--ease)}
  .mz-donate[hidden]{display:flex;transform:translateY(110%);visibility:hidden}
  .mz-donate p{margin:0;font-weight:800;font-variation-settings:"wdth" 92;text-transform:uppercase;letter-spacing:.02em;color:var(--bone);font-size:clamp(.82rem,3.5vw,1.05rem);line-height:1.15}
  .mz-donate .btn{flex:none;min-height:48px;padding-inline:clamp(18px,5vw,30px)}
  html.mz-bar .footer{padding-bottom:calc(28px + 76px + env(safe-area-inset-bottom))}
}
/* Donate page: the faint background photo was stretched down the whole tall phone layout, which blurred it.
   Keep it one screen tall and pinned while the page scrolls. */
@media (max-width:900px){
  .donate-bg{overflow:clip}
  .donate-bg img{position:sticky;top:0;height:100vh;height:100lvh}
}
/* Parallax photos are scaled 1.16 by script. With will-change:transform browsers paint them at the unscaled size and
   stretch that bitmap, which visibly softened every parallax image. Letting them paint normally keeps them sharp. */
.parallax img{will-change:auto!important}
/* Mission photo: keep the blend into the panel to a soft edge so it doesn't fog the subject, and centre him. */
.mission-media .parallax img{object-position:50% 40%!important}
.mission-media::after{background:linear-gradient(90deg,var(--paper) 0,rgba(238,241,244,.35) 4%,rgba(238,241,244,0) 11%)}
@media (max-width:900px){.mission-media::after{background:linear-gradient(0deg,var(--paper) 0,rgba(238,241,244,0) 12%)}}

/* RCHQ credit in the footer bottom row (added by worker.js). */
.mz-credit{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:inherit;transition:color .35s var(--ease)}
.mz-credit img{display:block;width:22px;height:auto}
/* RCHQ mark hover (same as caye.rchq.app): lift, tilt, zoom, glow and a light sweep across the R. */
.rq-mark { position: relative; display: inline-block; flex: none; line-height: 0; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), filter .35s cubic-bezier(.2, .7, .1, 1); }
.rq-mark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) 0 0 / 300% 100% no-repeat; background-position: 130% 0; -webkit-mask: url(/mz/rchq-r.webp) center / contain no-repeat; mask: url(/mz/rchq-r.webp) center / contain no-repeat; }
.mz-credit:hover .rq-mark, .mz-credit:focus-visible .rq-mark { transform: translateY(-3px) rotate(-8deg) scale(1.2); filter: drop-shadow(0 0 6px rgba(39, 196, 217, .75)) drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
@media (prefers-reduced-motion: no-preference) { .mz-credit:hover .rq-mark::after, .mz-credit:focus-visible .rq-mark::after { animation: rq-sheen .85s cubic-bezier(.2, .7, .1, 1) .08s both; } }
@media (prefers-reduced-motion: reduce) { .mz-credit:hover .rq-mark, .mz-credit:focus-visible .rq-mark { transform: none; } }
@keyframes rq-sheen { 0% { background-position: 130% 0; } to { background-position: -30% 0; } }
.mz-credit:hover,.mz-credit:focus-visible{color:var(--bone)}
