/* ============================================================================
   PLATFORM FOOTER - "Powered by Cloud School System"
   ----------------------------------------------------------------------------
   Markup comes from App_Code/Common/PlatformFooter.cs and is identical on every
   surface, so this file is the only place the look is decided.

   It has to sit on three quite different backgrounds: the admin content area
   (light grey), the parent and student portals (white cards), and the sign-in
   pages (a white form panel beside a photograph). Rather than a variant per
   surface, it is deliberately quiet everywhere - muted text on transparent,
   with a hairline above it - so it reads as a credit rather than a banner and
   never competes with the page.

   The links get colour only on hover and focus. A blue link in a footer that
   appears on every screen pulls the eye all day; underlining on interaction is
   enough to say it is clickable.
   ============================================================================ */
.acs-platform-footer {
    padding: 14px 16px 16px;
    text-align: center;
    background: transparent;
    border-top: 1px solid var(--acs-border, #e2e8f0);
    margin-top: 18px;
}

/* Two selectors, not one. globalmodern.css carries `body.page-admin #wrapper p
   { font-size: 14px }`, and an id beats any number of classes - so inside the admin
   shell this has to be scoped under #wrapper to win. Each selector in a group keeps its
   own specificity, so the bare one still covers the sign-in and landing pages, which
   have no #wrapper. */
.acs-platform-footer p.acs-platform-footer-text,
#wrapper .acs-platform-footer p.acs-platform-footer-text {
    margin: 0;
    font-family: var(--acs-font-sans, 'Segoe UI', system-ui, -apple-system, sans-serif);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    /* #64748b on the #f5f6fa admin content background is 4.9:1. */
    color: #64748b;
}

.acs-platform-footer a.acs-platform-footer-link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.acs-platform-footer a.acs-platform-footer-link:hover,
.acs-platform-footer a.acs-platform-footer-link:focus {
    color: var(--acs-accent, #3377ff);
    border-bottom-color: currentColor;
    text-decoration: none;
}

/* Keyboard users get a real ring, not just the underline. */
.acs-platform-footer a.acs-platform-footer-link:focus-visible {
    outline: 2px solid var(--acs-accent, #3377ff);
    outline-offset: 3px;
    border-radius: 2px;
}

.acs-platform-footer .acs-platform-footer-version {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 9999px;
    background: rgba(100, 116, 139, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* On a phone the line wraps; give it room to breathe rather than letting the
   two links collide. */
@media (max-width: 575px) {
    .acs-platform-footer {
        padding: 12px 14px 14px;
    }

    .acs-platform-footer p.acs-platform-footer-text,
    #wrapper .acs-platform-footer p.acs-platform-footer-text {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* The admin shell pins a bottom bar on phones; without this the credit hides
   underneath it. */
body.has-bottom-nav .acs-platform-footer {
    margin-bottom: 8px;
}

/* On the sign-in and landing pages the footer sits inside the form panel rather
   than under a page of content, so it needs less air above it. */
.acs-platform-footer.is-compact {
    margin-top: 10px;
    padding: 10px 12px 4px;
    border-top: 0;
}
