/* ============================================================
   Public sites — DESIGN.md "Deep colour, gold and serif" (2026-11-02, after the user's reference fcms.kln.ac.lk)
   Loaded by includes/header.php after style.css, so it themes the faculty site and every unit's public pages and never
   the portals. Colours come only from the unit variables (--primary, --primary-dark, --accent, --accent-light) and the
   tokens below; deep grounds are color-mix()ed from --primary so each unit stays in its own colour.
   ============================================================ */

:root {
    --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Sinhala', 'Noto Sans Tamil', sans-serif;   /* public layer: Source Sans 3 (2026-11-02, replaces Inter) */
    --deep: #0c1430;            /* fallback when color-mix() is unsupported */
    --deep-2: #121c3f;
    --deep: color-mix(in srgb, var(--primary) 42%, #050608);
    --deep-2: color-mix(in srgb, var(--primary) 55%, #050608);
    --on-deep: #fff;
    --on-deep-body: rgba(255, 255, 255, .78);
    --on-deep-muted: rgba(255, 255, 255, .6);
    --panel: rgba(255, 255, 255, .05);
    --panel-2: rgba(255, 255, 255, .08);
    --panel-line: rgba(255, 255, 255, .12);
    --gutter: 24px;
    --section-y: 96px;
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
    --float: 0 18px 40px rgba(0, 0, 0, .28);
}

/* ─── Base ─── */
body { font: 400 17px/1.65 var(--font); color: var(--gray-700); background: #fff; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--gray-900); }
.container { max-width: calc(1240px + 2 * var(--gutter)); padding: 0 var(--gutter); }
main h1, main h2, main h3 { font-family: var(--font-display); font-weight: 600; color: var(--gray-900); letter-spacing: -0.005em; text-wrap: balance; }
main h1 { font-weight: 700; line-height: 1.1; }
main h2 { line-height: 1.18; }
main h3 { line-height: 1.3; }
main p, .footer p, .page-banner p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--primary); outline-color: var(--primary); outline-offset: 3px; }
:is(.hm, .navbar, .nav-menu, .dropdown, .page-banner, .footer, .news-featured, .vm-card, .stat-cell) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: var(--accent); }
.band :is(a, button):focus-visible { outline-color: var(--gray-900); }
.tabular, time { font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--gray-600); }

/* Section label — the reference's signature, kept on purpose (DESIGN.md §3): a gold rule and a spaced uppercase label. */
/* Inside home pages a label is often a <p> under .hs-text / .hm-head / .person, whose paragraph rules are more specific:
   restate the label so it keeps its gold, size and spacing everywhere. */

/* ─── Buttons: pills, condensed uppercase ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-pill); font: 700 13px/1 var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 12px; }
.btn-primary, .btn-blue { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-blue:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary, .btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--gray-900); }
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--gray-900); }
.btn-outline, .btn-on-dark { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover, .btn-on-dark:hover { background: #fff; border-color: #fff; color: var(--gray-900); }
.btn-arrow::after { content: "\2192"; font-family: var(--font); font-size: 13px; }

/* ─── Utility strip ─── */
.top-bar { background: #fff; color: var(--gray-600); font-size: 13px; padding: 0; border-bottom: 1px solid var(--gray-200); }
.top-bar .container { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.top-bar-left span i { color: var(--primary); }
.top-bar-right { gap: 10px; }
.top-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: var(--r-pill); font: 500 13px/1 var(--font-condensed); color: var(--gray-900) !important; transition: background-color .2s ease, border-color .2s ease; }
.top-pill:hover { border-color: var(--primary); background: var(--primary); color: #fff !important; }
.social-links a { background: transparent; color: var(--gray-500); border-radius: var(--r-pill); }
.social-links a:hover { background: var(--gray-100); color: var(--primary); }

/* ─── Navigation bar: solid unit colour, condensed uppercase ─── */
.navbar { background: var(--primary); box-shadow: none; border: 0; }
.navbar.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.navbar .container { min-height: 60px; gap: 24px; }
.logo { padding: 8px 0; gap: 12px; flex-shrink: 0; }
.logo-crest { height: 42px; filter: brightness(0) invert(1); }
.logo-text .name { font: 700 18px/1.1 var(--font-condensed); letter-spacing: .02em; color: #fff; }
.logo-text .sub { font-size: 12px; color: rgba(255, 255, 255, .75); }
.nav-menu { gap: 0; margin-left: auto; }
.nav-menu > li > a { padding: 20px 11px; font: 500 16px/20px var(--font-condensed); letter-spacing: .01em; text-transform: uppercase; color: rgba(255, 255, 255, .92); white-space: nowrap; border-radius: 0; }
.nav-menu > li > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-menu > li > a.active { color: #fff; font-weight: 700; }
.nav-menu > li > a.active::after { left: 11px; right: 11px; bottom: 0; height: 3px; border-radius: 0; background: var(--accent); }
.nav-menu > li > a i { font-size: 10px; color: rgba(255, 255, 255, .8); }
.dropdown { top: 100%; background: var(--deep); border: 1px solid var(--panel-line); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--float); padding: 8px; min-width: 240px; }
.dropdown li a { border: 0; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; color: var(--on-deep-body); }
.dropdown li a:hover { background: var(--panel-2); color: var(--accent); padding-left: 12px; }
.nav-new { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--gray-900); font: 700 12px/1.3 var(--font-condensed); letter-spacing: .04em; }
.nav-toggle span { background: #fff; }

/* ─── Inner pages: a deep title band, white reading surface ─── */
.page-banner { position: relative; background: var(--deep); color: #fff; padding: 72px 0 64px; overflow: hidden; }
.page-banner .container { position: relative; z-index: 1; display: flex; flex-direction: column; }
.page-banner h1 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1.12; color: #fff; max-width: 22ch; }
.page-banner .breadcrumb { order: -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; opacity: 1; font-size: 14px; color: var(--on-deep-muted); }
.page-banner .breadcrumb a { color: var(--on-deep-body); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.page-banner .breadcrumb a:hover { color: var(--accent); }
.page-banner .breadcrumb span { opacity: 1; color: var(--on-deep-muted); }
.page-banner p { margin-top: 16px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-deep-body); }
.page-banner::after { content: ""; position: absolute; right: -80px; top: 50%; width: 320px; height: 320px; margin-top: -160px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; }
.page-banner::before { content: ""; position: absolute; right: 40px; top: 50%; width: 120px; height: 120px; margin-top: -60px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 50%; }

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--light); }
.section-header { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.section-header h1, .section-header h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; margin-bottom: 0; }
.section-header p { margin: 14px auto 0; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--gray-600); }
.section-header .accent-bar { display: block; width: 56px; height: 3px; margin: 18px auto 0; background: var(--accent); border-radius: 0; }
.section-title-flex h2 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; }

/* Cards and building blocks on white */
.card { border: 1px solid var(--gray-200); border-radius: var(--r-md); padding: 28px; background: #fff; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { box-shadow: none; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 24, 39, .10); }
.card-header { border-bottom: 1px solid var(--gray-200); }
.card-header h2, .card-header h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md); }
.tile-icon { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--primary); color: var(--accent); font-size: 20px; }
.tile h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 2px 0 4px; color: var(--gray-900); }
.tile p { font-size: 14px; line-height: 1.5; color: var(--gray-500); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 48px; }
.stat-cell { padding: 28px 24px; background: var(--deep); border-radius: var(--r-md); text-align: center; }
.stat-cell b { display: block; font: 700 clamp(36px, 3.4vw, 48px)/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.stat-cell span { display: block; margin-top: 10px; font: 700 12px/1.3 var(--font-condensed); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.media-frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--light); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.staff-grid { gap: 16px; }
.staff-card { border: 1px solid var(--gray-200); border-radius: var(--r-md); }
.staff-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 24, 39, .10); }
.form-control { min-height: 44px; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--r-sm); font-size: 15px; background: #fff; }
textarea.form-control { min-height: 130px; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18); }
.form-group label { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.alert { border-radius: var(--r-md); font-size: 14px; padding: 14px 18px; }
.badge { border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.empty-state { color: var(--gray-500); }

/* Older page components on the new system */
.about-grid { gap: 56px; align-items: start; }
.about-grid .media-frame { aspect-ratio: 5 / 4; }
.about-text h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; max-width: 68ch; color: var(--gray-700); }
.vision-mission { gap: 16px; }
.vm-card { border: 0; background: var(--deep); color: var(--on-deep-body); border-radius: var(--r-md); padding: 36px; }
.vm-card h3, .vm-card h4 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; color: #fff; margin-bottom: 12px; }
.vm-card h3::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 14px; background: var(--accent); }
.vm-card p { font-size: 16px; line-height: 1.65; color: var(--on-deep-body); }
.prog-deg { border: 1px solid var(--gray-200); border-radius: var(--r-md); box-shadow: none; }
.prog-deg > summary { font-family: var(--font-display); font-weight: 600; color: var(--gray-900); padding: 20px 24px; }
.prog-deg[open] > summary { color: var(--primary); }
.highlight-card { border: 1px solid var(--gray-200); border-radius: var(--r-md); text-align: left; }
.highlight-card .hc-icon { background: var(--primary); color: var(--accent); border-radius: var(--r-sm); }
.research-card { border: 1px solid var(--gray-200); border-radius: var(--r-md); padding: 28px; }
.research-card:hover { box-shadow: 0 14px 30px rgba(17, 24, 39, .10); }
.research-card .r-type { text-transform: uppercase; letter-spacing: .08em; font: 700 12px/1 var(--font-condensed); border-radius: var(--r-pill); }
.research-card h3, .research-card h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.research-card .r-journal { color: var(--gray-600); font-style: normal; }
.module-table th { font: 700 12px/1.2 var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; background: var(--deep); color: #fff; }
/* News & events page */
.news-featured { background: var(--deep); border-radius: var(--r-lg); padding: 56px; color: var(--on-deep-body); margin-bottom: 48px; }
.news-featured h2, .news-featured h2 a { color: #fff; font-size: clamp(26px, 2.6vw, 36px); }
.news-featured h2 { margin: 12px 0; max-width: 30ch; }
.news-featured p { max-width: 65ch; }
.news-featured .nf-badge, .news-featured .ann-cat, .news-featured .ann-cat.exam, .news-featured .ann-cat.academic, .news-featured .ann-cat.urgent { background: var(--accent); color: var(--gray-900); font: 700 12px/1 var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; }
.news-featured .read-more { color: var(--accent); font-weight: 600; }
.ann-cat, .ann-card-v2 .ann-cat, .event-info-v2 .ev-cat-badge, .detail-facts .ev-cat-badge { font: 700 12px/1.2 var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r-pill); }
.ann-cat.exam, .badge-warning { color: #92400e; }
.ann-cat.academic { color: #1d4ed8; }
.ann-cat.urgent { color: #b91c1c; }
.staff-card-v2 .staff-desig, .profile-head .staff-desig { color: var(--primary); }   /* accent is never text on white */
.staff-photo-wrap.support .staff-initials { color: var(--gray-900); }
.badge-success { color: #15803d; }
.module-table .badge-elective { color: #92400e; }
.pin-label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.pin-label i { color: var(--gray-500); }
.ann-card-v2, .event-card-v2 { border-radius: var(--r-md); padding: 24px; }
.ann-card-v2:hover, .event-card-v2:hover { border-color: var(--gray-200); box-shadow: 0 14px 30px rgba(17, 24, 39, .10); transform: translateY(-3px); }
.ann-card-v2.pinned { background: var(--light); }
.ann-card-v2 h3, .ann-card-v2 h4, .event-info-v2 h3, .event-info-v2 h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.event-date-v2 { background: var(--deep); color: #fff; border: 1px solid var(--accent); border-radius: var(--r-sm); }
.event-date-v2 .day { font-weight: 700; font-variant-numeric: tabular-nums; }
.event-date-v2 .month { color: var(--accent); opacity: 1; }
.event-info-v2 .ev-detail i { color: var(--primary); }
.event-date .month, .footer .contact-list li { opacity: 1; }

/* ─── Footer: deep, gold column titles ─── */
.footer { background: var(--deep); color: var(--on-deep-muted); border: 0; padding: 72px 0 0; }
.footer-grid { grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(120px, 1fr)); gap: 32px; }
.footer-about .logo { margin-bottom: 16px; }
.footer-about .logo .logo-crest { filter: brightness(0) invert(1); }
.footer-about .logo .logo-text .name { color: #fff; }
.footer-about .logo .logo-text .sub { color: var(--on-deep-muted); }
.footer-about p { font-size: 14px; line-height: 1.65; opacity: 1; color: var(--on-deep-muted); max-width: 36ch; }
.footer .contact-list { margin-top: 16px; font-size: 14px; line-height: 1.5; }
.footer .contact-list li { margin-bottom: 6px; color: var(--on-deep-muted); }
.footer .contact-list a { color: var(--on-deep-body); }
.footer-col h2, .footer-col h4 { font: 700 13px/1 var(--font-condensed); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; padding-bottom: 0; }
.footer-col h2::after, .footer-col h4::after { display: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; opacity: 1; color: var(--on-deep-body); }
.footer-col ul li a:hover, .footer .contact-list a:hover { color: var(--accent); padding-left: 0; }
.footer-col ul li a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.footer-bottom { margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--panel-line); text-align: left; }
.footer-uni-names { font-size: 13px; line-height: 1.6; color: var(--on-deep-body); }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-bottom p { font-size: 13px; color: var(--on-deep-muted); opacity: 1; margin: 0; }
.footer-bottom p a { color: var(--on-deep-body); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.footer-social { margin: 0; gap: 6px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--panel-line); border-radius: var(--r-pill); color: var(--on-deep-body); font-size: 15px; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--gray-900); }

/* ─── Photo credits ─── */
.credit-list { display: grid; gap: 16px; margin-top: 40px; }
.credit-list li { display: flex; gap: 20px; align-items: center; padding: 16px; background: var(--light); border-radius: var(--r-md); }
.credit-list img { width: 160px; height: 107px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.credit-list h2 { font-size: 19px; }
.credit-list p { margin-top: 6px; font-size: 14px; color: var(--gray-500); }
.credit-list a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   Home pages (faculty_home.php, public/index.php): immersive deep colour
   ============================================================ */
.hm { background: var(--deep); color: var(--on-deep-body); }
.hm h1, .hm h2, .hm h3 { color: #fff; }
.hm-sec { padding: var(--section-y) 0; }
.hm-alt { background: var(--deep-2); }
.hm-head { margin-bottom: 44px; }
.hm-head.center { text-align: center; }
.hm-head h2 { font-size: clamp(32px, 3.6vw, 52px); }
.hm-head p { margin-top: 12px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-deep-body); }
.hm-head.center p { margin-left: auto; margin-right: auto; }
.hm-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hm-head-row h2 { font-size: clamp(32px, 3.6vw, 52px); }
.hm-sub { display: block; font-size: 14px; line-height: 1.5; color: var(--on-deep-muted); }
.hm-empty { color: var(--on-deep-muted); }

/* The unit hero keeps class="hero" (a test looks for it); neutralise style.css's old .hero box around the slider. */
.hm .hero { padding: 0; background: var(--deep); color: #fff; overflow: visible; }
.hm .hero .hm-notes { padding-top: 24px; padding-bottom: 8px; }
/* Hero slider */
.hs { position: relative; min-height: max(560px, calc(100svh - 104px)); background: var(--deep); color: #fff; overflow: hidden; }
.hs-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; }
.hs-slide.is-on { opacity: 1; visibility: visible; }
.hs-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-slide::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--deep) 55%, transparent); }
.hs-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--deep) 90%, transparent) 0%, color-mix(in srgb, var(--deep) 45%, transparent) 62%, transparent 100%); }   /* the one allowed scrim, under the text */
.hs-body { position: relative; z-index: 2; width: 100%; }
.hs-text { max-width: 780px; padding-left: 56px; }
.hs-text h1, .hs-text h2 { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; line-height: 1.08; color: #fff; }
.hs-q { color: var(--accent); }
.hs-text p { margin-top: 22px; max-width: 54ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-deep-body); }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hs-count { position: absolute; left: var(--gutter); top: 50%; z-index: 3; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font: 700 13px/1 var(--font-condensed); color: var(--on-deep-muted); }
.hs-line { width: 1px; height: 120px; background: rgba(255, 255, 255, .25); position: relative; }
.hs-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--p, 20%); background: var(--accent); transition: height .6s ease; }
.hs-now { color: #fff; }
.hs-nav { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; justify-content: flex-end; align-items: center; gap: 18px; max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hs-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); color: #fff; display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.hs-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--gray-900); }
.hs-dots { display: flex; gap: 6px; }
.hs-dot { width: 24px; height: 24px; display: grid; place-items: center; }
.hs-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); }
.hs-dot[aria-current="true"]::before { background: var(--accent); border-color: var(--accent); }

/* Quick access cards */
.qa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.qa-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); color: #fff; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.qa-card:hover { transform: translateY(-4px); background: var(--panel-2); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: #fff; }
.qa-ic { font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.qa-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; }
.qa-card p { font-size: 14px; color: var(--on-deep-muted); }
.qa-go { margin-top: auto; padding-top: 8px; font: 700 12px/1 var(--font-condensed); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Registration-number sign-in (faculty home) */
.reg-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 16px; padding: 32px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); transition: background-color .3s ease; }
.reg-card h3 { font-size: clamp(22px, 2vw, 28px); }
.reg-card p { margin-top: 8px; color: var(--on-deep-body); }
.reg-form label { display: block; font: 700 12px/1 var(--font-condensed); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.reg-row { display: flex; gap: 8px; }
.reg-row input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-pill); background: #fff; color: var(--gray-900); font: 500 16px/1 var(--font); text-transform: uppercase; }
.reg-row input::placeholder { color: var(--gray-500); text-transform: none; }
.reg-out { margin-top: 12px; font-size: 14px; color: var(--on-deep-body); }
.reg-out strong { color: #fff; }
.reg-staff { margin-top: 10px; font-size: 14px; color: var(--on-deep-muted); }
.reg-staff a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* Notices with gold date blocks, events, stats */
.nb-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.nb-grid.nb-one { grid-template-columns: minmax(0, 860px); }   /* one list only: the empty one is not rendered */
.nb-col h3.nb-h { font: 700 13px/1 var(--font-condensed); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.nb-list { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); padding: 6px 26px; }
.nb-list > li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--panel-line); }
.nb-list > li:last-child { border-bottom: 0; }
.nb-list > li.hm-empty { display: block; }
.nb-date { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border: 1px solid var(--accent); border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.nb-date b { font: 700 22px/1 var(--font); color: var(--accent); }
.nb-date span { margin-top: 3px; font: 700 12px/1 var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.nb-date small { font-size: 12px; color: var(--on-deep-muted); }
.nb-title { font-weight: 600; color: #fff; text-decoration: none; }
.nb-title:hover { color: var(--accent); }
.nb-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--on-deep-muted); }
.nb-pill { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill); font: 700 12px/1 var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-body); }
.nb-pill.important { border-color: var(--accent); color: var(--accent); }
.nb-more { margin-top: 20px; }
.st-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 40px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); }
.st-cell { padding: 32px 20px; text-align: center; }
.st-cell + .st-cell { border-left: 1px solid var(--panel-line); }
.st-cell i { font-size: 26px; color: var(--accent); }
.st-cell b { display: block; margin-top: 14px; font: 700 clamp(32px, 3vw, 44px)/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.st-cell span { display: block; margin-top: 10px; font: 700 12px/1.3 var(--font-condensed); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted); }

/* Department cards (faculty) */
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dc { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.dc:hover { transform: translateY(-4px); box-shadow: var(--float); color: #fff; }
.dc-img { position: relative; aspect-ratio: 16 / 10; background: var(--c); border-bottom: 4px solid var(--c); overflow: hidden; }
.dc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dc:hover .dc-img img { transform: scale(1.05); }
.dc-code { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--c); color: #fff; font: 700 12px/1 var(--font-condensed); letter-spacing: .08em; }
.dc-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; flex: 1; }
.dc-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #fff; }
.dc-body p { font-size: 14px; color: var(--on-deep-muted); }
.dc-go { margin-top: auto; padding-top: 10px; font: 700 12px/1 var(--font-condensed); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* About / Dean / Head */
.ab-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.ab-text p { max-width: 65ch; color: var(--on-deep-body); }
.ab-text p + p { margin-top: 14px; }
.ab-text .btn { margin-top: 26px; }
.ab-photo { margin-top: 32px; aspect-ratio: 16 / 7; }
.person { padding: 36px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); }
.person img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--accent); margin-bottom: 20px; }
.person h3 { font-size: 24px; color: #fff; }
.person h3 a { color: #fff; text-decoration: none; }
.person h3 a:hover { color: var(--accent); }
.person p { margin-top: 4px; font-size: 14px; color: var(--on-deep-muted); }
.person ul { margin-top: 18px; font-size: 14px; }
.person li { padding: 8px 0; border-top: 1px solid var(--panel-line); overflow-wrap: anywhere; }
.person li a { color: var(--on-deep-body); }
.person li a:hover { color: var(--accent); }
.person-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Programme highlights, media grid, research list (unit homes) */
.pg-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.pg-points li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--panel-line); font-family: var(--font-display); font-size: 19px; color: #fff; }
.pg-points li::before { content: ""; position: absolute; left: 0; top: 28px; width: 14px; height: 2px; background: var(--accent); }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mg-grid figure { margin: 0; }
.mg-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.mg-grid figcaption { margin-top: 12px; font-weight: 600; color: #fff; }
.rs-list { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); padding: 6px 26px; }
.rs-list li { padding: 20px 0; border-bottom: 1px solid var(--panel-line); }
.rs-list li:last-child { border-bottom: 0; }
.rs-kind { font: 700 12px/1 var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.rs-title { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; text-decoration: none; }
a.rs-title:hover { color: var(--accent); }
.hm-notes { display: grid; gap: 10px; margin-top: 28px; }
.hm-note { padding: 18px 22px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--panel-line); }
.hm-note-title { font-weight: 700; color: #fff; margin-bottom: 4px; }
.hm-note-urgent { border-color: color-mix(in srgb, #ef4444 60%, transparent); }
.hm-note-warning { border-color: var(--accent); }
.hm-note a { color: var(--accent); text-decoration: underline; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 36px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-md); }
.promo h2 { font-size: clamp(24px, 2.2vw, 30px); }
.promo p { margin-top: 8px; max-width: 62ch; color: var(--on-deep-body); }
/* Accent band: one per page, a dated academic call */
.band { background: var(--accent); color: var(--gray-900); padding: 72px 0; text-align: center; }
.band h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; color: var(--gray-900); }
.band p { margin: 14px auto 0; max-width: 56ch; color: var(--gray-900); }
.band-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-dark { background: var(--gray-900); border-color: var(--gray-900); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }
.btn-line { background: transparent; border-color: var(--gray-900); color: var(--gray-900); }
.btn-line:hover { background: var(--gray-900); color: #fff; }
.band-item + .band-item { margin-top: 40px; }

/* Arrival motion (main.js adds .js-reveal to <html>); content is visible without script and under reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .js-reveal [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
    .js-reveal [data-rv].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-slide, .hs-line::after { transition: none; }
    .btn, .qa-card, .dc, .dc-img img, a.card, .staff-card, .ann-card-v2, .event-card-v2 { transition: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1199px) {
    .nav-menu > li > a { padding: 20px 8px; font-size: 15px; }
    .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
    .nb-grid, .ab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
    :root { --section-y: 64px; }
    .nav-mobile-only { display: block; }
    .nav-toggle { display: flex; order: 3; margin-left: auto; position: relative; z-index: 1002; }
    .nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    body.menu-open { overflow: hidden; }
    body.menu-open .pwa-chip { display: none; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: min(380px, 100%); height: 100vh; overflow-y: auto; background: var(--deep); flex-direction: column; align-items: stretch; padding: 76px 16px 24px; margin: 0; box-shadow: var(--float); transition: right .25s ease; z-index: 1001; }
    .nav-menu.active { right: 0; }
    .nav-menu > li > a { padding: 0 12px; min-height: 54px; display: flex; align-items: center; font-size: 18px; border-bottom: 1px solid var(--panel-line); }
    .nav-menu > li > a.active::after { display: none; }
    .nav-menu > li > a.active { color: var(--accent); }
    .dropdown { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; background: var(--panel); border-radius: var(--r-sm); margin: 6px 0 10px; }
    .dropdown li a { padding-left: 24px; }
    .nav-mobile-first { margin-top: 10px; }
    .nav-menu > li.nav-mobile-cta > a { justify-content: center; margin-top: 18px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--gray-900); font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .hs-text { padding-left: 0; }
    .hs-count { display: none; }
    .reg-card { grid-template-columns: 1fr; }
    .pg-points { grid-template-columns: 1fr; }
    .page-banner::after, .page-banner::before { opacity: .5; }
}
@media (max-width: 767px) {
    :root { --gutter: 16px; --section-y: 48px; }
    .top-bar .container { justify-content: center; }
    .top-bar-left { display: none; }
    .top-pill { min-height: 28px; padding: 0 10px; font-size: 12px; }
    .social-links { display: none; }
    .nav-menu { width: 100%; }
    .hs { min-height: 82svh; }
    .hs-nav { bottom: 18px; justify-content: center; }
    .page-banner { padding: 48px 0 40px; }
    .page-banner::after, .page-banner::before { display: none; }
    .reg-row { flex-direction: column; }
    .reg-row input { flex: none; }
    .nb-list, .rs-list { padding: 4px 16px; }
    .nb-list > li { grid-template-columns: 52px 1fr; }
    .st-cell + .st-cell { border-left: 0; border-top: 1px solid var(--panel-line); }
    .person, .promo, .reg-card { padding: 24px; }
    .credit-list li { flex-direction: column; align-items: flex-start; }
}

/* Programme years on About (2026-11-02): divided rows inside the programme card, not boxes inside a box */
.prog-year { border: 0; border-top: 1px solid var(--gray-200); border-radius: 0; margin: 0; }
.prog-year:last-of-type { border-bottom: 1px solid var(--gray-200); }
.prog-year > summary, .prog-year[open] > summary { padding: 14px 2px; background: none; border-radius: 0; cursor: pointer; }
.prog-year > summary:hover { color: var(--primary); }

/* Utility-strip portal buttons in the unit's colours (2026-11-02): students primary, staff gold, VLE deep */
.top-pill.tp-student { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.top-pill.tp-staff { background: var(--accent); border-color: var(--accent); color: var(--gray-900) !important; }
.top-pill.tp-vle { background: var(--deep); border-color: var(--deep); color: #fff !important; }
.top-pill.tp-student:hover, .top-pill.tp-staff:hover, .top-pill.tp-vle:hover { background: #fff; border-color: currentColor; color: var(--primary) !important; }

/* Faculty home sign-in card: students on one half, staff on the other */
.reg-card.reg-split { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; align-items: stretch; }
.reg-split .reg-half { padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.reg-split .reg-half + .reg-half { border-left: 1px solid rgba(255, 255, 255, .14); }
.reg-split h3 { display: flex; align-items: center; gap: 12px; }
.reg-split h3 i { color: var(--accent); font-size: .8em; }
.reg-split .reg-form { margin-top: 14px; }
.reg-actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.reg-link { color: var(--on-deep-body); text-decoration: underline; text-underline-offset: 3px; }
.reg-link:hover { color: var(--accent); }
@media (max-width: 767px) {
    .reg-card.reg-split { grid-template-columns: 1fr; }
    .reg-split .reg-half { padding: 24px; }
    .reg-split .reg-half + .reg-half { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
}
.reg-split .btn-line { border-color: rgba(255, 255, 255, .6); color: #fff; }
.reg-split .btn-line:hover { background: #fff; color: var(--gray-900); }
