/* ===========================================================================
   FOOTER — single source for footer styles, marketing site + blog.
   Tokens resolved to literals. Edit the footer HERE only.
   =========================================================================== */

.foot-grid{
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.foot-brand > img{ height: 32px; width: auto; margin-bottom: 1rem; }
.foot-brand p{ color: #A9A4BC; font-size: 0.85rem; max-width: 280px; }
.foot-col h4{
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7E7796;
    margin-bottom: 1rem;
}
.foot-col ul{ list-style: none; display: grid; gap: 0.55rem; }
.foot-col a{ color: #C9C5D6; font-size: 0.88rem; transition: color 0.2s; }
.foot-col a:hover{ color: #D9BC7E; }
.foot-bottom{
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.6rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #7E7796;
}
.foot-film a{ color: #D9BC7E; }
.foot-film a:hover{ text-decoration: underline; }
.trust-wrap{
    display: inline-block;
    margin-top: 1.4rem;
}
.foot-brand .trust-label{
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A9A4BC;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
    margin: 0.65rem 0 0;
}
.trust-badges{
    display: flex; flex-wrap: nowrap; align-items: center;
    gap: 1rem;
}
.trust-badges > a{ flex: 0 0 auto; }
.foot-brand .trust-label{ white-space: normal; max-width: 220px; }
.aiia-badge{
    display: inline-flex; align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(10, 10, 12, 0.08);
    border-radius: 6px;
    padding: 5px 7px;
    line-height: 0;
    box-shadow: 0 4px 14px rgba(10, 10, 12, 0.35);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.aiia-badge img, .aiia-badge svg{ width: auto; height: 80px; margin: 0; display: block; }
.aiia-badge:hover{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10, 10, 12, 0.45); border-color: rgba(197, 165, 114, 0.5); }
.sid-badge{
    display: inline-flex; align-items: center;
    padding: 0; background: none; border: none;
    line-height: 0; cursor: pointer;
    transition: transform 0.2s;
}
.sid-badge img, .sid-badge svg{
    width: 96px; height: 96px;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 1px 2px rgba(10, 10, 12, 0.28)) drop-shadow(0 6px 16px rgba(10, 10, 12, 0.38));
    transition: filter 0.2s;
}
.sid-badge:hover{ transform: translateY(-1px); }
.sid-badge:hover img, .sid-badge:hover svg{ filter: drop-shadow(0 1px 2px rgba(10, 10, 12, 0.28)) drop-shadow(0 10px 24px rgba(10, 10, 12, 0.48)); }
@media (max-width: 1020px){.foot-grid{ grid-template-columns: 1fr 1fr; gap: 2rem; }}
@media (max-width: 640px){.foot-grid{ grid-template-columns: 1fr; }.foot-bottom{ flex-direction: column; align-items: flex-start; }}
.foot-grid{grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(0,1fr));gap:2rem}
@media(max-width:1024px){.foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.foot-brand{grid-column:1/-1}}
@media(max-width:640px){.foot-grid{grid-template-columns:1fr 1fr;gap:1.8rem 1rem}.foot-brand{grid-column:1/-1}}
.aid-listing{
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-top: 12px;
    padding: 14px 12px 11px;
    border: 1px solid rgba(109, 141, 155, 0.35);
    border-radius: 10px;
    background: rgba(5, 7, 30, 0.62);
    text-decoration: none;
    line-height: 1.2;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.aid-listing:hover{ border-color: rgba(173, 253, 229, 0.55); transform: translateY(-1px); background: rgba(5, 7, 30, 0.85); }
.aid-listing-logo{ width: 94%; max-width: 100%; height: auto; display: block; flex-shrink: 0; margin: 0 auto; }
.aid-listing-ic{ color: #ADFDE5; display: none; }
.aid-listing-text{ display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: center; }
.aid-listing-text b{ font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; font-weight: 700; color: #F8F7FB; }
.aid-listing-sep{ display: none; }
.aid-listing-org{ display: none; }
.foot-tenet{
    margin: 2.6rem 0 0;
    padding: 0 1rem 1.9rem;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #E3C88F;
    opacity: 0.55;
}
@media (max-width: 640px){.foot-tenet{ letter-spacing: 0.28em; white-space: normal; }}
@media (max-width: 480px){.aid-listing-text b{ font-size: 10.5px; }}
.foot-ack{
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.9rem 1rem 2.2rem;
    text-align: center;
}
.foot-ack-kick{
    margin: 0 0 12px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #E3C88F;
    opacity: 0.6;
}
.foot-ack-text{
    max-width: 640px;
    margin: 0 auto;
    font-size: 11.5px;
    line-height: 1.8;
    color: #6A6880;
}
.foot-ack .foot-tenet{
    margin: 1.6rem 0 0;
    padding: 0;
    opacity: 0.7;
}

/* element ground — the footer backdrop itself. Was a bare element rule in
   site.css; the blog doesn\x27t load site.css, so footer.css carries it too. */
footer {
    border-top: 1px solid var(--band-line, rgba(248,247,251,.12));
    background: var(--band, #08060F);
    color: #A9A4BC;
    padding: 3.5rem 0 2rem;
    margin-top: 2rem;
}

/* ── Context isolation — everything the shared footer needs that lives
   outside foot-* selectors in site.css. Scoped to the footer so both
   host systems compute identical values. ── */
footer .wrap { max-width: var(--wrap, 1160px); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); position: relative; z-index: 1; }
footer a { color: var(--accent-ink, #2D2769); text-decoration: none; }
footer a:hover { color: var(--gold-ink, #7A5F30); }
footer img { max-width: 100%; display: block; }

/* the later site.css override — kills the base margin-top so the CTA and footer meet flush */
footer{border-top:1px solid rgba(248,247,251,.12);margin-top:0}

/* ───────────────────────────────────────────────────────────
   MOBILE — the phone footer gets its own choreography:
   the brand block becomes a centered stack (lockup, tagline,
   badges, directory strip), link columns read 2-up with real
   tap targets, the acknowledgement and tenet close centered,
   copyright centered, iPhone safe-area respected.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    footer { padding: 2.8rem 0 max(1.8rem, env(safe-area-inset-bottom)); }

    .foot-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.4rem;
    }
    .foot-brand img { margin-left: auto; margin-right: auto; }
    .foot-brand p { margin-left: auto; margin-right: auto; }

    .trust-wrap { align-items: center; text-align: center; }
    .trust-badges { justify-content: center; }

    .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.7rem 1.2rem; }

    /* every footer link a real touch target */
    .foot-col ul { gap: 0; }
    .foot-col ul a { display: inline-block; padding: 0.42rem 0; }
    .foot-col h4 { margin-bottom: 0.3rem; }

    .aid-listing { margin-top: 10px; padding: 12px 10px 10px; }

    .foot-ack { padding: 1.7rem 0.4rem 1.1rem; }
    .foot-ack-text { font-size: 12px; line-height: 1.75; }
    .foot-ack .foot-tenet { margin-top: 1.2rem; }

    .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
}
