/**
 * 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.
 */
@import url(/public/assets/css/fonts-forge.css);   /* Cinzel + EB Garamond, for the Delvantic Core card (.dv-electric-card--forge) */

#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;
    }
}
/* Portal card base styles (moved here 2026-09-22 from the inline <style> in footer-electric-card.php: when the
   Private Clients card was taken out of the footer, the cards' whole look went with it). */
.dv-electric-portal {
    padding: 28px 0 24px;
    margin-bottom: 8px;
}
.dv-electric-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}
.dv-electric-card:hover {
    border-color: #3b82f6;
    background: #1e2d45;
}
.dv-electric-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dv-electric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}
.dv-electric-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.dv-electric-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}
a.dv-electric-btn {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
a.dv-electric-btn:hover {
    color: #60a5fa;
    text-decoration: none;
}
.dv-electric-card:hover .dv-electric-btn {
    color: #60a5fa;
}
@media (max-width: 768px) {
    .dv-electric-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    .dv-electric-left {
        flex-direction: column;
        gap: 12px;
    }
}

/* The sign-in portal cards, side by side — trims footer height. Two since 2026-09-22 (Stocks Portal, Delvantic Core;
   the private-client sign-in moved to the Site Map). Collapses to a single column at the same 768px breakpoint where
   each card's internals switch to a centered stack. */
.dv-footer-portals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px auto 4px;
    max-width: 700px;
}
.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;
}


/* ── The Delvantic Core card, in the 16th-century "Forge" look (2026-09-22) ──
   The game's door wears the game's material among the portal cards: an iron frame with forged corners, dark oak
   planks, gold Cinzel capitals, the gilt lantern-lit 3D mark instead of a letter badge. Sprites and fonts are the
   Forge family's (public/assets/css/STYLE-FAMILIES.md). Specificity: .dv-footer-portals + modifier beats the base card. */
.dv-footer-portals .dv-electric-card.dv-electric-card--forge {
    position: relative;
    border: 12px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/frame-iron.svg) 34 / 34px / 0 stretch;
    border-radius: 0;
    padding: 14px 16px;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(255, 170, 80, 0.14), transparent 65%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35)),
        url(/public/assets/images/quarters/forge/oak-planks.svg) 0 0 / 264px 480px repeat,
        #2c1d10;
    background-clip: padding-box;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}
.dv-footer-portals .dv-electric-card--forge:hover { border-color: transparent; background-color: #2c1d10; }
.dv-electric-card--forge .dv-forge-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 110, 0.18), transparent 70%);
}
.dv-electric-card--forge .dv-forge-mark canvas { display: block; }
.dv-electric-card--forge .dv-electric-title {
    font-family: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #d9b45a;
    text-shadow: 0 1px 0 #000;
}
.dv-electric-card--forge .dv-electric-desc {
    font-family: 'EB Garamond', 'Palatino Linotype', Georgia, serif;
    font-size: 15px;
    color: #e0d2b4;
}
.dv-footer-portals .dv-electric-card--forge a.dv-electric-btn {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #d9b45a;
}
.dv-footer-portals .dv-electric-card--forge a.dv-electric-btn:hover,
.dv-electric-card--forge:hover .dv-electric-btn { color: #f1d58c; }

/* 2026-09-22: the four links under the card's name wrap instead of running off the edge; the name itself is no
   longer a link (William: the Core is what the links are for). */
.dv-electric-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
/* the card's links: spaced on the right, so a wrapped line starts flush left (not indented by .ms-2) */
.dv-footer-portals .dv-electric-card--forge a.dv-electric-btn { margin: 10px 16px 0 0 !important; }
