/* ==========================================================================
   Public brand surfaces (legacy/GCCA public theme)
   One patterned brand-blue surface for every coloured band on the public
   site: the home hero (.ed-hero), interior page headers (.ed-page-head),
   short-course public banners (.sc-public .sc-hero), the home "ink" band
   (.ed-section--ink), the closing CTA panel (.ed-cta) and the footer.
   Loaded after public-editorial.css, so equal-specificity rules here win.

   The gradient stays on the brand hue (#3BA9FA, ~205deg) but runs deeper so
   white text passes WCAG AA everywhere it sits:
     #11528C (under the copy)  white 8.1:1  cream eyebrow 6.4:1
     #1765A6 (middle)          white 6.1:1  cream eyebrow 4.8:1
     #1E73BA (far edge)        white 5.0:1
     #0E467A (footer)          white 9.7:1  cream headings 7.6:1
   ========================================================================== */

/* ---- Accessible brand blue ----
   --ed-ink (#3BA9FA) is used for text, links, outline buttons and the fill
   behind white button text; it reaches only ~2.5:1 on white. #1B6AAE is the
   same hue, deeper: ~5.6:1 on white, ~5.2:1 on --ed-paper, and white on it
   ~5.6:1. The bright tone stays available as --ed-ink-bright for decoration.
   `html body.admissions-site` outranks application-brand.css, which loads
   later and pins its own --ed-ink on the application journey. */
:root,
html body.admissions-site {
    --ed-ink: #1B6AAE;
    --ed-ink-bright: #3BA9FA;
    --bs-primary-rgb: 27, 106, 174;
    --bs-link-color: #1B6AAE;
    --bs-link-color-rgb: 27, 106, 174;
    --bs-link-hover-color: #0F4F87;
    --bs-link-hover-color-rgb: 15, 79, 135;
}

/* ---- Accessible gold for text on light surfaces ----
   --ed-gold (#C79A3B) stays for fills, rules and borders, but as small text it
   is ~2.6:1 on white. #8A6516 is the same warm gold, deeper: ~5.3:1 on white,
   ~4.9:1 on --ed-paper. Labels on the blue surfaces keep the cream
   (--hero-gold) through the more specific rules further down this file. */
:root,
html body.admissions-site {
    --ed-gold-text: #8A6516;
}

.ed-kicker,
.ed-eyebrow,
.ed-pillar-num,
.ed-feature-num,
.ed-def-label,
.ed-tile-label,
.ed-level-title,
.ed-fac-count,
.ed-chip-level,
.ed-card-cta-link,
.ed-prog-foot .ed-prog-apply,
.ed-tag--elective,
.ed-check-list li::before,
.ed-outline-list li::before,
.ed-contact-form .form-label span[aria-hidden="true"],
body.public-site .section-badge,
body.public-site .selected-fee-label,
body.public-site .selected-fee-type,
body.public-site :is(.program-number, .choice-number, .step-number, .best-six-total),
body.public-site :is(.section-header, .section-header-success, .section-header-warning) i,
body.public-site :is(.upload-icon, .document-card-icon, .declaration-icon, .success-icon-wrapper),
body.public-site .success-icon-wrapper i,
body.public-site .program-label i,
body.public-site .upload-size-summary__icon {
    color: var(--ed-gold-text);
}

.ed-eyebrow-rule {
    background: var(--ed-gold-text);
}

.ed-tag--elective {
    border-color: rgba(138, 101, 22, 0.45);
}

/* Gold hover on light surfaces would drop links to ~2.6:1. */
:where(body.public-site) a:hover,
.ed-tile a:hover,
.ed-contact-list a:hover,
body.public-site .review-edit-link:hover {
    color: var(--ed-gold-text);
}

:is(.ed-hero, .ed-page-head, .sc-public .sc-hero, .ed-section--ink, .ed-cta, .ed-footer) {
    --hero-brand: var(--ed-ink-bright, #3BA9FA);
    --hero-deep: #11528C;
    --hero-mid: #1765A6;
    --hero-end: #1E73BA;
    --hero-footer: #0E467A;
    --hero-footer-deep: #0B3A66;
    --hero-text: #FFFFFF;
    --hero-muted: rgba(255, 255, 255, 0.9);
    --hero-gold: #F6E3B8;
    --hero-gold-solid: #E2B85C;
    --hero-navy: #0B2238;
    --hero-line: rgba(255, 255, 255, 0.34);
    /* Concentric "plate" rings, white at low opacity. */
    --hero-rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23fff'%3E%3Ccircle cx='200' cy='200' r='196' stroke-opacity='.12'/%3E%3Ccircle cx='200' cy='200' r='158' stroke-opacity='.09'/%3E%3Ccircle cx='200' cy='200' r='120' stroke-opacity='.14' stroke-dasharray='2 6'/%3E%3Ccircle cx='200' cy='200' r='82' stroke-opacity='.09'/%3E%3Ccircle cx='200' cy='200' r='44' stroke-opacity='.12'/%3E%3C/svg%3E");
    --hero-dots: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1.6px);
    /* The bright brand blue, kept as a light wash in the top corner. */
    --hero-wash: radial-gradient(560px 300px at 100% 0%, rgba(59, 169, 250, 0.55), transparent 70%);
}

:is(.ed-hero, .ed-page-head, .sc-public .sc-hero, .ed-section--ink, .ed-cta) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--hero-text);
    background-color: var(--hero-deep);
    background-image:
        var(--hero-wash),
        linear-gradient(115deg, var(--hero-deep) 0%, var(--hero-mid) 55%, var(--hero-end) 100%);
}

/* Gold hairline along the bottom edge of full-width bands. */
:is(.ed-page-head, .ed-hero)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 227, 184, 0.6) 30%, rgba(246, 227, 184, 0.6) 70%, transparent);
    pointer-events: none;
}

/* Pattern layer: dots + rings, faded out behind the copy on the left. */
.ed-page-head::before,
.ed-hero::before,
.ed-section--ink::before,
.ed-cta::before,
.sc-public .sc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    pointer-events: none;
    background:
        var(--hero-rings) right -90px center / 460px 460px no-repeat,
        var(--hero-dots) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.55) 45%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.55) 45%, #000 80%);
}

/* The home hero keeps its pointer-lit lattice, but as dots in the same family. */
.ed-hero::before {
    inset: calc(var(--ed-hero-bleed, 60px) * -1);
    background:
        var(--hero-rings) right calc(var(--ed-hero-bleed, 60px) - 60px) center / 620px 620px no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
}

.ed-hero-grid {
    background-image: var(--hero-dots);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 5%, rgba(0, 0, 0, 0.6) 45%, #000 85%);
    mask-image: linear-gradient(90deg, transparent 5%, rgba(0, 0, 0, 0.6) 45%, #000 85%);
}

.ed-hero-grid-glow {
    background-image: radial-gradient(circle, rgba(246, 227, 184, 0.9) 1.2px, transparent 1.8px);
    background-size: 22px 22px;
}

/* ---- Shared type on the brand surface ---- */
:is(.ed-hero, .ed-page-head) .ed-eyebrow {
    color: var(--hero-gold);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

:is(.ed-hero, .ed-page-head) .ed-eyebrow-rule {
    background: var(--hero-gold);
    width: 28px;
    flex-basis: 28px;
}

.ed-page-head-inner {
    padding: 52px var(--ed-gutter) 56px;
}

.ed-page-title {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--hero-text);
    text-wrap: balance;
}

.ed-page-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--hero-muted);
    max-width: 62ch;
}

.ed-page-head .ed-crumbs {
    color: var(--hero-muted);
    margin-bottom: 18px;
}

.ed-page-head .ed-crumbs a {
    color: var(--hero-gold);
    text-decoration: none;
    border-radius: 2px;
}

.ed-page-head .ed-crumbs a:hover {
    color: var(--hero-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ed-page-chips {
    gap: 10px;
    margin-top: 20px;
}

:is(.ed-hero, .ed-page-head) .ed-meta-chip {
    color: var(--hero-text);
    border-color: var(--hero-line);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 13px;
}

:is(.ed-hero, .ed-page-head) .ed-meta-chip--gold {
    background: var(--hero-gold-solid);
    border-color: var(--hero-gold-solid);
    color: var(--hero-navy);
}

/* ---- Buttons ---- */
/* Gold buttons everywhere: navy text (8.6:1) instead of brand blue on gold. */
.ed-btn-gold,
.ed-btn-gold:visited,
.ed-btn-gold:hover,
.ed-btn-gold:focus-visible {
    color: #0B2238;
}

:is(.ed-hero, .ed-page-head, .ed-cta) .ed-hero-actions {
    gap: 12px;
}

:is(.ed-hero, .ed-page-head) .ed-btn-gold,
:is(.ed-hero, .ed-page-head) .ed-btn-gold:visited,
.ed-section--gold .ed-cta .ed-btn-solid,
.ed-section--gold .ed-cta .ed-btn-solid:visited {
    background: var(--hero-gold-solid);
    border-color: var(--hero-gold-solid);
    color: var(--hero-navy);
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
}

:is(.ed-hero, .ed-page-head) .ed-btn-gold:hover,
:is(.ed-hero, .ed-page-head) .ed-btn-gold:focus-visible,
.ed-section--gold .ed-cta .ed-btn-solid:hover,
.ed-section--gold .ed-cta .ed-btn-solid:focus-visible {
    background: var(--hero-gold);
    border-color: var(--hero-gold);
    color: var(--hero-navy);
}

:is(.ed-hero, .ed-page-head) .ed-btn-outline-light,
:is(.ed-hero, .ed-page-head) .ed-btn-outline-light:visited,
.ed-section--gold .ed-cta .ed-btn-outline-ink,
.ed-section--gold .ed-cta .ed-btn-outline-ink:visited {
    color: var(--hero-text);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    padding: 13px 28px;
    font-size: 15px;
}

:is(.ed-hero, .ed-page-head) .ed-btn-outline-light:hover,
:is(.ed-hero, .ed-page-head) .ed-btn-outline-light:focus-visible,
.ed-section--gold .ed-cta .ed-btn-outline-ink:hover,
.ed-section--gold .ed-cta .ed-btn-outline-ink:focus-visible {
    color: var(--hero-text);
    border-color: var(--hero-text);
    background: rgba(255, 255, 255, 0.14);
}

:is(.ed-hero, .ed-page-head, .ed-section--ink, .ed-cta, .ed-footer) :is(a, button):focus-visible {
    outline: 2px solid var(--hero-gold);
    outline-offset: 3px;
}

/* Ghost buttons (e.g. "Call admissions"): brand blue on white was ~2.5:1; #1B6AAE is ~5.6:1. */
.ed-btn-ghost,
.ed-btn-ghost:visited {
    color: #1B6AAE;
    border-color: rgba(27, 106, 174, 0.45);
}

.ed-btn-ghost:hover,
.ed-btn-ghost:focus-visible {
    color: #0B2238;
    border-color: #1B6AAE;
    background: rgba(27, 106, 174, 0.06);
}

/* Green accent buttons on public short-course pages ("Check status"):
   white on #059669 was ~3.8:1; #047857 is ~5.5:1, #065F46 on hover ~7.7:1. */
.sc-public .sc-btn-accent,
.sc-public .sc-btn-accent:visited {
    color: #fff;
    background: #047857;
    border-color: #047857;
}

.sc-public .sc-btn-accent:hover,
.sc-public .sc-btn-accent:active {
    color: #fff;
    background: #065F46;
    border-color: #065F46;
}

.sc-public .sc-btn-accent:focus-visible {
    color: #fff;
    outline: 3px solid #065F46;
    outline-offset: 3px;
}

/* ---- Gold strip under the home hero: white on gold was ~2.5:1; navy is ~6.2:1. ---- */
.ed-banner:not(.ed-banner--closed),
.ed-banner:not(.ed-banner--closed) .ed-banner-link {
    color: #0B2238;
}

.ed-banner:not(.ed-banner--closed) .ed-banner-sep {
    background: rgba(11, 34, 56, 0.35);
}

.ed-banner-link:focus-visible {
    outline: 2px solid #0B2238;
    outline-offset: 3px;
}

/* ---- Home hero: shorter, smaller photo ---- */
.ed-hero-inner {
    padding: 60px var(--ed-gutter) 64px;
    gap: 56px;
}

.ed-hero-title {
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--hero-text);
    text-wrap: balance;
}

.ed-hero-lead {
    font-size: 18px;
    color: var(--hero-muted);
    margin: 0 0 30px;
}

.ed-hero-photo {
    width: 300px;
    height: 360px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -30px rgba(4, 30, 56, 0.6);
}

.ed-hero-figure::before {
    top: -14px;
    left: -14px;
    border-color: rgba(246, 227, 184, 0.65);
}

/* Gold italic accents in headings on the blue surface: #C79A3B was ~2.5:1; cream ~4.8:1+. */
:is(.ed-hero-title, .ed-cta-title, .ed-page-title) em {
    color: var(--hero-gold);
}

/* ---- Home middle band ("A decade of excellence") ---- */
.ed-section--ink {
    padding: 56px 0;
}

.ed-section--ink .ed-split {
    gap: 48px;
}

.ed-section--ink .ed-kicker--light {
    color: var(--hero-gold);
    margin-bottom: 12px;
}

.ed-section--ink .ed-h2--light {
    color: var(--hero-text);
    font-size: clamp(28px, 2.8vw, 36px);
    line-height: 1.15;
    text-wrap: balance;
}

.ed-section--ink .ed-prose--light,
.ed-section--ink .ed-prose--light p {
    color: var(--hero-muted);
    font-size: 16.5px;
    line-height: 1.65;
}

.ed-section--ink .ed-prose--light p {
    margin-bottom: 16px;
}

.ed-section--ink .ed-link-arrow--light {
    color: var(--hero-text);
    border-bottom-color: var(--hero-gold);
}

.ed-section--ink .ed-link-arrow--light:hover {
    color: var(--hero-gold);
}

@media (min-width: 992px) {
    .ed-section--ink .ed-split {
        grid-template-columns: 1fr 1.15fr;
    }
}

/* ---- Closing CTA: light surround, compact patterned panel ---- */
.ed-section--gold {
    background: var(--ed-paper, #F5F6FA);
    border-top: 1px solid var(--ed-line-soft, rgba(59, 169, 250, 0.1));
    padding: 48px 0;
}

.ed-cta.ed-shell {
    gap: 28px;
    padding: 32px 40px;
    border-radius: 16px;
    box-shadow: 0 24px 48px -30px rgba(11, 58, 102, 0.55);
}

/* The CTA panel sits inside .ed-shell padding, so pull the rings in. */
.ed-cta::before {
    background:
        var(--hero-rings) right -60px center / 360px 360px no-repeat,
        var(--hero-dots) 0 0 / 22px 22px;
}

.ed-section--gold .ed-cta .ed-kicker {
    color: var(--hero-gold);
    margin-bottom: 10px;
}

.ed-section--gold .ed-cta .ed-h2 {
    color: var(--hero-text);
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.15;
}

.ed-cta .ed-hero-actions {
    flex-shrink: 0;
}

/* ---- Footer ---- */
.ed-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    background-color: var(--hero-footer);
    background-image: linear-gradient(180deg, var(--hero-footer) 0%, var(--hero-footer-deep) 100%);
}

.ed-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.ed-footer-grid {
    padding: 48px var(--ed-gutter) 0;
    gap: 32px 40px;
}

@media (min-width: 1200px) {
    /* Room for "Monday - Friday: 8:00 AM - 5:00 PM" on one line. */
    .ed-footer-grid {
        grid-template-columns: 1.3fr 0.8fr 1.3fr 1.3fr;
    }
}

.ed-footer-brand {
    margin-bottom: 12px;
}

.ed-footer-mark {
    background: var(--hero-gold-solid);
    color: var(--hero-navy);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 19px;
}

.ed-footer-name {
    color: var(--hero-text);
}

.ed-footer-blurb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    line-height: 1.6;
}

.ed-footer-title {
    color: var(--hero-gold);
    font-weight: 600;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
}

.ed-footer-list {
    gap: 8px;
    font-size: 14px;
}

.ed-footer-list a,
.ed-footer a,
.ed-footer a:visited {
    color: rgba(255, 255, 255, 0.86);
}

.ed-footer-list a:hover,
.ed-footer a:hover,
.ed-footer a:focus-visible {
    color: var(--hero-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ed-footer-hours {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.ed-footer-bottom {
    margin-top: 36px;
    padding: 16px var(--ed-gutter);
    border-top-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
    align-items: center;
}

.ed-footer-tag {
    color: var(--hero-gold);
}

/* ---- Short-course public banners (in-shell card) ---- */
.sc-public .sc-hero {
    align-items: center;
    gap: 32px;
    padding: 30px 34px;
    border-radius: 14px;
    box-shadow: 0 20px 40px -28px rgba(11, 58, 102, 0.6);
}

.sc-public .sc-hero .sc-eyebrow {
    color: var(--hero-gold);
    font-family: var(--ed-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}

.sc-public .sc-hero h1 {
    color: var(--hero-text);
    font-family: var(--ed-serif, Georgia, serif);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: normal;
}

.sc-public .sc-hero p {
    margin-top: 10px;
    color: var(--hero-muted);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 68ch;
}

/* The stat sits on the brighter end, so give it its own darker plate. */
.sc-public .sc-hero-meta {
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(8, 44, 78, 0.38);
}

.sc-public .sc-hero-meta strong {
    color: var(--hero-text);
    font-family: var(--ed-serif, Georgia, serif);
    font-size: 32px;
    font-weight: 600;
}

.sc-public .sc-hero-meta span {
    color: var(--hero-text);
    font-size: 13px;
}

/* ---- Responsive ---- */
/* Tablet: keep the portrait beside the copy instead of stacking it on top. */
@media (min-width: 768px) and (max-width: 1279.98px) {
    .ed-hero-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 40px;
    }

    .ed-hero-figure {
        order: 0;
        justify-self: end;
        margin: 14px 0 0;
    }
}

@media (max-width: 991.98px) {
    .ed-hero-inner {
        padding: 48px var(--ed-gutter) 52px;
    }

    .ed-hero-photo {
        width: 220px;
        height: 260px;
    }

    .ed-section--ink .ed-split {
        gap: 16px;
    }

    .ed-cta.ed-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .ed-page-head-inner {
        padding: 36px var(--ed-gutter) 40px;
    }

    .ed-page-lead {
        font-size: 16px;
    }

    .ed-hero-inner {
        padding: 40px var(--ed-gutter) 44px;
        gap: 0;
    }

    /* The portrait adds ~300px on phones; the copy carries the hero alone. */
    .ed-hero-figure {
        display: none;
    }

    .ed-hero-lead {
        font-size: 16.5px;
        margin-bottom: 24px;
    }

    .ed-page-head::before,
    .ed-section--ink::before,
    .ed-cta::before,
    .sc-public .sc-hero::after {
        background-size: 320px 320px, 22px 22px;
        background-position: right -120px top -60px, 0 0;
    }

    .ed-section--ink {
        padding: 40px 0;
    }

    .ed-section--gold {
        padding: 32px 0;
    }

    /* Edge-to-edge panel inside the section gutter. */
    .ed-cta.ed-shell {
        width: calc(100% - 2 * var(--ed-gutter));
        padding: 26px 22px;
        border-radius: 14px;
    }

    .ed-footer-grid {
        grid-template-columns: 1fr;
        padding-top: 36px;
        gap: 24px;
    }

    /* Five short links read better as one wrapping row than a tall column. */
    .ed-footer-grid > :nth-child(2) .ed-footer-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 20px;
    }

    .ed-footer-title {
        margin-bottom: 10px;
    }

    .ed-footer-bottom {
        margin-top: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sc-public .sc-hero {
        gap: 18px;
        padding: 24px 22px;
        border-radius: 12px;
    }

    .sc-public .sc-hero-meta strong {
        font-size: 26px;
    }
}

@media (max-width: 575.98px) {
    :is(.ed-hero, .ed-page-head, .ed-cta) .ed-hero-actions {
        width: 100%;
    }

    :is(.ed-hero, .ed-page-head, .ed-cta) .ed-hero-actions .ed-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Header: keep logo, name and menu button on one row. */
    .ed-header .ed-brand {
        flex: 1 1 0;
        min-width: 0;
        gap: 10px;
    }

    .ed-header .ed-brand-logo img {
        height: 30px;
        max-width: 84px;
    }

    .ed-header .ed-brand-text {
        padding-left: 10px;
    }

    .ed-header .ed-brand-name {
        font-size: 16px;
        line-height: 1.15;
    }

    .ed-header .ed-brand-kicker {
        display: none;
    }

    .ed-header .ed-nav-toggle {
        flex: 0 0 auto;
    }
}

