/* ==========================================================================
   NCU International: the member-facing pages (ncu*.html). Builds on the
   theme tokens in theme.css and adds nothing that fights them.

   These pages are read from mainland China, where the CDN that serves
   Bootstrap is slow and sometimes unreachable, so nothing here depends on
   Bootstrap's grid or JavaScript: layout is our own grid, dialogs are the
   native <dialog> element, and form controls get the few base rules
   Bootstrap would otherwise supply.
   ========================================================================== */

:root {
  --ncu-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

:lang(zh) { font-family: var(--cm-font-body), var(--ncu-zh); }
h1:lang(zh), h2:lang(zh), h3:lang(zh), .cm-head:lang(zh) { font-family: var(--cm-font-head), var(--ncu-zh); }
.ncu-zh { font-family: var(--ncu-zh); font-weight: 500; }

/* ---------- band: the space's own header, under the site header ---------- */
.ncu-band {
  background: var(--cm-panel);
  border-bottom: 1px solid var(--cm-border);
  padding: 36px 64px 0;
}
@media (max-width: 991.98px) { .ncu-band { padding: 24px 20px 0; } }
.ncu-band-inner { max-width: 1312px; margin: 0 auto; }
.ncu-band-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
@media (max-width: 767.98px) { .ncu-band-top { grid-template-columns: 1fr; gap: 16px; } }
.ncu-band h1 { margin: 6px 0 8px; }
.ncu-band h1 .ncu-zh { font-size: 0.55em; color: var(--cm-muted); margin-left: 8px; font-weight: 500; letter-spacing: 0; white-space: nowrap; display: inline-block; }
.ncu-welcome { max-width: 62ch; margin: 0; font-size: 14.5px; color: var(--cm-muted-strong); }
.ncu-me { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 767.98px) { .ncu-me { align-items: flex-start; } }
.ncu-me-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
@media (max-width: 767.98px) { .ncu-me-row { justify-content: flex-start; } }

.ncu-tabs {
  display: flex;
  gap: 4px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ncu-tabs::-webkit-scrollbar { display: none; }
.ncu-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cm-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ncu-tabs a:hover { color: var(--cm-ink); }
.ncu-tabs a[aria-current="page"] { color: var(--cm-accent-deep); border-bottom-color: var(--cm-accent); }
.ncu-tabs .ncu-tab-console { margin-left: auto; color: var(--cm-muted-soft); }
.ncu-count {
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--cm-radius-control);
  background: var(--cm-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- page layout ---------- */
.ncu-wrap { max-width: 1312px; margin: 0 auto; padding: 32px 64px 72px; }
@media (max-width: 991.98px) { .ncu-wrap { padding: 20px 20px 48px; } }
.ncu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 991.98px) { .ncu-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
/* A column may shrink below its widest content (a calendar table), so the
   table scrolls inside its own box instead of pushing the page sideways. */
.ncu-layout > * { min-width: 0; }
.ncu-stack { display: flex; flex-direction: column; gap: 16px; }
.ncu-aside { display: flex; flex-direction: column; gap: 16px; }
.ncu-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }

.ncu-side {
  background: var(--cm-card);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-card);
  padding: 20px;
}
.ncu-side h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.ncu-side p { font-size: 13px; color: var(--cm-muted); margin: 0 0 12px; }
.ncu-side p:last-child { margin-bottom: 0; }

.ncu-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.ncu-section-head h2 { font-size: 20px; margin: 0; }
.ncu-section-head p { margin: 0; font-size: 13px; color: var(--cm-muted); max-width: 62ch; }

.ncu-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.ncu-toolbar .cm-search { flex: 1 1 220px; min-width: 0; }
.ncu-toolbar .cm-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; color: var(--cm-ink); min-width: 0; }

/* ---------- controls Bootstrap would otherwise supply ---------- */
.ncu-form .form-control, .ncu-form .form-select { display: block; width: 100%; }
.ncu-form .form-select {
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ncu-form .ncu-field { margin-bottom: 16px; }
.ncu-form .ncu-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 575.98px) { .ncu-form .ncu-row { grid-template-columns: 1fr; } }
.ncu-hint { font-size: 12px; color: var(--cm-muted-soft); margin-top: 6px; }
.ncu-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--cm-muted-strong); cursor: pointer; }
.ncu-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cm-accent); flex: none; }
.ncu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ncu-chips label { position: relative; }
.ncu-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ncu-chips input + span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--cm-radius-control);
  font-size: 13px; font-weight: 500; cursor: pointer; background: var(--cm-card);
  color: var(--cm-muted-strong); border: 1px solid var(--cm-border-input);
}
.ncu-chips input:checked + span { background: var(--cm-accent-tint); color: var(--cm-accent-deep); border-color: rgba(194, 65, 12, 0.4); }
.ncu-chips input:focus-visible + span { outline: 3px solid var(--cm-focus-ring); outline-offset: 1px; }

button.cm-filter[aria-pressed="true"] { background: var(--cm-accent); color: #fff; border-color: var(--cm-accent); }
.ncu-linkbtn {
  background: none; border: 0; padding: 0; color: var(--cm-accent-deep); font: inherit;
  font-weight: 500; cursor: pointer; min-height: 32px;
}
.ncu-linkbtn:hover { color: var(--cm-accent); text-decoration: underline; }

/* ---------- announcements ---------- */
.ncu-urgent {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cm-danger-tint);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--cm-radius-card);
  padding: 16px;
  margin-bottom: 20px;
  color: var(--cm-ink);
}
.ncu-urgent-mark { color: var(--cm-danger-ink); flex: none; margin-top: 2px; }
.ncu-urgent strong { color: var(--cm-danger-ink); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.ncu-urgent a { font-weight: 600; color: var(--cm-ink); }
.ncu-urgent a:hover { color: var(--cm-danger-ink); }

.ncu-post {
  background: var(--cm-card);
  border: 1px solid var(--cm-border);
  border-left: 4px solid var(--cm-border);
  border-radius: var(--cm-radius-card);
  padding: 20px;
}
.ncu-post[data-priority="important"] { border-left-color: var(--cm-amber); }
.ncu-post[data-priority="urgent"] { border-left-color: var(--cm-danger); }
.ncu-post[data-open="true"] { box-shadow: var(--cm-shadow-card); }
.ncu-post-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12px; color: var(--cm-muted-soft); margin-bottom: 8px; }
.ncu-post h3 { font-size: 17px; line-height: 1.35; margin: 0 0 4px; text-wrap: balance; }
.ncu-post h3 button {
  background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.ncu-post h3 button:hover { color: var(--cm-accent-deep); }
.ncu-post .ncu-sub { font-size: 13px; color: var(--cm-muted); margin: 0 0 6px; }
.ncu-post .ncu-excerpt { font-size: 14px; color: var(--cm-muted-strong); margin: 0; }
.ncu-post-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.ncu-post-body { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--cm-border-mid); }
.ncu-pin { color: var(--cm-accent-deep); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.ncu-ack { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cm-olive); }
.ncu-mustread { background: var(--cm-amber-tint); color: var(--cm-amber-deep); }

.ncu-lang {
  display: inline-flex;
  border: 1px solid var(--cm-border-input);
  border-radius: var(--cm-radius-control);
  padding: 3px;
  gap: 2px;
  background: var(--cm-bg);
  margin-bottom: 12px;
}
.ncu-lang button {
  border: 0; background: transparent; border-radius: var(--cm-radius-sm); min-height: 34px; padding: 0 12px;
  font-size: 13px; font-weight: 500; color: var(--cm-muted-strong); cursor: pointer;
}
.ncu-lang button[aria-pressed="true"] { background: var(--cm-card); color: var(--cm-ink); box-shadow: 0 1px 3px rgba(36, 28, 20, 0.12); }
.ncu-translation-note {
  font-size: 12px; color: var(--cm-muted-soft); margin: 0 0 8px; display: flex; gap: 6px; align-items: center;
}
.ncu-prose { font-size: 15px; line-height: 1.7; color: var(--cm-ink); max-width: 70ch; overflow-wrap: anywhere; }
/* Size and colour are the prose's own, whatever panel it sits in. */
.ncu-prose p { margin: 0 0 12px; font-size: inherit; color: inherit; }
.ncu-prose ul, .ncu-prose ol { margin: 0 0 12px; padding-left: 24px; }
.ncu-prose li { margin-bottom: 6px; }
.ncu-prose:lang(zh) { line-height: 1.85; }
.ncu-source { font-size: 13px; margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- key dates ---------- */
.ncu-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ncu-date { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--cm-border); align-items: start; }
.ncu-date:first-child { border-top: 0; padding-top: 0; }
.ncu-date-tile {
  border-radius: var(--cm-radius-control); background: var(--cm-bg); border: 1px solid var(--cm-border-mid);
  text-align: center; padding: 5px 0 6px; line-height: 1.1;
}
.ncu-date-tile .d { display: block; font-family: var(--cm-font-head); font-size: 19px; font-weight: 600; color: var(--cm-ink); }
.ncu-date-tile .m { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cm-muted-soft); font-weight: 600; }
.ncu-date .t { font-size: 13.5px; font-weight: 500; color: var(--cm-ink); line-height: 1.4; }
.ncu-date .s { font-size: 12px; color: var(--cm-muted-soft); }
.ncu-date[data-when="past"] { opacity: 0.55; }
.ncu-date[data-when="now"] .ncu-date-tile { background: var(--cm-accent); border-color: var(--cm-accent); }
.ncu-date[data-when="now"] .ncu-date-tile .d, .ncu-date[data-when="now"] .ncu-date-tile .m { color: #fff; }
.ncu-when { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cm-accent-deep); }

.ncu-caltable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ncu-caltable th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cm-muted-soft); padding: 8px 12px; border-bottom: 1px solid var(--cm-border-mid); white-space: nowrap; }
.ncu-caltable td { padding: 12px; border-bottom: 1px solid var(--cm-border); vertical-align: top; color: var(--cm-muted-strong); }
.ncu-caltable td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--cm-ink); font-weight: 500; }
@media (max-width: 575.98px) {
  .ncu-caltable td:first-child { white-space: normal; min-width: 96px; }
  .ncu-caltable th, .ncu-caltable td { padding-left: 8px; padding-right: 8px; }
}
.ncu-caltable tr[data-when="past"] td { opacity: 0.55; }
.ncu-caltable tr[data-when="now"] td { background: var(--cm-accent-tint); }
.ncu-caltable tr.ncu-month td { background: var(--cm-panel); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--cm-muted-soft); padding: 6px 12px; }

/* ---------- committees ---------- */
.ncu-committee {
  background: var(--cm-card);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.ncu-committee[data-mine="true"] { border-color: rgba(194, 65, 12, 0.45); box-shadow: var(--cm-shadow-card); }
.ncu-committee header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.ncu-committee h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.ncu-committee h3 .ncu-zh { display: block; font-size: 13px; color: var(--cm-muted); margin-top: 2px; }
.ncu-committee .purpose { font-size: 13px; color: var(--cm-muted); margin: 0 0 16px; }
.ncu-fill { font-size: 12px; font-weight: 600; color: var(--cm-muted-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ncu-seats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cm-border); }
.ncu-seat { border-bottom: 1px solid var(--cm-border); }
.ncu-seat:last-child { border-bottom: 0; }
.ncu-seat details > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  align-items: center; padding: 12px 0; min-height: 44px;
}
.ncu-seat details > summary::-webkit-details-marker { display: none; }
.ncu-seat .role { font-size: 14px; font-weight: 500; color: var(--cm-ink); }
.ncu-seat .role .ncu-zh { font-size: 12.5px; color: var(--cm-muted); margin-left: 6px; font-weight: 400; white-space: nowrap; display: inline-block; }
.ncu-seat .holder { font-size: 13px; color: var(--cm-muted-strong); text-align: right; }
.ncu-seat .holder a { font-weight: 500; }
.ncu-vacant { color: var(--cm-muted-soft); font-style: normal; }
.ncu-seat .duty { font-size: 13px; color: var(--cm-muted); margin: 0 0 12px; padding-right: 8px; }
.ncu-seat .seat-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }

/* ---------- people ---------- */
.ncu-person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ncu-person .cm-face { width: 42px; height: 42px; font-size: 13px; }
.ncu-person .n { font-weight: 600; color: var(--cm-ink); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ncu-person .h { font-size: 12.5px; color: var(--cm-muted-soft); }
.ncu-senior {
  background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ncu-senior .about { font-size: 13.5px; color: var(--cm-muted-strong); margin: 0; }
.ncu-senior .facts { font-size: 12.5px; color: var(--cm-muted); display: flex; flex-direction: column; gap: 2px; }
.ncu-senior .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.ncu-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--cm-radius-sm); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ncu-badge.verified { background: var(--cm-olive-tint); color: var(--cm-olive-deep); }
.ncu-badge.senior { background: var(--cm-accent-tint); color: var(--cm-accent-deep); }
.ncu-badge.seat { background: var(--cm-gold-tint); color: var(--cm-gold); white-space: normal; height: auto; min-height: 24px; padding: 3px 8px; }
.ncu-badge.staff { background: var(--cm-neutral-tint); color: var(--cm-muted-strong); }
.ncu-badge.helpful { background: var(--cm-olive-tint); color: var(--cm-olive-deep); }

.ncu-conn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--cm-border); }
.ncu-conn:first-child { border-top: 0; }
.ncu-conn .msg { font-size: 13px; color: var(--cm-muted-strong); margin: 6px 0 0; white-space: pre-line; }
.ncu-conn .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 575.98px) { .ncu-conn { grid-template-columns: 1fr; } .ncu-conn .acts { justify-content: flex-start; } }

/* ---------- questions ---------- */
.ncu-q {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--cm-radius-card);
  background: var(--cm-card); border: 1px solid var(--cm-border); text-align: left; width: 100%; color: inherit; cursor: pointer;
  font: inherit;
}
.ncu-q:hover { border-color: var(--cm-border-btn); }
.ncu-q .count { border-radius: var(--cm-radius-control); background: var(--cm-bg); border: 1px solid var(--cm-border-mid); text-align: center; padding: 6px 0; line-height: 1.15; }
.ncu-q .count b { display: block; font-family: var(--cm-font-head); font-size: 18px; color: var(--cm-ink); }
.ncu-q .count span { font-size: 11px; color: var(--cm-muted-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.ncu-q[data-answered="true"] .count { background: var(--cm-olive-tint); border-color: transparent; }
.ncu-q .title { font-weight: 600; font-size: 15px; color: var(--cm-ink); margin: 0 0 4px; line-height: 1.4; }
.ncu-q .ex { font-size: 13px; color: var(--cm-muted); margin: 0 0 6px; }
.ncu-q .by { font-size: 12px; color: var(--cm-muted-soft); }
.ncu-answer { padding: 16px 0; border-top: 1px solid var(--cm-border); }
.ncu-answer[data-hidden="true"] { opacity: 0.6; }
.ncu-answer-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.ncu-answer-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--cm-muted-soft); }

/* ---------- guides ---------- */
.ncu-guide { background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); }
.ncu-guide > summary {
  list-style: none; cursor: pointer; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
}
.ncu-guide > summary::-webkit-details-marker { display: none; }
.ncu-guide h3 { font-size: 17px; margin: 0; }
.ncu-guide h3 .ncu-zh { font-size: 13px; color: var(--cm-muted); margin-left: 8px; }
.ncu-guide .sum { display: block; grid-column: 1; margin: -6px 0 0; font-size: 13.5px; color: var(--cm-muted-strong); max-width: 70ch; }
.ncu-guide .chev { transition: transform .2s ease; color: var(--cm-icon); margin-top: 4px; }
.ncu-guide[open] .chev { transform: rotate(180deg); }
.ncu-guide .inner { padding: 0 20px 20px; }
.ncu-sources { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--cm-border-mid); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.ncu-checked { font-size: 12px; color: var(--cm-muted-soft); margin-top: 8px; }

.ncu-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ncu-numbers li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cm-muted-strong); }
.ncu-numbers b { font-family: var(--cm-font-head); font-size: 15px; color: var(--cm-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ncu-numbers a { white-space: nowrap; }
.ncu-numbers a { font-weight: 600; }

/* ---------- states ---------- */
.ncu-empty {
  text-align: center; padding: 40px 24px; border: 1px dashed var(--cm-border-mid); border-radius: var(--cm-radius-card); background: var(--cm-card);
}
.ncu-empty h3 { font-size: 18px; margin: 0 0 6px; }
.ncu-empty p { font-size: 13.5px; color: var(--cm-muted); margin: 0 auto 16px; max-width: 48ch; }
.ncu-empty p:last-child { margin-bottom: 0; }
.ncu-note { font-size: 12.5px; color: var(--cm-muted-soft); }
.ncu-skel { height: 96px; border-radius: var(--cm-radius-card); background: linear-gradient(90deg, var(--cm-skel-a), var(--cm-skel-b), var(--cm-skel-a)); background-size: 600px 100%; animation: cmshimmer 1.4s linear infinite; }

/* ---------- dialog ---------- */
.ncu-dialog {
  border: 0;
  padding: 0;
  border-radius: var(--cm-radius-card);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--cm-card);
  color: var(--cm-ink);
  box-shadow: var(--cm-shadow-modal);
}
.ncu-dialog::backdrop { background: var(--cm-backdrop); }
.ncu-dialog-body { padding: 28px 28px 24px; overflow-y: auto; max-height: calc(100vh - 48px); }
.ncu-dialog h2 { font-size: 20px; margin: 0 0 6px; padding-right: 36px; }
.ncu-dialog .lede { font-size: 13px; color: var(--cm-muted); margin: 0 0 16px; }
.ncu-dialog-close { position: absolute; top: 14px; right: 14px; }
.ncu-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.ncu-dialog-actions .btn { min-width: 120px; }
.ncu-dialog.wide { width: min(820px, calc(100vw - 32px)); }
.ncu-err { color: var(--cm-danger-ink); font-size: 13px; margin: 0 0 12px; }
.ncu-err:empty { display: none; }

/* Bootstrap's screen-reader utility, repeated so labels stay hidden even
   when Bootstrap's stylesheet has not arrived. */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}



/* ---------- events ---------- */
.ncu-event {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); padding: 16px 20px;
}
.ncu-event[data-cancelled="true"] { opacity: 0.75; }
.ncu-event[data-cancelled="true"] h3 a { text-decoration: line-through; }
.ncu-event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start;
  border-radius: var(--cm-radius-control); background: var(--cm-accent-tint); color: var(--cm-accent-deep); padding: 8px 0; line-height: 1.1;
}
.ncu-event-date .w { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ncu-event-date .d { font-family: var(--cm-font-head); font-size: 24px; font-weight: 600; color: var(--cm-ink); }
.ncu-event-date .m { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ncu-event h3 { font-size: 17px; margin: 0 0 2px; line-height: 1.35; text-wrap: balance; }
.ncu-event h3 a { color: var(--cm-ink); }
.ncu-event h3 a:hover { color: var(--cm-accent-deep); }
.ncu-event-meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--cm-muted-strong); margin: 4px 0 0; }
.ncu-event-meta svg { color: var(--cm-icon); flex: none; }
.ncu-event-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; }
.ncu-cover { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--cm-radius-control); margin: 0 0 16px; display: block; }
.ncu-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 13.5px; margin: 0 0 16px; }
.ncu-facts dt { color: var(--cm-muted-soft); font-weight: 500; }
.ncu-facts dd { margin: 0; color: var(--cm-ink); }

/* ---------- headlines from the College ---------- */
.ncu-feedlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ncu-iec {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px;
  background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); padding: 16px;
}
.ncu-iec-kind { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cm-muted-soft); margin-bottom: 3px; }
.ncu-iec-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--cm-ink); overflow-wrap: anywhere; }
.ncu-iec-title:hover { color: var(--cm-accent-deep); }
.ncu-iec-ex { font-size: 13px; color: var(--cm-muted); margin: 4px 0 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncu-iec-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; font-size: 13px; font-weight: 500; }
.ncu-iec-zh { font-size: 13px; color: var(--cm-muted-soft); margin: 2px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.ncu-auto { font-size: 12px; font-weight: 500; color: var(--cm-muted-soft); }

/* ---------- a College item read in the site ---------- */
.ncu-mt-wait { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cm-muted); margin: 12px 0; }
.ncu-spin {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--cm-border-input); border-top-color: var(--cm-accent);
  animation: ncu-spin 0.9s linear infinite;
}
@keyframes ncu-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ncu-spin { animation: none; border-top-color: var(--cm-border-input); } }
.ncu-zh-orig { margin: 12px 0 0; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-control); padding: 12px 16px; }
.ncu-zh-orig summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cm-ink); min-height: 32px; display: flex; align-items: center; }
.ncu-zh-orig[open] summary { margin-bottom: 8px; }
.ncu-files { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ncu-files li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.ncu-orig-box { background: var(--cm-panel); border-radius: var(--cm-radius-control); padding: 16px; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ncu-orig-box p { margin: 0; font-size: 14px; color: var(--cm-muted); }
.ncu-orig-box b { color: var(--cm-ink); }
.ncu-orig-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ncu-human-en {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500;
  color: var(--cm-ink); background: var(--cm-panel); border-radius: var(--cm-radius-control); padding: 12px; margin: 0 0 16px;
}

/* ---------- stories ---------- */
.ncu-story { background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); overflow: hidden; display: flex; flex-direction: column; }
.ncu-story-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; max-width: 100%; background: var(--cm-panel); }
.ncu-story-body { padding: 16px 20px 20px; }
.ncu-story h3 { font-size: 17px; margin: 0 0 4px; line-height: 1.35; text-wrap: balance; }
.ncu-story h3 a { color: var(--cm-ink); }
.ncu-story h3 a:hover { color: var(--cm-accent-deep); }

/* ---------- communities ---------- */
.ncu-community {
  background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ncu-community[data-mine="true"] { border-color: rgba(194, 65, 12, 0.45); }
.ncu-community header { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ncu-community .cm-mono { width: 44px; height: 44px; font-size: 14px; background: var(--cm-accent-tint); color: var(--cm-accent-deep); }
.ncu-community h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.ncu-community .tag { font-size: 13px; color: var(--cm-muted); margin: 0; }
.ncu-community .latest { font-size: 12.5px; color: var(--cm-muted-strong); margin: 0; padding: 8px 12px; border-radius: var(--cm-radius-control); background: var(--cm-bg); }
.ncu-community .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- home ---------- */
.ncu-batchhub { background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); padding: 20px 24px; box-shadow: var(--cm-shadow-card); }
.ncu-batchhub-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.ncu-batchhub-head h2 { font-size: 22px; margin: 2px 0 0; }
.ncu-batchhub-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ncu-batchhub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767.98px) { .ncu-batchhub-grid { grid-template-columns: minmax(0, 1fr); } }
.ncu-batchhub-grid h3 { margin: 0 0 8px; }
.ncu-batchhub-grid p { font-size: 13.5px; color: var(--cm-muted-strong); margin: 0 0 6px; }
.ncu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 575.98px) { .ncu-tiles { grid-template-columns: minmax(0, 1fr); } }
.ncu-tile {
  display: block; background: var(--cm-card); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-card); padding: 16px;
  color: var(--cm-ink); text-decoration: none;
}
.ncu-tile:hover { border-color: rgba(194, 65, 12, 0.45); color: var(--cm-ink); }
.ncu-tile b { display: block; font-family: var(--cm-font-head); font-size: 16px; margin-bottom: 4px; }
.ncu-tile span { font-size: 13px; color: var(--cm-muted); }
.ncu-section-head > a { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ncu-notice-row { display: block; background: var(--cm-card); border: 1px solid var(--cm-border); border-left: 4px solid var(--cm-border);
  border-radius: var(--cm-radius-control); padding: 12px 16px; color: var(--cm-ink); text-decoration: none; }
.ncu-notice-row[data-priority="important"] { border-left-color: var(--cm-amber); }
.ncu-notice-row[data-priority="urgent"] { border-left-color: var(--cm-danger); }
.ncu-notice-row:hover { border-color: rgba(194, 65, 12, 0.35); color: var(--cm-ink); }
.ncu-notice-row b { display: block; font-size: 15px; line-height: 1.4; margin-top: 4px; }
