:root {
  --bg: #f7f4f7;
  --bg-deep: #454153;
  --paper: #fbfafc;
  --paper-strong: #ffffff;
  --ink: #474457;
  --ink-soft: #67647a;
  --ink-faint: #777285;
  --line: rgba(83, 79, 109, 0.08);
  --line-strong: rgba(83, 79, 109, 0.14);
  --gold: #cfbb97;
  --gold-ink: #826f50;
  --gold-soft: rgba(207, 187, 151, 0.12);
  --navy: #8089b6;
  --pine: #c6cdea;
  --rose: #e4cfd7;
  --plum: #9f96c6;
  --plum-soft: rgba(159, 150, 198, 0.12);
  --shadow-xl: 0 28px 70px rgba(76, 72, 98, 0.1);
  --shadow-lg: 0 18px 40px rgba(76, 72, 98, 0.08);
  --shadow-md: 0 12px 24px rgba(76, 72, 98, 0.06);
  --shadow-hover: 0 22px 52px rgba(76, 72, 98, 0.12);
  --focus-ring: 0 0 0 3px rgba(255, 255, 255, 0.94), 0 0 0 6px rgba(159, 150, 198, 0.22);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: min(1240px, calc(100vw - clamp(28px, 4vw, 72px)));
  --detail-accent: #c4b0db;
  --sage-soft: #edf4ff;
  --sage: #b9c8ee;
  --mist: #f6f0ff;
  --champagne: #faefdf;
  --champagne-strong: #e7d09e;
  --slate-soft: #ece8f6;
  --touch-target: 48px;
  --font-display: "Noto Serif TC", "Songti TC", "STSong", serif;
  --font-body: "Noto Serif TC", "Songti TC", "STSong", serif;
  --font-ui: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-site: var(--font-body);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-site);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(245, 223, 190, 0.2), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(218, 228, 246, 0.22), transparent 26%),
    radial-gradient(circle at 74% 76%, rgba(238, 220, 230, 0.14), transparent 28%),
    linear-gradient(180deg, #fcfbfd 0%, #f5f2f9 38%, #eff2f8 72%, #f8efe7 100%);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 247, 222, 0.18), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 87px,
      rgba(167, 158, 210, 0.028) 88px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 119px,
      rgba(233, 209, 169, 0.02) 120px
    );
  mix-blend-mode: soft-light;
  opacity: 0.62;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(159, 150, 198, 0.08), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(230, 206, 216, 0.08), transparent 42%);
  opacity: 0.78;
}

body.modal-open {
  overflow: hidden;
}

body.page-home {
  background:
    radial-gradient(circle at 9% 8%, rgba(245, 225, 197, 0.18), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(209, 220, 245, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf9fc 0%, #f3eff7 34%, #edf2f8 66%, #f6ece5 100%);
}

body.page-activities {
  background:
    radial-gradient(circle at 9% 8%, rgba(245, 225, 197, 0.18), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(209, 220, 245, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf9fc 0%, #f3eff7 34%, #edf2f8 66%, #f6ece5 100%);
}

body.page-leaders {
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 226, 198, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(221, 214, 245, 0.18), transparent 28%),
    linear-gradient(180deg, #fcfbfd 0%, #f3f0f7 40%, #eef4f8 70%, #f7eee7 100%);
}

body.page-handbook {
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 223, 191, 0.16), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(214, 224, 242, 0.18), transparent 26%),
    linear-gradient(180deg, #fcfbfc 0%, #f4f1f7 40%, #eef2f7 72%, #f6ede5 100%);
}

body.page-home .page-aura-left {
  background: radial-gradient(circle, rgba(233, 207, 174, 0.22), transparent 68%);
}

body.page-home .page-aura-right {
  background: radial-gradient(circle, rgba(194, 203, 235, 0.2), transparent 70%);
}

body.page-home::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 247, 222, 0.18), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 87px,
      rgba(167, 158, 210, 0.028) 88px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 119px,
      rgba(233, 209, 169, 0.02) 120px
    );
  opacity: 0.62;
}

body.page-home::after,
body.page-home .page-gridline {
  display: block;
}

body.page-activities .page-aura-left {
  background: radial-gradient(circle, rgba(233, 207, 174, 0.22), transparent 68%);
}

body.page-activities .page-aura-right {
  background: radial-gradient(circle, rgba(194, 203, 235, 0.2), transparent 70%);
}

body.page-leaders .page-aura-left {
  background: radial-gradient(circle, rgba(236, 212, 180, 0.22), transparent 68%);
}

body.page-leaders .page-aura-right {
  background: radial-gradient(circle, rgba(204, 198, 230, 0.2), transparent 70%);
}

body.page-handbook .page-aura-left {
  background: radial-gradient(circle, rgba(233, 211, 181, 0.2), transparent 68%);
}

body.page-handbook .page-aura-right {
  background: radial-gradient(circle, rgba(198, 205, 233, 0.18), transparent 70%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

#archive,
#leaders,
#method {
  scroll-margin-top: 132px;
}

.page-aura,
.page-gridline {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.page-aura {
  width: 36vw;
  height: 36vw;
  max-width: 540px;
  max-height: 540px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.38;
}

.page-aura-left {
  left: -10vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(242, 214, 178, 0.34), transparent 68%);
}

.page-aura-right {
  right: -10vw;
  top: 52vh;
  background: radial-gradient(circle, rgba(198, 215, 255, 0.26), transparent 70%);
}

.page-gridline {
  inset: 0;
  background:
    linear-gradient(to right, rgba(157, 148, 196, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229, 206, 165, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.11;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px 0 72px;
}

.spotlight-card,
.portal-card,
.leader-card,
.event-card,
.manual-panel,
.footnote-panel {
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
}

.event-grid,
.timeline-shell,
.gallery-item,
.generated-plate,
.activity-block,
.info-card {
  contain: layout paint style;
}

.gallery-item,
.generated-plate,
.activity-block,
.info-card {
  content-visibility: auto;
}

.gallery-item,
.generated-plate {
  contain-intrinsic-size: 1px 420px;
}

.activity-block {
  contain-intrinsic-size: 1px 320px;
}

.info-card {
  contain-intrinsic-size: 1px 84px;
}

.page-main:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(90, 85, 114, 0.92);
  color: #fffdfb;
  box-shadow: 0 16px 30px rgba(61, 56, 86, 0.24);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--focus-ring), 0 16px 30px rgba(61, 56, 86, 0.24);
}

.topbar,
.hero,
.spotlight-band,
.leaders-section,
.portal-section,
.manual-panel,
.archive-head,
.event-grid,
.footnote-panel {
  width: var(--content-width);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 36px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 249, 0.84) 42%, rgba(241, 245, 249, 0.84) 74%, rgba(250, 243, 233, 0.86));
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(76, 72, 98, 0.08);
  animation: rise-in 820ms ease both;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: var(--touch-target);
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, #fffafc 0%, #eef2fa 38%, #f2e9f6 68%, #f0dfc0 100%);
  color: #63607a;
  font-family: var(--font-site);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 20px rgba(88, 84, 114, 0.14);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy--home strong {
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: none;
}

.brand-copy--home span {
  letter-spacing: 0.04em;
}

.brand-copy span {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(125, 119, 157, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--touch-target);
  padding: 0 14px;
  border: 1px solid rgba(125, 119, 157, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 14px rgba(88, 84, 114, 0.08);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.lang-toggle-option {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 2px;
  border-radius: 999px;
  transition: color 180ms ease, opacity 180ms ease;
  opacity: 0.72;
}

.lang-toggle-option.is-current {
  color: var(--ink);
  opacity: 1;
}

.lang-toggle-divider {
  color: rgba(103, 96, 136, 0.52);
}

.topbar-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 11px 16px;
  border-radius: 999px;
  transition: color 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.brand,
.topbar-nav a,
.lang-toggle,
.hero-action,
.filter-chip,
.portal-card,
.manual-preview,
.event-card,
.detail-close,
.detail-links a {
  touch-action: manipulation;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.topbar-nav a:focus-visible {
  color: var(--ink);
  outline: none;
  box-shadow: var(--focus-ring);
}

.topbar-nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 244, 250, 0.96), rgba(247, 239, 246, 0.92));
  color: var(--ink);
  font-weight: 700;
  box-shadow:
    0 8px 16px rgba(76, 72, 98, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.topbar-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

body.page-home .topbar {
  border-color: rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 249, 0.84) 42%, rgba(241, 245, 249, 0.84) 74%, rgba(250, 243, 233, 0.86));
  box-shadow: 0 10px 26px rgba(76, 72, 98, 0.08);
}

body.page-home .brand-mark {
  background:
    linear-gradient(145deg, #fffafc 0%, #eef2fa 38%, #f2e9f6 68%, #f0dfc0 100%);
  color: #63607a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 20px rgba(88, 84, 114, 0.14);
}

body.page-home .brand-copy strong,
body.page-home .topbar-nav a[aria-current="page"],
body.page-home .lang-toggle-option.is-current {
  color: var(--ink);
}

body.page-home .brand-copy span,
body.page-home .topbar-nav,
body.page-home .topbar-nav a,
body.page-home .lang-toggle,
body.page-home .lang-toggle-option {
  color: var(--ink-soft);
}

body.page-home .topbar-nav {
  border-color: rgba(125, 119, 157, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.page-home .topbar-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 244, 250, 0.96), rgba(247, 239, 246, 0.92));
  box-shadow:
    0 8px 16px rgba(76, 72, 98, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body.page-home .topbar-nav a::after {
  background: currentColor;
}

body.page-home .lang-toggle {
  border-color: rgba(125, 119, 157, 0.16);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 14px rgba(88, 84, 114, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 56px;
}

.hero--home {
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  gap: 30px;
  align-items: stretch;
}

body.page-home .hero--home {
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 22px;
}

.hero-copy,
.hero-collage,
.timeline-shell,
.footnote-panel,
.detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xl);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top right, rgba(241, 224, 196, 0.32), transparent 30%),
    radial-gradient(circle at 14% 18%, rgba(231, 224, 243, 0.3), transparent 26%),
    radial-gradient(circle at 78% 76%, rgba(221, 231, 242, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 249, 0.97) 48%, rgba(243, 246, 249, 0.97) 78%, rgba(252, 247, 241, 0.98));
  color: var(--ink);
  animation: rise-in 900ms ease both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(149, 141, 178, 0.1);
  border-radius: calc(var(--radius-2xl) - 10px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.archive-head .archive-title,
.footnote-panel h3,
.detail-section-head h3,
.detail-meta h2 {
  margin: 0;
  font-family: var(--font-site);
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 4vw, 4.45rem);
  color: #4d495f;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-text {
  max-width: 64ch;
  margin: 20px 0 0;
  color: rgba(85, 81, 103, 0.9);
  font-size: clamp(0.99rem, 0.4vw + 0.94rem, 1.05rem);
  line-height: 1.88;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.home-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(149, 141, 178, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(106, 97, 131, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.page-home .hero-copy {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 54px 48px 46px;
  border-radius: 26px;
  border-color: rgba(255, 255, 255, 0.6);
  background:
    radial-gradient(circle at top right, rgba(241, 224, 196, 0.32), transparent 30%),
    radial-gradient(circle at 14% 18%, rgba(231, 224, 243, 0.3), transparent 26%),
    radial-gradient(circle at 78% 76%, rgba(221, 231, 242, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 249, 0.97) 48%, rgba(243, 246, 249, 0.97) 78%, rgba(252, 247, 241, 0.98));
  box-shadow: var(--shadow-xl);
  color: var(--ink);
}

body.page-home .hero-copy::before {
  inset: 22px;
  border-color: rgba(149, 141, 178, 0.1);
}

body.page-home .hero h1 {
  max-width: 7ch;
  color: #4d495f;
  font-size: clamp(2.45rem, 3.8vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

body.page-home .hero-text {
  max-width: 34ch;
  margin-top: 22px;
  color: rgba(85, 81, 103, 0.9);
  font-size: clamp(0.99rem, 0.4vw + 0.94rem, 1.05rem);
  line-height: 1.88;
}

body.page-home .hero-actions {
  margin-top: 32px;
  gap: 10px;
  align-items: center;
}

body.page-home .eyebrow {
  color: var(--gold-ink);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

body.page-home .home-hero-meta {
  gap: 10px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
}

body.page-home .home-hero-meta span {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(149, 141, 178, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(106, 97, 131, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.page-home .home-hero-meta span + span {
  margin-left: 0;
}

body.page-home .home-hero-meta span + span::before {
  display: none;
}

body.page-home .hero-action {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

body.page-home .hero-action-primary {
  background: linear-gradient(135deg, rgba(249, 240, 224, 0.98), rgba(239, 242, 249, 0.96), rgba(243, 236, 245, 0.96));
  color: #4c485d;
  box-shadow: 0 12px 24px rgba(93, 89, 118, 0.14);
}

body.page-home .hero-action-secondary {
  border-color: rgba(149, 141, 178, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
}

body.page-home .hero-action-secondary:focus-visible {
  border-color: rgba(169, 156, 211, 0.32);
  background: rgba(255, 255, 255, 0.88);
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.hero-ledger-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(149, 141, 178, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 243, 249, 0.8), rgba(246, 248, 250, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 20px rgba(76, 72, 98, 0.05);
}

.hero-ledger-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, rgba(205, 187, 150, 0.82), rgba(161, 151, 194, 0.3), rgba(190, 212, 233, 0.26));
  opacity: 0.7;
}

.hero-ledger-item span {
  padding-left: 2px;
  color: rgba(114, 106, 137, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-ledger-item strong {
  color: #605b7c;
  font-family: var(--font-site);
  font-size: 1.46rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: max(50px, var(--touch-target));
  padding: 0 18px;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-action:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero-action-primary {
  background: linear-gradient(135deg, rgba(249, 240, 224, 0.98), rgba(239, 242, 249, 0.96), rgba(243, 236, 245, 0.96));
  color: #4c485d;
  box-shadow: 0 12px 24px rgba(93, 89, 118, 0.14);
}

.hero-action-secondary {
  border: 1px solid rgba(149, 141, 178, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  cursor: pointer;
}

.hero-action-secondary:focus-visible {
  border-color: rgba(169, 156, 211, 0.32);
  background: rgba(255, 255, 255, 0.88);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(149, 141, 178, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  margin-bottom: 5px;
  color: #5f5a79;
  font-family: var(--font-site);
  font-size: clamp(2.05rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.stat-card span {
  color: rgba(104, 92, 105, 0.82);
  font-size: 0.88rem;
}

.stat-card--wide strong {
  letter-spacing: 0.02em;
}

.method-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding: 17px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(84, 78, 106, 0.92);
}

.method-strip span {
  color: rgba(116, 107, 142, 0.72);
  font-size: 0.88rem;
}

.method-strip strong {
  padding: 7px 12px;
  border: 1px solid rgba(157, 147, 194, 0.14);
  border-radius: 999px;
  background: rgba(251, 248, 255, 0.94);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-signature {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(157, 147, 194, 0.14);
}

.hero-signature span {
  color: rgba(118, 109, 142, 0.68);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-signature strong {
  color: #625d7d;
  font-family: var(--font-site);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
}

.hero-signature p {
  margin: 0;
  max-width: 58ch;
  color: rgba(100, 96, 124, 0.86);
  line-height: 1.85;
}

body.page-leaders .hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 24px;
}

body.page-leaders .hero-copy {
  padding: 34px 34px 32px;
}

body.page-leaders .hero-ledger {
  gap: 10px;
  margin-bottom: 20px;
}

body.page-leaders .hero-ledger-item {
  min-height: 0;
  padding: 14px 16px;
}

body.page-leaders .hero-ledger-item strong {
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.24;
}

body.page-leaders .hero-title--leaders {
  max-width: none;
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

body.page-leaders .hero-title--leaders span {
  display: block;
  text-wrap: balance;
}

body.page-leaders .hero-title--leaders span + span {
  margin-top: 6px;
}

body.page-leaders .hero-text {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.88;
}

body.page-leaders .hero-actions {
  margin-top: 22px;
}

body.page-leaders .method-strip {
  margin-top: 24px;
}

body.page-leaders .hero-signature {
  margin-top: 24px;
  padding-top: 18px;
}

body.page-leaders .page-feature-card {
  min-height: 100%;
}

body.page-leaders .page-feature-card img {
  min-height: 100%;
  object-position: 56% 20%;
}

body.page-handbook .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
}

body.page-handbook .hero-copy {
  padding: 34px 34px 32px;
}

body.page-handbook .hero-ledger {
  gap: 10px;
  margin-bottom: 20px;
}

body.page-handbook .hero-ledger-item {
  min-height: 0;
  padding: 14px 16px;
}

body.page-handbook .hero-ledger-item strong {
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.24;
}

body.page-handbook .hero h1 {
  max-width: 10ch;
  font-size: clamp(2.15rem, 3.6vw, 3.62rem);
}

body.page-handbook .hero-text {
  max-width: 60ch;
  margin-top: 18px;
  line-height: 1.88;
}

body.page-handbook .hero-actions {
  margin-top: 24px;
}

body.page-handbook .page-feature-card img {
  min-height: 100%;
  object-position: center top;
}

body.page-handbook .page-feature-copy p {
  max-width: 26ch;
}

body.page-leaders .page-feature-copy {
  left: 22px;
  right: 22px;
  bottom: 20px;
}

body.page-leaders .page-feature-copy strong {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

body.page-leaders .page-feature-copy p {
  max-width: 28ch;
}

body.page-activities .hero {
  width: min(980px, calc(100vw - clamp(28px, 4vw, 72px)));
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 42px;
}

body.page-activities .hero-copy {
  padding: 30px 32px 28px;
}

body.page-activities .hero-copy::before {
  inset: 18px;
}

body.page-activities .hero-ledger {
  gap: 10px;
  margin-bottom: 20px;
}

body.page-activities .hero-ledger-item {
  min-height: 0;
  padding: 14px 16px;
}

body.page-activities .hero-ledger-item strong {
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  line-height: 1.24;
}

body.page-activities .hero h1 {
  max-width: 10ch;
  font-size: clamp(1.96rem, 3.2vw, 3.18rem);
}

body.page-activities .hero-text {
  max-width: 60ch;
  margin-top: 16px;
  line-height: 1.82;
}

body.page-activities .hero-actions {
  margin-top: 22px;
}

body.page-activities .hero-stats {
  gap: 10px;
  margin-top: 22px;
}

body.page-activities .stat-card {
  min-height: 0;
  padding: 16px;
}

body.page-activities .stat-card strong {
  font-size: clamp(1.75rem, 3vw, 2.18rem);
}

body.page-activities .method-strip {
  margin-top: 20px;
  padding: 14px 16px;
  gap: 8px;
}

body.page-activities .method-strip strong {
  padding: 6px 10px;
  font-size: 0.84rem;
}

body.page-activities .hero-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 16px;
}

body.page-activities .hero-signature span {
  width: 100%;
  font-size: 0.74rem;
}

body.page-activities .hero-signature strong {
  font-size: 1.16rem;
}

body.page-activities .hero-signature p {
  flex: 1 1 320px;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.72;
}

.spotlight-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -18px auto 52px;
  animation: rise-in 1s ease both;
}

.spotlight-band--compact {
  margin-top: 0;
}

.spotlight-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 196px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 241, 255, 0.94), rgba(247, 250, 255, 0.92));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(157, 147, 194, 0.1);
  border-radius: 18px;
  pointer-events: none;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -46px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 168, 222, 0.16), transparent 70%);
}

.spotlight-index {
  position: relative;
  z-index: 1;
  color: rgba(184, 154, 103, 0.74);
  font-family: var(--font-site);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spotlight-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-site);
  font-size: 1.34rem;
  line-height: 1.32;
  text-wrap: balance;
}

.spotlight-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.86;
}

.hero-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 248, 0.95), rgba(245, 247, 249, 0.93));
  animation: rise-in 980ms ease both;
}

.home-feature {
  display: grid;
  min-height: 100%;
}

.home-feature-card {
  min-height: 100%;
  border-radius: 26px;
  border-color: rgba(31, 36, 47, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 20, 29, 0.18), rgba(14, 20, 29, 0.04));
  box-shadow: 0 30px 64px rgba(25, 29, 37, 0.14);
}

.home-feature-card img {
  min-height: 640px;
  object-fit: cover;
  object-position: center 38%;
}

.home-feature-card::after {
  height: 56%;
  background:
    linear-gradient(180deg, rgba(11, 14, 19, 0.1) 0%, rgba(11, 14, 19, 0.06) 24%, rgba(11, 14, 19, 0.9) 100%);
}

.home-feature-links {
  display: none;
}

.home-feature-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(13, 18, 26, 0.42);
  color: rgba(255, 248, 240, 0.86);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  backdrop-filter: blur(14px);
  transition: background 180ms ease, transform 180ms ease;
}

.home-feature-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.home-feature-copy {
  top: 28px;
  left: 28px;
  right: 28px;
  bottom: auto;
  gap: 12px;
  max-width: 420px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 14, 21, 0.72), rgba(10, 14, 21, 0.34));
  backdrop-filter: blur(10px);
}

.home-feature-copy span {
  color: rgba(250, 241, 228, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}

.home-feature-copy strong {
  max-width: 12ch;
  font-size: clamp(2.1rem, 2.8vw, 3.05rem);
  line-height: 1.16;
}

.home-feature-copy p {
  max-width: 22ch;
  color: rgba(255, 248, 240, 0.76);
  font-size: 0.9rem;
  line-height: 1.72;
}

.portal-section {
  display: grid;
  gap: 24px;
  margin-bottom: 52px;
  animation: rise-in 1.04s ease both;
}

.portal-section--home {
  margin-top: 2px;
}

.portal-copy {
  display: grid;
  gap: 8px;
}

.portal-section h2 {
  margin: 0;
  font-family: var(--font-site);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.2;
}

.portal-intro {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.page-home .portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.page-home .portal-card--home-minimal {
  min-height: 0;
  border-radius: 20px;
}

body.page-home .portal-card--home-minimal::before {
  inset: 18px;
  border-color: rgba(28, 33, 43, 0.06);
  border-radius: 14px;
}

body.page-home .portal-card--home-minimal .portal-body {
  gap: 14px;
  padding: 26px 24px 24px;
}

.manual-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 248, 0.96), rgba(245, 247, 249, 0.95));
  box-shadow: var(--shadow-xl);
  animation: rise-in 1.1s ease both;
}

body.page-home .manual-panel {
  margin-top: 56px;
}

.manual-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.manual-panel h2 {
  margin: 0;
  font-family: var(--font-site);
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.22;
}

.manual-intro {
  max-width: 64ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manual-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(149, 141, 178, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.manual-actions .hero-action {
  flex: 0 0 auto;
}

.manual-preview {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 255, 0.94), rgba(247, 250, 255, 0.93));
  box-shadow: 0 16px 34px rgba(76, 72, 98, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.manual-preview:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-hover);
}

.manual-preview img {
  min-height: 100%;
  object-fit: cover;
}

.manual-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background:
    linear-gradient(180deg, rgba(53, 45, 74, 0) 0%, rgba(53, 45, 74, 0.72) 100%);
}

.manual-preview-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: rgba(255, 252, 248, 0.96);
}

.manual-preview-copy span {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.manual-preview-copy strong {
  font-family: var(--font-site);
  font-size: 1.52rem;
  line-height: 1.3;
}

.manual-preview-copy p {
  margin: 0;
  line-height: 1.7;
}

.manual-reader {
  margin-bottom: 44px;
  padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 248, 0.94), rgba(245, 247, 249, 0.94));
  box-shadow: var(--shadow-xl);
}

.manual-reader-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.56fr);
  align-items: end;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(109, 102, 132, 0.12);
}

.manual-reader-header h2 {
  margin: 0;
  font-family: var(--font-site);
  font-size: clamp(1.8rem, 2.8vw, 2.65rem);
  line-height: 1.2;
}

.manual-reader-intro {
  max-width: 31ch;
  margin: 0;
  justify-self: end;
  color: var(--ink-soft);
  line-height: 1.76;
}

.manual-reader-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 2.8vw, 34px);
  width: min(100%, 1180px);
  margin: clamp(24px, 3vw, 36px) auto 0;
}

.manual-reader-page {
  min-width: 0;
  aspect-ratio: 993 / 1404;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 86, 116, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 32px rgba(64, 57, 80, 0.1);
}

.manual-reader-page img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 993 / 1404;
  background: rgba(244, 241, 247, 0.9);
  opacity: 1;
  transition: opacity 180ms ease;
}

.manual-reader-page.is-pending {
  background: linear-gradient(145deg, rgba(249, 247, 250, 0.98), rgba(238, 241, 247, 0.94));
}

.manual-reader-page.is-pending img {
  opacity: 0;
}

@media (max-width: 820px) {
  .manual-reader {
    margin-bottom: 28px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .manual-reader-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-bottom: 18px;
  }

  .manual-reader-header h2 {
    font-size: clamp(1.52rem, 6vw, 2rem);
  }

  .manual-reader-intro {
    justify-self: start;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .manual-reader-pages {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: min(100%, 560px);
    margin-top: 22px;
  }

  .manual-reader-page {
    border-radius: 15px;
  }
}

@media (max-width: 560px) {
  .manual-reader {
    padding: 20px 18px;
  }

  .manual-reader-pages {
    gap: 14px;
  }
}

.portal-card,
.page-feature-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-xl);
}

.portal-card {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 248, 0.96), rgba(245, 247, 249, 0.95));
  isolation: isolate;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  will-change: transform;
}

.portal-card::before,
.leader-card::before,
.page-feature-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(157, 147, 194, 0.1);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
  z-index: 1;
}

.portal-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-hover);
}

.portal-media {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.portal-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(56, 48, 78, 0) 0%, rgba(56, 48, 78, 0.12) 100%);
}

.portal-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.portal-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.portal-index {
  color: rgba(220, 199, 160, 0.86);
  font-family: var(--font-site);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.portal-kicker {
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-body .portal-title {
  margin: 0;
  font-family: var(--font-site);
  font-size: 1.52rem;
  line-height: 1.3;
  text-wrap: balance;
}

body.page-home .portal-body .portal-title {
  color: #252935;
  font-size: 1.36rem;
  line-height: 1.26;
}

.portal-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

body.page-home .portal-body p {
  color: rgba(73, 77, 88, 0.82);
  font-size: 0.98rem;
  line-height: 1.72;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(149, 141, 178, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.portal-cta::after {
  content: "→";
}

body.page-home .portal-card {
  border-radius: 22px;
  border-color: rgba(115, 108, 143, 0.11);
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 207, 215, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(253, 252, 255, 0.99), rgba(246, 243, 252, 0.98) 48%, rgba(238, 244, 251, 0.97));
  box-shadow: 0 18px 42px rgba(76, 72, 98, 0.07);
}

body.page-home .portal-card::before {
  inset: 16px;
  border-color: rgba(28, 33, 43, 0.06);
  border-radius: 16px;
}

body.page-home .portal-media {
  min-height: 154px;
}

body.page-home .portal-media::after {
  height: 28%;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0) 0%, rgba(16, 20, 28, 0.12) 100%);
}

body.page-home .portal-card:hover .portal-media img {
  transform: scale(1.04);
}

body.page-home .portal-body {
  gap: 12px;
  padding: 24px 24px 22px;
}

body.page-home .portal-index {
  color: rgba(128, 137, 182, 0.88);
  font-size: 1.74rem;
  letter-spacing: 0.1em;
}

body.page-home .portal-kicker {
  color: rgba(89, 84, 116, 0.84);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

body.page-home .portal-meta {
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(115, 108, 143, 0.11);
}

body.page-home .portal-meta span {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(92, 88, 113, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-home .portal-meta span + span {
  padding-left: 14px;
}

body.page-home .portal-meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: rgba(115, 108, 143, 0.18);
  transform: translateY(-50%);
}

body.page-home .portal-cta {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.page-feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 248, 0.96), rgba(245, 247, 249, 0.95));
  isolation: isolate;
}

.page-feature-card img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.page-feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background:
    linear-gradient(180deg, rgba(58, 52, 76, 0) 0%, rgba(58, 52, 76, 0.72) 100%);
}

.page-feature-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: rgba(255, 252, 248, 0.96);
}

.page-feature-copy span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.page-feature-copy strong {
  font-family: var(--font-site);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.2;
}

.page-feature-copy p {
  margin: 0;
  max-width: 34ch;
  line-height: 1.8;
}

.leaders-section {
  display: grid;
  gap: 24px;
  margin-bottom: 52px;
  animation: rise-in 1s ease both;
}

.leaders-copy {
  display: grid;
  gap: 8px;
}

.leaders-section h2 {
  margin: 0;
  font-family: var(--font-site);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.2;
}

.leaders-intro {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

.leaders-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.leaders-visual,
.leader-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xl);
}

.leaders-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 241, 255, 0.95), rgba(247, 250, 255, 0.93));
}

.leaders-visual img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.leaders-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background:
    linear-gradient(180deg, rgba(64, 58, 88, 0) 0%, rgba(64, 58, 88, 0.72) 100%);
}

.leaders-visual-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: rgba(255, 251, 245, 0.94);
}

.leaders-visual-copy span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.leaders-visual-copy strong {
  font-family: var(--font-site);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.leaders-visual-copy p {
  margin: 0;
  max-width: 34ch;
  line-height: 1.8;
}

.leader-grid {
  display: grid;
  gap: 18px;
}

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

.leader-card {
  position: relative;
  display: grid;
  align-content: start;
  height: 100%;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 248, 0.96), rgba(245, 247, 249, 0.95));
  isolation: isolate;
}

.leader-head {
  display: grid;
  gap: 8px;
}

.leader-number {
  color: rgba(220, 199, 160, 0.88);
  font-family: var(--font-site);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.leader-role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(220, 199, 160, 0.2);
  border-radius: 999px;
  background: rgba(253, 250, 255, 0.92);
  color: #7f7698;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leader-head h3 {
  margin: 0;
  font-family: var(--font-site);
  font-size: 1.7rem;
  line-height: 1.3;
  text-wrap: balance;
}

.leader-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.leader-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(220, 199, 160, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.leader-photo img {
  width: 100%;
  min-height: 230px;
  object-fit: cover;
  object-position: center 30%;
}

.leader-photo--page img {
  object-position: center top;
}

.leader-photo--portrait img {
  object-position: center 18%;
}

.leader-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(84, 75, 108, 0.54);
  color: rgba(255, 252, 248, 0.94);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.leader-meta div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(157, 147, 194, 0.1);
}

.leader-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.leader-meta dt {
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leader-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.leader-quote {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 3px solid rgba(207, 187, 151, 0.34);
  color: #605c73;
  font-family: var(--font-site);
  font-size: 1.02rem;
  line-height: 1.74;
}

.leader-summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

.collage-card,
.gallery-item,
.generated-plate {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-lg);
}

.collage-card {
  position: relative;
  min-height: 220px;
  isolation: isolate;
}

.collage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(54, 47, 76, 0) 20%, rgba(54, 47, 76, 0.68) 100%);
}

.collage-card img {
  height: 100%;
  object-fit: cover;
}

.collage-card-main {
  grid-row: 1 / span 2;
}

.collage-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: white;
}

.collage-caption span {
  display: block;
  margin-bottom: 5px;
  opacity: 0.72;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.collage-caption strong {
  font-family: var(--font-site);
  font-size: 1.12rem;
  text-wrap: balance;
}

.collage-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(157, 147, 194, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 251, 243, 0.98), rgba(241, 237, 255, 0.98), rgba(241, 247, 255, 0.96));
  color: rgba(84, 78, 106, 0.92);
}

.collage-note span {
  color: rgba(136, 126, 164, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collage-note p {
  margin: 0;
  line-height: 1.82;
}

.archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  align-items: start;
  gap: 28px;
  margin-bottom: 30px;
  padding: 30px 32px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: calc(var(--radius-2xl) + 2px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(245, 241, 255, 0.95) 54%, rgba(246, 249, 255, 0.93)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(91, 84, 123, 0.1);
  animation: rise-in 1.06s ease both;
}

.archive-copy {
  display: grid;
  gap: 12px;
}

.archive-head .archive-title {
  max-width: 10ch;
  font-size: clamp(2.2rem, 3.3vw, 3.2rem);
  text-wrap: balance;
}

.archive-intro {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.84;
}

.archive-actions {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 241, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(157, 147, 194, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.filter-chip:focus-visible {
  border-color: rgba(169, 156, 211, 0.42);
  color: var(--ink);
  outline: none;
  box-shadow: var(--focus-ring), 0 10px 18px rgba(96, 92, 128, 0.1);
}

.filter-chip.is-active {
  border-color: rgba(220, 199, 160, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.98), rgba(240, 235, 255, 0.94), rgba(239, 247, 255, 0.92));
  color: var(--ink);
}

.archive-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  line-height: 1.7;
}

.filter-hint {
  display: none;
  margin: -4px 0 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.event-grid {
  --timeline-rail-width: 94px;
  position: relative;
  display: grid;
  gap: 24px;
  padding-top: 10px;
}

.event-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((var(--timeline-rail-width) / 2) - 0.5px);
  width: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(220, 199, 160, 0.14) 0%,
      rgba(220, 199, 160, 0.34) 14%,
      rgba(169, 156, 211, 0.18) 56%,
      rgba(202, 221, 255, 0.18) 100%
    );
}

.event-card {
  --event-accent: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-rail-width) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  contain: layout paint style;
  cursor: pointer;
  transition:
    transform 220ms ease,
    filter 220ms ease;
  animation: rise-in 860ms ease both;
  animation-delay: var(--card-delay, 0ms);
  -webkit-tap-highlight-color: transparent;
}

.event-card:focus-visible {
  outline: none;
  transform: translateX(6px);
  filter: saturate(1.04);
}

.event-card:focus-visible .timeline-shell {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--focus-ring), 0 36px 76px rgba(82, 77, 110, 0.16);
}

.timeline-rail {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding-top: 24px;
}

.timeline-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(220, 199, 160, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: var(--font-site);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 24px rgba(96, 92, 128, 0.08);
}

.timeline-node {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: var(--event-accent);
  box-shadow:
    0 0 0 1px rgba(220, 199, 160, 0.18),
    0 10px 22px rgba(96, 92, 128, 0.14);
}

.timeline-shell {
  --card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 241, 255, 0.96), rgba(247, 250, 255, 0.94));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  background: var(--card-surface);
  box-shadow: 0 22px 50px rgba(96, 92, 128, 0.08);
  isolation: isolate;
}

.timeline-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--event-accent), rgba(255, 255, 255, 0));
  opacity: 0.8;
}

.timeline-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--event-accent), transparent 32%);
  opacity: 0.06;
  pointer-events: none;
}

.card-cover {
  position: relative;
  display: flex;
  min-height: 292px;
  background: linear-gradient(135deg, rgba(139, 147, 201, 0.96), rgba(242, 223, 255, 0.92), rgba(245, 222, 184, 0.92));
}

.card-cover > img,
.card-cover > .generated-cover {
  flex: 1 1 auto;
  width: 100%;
}

.card-cover img {
  height: 100%;
  object-fit: cover;
}

.document-cover {
  object-position: center top;
}

.card-chapter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid rgba(157, 147, 194, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.generated-cover {
  position: relative;
  height: 100%;
  padding: 24px;
  color: white;
  overflow: hidden;
}

.generated-cover::before,
.generated-cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.42;
}

.generated-cover::before {
  width: 220px;
  height: 220px;
  right: -56px;
  top: -84px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.46), transparent 68%);
}

.generated-cover::after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -64px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
}

.generated-cover .plate-month,
.generated-plate .plate-month {
  display: block;
  position: relative;
  z-index: 1;
  font-family: var(--font-site);
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.generated-cover .plate-badge,
.generated-plate .plate-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.generated-cover .plate-title,
.generated-plate .plate-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  font-family: var(--font-site);
  font-size: 1.48rem;
  line-height: 1.38;
}

.theme-mountain {
  background:
    linear-gradient(135deg, rgba(164, 172, 224, 0.96), rgba(246, 220, 180, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 32%);
}

.theme-forum {
  background:
    linear-gradient(140deg, rgba(151, 162, 222, 0.96), rgba(244, 227, 193, 0.9)),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.26), transparent 26%);
}

.theme-welcome {
  background:
    linear-gradient(135deg, rgba(214, 181, 204, 0.96), rgba(250, 224, 195, 0.9)),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.24), transparent 28%);
}

.theme-stream {
  background:
    linear-gradient(135deg, rgba(154, 165, 225, 0.96), rgba(215, 204, 240, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 30%);
}

.theme-finale {
  background:
    linear-gradient(135deg, rgba(191, 172, 208, 0.96), rgba(246, 216, 184, 0.9)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.26), transparent 28%);
}

.card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 28px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.badge-photo {
  background: rgba(169, 156, 211, 0.16);
  color: #7569a0;
}

.badge-document {
  background: rgba(220, 199, 160, 0.18);
  color: #977d62;
}

.badge-placeholder {
  background: rgba(157, 147, 194, 0.1);
  color: #7d7695;
}

.card-scene {
  margin: -2px 0 0;
  color: var(--event-accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.card-body .card-title {
  margin: 0;
  font-family: var(--font-site);
  font-size: 1.5rem;
  line-height: 1.32;
  text-wrap: balance;
}

.card-excerpt,
.detail-summary,
.detail-info p,
.detail-links a,
.archive-intro,
.footnote-panel p {
  color: var(--ink-soft);
}

.card-excerpt {
  margin: 0;
  line-height: 1.8;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(157, 147, 194, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(157, 147, 194, 0.08);
}

.card-frames {
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-location {
  color: var(--ink-faint);
  font-size: 0.88rem;
  line-height: 1.68;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(157, 147, 194, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 700;
}

.card-cta::after {
  content: "→";
  transition: transform 180ms ease;
}

.event-card:hover .card-cta::after,
.event-card:focus-visible .card-cta::after {
  transform: translateX(3px);
}

.footnote-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 241, 255, 0.95), rgba(247, 250, 255, 0.93));
  animation: rise-in 1.14s ease both;
}

.footnote-title {
  display: grid;
  gap: 8px;
}

.footnote-panel p {
  margin: 0;
  line-height: 1.92;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(220, 199, 160, 0.14), transparent 28%),
    rgba(75, 69, 98, 0.56);
  backdrop-filter: blur(12px);
}

.detail-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 32px));
  max-height: min(92vh, 980px);
  margin: 4vh auto;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 241, 255, 0.97), rgba(247, 250, 255, 0.95));
  box-shadow: 0 36px 120px rgba(96, 92, 128, 0.28);
  overscroll-behavior: contain;
}

.detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--detail-accent), rgba(255, 255, 255, 0));
  opacity: 0.95;
  z-index: 2;
}

.detail-scroll {
  overflow: auto;
  max-height: inherit;
  contain: layout paint style;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
}

.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-height: var(--touch-target);
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(98, 88, 124, 0.44);
  color: #fffdf9;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.detail-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.detail-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.detail-hero img,
.detail-hero .generated-cover {
  min-height: 360px;
}

.detail-hero img {
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(50, 44, 70, 0) 0%, rgba(50, 44, 70, 0.76) 100%);
  pointer-events: none;
}

.detail-hero-badge {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 6px;
  color: white;
}

.detail-hero-badge span {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.74;
}

.detail-hero-badge strong {
  font-family: var(--font-site);
  font-size: 2.1rem;
  letter-spacing: 0.06em;
}

.detail-body {
  padding: 34px;
}

.detail-kicker {
  margin: 0 0 10px;
  color: var(--detail-accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-meta h2 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  text-wrap: balance;
}

.detail-summary {
  margin: 16px 0 0;
  max-width: 74ch;
  line-height: 1.95;
}

.detail-activities {
  margin-top: 28px;
}

.activity-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.activity-block {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(157, 147, 194, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(103, 96, 134, 0.08);
}

.activity-block-visual {
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.activity-block-visual img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.activity-block-visual figcaption {
  padding: 12px 14px 14px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.65;
}

.activity-block-date {
  margin: 0;
  color: var(--detail-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.activity-block h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.3;
}

.activity-block p {
  margin: 0;
  line-height: 1.82;
}

.activity-block-list {
  display: grid;
  gap: 8px;
  margin: -2px 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.activity-block-list li {
  line-height: 1.72;
}

.activity-block-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.info-card {
  padding: 18px;
  border: 1px solid rgba(157, 147, 194, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.info-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card p {
  margin: 0;
  line-height: 1.78;
}

.detail-tags,
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 11px 15px;
  border: 1px solid rgba(157, 147, 194, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.detail-links a:focus-visible {
  border-color: rgba(169, 156, 211, 0.3);
  outline: none;
  box-shadow: var(--focus-ring), 0 10px 18px rgba(96, 92, 128, 0.1);
}

.detail-links a::after {
  content: "↗";
}

.detail-links a.is-download {
  border-color: rgba(220, 199, 160, 0.24);
  background: linear-gradient(135deg, rgba(255, 249, 239, 1), rgba(241, 236, 255, 0.96), rgba(240, 247, 255, 0.94));
}

.detail-links a.is-download::after {
  content: "↓";
}

.detail-gallery {
  margin-top: 34px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 840px;
}

.detail-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  contain: layout paint style;
}

.gallery-grid > :first-child {
  grid-column: 1 / -1;
}

.gallery-item,
.generated-plate {
  border: 1px solid rgba(157, 147, 194, 0.06);
  background: rgba(255, 255, 255, 0.84);
}

.gallery-item img {
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
}

.gallery-item video {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  background: #0f131b;
}

.gallery-grid > :first-child img {
  aspect-ratio: 1.9 / 1;
}

.gallery-grid > :first-child video {
  aspect-ratio: 1.9 / 1;
}

.gallery-item figcaption,
.generated-plate .plate-caption {
  padding: 15px 17px 17px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.generated-plate {
  min-height: 250px;
}

.generated-plate .generated-cover {
  min-height: 250px;
}

@media (hover: none) {
  .topbar-nav a:active,
  .lang-toggle:active,
  .hero-action:active,
  .filter-chip:active,
  .detail-close:active,
  .detail-links a:active {
    transform: scale(0.985);
  }

  .portal-card:active,
  .manual-preview:active {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(101, 95, 132, 0.14);
  }

  .event-card:active {
    transform: translateX(4px);
    filter: saturate(1.03);
  }
}

@media (pointer: coarse) {
  body::before,
  body::after,
  .page-gridline {
    display: none;
  }

  .page-aura {
    filter: blur(14px);
    opacity: 0.18;
  }

  .topbar {
    backdrop-filter: none;
    box-shadow: 0 12px 26px rgba(96, 92, 128, 0.08);
  }

  .hero-copy,
  .timeline-shell,
  .manual-panel,
  .leader-card,
  .portal-card,
  .spotlight-card,
  .footnote-panel,
  .detail-panel {
    box-shadow: var(--shadow-md);
  }

  .event-card,
  .spotlight-band,
  .portal-section,
  .manual-panel,
  .archive-head {
    animation: none;
  }
}

@media (hover: hover) {
  .brand:hover {
    transform: translateY(-1px);
  }

  .lang-toggle:hover {
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.66),
      0 12px 22px rgba(109, 101, 143, 0.12);
  }

  .topbar-nav a:hover {
    color: var(--ink);
    transform: translateY(-1px);
  }

  .topbar-nav a:hover::after {
    transform: scaleX(1);
  }

  .hero-action:hover {
    transform: translateY(-1px);
  }

  .hero-action-secondary:hover {
    border-color: rgba(169, 156, 211, 0.3);
    background: rgba(255, 255, 255, 0.88);
  }

  body.page-home .hero-action-secondary:hover {
    border-color: rgba(220, 199, 160, 0.32);
    background: rgba(255, 255, 255, 0.06);
  }

  .portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }

  .filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(169, 156, 211, 0.42);
    color: var(--ink);
    box-shadow: 0 10px 18px rgba(96, 92, 128, 0.1);
  }

  .event-card:hover {
    transform: translateX(6px);
    filter: saturate(1.04);
  }

  .event-card:hover .timeline-shell {
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 36px 76px rgba(96, 92, 128, 0.18);
  }

  .event-card:hover .card-cta::after {
    transform: translateX(3px);
  }

  .detail-close:hover {
    transform: translateY(-1px);
    background: rgba(103, 91, 130, 0.56);
    border-color: rgba(255, 255, 255, 0.36);
  }

  .detail-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(169, 156, 211, 0.3);
    box-shadow: 0 10px 18px rgba(96, 92, 128, 0.1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero--home {
    grid-template-columns: 1fr;
  }

  .spotlight-band {
    grid-template-columns: 1fr;
  }

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

  .leader-grid--two,
  .leaders-layout,
  .manual-panel {
    grid-template-columns: 1fr;
  }

  .leaders-visual img {
    min-height: 420px;
  }

  .page-feature-card img {
    min-height: 420px;
  }

  .archive-head {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .archive-actions {
    width: 100%;
    padding: 18px 18px 14px;
  }

  .timeline-shell {
    grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  }

  .detail-info {
    grid-template-columns: 1fr;
  }

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

  body.page-leaders .hero {
    grid-template-columns: 1fr;
  }

  body.page-leaders .page-feature-card img {
    min-height: 420px;
    object-position: 50% 24%;
  }

  body.page-handbook .hero {
    grid-template-columns: 1fr;
  }

  body.page-home .hero-copy {
    padding: 36px 32px;
  }

  .home-feature-card img {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  :root {
    --content-width: min(100vw - 24px, 100vw);
  }

  body::before {
    opacity: 0.52;
  }

  body::after {
    opacity: 0.62;
  }

  .page-aura {
    filter: blur(18px);
    opacity: 0.34;
  }

  .page-gridline {
    opacity: 0.1;
    background-size: 156px 156px;
  }

  .page-shell {
    padding-top: 10px;
    padding-bottom: calc(42px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    flex-direction: column;
    align-items: start;
    gap: 10px;
    margin-bottom: 26px;
    padding: 12px 12px 10px;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(96, 92, 128, 0.12);
  }

  .brand {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy--home strong {
    font-size: 0.84rem;
    letter-spacing: 0.03em;
  }

  .brand-copy span {
    font-size: 0.78rem;
  }

  .topbar-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 4px;
    font-size: 0.88rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 241, 255, 0.84), rgba(240, 247, 255, 0.82));
  }

  body.page-home .topbar {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 249, 0.84) 42%, rgba(241, 245, 249, 0.84) 74%, rgba(250, 243, 233, 0.86));
    box-shadow: 0 10px 26px rgba(76, 72, 98, 0.08);
  }

  body.page-home .topbar-nav {
    border-color: rgba(125, 119, 157, 0.1);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  }

  body.page-home .lang-toggle {
    border-color: rgba(125, 119, 157, 0.16);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 6px 14px rgba(88, 84, 114, 0.08);
  }

  .lang-toggle {
    align-self: flex-end;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar-nav a {
    flex: 0 0 auto;
    min-width: 104px;
    text-align: center;
    padding: 10px 16px;
    scroll-snap-align: start;
    font-weight: 600;
  }

  .hero-copy,
  .hero-collage,
  .portal-body,
  .manual-panel,
  .leader-card,
  .footnote-panel,
  .detail-body {
    padding: 24px;
  }

  .hero h1,
  .portal-section h2,
  .leaders-section h2,
  .archive-head .archive-title {
    max-width: none;
  }

  .hero {
    gap: 18px;
    margin-bottom: 40px;
  }

  body.page-home .hero {
    margin-bottom: 34px;
  }

  .hero-copy::before {
    inset: 16px;
  }

  body.page-home .hero-copy {
    padding: 28px 24px 24px;
  }

  body.page-home .hero h1 {
    max-width: 8ch;
    font-size: clamp(2.1rem, 6.9vw, 3.4rem);
  }

  body.page-home .hero-text {
    max-width: 34ch;
  }

  .hero-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .hero-ledger-item {
    padding: 14px 16px;
  }

  .hero-ledger-item strong {
    font-size: 1.32rem;
  }

  .method-strip {
    margin-top: 24px;
    padding: 15px 16px;
  }

  .hero-signature {
    margin-top: 24px;
    padding-top: 18px;
  }

  .stat-card--wide {
    grid-column: 1 / -1;
  }

  .event-grid {
    --timeline-rail-width: 78px;
    gap: 20px;
  }

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

  .event-card {
    gap: 14px;
  }

  .timeline-rail {
    padding-top: 20px;
    gap: 9px;
  }

  .timeline-stamp {
    min-width: 62px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 1rem;
  }

  .timeline-shell {
    grid-template-columns: 1fr;
  }

  .card-cover {
    min-height: 236px;
  }

  .hero-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }

  .home-feature-links {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .home-feature-card img {
    min-height: 360px;
  }

  .home-feature-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  body.page-home .home-feature-copy {
    top: 20px;
    bottom: auto;
  }

  .home-feature-copy strong {
    max-width: 16ch;
    font-size: clamp(1.8rem, 5.8vw, 2.5rem);
  }

  .home-feature-copy p {
    max-width: 32ch;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .collage-card-main,
  .collage-note {
    grid-column: 1 / -1;
  }

  .collage-card-main {
    grid-row: auto;
    min-height: 260px;
  }

  .collage-card-side {
    min-height: 180px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portal-grid {
    gap: 18px;
  }

  .spotlight-band {
    gap: 14px;
    margin-bottom: 38px;
  }

  .manual-preview img {
    min-height: 300px;
  }

  .manual-panel {
    gap: 20px;
  }

  .manual-actions,
  .manual-meta,
  .portal-meta,
  .tag-row {
    gap: 8px;
  }

  .manual-preview-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 6px;
  }

  .spotlight-card {
    min-height: 0;
    padding: 22px 22px 20px;
  }

  .leaders-visual-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .page-feature-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .hero-action {
    width: 100%;
    justify-content: space-between;
    padding-inline: 16px;
  }

  .gallery-grid > :first-child {
    grid-column: auto;
  }

  .footnote-panel {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: absolute;
    inset: auto 0 0;
    width: 100vw;
    max-height: 100dvh;
    margin: 0;
    border-radius: 28px 28px 0 0;
  }

  .detail-panel::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 3;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(112, 103, 141, 0.28);
    transform: translateX(-50%);
  }

  .detail-hero,
  .detail-hero img,
  .detail-hero .generated-cover {
    min-height: 230px;
  }

  .detail-hero-badge strong {
    font-size: 1.68rem;
  }

  .detail-close {
    top: 14px;
    right: 12px;
    min-height: 42px;
    padding: 0 13px;
  }

  .detail-tags {
    gap: 8px;
  }

  .detail-links {
    display: grid;
  }

  .activity-block-grid {
    grid-template-columns: 1fr;
  }

  .activity-block {
    padding: 18px;
    border-radius: 20px;
    gap: 10px;
  }

  .detail-links a {
    width: 100%;
    justify-content: space-between;
  }

  .filter-chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    padding: 10px 15px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .filter-hint {
    display: block;
  }

  .card-body {
    gap: 12px;
    padding: 20px;
  }

  .card-topline {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .card-frames {
    width: auto;
  }

  .archive-actions {
    width: 100%;
    gap: 10px;
    padding: 12px 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 241, 255, 0.62));
    box-shadow: 0 16px 32px rgba(96, 92, 128, 0.08);
  }

  .detail-panel {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
  }

  .detail-backdrop {
    backdrop-filter: blur(8px);
  }

  .detail-body {
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  }

  body.page-leaders .hero-copy {
    padding: 28px 24px 24px;
  }

  body.page-leaders .hero-title--leaders {
    font-size: clamp(2.2rem, 8vw, 3.45rem);
    line-height: 1.12;
  }

  body.page-leaders .hero-title--leaders span + span {
    margin-top: 4px;
  }

  body.page-leaders .page-feature-copy p {
    max-width: 32ch;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 108px;
  }

  #archive,
  #leaders,
  #method,
  #handbook {
    scroll-margin-top: 108px;
  }

  .hero-copy,
  .hero-collage,
  .portal-body,
  .manual-panel,
  .leader-card,
  .footnote-panel,
  .detail-body {
    padding: 20px;
  }

  .hero-copy::before {
    inset: 12px;
  }

  body.page-home .hero-copy {
    padding: 22px 20px 20px;
  }

  body.page-home .hero h1 {
    max-width: 8ch;
    font-size: clamp(1.82rem, 8.4vw, 2.55rem);
    line-height: 1.12;
  }

  body.page-home .home-hero-meta {
    gap: 0;
    margin-bottom: 20px;
    padding: 12px 0;
  }

  body.page-home .home-hero-meta span {
    min-height: 0;
    padding: 0 12px 0 0;
    font-size: 0.72rem;
  }

  body.page-home .home-hero-meta span + span {
    margin-left: 12px;
  }

  body.page-home .home-hero-meta span + span::before {
    left: -12px;
  }

  .topbar-nav {
    width: calc(100% + 4px);
    margin-inline: -2px;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .topbar-nav a {
    min-width: 98px;
    padding: 10px 14px;
  }

  .hero-ledger,
  .hero-stats,
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .archive-intro,
  .portal-intro,
  .leaders-intro,
  .manual-intro {
    font-size: 0.97rem;
    line-height: 1.78;
  }

  .hero-ledger-item strong {
    font-size: 1.26rem;
  }

  .method-strip {
    gap: 8px;
    padding: 14px 14px 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .method-strip::-webkit-scrollbar {
    display: none;
  }

  .method-strip strong {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero-signature strong {
    font-size: 1.46rem;
  }

  .portal-body {
    gap: 11px;
  }

  .portal-body .portal-title {
    font-size: 1.4rem;
  }

  .home-feature-links {
    display: none;
  }

  .home-feature-card img {
    min-height: 320px;
  }

  .home-feature-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 8px;
  }

  body.page-home .home-feature-copy {
    top: 18px;
    bottom: auto;
  }

  .home-feature-copy strong {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .manual-panel {
    gap: 18px;
    padding: 18px;
  }

  .manual-preview {
    min-height: 280px;
  }

  .manual-preview-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .manual-preview-copy strong {
    font-size: 1.42rem;
  }

  .spotlight-card {
    gap: 8px;
    padding: 20px 20px 18px;
    border-radius: 24px;
  }

  .event-grid {
    --timeline-rail-width: 58px;
    gap: 14px;
  }

  .timeline-stamp {
    min-width: 54px;
    min-height: 33px;
    padding: 0 9px;
    font-size: 0.9rem;
  }

  .card-cover {
    min-height: 205px;
  }

  .card-body {
    gap: 11px;
    padding: 17px;
  }

  .card-meta-pills {
    gap: 6px;
  }

  .card-badge,
  .card-chapter,
  .tag {
    font-size: 0.75rem;
  }

  .card-scene {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .card-excerpt {
    line-height: 1.72;
  }

  .card-location {
    font-size: 0.82rem;
  }

  .leader-card {
    gap: 14px;
  }

  .leader-photo img {
    min-height: 214px;
  }

  .leader-meta {
    gap: 0;
  }

  .leader-meta div {
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(157, 147, 194, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
  }

  .leader-meta div:last-child {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(157, 147, 194, 0.1);
  }

  .leader-quote {
    padding: 12px 14px 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.72;
  }

  .detail-info {
    gap: 10px;
    margin-top: 20px;
  }

  .detail-body {
    padding: 18px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .detail-section-head {
    flex-direction: column;
    align-items: start;
    gap: 6px;
    margin-bottom: 12px;
  }

  .detail-links a {
    min-height: 46px;
  }

  .gallery-item figcaption,
  .generated-plate .plate-caption {
    padding: 14px 14px 16px;
    font-size: 0.88rem;
  }

  body.page-leaders .hero-title--leaders {
    font-size: clamp(2.05rem, 10.2vw, 3.05rem);
  }

  body.page-leaders .hero-ledger-item strong {
    font-size: 1.14rem;
  }

  body.page-leaders .page-feature-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 112px;
  }

  body::before {
    background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    opacity: 0.44;
  }

  body::after,
  .page-aura,
  .page-gridline {
    display: none;
  }

  #archive,
  #leaders,
  #method,
  #handbook {
    scroll-margin-top: 112px;
  }

  .brand-copy span {
    display: none;
  }

  .hero-copy,
  .hero-collage,
  .portal-body,
  .manual-panel,
  .leader-card,
  .footnote-panel,
  .detail-body {
    padding: 16px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 22px;
    padding: 10px;
    border-radius: 22px;
    backdrop-filter: blur(8px);
  }

  .topbar-nav {
    width: 100%;
    margin-inline: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px;
    gap: 6px;
    overflow: visible;
  }

  body.page-home .topbar {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 249, 0.84) 42%, rgba(241, 245, 249, 0.84) 74%, rgba(250, 243, 233, 0.86));
  }

  body.page-home .topbar-nav {
    border-color: rgba(125, 119, 157, 0.1);
    background: rgba(255, 255, 255, 0.72);
  }

  .lang-toggle {
    min-height: 40px;
    padding: 0 11px;
  }

  .topbar-nav a {
    min-width: 0;
    padding: 9px 13px;
    font-size: 0.86rem;
  }

  body.page-home .hero-ledger,
  body.page-home .hero-stats,
  body.page-home .method-strip,
  body.page-home .hero-signature,
  body.page-home .hero-collage,
  body.page-activities .hero-ledger,
  body.page-activities .hero-actions,
  body.page-activities .hero-stats,
  body.page-activities .method-strip,
  body.page-activities .hero-signature,
  body.page-leaders .hero-ledger,
  body.page-leaders .hero-actions,
  body.page-leaders .method-strip,
  body.page-leaders .hero-signature,
  body.page-leaders .page-feature-card,
  body.page-handbook .hero-ledger,
  body.page-handbook .page-feature-card {
    display: none;
  }

  .hero-stats,
  .hero-collage {
    grid-template-columns: 1fr;
  }

  .hero-ledger,
  .spotlight-band {
    grid-template-columns: 1fr;
  }

  .collage-card-main,
  .collage-note {
    grid-column: auto;
  }

  .hero h1 {
    font-size: clamp(1.52rem, 7.6vw, 1.98rem);
    line-height: 1.22;
  }

  body.page-home .hero h1 {
    font-size: clamp(1.84rem, 9.4vw, 2.3rem);
    line-height: 1.16;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.72;
  }

  body.page-home .hero-text {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .portal-section h2,
  .leaders-section h2,
  .archive-head .archive-title,
  .detail-meta h2 {
    font-size: clamp(1.38rem, 6.8vw, 1.78rem);
  }

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

  .home-feature-links {
    display: none;
  }

  .home-feature-card img {
    min-height: 244px;
  }

  .home-feature-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  body.page-home .home-feature-copy {
    top: 16px;
    bottom: auto;
  }

  .home-feature-copy strong {
    font-size: 1.46rem;
  }

  .home-feature-copy p {
    max-width: 24ch;
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .manual-actions {
    display: grid;
  }

  .manual-actions .hero-action {
    width: 100%;
  }

  .manual-panel {
    gap: 16px;
    margin-bottom: 32px;
  }

  .manual-meta {
    gap: 8px;
  }

  .manual-meta span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .manual-preview img {
    min-height: 250px;
  }

  .manual-preview-copy strong {
    font-size: 1.34rem;
  }

  .manual-preview-copy p {
    line-height: 1.62;
  }

  .portal-media {
    min-height: 184px;
  }

  .leaders-layout {
    gap: 18px;
  }

  .leaders-visual img {
    min-height: 320px;
  }

  .page-feature-card img {
    min-height: 320px;
  }

  body.page-leaders .hero-copy {
    padding: 22px 18px 18px;
  }

  body.page-leaders .hero-ledger {
    margin-bottom: 18px;
  }

  body.page-leaders .hero-ledger-item {
    padding: 12px 14px;
  }

  body.page-leaders .hero-title--leaders {
    font-size: clamp(1.5rem, 7.5vw, 1.96rem);
    line-height: 1.22;
  }

  body.page-leaders .page-feature-card img {
    min-height: 300px;
    object-position: 50% 20%;
  }

  .leader-head h3 {
    font-size: 1.48rem;
  }

  .leader-photo img {
    min-height: 196px;
  }

  .hero {
    gap: 16px;
    margin-bottom: 36px;
  }

  .spotlight-band {
    gap: 12px;
    margin-top: -8px;
    margin-bottom: 28px;
  }

  .spotlight-card {
    padding: 18px 18px 16px;
  }

  .collage-card-main {
    min-height: 228px;
  }

  .collage-card-side {
    min-height: 158px;
  }

  .collage-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .stat-card,
  .info-card {
    padding: 16px;
  }

  .stat-card {
    backdrop-filter: none;
  }

  .event-grid {
    --timeline-rail-width: 54px;
    gap: 14px;
  }

  .event-card {
    gap: 10px;
  }

  .timeline-rail {
    padding-top: 14px;
    gap: 8px;
  }

  .timeline-stamp {
    min-width: 46px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .timeline-node {
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .timeline-shell {
    border-radius: 22px;
  }

  .card-cover {
    min-height: 188px;
  }

  .card-body {
    gap: 9px;
    padding: 15px;
  }

  .card-body .card-title {
    font-size: 1.18rem;
    line-height: 1.3;
  }

  .card-bottom {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .tag {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .detail-panel {
    height: min(100dvh, 920px);
  }

  .detail-panel::after {
    top: 8px;
    width: 40px;
  }

  .detail-close {
    top: 14px;
    right: 12px;
    min-height: 40px;
    padding: 0 12px;
    backdrop-filter: none;
  }

  .detail-hero,
  .detail-hero img,
  .detail-hero .generated-cover {
    min-height: 220px;
  }

  .detail-hero-badge {
    left: 16px;
    bottom: 16px;
    gap: 4px;
  }

  .detail-hero-badge span {
    font-size: 0.74rem;
  }

  .detail-hero-badge strong {
    font-size: 1.52rem;
  }

  .detail-kicker {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }

  .detail-info {
    gap: 8px;
  }

  .activity-block {
    padding: 15px;
    border-radius: 18px;
  }

  .activity-block-visual {
    border-radius: 16px;
  }

  .activity-block-visual figcaption {
    padding: 10px 12px 12px;
    font-size: 0.78rem;
  }

  .detail-summary,
  .footnote-panel p,
  .archive-intro,
  .activity-block p,
  .card-excerpt,
  .gallery-item figcaption,
  .generated-plate .plate-caption {
    line-height: 1.7;
  }
}

@media (max-width: 430px) {
  html {
    scroll-padding-top: 96px;
  }

  #archive,
  #leaders,
  #method,
  #handbook {
    scroll-margin-top: 96px;
  }

  .topbar {
    padding: 9px;
    border-radius: 20px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 1.14rem;
  }

  .hero-copy,
  .hero-collage,
  .portal-body,
  .manual-panel,
  .leader-card,
  .footnote-panel,
  .detail-body {
    padding: 16px;
  }

  .hero-ledger-item,
  .stat-card,
  .info-card,
  .activity-block {
    padding: 12px;
  }

  .hero-action,
  .filter-chip,
  .detail-links a,
  .detail-close,
  .topbar-nav a,
  .lang-toggle {
    min-height: 42px;
  }

  .topbar-nav {
    width: 100%;
    margin-inline: 0;
    padding: 2px;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .topbar-nav a {
    min-width: 0;
  }

  .method-strip {
    margin-inline: -2px;
    padding-inline: 14px;
  }

  .manual-preview img {
    min-height: 224px;
  }

  .manual-preview-copy {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .manual-preview-copy strong {
    font-size: 1.22rem;
  }

  .manual-meta span,
  .portal-meta span,
  .tag {
    font-size: 0.72rem;
  }

  .event-grid {
    --timeline-rail-width: 48px;
    gap: 12px;
    contain-intrinsic-size: 1px 960px;
  }

  .timeline-stamp {
    min-width: 40px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 0.8rem;
  }

  .card-body {
    padding: 14px;
  }

  .card-cover {
    min-height: 172px;
  }

  .detail-panel {
    border-radius: 22px 22px 0 0;
    box-shadow: 0 22px 56px rgba(96, 92, 128, 0.2);
  }

  .detail-panel::after {
    top: 7px;
    width: 36px;
    height: 4px;
  }

  .detail-hero,
  .detail-hero img,
  .detail-hero .generated-cover {
    min-height: 200px;
  }

  .detail-hero-badge strong {
    font-size: 1.42rem;
  }

  .leader-photo img {
    min-height: 182px;
  }

  .leader-photo figcaption {
    left: 10px;
    bottom: 10px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
  }
}

@media (max-width: 920px) {
  body.page-activities .hero {
    width: var(--content-width);
    margin-bottom: 34px;
  }

  body.page-activities .hero-copy {
    padding: 24px;
  }

  body.page-activities .hero h1 {
    font-size: clamp(1.82rem, 5.2vw, 2.56rem);
  }

  body.page-activities .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-activities .hero-signature {
    display: grid;
    gap: 6px;
  }

  body.page-activities .hero-signature p {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  body.page-activities .hero-copy {
    padding: 20px 18px 18px;
  }

  body.page-activities .hero h1 {
    max-width: none;
    font-size: clamp(1.34rem, 6.4vw, 1.72rem);
  }

  body.page-activities .hero-ledger,
  body.page-activities .hero-stats,
  body.page-activities .hero-actions {
    grid-template-columns: 1fr;
  }

  body.page-activities .method-strip {
    padding: 12px 14px;
  }

  body.page-activities .hero-signature strong {
    font-size: 1.04rem;
  }

  body.page-activities .hero-signature p {
    font-size: 0.88rem;
  }
}

@media (max-width: 820px) {
  /* Keep the shared header compact without reducing its tap targets. */
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 18px;
    padding: 8px 9px 9px;
    backdrop-filter: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .topbar-actions {
    display: contents;
  }

  .topbar-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-inline: 0;
  }

  .lang-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    min-height: 42px;
    padding: 0 10px;
  }
}

@media (max-width: 560px) {

  body.page-activities .archive-head {
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 24px;
  }

  body.page-activities .archive-copy {
    gap: 8px;
  }

  body.page-activities .archive-head .archive-title {
    max-width: 14ch;
    font-size: clamp(1.55rem, 7.2vw, 1.92rem);
    line-height: 1.22;
  }

  body.page-activities .archive-intro {
    max-width: 36ch;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  body.page-activities .archive-actions {
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-activities .filter-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-activities .filter-chip {
    justify-content: center;
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  body.page-activities .filter-hint {
    display: none;
  }

  body.page-activities .archive-note {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* On a phone, use a full-width editorial card instead of spending space on a side rail. */
  body.page-activities .event-grid {
    --timeline-rail-width: 0px;
    gap: 16px;
    padding-top: 0;
  }

  body.page-activities .event-grid::before,
  body.page-activities .timeline-node {
    display: none;
  }

  body.page-activities .event-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    animation: none;
  }

  body.page-activities .event-card:focus-visible {
    transform: none;
  }

  body.page-activities .timeline-rail {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: block;
    padding: 0;
  }

  body.page-activities .timeline-stamp {
    min-width: 0;
    min-height: 28px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    box-shadow: 0 6px 16px rgba(71, 68, 87, 0.1);
  }

  body.page-activities .timeline-shell {
    content-visibility: visible;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(96, 92, 128, 0.1);
  }

  body.page-activities .card-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.page-activities .card-cover > img,
  body.page-activities .card-cover > .generated-cover {
    height: 100%;
  }

  body.page-activities .card-topline {
    display: none;
  }

  body.page-activities .card-body {
    gap: 10px;
    padding: 18px;
  }

  body.page-activities .card-scene {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }

  body.page-activities .card-body .card-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  body.page-activities .card-excerpt {
    font-size: 0.9rem;
    line-height: 1.68;
  }

  body.page-activities .card-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 2px;
    padding-top: 12px;
  }

  body.page-activities .card-location {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  body.page-activities .card-cta {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.86rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Activity details prioritise the narrative, with practical information nearby. */
body.page-activities .detail-panel {
  width: min(1180px, calc(100vw - 48px));
  max-height: min(94dvh, 980px);
  border-radius: 30px;
}

body.page-activities .detail-hero {
  min-height: 320px;
  max-height: 360px;
  aspect-ratio: 2.85 / 1;
}

body.page-activities .detail-hero img,
body.page-activities .detail-hero .generated-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.page-activities .detail-body {
  padding: 40px 46px 52px;
}

.detail-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

body.page-activities .detail-meta h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  line-height: 1.18;
}

body.page-activities .detail-summary {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.86;
}

.detail-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(157, 147, 194, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(245, 242, 255, 0.88)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 34px rgba(92, 84, 124, 0.08);
}

.detail-aside .detail-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-aside .info-card {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.detail-aside .info-card:last-child {
  grid-column: 1 / -1;
}

.detail-aside .info-card span {
  margin-bottom: 5px;
  font-size: 0.7rem;
}

.detail-aside .info-card p {
  font-size: 0.9rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.detail-aside .detail-tags,
.detail-aside .detail-links {
  margin-top: 0;
}

.detail-aside .detail-tags {
  gap: 7px;
}

.detail-aside .detail-links {
  display: grid;
  gap: 8px;
}

.detail-aside .detail-links a {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  padding-inline: 14px;
  font-size: 0.9rem;
}

body.page-activities .detail-activities,
body.page-activities .detail-gallery {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid rgba(157, 147, 194, 0.12);
}

.detail-section-head {
  align-items: baseline;
  margin-bottom: 20px;
}

.detail-section-head .eyebrow {
  margin: 0;
}

.detail-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-site);
  font-size: clamp(1.42rem, 2vw, 1.8rem);
  line-height: 1.3;
}

body.page-activities .activity-block-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

body.page-activities .activity-block {
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
}

body.page-activities .activity-block:not(.activity-block--with-visual) {
  grid-template-columns: 1fr;
}

.activity-block-content {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
}

body.page-activities .activity-block-visual {
  display: grid;
  align-self: start;
  place-items: center;
  border: 1px solid rgba(157, 147, 194, 0.08);
}

body.page-activities .activity-block-visual img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 420px;
  aspect-ratio: auto;
  object-fit: contain;
}

body.page-activities .activity-block-visual figcaption {
  width: 100%;
}

body.page-activities .activity-block h3 {
  font-size: 1.34rem;
  line-height: 1.32;
}

body.page-activities .activity-block-content > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

body.page-activities .activity-block-date {
  color: var(--detail-accent);
}

body.page-activities .activity-block-list {
  gap: 7px;
  margin-top: 2px;
  padding-left: 1.2rem;
}

body.page-activities .activity-block-list li {
  line-height: 1.68;
}

body.page-activities .detail-gallery {
  margin-top: 48px;
}

body.page-activities .gallery-grid {
  gap: 16px;
}

body.page-activities .gallery-item,
body.page-activities .generated-plate {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 14px 26px rgba(96, 92, 128, 0.06);
}

@media (max-width: 820px) {
  body.page-activities .detail-panel {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 26px 26px 0 0;
  }

  body.page-activities .detail-hero {
    min-height: 220px;
    max-height: 250px;
    aspect-ratio: auto;
  }

  body.page-activities .detail-body {
    padding: 26px 22px calc(34px + env(safe-area-inset-bottom, 0px));
  }

  .detail-reading-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-aside {
    position: static;
    padding: 16px;
    border-radius: 20px;
  }

  body.page-activities .detail-activities,
  body.page-activities .detail-gallery {
    margin-top: 34px;
    padding-top: 28px;
  }

  body.page-activities .activity-block {
    grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
    border-radius: 20px;
  }

  body.page-activities .activity-block-visual img {
    max-height: 300px;
  }
}

@media (max-width: 560px) {
  body.page-activities .detail-hero {
    min-height: 198px;
    max-height: 218px;
  }

  body.page-activities .detail-body {
    padding: 22px 16px calc(30px + env(safe-area-inset-bottom, 0px));
  }

  body.page-activities .detail-meta h2 {
    max-width: 14ch;
    font-size: clamp(1.74rem, 8.2vw, 2.12rem);
  }

  body.page-activities .detail-summary {
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.74;
  }

  .detail-aside {
    gap: 12px;
    padding: 14px;
  }

  .detail-aside .detail-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-aside .info-card:last-child {
    grid-column: auto;
  }

  body.page-activities .activity-block {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  body.page-activities .activity-block-visual {
    padding: 7px;
    border-radius: 14px;
  }

  body.page-activities .activity-block-visual img {
    max-height: 270px;
  }

  body.page-activities .activity-block h3 {
    font-size: 1.2rem;
  }

  body.page-activities .activity-block-content > p,
  body.page-activities .activity-block-list li {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .detail-section-head {
    gap: 4px;
    margin-bottom: 14px;
  }

  .detail-section-head h3 {
    font-size: 1.34rem;
  }

  body.page-activities .gallery-grid {
    gap: 12px;
  }
}

/*
 * Mobile redesign
 *
 * The desktop composition intentionally has more room for imagery and long-form
 * content. On smaller screens, this late layer turns each page into a compact
 * editorial flow: a stable header, a short page introduction, and clear,
 * thumb-friendly reading blocks.
 */
@media (max-width: 820px) {
  :root {
    --content-width: min(100vw - 28px, 720px);
    --touch-target: 46px;
  }

  html {
    scroll-padding-top: 124px;
  }

  .page-shell {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }

  /* Keep the brand and language picker visible, then let page tabs scroll naturally. */
  .topbar {
    top: max(8px, env(safe-area-inset-top, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    margin-bottom: 20px;
    padding: 9px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(76, 72, 98, 0.1);
  }

  .brand {
    width: auto;
    min-width: 0;
    min-height: 46px;
    gap: 10px;
    overflow: hidden;
  }

  .brand-mark {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 0.76rem;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong,
  .brand-copy--home strong {
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy span {
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-toggle {
    min-width: 66px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .lang-toggle-option {
    min-height: 28px;
  }

  .topbar-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px;
    border-radius: 16px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .topbar-nav a::after {
    display: none;
  }

  .topbar-nav a[aria-current="page"] {
    box-shadow: 0 4px 12px rgba(76, 72, 98, 0.08);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 30px;
  }

  body.page-home .hero--home {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.page-home .home-feature {
    min-height: 0;
  }

  .hero-copy {
    padding: 26px 22px 22px;
    border-radius: 24px;
  }

  .hero-copy::before {
    inset: 12px;
    border-radius: 17px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }

  .hero h1,
  body.page-home .hero h1 {
    max-width: 13ch;
    font-size: clamp(1.9rem, 6.6vw, 2.7rem);
    line-height: 1.18;
  }

  .hero-text,
  body.page-home .hero-text {
    max-width: 37ch;
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.76;
  }

  .hero-actions,
  body.page-home .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
  }

  .hero-action,
  body.page-home .hero-action {
    min-width: 0;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 14px;
    font-size: 0.88rem;
  }

  body.page-home .hero-actions .hero-action:first-child {
    grid-column: 1 / -1;
  }

  .home-hero-meta,
  body.page-home .home-hero-meta {
    gap: 6px;
    margin-bottom: 16px;
  }

  .home-hero-meta span,
  body.page-home .home-hero-meta span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .home-feature-card,
  .page-feature-card {
    border-radius: 22px;
  }

  .home-feature-card img,
  .page-feature-card img {
    min-height: 270px;
  }

  .home-feature-copy,
  .page-feature-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .home-feature-copy {
    top: auto;
    padding: 14px;
    border-radius: 14px;
  }

  .home-feature-copy strong,
  .page-feature-copy strong {
    font-size: 1.36rem;
  }

  .home-feature-copy p,
  .page-feature-copy p {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .portal-section,
  .leaders-section {
    gap: 16px;
    margin-bottom: 34px;
  }

  .portal-grid,
  body.page-home .portal-grid,
  .leader-grid--two {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.page-home .portal-card--home-minimal {
    border-radius: 18px;
  }

  body.page-home .portal-card--home-minimal .portal-body,
  .portal-body {
    gap: 9px;
    padding: 18px;
  }

  .portal-card::before,
  body.page-home .portal-card::before {
    inset: 11px;
    border-radius: 12px;
  }

  .portal-index,
  body.page-home .portal-index {
    font-size: 1.35rem;
  }

  .portal-kicker,
  body.page-home .portal-kicker {
    font-size: 0.66rem;
  }

  .portal-body .portal-title,
  body.page-home .portal-body .portal-title {
    font-size: 1.2rem;
  }

  .portal-body p,
  body.page-home .portal-body p {
    font-size: 0.88rem;
    line-height: 1.68;
  }

  .portal-meta {
    gap: 8px 11px;
    padding-top: 10px;
  }

  .portal-cta {
    min-height: 38px;
    margin-top: 0;
    font-size: 0.86rem;
  }

  /* Activities: keep a compact timeline while preserving room for the cards. */
  body.page-activities .archive-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 18px;
    padding: 22px 20px 18px;
    border-radius: 24px;
  }

  body.page-activities .archive-copy {
    gap: 8px;
  }

  body.page-activities .archive-head .archive-title {
    max-width: 17ch;
    font-size: clamp(1.55rem, 6.5vw, 2.06rem);
    line-height: 1.25;
  }

  body.page-activities .archive-intro {
    font-size: 0.9rem;
    line-height: 1.68;
  }

  body.page-activities .archive-actions {
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-activities .filter-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin-inline: -4px;
    padding: 2px 4px 6px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  body.page-activities .filter-chips::-webkit-scrollbar {
    display: none;
  }

  body.page-activities .filter-chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  body.page-activities .filter-hint {
    display: block;
    margin: -2px 0 0;
    font-size: 0.76rem;
  }

  body.page-activities .archive-note {
    font-size: 0.8rem;
    line-height: 1.58;
  }

  body.page-activities .event-grid {
    --timeline-rail-width: 24px;
    gap: 18px;
    padding-top: 8px;
  }

  body.page-activities .event-grid::before {
    display: block;
    top: 8px;
    bottom: 8px;
    left: calc((var(--timeline-rail-width) / 2) - 1px);
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(202, 174, 122, 0.72),
      rgba(169, 156, 211, 0.5) 52%,
      rgba(151, 188, 225, 0.44)
    );
  }

  body.page-activities .event-card {
    grid-template-columns: var(--timeline-rail-width) minmax(0, 1fr);
    gap: 10px;
    animation: none;
  }

  body.page-activities .timeline-rail {
    position: relative;
    z-index: 3;
    top: auto;
    left: auto;
    display: grid;
    justify-items: center;
    align-content: start;
    padding-top: 22px;
  }

  body.page-activities .timeline-node {
    display: block;
    width: 14px;
    height: 14px;
    border-width: 3px;
    box-shadow:
      0 0 0 1px rgba(202, 174, 122, 0.28),
      0 7px 16px rgba(96, 92, 128, 0.16);
  }

  body.page-activities .timeline-stamp {
    position: absolute;
    z-index: 4;
    top: 10px;
    left: calc(100% + 12px);
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  body.page-activities .timeline-shell {
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(96, 92, 128, 0.09);
  }

  body.page-activities .card-cover {
    aspect-ratio: 16 / 9;
  }

  body.page-activities .card-body {
    gap: 9px;
    padding: 17px 18px 18px;
  }

  body.page-activities .card-scene {
    font-size: 0.7rem;
  }

  body.page-activities .card-body .card-title {
    font-size: 1.22rem;
    line-height: 1.32;
  }

  body.page-activities .card-excerpt {
    font-size: 1rem;
    line-height: 1.65;
  }

  body.page-activities .card-bottom {
    align-items: center;
    gap: 10px;
    padding-top: 12px;
  }

  body.page-activities .card-location {
    font-size: 0.75rem;
    line-height: 1.52;
  }

  body.page-activities .card-cta {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  /* Detail sheets keep the reading order clear: identity, essentials, then content. */
  body.page-activities .detail-panel {
    width: 100vw;
    max-height: min(94dvh, 940px);
    margin: 6dvh 0 0;
    border-radius: 26px 26px 0 0;
  }

  body.page-activities .detail-scroll {
    scrollbar-gutter: auto;
  }

  body.page-activities .detail-hero {
    min-height: 214px;
    max-height: 238px;
  }

  body.page-activities .detail-hero-badge {
    left: 18px;
    bottom: 16px;
  }

  body.page-activities .detail-hero-badge strong {
    font-size: 1.62rem;
  }

  body.page-activities .detail-close {
    top: 12px;
    right: 12px;
    min-height: 44px;
    padding: 0 14px;
  }

  body.page-activities .detail-body {
    padding: 24px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  }

  body.page-activities .detail-reading-layout {
    gap: 18px;
  }

  body.page-activities .detail-meta h2 {
    max-width: 16ch;
    font-size: clamp(1.76rem, 7.1vw, 2.25rem);
    line-height: 1.2;
  }

  body.page-activities .detail-summary {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.76;
  }

  body.page-activities .detail-aside {
    gap: 11px;
    padding: 13px;
    border-radius: 18px;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-activities .detail-aside .info-card {
    padding: 11px;
    border-radius: 13px;
  }

  body.page-activities .detail-aside .info-card:last-child {
    grid-column: 1 / -1;
  }

  body.page-activities .detail-aside .info-card span {
    font-size: 0.65rem;
  }

  body.page-activities .detail-aside .info-card p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  body.page-activities .detail-aside .detail-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-activities .detail-aside .detail-links a {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 0.8rem;
  }

  body.page-activities .detail-activities,
  body.page-activities .detail-gallery {
    margin-top: 30px;
    padding-top: 24px;
  }

  body.page-activities .detail-section-head {
    margin-bottom: 13px;
  }

  body.page-activities .detail-section-head h3 {
    font-size: 1.28rem;
  }

  body.page-activities .activity-block-grid {
    gap: 12px;
  }

  body.page-activities .activity-block {
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
    border-radius: 18px;
  }

  body.page-activities .activity-block-visual {
    border-radius: 13px;
  }

  body.page-activities .activity-block h3 {
    font-size: 1.1rem;
  }

  body.page-activities .activity-block-content {
    gap: 8px;
  }

  body.page-activities .activity-block-content > p,
  body.page-activities .activity-block-list li {
    font-size: 0.87rem;
    line-height: 1.65;
  }

  body.page-activities .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.page-activities .gallery-grid > :first-child {
    grid-column: 1 / -1;
  }

  body.page-activities .gallery-item,
  body.page-activities .generated-plate {
    border-radius: 14px;
  }

  /* Profiles and handbook stay content-first, with compact cards and full-width actions. */
  body.page-leaders .hero-copy,
  body.page-handbook .hero-copy {
    padding: 24px 20px 20px;
  }

  body.page-leaders .hero-title--leaders,
  body.page-handbook .hero h1 {
    max-width: 14ch;
    font-size: clamp(1.82rem, 6.8vw, 2.42rem);
  }

  body.page-leaders .page-feature-card img,
  body.page-handbook .page-feature-card img {
    min-height: 258px;
  }

  .leader-card {
    gap: 14px;
    padding: 20px;
    border-radius: 21px;
  }

  .leader-card::before {
    inset: 11px;
    border-radius: 14px;
  }

  .leader-number {
    font-size: 1.4rem;
  }

  .leader-head h3 {
    font-size: 1.34rem;
  }

  .leader-photo {
    border-radius: 17px;
  }

  .leader-photo img {
    min-height: 0;
    aspect-ratio: 1.28 / 1;
  }

  .leader-meta {
    gap: 9px;
  }

  .leader-meta div {
    padding-bottom: 9px;
  }

  .leader-meta dd,
  .leader-summary,
  .leader-quote {
    font-size: 1rem;
    line-height: 1.66;
  }

  .manual-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .manual-panel h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .manual-intro {
    font-size: 1rem;
    line-height: 1.7;
  }

  .manual-meta {
    gap: 7px;
  }

  .manual-meta span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .manual-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .manual-actions .hero-action {
    width: 100%;
  }

  .manual-preview {
    border-radius: 18px;
  }

  .manual-preview img {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  :root {
    --content-width: calc(100vw - 24px);
    --touch-target: 44px;
  }

  html {
    scroll-padding-top: 116px;
  }

  .page-shell {
    padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    top: max(5px, env(safe-area-inset-top, 0px));
    gap: 7px 8px;
    margin-bottom: 16px;
    padding: 7px;
    border-radius: 19px;
  }

  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.7rem;
  }

  .brand-copy strong,
  .brand-copy--home strong {
    font-size: 0.78rem;
  }

  .brand-copy span {
    display: none;
  }

  .lang-toggle {
    min-width: 60px;
    min-height: 44px;
    gap: 6px;
    padding: 0 7px;
    font-size: 0.72rem;
  }

  .topbar-nav {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding: 3px;
  }

  .topbar-nav a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .hero {
    gap: 13px;
    margin-bottom: 24px;
  }

  body.page-home .hero--home {
    gap: 13px;
  }

  .hero-copy,
  body.page-home .hero-copy {
    padding: 22px 18px 18px;
    border-radius: 21px;
  }

  .hero-copy::before,
  body.page-home .hero-copy::before {
    inset: 10px;
    border-radius: 14px;
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  .hero h1,
  body.page-home .hero h1 {
    max-width: 13ch;
    font-size: clamp(1.72rem, 8.5vw, 2.22rem);
  }

  .hero-text,
  body.page-home .hero-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-hero-meta,
  body.page-home .home-hero-meta {
    margin-bottom: 14px;
  }

  .home-hero-meta span,
  body.page-home .home-hero-meta span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .hero-actions,
  body.page-home .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-action,
  body.page-home .hero-action {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 0.82rem;
  }

  body.page-home .home-feature-card img {
    min-height: 214px;
  }

  .home-feature-copy {
    top: 12px;
    bottom: auto;
    left: 12px;
    right: 12px;
    gap: 6px;
    padding: 11px 12px;
  }

  .home-feature-copy strong {
    font-size: 1.1rem;
  }

  .home-feature-copy p {
    font-size: 0.76rem;
  }

  .portal-section,
  .leaders-section {
    margin-bottom: 26px;
  }

  body.page-home .portal-card--home-minimal .portal-body,
  .portal-body {
    padding: 16px;
  }

  .portal-body p,
  body.page-home .portal-body p {
    font-size: 1rem;
  }

  .portal-meta span,
  .tag {
    font-size: 0.68rem;
  }

  body.page-activities .archive-head {
    padding: 20px 18px 17px;
    border-radius: 21px;
  }

  body.page-activities .archive-head .archive-title {
    font-size: clamp(1.45rem, 7.1vw, 1.85rem);
  }

  body.page-activities .archive-intro {
    font-size: 1rem;
  }

  body.page-activities .filter-chip {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  body.page-activities .timeline-shell {
    border-radius: 18px;
  }

  body.page-activities .card-body {
    padding: 15px 16px 16px;
  }

  body.page-activities .card-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.page-activities .card-location {
    font-size: 0.72rem;
  }

  body.page-activities .card-cta {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  body.page-activities .detail-panel {
    max-height: 96dvh;
    margin-top: 4dvh;
    border-radius: 22px 22px 0 0;
  }

  body.page-activities .detail-panel::after {
    top: 8px;
  }

  body.page-activities .detail-hero {
    min-height: 184px;
    max-height: 204px;
  }

  body.page-activities .detail-hero-badge {
    left: 16px;
    bottom: 14px;
  }

  body.page-activities .detail-hero-badge span {
    font-size: 0.7rem;
  }

  body.page-activities .detail-hero-badge strong {
    font-size: 1.38rem;
  }

  body.page-activities .detail-close {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  body.page-activities .detail-body {
    padding: 20px 14px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  body.page-activities .detail-meta h2 {
    font-size: clamp(1.58rem, 8vw, 2rem);
  }

  body.page-activities .detail-summary {
    font-size: 0.9rem;
  }

  body.page-activities .detail-aside {
    padding: 11px;
    border-radius: 16px;
  }

  body.page-activities .detail-aside .detail-links {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-activities .detail-aside .detail-links a {
    min-height: 42px;
    font-size: 0.82rem;
  }

  body.page-activities .activity-block {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  body.page-activities .activity-block-visual img {
    max-height: 244px;
  }

  body.page-activities .activity-block h3 {
    font-size: 1.06rem;
  }

  body.page-activities .activity-block-content > p,
  body.page-activities .activity-block-list li {
    font-size: 0.84rem;
  }

  body.page-activities .gallery-grid {
    gap: 8px;
  }

  body.page-leaders .hero-copy,
  body.page-handbook .hero-copy,
  .manual-panel {
    padding: 20px 18px;
  }

  body.page-leaders .hero-title--leaders,
  body.page-handbook .hero h1 {
    font-size: clamp(1.62rem, 7.9vw, 2.08rem);
  }

  body.page-leaders .page-feature-card img,
  body.page-handbook .page-feature-card img {
    min-height: 220px;
  }

  .leader-card {
    padding: 17px;
  }

  .leader-photo img {
    aspect-ratio: 1.18 / 1;
  }

  .manual-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-preview img {
    min-height: 196px;
  }
}

@media (max-width: 390px) {
  :root {
    --content-width: calc(100vw - 20px);
  }

  .topbar-nav a {
    padding-inline: 10px;
  }

  .home-hero-meta,
  body.page-home .home-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-meta span,
  body.page-home .home-hero-meta span {
    justify-content: center;
    min-width: 0;
  }

  .home-hero-meta span:last-child,
  body.page-home .home-hero-meta span:last-child {
    grid-column: 1 / -1;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-activities .detail-aside .info-card:last-child {
    grid-column: auto;
  }
}

/* Mobile experience polish: one clear rhythm across every page. */
@media (max-width: 820px) {
  :root {
    --content-width: calc(100vw - 24px);
  }

  html {
    scroll-padding-top: 124px;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .page-shell {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
  }

  .topbar,
  body.page-home .topbar {
    top: max(6px, env(safe-area-inset-top, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 9px;
    margin-bottom: 20px;
    padding: 9px;
    border-radius: 18px;
  }

  .topbar-actions {
    display: contents;
  }

  .brand {
    min-width: 0;
    min-height: 44px;
    gap: 9px;
  }

  .brand-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 0.7rem;
  }

  .brand-copy strong,
  .brand-copy--home strong {
    display: block;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy span {
    display: none;
  }

  .lang-toggle {
    min-width: 66px;
    min-height: 44px;
    padding-inline: 8px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .topbar-nav,
  body.page-home .topbar-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
    overflow: visible;
    padding: 3px;
    border-radius: 14px;
  }

  .topbar-nav a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 5px;
    font-size: clamp(0.7rem, 3vw, 0.79rem);
    text-align: center;
    white-space: nowrap;
  }

  .hero,
  body.page-home .hero--home {
    gap: 14px;
    margin-bottom: 30px;
  }

  .hero-copy,
  body.page-home .hero-copy,
  body.page-leaders .hero-copy,
  body.page-handbook .hero-copy {
    padding: 25px 21px 22px;
    border-radius: 20px;
  }

  .hero-copy::before,
  body.page-home .hero-copy::before {
    inset: 10px;
    border-radius: 13px;
  }

  .hero h1,
  body.page-home .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.16;
  }

  .hero-text,
  body.page-home .hero-text {
    max-width: none;
    margin-top: 13px;
    font-size: 1rem;
    line-height: 1.72;
  }

  .home-hero-meta,
  body.page-home .home-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 14px;
  }

  .home-hero-meta span,
  body.page-home .home-hero-meta span {
    justify-content: center;
    min-width: 0;
    min-height: 29px;
    padding-inline: 5px;
    overflow: hidden;
    font-size: clamp(0.56rem, 2.4vw, 0.66rem);
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-actions,
  body.page-home .hero-actions {
    margin-top: 18px;
  }

  body.page-home .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.page-home .hero-actions .hero-action:first-child {
    grid-column: auto;
  }

  .hero-action,
  body.page-home .hero-action {
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
    font-size: clamp(0.72rem, 3vw, 0.84rem);
    white-space: nowrap;
  }

  body.page-home .home-feature-card img,
  body.page-leaders .page-feature-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  .home-feature-copy,
  body.page-leaders .page-feature-copy {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .portal-grid,
  body.page-home .portal-grid,
  .leader-grid--two {
    gap: 14px;
  }

  body.page-home .portal-card--home-minimal .portal-body,
  .portal-body {
    padding: 19px;
  }

  body.page-activities .archive-head {
    gap: 14px;
    padding: 23px 20px 19px;
    border-radius: 20px;
  }

  html[lang="zh-TW"] body.page-activities .archive-head .archive-title {
    max-width: none;
    font-size: clamp(1.38rem, 6vw, 1.82rem);
    white-space: nowrap;
  }

  body.page-activities .filter-chips {
    margin-inline: -2px;
    padding: 2px 2px 7px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
  }

  body.page-activities .filter-chip {
    scroll-snap-align: start;
  }

  body.page-activities .event-grid {
    scroll-margin-top: 132px;
  }

  body.page-activities .detail-article-header,
  body.page-activities .detail-hero,
  body.page-activities .detail-body {
    width: calc(100% - 32px);
  }

  body.page-activities .detail-article-header {
    padding-top: calc(74px + env(safe-area-inset-top, 0px));
  }

  body.page-activities .detail-hero {
    border-radius: 13px;
  }

  body.page-activities .detail-body {
    padding-top: 32px;
  }

  body.page-activities .detail-aside {
    padding: 20px;
  }

  body.page-activities .activity-block-visual img,
  body.page-activities .gallery-item img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  body.page-activities .gallery-grid {
    gap: 24px;
  }

  body.page-leaders .hero-title--leaders,
  body.page-handbook .hero h1 {
    max-width: none;
    font-size: clamp(1.82rem, 7.8vw, 2.3rem);
  }

  .leader-card {
    gap: 16px;
    padding: 20px;
  }

  .leader-photo--portrait {
    background: rgba(246, 244, 246, 0.92);
  }

  .leader-photo--portrait img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  body.page-handbook .hero-actions,
  body.page-handbook .hero > .page-feature-card,
  body.page-handbook .manual-meta {
    display: none;
  }

  body.page-handbook .manual-panel {
    gap: 18px;
    padding: 22px 20px;
  }

  body.page-handbook .manual-preview img,
  body.page-handbook .manual-reader-page img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (max-width: 430px) {
  .topbar,
  body.page-home .topbar {
    margin-bottom: 17px;
  }

  .hero-copy,
  body.page-home .hero-copy,
  body.page-leaders .hero-copy,
  body.page-handbook .hero-copy {
    padding-inline: 20px;
  }

  body.page-home .hero h1 {
    font-size: clamp(1.92rem, 9.3vw, 2.35rem);
  }

  .portal-body p,
  body.page-home .portal-body p,
  .leader-meta dd,
  .leader-quote,
  .manual-intro {
    font-size: 1rem;
  }

  body.page-activities .filter-hint {
    margin-top: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .portal-card:hover,
  .event-card:hover,
  .hero-action:hover,
  .filter-chip:hover {
    transform: none;
  }
}

/* Editorial activity reader */
body.page-activities .detail-backdrop {
  background: rgba(55, 52, 68, 0.68);
  backdrop-filter: blur(14px) saturate(0.8);
}

body.page-activities .detail-panel {
  width: min(1380px, calc(100vw - 40px));
  height: calc(100dvh - 40px);
  max-height: none;
  margin: 20px auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: #fbfaf8;
  box-shadow: 0 40px 120px rgba(38, 35, 49, 0.34);
}

body.page-activities .detail-panel::before,
body.page-activities .detail-panel::after {
  display: none;
}

body.page-activities .detail-scroll {
  height: 100%;
  max-height: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 248, 0.98) 44%, rgba(247, 246, 243, 0.98)),
    #fbfaf8;
  scrollbar-gutter: auto;
}

body.page-activities .detail-article {
  min-height: 100%;
}

body.page-activities .detail-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  min-width: 64px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(71, 68, 87, 0.14);
  background: rgba(251, 250, 248, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(60, 56, 75, 0.12);
  backdrop-filter: blur(14px);
}

body.page-activities .detail-article-header {
  width: min(820px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0 50px;
}

body.page-activities .detail-kicker {
  margin-bottom: 18px;
  color: var(--detail-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

body.page-activities .detail-meta h2 {
  max-width: 16ch;
  margin: 0;
  color: #3f3c4c;
  font-size: clamp(2.8rem, 4.8vw, 4.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body.page-activities .detail-summary {
  max-width: 66ch;
  margin-top: 24px;
  color: #656171;
  font-size: clamp(1.04rem, 0.45vw + 0.98rem, 1.18rem);
  line-height: 1.92;
}

body.page-activities .detail-hero {
  width: min(1240px, calc(100% - 64px));
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: auto;
  border-radius: 22px;
  background: #ece9e4;
  box-shadow: 0 18px 54px rgba(55, 51, 69, 0.12);
}

body.page-activities .detail-hero img,
body.page-activities .detail-hero .generated-cover {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 680px;
}

body.page-activities .detail-hero img {
  display: block;
  object-fit: contain;
}

body.page-activities .detail-hero .generated-cover {
  min-height: 440px;
}

body.page-activities .detail-hero::after {
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(35, 32, 44, 0.58));
}

body.page-activities .detail-hero-badge {
  left: 28px;
  bottom: 24px;
}

body.page-activities .detail-body {
  width: min(1140px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 104px;
}

body.page-activities .detail-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(250px, 280px);
  gap: clamp(52px, 7vw, 92px);
  align-items: start;
  justify-content: space-between;
}

body.page-activities .detail-main {
  min-width: 0;
}

body.page-activities .detail-aside {
  position: sticky;
  top: 30px;
  display: grid;
  gap: 22px;
  padding: 22px 0 0;
  border: 0;
  border-top: 2px solid #4b4858;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-activities .detail-aside .detail-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

body.page-activities .detail-aside .info-card,
body.page-activities .detail-aside .info-card:last-child {
  grid-column: auto;
  padding: 13px 0 15px;
  border: 0;
  border-bottom: 1px solid rgba(71, 68, 87, 0.1);
  border-radius: 0;
  background: transparent;
}

body.page-activities .detail-aside .info-card:first-child {
  padding-top: 0;
}

body.page-activities .detail-aside .info-card span {
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body.page-activities .detail-aside .info-card p {
  color: #514e5d;
  font-size: 0.9rem;
  line-height: 1.68;
}

body.page-activities .detail-aside .detail-tags,
body.page-activities .detail-aside .detail-links {
  margin-top: 0;
}

body.page-activities .detail-aside .detail-tags {
  gap: 7px;
}

body.page-activities .detail-aside .tag {
  border-color: rgba(71, 68, 87, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

body.page-activities .detail-aside .detail-links {
  display: grid;
  gap: 9px;
}

body.page-activities .detail-aside .detail-links a {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  padding: 10px 13px;
  border-color: rgba(71, 68, 87, 0.14);
  border-radius: 10px;
  background: transparent;
  color: #4a4756;
  font-size: 0.86rem;
}

body.page-activities .detail-aside .detail-links a:first-child {
  border-color: #4b4858;
  background: #4b4858;
  color: #fff;
}

body.page-activities .detail-activities,
body.page-activities .detail-gallery {
  margin: 0;
  padding: 0;
  border: 0;
}

body.page-activities .detail-gallery {
  margin-top: 76px;
  padding-top: 58px;
  border-top: 1px solid rgba(71, 68, 87, 0.12);
}

body.page-activities #detailActivities[hidden] + .detail-gallery {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.page-activities .detail-section-head {
  display: grid;
  justify-content: start;
  gap: 5px;
  margin-bottom: 32px;
}

body.page-activities .detail-section-head .eyebrow {
  margin: 0;
  color: var(--detail-accent);
  font-size: 0.72rem;
}

body.page-activities .detail-section-head h3 {
  color: #403d4b;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  line-height: 1.28;
}

body.page-activities .activity-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

body.page-activities .activity-block,
body.page-activities .activity-block:not(.activity-block--with-visual) {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 0 54px;
  border: 0;
  border-bottom: 1px solid rgba(71, 68, 87, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-activities .activity-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.page-activities .activity-block-visual {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f0eeea;
  box-shadow: 0 12px 34px rgba(55, 51, 69, 0.09);
}

body.page-activities .activity-block-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

body.page-activities .activity-block-visual figcaption {
  padding: 11px 14px 13px;
  background: rgba(255, 255, 255, 0.82);
  color: #817c8a;
  font-size: 0.78rem;
}

body.page-activities .activity-block-content {
  display: grid;
  gap: 12px;
}

body.page-activities .activity-block-date {
  color: var(--detail-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

body.page-activities .activity-block h3 {
  color: #403d4b;
  font-family: var(--font-site);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.32;
}

body.page-activities .activity-block-content > p:not(.activity-block-date) {
  color: #676270;
  font-size: 1rem;
  line-height: 1.9;
}

body.page-activities .activity-block-list {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid rgba(71, 68, 87, 0.1);
  color: #5d5967;
  list-style: none;
}

body.page-activities .activity-block-list li {
  position: relative;
  padding: 13px 4px 13px 19px;
  border-bottom: 1px solid rgba(71, 68, 87, 0.08);
  font-size: 0.94rem;
  line-height: 1.7;
}

body.page-activities .activity-block-list li::before {
  content: "";
  position: absolute;
  top: 1.32rem;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--detail-accent);
}

body.page-activities .activity-block-tags {
  margin-top: 10px;
}

body.page-activities .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 22px;
  contain: none;
}

body.page-activities .gallery-grid > :first-child {
  grid-column: 1 / -1;
}

body.page-activities .gallery-item,
body.page-activities .generated-plate {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-activities .gallery-item img,
body.page-activities .gallery-grid > :first-child img,
body.page-activities .gallery-item video,
body.page-activities .gallery-grid > :first-child video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 16px;
  object-fit: contain;
  background: #ece9e4;
}

body.page-activities .gallery-item video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #121116;
}

body.page-activities .gallery-item figcaption,
body.page-activities .generated-plate .plate-caption {
  padding: 10px 2px 0;
  color: #817c8a;
  font-size: 0.82rem;
  line-height: 1.65;
}

body.page-activities .generated-plate,
body.page-activities .generated-plate .generated-cover {
  min-height: 0;
}

body.page-activities .generated-plate .generated-cover {
  min-height: 320px;
  border-radius: 16px;
}

@media (max-width: 1100px) {
  body.page-activities .detail-panel {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    margin: 12px auto;
  }

  body.page-activities .detail-body {
    width: min(820px, calc(100% - 48px));
  }

  body.page-activities .detail-reading-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  body.page-activities .detail-aside {
    position: static;
    order: -1;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  body.page-activities .detail-aside .info-card:last-child {
    grid-column: 1 / -1;
  }

  body.page-activities .detail-aside .detail-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.page-activities .detail-backdrop {
    background: rgba(55, 52, 68, 0.54);
    backdrop-filter: blur(8px);
  }

  body.page-activities .detail-panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  body.page-activities .detail-close {
    top: max(14px, env(safe-area-inset-top, 0px));
    right: 14px;
    min-width: 58px;
    min-height: 44px;
    padding: 0 13px;
    background: rgba(251, 250, 248, 0.92);
    font-size: 0.86rem;
  }

  body.page-activities .detail-article-header {
    width: calc(100% - 36px);
    padding: calc(78px + env(safe-area-inset-top, 0px)) 0 30px;
  }

  body.page-activities .detail-kicker {
    margin-bottom: 12px;
    font-size: 0.7rem;
  }

  body.page-activities .detail-meta h2 {
    max-width: none;
    font-size: clamp(2.02rem, 9.6vw, 3rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
  }

  body.page-activities .detail-summary {
    margin-top: 17px;
    font-size: 1rem;
    line-height: 1.78;
  }

  body.page-activities .detail-hero {
    width: calc(100% - 24px);
    min-height: 0;
    max-height: none;
    border-radius: 15px;
    box-shadow: 0 12px 32px rgba(55, 51, 69, 0.1);
  }

  body.page-activities .detail-hero img,
  body.page-activities .detail-hero .generated-cover {
    min-height: 0;
    max-height: none;
  }

  body.page-activities .detail-hero .generated-cover {
    min-height: 250px;
  }

  body.page-activities .detail-hero-badge {
    left: 16px;
    bottom: 13px;
  }

  body.page-activities .detail-body {
    width: calc(100% - 36px);
    padding: 38px 0 calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body.page-activities .detail-reading-layout {
    gap: 44px;
  }

  body.page-activities .detail-aside {
    gap: 18px;
    padding-top: 18px;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  body.page-activities .detail-aside .info-card {
    padding: 11px 0 13px;
  }

  body.page-activities .detail-aside .info-card p {
    font-size: 0.86rem;
  }

  body.page-activities .detail-aside .detail-links {
    grid-template-columns: 1fr;
  }

  body.page-activities .detail-section-head {
    gap: 3px;
    margin-bottom: 24px;
  }

  body.page-activities .detail-section-head h3 {
    font-size: 1.72rem;
  }

  body.page-activities .activity-block-grid {
    gap: 42px;
  }

  body.page-activities .activity-block,
  body.page-activities .activity-block:not(.activity-block--with-visual) {
    padding: 0 0 40px;
  }

  body.page-activities .activity-block-visual {
    margin-bottom: 21px;
    border-radius: 14px;
  }

  body.page-activities .activity-block h3 {
    font-size: 1.46rem;
  }

  body.page-activities .activity-block-content > p:not(.activity-block-date) {
    font-size: 1rem;
    line-height: 1.8;
  }

  body.page-activities .activity-block-list li {
    padding-block: 12px;
    font-size: 1rem;
    line-height: 1.66;
  }

  body.page-activities .detail-gallery {
    margin-top: 58px;
    padding-top: 44px;
  }

  body.page-activities .gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.page-activities .gallery-grid > :first-child {
    grid-column: auto;
  }

  body.page-activities .gallery-item img,
  body.page-activities .gallery-grid > :first-child img,
  body.page-activities .gallery-item video,
  body.page-activities .gallery-grid > :first-child video {
    border-radius: 13px;
  }

  body.page-activities .generated-plate .generated-cover {
    min-height: 240px;
    border-radius: 13px;
  }
}

@media (max-width: 430px) {
  body.page-activities .detail-article-header,
  body.page-activities .detail-body {
    width: calc(100% - 30px);
  }

  body.page-activities .detail-meta h2 {
    font-size: clamp(1.9rem, 9.2vw, 2.42rem);
  }

  body.page-activities .detail-hero {
    width: calc(100% - 16px);
    border-radius: 12px;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: 1fr;
  }

  body.page-activities .detail-aside .info-card:last-child {
    grid-column: auto;
  }

  body.page-activities .detail-aside .detail-links a {
    min-height: 44px;
    font-size: 0.83rem;
  }
}

body.page-activities .archive-head .archive-title {
  max-width: none;
  font-size: clamp(0.98rem, 4.6vw, 2.6rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* Editorial typography and spacing polish */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.76;
  letter-spacing: 0.008em;
  font-kerning: normal;
}

button,
input,
select,
textarea,
.topbar,
.eyebrow,
.home-hero-meta,
.hero-action,
.hero-ledger-item span,
.portal-kicker,
.portal-meta,
.portal-cta,
.leader-role,
.leader-meta dt,
.leader-photo figcaption,
.manual-meta,
.manual-actions,
.manual-preview-copy span,
.filter-chip,
.filter-hint,
.archive-note,
.timeline-rail,
.card-topline,
.card-meta-pills,
.card-scene,
.tag-row,
.card-bottom,
.detail-close,
.detail-kicker,
.activity-block-date,
.activity-block-tags,
.detail-info span,
.detail-links,
.detail-hero-badge span {
  font-family: var(--font-ui);
}

.hero h1,
.archive-head .archive-title,
.portal-section h2,
.portal-body .portal-title,
.manual-panel h2,
.manual-reader-header h2,
.manual-preview-copy strong,
.leaders-section h2,
.leader-head h3,
.leader-quote,
.page-feature-copy strong,
.leaders-visual-copy strong,
.card-body .card-title,
.detail-meta h2,
.detail-section-head h3,
.activity-block h3,
.footnote-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.hero-text,
.portal-body p,
.portal-intro,
.manual-intro,
.manual-reader-intro,
.leaders-intro,
.leader-summary,
.archive-intro,
.card-excerpt,
.detail-summary,
.activity-block-content,
.activity-block-list,
.gallery-item figcaption,
.generated-plate .plate-caption,
.footnote-panel p {
  font-family: var(--font-body);
  font-weight: 400;
}

.topbar,
body.page-home .topbar {
  top: 14px;
  margin-bottom: 42px;
  padding: 14px 17px;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(76, 72, 98, 0.065);
}

.brand-mark {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(88, 84, 114, 0.1);
}

.brand-copy strong {
  font-weight: 600;
  letter-spacing: 0.055em;
}

.topbar-nav,
body.page-home .topbar-nav {
  border-radius: 14px;
  box-shadow: none;
}

.topbar-nav a {
  border-radius: 10px;
  font-weight: 500;
}

.topbar-nav a[aria-current="page"],
body.page-home .topbar-nav a[aria-current="page"] {
  font-weight: 600;
  box-shadow: none;
}

.lang-toggle {
  border-radius: 12px;
  box-shadow: none;
}

.hero {
  gap: 32px;
  margin-bottom: 64px;
}

.hero-copy,
body.page-home .hero-copy {
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(76, 72, 98, 0.07);
}

.hero-copy::before,
body.page-home .hero-copy::before {
  inset: 20px;
  border-radius: 17px;
  opacity: 0.72;
}

.hero h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

body.page-home .hero h1 {
  max-width: 9ch;
  font-size: clamp(2.25rem, 3.35vw, 3.45rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.hero-text,
body.page-home .hero-text {
  color: rgba(74, 71, 88, 0.88);
  line-height: 1.95;
}

body.page-home .hero-text {
  max-width: 39ch;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.16em;
}

.home-hero-meta span,
body.page-home .home-hero-meta span {
  min-height: 34px;
  padding-inline: 12px;
  font-weight: 500;
}

.hero-action,
body.page-home .hero-action {
  border-radius: 10px;
  box-shadow: none;
  font-weight: 600;
}

body.page-home .hero-action-primary {
  box-shadow: 0 8px 22px rgba(93, 89, 118, 0.09);
}

.portal-section,
.leaders-section {
  gap: 28px;
  margin-bottom: 64px;
}

.portal-grid,
body.page-home .portal-grid {
  gap: 20px;
}

.portal-card,
body.page-home .portal-card,
.leader-card,
.manual-panel,
.manual-reader {
  border-color: rgba(115, 108, 143, 0.09);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(76, 72, 98, 0.055);
}

.portal-card::before,
body.page-home .portal-card::before,
.leader-card::before {
  display: none;
}

.portal-body,
body.page-home .portal-body,
body.page-home .portal-card--home-minimal .portal-body {
  gap: 13px;
  padding: 30px 28px 28px;
}

.portal-index,
body.page-home .portal-index {
  font-family: var(--font-display);
  font-weight: 600;
}

.portal-body .portal-title,
body.page-home .portal-body .portal-title {
  color: var(--ink);
  font-size: clamp(1.42rem, 1.8vw, 1.66rem);
  line-height: 1.38;
}

.portal-body p,
body.page-home .portal-body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.86;
}

.portal-meta,
body.page-home .portal-meta {
  margin-top: 2px;
}

.portal-cta,
body.page-home .portal-cta {
  margin-top: 5px;
  font-size: 0.88rem;
  font-weight: 600;
}

.manual-panel {
  gap: 32px;
  padding: clamp(30px, 3vw, 42px);
}

.manual-panel h2,
.manual-reader-header h2,
.leaders-section h2,
.portal-section h2 {
  line-height: 1.3;
}

.manual-preview,
.manual-reader-page,
.leader-photo {
  border-color: rgba(115, 108, 143, 0.11);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(76, 72, 98, 0.06);
}

.manual-reader-header {
  padding-bottom: 26px;
}

.leaders-section {
  gap: 30px;
}

.leader-grid--two {
  gap: 24px;
}

.leader-card {
  gap: 20px;
  padding: clamp(28px, 3vw, 36px);
}

.leader-head h3 {
  font-size: clamp(1.56rem, 2vw, 1.86rem);
}

.leader-number {
  font-family: var(--font-display);
  font-weight: 600;
}

.leader-role {
  padding: 5px 10px;
  border-radius: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.leader-meta div {
  padding-bottom: 14px;
}

.leader-meta dd,
.leader-summary {
  line-height: 1.86;
}

.leader-quote {
  border-left-width: 2px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.archive-head {
  gap: 36px;
  padding: clamp(30px, 3vw, 42px);
  border-color: rgba(115, 108, 143, 0.09);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(76, 72, 98, 0.06);
}

.archive-copy {
  gap: 16px;
}

body.page-activities .archive-head .archive-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.archive-intro {
  color: var(--ink-soft);
  line-height: 1.92;
}

.archive-actions {
  padding: 18px 20px;
  border-color: rgba(115, 108, 143, 0.08);
  border-radius: 16px;
  box-shadow: none;
}

.filter-chip {
  border-radius: 9px;
  font-weight: 500;
}

.timeline-shell {
  border-color: rgba(115, 108, 143, 0.09);
  border-radius: 19px;
  box-shadow: 0 14px 38px rgba(76, 72, 98, 0.055);
}

.timeline-stamp {
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(96, 92, 128, 0.06);
}

.card-body {
  gap: 17px;
  padding: clamp(25px, 2.6vw, 32px);
}

.card-body .card-title {
  font-size: clamp(1.46rem, 2vw, 1.72rem);
  line-height: 1.4;
}

.card-excerpt {
  line-height: 1.9;
}

.card-chapter,
.card-badge,
.tag,
.card-cta {
  font-family: var(--font-ui);
}

.card-chapter,
.card-badge,
.tag {
  border-radius: 7px;
}

.card-cta {
  border-radius: 9px;
  font-weight: 600;
}

body.page-activities .detail-panel {
  font-family: var(--font-body);
}

body.page-activities .detail-meta h2 {
  font-weight: 600;
  line-height: 1.2;
}

body.page-activities .detail-summary,
body.page-activities .activity-block-content > p:not(.activity-block-date),
body.page-activities .activity-block-list li,
body.page-activities .gallery-item figcaption {
  line-height: 1.9;
}

body.page-activities .detail-section-head h3,
body.page-activities .activity-block h3 {
  font-weight: 600;
}

@media (max-width: 820px) {
  body {
    line-height: 1.72;
  }

  .topbar,
  body.page-home .topbar {
    top: 8px;
    margin-bottom: 26px;
    border-radius: 17px;
  }

  .hero {
    gap: 20px;
    margin-bottom: 44px;
  }

  .hero-copy,
  body.page-home .hero-copy,
  body.page-leaders .hero-copy,
  body.page-handbook .hero-copy {
    padding: 34px 28px;
    border-radius: 21px;
  }

  .hero-copy::before,
  body.page-home .hero-copy::before {
    inset: 14px;
    border-radius: 14px;
  }

  body.page-home .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.1rem, 9.2vw, 2.85rem);
    line-height: 1.22;
  }

  .hero-text,
  body.page-home .hero-text {
    font-size: 1rem;
    line-height: 1.86;
  }

  .portal-section,
  .leaders-section {
    gap: 22px;
    margin-bottom: 46px;
  }

  .portal-grid,
  body.page-home .portal-grid,
  .leader-grid--two {
    gap: 16px;
  }

  .portal-body,
  body.page-home .portal-body,
  body.page-home .portal-card--home-minimal .portal-body,
  .leader-card {
    padding: 26px 23px;
  }

  .archive-head {
    gap: 24px;
    padding: 28px 24px;
    border-radius: 21px;
  }

  .timeline-shell {
    border-radius: 17px;
  }

  body.page-activities .detail-meta h2 {
    font-size: clamp(1.94rem, 8.6vw, 2.7rem);
    line-height: 1.2;
  }

  body.page-activities .detail-article-header,
  body.page-activities .detail-body {
    width: calc(100% - 40px);
  }
}

@media (max-width: 430px) {
  .brand-copy strong,
  .brand-copy--home strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.74rem;
    line-height: 1.28;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-copy,
  body.page-home .hero-copy,
  body.page-leaders .hero-copy,
  body.page-handbook .hero-copy {
    padding: 30px 22px;
  }

  body.page-home .hero h1 {
    font-size: clamp(2rem, 10.4vw, 2.58rem);
  }

  .portal-body,
  body.page-home .portal-body,
  body.page-home .portal-card--home-minimal .portal-body,
  .leader-card {
    padding: 24px 21px;
  }

  .archive-head {
    padding: 26px 20px;
  }

  body.page-activities .detail-article-header,
  body.page-activities .detail-body {
    width: calc(100% - 32px);
  }
}

/* Unified activity detail article */
body.page-activities .detail-panel {
  --detail-page-width: 1160px;
  --detail-copy-width: 720px;
  --detail-side-width: 300px;
  color: #4d4958;
}

body.page-activities .detail-scroll {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

body.page-activities .detail-article-header {
  width: min(900px, calc(100% - 72px));
  padding: 94px 0 46px;
}

body.page-activities .detail-kicker {
  margin: 0 0 16px;
  color: var(--detail-accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

body.page-activities .detail-meta h2 {
  max-width: 15ch;
  color: #3f3b4b;
  font-size: clamp(2.65rem, 4.5vw, 4.35rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

body.page-activities .detail-summary {
  max-width: 62ch;
  margin: 22px 0 0;
  color: #696573;
  font-size: clamp(1rem, 0.3vw + 0.96rem, 1.12rem);
  line-height: 1.86;
  white-space: pre-line;
}

body.page-activities .detail-hero {
  width: min(var(--detail-page-width), calc(100% - 72px));
  border: 1px solid rgba(77, 73, 88, 0.08);
  border-radius: 20px;
  background: #efede9;
  box-shadow: 0 18px 48px rgba(55, 51, 69, 0.11);
}

body.page-activities .detail-hero img,
body.page-activities .detail-hero .generated-cover {
  max-height: min(720px, 72vh);
}

body.page-activities .detail-hero img {
  object-fit: contain;
}

body.page-activities .detail-hero-badge {
  left: 24px;
  bottom: 22px;
}

body.page-activities .detail-body {
  width: min(1080px, calc(100% - 72px));
  padding: 68px 0 108px;
}

body.page-activities .detail-reading-layout {
  grid-template-columns: minmax(0, var(--detail-copy-width)) minmax(260px, var(--detail-side-width));
  gap: clamp(52px, 6vw, 76px);
}

body.page-activities .detail-main,
body.page-activities .detail-activities,
body.page-activities .detail-gallery,
body.page-activities .activity-block-content {
  min-width: 0;
}

body.page-activities .detail-aside {
  top: 24px;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(77, 73, 88, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(55, 51, 69, 0.07);
  backdrop-filter: blur(12px);
}

body.page-activities .detail-aside .detail-info {
  gap: 0;
}

body.page-activities .detail-aside .info-card,
body.page-activities .detail-aside .info-card:last-child {
  padding: 14px 0;
  border-bottom: 1px solid rgba(77, 73, 88, 0.09);
}

body.page-activities .detail-aside .info-card:first-child {
  padding-top: 0;
}

body.page-activities .detail-aside .info-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.page-activities .detail-aside .info-card span {
  margin-bottom: 5px;
  color: #9994a2;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.14em;
}

body.page-activities .detail-aside .info-card p {
  color: #55515f;
  font-size: 0.89rem;
  line-height: 1.66;
  overflow-wrap: anywhere;
}

body.page-activities .detail-aside .detail-tags {
  gap: 7px;
  padding-top: 2px;
}

body.page-activities .detail-aside .tag {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(77, 73, 88, 0.09);
  border-radius: 999px;
  background: rgba(248, 246, 242, 0.9);
  color: #6e6977;
  font-size: 0.72rem;
}

body.page-activities .detail-aside .detail-links {
  gap: 8px;
  padding-top: 2px;
}

body.page-activities .detail-aside .detail-links a {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(77, 73, 88, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.page-activities .detail-aside .detail-links a::after {
  content: "↗";
  flex: 0 0 auto;
  margin-left: 12px;
  font-size: 0.92rem;
}

body.page-activities .detail-aside .detail-links a.is-download::after {
  content: "↓";
}

body.page-activities .detail-aside .detail-links a:hover,
body.page-activities .detail-aside .detail-links a:focus-visible {
  transform: translateY(-1px);
  border-color: #4b4858;
}

body.page-activities .detail-section-head {
  gap: 6px;
  margin-bottom: 30px;
  padding-top: 22px;
  border-top: 2px solid #4b4858;
}

body.page-activities .detail-section-head .eyebrow {
  color: var(--detail-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.page-activities .detail-section-head h3 {
  font-size: clamp(1.72rem, 2.2vw, 2.15rem);
  line-height: 1.3;
}

body.page-activities .activity-block-grid {
  gap: 48px;
}

body.page-activities .activity-block,
body.page-activities .activity-block:not(.activity-block--with-visual) {
  padding-bottom: 48px;
}

body.page-activities .activity-block-visual {
  margin-bottom: 24px;
  border: 1px solid rgba(77, 73, 88, 0.08);
  border-radius: 15px;
  background: #efede9;
  box-shadow: 0 12px 34px rgba(55, 51, 69, 0.08);
}

body.page-activities .activity-block-visual img {
  max-height: min(720px, 78vh);
  object-fit: contain;
}

body.page-activities .activity-block-content {
  gap: 11px;
}

body.page-activities .activity-block-date {
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

body.page-activities .activity-block h4 {
  max-width: 24ch;
  margin: 0;
  color: #403d4b;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 1.9vw, 1.78rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.018em;
}

body.page-activities .activity-block-content > p:not(.activity-block-date) {
  max-width: 68ch;
  color: #686471;
  font-size: 1rem;
  line-height: 1.84;
}

body.page-activities .activity-block-list {
  margin-top: 9px;
}

body.page-activities .activity-block-list li {
  padding: 12px 4px 12px 18px;
  font-size: 0.95rem;
  line-height: 1.72;
}

body.page-activities .detail-gallery {
  margin-top: 68px;
  padding-top: 0;
  border-top: 0;
}

body.page-activities #detailActivities[hidden] + .detail-gallery {
  margin-top: 0;
}

body.page-activities .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 20px;
}

body.page-activities .gallery-item img,
body.page-activities .gallery-item video,
body.page-activities .generated-plate .generated-cover {
  border: 1px solid rgba(77, 73, 88, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(55, 51, 69, 0.07);
}

body.page-activities .gallery-item img {
  max-height: min(760px, 82vh);
  object-fit: contain;
}

body.page-activities .gallery-item figcaption,
body.page-activities .generated-plate .plate-caption {
  padding: 9px 2px 0;
  color: #85808c;
  font-size: 0.8rem;
  line-height: 1.62;
}

body.page-activities .detail-tags[hidden],
body.page-activities .detail-links[hidden],
body.page-activities .detail-gallery[hidden],
body.page-activities #detailGallerySection[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  body.page-activities .detail-body {
    width: min(820px, calc(100% - 56px));
  }

  body.page-activities .detail-reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  body.page-activities .detail-aside {
    order: -1;
    padding: 24px 26px;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
  }

  body.page-activities .detail-aside .info-card:first-child {
    padding-top: 14px;
  }

  body.page-activities .detail-aside .info-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body.page-activities .detail-aside .detail-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.page-activities .detail-article-header {
    width: calc(100% - 44px);
    padding: calc(76px + env(safe-area-inset-top, 0px)) 0 28px;
  }

  body.page-activities .detail-meta h2 {
    max-width: none;
    font-size: clamp(1.95rem, 8.8vw, 2.75rem);
    line-height: 1.2;
  }

  body.page-activities .detail-summary {
    margin-top: 15px;
    font-size: 0.98rem;
    line-height: 1.78;
  }

  body.page-activities .detail-hero {
    width: calc(100% - 32px);
    border-radius: 14px;
  }

  body.page-activities .detail-hero img,
  body.page-activities .detail-hero .generated-cover {
    max-height: none;
  }

  body.page-activities .detail-body {
    width: calc(100% - 44px);
    padding: 36px 0 calc(82px + env(safe-area-inset-bottom, 0px));
  }

  body.page-activities .detail-reading-layout {
    gap: 48px;
  }

  body.page-activities .detail-aside {
    gap: 18px;
    padding: 22px;
    border-radius: 15px;
  }

  body.page-activities .detail-aside .detail-info {
    column-gap: 20px;
  }

  body.page-activities .detail-section-head {
    margin-bottom: 24px;
    padding-top: 18px;
  }

  body.page-activities .detail-section-head h3 {
    font-size: 1.62rem;
  }

  body.page-activities .activity-block-grid {
    gap: 40px;
  }

  body.page-activities .activity-block,
  body.page-activities .activity-block:not(.activity-block--with-visual) {
    padding-bottom: 38px;
  }

  body.page-activities .activity-block-visual {
    margin-bottom: 20px;
    border-radius: 13px;
  }

  body.page-activities .activity-block h4 {
    font-size: 1.4rem;
  }

  body.page-activities .activity-block-content > p:not(.activity-block-date),
  body.page-activities .activity-block-list li {
    font-size: 0.98rem;
  }

  body.page-activities .detail-gallery {
    margin-top: 52px;
  }

  body.page-activities .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.page-activities .gallery-grid > :first-child {
    grid-column: auto;
  }

  body.page-activities .gallery-item img,
  body.page-activities .gallery-item video,
  body.page-activities .generated-plate .generated-cover {
    max-height: none;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  body.page-activities .detail-article-header,
  body.page-activities .detail-body {
    width: calc(100% - 36px);
  }

  body.page-activities .detail-hero {
    width: calc(100% - 24px);
  }

  body.page-activities .detail-aside {
    padding: 20px;
  }

  body.page-activities .detail-aside .detail-info {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-activities .detail-aside .info-card,
  body.page-activities .detail-aside .info-card:first-child,
  body.page-activities .detail-aside .info-card:nth-last-child(-n + 2) {
    padding: 12px 0;
    border-bottom: 1px solid rgba(77, 73, 88, 0.09);
  }

  body.page-activities .detail-aside .info-card:first-child {
    padding-top: 0;
  }

  body.page-activities .detail-aside .info-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.page-activities .detail-aside .detail-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  body.page-activities .detail-article-header,
  body.page-activities .detail-body {
    width: calc(100% - 32px);
  }

  body.page-activities .detail-meta h2 {
    font-size: clamp(1.82rem, 8.7vw, 2.3rem);
  }

  body.page-activities .detail-summary,
  body.page-activities .activity-block-content > p:not(.activity-block-date),
  body.page-activities .activity-block-list li {
    font-size: 1rem;
  }
}

/* Keep the final mobile cascade predictable after the editorial detail styles. */
@media (max-width: 820px) {
  body.page-home .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.16;
  }

  .home-hero-meta,
  body.page-home .home-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .home-hero-meta span:last-child,
  body.page-home .home-hero-meta span:last-child {
    grid-column: auto;
  }

  html[lang="zh-TW"] body.page-activities .archive-head .archive-title {
    max-width: none;
    font-size: clamp(1.38rem, 6vw, 1.82rem);
    white-space: nowrap;
  }

  body.page-activities .filter-chips {
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
  }

  body.page-activities .filter-chip {
    scroll-snap-align: start;
  }

  body.page-activities .detail-article-header,
  body.page-activities .detail-hero,
  body.page-activities .detail-body {
    width: calc(100% - 32px);
  }

  body.page-activities .detail-article-header {
    padding-top: calc(74px + env(safe-area-inset-top, 0px));
  }

  body.page-activities .detail-body {
    padding-top: 32px;
  }

  body.page-activities .activity-block-visual img,
  body.page-activities .gallery-item img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  body.page-leaders .hero-title--leaders,
  body.page-handbook .hero h1 {
    max-width: none;
    font-size: clamp(1.82rem, 7.8vw, 2.3rem);
  }

  .leader-photo--portrait img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  body.page-handbook .hero-actions,
  body.page-handbook .hero > .page-feature-card,
  body.page-handbook .manual-meta {
    display: none;
  }

  body.page-handbook .manual-preview img,
  body.page-handbook .manual-reader-page img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (max-width: 430px) {
  body.page-home .hero h1 {
    font-size: clamp(1.92rem, 9.3vw, 2.35rem);
  }
}

/* Final readability pass for compact activity metadata. */
body.page-activities .card-scene {
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.075em;
}

@media (max-width: 820px) {
  body.page-activities .card-scene {
    font-size: 0.8rem;
  }

  body.page-activities .card-location {
    color: var(--ink-soft);
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manual-reader-page img {
    transition: none;
  }
}
