/* ==========================================================================
   Quality Enhancement Cell — AUST
   Palette carried over from the existing QEC site so the two match.
   ========================================================================== */

:root {
    --primary: #3d315b;
    --primary-light: #524175;
    --primary-dark: #2a2240;
    --secondary: #6c5b7b;
    --accent: #c06c84;
    --gold: #d4af37;
    --green: #14653a;

    --light: #f8f9fa;
    --dark: #212529;
    --muted: #6b7280;
    --border: #e4e2ea;
    --surface: #ffffff;
    --surface-alt: #f6f5f9;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(42, 34, 64, .06), 0 1px 3px rgba(42, 34, 64, .08);
    --shadow: 0 4px 12px rgba(42, 34, 64, .08);
    --shadow-lg: 0 12px 32px rgba(42, 34, 64, .14);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Segoe UI Semibold", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;

    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: #33303d;
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ topbar */

.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 14px; height: 14px; }
.social-links { display: inline-flex; gap: 8px; }
.social-links a {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1); transition: background .18s;
}
.social-links a:hover { background: var(--accent); }
.social-links .icon { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ header */

/* ------------------------------------------------- brand + menu (one row) */

.mainbar {
    background: #fff; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow-sm);
}
/* Wider than the page container so nine menu items sit beside the brand. */
.mainbar .wrap { max-width: 1340px; display: flex; align-items: stretch; gap: 26px; position: relative; }

.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; min-width: 0; padding: 11px 0; }
.brand-logo { height: 56px; width: auto; flex: none; }
.brand-text { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.brand-title {
    font-family: var(--font-head); font-weight: 700; font-size: 1.06rem;
    color: var(--primary); letter-spacing: -.2px; line-height: 1.2;
}
.brand-sub { font-size: .74rem; color: var(--muted); margin-top: 2px; line-height: 1.25; }

.nav-toggle {
    display: none; background: var(--primary); color: #fff; border: 0;
    width: 42px; height: 38px; border-radius: var(--radius-sm); cursor: pointer;
    align-items: center; justify-content: center; align-self: center; margin-left: auto;
}
.nav-toggle .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------- main menu */

.mainnav { margin-left: auto; display: flex; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.menu > li { position: relative; display: flex; }
.menu > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 0 11px; color: #3b3550;
    font-size: .82rem; font-weight: 600; letter-spacing: .1px; white-space: nowrap;
    border-bottom: 3px solid transparent; transition: color .16s, border-color .16s, background .16s;
}
.menu > li > a:hover, .menu > li.open > a, .menu > li > a.active {
    color: var(--primary); background: var(--surface-alt); border-bottom-color: var(--accent);
}
.menu > li > a.active { border-bottom-color: var(--gold); }
.menu .caret { width: 12px; height: 12px; opacity: .6; }

.submenu {
    position: absolute; top: 100%; left: 0; min-width: 268px;
    background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
    list-style: none; margin: 0; padding: 6px 0; z-index: 70;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.menu > li:hover > .submenu, .menu > li.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
/* Menus near the right edge open leftwards so they stay on screen. */
.menu > li:nth-last-child(-n+3) > .submenu { left: auto; right: 0; }
.submenu li { margin: 0; }
.submenu a {
    display: block; padding: 9px 18px; font-size: .855rem; color: #423d52;
    border-left: 3px solid transparent; transition: all .14s;
}
.submenu a:hover { background: var(--surface-alt); color: var(--primary); border-left-color: var(--accent); }

/* ------------------------------------------------------------------ ticker */

.ticker { background: var(--surface-alt); border-bottom: 1px solid var(--border); font-size: .84rem; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.ticker-label {
    background: var(--accent); color: #fff; font-weight: 700; font-size: .72rem;
    letter-spacing: .8px; text-transform: uppercase; padding: 4px 11px;
    border-radius: 3px; display: inline-flex; align-items: center; gap: 6px; flex: none;
}
.ticker-track { overflow: hidden; flex: 1; min-width: 0; }
.ticker-items { display: flex; gap: 40px; white-space: nowrap; animation: ticker 42s linear infinite; }
.ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { color: #4a4459; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; background: var(--primary-dark); color: #fff; overflow: hidden; }
.hero-slide {
    display: none; position: relative;
    min-height: 440px; padding: 76px 0;
    background-size: cover; background-position: center;
}
.hero-slide.on { display: block; animation: fade .6s ease; }

/* Artwork slides carry their own headline and logos: no gradient, no padding,
   no minimum height — just the banner, edge to edge and never cropped. */
.hero-slide.art { min-height: 0; padding: 0; background: #fff; line-height: 0; }
.hero-slide.art::before, .hero-slide.art::after { content: none; }
.hero-slide.art img { width: 100%; height: auto; display: block; }
.hero-slide.art a { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Weighted to the left, where the headline sits, so the campus photograph
   stays visible on the right instead of being washed out. */
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg,
        rgba(35, 28, 54, .94) 0%,
        rgba(48, 39, 72, .86) 38%,
        rgba(61, 49, 91, .60) 68%,
        rgba(122, 86, 112, .38) 100%);
}
.hero-slide::after {
    content: ""; position: absolute; inset: 0; opacity: .12;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 26px 26px;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2);
    padding: 5px 14px; border-radius: 40px; font-size: .74rem;
    letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: .35em; }
.hero p { font-size: 1.06rem; color: rgba(255, 255, 255, .87); max-width: 620px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.hero-dots button {
    width: 26px; height: 4px; border: 0; border-radius: 3px; cursor: pointer;
    background: rgba(255, 255, 255, .35); padding: 0; transition: background .2s;
}
.hero-dots button.on { background: var(--gold); }

/* ------------------------------------------------------------- page banner */

.banner {
    position: relative; background: var(--primary); color: #fff;
    padding: 46px 0; background-size: cover; background-position: center;
}
.banner::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg,
        rgba(35, 28, 54, .95) 0%,
        rgba(48, 39, 72, .90) 50%,
        rgba(61, 49, 91, .74) 100%);
}
.banner .wrap { position: relative; z-index: 2; }
.banner h1 { color: #fff; margin-bottom: .2em; font-size: 1.95rem; }
.banner p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 760px; }
.crumbs { font-size: .8rem; color: rgba(255, 255, 255, .68); margin-bottom: 10px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .82); }
.crumbs a:hover { color: var(--gold); }
.crumbs .icon { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- sections */

.section { padding: 72px 0; }
.section.alt { background: var(--surface-alt); }
.section.tight { padding: 40px 0; }

.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head .eyebrow {
    display: inline-block; color: var(--accent); font-size: .74rem; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); margin: 0; }
.section-head .rule { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 14px; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------------- grid */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
/* The aside is usually shorter than the column beside it — letting it travel
   keeps it in view instead of stranding it above a block of empty page. */
.split > aside { position: sticky; top: 96px; }

/* ------------------------------------------------------------------- cards */

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d2e2; }
.card h3 { font-size: 1.06rem; margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .91rem; margin: 0; }

.card-icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}
.card-icon .icon { width: 23px; height: 23px; }
.card.accent .card-icon { background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%); }

.num-card { display: flex; gap: 16px; align-items: flex-start; }
.num-badge {
    flex: none; width: 34px; height: 34px; border-radius: 9px;
    background: var(--primary); color: #fff; font-weight: 700; font-size: .88rem;
    display: flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------------- stats */

.stats {
    position: relative; color: #fff; padding: 48px 0;
    background: linear-gradient(115deg, var(--primary-dark) 0%, #332a4d 55%, var(--primary) 100%);
    border-top: 3px solid var(--gold);
}
.stats::after {
    content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 26px 26px;
}
.stats .wrap { position: relative; z-index: 1; }
/* Hairlines between the figures, none before the first in a row. */
.stat { text-align: center; padding: 8px 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; }
.stat .icon { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 10px; }
.stat-value { font-family: var(--font-head); font-size: 2.05rem; font-weight: 700; line-height: 1; color: #fff; }
.stat-label { font-size: .82rem; color: rgba(255, 255, 255, .72); margin-top: 7px; letter-spacing: .3px; }

/* ---------------------------------------------------------------- director */

.msg-card { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.msg-photo {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    border: 4px solid #fff; outline: 1px solid var(--border); background: var(--surface-alt);
}
.msg-photo img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; object-position: top center; }
.msg-photo-empty {
    aspect-ratio: 3 / 3.6; display: flex; align-items: center; justify-content: center;
    color: #c9c4d6; background: var(--surface-alt);
}
.msg-photo-empty .icon { width: 56px; height: 56px; }
.msg-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--primary); margin-top: 14px; text-align: center; }
.msg-role { font-size: .82rem; color: var(--muted); text-align: center; }
.msg-body { position: relative; }
.msg-body::before {
    content: "\201C"; position: absolute; top: -32px; left: -8px;
    font-size: 5.5rem; line-height: 1; color: var(--accent); opacity: .16; font-family: Georgia, serif;
}
.msg-body p:last-child { margin-bottom: 0; }
/* The opening paragraph carries the message on the home page, so it is set a
   step larger than the body copy that follows it. */
.msg-body .prose > p:first-child { font-size: 1.04rem; color: #3a3547; }

/* ------------------------------------------------------------ read-more link */

.readmore {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
    font-family: var(--font-head); font-weight: 700; font-size: .88rem;
    color: var(--primary); border-bottom: 2px solid rgba(192, 108, 132, .35);
    padding-bottom: 3px; transition: color .18s ease, border-color .18s ease;
}
.readmore:hover { color: var(--accent); border-bottom-color: var(--accent); }
.readmore .icon { width: 15px; height: 15px; transition: transform .18s ease; }
.readmore:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------- lists */

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { margin: 0; border-bottom: 1px dashed var(--border); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { display: flex; gap: 11px; padding: 13px 0; align-items: flex-start; color: #3a3547; }
.linklist a:hover { color: var(--accent); }
.linklist .icon { width: 15px; height: 15px; color: var(--accent); margin-top: 4px; }
.linklist .meta { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }
.linklist .title { font-size: .91rem; font-weight: 600; }

.notice-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.notice-item:last-child { border-bottom: 0; }
.notice-date {
    flex: none; width: 62px; text-align: center; border-radius: var(--radius-sm);
    background: var(--surface-alt); border: 1px solid var(--border); padding: 8px 4px;
}
.notice-date .d { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1; }
.notice-date .m { font-size: .68rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-top: 3px; }
.notice-body h3 { font-size: 1rem; margin-bottom: .25em; }
.notice-body p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ badges */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 40px; font-size: .74rem; font-weight: 700;
    letter-spacing: .3px; white-space: nowrap;
}
.badge-accredited { background: #e6f4ec; color: #14653a; }
.badge-process { background: #fff4e0; color: #8a5a00; }
.badge-applied { background: #e8f0fb; color: #23508c; }
.badge-na { background: #f0eef4; color: #6b6580; }
.badge-soft { background: rgba(61, 49, 91, .08); color: var(--primary); }
.badge-gold { background: rgba(212, 175, 55, .16); color: #8a6d12; }
.badge-accent { background: rgba(192, 108, 132, .14); color: #9c4a63; }

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 11px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .16s; text-align: center;
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a85870; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-alt); }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
table.data th {
    background: var(--primary); color: #fff; text-align: left; padding: 12px 16px;
    font-size: .76rem; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; white-space: nowrap;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-alt); }
table.data caption {
    caption-side: top; text-align: left; padding: 14px 16px; font-weight: 700;
    color: var(--primary); background: var(--surface-alt); border-bottom: 1px solid var(--border);
}

/* -------------------------------------------------------------- prose body */

.prose { font-size: 1rem; color: #3d3949; }
.prose h2 { margin-top: 1.8em; padding-bottom: .35em; border-bottom: 2px solid var(--surface-alt); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; color: var(--secondary); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote {
    margin: 1.4em 0; padding: 18px 24px; background: var(--surface-alt);
    border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.04rem; color: #423d52;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { color: var(--primary-dark); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Tables written inside admin-managed page bodies. */
.prose table {
    width: 100%; border-collapse: collapse; margin: 1.3em 0;
    font-size: .9rem; display: block; overflow-x: auto;
}
.prose table thead th {
    background: var(--primary); color: #fff; text-align: left; padding: 10px 14px;
    font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap;
}
.prose table td, .prose table th { border: 1px solid var(--border); padding: 10px 14px; vertical-align: top; }
.prose table tbody tr:nth-child(even) { background: var(--surface-alt); }
.prose table td:first-child { white-space: nowrap; }

/* -------------------------------------------------------- call to action */

.cta {
    position: relative; overflow: hidden; color: #fff; padding: 58px 0;
    background: linear-gradient(115deg, var(--primary-dark) 0%, var(--primary) 52%, var(--secondary) 100%);
}
.cta::before {
    content: ""; position: absolute; right: -80px; top: -120px;
    width: 340px; height: 340px; border-radius: 50%;
    background: rgba(212, 175, 55, .12);
}
.cta::after {
    content: ""; position: absolute; inset: 0; opacity: .1;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 26px 26px;
}
.cta-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 34px; flex-wrap: wrap;
}
.cta-inner > div { max-width: 660px; }
.cta-eyebrow {
    display: inline-block; margin-bottom: 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--gold);
}
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { color: rgba(255, 255, 255, .84); margin: 0; }
.cta .btn { flex: none; padding: 13px 24px; }

/* ----------------------------------------------------------------- people */

.avatar {
    border-radius: 50%; overflow: hidden; flex: none;
    background: var(--surface-alt); border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.avatar-monogram {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: 1px;
}
.avatar-card { width: 96px; height: 96px; margin: 0 auto 16px; }
.avatar-card .avatar-monogram { font-size: 1.9rem; }
.avatar-lead { width: 172px; height: 172px; }
.avatar-lead .avatar-monogram { font-size: 3.2rem; }

.person {
    height: 100%; text-align: center; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 20px 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.person h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--primary); }

.person-role { margin: 0; font-size: .86rem; font-weight: 600; color: var(--accent); }
.person-quals { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }

.person-contact { display: grid; gap: 6px; margin-top: 14px; }
.person-contact a {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-size: .8rem; color: #423d52; word-break: break-word;
}
.person-contact a:hover { color: var(--accent); }
.person-contact .icon { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* The head of office leads the section, laid out across the full width. */
.person-lead {
    display: grid; grid-template-columns: 172px 1fr; gap: 32px; align-items: center;
    background: var(--surface-alt); border: 1px solid var(--border);
    border-left: 4px solid var(--gold); border-radius: var(--radius);
    padding: 30px 34px;
}
.person-lead h3 { margin: 6px 0 4px; font-size: 1.32rem; color: var(--primary); }
.person-lead .person-contact { justify-items: start; margin-top: 16px; }
.person-lead .person-contact a { justify-content: flex-start; }
.person-rank {
    display: inline-block; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.1px;
    color: var(--primary); background: rgba(212, 175, 55, .3);
    padding: 3px 10px; border-radius: 999px;
}
.person-bio { margin-top: 10px; font-size: .9rem; }
.person-bio p:last-child { margin-bottom: 0; }

/* One tile per department, in place of a seventeen-row table. */
.focal {
    display: flex; flex-direction: column; gap: 7px; height: 100%;
    background: #fff; border: 1px solid var(--border);
    border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: box-shadow .18s ease, border-left-color .18s ease;
}
.focal:hover { box-shadow: var(--shadow); border-left-color: var(--gold); }
.focal-dept {
    font-family: var(--font-head); font-weight: 700; font-size: .93rem;
    color: var(--primary); line-height: 1.35;
}
.focal-name, .focal-mail { display: flex; align-items: center; gap: 7px; font-size: .82rem; }
.focal-name { color: #423d52; }
.focal-mail { color: var(--muted); word-break: break-word; }
.focal-mail:hover { color: var(--accent); }
.focal .icon { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------------------------------------------------------------- sidebar */

.sidebox { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.sidebox-head {
    background: var(--primary); color: #fff; padding: 13px 18px;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    display: flex; align-items: center; gap: 9px;
}
.sidebox-head .icon { width: 17px; height: 17px; color: var(--gold); }
.sidebox-body { padding: 18px; }
.sidenav { list-style: none; margin: 0; padding: 0; }
.sidenav li { border-bottom: 1px solid var(--border); }
.sidenav li:last-child { border-bottom: 0; }
.sidenav a { display: flex; align-items: center; gap: 9px; padding: 11px 18px; font-size: .875rem; color: #423d52; }
.sidenav a:hover, .sidenav a.active { background: var(--surface-alt); color: var(--primary); font-weight: 600; }
.sidenav a.active { border-left: 3px solid var(--accent); padding-left: 15px; }
.sidenav .icon { width: 14px; height: 14px; color: var(--accent); }

/* Illustrated news / event cards, laid out by the usual .grid classes. Each
   card is one anchor, so cover, badge and title are a single click target. */

.feed-item {
    height: 100%; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feed-item:hover, .feed-item:focus-visible {
    transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent;
}

.feed-cover { position: relative; display: block; background: var(--primary-dark); }
.feed-cover img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
    transition: transform .35s ease;
}
.feed-item:hover .feed-cover img { transform: scale(1.04); }
/* Scrim so the date stays legible over a light photograph. */
.feed-cover::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(42, 34, 64, .82) 0%, rgba(42, 34, 64, .12) 46%, transparent 68%);
}

.feed-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    background: var(--gold); color: #2a2240;
    font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
    padding: 4px 9px; border-radius: 999px;
}
.feed-badge.is-event { background: var(--accent); color: #fff; }
/* On a single-type listing the badge is context, not news — keep it quiet so a
   pinned item's gold badge is the thing that stands out. */
.feed-badge.is-plain { background: rgba(255, 255, 255, .9); color: var(--primary); }

.feed-date {
    position: absolute; left: 12px; bottom: 10px; z-index: 1;
    display: flex; align-items: center; gap: 6px;
    color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .3px;
}
.feed-date .icon { width: 13px; height: 13px; color: var(--gold); }

.feed-text { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 15px; }
.feed-title {
    display: block; font-family: var(--font-head); font-weight: 700;
    font-size: .93rem; line-height: 1.4; color: var(--primary);
}
.feed-item:hover .feed-title { color: var(--accent); }
.feed-excerpt { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.feed-meta {
    display: flex; align-items: center; gap: 6px;
    margin-top: 9px; font-size: .74rem; color: var(--secondary);
}
.feed-meta .icon { width: 13px; height: 13px; flex: none; }

/* Pushed to the foot of the card so a row of cards lines up regardless of how
   long each excerpt runs. */
.feed-more {
    display: flex; align-items: center; gap: 5px;
    margin-top: auto; padding-top: 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .3px; color: var(--accent);
}
.feed-more .icon { width: 14px; height: 14px; transition: transform .18s ease; }
.feed-item:hover .feed-more .icon { transform: translateX(3px); }

/* ------------------------------------------------------------ quick links */

.qlbox { border: 0; box-shadow: var(--shadow); }
.qlbox .sidebox-head {
    position: relative; overflow: hidden;
    background: linear-gradient(115deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
    padding: 15px 18px; letter-spacing: .2px;
}
/* A faint disc behind the heading, echoing the generated news covers. */
.qlbox .sidebox-head::after {
    content: ""; position: absolute; right: -26px; top: -34px;
    width: 104px; height: 104px; border-radius: 50%;
    background: rgba(212, 175, 55, .16);
}
.qlbox .sidebox-head .icon { position: relative; z-index: 1; }

.quicklinks { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; }
.quicklinks a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 600; color: #423d52;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.quicklinks a:hover, .quicklinks a:focus-visible {
    background: var(--surface-alt); color: var(--primary); transform: translateX(3px);
}

.ql-icon {
    width: 36px; height: 36px; flex: none;
    display: grid; place-items: center; border-radius: 9px;
    background: linear-gradient(135deg, rgba(192, 108, 132, .16) 0%, rgba(61, 49, 91, .12) 100%);
    color: var(--primary);
    transition: background .22s ease, color .22s ease, transform .22s ease;
}
.ql-icon .icon { width: 17px; height: 17px; }
.quicklinks a:hover .ql-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff; transform: rotate(-4deg) scale(1.06);
}

.ql-label { flex: 1; line-height: 1.35; }

.ql-arrow {
    width: 15px; height: 15px; flex: none; color: var(--accent);
    opacity: 0; transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
}
.quicklinks a:hover .ql-arrow { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .quicklinks a, .ql-icon, .ql-arrow { transition: none; }
    .quicklinks a:hover { transform: none; }
    .quicklinks a:hover .ql-icon { transform: none; }
}

.contact-line { display: flex; gap: 12px; margin-bottom: 15px; font-size: .88rem; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 3px; flex: none; }
.contact-line strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }

/* ------------------------------------------------------------------- forms */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: #45405a; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field .help { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.input, .field input[type=text], .field input[type=email], .field input[type=url],
.field input[type=number], .field input[type=date], .field input[type=password],
.field textarea, .field select {
    width: 100%; padding: 10px 13px; font-family: inherit; font-size: .92rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 0; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(82, 65, 117, .13);
}
.field .error { color: #b3243b; font-size: .8rem; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .9rem; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.alert-success { background: #e6f4ec; color: #14653a; border: 1px solid #bfe3ce; }
.alert-error { background: #fdecef; color: #a01c33; border: 1px solid #f6c7d0; }
.alert-info { background: #eef1f9; color: #33417a; border: 1px solid #ccd5ee; }

/* ------------------------------------------------------------------ accord */

.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
    width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer;
    padding: 16px 20px; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--primary-dark);
    display: flex; align-items: center; justify-content: space-between; gap: 14px; transition: background .15s;
}
.acc-head:hover { background: var(--surface-alt); }
.acc-head .icon { width: 17px; height: 17px; color: var(--accent); transition: transform .2s; }
.acc-item.open .acc-head { background: var(--surface-alt); }
.acc-item.open .acc-head .icon { transform: rotate(90deg); }
.acc-body { display: none; padding: 0 20px 18px; font-size: .92rem; color: #4b4658; }
.acc-item.open .acc-body { display: block; }

/* ----------------------------------------------------------------- gallery */

.tile { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.05); }
.tile-cap { padding: 14px 16px; }
.tile-cap h3 { font-size: .98rem; margin-bottom: .2em; }
.tile-cap p { font-size: .8rem; color: var(--muted); margin: 0; }
.tile-empty {
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    background: var(--surface-alt); color: #c9c4d6;
}
.tile-empty .icon { width: 42px; height: 42px; }

/* ------------------------------------------------------------- empty state */

.empty {
    text-align: center; padding: 52px 24px; border: 1px dashed var(--border);
    border-radius: var(--radius); background: var(--surface-alt); color: var(--muted);
}
.empty .icon { width: 38px; height: 38px; color: #c3bed2; margin: 0 auto 14px; }
.empty h3 { color: #6b6580; font-size: 1.02rem; }
.empty p { margin: 0; font-size: .9rem; }

/* ------------------------------------------------------------- pagination */

.pagination { display: flex; list-style: none; gap: 6px; padding: 0; margin: 32px 0 0; justify-content: center; flex-wrap: wrap; }
.pagination li { margin: 0; }
.page-link, .pagination .page-item span, .pagination .page-item a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; color: #4b4658; font-size: .87rem; text-decoration: none;
}
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: .45; }
.pagination .page-link:hover { border-color: var(--primary-light); color: var(--primary); }
.pagination svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ footer */

.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .7); padding: 52px 0 0; font-size: .89rem; }
.footer h4 {
    color: #fff; font-size: .92rem; margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative;
}
.footer h4::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 42px; height: 2px; background: var(--gold); }
.footer a { color: rgba(255, 255, 255, .7); }
.footer a:hover { color: var(--gold); }
.footer .grid { gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 5px; }
.footer-brand .n { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.footer-brand .s { font-size: .76rem; color: rgba(255, 255, 255, .6); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { display: inline-flex; gap: 7px; align-items: center; }
.footer-links .icon { width: 12px; height: 12px; color: var(--accent); }
.footer .contact-line strong { color: rgba(255, 255, 255, .5); }
.footer .contact-line .icon { color: var(--gold); }
.footer-bottom {
    margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0; font-size: .81rem;
}
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- misc */

.mb0 { margin-bottom: 0; }
.mt24 { margin-top: 24px; }
.center { text-align: center; }
.text-muted { color: var(--muted); }
.small { font-size: .84rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 992px) {
    .g4, .g6 { grid-template-columns: repeat(3, 1fr); }
    .g3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    /* Sticky needs a taller column than the aside to have anything to do. */
    .split > aside { position: static; }
    .stat:nth-child(3n + 1) { border-left: 0; }
    .msg-card { grid-template-columns: 200px 1fr; gap: 24px; }
    .hero h1 { font-size: 2.1rem; }

}

/* Brand plus nine inline items need about 1226px of content width, so the menu
   collapses to a burger below 1240px rather than at the usual tablet width. */
@media (max-width: 1240px) {
    .nav-toggle { display: inline-flex; }
    .mainnav { position: static; margin-left: auto; }
    .menu {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
        background: var(--primary-dark); max-height: 74vh; overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    .menu.show { display: flex; }
    .menu > li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .menu > li > a {
        padding: 13px 20px; justify-content: space-between;
        border-bottom: 0; color: rgba(255, 255, 255, .92); white-space: normal;
    }
    .menu > li > a:hover, .menu > li.open > a, .menu > li > a.active {
        background: rgba(255, 255, 255, .08); color: #fff; border-bottom-color: transparent;
    }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; box-shadow: none; border-radius: 0; border-top: 0;
        background: rgba(0, 0, 0, .18); padding: 0; min-width: 0;
    }
    .menu > li.open > .submenu { display: block; }
    .submenu a { color: rgba(255, 255, 255, .82); padding: 11px 34px; border-left: 0; }
    .submenu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
}

@media (max-width: 768px) {
    .g2, .g3, .g4, .g6 { grid-template-columns: repeat(2, 1fr); }
    .msg-card { grid-template-columns: 1fr; }
    .person-lead { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px; }
    .person-lead .person-contact { justify-items: center; }
    .person-lead .person-contact a { justify-content: center; }
    .msg-photo { max-width: 220px; margin: 0 auto; }
    .hero-slide { min-height: 360px; padding: 54px 0; }
    .hero h1 { font-size: 1.75rem; }
    .brand-sub { display: none; }
    .brand-logo { height: 46px; }
    .brand-title { font-size: .95rem; white-space: normal; }
    .topbar-left .topbar-item:nth-child(n+2) { display: none; }
    .section { padding: 40px 0; }
    h1 { font-size: 1.6rem; }
    .banner h1 { font-size: 1.5rem; }
}

@media (max-width: 520px) {
    .g2, .g3, .g4, .g6 { grid-template-columns: 1fr; }
    .stats .grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(odd) { border-left: 0; }
    .cta-inner { display: block; }
    .cta .btn { margin-top: 22px; }
    .footer-bottom .wrap { justify-content: center; text-align: center; }
}

@media print {
    .topbar, .mainbar, .ticker, .footer, .nav-toggle, .hero-dots { display: none !important; }
    body { font-size: 12pt; }
    .card, .table-wrap { break-inside: avoid; }
}
