/*
 * Site footer - shared by the guides (/guides/) and the user guide (/help/).
 * Markup: footer.php. The homepage (index.php) has the same rules inline.
 * Colours: this site's palette, set on the footer itself so it looks the same on
 * any page, whatever that page's own colours are (the user guide is a light page).
 */
footer.site{
  --bg-2:#10101e; --panel:#18182c; --deep:#07070f; --line:#2c2c50; --line-2:#3c3c68;
  --brand:#5b5ff2; --accent:#8487f6; --accent-hi:#b4b6fa; --btn-text:#ffffff; --btn-hover:#4a4ee3; --btn-hover-text:#ffffff;
  --text:rgba(255,255,255,.84); --muted:rgba(255,255,255,.68); --dim:rgba(255,255,255,.55); --white:#fff;
  --tint:rgba(91,95,242,0.16); --tint-2:rgba(91,95,242,0.38); --glow:rgba(91,95,242,0.60);
  --font:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif; --mono:'Geist Mono',ui-monospace,'Cascadia Code',Consolas,monospace;
  color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;text-align:left
}
:where(footer.site) *,:where(footer.site) *::before,:where(footer.site) *::after{box-sizing:border-box;margin:0;padding:0}
:where(footer.site) .wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 24px}
:where(footer.site) a{color:var(--accent);text-decoration:none}
:where(footer.site) a:hover{color:var(--accent-hi)}
:where(footer.site) img{max-width:100%;height:auto;display:block}
:where(footer.site) ul{list-style:none}
footer.site{margin-top:80px;border-top:1px solid var(--line);background:var(--bg-2);padding:64px 0 0;font-size:15.5px;line-height:1.65}
:where(footer.site) h2,:where(footer.site) h3{color:var(--white);font-weight:700;letter-spacing:-.02em;line-height:1.15}
:where(footer.site) p{margin-bottom:1rem}:where(footer.site) p:last-child{margin-bottom:0}
footer.site .brand{display:flex;align-items:center;gap:12px;flex-shrink:0;font-weight:800;font-size:1.28rem;letter-spacing:-.03em;color:var(--white)}
footer.site .brand:hover{color:var(--white)}
footer.site .brand span{color:var(--accent)}
footer.site .brand .mark{width:42px;height:42px;border-radius:10px;background:var(--brand);color:var(--btn-text);display:flex;align-items:center;justify-content:center;font-size:1.05rem;box-shadow:0 6px 20px -6px var(--glow)}
footer.site .brand img{height:auto}
footer.site .brand img:not(.mark){width:200px;height:auto}
.form-trap{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.f-grid{display:grid;grid-template-columns:1.2fr .8fr 2.9fr .7fr;gap:40px;padding-bottom:48px}
.f-brand .brand{margin-bottom:16px}
.f-brand p{color:var(--muted);font-size:.88rem;max-width:340px}
.f-col h2{font-family:var(--mono);font-size:.72rem;font-weight:500;text-transform:uppercase;letter-spacing:.08em;color:var(--dim);margin-bottom:14px}
.f-col ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.f-col a{color:var(--muted);font-size:.88rem}
.f-col a:hover{color:var(--accent)}
@media(min-width:1025px){.f-grid.no-more{grid-template-columns:1.6fr 1fr 1fr}}
.f-more-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
@media(min-width:1025px){.f-more-cols a{white-space:nowrap}}
@media(max-width:1024px){.f-more{grid-column:1/-1}}
@media(max-width:560px){.f-more-cols{gap:0 14px}.f-more-cols a{font-size:.8rem}}
.newsletter-section{border:1px solid var(--line);border-radius:12px;padding:22px 26px;background:var(--panel);display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px 36px;align-items:center;margin:0 0 36px}
.newsletter-section .nl-intro h3{font-size:.96rem;line-height:24px;margin:0 0 4px;display:flex;align-items:center;gap:10px;white-space:nowrap}
.newsletter-section .nl-intro h3 i{color:var(--accent)}
.newsletter-section .nl-intro p{color:var(--muted);font-size:.86rem;line-height:20px;margin:0;white-space:nowrap}
.newsletter-section form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto;gap:10px;align-items:stretch}
.newsletter-section .nl-field,.newsletter-section .nl-submit-row{margin:0}
.nl-field input{width:100%;border-radius:6px;border:1px solid var(--line-2);background:var(--deep);color:var(--white);font-family:var(--font);outline:none}
.nl-field input:focus{border-color:var(--accent)}
.nl-field input::placeholder{color:var(--dim)}
.newsletter-section .nl-field input{display:block;box-sizing:border-box;height:48px;margin:0;padding:0 14px;font-size:.9rem}
.nl-submit-row button{background:var(--brand);color:var(--btn-text);font-family:var(--font);font-weight:700;border:none;border-radius:6px;cursor:pointer;justify-content:center}
.nl-submit-row button:hover{background:var(--btn-hover);color:var(--btn-hover-text)}
.newsletter-section .nl-submit-row button{box-sizing:border-box;height:48px;width:auto;margin:0;padding:0 18px;font-size:.92rem;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.newsletter-section .nl-done{min-width:0}
.nl-msg{font-size:.82rem;display:flex;gap:8px;padding:10px 12px;border-radius:6px;line-height:1.5;background:var(--tint);color:var(--white);border:1px solid var(--tint-2)}
.nl-msg i{margin-top:3px;color:var(--accent)}
@media(max-width:1200px){.newsletter-section{grid-template-columns:minmax(0,1fr);padding:20px}.newsletter-section .nl-intro h3,.newsletter-section .nl-intro p{white-space:normal}}
@media(max-width:560px){.newsletter-section form{grid-template-columns:minmax(0,1fr)}.newsletter-section .nl-submit-row button{width:100%;justify-content:center}}
.f-bottom{border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.8rem;color:var(--dim)}
.f-bottom a{color:var(--muted)}
@media(max-width:1024px){.f-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.f-grid{grid-template-columns:1fr}footer.site .wrap{padding:0 18px}footer.site .brand{font-size:1.12rem}footer.site .brand .mark{width:36px;height:36px}}
@media print{footer.site{display:none!important}}
