/* Header, Beranda, and footer customization for the university profile site. */
.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(3, 45, 40, .86) 0%, rgba(5, 59, 72, .63) 55%, rgba(244, 251, 248, .2) 100%);
}

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

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

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

.accreditation-strip {
    background: #f1f6f2;
}

.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: #12302f;
    font: 800 clamp(21px, 2.5vw, 29px)/1.15 var(--display);
    letter-spacing: -.045em;
}

.accreditation-copy p {
    margin: 0;
    color: #526966;
    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(4, 47, 43, .5), rgba(4, 47, 55, .37) 58%, rgba(4, 47, 43, .2));
}

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

.announcement-section .section-heading .text-link {
    color: #12302f;
    text-shadow: 0 1px 8px rgba(255, 255, 255, .6);
}

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

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

.site-footer {
    background: var(--footer-background, #092f2d);
    color: var(--footer-text-color, #dce7df);
}

.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, #dce7df) !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(3, 45, 40, .88), rgba(5, 59, 72, .64) 72%, rgba(244, 251, 248, .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;
    }
}


/* Requested palette - deployed override */
:root {
    --palette-light: #F9E6A8;
    --palette-gold: #F2A900;
    --palette-orange: #CC6F00;
    --palette-brown: #4D2A00;
}

body {
    background: var(--palette-light) !important;
    color: var(--palette-brown) !important;
}

.topline,
.site-footer {
    background: var(--palette-brown) !important;
}

.site-header,
.dropdown-panel,
.main-nav {
    background: rgba(249, 230, 168, .96) !important;
    border-color: rgba(77, 42, 0, .2) !important;
}

.top-links a,
.hero-stamp {
    color: var(--palette-light) !important;
}

.brand-mark {
    background: var(--palette-gold) !important;
    color: var(--palette-brown) !important;
}

.header-cta,
.button-light {
    background: var(--palette-gold) !important;
    border-color: rgba(77, 42, 0, .3) !important;
    color: var(--palette-brown) !important;
}

.header-cta:hover,
.button-light:hover {
    background: var(--palette-orange) !important;
    color: var(--palette-light) !important;
}

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

.main-nav > a.active::after {
    background: var(--palette-gold) !important;
}

.hero {
    background: linear-gradient(118deg, var(--palette-brown), var(--palette-orange) 58%, var(--palette-gold)) !important;
}

.hero::after {
    background: linear-gradient(108deg, rgba(77, 42, 0, .88), rgba(77, 42, 0, .62) 55%, rgba(249, 230, 168, .18)) !important;
}

.accreditation-strip,
.uin-section,
.related-section {
    background: var(--palette-light) !important;
}

.accreditation-copy h2,
.accreditation-copy p {
    color: var(--palette-brown) !important;
}

.announcement-section {
    background: linear-gradient(118deg, var(--palette-brown), var(--palette-orange) 58%, var(--palette-light)) !important;
}

.announcement-section::before {
    background: linear-gradient(108deg, rgba(77, 42, 0, .58), rgba(77, 42, 0, .27)) !important;
}

.announcement-section .section-heading .text-link {
    color: var(--palette-light) !important;
}

.post-card,
.external-card {
    background-color: var(--palette-orange) !important;
    border-color: rgba(77, 42, 0, .24) !important;
}

.post-card-overlay {
    background: linear-gradient(180deg, rgba(77, 42, 0, .05), rgba(77, 42, 0, .9)) !important;
}

.announcement-section .post-card {
    background-color: var(--palette-gold) !important;
}

.card-arrow {
    background: var(--palette-gold) !important;
    color: var(--palette-brown) !important;
}

.card-tag,
.post-meta,
.quote-mark {
    color: var(--palette-gold) !important;
}

.welcome-section {
    background: var(--palette-gold) !important;
    color: var(--palette-brown) !important;
}

.image-placeholder.green {
    background: var(--palette-orange) !important;
    color: var(--palette-light) !important;
}

.image-placeholder.sand {
    background: var(--palette-gold) !important;
    color: var(--palette-brown) !important;
}

.image-placeholder.plum {
    background: var(--palette-brown) !important;
    color: var(--palette-light) !important;
}

.site-footer.site-footer {
    background: var(--palette-brown) !important;
    color: var(--palette-light) !important;
}

.site-footer.site-footer .footer-brand p,
.site-footer.site-footer .footer-grid a,
.site-footer.site-footer .footer-contact p,
.site-footer.site-footer .footer-bottom {
    color: var(--palette-light) !important;
}

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


/* Map the existing template variables to the requested palette. */
:root {
    --ink: var(--palette-brown);
    --muted: var(--palette-brown);
    --cream: var(--palette-light);
    --paper: var(--palette-light);
    --teal: var(--palette-orange);
    --teal-dark: var(--palette-brown);
    --lime: var(--palette-light);
    --yellow: var(--palette-gold);
    --mint: var(--palette-light);
    --coral: var(--palette-orange);
    --plum: var(--palette-brown);
    --sand: var(--palette-gold);
    --line: rgba(77, 42, 0, .2);
}
