/* KU unit sites (graduation, GTRCMC, Confucius Institute): KU navy with the KU gold accent and the KU crest.
   Open Sans is self-hosted (assets/fonts), so nothing loads from Google. A site may append overrides at build time. */
@import url("../fonts/open-sans.css");
:root {
  --font-head: "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --primary: #1b3a6b;
  --primary-dark: #12284b;
  --accent: #1b3a6b;
  --accent-dark: #12284b;
  --link: #1f5aa6;
  --heading: #1b3a6b;
  --text: #2f3b47;
  --muted: #5d6b78;
  --bg: #ffffff;
  --soft: #f2f5fa;
  --border: #dde4ee;
  --header-bg: #ffffff;
  --nav-text: #1b3a6b;
  --logo-h: 56px;
  --banner-bg: linear-gradient(120deg, #12284b, #1b3a6b);
  --banner-overlay: linear-gradient(120deg, rgba(18, 40, 75, .9), rgba(27, 58, 107, .62));
  --hero-overlay: linear-gradient(100deg, rgba(18, 40, 75, .92) 30%, rgba(18, 40, 75, .35));
  --footer-bg: #101f38;
  --footer-text: #c8d3e3;
}
h1, h2, h3, h4 { font-weight: 700; }
.topbar { border-bottom: 3px solid #c8a951; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: #c8a951; margin: 12px auto 0; border-radius: 2px; }
.btn.gold, a.btn.gold { background: #c8a951; border-color: #c8a951; color: #1b2a1f; }
.btn.gold:hover, a.btn.gold:hover { background: #fff; border-color: #fff; color: #1b2a1f; }
.header-cta { flex-shrink: 0; padding: 8px 16px; font-size: .9rem; }

/* wordmark: KU crest + centre name */
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--heading); }
.wordmark img { height: var(--logo-h); width: auto; }
.wordmark strong { display: block; font-size: 1.05rem; line-height: 1.15; max-width: 250px; }
.wordmark small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
@media (min-width: 1201px) {
  .main-nav a, .main-nav .group { padding: 9px 9px; font-size: .88rem; }
}
@media (max-width: 1200px) { .site-header .header-cta { margin-left: auto; } }
@media (max-width: 640px) { .site-header a.header-cta { display: none; } }
@media (max-width: 520px) {
  .site-header .container { gap: 10px; }
  .wordmark { gap: 8px; }
  .wordmark img { height: 42px; }
  .wordmark strong { font-size: .84rem; max-width: 190px; }
  .wordmark small { font-size: .68rem; }
}
@media (max-width: 360px) { .wordmark strong { max-width: 140px; font-size: .8rem; } .wordmark small { display: none; } }

/* home: full-width photo slideshow, no text over it */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-photos .slideshow { border-radius: 0; box-shadow: none; aspect-ratio: auto; height: clamp(260px, 64vh, 680px); }
@media (max-width: 640px) { .hero-photos .slideshow { height: auto; aspect-ratio: 4 / 3; } }

/* home: quick facts strip under the hero */
.infostrip { background: var(--primary-dark); color: #fff; }
.infostrip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; }
.infostrip div { padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.infostrip div:first-child { border-left: 0; }
.infostrip strong { display: block; color: #c8a951; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.infostrip a { color: #fff; }
@media (max-width: 640px) {
  .infostrip div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 14px 4px; }
  .infostrip div:first-child { border-top: 0; }
}

.cards.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.product { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product h3 { margin: 0 0 .5em; font-size: 1.1rem; }
.product ul { margin: 0 0 1em; padding-left: 1.1em; font-size: .93rem; }
.product li { margin-bottom: .2em; }
.product .btn-row { margin: auto 0 0; gap: 8px; }
.product .btn { padding: 7px 14px; font-size: .88rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px 16px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.paybill { display: inline-grid; grid-template-columns: auto auto; gap: 4px 18px; background: var(--soft); border-radius: 8px; padding: 10px 16px; margin-top: 8px; }
.paybill dt { color: var(--muted); }
.paybill dd { margin: 0; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }

/* staff */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px; }
.person { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 16px; }
.person img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--soft); }
.person .initials { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--accent-dark); font-size: 2.4rem; font-weight: 700; }
.person h3 { margin: 0 0 .2em; font-size: 1.02rem; }
.person p { margin: 0; color: var(--muted); font-size: .9rem; }

/* news */
.news-item { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; padding: 26px 0; border-top: 1px solid var(--border); }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.news-item h2 { margin: .2em 0 .4em; font-size: 1.3rem; }
@media (max-width: 760px) { .news-item { grid-template-columns: 1fr; gap: 14px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-list strong { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* figure with caption (lab photos, org chart) */
.figure { margin: 1.4em 0; }
.figure img { border-radius: 10px; margin: 0; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; margin: 1.2em 0; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; border-radius: 8px; overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { font-size: .86rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.links-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.links-list a { display: block; padding: 14px 18px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; text-decoration: none; background: #fff; font-weight: 600; }
.links-list a:hover { background: var(--soft); }
.links-list small { display: block; font-weight: 400; color: var(--muted); }

/* document tables and listing pager */
table.docs td:last-child { white-space: nowrap; }
table.docs a { font-weight: 600; }
.pager { justify-content: center; margin-top: 32px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.5em 0; }
.stats div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; }
.stats strong { display: block; font-size: 2rem; color: var(--heading); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }
.event-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 12px;
  background: var(--primary); color: #fff; font-weight: 700; line-height: 1.1; flex-shrink: 0; }
.event-date strong { font-size: 1.6rem; }
.event { display: flex; gap: 18px; align-items: center; }
.event h3 { margin: 0 0 .2em; }
.notice.dated { border-left-color: #c8a951; }
/* site-specific */
:root { --accent: #0f6f74; --accent-dark: #0b5357; }
