/* Brand colors and base typography */
:root {
    --royal: #243b85;
    --blue: #004687;
    --navy: #101a3c;
    --gold: #ffb629;
    --red: #a51610;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 20px 10px 10px;
    background: #ebe8e4;
    color: var(--navy);
    font: 18px/1.2 Arial, Helvetica, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #dd7900; outline-offset: 4px; }

.page {
    max-width: 1180px;
    margin: auto;
    overflow: hidden;
    border-radius: 6px;
    background: #f6f3ee;
    box-shadow: 0 2px 8px #0002;
}

/* Header and title banner */
.top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 2px 18px 2px 14px;
    background: #fff;
}
.wordmark { flex: 0 1 334px; }
.top-nav {
    margin-left: auto;
    font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    color: #141414;
}
.top-nav strong { color: #b71515; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.title-band { margin: 0; padding: 3px 8px; background: var(--royal); }

/* Hero and buttons */
.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #0e1737;
    color: #fff;
}
.hero-copy {
    padding: 10px 26px 24px 29px;
    background: linear-gradient(90deg, #081628, #0e1737);
}
.hero h2 { margin: 0 0 7px; font-size: clamp(34px, 4.1vw, 49px); letter-spacing: -1px; }
.intro { margin: 0; max-width: 480px; font-size: clamp(19px, 2.1vw, 25px); }
.venue { margin: 15px 0 19px; font-size: 19px; }
.venue::before {
    content: "";
    display: block;
    width: 72px;
    height: 7px;
    margin-bottom: 12px;
    background: var(--gold);
}
.hero-photo { width: 100%; height: 100%; min-height: 295px; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.button {
    display: inline-block;
    padding: 11px 22px;
    border: 2px solid transparent;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}
.header-button { font-size: 16px; }
.hero-actions .button { min-width: 210px; font-size: 20px; }
.blue { background: var(--blue); color: #fff; }
.navy { background: var(--navy); color: #fff; }
.gold { background: var(--gold); color: #101522; }
.outline { border-color: #fff; }
.button:hover, .card:hover { filter: brightness(1.15); }

/* Registration cards and counselor information */
.content { padding: 18px 34px 22px 40px; }
.content h2 { margin: 0 0 21px; color: #111; font-size: clamp(30px, 3.4vw, 42px); }
.registration { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 77px;
    padding: 14px 18px 14px 26px;
    border-radius: 7px;
    font-size: clamp(19px, 2.4vw, 28px);
    font-weight: bold;
    text-decoration: none;
}
.card svg {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card svg.star { fill: currentColor; stroke: none; }
.card svg + span { border-left: 2px solid #fff; padding: 8px 0 8px 20px; }
.arrow { margin-left: auto; font-size: 33px; line-height: 1; }
.guidelines { margin-top: 24px; }
.guidelines h2 { margin-bottom: 9px; color: var(--navy); font-size: 28px; }
.guidelines p {
    margin: 0 0 14px;
    font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.08;
}
.guidelines .event-details { margin: 18px 0 0; color: var(--red); font-size: 22px; line-height: 1.25; }
.event-details span { display: inline-block; margin-right: 16px; }

/* Keep the desktop layout fluid, then stack it on small screens. */
@media (max-width: 1020px) {
    .top-bar { flex-wrap: wrap; padding-block: 10px; }
    .card { gap: 10px; padding-inline: 12px; }
    .card svg { flex-basis: 34px; width: 34px; }
    .card svg + span { padding-left: 10px; }
}
.mobile-menu-toggle { display: none; }

@media (max-width: 760px) {
    body { padding: 0 6px 8px; }
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        background: #fff;
        padding-top: 6px;
    }
    .site-header .top-bar { display: contents; }
    .site-header .wordmark { grid-area: 1 / 1; width: min(52vw, 190px); margin-left: 10px; }
    .site-header .title-band {
        grid-area: 2 / 1; background: #fff; padding: 0 8px 7px;
    }
    .site-header .title-band img { width: min(100%, 310px); }
    .mobile-menu-toggle:not([hidden]) {
        display: grid; place-items: center; grid-area: 1 / 2 / 3 / 3;
        align-self: center; width: 44px; height: 44px; margin-right: 8px;
        border: 0; background: #fff; color: var(--navy); cursor: pointer;
    }
    .mobile-menu-toggle:focus-visible { outline: 2px solid var(--blue); }
    .site-header .top-nav {
        grid-column: 1 / -1; grid-row: 3; margin: 0;
        padding: 12px 18px; border-top: 1px solid #d8dfe9;
        font-size: 16px; line-height: 1.55;
    }
    .site-header .top-nav div + div { margin-top: 6px; }
    .site-header .top-nav strong { display: block; }
    .site-header .header-button {
        grid-column: 1 / -1; grid-row: 4; justify-self: start;
        margin: 0 18px 14px;
    }
    .site-header.menu-ready:not(.menu-open) .top-nav,
    .site-header.menu-ready:not(.menu-open) .header-button { display: none; }

    .hero, .registration { grid-template-columns: 1fr; }
    .hero-copy { padding: 13px 20px 15px; background: #0e1737; }
    .hero h2 { margin-bottom: 5px; font-size: clamp(25px, 7vw, 36px); letter-spacing: -0.45px; }
    .hero .intro { font-size: 16px; line-height: 1.25; }
    .hero .venue { margin: 10px 0; font-size: 15px; line-height: 1.2; }
    .venue::before { width: 53px; height: 5px; margin-bottom: 8px; }
    .hero-actions { display: grid; gap: 8px; }
    .hero-actions .button { min-width: 0; padding: 7px 12px; font-size: 16px; }
    .hero-photo { width: 100%; min-height: 0; height: auto; aspect-ratio: 2 / 1; }

    .content { padding: 12px 20px 22px; }
    #exhibitors h2 { margin-bottom: 12px; font-size: clamp(21px, 6vw, 30px); }
    .registration { gap: 10px; }
    .card { min-height: 46px; gap: 14px; padding: 7px 13px 7px 16px; font-size: 18px; }
    .card svg { flex-basis: 34px; width: 34px; height: 32px; }
    .card svg + span { padding: 5px 0 5px 15px; }
    .card .arrow { font-size: 25px; }
    .guidelines { margin-top: 17px; }
    .guidelines h2 { font-size: clamp(23px, 7.4vw, 30px); line-height: 1.04; }
    .guidelines p { font-size: 16px; line-height: 1.2; }
    .guidelines .event-details { font-size: 18px; }
}

/* Content saved in the database can include inline images and linked files. */
.database-page { overflow-wrap: anywhere; line-height: 1.45; }
.database-page img { display: inline-block; vertical-align: middle; }
.database-page a { color: var(--blue); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.admin-page li { margin-block: 8px; }
.admin-form { display: grid; gap: 14px; max-width: 760px; }
.admin-form input:not([type="hidden"]), .admin-form select, .admin-form textarea {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    font: inherit;
}
.admin-form button { justify-self: start; }

.college-directory { list-style: none; padding: 0; margin-top: 20px; }
.college-directory li { border-top: 1px solid #d8dfe9; }
.college-directory a { display: block; padding: 10px 0; }
.college-profile { max-width: 1060px; margin-inline: auto; overflow-wrap: anywhere; }
.college-profile h2 { margin-bottom: 24px; color: var(--navy); line-height: 1.15; }
.college-profile a { color: var(--blue); }
.college-back { margin: 4px 0 16px; font-size: 15px; font-weight: bold; }
.college-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 20px;
    align-items: start;
}
.college-panel {
    background: #fff;
    border: 1px solid #d8dfe9;
    border-top: 4px solid var(--royal);
    border-radius: 8px;
    padding: 20px;
}
.college-panel h3 { margin: 0 0 10px; font-size: 22px; }
.college-panel dl, .college-panel p { margin: 0; }
.college-panel dl div { padding: 10px 0; border-bottom: 1px solid #e2e7ef; }
.college-panel dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.college-panel dt { margin-bottom: 4px; color: #46536a; font-size: 14px; font-weight: bold; }
.college-panel dd { margin: 0; line-height: 1.4; }
.college-majors { margin-top: 20px; line-height: 1.5; }
.college-profile-grid:empty { display: none; }

.hero-slideshow { position: relative; min-width: 0; }
.hero-slideshow-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: #101a3c;
    color: #fff;
    font: 600 13px Arial, sans-serif;
    cursor: pointer;
}
.hero-slideshow-toggle:focus-visible { outline: 3px solid #ffb629; outline-offset: 3px; }
