/* ============================================================
   INRIO — International Nuclear Research Infrastructure Organization
   Provisional website for the IAEA GC70 side event
   ============================================================ */

:root {
  --blue: #014FA2;          /* INRIO corporate blue (from logo) */
  --blue-dark: #013A78;
  --navy: #0A2547;
  --navy-2: #0E315F;
  --cyan: #2E9BD6;
  --sky: #EAF2FB;
  --sky-2: #F5F9FE;
  --ink: #1D2B3A;
  --muted: #5A6B7E;
  --line: #D9E4F2;
  --gold: #B8860B;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 37, 71, .10);
  --shadow-sm: 0 4px 14px rgba(10, 37, 71, .08);
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
          "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

/* ---------- bilingual switch ---------- */
body:not(.zh) .l-zh { display: none !important; }
body.zh       .l-en { display: none !important; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* =========================== header =========================== */
.notice-bar {
  background: var(--navy);
  color: #cfe0f5;
  font-size: .82rem;
  text-align: center;
  padding: 6px 12px;
}
.notice-bar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { line-height: 1.15; min-width: 0; }
.brand .brand-text b { display: block; font-size: 1.02rem; color: var(--blue); letter-spacing: .4px; }
.brand .brand-text span { display: block; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 9px;
  font-size: .95rem; font-weight: 600; color: var(--ink);
}
.main-nav a:hover { background: var(--sky); color: var(--blue); }
.main-nav a.active { background: var(--blue); color: #fff; }

.lang-switch {
  display: flex; border: 1.5px solid var(--blue); border-radius: 999px; overflow: hidden;
  margin-left: 8px; flex: none;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 14px; font-size: .85rem; font-weight: 700; color: var(--blue);
  font-family: var(--font);
}
.lang-switch button.on { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  border: 1.5px solid var(--line); background: #fff; border-radius: 9px;
  width: 42px; height: 38px; cursor: pointer; font-size: 1.15rem; color: var(--blue);
}

/* =========================== hero =========================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46,155,214,.35), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(46,155,214,.22), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #103d77 100%);
  color: #fff;
}
.hero::before {
  /* road-curve motif echoing the logo */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500' viewBox='0 0 900 500'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M-50 480 C 300 430 520 300 560 60'/%3E%3Cpath d='M-50 520 C 330 470 570 330 615 40'/%3E%3Cpath d='M-50 560 C 360 510 620 360 670 20'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -60px bottom -80px;
  background-size: 900px 500px;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 84px 0 66px;
  max-width: 820px;
}
.hero .hero-logo { width: min(430px, 78%); margin-bottom: 26px; }
.hero .kicker {
  display: inline-block; letter-spacing: 2.5px; font-size: .8rem; font-weight: 700;
  color: #9cc7ef; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.25; font-weight: 800; }
.hero p.sub { margin-top: 18px; font-size: 1.06rem; color: #d7e6f8; max-width: 640px; }
.hero .hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; transition: .18s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--blue); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-blue { border-color: var(--blue); color: var(--blue); }
.btn-blue:hover { background: var(--blue); color: #fff; }

/* countdown strip */
.count-strip {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.16);
}
.count-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding: 16px 0;
}
.count-label { font-weight: 700; font-size: .92rem; color: #bfe0ff; }
.count-cells { display: flex; gap: 10px; }
.count-cell {
  min-width: 74px; text-align: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 8px 10px;
}
.count-cell b { display: block; font-size: 1.45rem; line-height: 1.1; }
.count-cell span { font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase; color: #a9cdf2; }

/* =========================== sections =========================== */
.section { padding: 72px 0; }
.section.alt { background: var(--sky-2); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head .kicker {
  color: var(--blue); letter-spacing: 2.2px; font-size: .78rem; font-weight: 800;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); color: var(--navy); margin-top: 8px; line-height: 1.3; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.01rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--sky); }
.card .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { color: var(--navy); font-size: 1.12rem; line-height: 1.35; }
.card .card-sub { color: var(--cyan); font-weight: 700; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
.card p { color: var(--muted); font-size: .93rem; }
.card .card-more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  background: var(--sky); color: var(--blue-dark); border-radius: 999px;
  font-size: .74rem; font-weight: 700; padding: 3px 11px;
}

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 2rem; color: var(--blue); line-height: 1.15; }
.stat span { color: var(--muted); font-size: .88rem; }

/* event banner (home) */
.event-banner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 18px; overflow: hidden; color: #fff; box-shadow: var(--shadow);
}
.event-banner .eb-text { padding: 40px 8px 40px 42px; }
.event-banner .eb-img { padding: 24px 28px 24px 0; }
.event-banner .eb-img img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.event-banner h3 { font-size: 1.55rem; line-height: 1.3; margin: 10px 0 8px; }
.event-banner .eb-meta { display: grid; gap: 8px; margin: 18px 0 24px; color: #d7e6f8; font-size: .98rem; }
.event-banner .eb-meta b { color: #fff; }

/* facility chips (the 12 open facilities) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  background: #fff; border: 1.5px solid var(--line); color: var(--navy);
  border-radius: 999px; padding: 7px 15px; font-size: .88rem; font-weight: 600;
}
.chip b { color: var(--blue); }

/* =========================== page hero (inner pages) =========================== */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(46,155,214,.30), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #0f3f7c 100%);
  padding: 58px 0 50px;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500' viewBox='0 0 900 500'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M-50 480 C 300 430 520 300 560 60'/%3E%3Cpath d='M-50 520 C 330 470 570 330 615 40'/%3E%3Cpath d='M-50 560 C 360 510 620 360 670 20'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right -60px bottom -80px; background-size: 900px 500px;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; }
.page-hero p { margin-top: 12px; color: #d7e6f8; max-width: 760px; }
.breadcrumb { font-size: .82rem; color: #9cc7ef; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }

/* =========================== agenda table =========================== */
.agenda { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.agenda table { width: 100%; border-collapse: collapse; }
.agenda th {
  background: var(--blue); color: #fff; text-align: left;
  padding: 13px 16px; font-size: .9rem; letter-spacing: .4px;
}
.agenda td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.agenda tr:nth-child(even) td { background: var(--sky-2); }
.agenda .t { white-space: nowrap; font-weight: 800; color: var(--blue); width: 118px; }
.agenda .who { color: var(--muted); font-size: .88rem; }
.agenda .tbd { font-size: .78rem; color: var(--gold); font-weight: 700; }

/* =========================== initiative document =========================== */
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(26px, 5vw, 58px);
  max-width: 880px; margin: 0 auto;
}
.doc h3.doc-title { text-align: center; color: var(--navy); font-size: 1.35rem; margin-bottom: 6px; }
.doc .doc-sub { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.doc p { margin-bottom: 14px; color: var(--ink); font-size: .98rem; }
.doc p.lead { font-weight: 600; }
.doc p.call { margin-top: 18px; font-weight: 600; color: var(--navy); }
.doc .doc-sign { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; }
.doc .doc-sign b { color: var(--ink); }

/* =========================== poster / rsvp =========================== */
.poster-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.poster-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #fff;
}
.rsvp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px; text-align: center;
}
.rsvp-card img { width: 200px; margin: 16px auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.rsvp-card h3 { color: var(--navy); }
.rsvp-card p { color: var(--muted); font-size: .9rem; }

/* =========================== org structure =========================== */
.org-chart { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.org-node {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.org-node b { color: var(--blue-dark); }
.org-node p { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.org-node.top { background: linear-gradient(120deg, var(--blue), #1668c4); color: #fff; border: 0; }
.org-node.top b { color: #fff; font-size: 1.05rem; }
.org-node.top p { color: #d7e6f8; }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* member wall */
.member-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.member-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.member-group h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.member-group h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); flex: none; }
.member-group ul { display: flex; flex-wrap: wrap; gap: 7px; }
.member-group li {
  background: var(--sky-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 5px 11px; font-size: .85rem;
}

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: .18s;
}
.dl-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.dl-card .dl-icon { font-size: 1.6rem; }
.dl-card b { color: var(--navy); }
.dl-card span { color: var(--muted); font-size: .85rem; }
.dl-card .dl-go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue); font-size: .9rem; }

.draft-note {
  background: #FFF8E6; border: 1px solid #EAD9A0; border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 16px 20px; color: #6b5a1e; font-size: .92rem;
  margin-bottom: 30px;
}

/* key-value info grid */
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kv {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.kv .k { font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.kv .v { margin-top: 6px; color: var(--navy); font-weight: 700; font-size: 1.02rem; line-height: 1.45; }
.kv .s { color: var(--muted); font-size: .88rem; margin-top: 3px; }

/* prose blocks */
.prose { max-width: 860px; }
.prose h3 { color: var(--navy); font-size: 1.18rem; margin: 26px 0 10px; }
.prose p { color: var(--ink); margin-bottom: 12px; font-size: .98rem; }
.prose ul.cards-list { margin: 10px 0 16px 0; display: grid; gap: 8px; }
.prose ul.cards-list li {
  position: relative; padding-left: 24px; color: var(--ink); font-size: .96rem;
}
.prose ul.cards-list li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg);
}

/* =========================== footer =========================== */
.site-footer { background: var(--navy); color: #c9d9ec; margin-top: 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px;
}
.footer-inner img { width: 240px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .5px; }
.site-footer li { margin-bottom: 9px; font-size: .9rem; }
.site-footer a { color: #c9d9ec; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .ic { flex: none; opacity: .8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0;
  font-size: .8rem; color: #8fa9c9; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================== V2 additions =========================== */
.series-head { max-width: 860px; margin-bottom: 34px; }
.series-head .series-no {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: 2.2px;
  text-transform: uppercase; color: #fff; background: var(--blue);
  border-radius: 999px; padding: 5px 16px;
}
.series-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); color: var(--navy); margin-top: 12px; line-height: 1.3; }
.series-head p { margin-top: 10px; color: var(--muted); }

.comingsoon {
  margin-top: 36px; text-align: center;
  background: linear-gradient(120deg, var(--sky), #fff);
  border: 1.5px dashed var(--blue); color: var(--blue-dark);
  border-radius: 12px; padding: 18px 22px; font-weight: 600;
}

/* ---------- 12 → 23 growth timeline (facilities page) ---------- */
.growth-story {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: stretch; gap: clamp(14px, 3vw, 40px);
  max-width: 880px; margin: 0 auto;
}
.gs-node {
  text-align: center; padding: 28px 22px 26px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.gs-node .gs-year {
  font-size: .78rem; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--muted);
}
.gs-node .gs-num {
  font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.05;
  color: var(--blue); font-variant-numeric: tabular-nums; margin-top: 6px;
}
.gs-node .gs-cap { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.gs-node .gs-cap b { color: var(--blue-dark); }
.gs-node.gs-now {
  border-color: var(--blue); background:
    radial-gradient(400px 160px at 85% -20%, rgba(46,155,214,.16), transparent 60%),
    linear-gradient(120deg, #fff, var(--sky-2));
}
.gs-node.gs-now .gs-year { color: var(--blue); }
.gs-node.gs-now .gs-num { color: var(--navy); }
.gs-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--cyan); min-width: 96px;
}
.gs-arrow .gs-arrow-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .8px;
  color: var(--muted); text-transform: uppercase; text-align: center;
}
.gs-note {
  max-width: 720px; margin: 26px auto 0; text-align: center;
  color: var(--muted); font-size: .98rem;
}
@media (max-width: 860px) {
  .growth-story { grid-template-columns: 1fr; gap: 10px; }
  .gs-arrow { flex-direction: row; padding: 6px 0; }
  .gs-arrow .gs-arrow-label { text-transform: none; }
}

/* partner coming-soon panel (facilities page) */
.partner-coming {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(700px 260px at 85% -30%, rgba(46,155,214,.16), transparent 60%),
    radial-gradient(600px 240px at 10% 130%, rgba(46,155,214,.12), transparent 55%),
    linear-gradient(120deg, var(--sky), #fff);
  border: 1.5px dashed var(--blue); border-radius: var(--radius);
  padding: 44px 34px 42px; box-shadow: var(--shadow-sm);
}
.partner-coming .pc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line);
  font-size: 1.6rem; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.partner-coming h3 { color: var(--navy); font-size: 1.22rem; line-height: 1.4; }
.partner-coming p {
  color: var(--muted); font-size: .96rem; max-width: 660px; margin: 12px auto 0;
}

/* lightbox */
.lightboxable { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(7, 20, 38, .9);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; cursor: zoom-out;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.lb.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.lb img {
  max-width: 100%; max-height: 92vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.955); transition: transform .25s ease;
}
.lb.open img { transform: scale(1); }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 2.2rem; color: #fff; line-height: 1; opacity: .85; }

/* Chinese typesetting niceties */
body.zh { line-height: 1.78; }
body.zh .card p, body.zh .prose p, body.zh .doc p { text-align: justify; }

/* print — agenda-friendly */
@media print {
  .notice-bar, .site-header, .site-footer, .hero-actions, .count-strip,
  .lang-switch, .nav-toggle, .btn, .lightboxable, .cat-nav { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .page-hero, .hero { background: #fff !important; color: #000 !important; }
  .page-hero p { color: #333 !important; }
  .section { padding: 16px 0; }
  .agenda { box-shadow: none; }
  .agenda th { background: #eee !important; color: #000 !important; }
  .agenda td { font-size: 11px; padding: 6px 8px; }
  a { color: #000; text-decoration: none; }
}

/* =========================== responsive =========================== */
@media (max-width: 1020px) {
  .grid-3, .grid-4, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .org-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 4%;
    display: none; box-shadow: 0 18px 30px rgba(10,37,71,.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; }
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1; }
  .grid-2, .grid-3, .kv-grid, .member-groups, .poster-grid { grid-template-columns: 1fr; }
  .event-banner { grid-template-columns: 1fr; }
  .event-banner .eb-text { padding: 30px 26px; }
  .event-banner .eb-img { padding: 26px 26px 0; order: -1; }
  .hero-inner { padding: 56px 0 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .count-cell { min-width: 62px; }
}

/* ============================================================
   V3 — four-category facilities page + site motion
   ============================================================ */

/* ---------- sticky category nav (facilities page) ---------- */
/* header = 46px logo + 2×10px padding + 1px border = 67px; tuck 1px under it */
.cat-nav {
  position: sticky; top: 66px; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cat-nav-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .88rem; font-weight: 700; color: var(--navy);
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.cat-nav a b { color: var(--cyan); font-size: .78rem; }
.cat-nav a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.cat-nav a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-nav a.active b { color: #cfe4ff; }
.section[id] { scroll-margin-top: 128px; }

/* ---------- facility card imagery ---------- */
.card-imgs {
  display: flex; gap: 2px; aspect-ratio: 16 / 9;
  background: var(--sky); overflow: hidden;
}
.card-imgs img {
  flex: 1 1 0; min-width: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.card:hover .card-imgs img { transform: scale(1.045); }

.img-ph {
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center; text-align: center; padding: 14px;
  background: linear-gradient(120deg, var(--navy), #1668c4);
  color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: 1.5px;
}
.img-ph small { font-size: .72rem; font-weight: 600; letter-spacing: .5px; opacity: .75; }
.card > .img-ph { aspect-ratio: 16 / 10; width: 100%; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.card:hover > .img-ph { transform: scale(1.015); }
.card-imgs .img-ph { flex: 1 1 0; min-width: 0; height: 100%; font-size: 1.15rem; }

/* stat digits — stable width while counting */
.stat b { font-variant-numeric: tabular-nums; }

/* ---------- entrance animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { animation: rise .7s cubic-bezier(.2,.6,.2,1) both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .14s; }
.hero-inner > *:nth-child(3) { animation-delay: .23s; }
.hero-inner > *:nth-child(4) { animation-delay: .32s; }
.hero-inner > *:nth-child(5) { animation-delay: .41s; }
.count-strip { animation: rise .7s .5s cubic-bezier(.2,.6,.2,1) both; }
.page-hero .wrap > * { animation: rise .6s cubic-bezier(.2,.6,.2,1) both; }
.page-hero .wrap > *:nth-child(1) { animation-delay: .05s; }
.page-hero .wrap > *:nth-child(2) { animation-delay: .13s; }
.page-hero .wrap > *:nth-child(3) { animation-delay: .21s; }

/* staggered reveal for card grids — cards cascade slightly */
.grid-2 > .reveal:nth-child(2), .grid-3 > .reveal:nth-child(2), .grid-4 > .reveal:nth-child(2) { transition-delay: .08s; }
.grid-2 > .reveal:nth-child(3), .grid-3 > .reveal:nth-child(3), .grid-4 > .reveal:nth-child(3) { transition-delay: .16s; }
.grid-3 > .reveal:nth-child(4), .grid-4 > .reveal:nth-child(4) { transition-delay: .24s; }
.grid-4 > .reveal:nth-child(5) { transition-delay: .32s; }
.grid-4 > .reveal:nth-child(6) { transition-delay: .40s; }

@media (max-width: 860px) {
  .cat-nav { position: static; }
  .section[id] { scroll-margin-top: 84px; }
}

/* ---------- accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   V4 — post-event lifecycle + subscribe dialog
   ============================================================ */

/* ---------- lifecycle gates (body.post-event set by main.js) ---------- */
body.post-event .pe-hide { display: none !important; }
.pe-show-a, .pe-show-b, .pe-show-i { display: none !important; }
body.post-event a.pe-show-a,
body.post-event button.pe-show-a { display: inline-block !important; }
body.post-event div.pe-show-b { display: block !important; }
body.post-event span.pe-show-i { display: inline !important; }

/* ---------- live state (during the side event) ---------- */
.live-now {
  align-items: center; gap: 10px;
  font-size: .95rem; color: #ffe3b0;
}
body.post-event .live-now, .live-now:not([hidden]) { display: flex; }
.live-now b { letter-spacing: .5px; }
.live-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  animation: livepulse 1.6s ease-out infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 134, 11, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(184, 134, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0); }
}

/* ---------- subscription strip (replaces countdown after the event) ---------- */
.sub-strip {
  display: none; flex-wrap: wrap; align-items: center;
  gap: 10px 24px; width: 100%;
}
body.post-event .sub-strip {
  display: flex;
  animation: rise .7s cubic-bezier(.2,.6,.2,1) both;
}
.sub-strip .sub-msg { color: #d7e6f8; font-size: .98rem; }
.sub-strip .sub-msg b { color: #fff; }
.sub-strip .btn { margin-left: auto; }
@media (max-width: 860px) {
  .sub-strip { justify-content: center; text-align: center; }
  .sub-strip .btn { margin-left: 0; }
}

/* ---------- subscribe dialog ---------- */
.sub-dialog {
  border: 0; border-radius: 16px; padding: 0;
  width: min(660px, 94vw); max-height: 88vh; overflow: auto;
  box-shadow: 0 40px 90px rgba(7, 20, 38, .45);
  color: var(--ink);
}
.sub-dialog::backdrop {
  background: rgba(7, 20, 38, .55);
  backdrop-filter: blur(3px);
}
.sub-dialog[open] { animation: subin .28s ease both; }
@keyframes subin {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.sub-inner { position: relative; padding: 30px 32px 26px; }
.sub-close {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--muted);
  padding: 6px; border-radius: 8px;
}
.sub-close:hover { color: var(--navy); background: var(--sky-2); }
.sub-head h3 { color: var(--navy); font-size: 1.3rem; }
.sub-head p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

.sub-error {
  margin-top: 14px; border-left: 4px solid #c0392b;
  background: #fdf1ef; color: #8c2f23;
  border-radius: 8px; padding: 9px 13px; font-size: .88rem; font-weight: 600;
}
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.sub-field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; }
.sub-l {
  font-size: .74rem; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--cyan);
}
.sub-field input, .sub-field textarea {
  border: 1.5px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.sub-field textarea { resize: vertical; }
.sub-field input:focus, .sub-field textarea:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--blue);
}
.sub-field.invalid input { border-color: #c0392b; background: #fdf6f5; }

.sub-intent { margin-top: 16px; }
.sub-intent legend { padding: 0; }
.sub-radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.sub-radio {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.sub-radio:hover { border-color: var(--blue); }
.sub-radio:has(input:checked) {
  border-color: var(--blue); background: var(--sky-2);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.sub-radio input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.sub-radio b { display: block; font-size: .88rem; color: var(--navy); line-height: 1.3; }
.sub-radio small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; line-height: 1.35; }

.sub-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-plain {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-family: inherit;
}
.btn-plain:hover { background: var(--sky-2); color: var(--navy); }

.sub-success { text-align: center; padding: 26px 10px 18px; }
.sub-ok-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sky); color: var(--blue); font-size: 1.7rem;
  margin-bottom: 12px;
}
.sub-success h3 { color: var(--navy); }
.sub-success p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.sub-success .btn { margin-top: 16px; }
.sub-alt { font-size: .86rem !important; }
.linklike {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--blue); font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--blue-dark); }

.rsvp-after { text-align: left; }
.rsvp-after p { color: var(--muted); font-size: .92rem; }

@media (max-width: 860px) {
  .sub-grid { grid-template-columns: 1fr; }
  .sub-radios { grid-template-columns: 1fr; }
  .sub-inner { padding: 24px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sub-dialog[open], .sub-strip { animation: none; }
  .live-dot { animation: none; }
}

@media print {
  .sub-dialog, .sub-strip, .live-now { display: none !important; }
}

/* pe-show-i on l-en/l-zh spans: keep the language switch authoritative
   (these outrank the body.post-event span.pe-show-i display rule) */
body:not(.zh) .l-zh.pe-show-i { display: none !important; }
body.zh .l-en.pe-show-i { display: none !important; }


/* [hidden] must always win (JS-toggled lifecycle states) */
[hidden] { display: none !important; }

/* ---------- embedded Microsoft Form dialog (V4.1) ---------- */
.sub-dialog { width: min(760px, 94vw); }
.sub-frame iframe {
  width: 100%; height: 560px; border: 0; display: block; border-radius: 10px;
  background: var(--sky-2);
}
.sub-alt2 { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }
.sub-alt2 a { color: var(--blue); font-weight: 700; }
.sub-frame {
  position: relative; margin-top: 16px;
}
.sub-frame::before {
  content: "Loading…"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem;
}
.sub-frame iframe { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .sub-frame iframe { height: 72vh; }
}
.footer-sub { margin-top: 10px; }
.footer-sub button {
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #cfe0f5;
  border-radius: 999px; padding: 7px 16px; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 700;
}
.footer-sub button:hover { background: rgba(255,255,255,.12); color: #fff; }


/* ---------- promo video (V4) ---------- */
.video-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: var(--shadow);
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; }


/* ---------- event materials (V4) ---------- */
.mat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }


/* ---------- news (V5) ---------- */
.news-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 18px; }
.news-date { color: var(--muted); font-size: .88rem; font-weight: 600; }
.news-tag {
  background: var(--blue); color: #fff; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px;
}
.news-fig { margin: 26px 0; }
.news-fig img { width: 100%; border-radius: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.news-fig figcaption {
  margin-top: 8px; text-align: center;
  color: var(--muted); font-size: .82rem;
}
.news-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s, box-shadow .18s; color: inherit;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card > img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.news-card .nc-body { padding: 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.news-card .nc-meta { color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.news-card h3 { color: var(--navy); font-size: 1.2rem; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card .card-more { color: var(--blue); font-weight: 700; font-size: .92rem; margin-top: auto; padding-top: 8px; }
@media (max-width: 860px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card > img { min-height: 200px; max-height: 300px; }
}


/* ---------- accessibility (V5: adopted from rebuild.css draft) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 4px;
}
.skip-link {
  position: fixed; top: -100px; left: 20px; z-index: 200;
  background: #fff; color: var(--blue); font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow); transition: top .15s;
}
.skip-link:focus { top: 0; }
