/* ==========================================================================
   SUNIST — For controlled fusion
   Static site stylesheet (no external dependencies)
   ========================================================================== */

:root {
  --ink: #0e1726;
  --ink-soft: #35445b;
  --ink-muted: #63748c;
  --paper: #ffffff;
  --paper-soft: #f4f7fb;
  --paper-tint: #eaf0f8;
  --line: #dbe4ef;
  --brand: #0b5fd8;
  --brand-strong: #0846a5;
  --brand-soft: #e7f0ff;
  --plasma: #e8813a;
  --plasma-soft: #fdf0e5;
  --ok: #1f7a5c;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06), 0 2px 8px rgba(14, 23, 38, 0.05);
  --shadow: 0 8px 24px rgba(14, 23, 38, 0.08), 0 2px 6px rgba(14, 23, 38, 0.04);
  --shadow-lg: 0 24px 60px rgba(14, 23, 38, 0.16);
  --wrap: 1120px;
  --wrap-narrow: 820px;
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Georgia", "Times New Roman", "Songti SC", serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 650;
}

p {
  margin: 0 0 1.05em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* ---------- utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 0.9rem;
}

.center {
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 550;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--paper-tint);
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #f2f7ff;
  background:
    radial-gradient(130% 90% at 82% 12%, rgba(42, 126, 255, 0.5) 0%, rgba(9, 28, 54, 0) 55%),
    radial-gradient(90% 70% at 8% 92%, rgba(232, 129, 58, 0.28) 0%, rgba(9, 28, 54, 0) 60%),
    linear-gradient(160deg, #071527 0%, #0a1f38 42%, #0d2a4d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-top: clamp(4rem, 9vh, 6.5rem);
  padding-bottom: clamp(4rem, 8vh, 5.5rem);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.45em;
}

.hero h1 .accent {
  display: block;
  color: #8fc3ff;
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.02em;
  margin-top: 0.65rem;
}

.hero .lede {
  color: #c3d7ef;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  color: #9fb6d1;
}

.hero-meta strong {
  color: #e8f1fb;
  font-weight: 600;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0a1b2e;
}

.hero-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #9fb6d1;
  text-align: right;
}

/* ---------- page banner (non-home pages) ---------- */
.page-banner {
  background: linear-gradient(160deg, #08182b 0%, #0b2340 60%, #0e2c50 100%);
  color: #e9f2fc;
  padding: clamp(2.6rem, 6vh, 4.2rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 0.35em;
}

.page-banner p {
  color: #b9cee5;
  max-width: 68ch;
  margin: 0;
}

.breadcrumb {
  font-size: 0.8rem;
  color: #8ba6c4;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #9fc0e8;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 0.45rem;
  color: #5f7c9d;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(3.2rem, 7vh, 5.5rem) 0;
}

.section-tint {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

/* ---------- stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

.stat-label {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card {
  color: inherit;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c4d6ea;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45em;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card .more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.figure-note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- subsystem list ---------- */
.subsystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.subsystem {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

.subsystem h3 {
  font-size: 1rem;
  margin-bottom: 0.35em;
}

.subsystem p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------- table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

th,
td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--paper-tint);
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code,
p code,
li code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-tint);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: var(--brand-strong);
}

/* ---------- timeline / list ---------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.news-list li {
  position: relative;
  padding: 0 0 1.35rem 1.5rem;
  margin: 0;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.news-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.news-list strong {
  display: block;
  font-size: 1rem;
}

.news-list p {
  margin: 0.2rem 0 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------- notice band ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: linear-gradient(135deg, #0b2342 0%, #0e2f57 100%);
  color: #eaf2fd;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}

.band h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-bottom: 0.25em;
}

.band p {
  margin: 0;
  color: #b9cfe7;
  font-size: 0.95rem;
}

/* ---------- archive / istw ---------- */
.archive-note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--plasma-soft);
  border: 1px solid #f2d3b4;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  color: #6d4a2c;
}

.archive-note strong {
  color: #5b3a1e;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.doc-list li {
  margin: 0;
}

.doc-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 550;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.doc-list a:hover {
  text-decoration: none;
  border-color: var(--brand);
  background: var(--brand-soft);
}

.doc-list .ext {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
}

.map-placeholder {
  margin-top: 1.2rem;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background:
    linear-gradient(180deg, var(--paper-soft), var(--paper)),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: #071322;
  color: #a8bdd6;
  padding: clamp(2.5rem, 6vh, 3.6rem) 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h2 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: #cfe0f3;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 0.55rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand strong {
  color: #fff;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: #7f96b1;
}

/* ---------- reveal on scroll (JS enhances, content is visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-top: 3.2rem;
  }

  .hero-figure {
    max-width: 560px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.8rem 24px 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  .header-inner {
    position: relative;
  }

  .card-grid,
  .stat-grid,
  .subsystem-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-meta {
    gap: 0.4rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-toggle {
    display: none !important;
  }

  .hero {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .hero .lede {
    color: #000 !important;
  }
}

/* ==========================================================================
   Page-specific components
   ========================================================================== */

figure {
  margin: 0;
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- archive badge / notices ---------- */
.archive-badge {
  display: inline-block;
  background: var(--plasma-soft);
  color: #8a4b16;
  border: 1px solid #f2d3b4;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-banner .archive-badge {
  background: rgba(232, 129, 58, 0.16);
  color: #ffcda3;
  border-color: rgba(232, 129, 58, 0.45);
}

.status-note {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--plasma-soft);
  border: 1px solid #f2d3b4;
  border-left: 4px solid var(--plasma);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: #6d4a2c;
}

.status-note strong {
  color: #5b3a1e;
}

.link-note {
  color: var(--ink-muted);
}

/* ---------- publications ---------- */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pub;
}

.pub-list li {
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.pub-list li:first-child {
  border-top: 1px solid var(--line);
}

.pub-title {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.pub-meta {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 0.18rem;
}

.pub-doi {
  display: inline-block;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

/* ---------- ISTW programme content ---------- */
.program-content > h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.program-content > h2:first-child {
  margin-top: 0;
}

.program-content > h3 {
  margin-top: 1.8rem;
}

.program-content > p,
.program-content > ul,
.program-content > ol {
  max-width: 84ch;
}

.program-content .program-table {
  margin: 1rem 0 2rem;
}

.program-content .program-table table {
  min-width: 820px;
  font-size: 0.84rem;
}

.program-content .program-table th,
.program-content .program-table td {
  padding: 0.55rem 0.7rem;
}

.program-content .program-table th {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Review series: twenty years of SUNIST research
   ========================================================================== */

.series-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 1px solid #c9dcf6;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-banner .series-badge {
  background: rgba(143, 195, 255, 0.14);
  color: #b9dcff;
  border-color: rgba(143, 195, 255, 0.4);
}

.article {
  max-width: 900px;
}

.article > p {
  font-size: 1.02rem;
}

.article h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.article h2:first-child {
  margin-top: 0;
}

.article-meta {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
}

.article-authors {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.article-affiliation {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.article-note {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.abstract-box {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.abstract-box h2 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.abstract-box p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- figures ---------- */
.figure-block {
  margin: 2rem 0 2.4rem;
}

.figure-panels {
  display: grid;
  gap: 0.7rem;
  align-items: start;
}

.figure-panels img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.figure-panels.figure-single {
  grid-template-columns: 1fr;
}

.figure-panels.figure-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.figure-panels.figure-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.figure-panels.figure-quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.figure-panels.figure-stack {
  grid-template-columns: 1fr;
}

.figure-panels.figure-fig1 {
  grid-template-columns: 1.1fr 1fr;
}

.figure-panels.figure-fig1 .panel-1 {
  grid-row: span 2;
}

.figure-panels.figure-fig15 {
  grid-template-columns: 1.05fr 1fr;
}

.figure-panels.figure-fig15 .panel-1 {
  grid-row: span 2;
}

.figure-caption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.figure-caption strong {
  color: var(--ink-soft);
}

/* ---------- chapter cards ---------- */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

a.chapter-card {
  display: flex;
  gap: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.chapter-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c4d6ea;
}

.chapter-thumb {
  flex: 0 0 150px;
  background: var(--paper-tint);
}

.chapter-thumb img {
  width: 150px;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.chapter-thumb-refs {
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: var(--brand);
}

.chapter-body {
  padding: 1rem 1.1rem 1rem 0;
}

.chapter-body h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.chapter-body p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

/* ---------- chapter navigation ---------- */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.2rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.4rem;
  font-size: 0.9rem;
}

.chapter-nav a {
  color: var(--brand);
}

.chapter-nav .chapter-index {
  font-weight: 600;
}

/* ---------- references ---------- */
.ref-list {
  list-style: none;
  counter-reset: ref;
  padding: 0;
  margin: 1rem 0 2rem;
}

.ref-list li {
  counter-increment: ref;
  position: relative;
  padding: 0.65rem 0 0.65rem 2.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.ref-list li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- math ---------- */
math {
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", "DejaVu Serif", serif;
  font-size: 1.02em;
}

/* ---------- responsive tweaks for the taller navigation ---------- */
@media (max-width: 1100px) {
  .site-nav {
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.87rem;
  }
}

@media (max-width: 940px) {
  .brand-tag {
    display: none;
  }
}

@media (max-width: 760px) {
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  a.chapter-card {
    flex-direction: column;
  }

  .chapter-thumb {
    flex: 0 0 auto;
  }

  .chapter-thumb img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .chapter-body {
    padding: 0 1.1rem 1.1rem;
  }

  .figure-panels.figure-pair,
  .figure-panels.figure-quad,
  .figure-panels.figure-triple,
  .figure-panels.figure-fig1,
  .figure-panels.figure-fig15 {
    grid-template-columns: 1fr;
  }

  .figure-panels.figure-fig1 .panel-1,
  .figure-panels.figure-fig15 .panel-1 {
    grid-row: auto;
  }
}
