/* =====================================================================
   ASI Lab (asi.cs.cityu.edu.hk) — shared chrome (brandbar + top nav + footer)
   Single source of truth for the header/nav/footer used on EVERY page.
   Page-specific layout CSS stays inline in each page's own <style>.
   ===================================================================== */
:root {
  --cityu: #6b2c91;
  --cityu-dark: #4a1e66;
  --accent: #0f8f8f;
  --accent2: #38b2b2;
  --ink: #14202e;
  --muted: #5b6673;
  --bg: #f7f9fb;
  --card: #ffffff;
  --border: #e4e9ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20,32,46,.08);
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== CityU brand bar (logo header) ===== */
/* STICKY + FROSTED GLASS header (ported from the IEEE landing-page study model).
   The brandbar pins to the top and the top-nav pins flush beneath it, both with
   a translucent white + backdrop blur so content scrolls softly underneath.
   --chrome-alpha is the see-through level; tune it in one place (option 1).
   NOTE: brandbar height is 61px desktop / 49px mobile (logo 40/28 + 10px*2 pad
   + 1px border). site-nav top must equal that so nav sits flush below. */
:root { --chrome-alpha: 0.80; --brandbar-h: 61px; }
@media (max-width: 600px) { :root { --brandbar-h: 49px; } }
.site-brandbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,var(--chrome-alpha));
  color: #14202e;
  border-bottom: 1px solid rgba(230,230,239,.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-brandbar .brandbar-container,
.cityu-brandbar .brandbar-container {
  margin: 0 auto; max-width: var(--max); padding: 10px 16px;
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
}
.site-brandbar .brandbar-link,
.cityu-brandbar .brandbar-link { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.site-brandbar .brandbar-logo,
.cityu-brandbar .brandbar-logo { display: block; height: 40px; width: auto; }
.site-brandbar .brandbar-note,
.cityu-brandbar .brandbar-note { font-size: .8rem; opacity: .85; }
/* Two-color lab name next to the logo (colors from the ASI lettermark):
   teal #28d1c2 + purple #6c2794 */
.site-brandbar .subline,
.cityu-brandbar .subline {
  font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 600; margin-bottom: 0;
  color: #28d1c2;
}
.site-brandbar .subline strong,
.cityu-brandbar .subline strong { color: var(--cityu); font-weight: 700; }
@media (max-width: 600px) { .site-brandbar .brandbar-logo, .cityu-brandbar .brandbar-logo { height: 28px; } .site-brandbar .subline, .cityu-brandbar .subline { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; } }

/* ===== Top navigation bar ===== */
.site-nav {
  position: sticky; top: var(--brandbar-h); z-index: 29;
  background: rgba(255,255,255,var(--chrome-alpha));
  border-bottom: 1px solid rgba(228,233,239,.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-nav .wrap { display: flex; gap: 22px; align-items: center; padding-top: 14px; padding-bottom: 14px; font-size: .92rem; font-weight: 600; flex-wrap: wrap; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.on { color: var(--cityu); }
@media (max-width: 760px) { .site-nav .wrap { gap: 12px; } }

/* ===== Footer ===== */
.site-footer { background: #131a24; color: #b7c0cc; padding: 34px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer .dot { color: var(--accent2); }
.site-footer a { color: #b7c0cc; }
.site-footer a:hover { color: #fff; }
/* =====================================================================
   PHASE A — ASI design-system tokens layer (STRICTLY INERT)
   Added by design-panel uplift. Every declaration here is either a brand
   new CSS custom property or a class that NO page on this site currently
   applies, so it cannot alter any existing render. Page-specific layouts
   stay in /<section>/<section>.css.
   ===================================================================== */

/* ---- Design tokens (brand-new custom properties; consumed only by
        future rules — inert until used) ---- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-35: 32px;
  --space-45: 48px;
  --max-wide: 1400px;
  --prose: 72ch;
}

/* ---- Container width tier (class not applied on any current page) ---- */
.wrap--wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--space-4); }

/* ---- Broken-contract chrome alias: dblp's old class resolves to the
        shared chrome (sticky+blur too, so every header stays consistent).
        Standalone cityu-brandbar pages (dblp, paper/index, pub_add) must
        LINK common.css; common.css carries the single source of truth. ---- */
.cityu-brandbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,var(--chrome-alpha));
  color: #14202e;
  border-bottom: 1px solid rgba(230,230,239,.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

.site-brandbar .brandbar-cityu, .cityu-brandbar .brandbar-cityu { margin-left: auto; display: flex; align-items: center; }
  .site-brandbar .brandbar-cityu-logo, .cityu-brandbar .brandbar-cityu-logo { display: block; height: 40px; width: auto; }
  @media (max-width: 600px){ .site-brandbar .brandbar-cityu-logo, .cityu-brandbar .brandbar-cityu-logo { height: 28px; } }
