:root {
  --red: #a20f1e;
  --red-deep: #6f0b15;
  --ink: #111111;
  --charcoal: #191919;
  --coal: #242424;
  --muted: #656565;
  --line: #dedede;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #f0f0ed;
  --white: #ffffff;
  --focus: #f2c14e;
  --max: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 18px 46px rgba(17, 17, 17, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 247, 245, 0.88) 26%, rgba(247, 247, 245, 1)),
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.018) 0 1px, transparent 1px 72px),
    var(--paper);
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.en {
  display: none;
}

body[data-lang="en"] .zh {
  display: none !important;
}

body[data-lang="en"] .en {
  display: contents;
}

::selection {
  color: var(--white);
  background: var(--red);
}

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

img,
canvas {
  display: block;
  max-width: 100%;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 80;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #ffb8bd, var(--red), var(--focus));
}

main:focus {
  outline: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: currentColor;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.78;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.nav-search,
.language-toggle {
  position: relative;
  border-radius: 8px;
  padding: 8px 11px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 14px;
  opacity: 0.88;
  cursor: pointer;
}

.site-nav a::after {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.75;
  transition: transform 160ms ease;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a.is-active,
.nav-search:hover,
.language-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-scrolled .nav-search:hover,
.site-header.is-scrolled .language-toggle:hover {
  background: #f0f0ee;
}

.nav-search,
.language-toggle {
  border: 1px solid rgba(255, 255, 255, 0.32);
  margin-left: 4px;
  font-weight: 800;
}

.site-header.is-scrolled .nav-search,
.site-header.is-scrolled .language-toggle {
  border-color: var(--line);
}

.page-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.page-header .nav-search,
.page-header .language-toggle {
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: #101010;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  opacity: 0.95;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100% - 36px, var(--max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 118px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb8bd;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-search {
  position: relative;
  width: min(720px, 100%);
  margin-top: 28px;
}

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.site-search input {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
}

.site-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.site-search button {
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-results a,
.search-empty {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-results a:last-child,
.search-empty:last-child {
  border-bottom: 0;
}

.search-results strong {
  display: block;
  line-height: 1.25;
}

.search-results small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.search-results a:hover {
  background: #f4f4f2;
}

.search-hint {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  padding: 0 5px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.32);
  font: 700 12px/1 system-ui, sans-serif;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-deep);
}

.button-secondary {
  color: var(--red);
  border-color: rgba(162, 15, 30, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.hero .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero .button-secondary {
  color: var(--red);
  border-color: rgba(162, 15, 30, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.page-hero .button-secondary:hover {
  border-color: rgba(162, 15, 30, 0.36);
  background: rgba(162, 15, 30, 0.06);
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 52px 0 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(0, 0, 0, 0.3);
}

.hero-metrics dt {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.page-hero {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 150px 0 72px;
}

.page-hero h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 82px);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.quick-access {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 36px, var(--max));
  margin: -52px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.quick-access a {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 22px;
  background: var(--surface);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.quick-access a::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  content: "";
  opacity: 0.35;
  transform: rotate(45deg);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.quick-access a:hover {
  background: #fbfbfa;
  transform: translateY(-2px);
}

.quick-access a:hover::after {
  opacity: 1;
  transform: translateX(3px) rotate(45deg);
}

.quick-access span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.quick-access strong {
  font-size: 18px;
  line-height: 1.2;
}

.quick-access small {
  color: var(--muted);
  font-size: 13px;
}

.network-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 36px, var(--max));
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.network-status article {
  padding: 22px;
  background: var(--white);
}

.network-status span,
.filter-chip,
.resource-card span,
.field-counter {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.network-status strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.25;
}

.network-status p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0;
  scroll-margin-top: 96px;
}

.section.is-highlighted,
.quick-access.is-highlighted {
  animation: target-pulse 1400ms ease;
}

@keyframes target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(162, 15, 30, 0);
  }

  24% {
    box-shadow: 0 0 0 7px rgba(162, 15, 30, 0.16);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(162, 15, 30, 0);
  }
}

.section + .section:not(.principle-band):not(.publications) {
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(36px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.impact-strip div {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 250, 248, 1));
}

.impact-strip span {
  display: block;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.impact-strip p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-copy {
  max-width: 760px;
}

.section-copy h2,
.section-heading h2,
.join-copy h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.section-copy p:not(.eyebrow),
.section-heading p,
.join-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: 34px;
}

.intro {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.intro-panel {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 26px;
}

.intro-panel p {
  margin: 0;
  color: var(--coal);
  font-size: 19px;
}

.intro-panel p + p {
  margin-top: 18px;
}

.principle-band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(162, 15, 30, 0.18), transparent 36%),
    linear-gradient(180deg, #191919, #121212);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.principle-band .section-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.principle-grid article {
  padding: 26px;
  background: #202020;
}

.principle-grid span,
.workstream-index,
.timeline span,
.roadmap-grid span,
.issue-label,
.contact-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-grid h3,
.workstream h3,
.event-rail h3,
.publication-grid h3,
.timeline h3,
.roadmap-grid h3,
.membership-box h3 {
  margin-top: 12px;
  font-size: 21px;
}

.principle-grid p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.workstream-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 26px;
}

.filter-chip,
.module-chip,
.author-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover,
.module-chip.is-active,
.module-chip:hover,
.author-chip.is-active,
.author-chip:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.workstream,
.publication-grid article,
.event-rail article,
.roadmap-grid article,
.resource-card,
.faq-list details,
.membership-box,
.tabs,
.join-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(252, 252, 250, 1));
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
}

.workstream,
.publication-grid article,
.event-rail article,
.roadmap-grid article,
.resource-card,
.faq-list details,
.timeline li,
.membership-box,
.join-form {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.workstream:hover,
.publication-grid article:hover,
.event-rail article:hover,
.roadmap-grid article:hover,
.resource-card:hover,
.timeline li:hover {
  transform: translateY(-3px);
  border-color: rgba(162, 15, 30, 0.28);
  box-shadow: var(--shadow-soft);
}

.workstream {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  padding: 24px;
}

.workstream::before,
.publication-grid article::before,
.event-rail article::before,
.roadmap-grid article::before,
.resource-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), rgba(162, 15, 30, 0.08));
  content: "";
}

.publication-grid article,
.event-rail article,
.roadmap-grid article,
.resource-card {
  position: relative;
  overflow: hidden;
}

.workstream-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  letter-spacing: 0;
}

.workstream::after,
.event-rail article::after,
.roadmap-grid article::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--red);
  content: "";
  opacity: 0.2;
  transition: opacity 180ms ease, width 180ms ease;
}

.workstream:hover::after,
.event-rail article:hover::after,
.roadmap-grid article:hover::after {
  width: 58px;
  opacity: 1;
}

.workstream p,
.event-rail p,
.publication-grid p,
.timeline p,
.roadmap-grid p,
.resource-card p,
.faq-list p,
.membership-box li,
.tab-panel p,
.tab-panel li {
  color: var(--muted);
}

.workstream small {
  display: block;
  margin-top: 18px;
  color: var(--red-deep);
  font-weight: 800;
  line-height: 1.45;
}

.workstream.is-hidden {
  display: none;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  min-height: 248px;
  padding: 26px;
}

.resource-card h3 {
  margin-top: 14px;
  font-size: 22px;
}

.resource-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 900;
}

.library-shell {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(72px, 10vw, 120px);
}

.library-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.resource-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.resource-count span:first-child {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.module-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.module-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(162, 15, 30, 0.1);
  font-size: 12px;
  line-height: 1;
}

.module-chip.is-active .module-count,
.module-chip:hover .module-count {
  background: rgba(255, 255, 255, 0.2);
}

.works-shell {
  width: min(100% - 36px, var(--max));
  margin: clamp(18px, 4vw, 44px) auto 0;
  padding: clamp(44px, 7vw, 76px) 0 clamp(78px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

.works-intro {
  max-width: 920px;
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.author-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(162, 15, 30, 0.1);
  font-size: 12px;
  line-height: 1;
}

.author-chip.is-active .author-count,
.author-chip:hover .author-count {
  background: rgba(255, 255, 255, 0.2);
}

.library-controls,
.works-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.library-controls label,
.works-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.library-controls input,
.library-controls select,
.works-controls input,
.works-controls select {
  width: 100%;
  border: 1px solid #ccccca;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

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

.library-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #fcfcfa);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.library-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), rgba(162, 15, 30, 0.08));
  content: "";
}

.library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(162, 15, 30, 0.28);
  box-shadow: var(--shadow-soft);
}

.library-card h3 {
  margin-top: 18px;
  font-size: 24px;
}

.library-card p {
  color: var(--muted);
}

.library-action {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 3px solid rgba(162, 15, 30, 0.22);
  font-weight: 800;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.library-meta span,
.status {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.library-meta span {
  color: var(--muted);
  background: #f1f1ef;
}

.status {
  color: var(--white);
  background: var(--red);
}

.status.draft {
  background: #6f6f6f;
}

.status.review {
  background: #8a4b00;
}

.library-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
}

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

.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(162, 15, 30, 0.28);
  box-shadow: var(--shadow-soft);
}

.work-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.work-author,
.work-year {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.work-year {
  flex: 0 0 auto;
  color: var(--muted);
}

.work-card h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.work-card h3 a {
  color: inherit;
  text-decoration: none;
}

.work-card h3 a:hover {
  color: var(--red);
}

.works-load-more {
  display: block;
  margin: 24px auto 0;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.work-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: #f1f1ef;
  font-size: 12px;
  font-weight: 900;
}

.reader-shell {
  width: min(100% - 36px, var(--reader-width, 960px));
  margin: 0 auto;
  padding: 126px 0 clamp(72px, 10vw, 120px);
}

.reader-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.reader-exit-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.reader-back,
.reader-exit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.reader-back {
  appearance: none;
  border: 1px solid rgba(162, 15, 30, 0.2);
  padding: 9px 13px;
  color: var(--red);
  background: rgba(162, 15, 30, 0.06);
  cursor: pointer;
}

.reader-exit-link {
  border: 1px solid var(--line);
  padding: 9px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.reader-start-link {
  display: inline-flex;
  border: 1px solid rgba(162, 15, 30, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.reader-back:hover,
.reader-exit-link:hover,
.reader-start-link:hover {
  text-decoration: underline;
}

.reader-back:hover {
  background: rgba(162, 15, 30, 0.1);
}

.reader-exit-link:hover {
  border-color: rgba(162, 15, 30, 0.24);
  color: var(--red);
}

.reader-card,
.reader-missing {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 54px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 1) 58%, rgba(251, 251, 250, 0.98)),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.reader-card h1,
.reader-missing h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.reader-summary {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.reader-insight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 8px;
}

.reader-insight div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfbfa;
}

.reader-insight span,
.reader-insight small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reader-insight strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.reader-toolbar {
  position: sticky;
  top: 78px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.reader-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.reader-tool-group > span,
.reader-progress-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reader-tool-group strong {
  min-width: 24px;
  color: var(--ink);
  text-align: center;
}

.reader-tool-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.reader-tool-button.is-active,
.reader-tool-button:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.reader-copy {
  margin-left: auto;
}

.reader-resume[hidden] {
  display: none;
}

.reader-progress-label {
  min-width: 42px;
  text-align: right;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.reader-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: #f1f1ef;
  font-size: 12px;
  font-weight: 900;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.reader-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0 28px;
  padding: 12px;
  background: #fbfbfa;
}

.reader-toc[hidden] {
  display: none;
}

.reader-toc strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 13px;
}

.reader-toc a {
  border: 1px solid rgba(162, 15, 30, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.reader-toc a:hover {
  border-color: rgba(162, 15, 30, 0.36);
  background: rgba(162, 15, 30, 0.06);
}

.reader-body {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.reader-body h2 {
  margin: 0 0 18px;
  font-size: 25px;
}

.reader-body [data-reader-body] {
  max-width: 72ch;
  margin-inline: auto;
  hanging-punctuation: first allow-end last;
}

.reader-body h3,
.reader-body h4 {
  scroll-margin-top: 124px;
  margin: 2.1em 0 0.75em;
  color: var(--ink);
  line-height: 1.25;
}

.reader-body h3 {
  font-size: calc(var(--reader-font-size, 18px) * 1.35);
}

.reader-body h4 {
  font-size: calc(var(--reader-font-size, 18px) * 1.12);
}

.reader-body p {
  margin: 0 0 1.05em;
  color: var(--ink);
  font-size: var(--reader-font-size, 18px);
  line-height: var(--reader-line-height, 1.85);
  word-break: break-word;
  text-wrap: pretty;
}

.reader-notice {
  border: 1px dashed rgba(162, 15, 30, 0.3);
  border-radius: 8px;
  padding: 20px;
  background: #fff8f4;
}

.reader-notice h3 {
  margin: 0 0 10px;
  color: var(--red);
}

.reader-notice p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.reader-source-usage {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.reader-source-usage strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.reader-source-usage ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.reader-source-usage li + li {
  margin-top: 6px;
}

.reader-source-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.reader-source-list a {
  border: 1px solid rgba(162, 15, 30, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  text-decoration: none;
}

.reader-source-list a:hover {
  border-color: rgba(162, 15, 30, 0.38);
  background: rgba(162, 15, 30, 0.06);
}

.reader-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.reader-nav-card,
.reader-related-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: inherit;
  background: #fbfbfa;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.reader-nav-card:hover,
.reader-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(162, 15, 30, 0.28);
  box-shadow: var(--shadow-soft);
}

.reader-nav-card span,
.reader-related-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.reader-nav-card strong,
.reader-related-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.reader-nav-card small,
.reader-related-card small {
  color: var(--muted);
  line-height: 1.55;
}

.reader-related {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.reader-related h2 {
  margin: 0 0 16px;
  font-size: 25px;
}

.reader-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.three-step-grid,
.guide-grid,
.reader-training-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.guide-panel,
.reader-training-card,
.about-panel {
  border: 1px solid rgba(162, 15, 30, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.step-card > span,
.guide-panel h3,
.reader-training-card h3,
.about-panel h2 {
  color: var(--red);
}

.step-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(162, 15, 30, 0.1);
  font-weight: 900;
  margin-bottom: 12px;
}

.step-card h3,
.guide-panel h3,
.reader-training-card h3,
.about-panel h2 {
  margin: 0 0 10px;
}

.step-card p,
.guide-panel p,
.reader-training-card p,
.about-panel p {
  color: var(--muted);
}

.guide-panel-wide {
  grid-column: span 2;
}

.guide-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--charcoal);
}

.guide-list li + li {
  margin-top: 8px;
}

.guide-related {
  margin-top: 18px;
}

.reader-training {
  margin-top: 34px;
}

.reader-reading-group {
  margin-top: 34px;
}

.reader-reading-group-summary,
.reader-reading-session {
  border: 1px solid rgba(162, 15, 30, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
}

.reader-reading-group-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.reader-reading-group-summary h3,
.reader-reading-session h3 {
  margin: 0;
  color: var(--red);
}

.reader-reading-group-summary p,
.reader-reading-session p {
  margin: 0;
  color: var(--muted);
}

.reader-reading-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reader-reading-session {
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.reader-reading-session > strong,
.reader-reading-group-checklist > strong {
  color: var(--ink);
}

.reader-reading-session-note {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding-top: 12px;
}

.reader-reading-session-output {
  font-weight: 800;
}

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

.reader-training-card {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.76);
}

.reader-training-links,
.reader-related-group {
  display: grid;
  gap: 12px;
}

.reader-training-links .reader-related-card {
  box-shadow: none;
}

.reader-training-empty {
  margin: 0;
  color: var(--muted);
}

.reader-related-group {
  margin-top: 16px;
}

.reader-related-group h3 {
  margin: 0;
  color: var(--red);
}

.reader-shell.is-source-only .reader-toc {
  display: none;
}

.reader-shell.is-source-only .reader-progress-label {
  display: none;
}

.reader-shell.is-source-only .reader-resume {
  display: none;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.reader-shell[data-reader-theme="sepia"] .reader-card,
.reader-shell[data-reader-theme="sepia"] .reader-missing {
  border-color: #dcc8a7;
  background: #fff7e8;
}

.reader-shell[data-reader-theme="sepia"] .reader-toolbar {
  border-color: #dcc8a7;
  background: rgba(255, 247, 232, 0.94);
}

.reader-shell[data-reader-theme="sepia"] .reader-insight div,
.reader-shell[data-reader-theme="sepia"] .reader-toc {
  border-color: #dcc8a7;
  background: #fff2d8;
}

.reader-shell[data-reader-theme="sepia"] .reader-nav-card,
.reader-shell[data-reader-theme="sepia"] .reader-related-card,
.reader-shell[data-reader-theme="sepia"] .reader-training-card,
.reader-shell[data-reader-theme="sepia"] .reader-reading-group-summary,
.reader-shell[data-reader-theme="sepia"] .reader-reading-session,
.reader-shell[data-reader-theme="sepia"] .reader-notice {
  border-color: #dcc8a7;
  background: #fff2d8;
}

.reader-shell[data-reader-theme="dark"] .reader-card,
.reader-shell[data-reader-theme="dark"] .reader-missing {
  border-color: #343434;
  color: #f0ede6;
  background: #171717;
  box-shadow: none;
}

.reader-shell[data-reader-theme="dark"] .reader-toolbar {
  border-color: #343434;
  background: rgba(23, 23, 23, 0.94);
  box-shadow: none;
}

.reader-shell[data-reader-theme="dark"] .reader-card h1,
.reader-shell[data-reader-theme="dark"] .reader-body h2,
.reader-shell[data-reader-theme="dark"] .reader-body h3,
.reader-shell[data-reader-theme="dark"] .reader-body h4,
.reader-shell[data-reader-theme="dark"] .reader-related h2,
.reader-shell[data-reader-theme="dark"] .reader-reading-group h2,
.reader-shell[data-reader-theme="dark"] .reader-body p,
.reader-shell[data-reader-theme="dark"] .reader-insight strong,
.reader-shell[data-reader-theme="dark"] .reader-toc strong,
.reader-shell[data-reader-theme="dark"] .reader-tool-group strong {
  color: #f0ede6;
}

.reader-shell[data-reader-theme="dark"] .reader-summary,
.reader-shell[data-reader-theme="dark"] .reader-insight span,
.reader-shell[data-reader-theme="dark"] .reader-insight small,
.reader-shell[data-reader-theme="dark"] .reader-nav-card small,
.reader-shell[data-reader-theme="dark"] .reader-related-card small,
.reader-shell[data-reader-theme="dark"] .reader-training-card p,
.reader-shell[data-reader-theme="dark"] .reader-training-card li,
.reader-shell[data-reader-theme="dark"] .reader-reading-group-summary p,
.reader-shell[data-reader-theme="dark"] .reader-reading-session p,
.reader-shell[data-reader-theme="dark"] .reader-reading-session li,
.reader-shell[data-reader-theme="dark"] .reader-notice p,
.reader-shell[data-reader-theme="dark"] .reader-progress-label,
.reader-shell[data-reader-theme="dark"] .reader-tool-group > span {
  color: #bdb8ae;
}

.reader-shell[data-reader-theme="dark"] .reader-back,
.reader-shell[data-reader-theme="dark"] .reader-exit-link,
.reader-shell[data-reader-theme="dark"] .reader-start-link,
.reader-shell[data-reader-theme="dark"] .reader-meta span,
.reader-shell[data-reader-theme="dark"] .reader-insight div,
.reader-shell[data-reader-theme="dark"] .reader-tool-button,
.reader-shell[data-reader-theme="dark"] .reader-toc,
.reader-shell[data-reader-theme="dark"] .reader-toc a,
.reader-shell[data-reader-theme="dark"] .reader-nav-card,
.reader-shell[data-reader-theme="dark"] .reader-related-card,
.reader-shell[data-reader-theme="dark"] .reader-training-card,
.reader-shell[data-reader-theme="dark"] .reader-reading-group-summary,
.reader-shell[data-reader-theme="dark"] .reader-reading-session,
.reader-shell[data-reader-theme="dark"] .reader-notice,
.reader-shell[data-reader-theme="dark"] .reader-source-usage,
.reader-shell[data-reader-theme="dark"] .reader-source-list a {
  border-color: #343434;
  color: #ddd8ce;
  background: #242424;
}

.reader-shell[data-reader-theme="dark"] .reader-tool-button.is-active,
.reader-shell[data-reader-theme="dark"] .reader-tool-button:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

body.reader-focus-mode {
  background: var(--white);
}

body.reader-focus-mode .site-header,
body.reader-focus-mode .site-footer,
body.reader-focus-mode .back-to-top {
  display: none;
}

.reader-shell.is-focus {
  padding-top: 28px;
}

.reader-shell.is-focus .reader-card {
  border-color: transparent;
  box-shadow: none;
}

.reader-shell.is-focus .reader-topline {
  margin-bottom: 14px;
}

.reader-shell.is-focus .reader-start-link,
.reader-shell.is-focus .reader-actions,
.reader-shell.is-focus .reader-nav-links,
.reader-shell.is-focus .reader-reading-group,
.reader-shell.is-focus .reader-related {
  display: none;
}

.site-search-panel {
  padding-top: clamp(36px, 6vw, 72px);
}

.site-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 820px;
}

.site-search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
}

.search-results {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-top: 16px;
}

.search-result-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.search-result-main {
  display: grid;
  gap: 5px;
  text-decoration: none;
}

.search-result-card:hover {
  border-color: rgba(162, 15, 30, 0.32);
}

.search-result-card span,
.search-result-secondary {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.search-result-card strong {
  font-size: 18px;
}

.search-result-card small {
  color: var(--muted);
  line-height: 1.55;
}

.search-result-secondary {
  width: fit-content;
  margin-top: 6px;
  text-decoration: none;
  border-bottom: 1px solid rgba(162, 15, 30, 0.28);
}

.search-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.search-result-group {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.search-result-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.search-match-reason {
  display: inline-block;
  margin-top: 2px;
  color: #766f68;
  font-size: 12px;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.work-actions .button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px;
}

.language-badge {
  color: var(--red) !important;
  border-color: rgba(162, 15, 30, 0.2) !important;
  background: rgba(162, 15, 30, 0.06) !important;
}

.author-index-grid,
.topic-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.index-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.index-card > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.index-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
}

.index-card p {
  margin: 0;
  color: var(--muted);
}

.index-card > strong {
  color: var(--ink);
  font-size: 34px;
}

.index-card-links {
  display: grid;
  gap: 7px;
}

.index-card-links a {
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fbfbfa;
  font-size: 13px;
  font-weight: 800;
}

.index-card-links a:hover {
  color: var(--red);
  border-color: rgba(162, 15, 30, 0.34);
}

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

.article-info-grid div,
.article-info-grid article,
.prose-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfbfa;
}

.article-info-grid strong {
  color: var(--red);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-info-grid p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: var(--wide);
  margin: 20px auto 0;
  padding: 0 var(--pad);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb span[aria-hidden="true"] {
  color: rgba(17, 17, 17, 0.32);
}

.article-context-flags {
  display: grid;
  gap: 12px;
}

.article-context-flags .context-card,
.article-context-flags .sensitive-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfbfa;
}

.article-context-flags .sensitive-card {
  border-color: rgba(162, 15, 30, 0.32);
  background: #fff6f4;
}

.article-context-flags strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
}

.article-context-flags p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.prose-panel {
  max-width: 940px;
}

.prose-panel h2 {
  margin: 0 0 12px;
}

.prose-panel h2 + p {
  margin-top: 0;
}

.reader-version-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.reader-version-switch > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

body[data-lang="en"] .reader-body p {
  font-size: var(--reader-font-size, 17px);
}

.reader-body blockquote {
  margin: 1.2em 0;
  border-left: 4px solid var(--red);
  padding: 0.2em 0 0.2em 1em;
  color: var(--muted);
  font-size: var(--reader-font-size, 18px);
  line-height: var(--reader-line-height, 1.85);
}

.study-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 247, 245, 0.96)),
    radial-gradient(circle at 78% 22%, rgba(162, 15, 30, 0.12), transparent 34%),
    var(--paper);
}

.path-principle-grid,
.cadre-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.path-principle-grid article,
.cadre-checklist article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.path-principle-grid strong {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 13px;
}

.path-principle-grid h3,
.cadre-checklist h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.path-principle-grid p,
.cadre-checklist p {
  margin: 0;
  color: var(--muted);
}

.path-stages {
  position: relative;
}

.path-stages::before {
  content: "";
  position: absolute;
  left: clamp(34px, 5vw, 58px);
  top: 170px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), rgba(162, 15, 30, 0.08));
}

.stage-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.stage-number {
  position: sticky;
  top: 96px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(162, 15, 30, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(162, 15, 30, 0.18);
  font-size: 20px;
  font-weight: 900;
}

.stage-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.stage-content h3 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
}

.stage-content > p {
  max-width: 860px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.stage-grid h4 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stage-grid p {
  margin: 0;
  color: var(--muted);
}

.reading-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfbfa;
  font-weight: 900;
  text-decoration: none;
}

.reading-list a:hover {
  border-color: rgba(162, 15, 30, 0.38);
  color: var(--red);
  background: rgba(162, 15, 30, 0.04);
}

.stage-training-list {
  position: relative;
}

.stage-training-card .stage-content {
  overflow: hidden;
}

.stage-goal {
  border-left: 4px solid var(--red);
  padding-left: 14px;
}

.stage-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.stage-info-block {
  border: 1px solid rgba(162, 15, 30, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: #fbfbfa;
}

.stage-info-block h4,
.stage-reading-intro h4,
.stage-reading-section-head h4 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stage-info-block p,
.stage-info-block ul {
  margin: 0;
  color: var(--muted);
}

.stage-info-block ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.stage-boundary-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid rgba(162, 15, 30, 0.24);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--red-deep);
  background: rgba(162, 15, 30, 0.06);
  font-weight: 800;
}

.stage-reading-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.stage-reading-intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.stage-reading-stack {
  display: grid;
  gap: 18px;
}

.stage-reading-section {
  display: grid;
  gap: 12px;
}

.stage-reading-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-reading-section-head span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.stage-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stage-reading-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 18, 18, 0.05);
}

.stage-reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.difficulty-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.stage-reading-card h5 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.stage-reading-title-en {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.stage-reading-meta {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.stage-reading-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.stage-reading-tags span {
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--red);
  background: rgba(162, 15, 30, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.stage-reading-reason {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.stage-reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stage-reading-actions .button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px;
}

.stage-toggle {
  justify-self: start;
  margin-top: 18px;
}

.work-subtitle {
  display: block;
  margin: -5px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.works-quick-filters,
.search-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.works-simple-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.works-search-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.works-search-label input {
  width: 100%;
  border: 1px solid #ccccca;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.works-advanced-filter {
  margin: 4px 0 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.works-advanced-filter summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 900;
}

.works-advanced-filter .works-controls {
  margin: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
  padding: 14px;
}

.resource-action-button {
  align-self: flex-start;
  margin-top: 12px;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.resource-actions .resource-action-button {
  margin-top: 0;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}

.index-card-tags,
.stage-training-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.index-card-tags span,
.stage-training-metrics span {
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--red);
  background: rgba(162, 15, 30, 0.05);
  font-size: 12px;
  font-weight: 900;
}

.stage-training-metrics span {
  border-radius: 8px;
  color: var(--ink);
  background: #fbfbfa;
}

.stage-training-metrics strong {
  margin-right: 6px;
  color: var(--red);
}

.topic-question-list {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding-left: 18px;
  color: var(--muted);
}

.topic-related-authors,
.topic-related-stages {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stage-path-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.stage-path-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.stage-path-nav a {
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.stage-path-nav a:hover {
  color: var(--white);
  background: var(--red);
}

.reader-settings-toggle {
  display: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.observatory {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.tabs {
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: #f4f4f2;
  cursor: pointer;
}

.tab:last-child {
  border-right: 0;
}

.tab.is-active {
  color: var(--white);
  background: linear-gradient(180deg, #b71325, var(--red));
}

.tab-panel {
  display: none;
  padding: 30px;
}

.tab-panel.is-active {
  display: block;
  animation: tab-fade 220ms ease;
}

@keyframes tab-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.tab-panel h3 {
  font-size: 25px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.event-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event-rail article {
  padding: 24px;
}

.event-rail time {
  color: var(--red);
  font-weight: 900;
}

.publications {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, #efefec, #f5f5f2);
}

.publication-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.publication-grid article {
  padding: 26px;
}

.publication-feature {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(162, 15, 30, 0.28), transparent 42%),
    var(--charcoal) !important;
}

.publication-feature p {
  color: rgba(255, 255, 255, 0.72);
}

.publication-feature a {
  display: inline-flex;
  margin-top: 20px;
  color: #ffb8bd;
  font-weight: 900;
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  background: var(--line);
}

.timeline li {
  padding: 26px;
  background: var(--white);
}

.membership-box {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.membership-box ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.roadmap-grid article {
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
  background: var(--white);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::after {
  flex: 0 0 auto;
  color: var(--red);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.contact-card {
  margin-top: 32px;
  border-left: 4px solid var(--red);
  padding: 16px 0 16px 22px;
}

.contact-card a {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.email-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.join-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.join-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border: 1px solid #ccccca;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbfa;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus,
.library-controls input:focus,
.library-controls select:focus,
.works-controls input:focus,
.works-controls select:focus,
.site-search input:focus,
.site-search button:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.nav-search:focus-visible,
.language-toggle:focus-visible,
.tab:focus-visible,
.filter-chip:focus-visible,
.module-chip:focus-visible,
.author-chip:focus-visible,
.work-card h3 a:focus-visible,
.reader-back:focus-visible,
.reader-exit-link:focus-visible,
.reader-start-link:focus-visible,
.reader-tool-button:focus-visible,
.reader-toc a:focus-visible,
.reader-nav-card:focus-visible,
.reader-related-card:focus-visible,
.reader-source-list a:focus-visible,
.reading-list a:focus-visible,
.search-result-card:focus-visible,
.index-card-links a:focus-visible,
.email-row button:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.join-form textarea {
  resize: vertical;
}

.checkbox {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
  color: var(--muted);
  font-weight: 500 !important;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.is-success {
  color: var(--red);
  font-weight: 800;
}

.field-counter {
  justify-self: end;
  color: var(--muted);
}

.field-counter.is-near-limit {
  color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: #101010;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a {
  font-weight: 900;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  box-shadow: var(--shadow-soft);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none;
}

.reveal-item {
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}

.reveal-item.is-visible {
  animation: reveal-in 520ms ease both;
}

@keyframes reveal-in {
  from {
    opacity: 1;
    transform: translateY(14px);
  }

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

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    max-width: 260px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a,
  .nav-search,
  .language-toggle,
  .site-nav a:hover,
  .site-nav a.is-active,
  .nav-search:hover,
  .language-toggle:hover {
    width: 100%;
    text-align: left;
    background: transparent;
  }

  .nav-search {
    margin-left: 0;
    border-color: var(--line);
  }

  .language-toggle {
    margin-left: 0;
    border-color: var(--line);
  }

  .intro,
  .observatory,
  .join,
  .section-heading,
  .governance-layout {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .quick-access,
  .network-status,
  .impact-strip,
  .workstream-grid,
  .event-rail,
  .publication-grid,
  .resource-grid,
  .library-grid,
  .works-grid,
  .path-principle-grid,
  .cadre-checklist,
  .author-index-grid,
  .topic-index-grid,
  .article-info-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-stages::before {
    left: 36px;
  }

  .stage-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

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

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

  .membership-box {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 42px);
    line-height: 1.12;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    align-content: start;
    min-height: auto;
    padding: 92px 0 78px;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-search {
    margin-top: 22px;
  }

  .hero-badges {
    gap: 6px;
    margin-top: 16px;
  }

  .hero-badges span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .quick-access {
    margin-top: -42px;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-search {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 6px;
    padding: 6px;
  }

  .site-search input {
    padding: 11px 12px;
  }

  .site-search button {
    min-height: 44px;
    padding: 0 10px;
  }

  .search-results {
    position: static;
    margin-top: 8px;
  }

  .principle-grid,
  .quick-access,
  .network-status,
  .impact-strip,
  .workstream-grid,
  .event-rail,
  .publication-grid,
  .resource-grid,
  .library-grid,
  .works-grid,
  .path-principle-grid,
  .cadre-checklist,
  .author-index-grid,
  .topic-index-grid,
  .article-info-grid,
  .roadmap-grid,
  .tab-list {
    grid-template-columns: 1fr;
  }

  .site-search-box {
    grid-template-columns: 1fr;
  }

  .site-search-box .button {
    width: 100%;
  }

  .page-hero {
    padding: 108px 0 48px;
  }

  .page-hero h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .library-header {
    display: grid;
    gap: 12px;
  }

  .library-controls,
  .works-controls {
    grid-template-columns: 1fr;
  }

  .reader-shell {
    width: min(100% - 24px, var(--reader-width, 960px));
    padding-top: 104px;
  }

  .reader-card,
  .reader-missing {
    padding: 22px;
  }

  .reader-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .reader-exit-actions {
    display: flex;
  }

  .reader-back,
  .reader-exit-link,
  .reader-start-link {
    justify-content: center;
  }

  .reader-card h1,
  .reader-missing h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .reader-summary {
    font-size: 16px;
  }

  .reader-insight {
    grid-template-columns: 1fr;
  }

  .reader-settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
  }

  .reader-toolbar {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reader-toolbar.is-open {
    display: grid;
  }

  .reader-tool-group {
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 8px;
  }

  .reader-copy {
    width: 100%;
    margin-left: 0;
  }

  .reader-progress-label {
    width: 100%;
    text-align: center;
  }

  .reader-actions {
    display: grid;
  }

  .reader-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .reader-toc strong,
  .reader-toc a {
    flex: 0 0 auto;
  }

  .reader-body [data-reader-body] {
    max-width: 100%;
  }

  .reader-nav-links,
  .reader-related-grid,
  .three-step-grid,
  .guide-grid,
  .reader-training-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .guide-panel-wide {
    grid-column: auto;
  }

  .path-stages::before {
    display: none;
  }

  .stage-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stage-number {
    position: static;
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .stage-content {
    padding: 20px;
  }

  .stage-detail-grid,
  .stage-reading-grid {
    grid-template-columns: 1fr;
  }

  .stage-path-layout {
    display: block;
  }

  .stage-path-nav {
    position: sticky;
    top: 64px;
    z-index: 5;
    display: flex;
    max-height: none;
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .stage-path-nav a {
    flex: 0 0 auto;
  }

  .stage-reading-intro {
    display: grid;
    gap: 8px;
  }

  .stage-reading-actions .button {
    flex: 1 1 100%;
  }

  .reading-list a {
    align-items: flex-start;
    min-height: 0;
  }

  .filter-toolbar,
  .module-toolbar,
  .author-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-chip,
  .module-chip,
  .author-chip {
    flex: 0 0 auto;
  }

  .network-status article,
  .impact-strip div,
  .resource-card,
  .faq-list summary {
    padding: 20px;
  }

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

  .hero-actions .button {
    min-height: 50px;
    padding-inline: 10px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-metrics div {
    padding: 12px 10px;
  }

  .hero-metrics dt {
    font-size: 24px;
  }

  .hero-metrics dd {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  .tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tab:last-child {
    border-bottom: 0;
  }
}

@media print {
  .site-header,
  .hero-canvas,
  .hero-search,
  .hero-actions,
  .nav-toggle,
  .back-to-top,
  .scroll-progress,
  .filter-toolbar,
  .join-form,
  script {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: #fff;
  }

  .hero-shade {
    display: none;
  }

  .hero-content {
    min-height: auto;
    padding: 32px 0;
  }

  .section,
  .principle-band,
  .publications {
    width: 100%;
    padding: 28px 0;
    color: #000;
    background: #fff;
  }

  .workstream,
  .resource-card,
  .publication-grid article,
  .event-rail article,
  .roadmap-grid article,
  .faq-list details {
    break-inside: avoid;
    box-shadow: none;
  }
}

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

/* Article reading experience upgrade */
.file-preview-notice {
  max-width: var(--wide);
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(162, 15, 30, 0.32);
  border-radius: 10px;
  color: var(--ink);
  background: #fff7f4;
  box-shadow: var(--shadow-soft);
}

.file-preview-notice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
}

.file-preview-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.file-preview-notice code {
  border: 1px solid rgba(162, 15, 30, 0.16);
  border-radius: 6px;
  padding: 2px 5px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.article-enhanced main {
  --article-font-size: 18px;
  --article-line-height: 1.85;
  --article-max-width: 880px;
}

body[data-article-theme="sepia"] {
  background: #f6f0e7;
}

body[data-article-theme="sepia"] .article-hero,
body[data-article-theme="sepia"] .section,
body[data-article-theme="sepia"] .article-reading-tools,
body[data-article-theme="sepia"] .site-header {
  background-color: rgba(255, 250, 241, 0.96);
}

body[data-article-theme="dark"] {
  color: #eeeae2;
  background: #12100f;
}

body[data-article-theme="dark"] .site-header,
body[data-article-theme="dark"] .article-hero,
body[data-article-theme="dark"] .section,
body[data-article-theme="dark"] .article-reading-tools,
body[data-article-theme="dark"] .breadcrumb,
body[data-article-theme="dark"] .article-info-grid article,
body[data-article-theme="dark"] .prose-panel,
body[data-article-theme="dark"] .guide-panel,
body[data-article-theme="dark"] .reader-related-card {
  color: #eeeae2;
  border-color: rgba(255, 255, 255, 0.12);
  background: #1b1918;
}

body[data-article-theme="dark"] .article-hero p,
body[data-article-theme="dark"] .section p,
body[data-article-theme="dark"] .guide-panel p,
body[data-article-theme="dark"] .prose-panel p,
body[data-article-theme="dark"] .reader-related-card small,
body[data-article-theme="dark"] .breadcrumb,
body[data-article-theme="dark"] .breadcrumb a,
body[data-article-theme="dark"] .article-info-grid small {
  color: #c7c0b7;
}

body[data-article-theme="dark"] .site-nav a,
body[data-article-theme="dark"] .brand,
body[data-article-theme="dark"] .article-reading-tools button,
body[data-article-theme="dark"] .article-mini-toc a {
  color: #eeeae2;
}

body[data-article-theme="dark"] .article-reading-tools button,
body[data-article-theme="dark"] .article-mini-toc a {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.article-focus-mode .site-header,
.article-focus-mode .breadcrumb,
.article-focus-mode .article-info-grid,
.article-focus-mode .article-copyright,
.article-focus-mode .article-guide-source,
.article-focus-mode .article-related,
.article-focus-mode .site-footer,
.article-focus-mode .back-to-top {
  opacity: 0.18;
  transition: opacity 180ms ease;
}

.article-focus-mode .site-header:hover,
.article-focus-mode .breadcrumb:hover,
.article-focus-mode .article-info-grid:hover,
.article-focus-mode .article-copyright:hover,
.article-focus-mode .article-guide-source:hover,
.article-focus-mode .article-related:hover,
.article-focus-mode .site-footer:hover {
  opacity: 1;
}

.article-enhanced .article-hero,
.article-enhanced .article-body,
.article-enhanced .article-guide,
.article-enhanced .article-reading-check,
.article-enhanced .article-related,
.article-enhanced .article-context-flags,
.article-enhanced .article-guide-source,
.article-enhanced .article-copyright {
  max-width: var(--article-max-width);
}

.article-enhanced .article-hero p,
.article-enhanced .article-body p,
.article-enhanced .prose-panel p,
.article-enhanced .guide-panel p,
.article-enhanced .guide-list,
.article-enhanced .reader-related-card small,
.article-enhanced .article-context-flags p {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

body[data-lang="en"].article-enhanced .article-hero p,
body[data-lang="en"].article-enhanced .article-body p,
body[data-lang="en"].article-enhanced .prose-panel p,
body[data-lang="en"].article-enhanced .guide-panel p,
body[data-lang="en"].article-enhanced .guide-list,
body[data-lang="en"].article-enhanced .reader-related-card small {
  font-size: calc(var(--article-font-size) - 1px);
}

.article-enhanced .section-heading h2,
.article-enhanced .guide-panel h3,
.article-enhanced .article-body h3 {
  scroll-margin-top: 122px;
}

.article-reading-tools {
  position: sticky;
  z-index: 20;
  top: 78px;
  max-width: var(--wide);
  margin: -30px auto 42px;
  border: 1px solid rgba(162, 15, 30, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.article-tool-summary,
.article-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-tool-summary {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.article-tool-summary strong,
.article-tool-summary [data-article-progress] {
  color: var(--red);
}

.article-tool-details {
  margin-top: 8px;
}

.article-tool-details summary {
  display: inline-flex;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.article-tool-row {
  margin-top: 10px;
}

.article-reading-tools button,
.article-resume {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.article-reading-tools button:hover,
.article-reading-tools button.is-active,
.article-resume:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.article-tool-row strong {
  min-width: 24px;
  text-align: center;
}

.article-mini-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.article-mini-toc a {
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.article-mini-toc a:hover,
.article-mini-toc a.is-active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.section-collapse-button {
  border: 1px solid rgba(162, 15, 30, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--red);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.article-copyright.is-collapsed > :not(.section-heading) {
  display: none;
}

.article-enhanced .article-copyright.is-collapsed {
  padding-bottom: 8px;
}

.article-enhanced .article-info-grid article,
.article-enhanced .guide-panel,
.article-enhanced .prose-panel,
.article-enhanced .reader-related-card {
  border-radius: 12px;
}

.article-enhanced .guide-panel,
.article-enhanced .reader-related-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.article-enhanced .guide-panel:hover,
.article-enhanced .reader-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(162, 15, 30, 0.26);
  box-shadow: var(--shadow-soft);
}

.article-enhanced .citation-box {
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(162, 15, 30, 0.05);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .article-reading-tools {
    position: static;
    margin: 8px var(--pad) 24px;
  }

  .article-tool-details:not([open]) {
    padding-bottom: 0;
  }

  .article-tool-row,
  .article-mini-toc {
    gap: 6px;
  }

  .article-reading-tools button,
  .article-mini-toc a {
    padding: 8px 9px;
  }

  .article-focus-mode .site-header,
  .article-focus-mode .breadcrumb,
  .article-focus-mode .article-info-grid,
  .article-focus-mode .article-copyright,
  .article-focus-mode .article-guide-source,
  .article-focus-mode .article-related,
  .article-focus-mode .site-footer {
    opacity: 1;
  }
}

.data-load-error {
  max-width: var(--wide);
  margin: 24px auto;
  border: 1px solid rgba(162, 15, 30, 0.34);
  border-radius: 12px;
  padding: 18px;
  color: var(--ink);
  background: #fff6f2;
  box-shadow: var(--shadow-soft);
}

.data-load-error strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 18px;
}

.data-load-error p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.75;
}

.data-load-error small {
  color: var(--muted);
  word-break: break-word;
}


/* Final polish: start page, issue flow, footer links, and search prompts */
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-weight: 900; text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.search-prompt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-prompt-grid button { border: 1px solid rgba(162, 15, 30, 0.16); border-radius: 999px; padding: 8px 11px; color: var(--red); background: rgba(162, 15, 30, 0.06); font-weight: 900; cursor: pointer; }
.search-prompt-grid button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.start-routes .step-card, .resource-card { min-height: 100%; }
.code-block { white-space: pre-wrap; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #171717; color: #f7f0e6; }
.article-info-grid article > span:first-child { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.article-copyright .section-heading { margin-bottom: 12px; }
.article-copyright.is-collapsed { opacity: 0.86; }
.article-guide-source .prose-panel strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 999px; background: var(--red); vertical-align: middle; }
@media (max-width: 720px) { .footer-links { justify-content: flex-start; } .site-nav a[data-nav="start"] { display: inline-flex; } }


/* Article layout polish: cleaner static article reading pages */
.article-enhanced {
  background:
    radial-gradient(circle at 8% 0%, rgba(162, 15, 30, 0.045), transparent 32rem),
    linear-gradient(180deg, #faf8f5 0%, #fff 20rem);
}

.article-enhanced main {
  --article-font-size: 18px;
  --article-line-height: 1.88;
  --article-max-width: 820px;
}

.article-enhanced .breadcrumb {
  max-width: var(--article-max-width);
  margin-top: 18px;
}

.article-enhanced .article-hero {
  max-width: var(--article-max-width);
  padding: 112px 0 28px;
}

.article-enhanced .article-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.article-enhanced .article-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: #514a44;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.8;
}

.article-enhanced .hero-actions {
  margin-top: 22px;
}

.article-enhanced .section {
  padding: 34px 0;
}

.article-enhanced .section + .section:not(.principle-band):not(.publications) {
  border-top: 0;
}

.article-enhanced .section-heading {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.article-enhanced .section-heading h2 {
  max-width: 760px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.026em;
}

.article-enhanced .section-heading p {
  max-width: 760px;
  font-size: 15px;
}

.article-enhanced section.article-info-grid {
  width: min(100% - 36px, var(--article-max-width));
  max-width: var(--article-max-width);
  margin: 10px auto;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.article-enhanced section.article-info-grid + section.article-info-grid {
  margin-top: 8px;
}

.article-enhanced .article-info-grid article {
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.04);
}

.article-enhanced .article-info-grid article > span:first-child {
  font-size: 10px;
}

.article-enhanced .article-info-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}

.article-enhanced .article-info-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.article-enhanced .article-guide,
.article-enhanced .article-reading-check,
.article-enhanced .article-body,
.article-enhanced .article-related,
.article-enhanced .article-context-flags,
.article-enhanced .article-guide-source,
.article-enhanced .article-copyright {
  width: min(100% - 36px, var(--article-max-width));
  max-width: var(--article-max-width);
}

.article-enhanced .article-guide,
.article-enhanced .article-reading-check,
.article-enhanced .article-body {
  position: relative;
}

.article-enhanced .article-guide::before,
.article-enhanced .article-reading-check::before,
.article-enhanced .article-body::before {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: -22px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(162, 15, 30, 0.44), rgba(162, 15, 30, 0.04));
  content: "";
}

.article-enhanced .prose-panel,
.article-enhanced .guide-panel,
.article-enhanced .reader-related-card {
  border-radius: 18px;
  border-color: rgba(162, 15, 30, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.055);
}

.article-enhanced .prose-panel {
  padding: clamp(18px, 3vw, 28px);
}

.article-enhanced .guide-grid,
.article-enhanced .reader-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-enhanced .guide-panel {
  padding: 18px;
}

.article-enhanced .guide-panel h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.012em;
}

.article-enhanced .guide-list {
  padding-left: 1.18em;
}

.article-enhanced .guide-list li + li {
  margin-top: 8px;
}

.article-enhanced .article-hero p,
.article-enhanced .article-body p,
.article-enhanced .prose-panel p,
.article-enhanced .guide-panel p,
.article-enhanced .guide-list,
.article-enhanced .reader-related-card small,
.article-enhanced .article-context-flags p {
  letter-spacing: 0.004em;
}

.article-enhanced .prose-panel p + p {
  margin-top: 0.9em;
}

.article-enhanced .reader-source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.article-enhanced .reader-source-list a {
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 900;
}

.article-enhanced .citation-box {
  margin-top: 12px;
  font-size: 14px;
}

.article-enhanced .article-copyright {
  border: 1px solid rgba(162, 15, 30, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.66);
}

.article-enhanced .article-copyright .section-heading {
  margin-bottom: 0;
}

.article-enhanced .article-copyright .section-heading h2 {
  font-size: clamp(18px, 2vw, 25px);
}

.article-enhanced .article-copyright:not(.is-collapsed) {
  padding-bottom: 22px;
}

.article-enhanced .article-guide-source {
  border: 1px solid rgba(162, 15, 30, 0.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.article-enhanced .article-guide-source .section-heading {
  margin-bottom: 12px;
}

.article-enhanced .article-guide-source .section-heading h2 {
  font-size: clamp(20px, 2vw, 28px);
}

.article-enhanced .article-guide-source .prose-panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.article-enhanced .reader-related-card {
  padding: 16px;
}

.article-enhanced .reader-related-card strong {
  font-size: 16px;
}

.article-enhanced .reader-related-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.article-reading-tools {
  border-radius: 18px;
}

.article-reading-tools .article-tool-summary {
  gap: 10px;
}

.article-reading-tools [data-article-progress] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
}

.article-tool-details summary {
  margin-top: 4px;
  padding: 6px 0;
}

.article-tool-row {
  align-items: center;
}

.article-mini-toc {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.article-mini-toc a {
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.35;
}

.article-reading-tools button,
.article-resume {
  min-height: 34px;
}

body[data-article-theme="sepia"].article-enhanced {
  background:
    radial-gradient(circle at 8% 0%, rgba(162, 15, 30, 0.06), transparent 32rem),
    #f6f0e7;
}

body[data-article-theme="dark"].article-enhanced {
  background:
    radial-gradient(circle at 8% 0%, rgba(162, 15, 30, 0.12), transparent 32rem),
    #12100f;
}

body[data-article-theme="dark"] .article-enhanced .article-info-grid article,
body[data-article-theme="dark"] .article-guide-source,
body[data-article-theme="dark"] .article-copyright {
  background: #1b1918;
}

@media (min-width: 1440px) {
  .article-enhanced .breadcrumb,
  .article-enhanced .article-hero,
  .article-enhanced section.article-info-grid,
  .article-enhanced .article-guide,
  .article-enhanced .article-reading-check,
  .article-enhanced .article-body,
  .article-enhanced .article-related,
  .article-enhanced .article-context-flags,
  .article-enhanced .article-guide-source,
  .article-enhanced .article-copyright {
    margin-left: max(48px, calc((100vw - 1320px) / 2));
    margin-right: auto;
  }

  .article-reading-tools {
    position: fixed;
    top: 96px;
    right: max(32px, calc((100vw - 1320px) / 2));
    width: 292px;
    max-height: calc(100vh - 124px);
    margin: 0;
    overflow: auto;
  }

  .article-reading-tools .article-tool-row {
    gap: 7px;
  }

  .article-reading-tools .article-tool-summary {
    align-items: flex-start;
  }

  .article-reading-tools .article-tool-summary span:last-child {
    flex-basis: 100%;
  }

  .article-reading-tools button,
  .article-mini-toc a {
    font-size: 11px;
  }
}

@media (max-width: 960px) {
  .article-enhanced .article-hero {
    padding: 96px 0 22px;
  }

  .article-enhanced .article-hero h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .article-enhanced section.article-info-grid {
    grid-template-columns: 1fr;
  }

  .article-enhanced .guide-grid,
  .article-enhanced .reader-related-grid,
  .article-enhanced .reader-source-list {
    grid-template-columns: 1fr;
  }

  .article-enhanced .section {
    padding: 26px 0;
  }

  .article-enhanced .article-guide::before,
  .article-enhanced .article-reading-check::before,
  .article-enhanced .article-body::before {
    display: none;
  }

  .article-reading-tools {
    border-radius: 14px;
  }

  .article-tool-summary {
    align-items: center;
  }

  .article-tool-details:not([open]) .article-mini-toc {
    display: none;
  }
}

@media (max-width: 560px) {
  .article-enhanced .article-hero,
  .article-enhanced .breadcrumb,
  .article-enhanced .article-guide,
  .article-enhanced .article-reading-check,
  .article-enhanced .article-body,
  .article-enhanced .article-related,
  .article-enhanced .article-context-flags,
  .article-enhanced .article-guide-source,
  .article-enhanced .article-copyright,
  .article-enhanced section.article-info-grid {
    width: min(100% - 24px, var(--article-max-width));
  }

  .article-enhanced .article-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .article-reading-tools {
    margin: 6px 12px 18px;
    padding: 10px;
  }

  .article-reading-tools button,
  .article-mini-toc a {
    padding: 7px 8px;
  }

  .article-mini-toc {
    max-height: 180px;
  }
}

/* Specific work pages: productized reading layout */
.article-enhanced .reading-hero {
  width: min(100% - 36px, 1320px);
  max-width: 1320px;
  padding: 98px 0 28px;
}

.article-enhanced .reading-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.article-title-secondary {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  font-weight: 800;
}

.reading-hero-summary {
  max-width: 820px;
}

.reading-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.reading-hero-copy {
  min-width: 0;
}

.reading-hero-meta {
  max-width: 900px;
}

.article-visual-figure,
.reader-visual-card {
  margin: 0;
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.065);
  overflow: hidden;
}

.article-visual-hero {
  align-self: stretch;
  max-width: 420px;
  justify-self: end;
}

.article-visual-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(162, 15, 30, 0.12), transparent 42%),
    #171717;
  overflow: hidden;
}

.article-visual-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.article-visual-figure:hover .article-visual-media img,
.reader-visual-card:hover .article-visual-media img {
  transform: scale(1.015);
}

.article-visual-media img {
  transition: transform 220ms ease;
}

.article-visual-figure figcaption,
.reader-visual-card figcaption {
  display: grid;
  gap: 7px;
  padding: 13px 14px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-visual-figure figcaption strong,
.reader-visual-card figcaption strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.visual-source-link {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.visual-source-link:hover {
  text-decoration: underline;
}

.article-visual-figure.is-image-missing .article-visual-media,
.reader-visual-card.is-image-missing .article-visual-media {
  display: none;
}

.reader-visual-slot {
  margin: 18px 0 8px;
}

.reader-visual-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: stretch;
}

.reader-visual-card .article-visual-media {
  aspect-ratio: 4 / 3;
}

.reader-visual-card figcaption {
  align-content: center;
}

.reading-layout {
  width: min(100% - 36px, 1320px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 0 clamp(72px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 320px);
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.reading-main {
  min-width: 0;
}

.article-enhanced .reading-main-card,
.article-enhanced .reading-collapse-section {
  width: auto;
  max-width: none;
  margin: 0 0 24px;
  border: 1px solid rgba(162, 15, 30, 0.12);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.052);
}

.article-enhanced .reading-main-card::before,
.article-enhanced .reading-collapse-section::before {
  display: none;
}

.article-enhanced .reading-main-card-primary {
  border-color: rgba(162, 15, 30, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 244, 0.72)),
    var(--white);
}

.article-enhanced .reading-main-card .section-heading {
  margin-bottom: 18px;
}

.article-enhanced .reading-main-card .section-heading h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.08;
}

.article-enhanced .reading-main-card h3 {
  font-size: clamp(20px, 2vw, 24px);
}

.article-enhanced .reading-main-card p,
.article-enhanced .reading-main-card li,
.article-enhanced .reading-prose-card p {
  font-size: var(--article-font-size, 18px);
  line-height: var(--article-line-height, 1.88);
}

body[data-lang="en"].article-enhanced .reading-main-card p,
body[data-lang="en"].article-enhanced .reading-main-card li,
body[data-lang="en"].article-enhanced .reading-prose-card p {
  font-size: calc(var(--article-font-size, 18px) - 1px);
}

.article-enhanced .reading-guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-enhanced .reading-question-panel {
  box-shadow: none;
}

.reading-contents-card {
  display: none;
}

.reading-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding-right: 2px;
}

.reading-sidebar-card,
.reading-sidebar .article-reading-tools {
  border: 1px solid rgba(162, 15, 30, 0.13);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.05);
}

.reading-sidebar-card {
  display: grid;
  gap: 12px;
}

.reading-sidebar-card strong {
  color: var(--ink);
  font-size: 15px;
}

.reading-sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.reading-sidebar-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.reading-sidebar-card dl div {
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  padding-top: 8px;
}

.reading-sidebar-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.reading-sidebar-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.reading-sidebar-toc,
.reading-sidebar-actions {
  display: grid;
  gap: 8px;
}

.reading-sidebar-toc a,
.reading-sidebar-actions a {
  border: 1px solid rgba(162, 15, 30, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.reading-sidebar-toc a:hover,
.reading-sidebar-actions a:hover {
  border-color: rgba(162, 15, 30, 0.34);
  background: rgba(162, 15, 30, 0.06);
}

.reading-sidebar .reader-source-list {
  margin-top: 0;
}

.reading-sidebar .reader-source-list a {
  min-height: auto;
  padding: 9px 10px;
  justify-content: flex-start;
  font-size: 12px;
}

.reading-sidebar .article-reading-tools {
  position: static !important;
  width: auto !important;
  max-height: none !important;
  margin: 0;
  overflow: visible;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.05);
}

.reading-sidebar .article-tool-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.reading-sidebar .article-tool-summary span:last-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.reading-sidebar .article-tool-details {
  margin-top: 12px;
}

.reading-sidebar .article-tool-details summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.reading-sidebar .article-tool-row[role="group"] {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.reading-sidebar .article-mini-toc {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  max-height: 250px;
}

.reading-collapse {
  border: 0;
  padding: 0;
  background: transparent;
}

.reading-collapse summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.reading-collapse summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reading-collapse[open] summary {
  margin-bottom: 18px;
}

.article-enhanced .reading-rights-grid {
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-article-theme="dark"].article-enhanced .reading-main-card,
body[data-article-theme="dark"].article-enhanced .reading-collapse-section,
body[data-article-theme="dark"].article-enhanced .reading-sidebar-card,
body[data-article-theme="dark"].article-enhanced .reading-sidebar .article-reading-tools,
body[data-article-theme="dark"].article-enhanced .article-visual-figure,
.reader-shell[data-reader-theme="dark"] .reader-visual-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1b1918;
  box-shadow: none;
}

body[data-article-theme="dark"].article-enhanced .reading-sidebar-card strong,
body[data-article-theme="dark"].article-enhanced .reading-sidebar-card dd,
body[data-article-theme="dark"].article-enhanced .reading-collapse summary,
body[data-article-theme="dark"].article-enhanced .article-visual-figure figcaption strong,
.reader-shell[data-reader-theme="dark"] .reader-visual-card figcaption strong {
  color: #eeeae2;
}

body[data-article-theme="dark"].article-enhanced .reading-sidebar-card p,
body[data-article-theme="dark"].article-enhanced .reading-sidebar-card dt,
body[data-article-theme="dark"].article-enhanced .reading-collapse summary small,
body[data-article-theme="dark"].article-enhanced .article-visual-figure figcaption,
.reader-shell[data-reader-theme="dark"] .reader-visual-card figcaption {
  color: #bdb8ae;
}

@media (min-width: 1440px) {
  .article-enhanced .reading-hero,
  .article-enhanced .reading-layout {
    margin-left: auto;
    margin-right: auto;
  }
}

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

  .article-visual-hero {
    justify-self: stretch;
    max-width: none;
  }

  .article-visual-hero .article-visual-media {
    max-height: 320px;
  }

  .article-visual-hero .article-visual-media img {
    object-fit: cover;
  }

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

  .reading-sidebar {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
  }

  .reading-sidebar-card {
    display: none;
  }

  .reading-sidebar-card:first-of-type {
    display: grid;
  }

  .reading-sidebar .article-tool-details:not([open]) .article-mini-toc {
    display: none;
  }
}

@media (max-width: 700px) {
  .article-enhanced .reading-hero,
  .reading-layout {
    width: min(100% - 24px, 1320px);
  }

  .article-enhanced .reading-hero {
    padding-top: 88px;
  }

  .article-enhanced .reading-hero h1 {
    font-size: clamp(36px, 11vw, 44px);
  }

  .article-enhanced .reading-main-card,
  .article-enhanced .reading-collapse-section {
    border-radius: 14px;
    padding: 18px;
  }

  .article-enhanced .reading-guide-grid,
  .article-enhanced .reading-rights-grid {
    grid-template-columns: 1fr;
  }

  .reading-collapse summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-visual-card {
    grid-template-columns: 1fr;
  }

  .reader-visual-card .article-visual-media {
    max-height: 260px;
  }
}

/* Dynamic reader page: move tools into a quiet desktop sidebar without changing data hooks */
@media (min-width: 1000px) {
  .reader-shell {
    width: min(100% - 36px, 1320px);
  }

  .reader-card {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(340px, 390px);
    gap: 18px clamp(28px, 3vw, 40px);
    align-items: start;
  }

  .reader-card > .eyebrow,
  .reader-card > h1,
  .reader-card > .reader-meta,
  .reader-card > .reader-summary,
  .reader-card > .reader-visual-slot,
  .reader-card > .reader-insight,
  .reader-card > .reader-settings-toggle {
    grid-column: 1 / -1;
  }

  .reader-toolbar {
    grid-column: 2;
    grid-row: 6;
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
    align-items: stretch;
    margin: 0;
    border-color: rgba(17, 17, 17, 0.11);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 22px 46px rgba(17, 17, 17, 0.08);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
  }

  .reader-actions {
    grid-column: 2;
    grid-row: 7;
    display: grid;
    margin: 0;
  }

  .reader-toc {
    grid-column: 2;
    grid-row: 8;
    display: grid;
    margin: 0;
    border-radius: 16px;
  }

  .reader-body {
    grid-column: 1;
    grid-row: 6 / span 3;
    max-width: 860px;
  }

  .reader-training,
  .reader-reading-group,
  .reader-nav-links,
  .reader-related {
    grid-column: 1 / -1;
  }

  .reader-tool-group {
    display: grid;
    grid-template-columns: minmax(64px, 0.72fr) repeat(3, minmax(48px, 56px));
    justify-content: stretch;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 64px;
    padding: 0 0 10px;
  }

  .reader-tool-group:last-of-type {
    border-bottom: 0;
  }

  .reader-tool-group > span {
    font-size: 14px;
    line-height: 1.1;
  }

  .reader-tool-group strong {
    display: grid;
    min-width: 48px;
    height: 52px;
    place-items: center;
    font-size: 21px;
    line-height: 1;
  }

  .reader-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 52px;
    padding: 0 13px;
    border-color: rgba(17, 17, 17, 0.12);
    font-size: 14px;
    line-height: 1;
  }

  .reader-tool-group .reader-tool-button {
    justify-content: center;
    padding-inline: 0;
  }

  .reader-toolbar > .reader-tool-button {
    width: 100%;
    min-height: 48px;
    justify-self: stretch;
    font-size: 14px;
  }

  .reader-toolbar > .reader-tool-button.is-active,
  .reader-toolbar > .reader-tool-button[data-reader-focus][aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .reader-progress-label {
    justify-self: center;
    min-width: 52px;
    padding-top: 2px;
    text-align: center;
  }

  .reader-copy {
    margin-left: 0;
  }
}

@media (max-width: 999px) {
  .reader-shell {
    width: min(100% - 24px, var(--reader-width, 960px));
  }

  .reader-reading-group-grid {
    grid-template-columns: 1fr;
  }
}

/* Doc 6 production-polish additions: policy pages, review queue, and long-read mobile ergonomics. */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}
.policy-grid .prose-panel,
.review-queue-list li {
  border: 1px solid rgba(162, 15, 30, 0.14);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.052);
}
.review-queue-list {
  columns: 2;
  column-gap: 32px;
}
.review-queue-list li {
  break-inside: avoid;
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.86);
}
.review-queue-list small {
  color: var(--muted);
  font-weight: 700;
}
.reader-source-usage details,
.reader-notice details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.72);
}
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; }
  .review-queue-list { columns: 1; }
  .reader-shell { width: min(100% - 20px, 100%); }
  .reader-card { padding: 18px; }
  .reader-summary, .reader-body p, .reader-training-card p, .reader-reading-session p { font-size: 17px; line-height: 1.82; }
  .reader-toolbar { max-height: min(72vh, 520px); overflow: auto; }
  .back-to-top { bottom: 18px; right: 14px; }
}

/* Final operations dashboard */
[data-page="policy"] table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
[data-page="policy"] td, [data-page="policy"] th { border-bottom: 1px solid rgba(120, 46, 46, 0.18); padding: 0.7rem 0.4rem; text-align: left; vertical-align: top; }
[data-page="policy"] code { background: rgba(120, 46, 46, 0.08); padding: 0.12rem 0.28rem; border-radius: 0.35rem; }
@media (max-width: 720px) { [data-page="policy"] table { font-size: 0.86rem; } [data-page="policy"] td, [data-page="policy"] th { padding: 0.55rem 0.25rem; } }


/* Follow-up operations hardening */
.publication-status-strip,
.core-priority-badge {
  border: 1px solid rgba(162, 15, 30, .22);
  border-left: 4px solid #a20f1e;
  background: rgba(162, 15, 30, .055);
  border-radius: 16px;
  padding: .85rem 1rem;
  margin: .8rem 0;
  display: grid;
  gap: .35rem;
}
.publication-status-strip span,
.core-priority-badge span { font-size: .94rem; }
.core-priority-badge { background: rgba(30, 30, 30, .045); border-left-color: #2b1115; }
.core-reading-check .guide-list { padding-left: 1.25rem; }
.outcome-question-list li,
.misreading-list li { margin: .55rem 0; }
.article-feedback-panel { border: 1px solid rgba(20,20,20,.09); }
.article-feedback-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin: .9rem 0 1rem;
}
.status-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.status-card {
  border: 1px solid rgba(20,20,20,.1);
  border-radius: 18px;
  padding: 1rem;
  background: #fffdf9;
  display: grid;
  gap: .55rem;
}
.status-card > span { color: #a20f1e; font-weight: 800; }
.ops-checklist { display: grid; gap: .9rem; padding-left: 1.2rem; }
.ops-checklist li { padding: .75rem 1rem; background: rgba(0,0,0,.035); border-radius: 14px; }
@media (max-width: 760px) {
  .publication-status-strip,
  .core-priority-badge { border-radius: 14px; }
  .article-feedback-actions .button { width: 100%; justify-content: center; }
}


/* Production polish: no-JS notice, keyboard affordances, and print-friendly longform pages */
.noscript-warning {
  margin: 84px auto 0;
  max-width: var(--max);
  border: 1px solid rgba(162, 15, 30, 0.28);
  border-left: 5px solid var(--red);
  border-radius: 16px;
  padding: 14px 18px;
  background: #fff8f7;
  box-shadow: var(--shadow-soft);
}

.site-nav a[aria-current="page"] {
  border-color: rgba(162, 15, 30, 0.42);
  background: rgba(162, 15, 30, 0.08);
}

.heading-anchor {
  display: inline-flex;
  margin-left: 0.35em;
  border-radius: 999px;
  padding: 0.05em 0.38em;
  color: var(--red);
  font-size: 0.72em;
  line-height: 1;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
  background: rgba(162, 15, 30, 0.1);
}

body.using-keyboard a:focus,
body.using-keyboard button:focus,
body.using-keyboard input:focus,
body.using-keyboard select:focus,
body.using-keyboard textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media print {
  html { scroll-behavior: auto; }
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 12pt;
  }
  .site-header,
  .footer,
  .back-to-top,
  .scroll-progress,
  .article-reading-tools,
  .reading-sidebar,
  .hero-actions,
  .site-search-panel,
  .nav-toggle,
  .language-toggle,
  .article-feedback-panel,
  .article-visual-figure,
  canvas {
    display: none !important;
  }
  main,
  .section,
  .page-hero,
  .reading-main,
  .reading-main-card {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  a { text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  h1, h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}


/* First-visit polish applied after live review */
.new-reader-path {
  width: min(720px, 100%);
  margin: 24px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.new-reader-path a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-status-detail {
  display: block;
  margin-top: 18px;
  padding: 0;
}

.publication-status-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.publication-status-detail summary::-webkit-details-marker {
  display: none;
}

.status-summary-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publication-status-detail-body {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
}

.publication-status-detail-body p {
  margin: 0;
  color: var(--muted);
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  margin-top: 18px;
  text-align: left;
}

.footer-link-group h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-link-group p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
}

.footer-link-group a {
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.footer-link-group a:hover {
  color: var(--red);
}

@media (max-width: 900px) {
  .footer-link-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body[data-page="home"] .hero-content {
    padding-bottom: 48px;
  }

  body[data-page="home"] .hero-badges,
  body[data-page="home"] .hero-metrics {
    display: none;
  }

  .new-reader-path {
    margin-top: 18px;
    padding: 12px 13px;
    font-size: 14px;
    line-height: 1.55;
  }

  .footer-link-groups {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .publication-status-detail summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* IMRA masterpiece v2 */
.start-sprint-grid,
.concept-grid,
.route-decision-grid,
.topic-map-grid,
.manifesto-principles,
.text-network-grid,
.citation-format-grid,
.entry-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.start-sprint-card,
.concept-card,
.route-decision-card,
.topic-map-card,
.manifesto-principle,
.text-network-card,
.citation-format-card,
.entry-pack-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
}
.start-sprint-card > span,
.route-decision-card > span,
.topic-map-card > span,
.text-network-card > span,
.entry-pack-card > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  margin-bottom: 12px;
}
.start-sprint-card h3,
.concept-card h3,
.route-decision-card h3,
.topic-map-card h3,
.manifesto-principle h3,
.text-network-card h3,
.citation-format-card h3,
.entry-pack-card h3 { margin: 0 0 8px; }
.start-sprint-card p,
.concept-card p,
.route-decision-card p,
.topic-map-card p,
.manifesto-principle p,
.text-network-card p,
.entry-pack-card p { color: var(--muted); }
.topic-map-card ul,
.text-network-card ul,
.citation-format-card ul,
.entry-pack-card ul { padding-left: 1.2rem; }
.topic-map-card li + li,
.text-network-card li + li,
.entry-pack-card li + li { margin-top: 6px; }
.pathway-ribbon,
.manifesto-ribbon {
  border: 1px solid rgba(162,15,30,0.22);
  border-left: 6px solid var(--red);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(162,15,30,0.08), rgba(255,255,255,0.82));
}
.pathway-ribbon strong,
.manifesto-ribbon strong { font-size: 1.15rem; }
.citation-format-card code,
.citation-format-text {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--coal);
}
.citation-format-card button,
.text-network-card .button,
.topic-map-card .button { margin-top: 10px; }
.text-network-card a:not(.button),
.topic-map-card a:not(.button) { color: var(--red); font-weight: 800; }
.topic-map-card .topic-work-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.topic-map-card .topic-work-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
}
.manifesto-quote {
  margin: 0;
  border-left: 6px solid var(--red);
  padding: 22px 24px;
  border-radius: 0 18px 18px 0;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  font-weight: 850;
}
.article-reading-tools .article-mini-toc a.is-active { color: var(--red); border-left-color: var(--red); }
@media (max-width: 720px) {
  .start-sprint-grid,
  .concept-grid,
  .route-decision-grid,
  .topic-map-grid,
  .manifesto-principles,
  .text-network-grid,
  .citation-format-grid,
  .entry-pack-grid { grid-template-columns: 1fr; }
  .start-sprint-card,
  .concept-card,
  .route-decision-card,
  .topic-map-card,
  .manifesto-principle,
  .text-network-card,
  .citation-format-card,
  .entry-pack-card { padding: 18px; }
}


/* IMRA v2.2 language and reading polish */
.article-title-secondary .original-title-label {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.citation-format-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-mini-toc a.is-active {
  border-color: rgba(162, 15, 30, 0.48);
  background: rgba(162, 15, 30, 0.09);
}


/* v23 production polish */
.version-evidence-grid .guide-panel strong { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.release-validation-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-weight: 800; background: rgba(20, 120, 70, 0.1); border: 1px solid rgba(20, 120, 70, 0.25); }
.status-pill.is-pass::before { content: "✓"; }
.release-list { margin-top: 8px; }
.contribute-task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contribution-template { white-space: pre-wrap; overflow-x: auto; border-radius: 18px; padding: 18px; background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.08); }
.search-highlight { border-radius: 4px; padding: 0 2px; background: rgba(255, 221, 87, 0.42); color: inherit; }
.article-neighbor-nav h3 { margin-top: 22px; }
.article-neighbor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.article-neighbor-grid .reader-related-card { height: 100%; }
body[data-article-theme="dark"] .contribution-template { background: rgba(255, 255, 255, 0.06); border-color: rgba(255,255,255,0.12); }
