/* ==========================================================
   LEEDS SUSTAINABLE MARINE TEAM
   ========================================================== */

:root {
    --navy: #062554;
    --text: #080808;
    --grey: #667085;
    --border: #d8dee6;
    --white: #ffffff;
    --max-width: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* ==========================================================
   CONTAINERS
   ========================================================== */

.container {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    min-height: 76px;
    background: #fff;
    border-bottom: 1px solid #536170;
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    color: #050505;
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    margin-right: 10px;
    object-fit: contain;
}

/* Desktop navigation */

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #080808;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.nav-links a:hover {
    background: #eef3f9;
    border-color: #d9e2ee;
    color: #062554;

    transform: translateY(-1px);

    box-shadow: 0 3px 10px rgba(6, 37, 84, .08);
}

/* Current page */

.nav-links a.active {
    background: #062554;
    border-color: #062554;
    border-radius: 11px;
    color: #fff;

    transform: scale(1.05);

    box-shadow: 0 4px 12px rgba(6, 37, 84, .18);
}

.nav-links a.active:hover {
    background: #0b356f;
    border-color: #0b356f;
    color: #fff;
}

/* Hidden on desktop */

.menu-button,
.mobile-current-page {
    display: none;
}


/* ==========================================================
   TABLET NAVIGATION
   ========================================================== */

@media (max-width: 1000px) {

    .site-header {
        min-height: 68px;
    }

    .nav {
        min-height: 68px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-logo {
        width: 31px;
        height: 31px;
    }

    /* Show hamburger */
    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        margin-left: auto;
        padding: 0;

        border: 1px solid transparent;
        border-radius: 9px;

        background: transparent;
        color: #062554;

        font-size: 26px;
        line-height: 1;

        cursor: pointer;
    }

    .menu-button:hover {
        background: #eef3f9;
        border-color: #d9e2ee;
    }

    /* Dropdown */
    .nav-links {
        position: absolute;

        top: 68px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 5px;

        padding: 14px 24px 20px;

        background: #fff;

        border-bottom: 1px solid #d8dee6;

        box-shadow: 0 12px 25px rgba(6, 37, 84, .10);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 11px 14px;

        justify-content: flex-start;

        border-radius: 8px;

        transform: none;
    }

    .nav-links a:hover {
        transform: none;
    }

    .nav-links a.active {
        transform: none;
        border-radius: 8px;
    }
}


/* ==========================================================
   PHONE NAVIGATION
   ========================================================== */

@media (max-width: 600px) {

    .nav {
        gap: 10px;
    }

    /*
       Phone:
       hide full team name.
       Keep the logo.
    */
    .brand-name {
        display: none;
    }

    .brand {
        flex-shrink: 0;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        margin-right: 0;
    }

    /*
       Current page is the only page name visible
       while the menu is closed.
    */
    .mobile-current-page {
        display: block;

        flex: 1;

        color: #062554;
        font-size: 15px;
        font-weight: 700;
        text-align: center;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-button {
        margin-left: 0;
        flex-shrink: 0;
    }

    .nav-links {
        padding: 12px 16px 18px;
    }

    .nav-links a {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* ==========================================================
   REMOVE OLD DECORATIVE PAGE HERO
   ========================================================== */

.page-hero {
    display: none;
}

/* ==========================================================
   GENERAL SECTIONS
   ========================================================== */

.section {
    padding: 64px 0;
}

.section-soft {
    background: #fff;
}

.section-title {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.15;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: #050505;
}

h2 {
    font-size: 32px;
    line-height: 1.15;
}

h3 {
    font-size: 20px;
    line-height: 1.25;
}

p {
    color: var(--grey);
}

/* ==========================================================
   HOME HERO
   ========================================================== */

.home {
    position: relative;
    min-height: 460px;
    padding: 0;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.53),
            rgba(0, 0, 0, 0.53)
        ),
        url("https://yralcgckodgemrozhvhn.supabase.co/storage/v1/object/public/websites-data/logo/pRmZPw3XbmfsD4Hh")
        center / cover no-repeat;
}

.home-inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    text-align: left;
}

.home-logo,
.social-buttons {
    display: none;
}

.home-inner::before {
    content: "Leeds Sustainable Marine Team";
    display: block;
    margin-bottom: 14px;
    color: white;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.home-inner::after {
    content: "University of Leeds student team focused on sustainable marine engineering and autonomous vessels.";
    display: block;
    max-width: 800px;
    color: white;
    font-size: 15px;
}

/* =========================================================
   HOME — SUSTAINABLE FUTURE SECTION
   ========================================================= */

.home-future {
    padding: 64px 0;
    background: #fff;
}

.home-future-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.home-future-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 12px;
}

.home-future-content h2 {
    max-width: 560px;
    margin: 0 0 34px;
    font-size: 32px;
    line-height: 1.2;
}

.future-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.future-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.check-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #062554;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 800px) {
    .home-future-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-future-image img {
        height: 300px;
    }
}

/* ==========================================================
   FEATURE SPLIT
   About / Homepage / Sponsorship
   ========================================================== */

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
    min-height: 480px;
}

.feature-layout > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

.feature-layout > div {
    padding: 20px 0;
}

.feature-layout h2 {
    margin-bottom: 60px;
    font-size: 32px;
}

.feature-item {
    margin: 0 0 60px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.feature-item p {
    margin: 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.55;
}

/* ==========================================================
   PROJECTS
   ========================================================== */

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 55px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
}

/*
   Pyxl project blocks aren't raised cards.
*/

.card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.card:hover {
    transform: none;
    box-shadow: none;
}

.card-image {
    width: 240px;
    height: 190px;
    border-radius: 12px;
    object-fit: cover;
}

.card-body {
    padding: 3px 0 0;
}

.card-body h3 {
    margin: 0 0 14px;
    font-size: 21px;
}

.card-body p {
    margin: 0 0 16px;
    color: #667085;
    font-size: 17px;
    line-height: 1.5;
}

.card-body .button {
    margin-top: 8px;
}

/* ==========================================================
   MEMBERS
   ========================================================== */

.member-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.member-card .card-image {
    width: 190px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.member-card .card-body {
    padding: 3px 0 0;
}

.member-card .card-body h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.member-card .card-body strong {
    font-size: 17px;
}

.member-card .card-body p {
    margin-top: 10px;
    font-size: 15px;
}

.member-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

/*
   The screenshot shows two member entries per row.
*/
body:has(.member-card) .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 90px;
    row-gap: 55px;
}
/* =========================================================
   UPDATES — EMPTY STATE
   ========================================================= */

.updates-empty {
    max-width: 680px;
    margin: 40px auto 80px;
    padding: 70px 30px;
    text-align: center;
}

.updates-icon {
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef3f9;

    font-size: 28px;
}

.updates-empty h2 {
    margin: 0 0 16px;
    font-size: 30px;
    color: #080808;
}

.updates-empty p {
    max-width: 590px;
    margin: 0 auto 30px;

    color: #667085;
    font-size: 16px;
    line-height: 1.7;
}

.updates-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button-secondary {
    background: #fff;
    color: #062554;
    border: 1px solid #062554;
}

.button-secondary:hover {
    background: #eef3f9;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    border: 0;
    border-radius: 3px;
    background: var(--navy);
    color: white;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: #0b356f;
}

/* ==========================================================
   SPONSOR CTA
   ========================================================== */

.cta {
    min-height: 400px;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0;
    text-align: left;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("https://images.pexels.com/photos/14402309/pexels-photo-14402309.jpeg")
        center / cover no-repeat;
}

.cta h2 {
    margin: 0 0 10px;
    color: white;
    font-size: 31px;
    font-weight: 500;
}

.cta p {
    max-width: none;
    margin: 0 0 25px;
    color: white;
    font-size: 14px;
}

.cta .button {
    background: var(--navy);
    color: white;
}

/* ==========================================================
   JOIN FORMS
   ========================================================== */

.form-switcher {
    display: none;
}

.form-panel {
    display: block;
    margin-bottom: 75px;
}

.form-box {
    width: min(660px, 100%);
    max-width: 660px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
}

.form-box h2 {
    margin: 0 0 55px;
    text-align: center;
    font-size: 26px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
label {
    display: block;
    margin: 0 0 7px;
    color: #667085;
    font-size: 14px;
    font-weight: 400;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7dce3;
    border-radius: 3px;
    background: white;
    color: #111;
    font: inherit;
    outline: none;
}

input {
    height: 38px;
}

textarea {
    min-height: 215px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--navy);
    box-shadow: none;
}

.form-box .button {
    min-width: 100px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 60px;
    padding: 55px 0 0;
    background: #061f49;
    color: #fff;
    border: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 1.25fr;
    gap: 70px;
    padding-bottom: 45px;
}

.footer-column h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
}

.footer-brand p {
    max-width: 390px;
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.university-link {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.university-link:hover {
    text-decoration: underline;
}

/* Sitemap */

.footer-sitemap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-sitemap a {
    color: #d9e2ee;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-sitemap a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* Contact links */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: #d9e2ee;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-contact a:hover {
    color: #fff;
    transform: translateX(3px);
}

.contact-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.32);
    border-radius: 7px;

    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Copyright */

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.16);
    color: #aebbd0;
    font-size: 13px;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
/* ==========================================================
   HOVER FUNCTION
   ========================================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

    .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 9px 14px;

        border: 1px solid transparent;
        border-radius: 9px;

        color: #080808;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;

        transition:
            background-color .2s ease,
            color .2s ease,
            border-color .2s ease,
            transform .2s ease,
            box-shadow .2s ease;
    }

    /* Hover over another page */

    .nav-links a:hover {
        background: #eef3f9;
        border-color: #d9e2ee;
        color: #062554;

        transform: translateY(-1px);

        box-shadow: 0 3px 10px rgba(6, 37, 84, .08);
    }

    /* Page currently being viewed */

    .nav-links a.active {
        background: #062554;
        border-color: #062554;
        color: #fff;

        border-radius: 11px;

        transform: scale(1.06);

        box-shadow: 0 4px 12px rgba(6, 37, 84, .20);
    }

    .nav-links a.active:hover {
        background: #0b356f;
        color: #fff;
        border-color: #0b356f;
    }
/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 900px) {

    .container {
        width: min(100% - 32px, 1320px);
    }

    .site-header {
        height: 68px;
    }

    .brand {
        font-size: 17px;
    }

    .menu-button {
        display: block;
    }

    .home {
        min-height: 440px;
    }

    .home-inner::before {
        font-size: 30px;
    }

    .feature-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .feature-layout > img {
        height: auto;
        max-height: 430px;
    }

    .feature-layout h2 {
        margin-bottom: 35px;
    }

    .grid-2,
    .grid-3,
    body:has(.member-card) .grid-3 {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .card,
    .member-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .card-image,
    .member-card .card-image {
        width: 180px;
        height: 145px;
    }

    .footer-layout {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .section {
        padding: 45px 0;
    }

    .card,
    .member-card {
        grid-template-columns: 1fr;
    }

    .card-image,
    .member-card .card-image {
        width: 100%;
        height: 300px;
    }

    .feature-layout > img {
        height: 300px;
    }

    .cta {
        min-height: 350px;
        padding: 40px 24px;
    }

    .form-box h2 {
        margin-bottom: 35px;
    }
}
/* ==========================================================
   MOBILE / TABLET NAVIGATION — FINAL OVERRIDES
   Keep this at the END of styles.css
   ========================================================== */

@media (max-width: 1000px) {

    /* Hide menu by default */
    .site-header .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;

        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        padding: 14px 24px 20px;

        background: #ffffff;
        border-bottom: 1px solid #d8dee6;

        box-shadow: 0 12px 25px rgba(6, 37, 84, 0.12);

        z-index: 9999;
    }

    /* ONLY show after hamburger is clicked */
    .site-header .nav-links.open {
        display: flex !important;
    }

    .site-header .nav-links a {
        width: 100%;
        padding: 12px 14px;

        justify-content: flex-start;

        border-radius: 8px;

        transform: none;
    }

    .site-header .nav-links a:hover {
        transform: none;
    }

    .site-header .nav-links a.active {
        transform: none;
        border-radius: 8px;
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        margin-left: auto;
        padding: 0;

        border: 0;
        border-radius: 9px;

        background: transparent;
        color: #062554;

        font-size: 26px;
        cursor: pointer;
    }
}


/* ==========================================================
   PHONE
   ========================================================== */

@media (max-width: 600px) {

    .brand-name {
        display: none;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        margin-right: 0;
    }

    .mobile-current-page {
        display: block;

        flex: 1;

        color: #062554;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
    }

    .menu-button {
        margin-left: 0;
    }

    .site-header .nav-links {
        padding: 12px 16px 18px;
    }
}
/* ==========================================================
   MEMBER PHOTOS — TALLER
   ========================================================== */

.member-card .card-image {
    width: 190px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}
/* ==========================================================
   SPONSORSHIP IMAGE — TALLER
   ========================================================== */

.sponsorship-intro .feature-layout > img {
    height: 560px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .sponsorship-intro .feature-layout > img {
        width: 100%;
        height: 450px;
    }
}
@media (max-width: 600px) {
    .sponsorship-intro .feature-layout > img {
        height: 380px;
    }
}

/* ==========================================================
   IPAD / LARGE TABLET FIX
   ========================================================== */

@media (min-width: 601px) and (max-width: 1180px) {

    /* ---------- HEADER ---------- */

    .site-header {
        min-height: 72px;
    }

    .nav {
        min-height: 72px;
        gap: 16px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    /* Use hamburger instead of squeezing desktop navigation */
    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        margin-left: auto;

        border: 0;
        border-radius: 9px;

        background: transparent;
        color: #062554;

        font-size: 26px;
        cursor: pointer;
    }

    .menu-button:hover {
        background: #eef3f9;
    }

    /* Hide menu until hamburger is clicked */
    .site-header .nav-links {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: none !important;
        flex-direction: column;
        align-items: stretch;

        gap: 5px;

        padding: 16px 32px 22px;

        background: #fff;
        border-bottom: 1px solid #d8dee6;

        box-shadow: 0 12px 25px rgba(6, 37, 84, .12);

        z-index: 9999;
    }

    .site-header .nav-links.open {
        display: flex !important;
    }

    .site-header .nav-links a {
        width: 100%;
        padding: 12px 14px;

        justify-content: flex-start;

        border-radius: 8px;

        transform: none;
    }

    .site-header .nav-links a.active {
        transform: none;
        border-radius: 8px;
    }


    /* ---------- GENERAL CONTENT ---------- */

    .container {
        width: min(100% - 56px, 1100px);
    }

    .section {
        padding: 55px 0;
    }


    /* ---------- HOME ---------- */

    .home {
        min-height: 480px;
    }

    .home-inner {
        width: min(100% - 56px, 1100px);
    }

    .home-inner::before {
        font-size: 32px;
    }


    /* ---------- HOME FUTURE SECTION ---------- */

    .home-future-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

    .home-future-image img {
        height: 350px;
    }

    .home-future-content h2 {
        font-size: 28px;
    }


    /* ---------- ABOUT / SPONSORSHIP ---------- */

    .feature-layout {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
        min-height: auto;
    }

    .feature-layout > img {
        height: 460px;
    }

    .feature-layout h2 {
        margin-bottom: 35px;
        font-size: 28px;
    }

    .feature-item {
        margin-bottom: 35px;
    }


    /* ---------- SPONSORSHIP ---------- */

    .sponsorship-intro .feature-layout > img {
        height: 520px;
    }


    /* ---------- PROJECTS ---------- */

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .card {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .card .card-image {
        width: 260px;
        height: 210px;
    }


    /* ---------- MEMBERS ---------- */

    body:has(.member-card) .grid-3 {
        grid-template-columns: 1fr 1fr;
        column-gap: 35px;
        row-gap: 45px;
    }

    .member-card {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 18px;
    }

    .member-card .card-image {
        width: 145px;
        height: 205px;
        object-fit: cover;
        object-position: center top;
    }


    /* ---------- FOOTER ---------- */

    .footer-grid {
        grid-template-columns: 1.25fr .7fr 1fr;
        gap: 40px;
    }
}

/* ==========================================================
   CURRENT SPONSORS
   ========================================================== */

.current-sponsors {
    padding: 85px 0 95px;
    background: #f7f9fc;
}

.sponsors-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.sponsors-heading .eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #062554;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sponsors-heading h2 {
    margin: 0 0 15px;
    font-size: 34px;
}

.sponsors-heading p {
    margin: 0;

    color: #667085;
    font-size: 16px;
    line-height: 1.7;
}


/* GRID */

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* INDIVIDUAL SPONSOR */

.sponsor-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    align-items: center;

    min-height: 230px;
    padding: 28px;

    border: 1px solid #e0e5ec;
    border-radius: 14px;

    background: #fff;

    color: inherit;
    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.sponsor-card:hover {
    transform: translateY(-4px);

    border-color: #c7d2e1;

    box-shadow:
        0 12px 28px rgba(6, 37, 84, .10);
}


/* LOGOS */

.sponsor-logo {
    width: 100%;
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    border-radius: 10px;

    background: #fff;
}

.sponsor-logo img {
    width: 100%;
    max-width: 150px;
    max-height: 95px;

    object-fit: contain;
}


/* CONTENT */

.sponsor-content h3 {
    margin: 0 0 5px;

    color: #080808;
    font-size: 19px;
    line-height: 1.3;
}

.sponsor-support {
    display: inline-block;

    margin-bottom: 12px;

    color: #062554;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-content p {
    margin: 0 0 14px;

    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.sponsor-link {
    color: #062554;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================================
   SPONSORS — TABLET
   ========================================================== */

@media (max-width: 1180px) {

    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}


/* ==========================================================
   SPONSORS — PHONE
   ========================================================== */

@media (max-width: 600px) {

    .current-sponsors {
        padding: 60px 0 70px;
    }

    .sponsors-heading {
        margin-bottom: 35px;
    }

    .sponsors-heading h2 {
        font-size: 28px;
    }

    .sponsor-card {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 24px;

        text-align: center;
    }

    .sponsor-logo {
        height: 120px;
    }

    .sponsor-logo img {
        max-width: 190px;
        max-height: 90px;
    }
}

.form-status {
    min-height: 24px;
    margin: 18px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.form-status.success {
    color: #16803c;
}

.form-status.error {
    color: #b42318;
}

#sponsor-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* Compact member rows on phones. */
@media (max-width: 600px) {
    body:has(.member-card) .grid-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .card.member-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 18px;
        align-items: center;
        text-align: left;
    }

    .card.member-card .card-image {
        width: 82px;
        height: 82px;
        min-width: 0;
        border-radius: 12px;
        object-fit: cover;
        object-position: center top;
    }

    .member-card .card-body {
        min-width: 0;
        padding: 0;
        overflow-wrap: anywhere;
    }

    .member-card .card-body h3 {
        margin: 0 0 5px;
        font-size: 16px;
        line-height: 1.3;
    }

    .member-card .card-body strong {
        display: block;
        font-size: 13px;
        line-height: 1.4;
    }

    .member-card .card-body p {
        margin: 6px 0;
        font-size: 12px;
        line-height: 1.4;
    }

    .member-card .member-link {
        display: inline-block;
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    .site-header .brand {
        font-size: 0;
        gap: 0;
    }

    .site-header .brand img {
        margin-right: 0 !important;
    }

    .site-header .mobile-current-page {
        display: none;
    }

    .site-header .menu-button {
        margin-left: auto;
    }
}

.team-intro {
    padding: 45px 0;
    background: #f5f8fb;
}

.team-intro h2 {
    margin: 12px 0 18px;
    color: var(--navy);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
}

.team-intro p {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.7;
}

.team-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .team-intro {
        padding: 32px 0;
    }

    .team-intro p {
        font-size: 15px;
    }
}

.about-story > .container {
    max-width: 960px;
}

.about-story h2 {
    margin: 12px 0 24px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.about-story p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.8;
}

.about-story-block {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #dce4ec;
}

.about-story-block h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.3;
}

.about-story-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .about-story p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-story-block {
        margin-top: 28px;
        padding-top: 22px;
    }

    .about-story-block h3 {
        font-size: 21px;
    }

    .about-story-links {
        flex-direction: column;
        align-items: stretch;
    }

    .about-story-links .button {
        text-align: center;
    }
}

.about-image > .container,
.about-story > .container {
    max-width: 960px;
}

.about-image {
    padding-bottom: 0;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.required-star {
    color: #c62828;
    font-weight: 700;
}

.speculative-applications {
    padding: 60px 0;
    background: #f5f8fb;
    text-align: center;
}

.speculative-applications h2 {
    margin: 12px 0 18px;
    color: var(--navy);
    font-size: clamp(26px, 4vw, 36px);
}

.speculative-applications p {
    max-width: 650px;
    margin: 0 auto 26px;
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .speculative-applications {
        padding: 40px 0;
    }

    .speculative-applications p {
        font-size: 15px;
    }
}

/* SPECULATIVE APPLICATION PAGE */

.application-section {
    padding: 48px 0 64px;
}

.application-section > .container {
    max-width: 760px;
}

.application-section .form-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.application-section .form-box h2 {
    margin-bottom: 16px;
}

.application-note {
    margin: 0 0 28px;
    line-height: 1.6;
}

.application-small {
    font-size: 13px;
    color: #667085;
}

.required-star {
    color: #c62828;
    font-weight: 700;
}

.application-section input,
.application-section textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
}

.application-section textarea {
    min-height: 140px;
    resize: vertical;
}

.application-back {
    display: inline-block;
    margin-top: 24px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.application-back:hover {
    text-decoration: underline;
}

#application-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 600px) {
    .site-header .brand-name,
    .site-header .mobile-current-page {
        display: none !important;
    }

    .site-header .menu-button {
        margin-left: auto;
    }

    .application-section {
        padding: 32px 0 44px;
    }

    .application-section > .container {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .application-section .form-box h2 {
        font-size: 25px;
    }

    .application-note {
        font-size: 15px;
    }

    .application-small {
        font-size: 13px;
    }

    #application-submit {
        width: 100%;
    }
}

.application-section input[type="file"] {
    height: auto;
    padding: 12px;
}

.application-section input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--navy, #062554);
    color: white;
    cursor: pointer;
}

#cv-help {
    margin-top: 8px;
}

.application-section select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d7dce3;
    border-radius: 3px;
    background: white;
    color: #111;
    font: inherit;
    font-size: 16px;
}

/* Wider sponsor form with space around it */
#sponsor-form {
    width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
}

#sponsor-contact-form {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Light-blue application box on all screen sizes */
.speculative-applications {
    width: calc(100% - 48px);
    max-width: 1100px;
    margin: 48px auto;
    padding: 48px 32px;
    box-sizing: border-box;
    background: #eaf3fb;
    border: 1px solid #d4e5f5;
    border-radius: 16px;
    text-align: center;
}

.speculative-applications > .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.speculative-applications p {
    max-width: 760px;
    margin: 0 auto 26px;
}

/* Phone spacing */
@media (max-width: 600px) {
    #sponsor-form {
        padding: 0 20px;
    }

    .speculative-applications {
        width: calc(100% - 40px);
        margin: 32px auto;
        padding: 32px 20px;
    }

    .speculative-applications .button {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
    }
}
/* ==========================================================
   UPDATES PAGE
   ========================================================== */

.updates-section {
    padding: 56px 0 80px;
}

.updates-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.updates-heading .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #062554;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.updates-heading h1 {
    margin: 0 0 14px;
    color: #062554;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.updates-heading p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- CARD GRID ---------- */

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.update-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e5ec;
    border-radius: 14px;
    background: #fff;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.update-card:hover,
.update-card:focus-within {
    transform: translateY(-4px);
    border-color: #c7d2e1;
    box-shadow: 0 14px 30px rgba(6, 37, 84, .12);
}

.update-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef3f9;
}

.update-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.update-card:hover .update-cover img {
    transform: scale(1.04);
}

.update-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.update-tag {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3f9;
    color: #062554;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.update-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

/* The whole card is clickable via this button */
.update-card-trigger {
    padding: 0;
    border: 0;
    background: none;
    color: #050505;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.update-card-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 14px;
}

.update-card-trigger:focus-visible::after {
    outline: 3px solid #062554;
    outline-offset: -3px;
}

.update-card-body p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

.update-card-more {
    margin-top: 4px;
    color: #062554;
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================================
   UPDATE MODAL
   ========================================================== */

body.modal-open {
    overflow: hidden;
}

.update-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .2s ease;
}

.update-modal[hidden] {
    display: none;
}

.update-modal.is-open {
    opacity: 1;
}

.update-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 42, .62);
    backdrop-filter: blur(2px);
}

.update-modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(3, 18, 42, .35);
    transform: translateY(16px) scale(.98);
    transition: transform .22s ease;
}

.update-modal.is-open .update-modal-panel {
    transform: none;
}

.update-modal-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.update-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #062554;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(3, 18, 42, .22);
    transition: background-color .2s ease, transform .2s ease;
}

.update-modal-close:hover {
    background: #fff;
    transform: scale(1.06);
}

/* ---------- ARTICLE INSIDE MODAL ---------- */

.update-article-cover {
    aspect-ratio: 16 / 9;
    background: #eef3f9;
}

.update-article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-article-body {
    padding: 30px 34px 40px;
}

.update-article-body h2 {
    margin: 14px 0 18px;
    color: #050505;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.update-article-body h3 {
    margin: 34px 0 12px;
    color: #062554;
    font-size: 20px;
    line-height: 1.3;
}

.update-article-body p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.75;
}

.update-article-body .update-lead {
    margin-bottom: 18px;
    color: #062554;
    font-size: 18px;
    font-weight: 600;
}

.update-project {
    margin: 0 0 20px;
    padding: 20px 22px;
    border: 1px solid #e0e5ec;
    border-left: 4px solid #062554;
    border-radius: 12px;
    background: #f8fafc;
}

.update-project h4 {
    margin: 0 0 10px;
    color: #050505;
    font-size: 17px;
    line-height: 1.35;
}

.update-project p:last-child {
    margin-bottom: 0;
}

.update-project-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #062554;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 600px) {
    .updates-section {
        padding: 36px 0 56px;
    }

    .updates-heading {
        margin-bottom: 28px;
    }

    .updates-heading p {
        font-size: 15px;
    }

    .updates-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .update-card-body {
        padding: 20px;
    }

    .update-card-title {
        font-size: 20px;
    }

    .update-modal {
        padding: 12px;
    }

    .update-modal-panel {
        max-height: 92vh;
        border-radius: 14px;
    }

    .update-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .update-article-body {
        padding: 22px 20px 32px;
    }

    .update-article-body p {
        font-size: 15px;
        line-height: 1.7;
    }

    .update-article-body .update-lead {
        font-size: 16px;
    }

    .update-project {
        padding: 16px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .update-card,
    .update-cover img,
    .update-modal,
    .update-modal-panel,
    .update-modal-close {
        transition: none;
    }
}