/* UISB public website — design tokens and components (from the Lovable prototype).
   Built on Bootstrap 5.3 (local). Loaded only by layouts/public.php. */

@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
    --forest: #163d2e;
    --forest-2: #0f2e22;
    --brand: #23684a;
    --gold: #d0ad6c;
    --gold-deep: #8f6d23;
    --gold-soft: #f3e9d4;
    --ivory: #f7f5ef;
    --ivory-deep: #edeae0;
    --charcoal: #252e2a;
    --muted: #5d6762;
    --line: #e2dccc;
    --card: #ffffff;
    --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 1rem;
    --shadow: 0 1px 2px rgba(22, 61, 46, .05), 0 8px 24px -12px rgba(22, 61, 46, .18);
    --gradient-forest: linear-gradient(140deg, var(--forest) 0%, #0f3324 100%);

    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--charcoal);
    --bs-body-bg: var(--ivory);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 35, 104, 74;
    --bs-link-hover-color: var(--forest);
    --bs-border-color: var(--line);
    --bs-emphasis-color: var(--charcoal);
}

body.site { background: var(--ivory); color: var(--charcoal); font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.site h1, .site h2, .site h3, .site .display { font-family: var(--font-display); font-weight: 400; color: var(--forest); letter-spacing: -.01em; text-wrap: balance; }
.site h1 em, .site h2 em, .site h3 em { color: var(--gold-deep); }
.site .on-dark h1 em, .site .on-dark h2 em { color: var(--gold); }
.site h4, .site h5, .site h6 { font-family: var(--font-sans); font-weight: 700; color: var(--charcoal); }
.site p { text-wrap: pretty; }
.site a { text-underline-offset: 3px; }
.site :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.site img { max-width: 100%; height: auto; }
.text-muted-site { color: var(--muted) !important; }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: var(--forest); color: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip-link:focus { left: .5rem; color: #fff; }

/* Sample-content banner and top bar */
.sample-banner { background: var(--gold-soft); color: #5b4612; font-size: .8rem; padding: .35rem 0; }
.topbar { background: var(--forest); color: #dfe7e2; font-size: .8rem; }
.topbar a { color: #dfe7e2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .give { color: var(--gold); font-weight: 700; }
.topbar .portal { border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: .15rem .7rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(247, 245, 239, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 44px; height: 46px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; color: var(--forest); letter-spacing: .02em; }
.brand-sub { display: block; font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-top: .2rem; }
.site-nav .nav-link { color: var(--charcoal); font-weight: 500; font-size: .92rem; padding: .5rem .7rem !important; position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--forest); }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -.15rem; height: 2px; background: var(--gold); border-radius: 2px; }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); padding: .4rem; }
.site-nav .dropdown-item { border-radius: .6rem; font-size: .92rem; padding: .45rem .8rem; }
.site-nav .dropdown-item:active { background: var(--forest); }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; color: var(--charcoal); border: 0; background: transparent; }
.icon-btn:hover { background: var(--ivory-deep); color: var(--forest); }
.offcanvas.site-menu { background: var(--ivory); max-width: 88vw; }
.site-menu .nav-link { color: var(--charcoal); font-weight: 600; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.site-menu .sub { padding-left: 1rem; font-weight: 500; font-size: .95rem; }

/* Buttons */
.btn-pill { border-radius: 99px; padding: .65rem 1.4rem; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; }
.btn-gold { background: var(--gold); color: var(--forest-2); border: 1px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: #c39d57; border-color: #c39d57; color: var(--forest-2); }
.btn-forest { background: var(--forest); color: #fff; border: 1px solid var(--forest); }
.btn-forest:hover, .btn-forest:focus { background: var(--forest-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid #cfc8b4; }
.btn-ghost:hover { background: var(--card); color: var(--forest); border-color: var(--forest); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-round { width: 40px; height: 40px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: var(--forest); color: #fff; border: 0; }
.btn-round:hover { background: var(--brand); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--forest); display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow:hover { color: var(--brand); gap: .55rem; }

/* Section scaffolding */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--card); }
.section-forest { background: var(--gradient-forest); color: #dfe7e2; }
.section-forest h2, .section-forest h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .section-forest .eyebrow { color: var(--gold); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; margin-bottom: .9rem; }
.lead-site { font-size: 1.05rem; color: var(--muted); max-width: 40rem; }
.section-forest .lead-site, .on-dark .lead-site { color: #cbd7d0; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--forest-2); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 33, 23, .92) 0%, rgba(9, 33, 23, .72) 45%, rgba(9, 33, 23, .25) 100%); }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; max-width: 13ch; }
.hero h1 em { color: var(--gold); }
.hero .lead-site { color: #d8e2dc; }
/* About 60% of the screen tall; grows only if the content needs more, so the buttons are never cut off. */
.hero-home { min-height: 60vh; display: flex; align-items: center; padding: 1.75rem 0; }
.hero-home > .container { width: 100%; }
.hero-home h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 24ch; margin-bottom: .75rem !important; }
.hero-home .eyebrow { margin-bottom: .5rem; }
.hero-home .lead-site { max-width: 60ch; margin-bottom: 1rem !important; }
.hero-home .hero-search { margin-bottom: 1rem !important; }
.pillars-band { background: var(--forest-2); padding: 1.25rem 0; }
.pillars-band .pillars { margin-top: 0; }
.hero-page { padding: 4.5rem 0 3.5rem; }
.hero-page h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18ch; }
.hero-search { background: #fff; border-radius: 99px; padding: .35rem; display: flex; align-items: center; gap: .25rem; max-width: 34rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.hero-search i { color: var(--muted); padding-left: .8rem; }
.hero-search input { border: 0; flex: 1; min-width: 0; padding: .55rem .4rem; font-size: .95rem; background: transparent; color: var(--charcoal); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px -10px rgba(0,0,0,.35); }
.pillars { margin-top: 3rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 1.1rem; backdrop-filter: blur(6px); }
.pillar { display: flex; gap: .8rem; padding: 1.2rem 1.3rem; color: #fff; text-decoration: none; height: 100%; }
.pillar:hover { background: rgba(255,255,255,.06); color: #fff; }
.pillar .ico { width: 38px; height: 38px; flex: none; border-radius: 99px; background: rgba(208,173,108,.18); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.pillar strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; display: block; line-height: 1.2; }
.pillar small { color: #c3cfc8; font-size: .8rem; line-height: 1.4; display: block; margin-top: .2rem; }
.crumbs { font-size: .8rem; color: #c3cfc8; margin-bottom: 1.4rem; }
.crumbs a { color: #e4ece7; text-decoration: none; }
.crumbs .sep { margin: 0 .4rem; opacity: .6; }

/* Stats strip */
.stats { background: var(--card); border-block: 1px solid var(--line); }
.stat { padding: 1.6rem 1rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--forest); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

/* Cards */
.card-site { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
a.card-site, .card-site a.stretched-link { color: inherit; text-decoration: none; }
.card-site:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,61,46,.06), 0 18px 36px -16px rgba(22,61,46,.28); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ivory-deep); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-site:hover .card-media img { transform: scale(1.04); }
.card-media .tags { position: absolute; top: .7rem; left: .7rem; right: .7rem; display: flex; justify-content: space-between; gap: .4rem; }
.card-body-site { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.site .card-title-site { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; font-size: 1rem; line-height: 1.35; color: var(--charcoal); margin: 0; }
.card-kicker { font-size: .78rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-price { font-weight: 800; font-size: 1.15rem; color: var(--forest); }
.card-unit { font-size: .78rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; }

/* Badges & chips */
.seller-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: .25rem .6rem; }
.seller-uisb { background: var(--forest); color: var(--gold); }
.seller-hub { background: #fff; color: var(--forest); border: 1px solid #cfdcd4; }
.seller-alumni { background: var(--gold-soft); color: #6d5212; border: 1px solid #e6d3a6; }
.seller-vendor { background: #fff; color: var(--charcoal); border: 1px solid var(--line); }
.tag-light { background: rgba(255,255,255,.95); color: var(--forest); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: .25rem .6rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: .2rem .6rem; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.chip-in_stock, .chip-bookable { background: #e3f1e8; color: #1f6b42; }
.chip-limited, .chip-seasonal, .chip-made_to_order { background: var(--gold-soft); color: #7a5a14; }
.chip-out_of_stock { background: #f6e1de; color: #9b2c1f; }
.verified { color: var(--brand); font-size: .78rem; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }

/* Seller legend */
.legend { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.legend-item { display: flex; gap: .7rem; align-items: center; background: var(--ivory); border: 1px solid var(--line); border-radius: .9rem; padding: .8rem .9rem; font-size: .8rem; color: var(--muted); text-decoration: none; }
.legend-item:hover { border-color: var(--gold); color: var(--charcoal); }

/* Hub mosaic */
.hub-mosaic { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hub-tile { position: relative; border-radius: 1.1rem; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--forest-2); }
.hub-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hub-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(9, 33, 23, .92) 100%); }
.hub-tile:hover img { transform: scale(1.05); }
.hub-tile .inner { position: relative; z-index: 1; padding: 1.3rem; }
.hub-tile h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.hub-tile p { color: #d5dfd9; font-size: .85rem; margin-bottom: .5rem; }
.hub-tile .go { color: var(--gold); font-size: .82rem; font-weight: 700; }
@media (min-width: 768px) {
    .hub-mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .hub-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; }
    .hub-mosaic .hub-tile:first-child { grid-row: span 2; }
}

/* Institution collage */
.collage { position: relative; padding: 0 0 3rem 0; }
.collage .main { border-radius: 1.2rem; box-shadow: var(--shadow); width: 85%; aspect-ratio: 4/3; object-fit: cover; }
.collage .inset { position: absolute; right: 0; bottom: 0; width: 45%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1rem; border: 5px solid var(--ivory); box-shadow: var(--shadow); }
.collage .quote { position: absolute; left: 1rem; bottom: 1.2rem; max-width: 15rem; background: var(--forest); color: #fff; border-radius: .9rem; padding: .9rem 1rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.collage .quote i { color: var(--gold); display: block; margin-bottom: .2rem; }
.value { display: flex; gap: .8rem; }
.value .ico { width: 38px; height: 38px; flex: none; border-radius: 99px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-deep); background: var(--card); }
.value h4 { font-size: .95rem; margin: 0 0 .15rem; }
.value p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Events */
.event-row { display: flex; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); height: 100%; }
.date-tile { flex: none; width: 64px; text-align: center; background: var(--forest); color: #fff; border-radius: .8rem; padding: .55rem 0; align-self: flex-start; }
.date-tile .m { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.date-tile .d { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.event-meta { font-size: .82rem; color: var(--muted); display: grid; gap: .15rem; }
.event-meta i { color: var(--gold-deep); margin-right: .35rem; }

/* Campaigns */
.progress-site { height: 8px; border-radius: 99px; background: var(--ivory-deep); overflow: hidden; }
.progress-site > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 99px; }
.section-forest .progress-site { background: rgba(255,255,255,.14); }
.campaign-feature { background: var(--card); border-radius: 1.2rem; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.campaign-feature .media { min-height: 260px; position: relative; }
.campaign-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amount-big { font-family: var(--font-display); font-size: 2.2rem; color: var(--forest); line-height: 1; }
.budget-table td, .budget-table th { padding: .55rem .25rem; border-color: var(--line); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.3rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 99px; background: var(--gold); border: 2px solid var(--ivory); }

/* Alumni */
.decade { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.4rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.decade:hover { background: rgba(255,255,255,.1); color: #fff; }
.decade strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.avatar { width: 52px; height: 52px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; background: var(--forest); color: var(--gold); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); height: 100%; }
.feature-card .ico { color: var(--gold-deep); font-size: 1.4rem; }
.feature-card h3 { font-size: 1.35rem; margin: .6rem 0 .3rem; }
.feature-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* News */
.news-lead .card-media { aspect-ratio: 16 / 9; }
.news-mini { display: flex; gap: 1rem; text-decoration: none; color: inherit; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.news-mini:last-child { border-bottom: 0; }
.news-mini img { width: 96px; height: 76px; object-fit: cover; border-radius: .7rem; flex: none; }
.news-mini h4 { font-size: .95rem; line-height: 1.35; margin: .15rem 0; }
.news-mini:hover h4 { color: var(--brand); }
.cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold-deep); }

/* Prose (rich text) */
.prose { font-size: 1.03rem; line-height: 1.8; max-width: 44rem; }
.prose h2 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose blockquote { border-left: 3px solid var(--gold); padding: .3rem 0 .3rem 1.2rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 1.4rem 0; box-shadow: var(--shadow); }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .93rem; line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 600; color: var(--forest); white-space: nowrap; }

/* Filters / shop */
.cat-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.cat-strip .scroller { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem 0; scrollbar-width: thin; }
.pill-filter { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: .4rem 1rem; font-size: .85rem; font-weight: 600; color: var(--charcoal); text-decoration: none; background: var(--card); }
.pill-filter:hover { border-color: var(--forest); color: var(--forest); }
.pill-filter.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.filter-label { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 1.6rem 0 .7rem; }
.filter-label:first-child { margin-top: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: .45rem .7rem; border-radius: .6rem; color: var(--charcoal); text-decoration: none; font-size: .9rem; }
.filter-list a:hover { background: var(--ivory-deep); }
.filter-list a.active { background: var(--forest); color: #fff; font-weight: 600; }
.filter-list a span { color: var(--muted); font-size: .8rem; }
.filter-list a.active span { color: #cfe0d6; }
.notice-sample { background: var(--gold-soft); border: 1px solid #e6d3a6; color: #5b4612; border-radius: .9rem; padding: .65rem 1rem; font-size: .85rem; }
.notice-sample b { background: #e9d7ae; border-radius: .4rem; padding: .05rem .4rem; font-size: .7rem; letter-spacing: .08em; margin-right: .4rem; }
.pager-site .page-link { border-radius: 99px !important; margin: 0 .2rem; border: 1px solid var(--line); color: var(--charcoal); min-width: 40px; text-align: center; }
.pager-site .active .page-link { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Detail pages */
.detail-media { border-radius: 1.2rem; overflow: hidden; background: var(--ivory-deep); aspect-ratio: 4 / 3; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; }
.share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); }
.share a, .share button { width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--forest); }

/* Forms */
.site .form-control, .site .form-select { border-radius: .7rem; border-color: #d9d3c2; padding: .6rem .85rem; background-color: #fff; }
.site .form-control:focus, .site .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(208, 173, 108, .3); }
.site .form-label { font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.site .form-check-input:checked { background-color: var(--forest); border-color: var(--forest); }

/* CTA band */
.cta-band { background: var(--gold-soft); border-radius: 1.4rem; padding: 2.5rem; }
.cta-tile { display: flex; gap: .8rem; text-decoration: none; color: inherit; }
.cta-tile .ico { width: 42px; height: 42px; border-radius: 99px; background: var(--forest); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cta-tile strong { display: block; color: var(--forest); }
.cta-tile small { color: var(--muted); }

/* Footer */
.site-footer { background: var(--forest-2); color: #b9c8bf; font-size: .9rem; }
.site-footer h5 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #b9c8bf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .newsletter { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; padding: 1.5rem; }
.site-footer .newsletter h3 { color: #fff; font-size: 1.5rem; margin-bottom: .2rem; }
.site-footer .newsletter input { background: rgba(255,255,255,.95); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: #8fa398; }

.alert-site { border-radius: .9rem; border: 1px solid; }

/* Mobile */
@media (max-width: 767.98px) {
    .section { padding: 3.25rem 0; }
    .hero-home { padding: 2.25rem 0 2rem; }
    .hero-page { padding: 3rem 0 2.5rem; }
    .hero::after { background: linear-gradient(180deg, rgba(9, 33, 23, .78) 0%, rgba(9, 33, 23, .9) 100%); }
    .pillars { margin-top: 2rem; }
    .pillar { padding: .9rem 1rem; }
    .collage .main { width: 100%; }
    .collage .inset { width: 50%; }
    .collage .quote { left: .6rem; bottom: .6rem; max-width: 11rem; font-size: .9rem; }
    .cta-band { padding: 1.5rem; }
    .stat-num { font-size: 1.9rem; }
    .event-row { flex-direction: row; padding: .9rem; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .card-site, .card-site:hover, .card-media img, .hub-tile img { transition: none; transform: none !important; }
}

/* Compact hub tiles (4 across): title + link only */
.hub-tile h3 { line-height: 1.1; }
.hub-tile.compact { min-height: 200px; }
.hub-tile.compact h3 { font-size: 1.25rem; }
.hub-tile.compact p { display: none; }

/* Photo gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gallery-open { display: block; padding: 0; border: 0; background: var(--ivory-deep); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-open:hover img, .gallery-open:focus-visible img { transform: scale(1.04); }
.gallery-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gallery-item figcaption { padding: .75rem .9rem .9rem; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.gallery-item .credit { display: block; font-size: .75rem; margin-top: .2rem; }
.gallery-viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.gallery-viewer::backdrop { background: rgba(9, 20, 15, .92); }
.gallery-viewer figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem 1.5rem; }
.gallery-viewer img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: .5rem; }
.gallery-viewer figcaption { color: #e7eee9; margin-top: .9rem; text-align: center; max-width: 60rem; font-size: .95rem; }
.gallery-viewer button { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 3rem; height: 3rem; border-radius: 99px; font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; }
.gallery-viewer button:hover, .gallery-viewer button:focus-visible { background: rgba(255,255,255,.25); }
.gv-close { top: 1rem; right: 1rem; }
.gv-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gv-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .gallery-viewer figure { padding: 3.5rem .75rem 1rem; } .gv-prev, .gv-next { top: auto; bottom: 1rem; transform: none; } }
/* Menu: room for the News dropdown on laptop widths without wrapping */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .site-nav .nav-link { padding: .5rem .5rem !important; }
    .site-nav .nav-link.active::after { left: .5rem; right: .5rem; }
}
/* With the Academics menu: keep one line from 1200px (desktop menu starts at xl) */
.site-nav { flex-wrap: nowrap; white-space: nowrap; }
.site-header .btn-gold, .brand-sub { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-nav .nav-link { font-size: .86rem; padding: .5rem .4rem !important; }
    .site-nav .nav-link.active::after { left: .4rem; right: .4rem; }
}


/* Lecturers & programmes */
.code-chip { display: inline-block; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--gold-soft); color: var(--forest); border-radius: 6px; padding: .12rem .45rem; margin: .2rem .25rem 0 0; }
.avatar-lg { width: 120px; height: 120px; font-size: 2.4rem; }
.course-table { font-size: .93rem; background: var(--card); }
.course-table th { font-family: var(--font-display); font-weight: 600; color: var(--forest); white-space: nowrap; }
.course-table tr:target { background: var(--gold-soft); }
.status-c { color: var(--forest); font-weight: 700; }
.status-r { color: var(--gold-deep); font-weight: 700; }
.status-e { color: var(--muted, #5f6b66); }

/* Event cards: the event's own image as the card background */
.event-row.has-bg { position: relative; overflow: hidden; border: 0; min-height: 230px; color: #fff; background: var(--forest-2); }
.event-row.has-bg .event-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .35s ease; }
.event-row.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,34,26,.8) 0%, rgba(12,34,26,.9) 45%, rgba(12,34,26,.96) 100%); }
.event-row.has-bg h3, .event-row.has-bg h3 a { color: #fff !important; }
.event-row.has-bg h3, .event-row.has-bg p, .event-row.has-bg .event-meta { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.event-row.has-bg > :not(.event-bg) { position: relative; z-index: 2; }
.event-row.has-bg:hover .event-bg { transform: scale(1.05); }
.event-row.has-bg .date-tile { background: rgba(255,255,255,.12); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); }
.event-row.has-bg .cat, .event-row.has-bg .link-arrow, .event-row.has-bg .event-meta i { color: var(--gold); }
.event-row.has-bg .text-muted-site, .event-row.has-bg .event-meta { color: #eef3f0 !important; } /* overrides the global muted grey */
.event-row.has-bg strong { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .event-row.has-bg .event-bg { transition: none; } .event-row.has-bg:hover .event-bg { transform: none; } }
