/**
 * Site footer (content/req-includes/footer.php) — extracted from the include's
 * inline <style> block 2026-08-09 (William: 'there should be little inline css').
 * Loaded via a <link> inside the footer include, so styles still travel with it.
 *
 * #footer.dv-footer specificity is deliberate: main.css declares '#footer'
 * (ID selector) with padding that outranked the bare class and pushed the
 * fade bar off the footer's top edge.
 */
#footer.dv-footer {
    background: #111827;
    color: #d1d5db;
    padding: 0;
}
/* 35px transition bar: pure black at top fading into the footer bg. */
.dv-footer-fade {
    height: 35px;
    background: linear-gradient(to bottom, #000000, #111827);
}
/* Mirror the homepage section bounding: full-width shell with 24px side
   padding (was Bootstrap .container, which capped at 960 on lg and made the
   footer narrower than the page) + a 1060px centered inner. */
.dv-footer-shell {
    padding: 42px 24px 0;
}
.dv-footer-inner {
    max-width: 1060px;   /* match the homepage .hp-section-inner so footer aligns */
    margin: 0 auto;
    text-align: center;
}
.dv-brand-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.dv-brand-footer canvas {
    display: block;
    border: none;
    background: transparent;
}
.dv-brand-text-footer {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.025em;
    line-height: 1;
    color: #ffffff;
}
.dv-footer-tagline {
    font-size: 0.95rem;
    color: #9ca3af;
    margin: 6px 0 0;
    font-style: italic;
}
.dv-footer-cols {
    display: grid;
    /* Four columns since 2026-08-21 (Experiments joined Stocks + Resources +
       Disclaimer). Not repeat(4, 1fr): the disclaimer is a paragraph, not a link
       list, and an equal quarter squeezes it into a ribbon — it keeps 1.5fr. */
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 32px;
    margin: 24px auto;
    padding: 24px 0;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
    text-align: left;
    max-width: 980px;
}
.dv-footer-disclaimer {
    color: #aab1bd;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
}
.dv-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dv-footer-col-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.dv-footer-col a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s;
}
.dv-footer-col a:hover {
    color: #fff;
}
@media (max-width: 900px) {
    .dv-footer-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dv-footer-cols {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }
}
/* Three sign-in portal cards, side by side — trims footer height.
   Collapses to a single column at the same 768px breakpoint where each card's
   internals already switch to a centered stack (see footer-electric-card.php). */
.dv-footer-portals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 18px auto 4px;
    max-width: 980px;
}
.dv-footer-portals .dv-electric-portal { padding: 0; margin: 0; }
.dv-footer-portals .dv-electric-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px;
    height: 100%;
}
/* Sign-in link now lives under the title/desc content — give it breathing room */
.dv-footer-portals .dv-electric-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .dv-footer-portals { grid-template-columns: 1fr; max-width: 420px; }
}
/* Portal letter badges (2026-08-17, William — were three inline-styled flat
   squares in two off-palette hues). One brand hue each, on the sitewide
   65/25/10 families: Stocks = teal (primary product), Core = violet, Private
   Clients = amber. Gloss + ring + hue glow so they read as marks, not blocks;
   the glow deepens with the card's own hover. */
.dv-portal-badge {
    position: relative;
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; font-weight: 800; color: #fff;
    font-family: 'Inter', sans-serif; letter-spacing: -.02em;
    background: var(--pb-grad);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 6px 16px var(--pb-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
    transition: box-shadow .2s ease, transform .2s ease;
}
.dv-portal-badge::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 55%);
    pointer-events: none;
}
.dv-electric-card:hover .dv-portal-badge {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px var(--pb-glow-hover), inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* Stocks = the BRAND green (emerald-v2 --theme-primary #047857 family), not the
   bright teal — #2dd4bf read neon on the dark footer (William, 2026-08-17). */
.dv-portal-badge--stocks  { --pb-grad: linear-gradient(135deg, #059669, #047857); --pb-glow: rgba(4, 120, 87, .4);     --pb-glow-hover: rgba(4, 120, 87, .55); }
.dv-portal-badge--core    { --pb-grad: linear-gradient(135deg, #a78bfa, #6d28d9); --pb-glow: rgba(124, 58, 237, .35);  --pb-glow-hover: rgba(124, 58, 237, .5); }
.dv-portal-badge--clients { --pb-grad: linear-gradient(135deg, #fcd34d, #d97706); --pb-glow: rgba(217, 119, 6, .35);   --pb-glow-hover: rgba(217, 119, 6, .5); }
.dv-footer-bottom {
    padding: 15px 0;
}
.dv-footer-bottom p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}
.dv-footer-legal {
    margin-top: 6px !important;
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center;
}
.dv-footer-legal a {
    color: #9ca3af; text-decoration: none; font-size: 0.78rem;
}
.dv-footer-legal a:hover { color: #fff; text-decoration: underline; }
.dv-footer-legal span { color: #4b5563; }
.dv-footer-version {
    font-size: 0.7rem;
    color: #9ca3af; /* AA contrast (~7:1) on #111827 footer bg */
    margin-top: 0.25rem !important;
    font-family: 'Courier New', monospace;
}
.dv-footer-version span {
    cursor: help;
}

