/* Header, Beranda, and footer customization for the university profile site. */
:root {
    --ink: #3368A0;
    --muted: #3368A0;
    --cream: #F2EFE7;
    --paper: #F2EFE7;
    --teal: #3368A0;
    --teal-dark: #3368A0;
    --lime: #C8DFDB;
    --yellow: #66A3BF;
    --mint: #C8DFDB;
    --coral: #66A3BF;
    --plum: #3368A0;
    --sand: #F2EFE7;
    --line: #C8DFDB;
}

body {
    background: var(--paper);
    color: var(--ink);
}

.site-header {
    background: rgba(242, 239, 231, .95);
    border-bottom-color: var(--line);
}

.uin-section,
.related-section {
    background: #F2EFE7;
}

.external-card {
    background: #F2EFE7;
    border-color: #C8DFDB;
}

.announcement-section .post-card {
    background: #66A3BF;
}

.announcement-section .section-heading h2 em {
    color: #F2EFE7;
}

.topline {
    background: var(--teal-dark);
}

.top-links a,
.eyebrow,
.hero-stamp,
.announcement-section .section-kicker,
.footer-label {
    color: var(--mint) !important;
}

.brand-mark {
    background: var(--mint);
    color: var(--teal-dark);
}

.header-cta,
.button-light {
    background: #F2EFE7;
    color: var(--teal-dark);
    border: 1px solid rgba(51, 104, 160, .22);
    box-shadow: 0 8px 20px rgba(51, 104, 160, .12);
}

.header-cta span,
.button-light span {
    color: var(--teal-dark);
    background: transparent;
}

.main-nav > a.active:after {
    color: var(--yellow, #66A3BF);
    background: var(--yellow, #66A3BF);
}

.header-cta:hover,
.button-light:hover {
    background: #F2EFE7;
    color: var(--teal-dark);
    box-shadow: 0 10px 24px rgba(51, 104, 160, .18);
    transform: translateY(-1px);
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown > button:hover,
.text-link,
.read-more,
.back-link,
.rich-content h2,
.rich-content h3,
.accreditation-seal,
.section-kicker,
.site-footer .footer-grid a:hover {
    color: var(--teal);
}

.post-meta {
    color: var(--mint);
}

.card-arrow {
    background: var(--coral);
    color: var(--teal-dark);
}

.card-tag {
    color: var(--coral);
}

.welcome-section {
    background: var(--mint);
}

.quote-mark {
    color: var(--coral);
}

.image-placeholder.green {
    background: var(--mint);
    color: var(--teal-dark);
}

.image-placeholder.sand {
    background: var(--lime);
    color: var(--teal-dark);
}

.image-placeholder.plum {
    background: var(--coral);
    color: var(--teal-dark);
}

.site-footer {
    background: var(--footer-background, var(--teal)) !important;
    color: var(--footer-text-color, #F2EFE7) !important;
}

.site-footer .footer-grid a,
.site-footer .footer-contact p,
.site-footer .footer-bottom {
    color: var(--footer-text-color, #F2EFE7) !important;
}

.site-footer .footer-label {
    color: var(--lime) !important;
}

.header-cta:focus-visible,
.button:focus-visible,
a:focus-visible,
button:focus-visible {
    outline-color: var(--coral);
}

.top-line-inner {
    gap: 20px;
}

.top-line-inner > span {
    white-space: nowrap;
}

.top-links {
    align-items: center;
    gap: clamp(9px, 1.6vw, 20px);
}

.top-links a {
    white-space: nowrap;
}

.brand > img {
    width: 54px;
    height: 70px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.hero {
    min-height: 570px;
    background: linear-gradient(112deg, var(--hero-gradient-start) 0%, var(--hero-gradient-middle) 57%, var(--hero-gradient-end) 100%);
}

.hero-image {
    opacity: .48;
    mix-blend-mode: normal;
    filter: saturate(.82);
}

.hero:after {
    background: linear-gradient(108deg, rgba(51, 104, 160, .86) 0%, rgba(51, 104, 160, .63) 55%, rgba(242, 239, 231, .2) 100%);
}

.hero-inner {
    min-height: 570px;
    justify-content: flex-start;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    max-width: 800px;
}

.accreditation-strip {
    background: #C8DFDB;
}

.accreditation-inner {
    min-height: 230px;
    padding-top: 28px;
    padding-bottom: 28px;
    grid-template-columns: .55fr 1.25fr 2fr;
    gap: 34px;
}

.accreditation-certificate {
    margin: 0;
    min-width: 0;
}

.accreditation-certificate img {
    width: 100%;
    max-height: 205px;
    object-fit: contain;
    background: transparent;
    border: 0;
}

.accreditation-copy {
    display: block;
}

.accreditation-copy h2 {
    margin: 0 0 10px;
    color: #3368A0;
    font: 800 clamp(21px, 2.5vw, 29px)/1.15 var(--display);
    letter-spacing: -.045em;
}

.accreditation-copy p {
    margin: 0;
    color: #3368A0;
    font-size: 13px;
    line-height: 1.65;
}

.announcement-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(112deg, var(--announcement-gradient-start) 0%, var(--announcement-gradient-middle) 58%, var(--announcement-gradient-end) 100%);
}

.announcement-background,
.announcement-section:before {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.announcement-background {
    z-index: 0;
    background-size: cover;
    background-position: center 48%;
    opacity: .28;
    mix-blend-mode: soft-light;
}

.announcement-section:before {
    content: '';
    z-index: 1;
    background: linear-gradient(105deg, rgba(51, 104, 160, .5), rgba(51, 104, 160, .37) 58%, rgba(51, 104, 160, .2));
}

.announcement-section > .container {
    position: relative;
    z-index: 2;
}

.announcement-section .section-heading .text-link {
    color: #3368A0;
    text-shadow: 0 1px 8px rgba(242, 239, 231, .6);
}

.site-footer {
    background: var(--footer-background, var(--teal-dark));
    color: var(--footer-text-color, #F2EFE7);
}

.site-footer .footer-brand-logo {
    width: 88px;
    height: 118px;
    padding: 4px;
    object-fit: contain;
    background: #F2EFE7;
    border-radius: 3px;
}

.site-footer {
    background: var(--footer-background, #3368A0);
    color: var(--footer-text-color, #F2EFE7);
}

.site-footer .footer-brand p,
.site-footer .footer-grid a,
.site-footer .footer-contact p,
.site-footer .footer-bottom,
.site-footer .footer-label {
    color: var(--footer-text-color, #F2EFE7) !important;
}

.site-footer .footer-grid a:hover {
    opacity: .78;
}

@media (max-width: 1000px) {
    .accreditation-inner {
        grid-template-columns: 1fr 1.3fr;
        gap: 24px;
    }

    .accreditation-inner > .section-kicker {
        grid-column: 1 / -1;
    }

    .accreditation-certificate {
        grid-column: 1;
    }

    .accreditation-copy {
        grid-column: 2;
    }

    .topline {
        font-size: 9px;
    }
}

@media (max-width: 720px) {
    .topline {
        display: block;
        font-size: 9px;
    }

    .top-line-inner {
        width: calc(100% - 36px);
        height: auto;
        min-height: 58px;
        padding: 8px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .top-line-inner > span {
        white-space: normal;
    }

    .top-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .brand > img {
        width: 45px;
        height: 62px;
    }

    .hero,
    .hero-inner {
        min-height: 520px;
    }

    .hero:after {
        background: linear-gradient(100deg, rgba(51, 104, 160, .88), rgba(51, 104, 160, .64) 72%, rgba(242, 239, 231, .24));
    }

    .accreditation-inner {
        display: grid;
        grid-template-columns: 1fr;
        padding: 38px 0;
        gap: 20px;
    }

    .accreditation-inner > .section-kicker,
    .accreditation-certificate,
    .accreditation-copy {
        grid-column: 1;
    }

    .accreditation-certificate img {
        max-height: 230px;
    }

    .site-footer .footer-brand-logo {
        width: 72px;
        height: 100px;
    }
}
