﻿/* Shared standard footer. Follow the selected theme, with standard KCAA colours as fallbacks. */
html body footer.kcaa-standard-footer {
    display:block !important; clear:both !important; float:none !important;
    position:relative !important; width:100% !important; max-width:none !important;
    height:auto !important; min-height:0 !important; max-height:none !important;
    margin:24px 0 0 !important; padding:0 !important; border:0 !important;
    background:transparent !important; color:#fff !important;
    font-family:var(--portal-font-family,"Segoe UI",Arial,sans-serif) !important; font-style:normal !important;
    box-sizing:border-box !important; container-type:inline-size;
}
.kcaa-footer-host { width:calc(100% - 40px); margin:0 auto 20px; }
footer.kcaa-standard-footer .kcaa-footer-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) auto auto !important;
    align-items: center !important;
    gap: 18px !important;
    width: 100% !important;
    padding: 16px 18px !important;
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08) 0 24%, transparent 24% 100%),
        linear-gradient(135deg, var(--theme-primary-deep, #12275a) 0%, var(--theme-primary, #0069aa) 68%, color-mix(in srgb, var(--theme-primary, #0c4c7d) 80%, var(--theme-primary-deep, #0c4c7d)) 100%) !important;
    border-top: 4px solid var(--theme-accent, #FF7B0A) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(0, 45, 92, .18) !important;
    box-sizing: border-box !important;
}

footer.kcaa-standard-footer #systemFooterIdentity,
footer.kcaa-standard-footer #systemFooterIdentity.kcaa-footer-brand,
footer.kcaa-standard-footer .kcaa-footer-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--portal-font-family,"Segoe UI",Arial,sans-serif) !important;
    font-size: inherit !important;
    font-style: normal !important;
    text-align: left !important;
}

footer.kcaa-standard-footer .kcaa-footer-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 58px !important;
    min-height: 34px !important;
    padding: 7px 10px !important;
    color: var(--theme-primary, #0069aa) !important;
    background: #ffffff !important;
    border-bottom: 3px solid var(--theme-accent, #FF7B0A) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 18px rgba(0, 27, 58, .14) !important;
}

footer.kcaa-standard-footer .kcaa-footer-copy {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

footer.kcaa-standard-footer .kcaa-footer-copy strong {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
}

footer.kcaa-standard-footer .kcaa-footer-copy span {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

footer.kcaa-standard-footer .kcaa-footer-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    color: rgba(255, 255, 255, .84) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

footer.kcaa-standard-footer .kcaa-footer-divider {
    display: inline-block !important;
    width: 1px !important;
    height: 18px !important;
    background: rgba(255, 255, 255, .28) !important;
}

footer.kcaa-standard-footer .kcaa-footer-origin {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 7px 9px !important;
    color: var(--theme-primary-deep, #002d5c) !important;
    background: #ffffff !important;
    border-bottom: 3px solid var(--theme-accent, #FF7B0A) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 18px rgba(0, 27, 58, .14) !important;
}

footer.kcaa-standard-footer img.kcaa-footer-flag,
footer.kcaa-standard-footer .kcaa-footer-flag {
    display: block !important;
    width: 42px !important;
    height: 24px !important;
    min-width: 42px !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 27, 58, .18) !important;
}

footer.kcaa-standard-footer .kcaa-footer-shell { grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto !important; }
footer.kcaa-standard-footer .kcaa-footer-copy { overflow-wrap:anywhere; }
@container (max-width: 1000px) {
    footer.kcaa-standard-footer .kcaa-footer-shell { grid-template-columns:1fr !important; justify-items:center !important; gap:12px !important; padding:16px !important; }
    footer.kcaa-standard-footer #systemFooterIdentity { justify-content:center !important; }
    footer.kcaa-standard-footer .kcaa-footer-copy { text-align:left !important; }
    footer.kcaa-standard-footer .kcaa-footer-meta { max-width:100% !important; }
    footer.kcaa-standard-footer .kcaa-footer-divider { display:none !important; }
}
@media(max-width:600px) {
    .kcaa-footer-host { width:calc(100% - 32px); }
    footer.kcaa-standard-footer .kcaa-footer-shell { grid-template-columns:1fr !important; justify-items:center !important; gap:12px !important; }
    footer.kcaa-standard-footer .kcaa-footer-meta { gap:6px !important; font-size:11px !important; }
    footer.kcaa-standard-footer .kcaa-footer-copy strong { font-size:13px !important; }
    footer.kcaa-standard-footer .kcaa-footer-copy span { font-size:11px !important; }
}