:root {
  --paper: #faf8f4;
  --paper-deep: #f4f1eb;
  --ink: #1a1612;
  --ink-strong: #2e2922;
  --ink-soft: #524b42;
  --ink-faint: #766e65;
  --ink-quiet: #b5afa6;
  --line: #e4e0d9;
  --accent: #1d2552;
  --accent-soft: rgba(29, 37, 82, 0.06);
  --green: #2d6a4f;
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "Heiti SC", "SimHei", sans-serif;
  --content: 1080px;
  --type-content-page-title-size: clamp(36px, 3.6vw, 46px);
  --type-content-page-title-leading: 1.22;
  --type-content-section-title-size: clamp(28px, 2.5vw, 32px);
  --type-content-section-title-leading: 1.34;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(29, 37, 82, 0.025) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45, 106, 79, 0.022) 0, transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(calc(100% - 40px), var(--content));
  min-height: 73px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 89px;
  height: 36px;
  flex: 0 0 89px;
  background: url("/assets/juxian-wordmark.svg") center / contain no-repeat;
}

.brand-name {
  display: none;
}

.brand small {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--ink-quiet);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(32, 40, 81, 0.17); }

.button.secondary { background: transparent; color: var(--accent); }

.button.text {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.hero,
.page-hero,
.section,
.site-footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding-block: 84px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 { margin-top: 0; color: var(--ink); font-family: var(--serif); }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1.17;
  letter-spacing: 0.015em;
}

.page-hero h1 {
  max-width: 880px;
  font-size: var(--type-content-page-title-size);
  line-height: var(--type-content-page-title-leading);
  letter-spacing: 0.01em;
  text-wrap: balance;
  word-break: keep-all;
}

h2 {
  margin-bottom: 18px;
  font-size: var(--type-content-section-title-size);
  line-height: var(--type-content-section-title-leading);
  text-wrap: balance;
}

h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.45; }

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}

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

.editorial-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 24px 24px 0 var(--paper-deep);
}

.editorial-card::before {
  content: "剧";
  position: absolute;
  top: -36px;
  right: 18px;
  color: rgba(32, 40, 81, 0.08);
  font-family: var(--serif);
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
}

.editorial-card ol { position: relative; margin: 0; padding-left: 22px; }
.editorial-card li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.editorial-card li:last-child { border-bottom: 0; }

.section { padding-block: 84px; }
.section.compact { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--line); }

.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading p { margin: 0; color: var(--ink-soft); }

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

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.card .number {
  display: block;
  margin-bottom: 34px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.card p { margin: 0; color: var(--ink-soft); }

.page-hero { padding-block: 92px 70px; }
.page-hero .lead { max-width: 820px; }

:where(
  body[data-content-id="guide-character-motivation"],
  body[data-content-id="script-evaluation"],
  body[data-content-id="adaptation"],
  body[data-content-id="about"]
) {
  --content-reading-measure: 740px;
}

:where(
  body[data-content-id="guide-character-motivation"],
  body[data-content-id="script-evaluation"],
  body[data-content-id="adaptation"],
  body[data-content-id="about"]
) .page-hero .lead,
:where(
  body[data-content-id="guide-character-motivation"],
  body[data-content-id="script-evaluation"],
  body[data-content-id="adaptation"],
  body[data-content-id="about"]
) .page-hero .answer-box,
:where(
  body[data-content-id="guide-character-motivation"],
  body[data-content-id="script-evaluation"],
  body[data-content-id="adaptation"],
  body[data-content-id="about"]
) .article-prose > :where(h2, h3, p, ul, ol) {
  max-width: var(--content-reading-measure);
}

:where(
  body[data-content-id="resources"],
  body[data-content-id="about"],
  body[data-content-id="security-and-copyright"]
) .page-hero {
  padding-block: 36px 24px;
}

:where(
  body[data-content-id="resources"],
  body[data-content-id="about"],
  body[data-content-id="security-and-copyright"]
) .page-hero + .section {
  padding-top: 16px;
}

:where(
  body[data-content-id="resources"],
  body[data-content-id="about"],
  body[data-content-id="security-and-copyright"]
) .page-hero + .section .section-heading {
  margin-bottom: 12px;
}

:where(
  body[data-content-id="script-evaluation"],
  body[data-content-id="guide-script-outline"],
  body[data-content-id="adaptation"]
) .page-hero {
  padding-block: 60px 32px;
}

:where(
  body[data-content-id="script-evaluation"],
  body[data-content-id="guide-script-outline"],
  body[data-content-id="adaptation"]
) .page-hero + .section {
  padding-top: 40px;
}

.breadcrumb { margin-bottom: 26px; color: var(--ink-faint); font-size: 13px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.content-meta span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--ink-quiet);
}

.prose { max-width: 800px; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.answer-box {
  max-width: 860px;
  margin-top: 34px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.42);
}

.answer-box strong { color: var(--ink); font-family: var(--serif); }
.answer-box p { margin: 0; }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }

.link-card {
  display: block;
  min-height: 184px;
  padding: 26px;
  background: var(--paper);
  transition: background-color 160ms ease;
}

.link-card:hover { background: #fff; }
.link-card .eyebrow { margin-bottom: 14px; }
.link-card h3 { margin-bottom: 10px; }
.link-card p { margin: 0; color: var(--ink-soft); }
.link-card .link-label { display: inline-block; margin-top: 18px; color: var(--accent); font-size: 14px; font-weight: 600; }

.article-prose { max-width: 820px; }
.article-prose > p { margin: 0 0 22px; }
.article-prose h2 { margin-top: 64px; }
.article-prose h3 { margin-top: 34px; }
.article-prose ul,
.article-prose ol { padding-left: 1.35em; }
.article-prose li { margin-bottom: 10px; }

/* Keep these reading sections on the page grid without stacking heading gaps. */
:where(
  body[data-content-id="guide-script-outline"],
  body[data-content-id="script-evaluation"]
) .article-prose > h2:first-child,
:where(
  body[data-content-id="guide-script-outline"],
  body[data-content-id="script-evaluation"]
) .article-prose > .eyebrow + h2,
:where(
  body[data-content-id="guide-script-outline"],
  body[data-content-id="script-evaluation"]
) .article-prose .section-heading h2 {
  margin-top: 0;
}

:where(
  body[data-content-id="guide-script-outline"],
  body[data-content-id="script-evaluation"]
) .article-prose > .eyebrow {
  margin-bottom: 20px;
}

body[data-content-id="guide-script-outline"] .article-prose > .step-list {
  padding-left: 0;
}

body[data-content-id="guide-script-outline"] .article-prose .step-list h3 {
  margin-top: 0;
}

:where(
  body[data-content-id="guide-script-outline"],
  body[data-content-id="script-evaluation"]
) .section[id] {
  scroll-margin-top: 96px;
}

@media (min-width: 861px) {
  :where(
    body[data-content-id="guide-script-outline"],
    body[data-content-id="script-evaluation"]
  ) .article-prose {
    margin-left: max(20px, calc((100% - var(--content)) / 2));
    margin-right: auto;
  }

  body[data-content-id="guide-character-motivation"] .article-prose {
    margin-top: -118px;
    margin-right: auto;
    margin-left: max(20px, calc((100% - var(--content)) / 2));
  }
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 11px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; background: rgba(255,255,255,0.34); }

.comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.comparison-table th,
.comparison-table td { padding: 16px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--ink); font-family: var(--serif); font-weight: 700; }

.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 34px 20px 0; color: var(--ink); font-family: var(--serif); font-weight: 700; cursor: pointer; }
.faq-list details p { max-width: 760px; margin: -4px 0 22px; color: var(--ink-soft); }

.template-block { max-width: 900px; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,0.46); }
.template-block pre { margin: 0; overflow-x: auto; white-space: pre-wrap; color: var(--ink-strong); font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.template-note { margin-top: 14px; color: var(--ink-faint); font-size: 13px; }

.fact-list,
.step-list { margin: 0; padding: 0; list-style: none; }

.fact-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.fact-list strong { font-family: var(--serif); }
.fact-list span { color: var(--ink-soft); }

.step-list { counter-reset: step; }
.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.step-list p { margin: 5px 0 0; color: var(--ink-soft); }

.callout {
  padding: 28px 30px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.callout p { margin: 0; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 46px;
  background: var(--accent);
  color: #fff;
}

.cta-band h2 { margin-bottom: 8px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.72); }
.cta-band .button { border-color: #fff; background: #fff; color: var(--accent); white-space: nowrap; }

.site-footer { margin-top: 80px; border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-block: 34px; color: var(--ink-faint); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.error-page { min-height: 100svh; }

.error-shell {
  width: min(calc(100% - 64px), 1200px);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.error-masthead {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.error-masthead .brand { margin-right: 0; }

.error-folio {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.error-folio strong {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.error-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
}

.error-scene {
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(48px, 7vh, 72px) clamp(34px, 5vw, 68px) 38px 0;
  border-right: 1px solid var(--line);
}

.error-scene-label,
.error-scene-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.error-code {
  margin: auto 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(148px, 17.5vw, 246px);
  font-weight: 800;
  letter-spacing: -0.105em;
  line-height: 0.78;
  transform: translateX(-0.045em);
}

.error-scene-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  letter-spacing: 0.16em;
}

.error-copy {
  align-self: center;
  padding: clamp(54px, 8vh, 84px) 0 clamp(54px, 8vh, 84px) clamp(52px, 7vw, 96px);
}

.error-copy .eyebrow { margin-bottom: 28px; }

.error-copy h1 {
  max-width: 640px;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.6vw, 72px);
  line-height: 1.2;
}

.error-copy .lead { max-width: 540px; }

.error-copy .hero-actions { margin-top: 38px; }

.error-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  :root {
    --type-content-page-title-size: clamp(32px, 4.2vw, 36px);
    --type-content-section-title-size: clamp(26px, 3.25vw, 28px);
  }

  .site-nav { flex-wrap: wrap; gap: 16px; padding-block: 16px; }
  .brand { width: 100%; }
  .nav-links { order: 2; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .site-nav > .button { position: absolute; top: 14px; right: 20px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 64px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .editorial-card { box-shadow: 14px 14px 0 var(--paper-deep); }

  .error-shell { width: calc(100% - 28px); }

  .error-masthead { min-height: 72px; }

  .error-masthead .brand { width: auto; }

  .error-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .error-scene {
    min-height: 168px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 8px 16px;
    padding: 24px 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .error-scene-label { align-self: start; }

  .error-code {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    font-size: clamp(92px, 29vw, 116px);
    line-height: 0.76;
  }

  .error-scene-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .error-copy {
    align-self: center;
    padding: 38px 0 46px;
  }

  .error-copy .eyebrow { margin-bottom: 20px; }

  .error-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 12vw, 48px);
    line-height: 1.22;
  }

  .error-copy .lead { font-size: 16px; }

  .error-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .error-copy .button { width: 100%; }

  .error-footer {
    min-height: 68px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 640px) {
  :root {
    --type-content-page-title-size: clamp(29px, 7.7vw, 32px);
    --type-content-page-title-leading: 1.3;
    --type-content-section-title-size: clamp(23px, 6.25vw, 26px);
    --type-content-section-title-leading: 1.4;
  }

  .hero,
  .page-hero,
  .section,
  .site-footer-inner { width: min(calc(100% - 28px), var(--content)); }
  .nav-links { gap: 18px; }
  .nav-links a:nth-last-child(-n+2) { display: none; }
  .brand { gap: 7px; }
  .brand-mark { width: 79px; height: 32px; flex-basis: 79px; }
  .brand small { padding-left: 7px; font-size: 10px; }
  h1 { font-size: 42px; }
  .page-hero h1 {
    max-width: 100%;
    font-size: var(--type-content-page-title-size);
    line-height: var(--type-content-page-title-leading);
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .section { padding-block: 60px; }

  body:where(
    [data-content-id="guide-character-motivation"],
    [data-content-id="script-evaluation"],
    [data-content-id="adaptation"],
    [data-content-id="about"]
  ) {
    line-height: 1.7;
  }

  :where(
    body[data-content-id="guide-character-motivation"],
    body[data-content-id="script-evaluation"],
    body[data-content-id="adaptation"],
    body[data-content-id="about"]
  ) .section {
    padding-block: 48px;
  }

  :where(
    body[data-content-id="guide-character-motivation"],
    body[data-content-id="script-evaluation"],
    body[data-content-id="adaptation"],
    body[data-content-id="about"]
  ) .section.compact {
    padding-block: 36px;
  }

  :where(
    body[data-content-id="guide-character-motivation"],
    body[data-content-id="script-evaluation"],
    body[data-content-id="adaptation"],
    body[data-content-id="about"]
  ) .section-heading {
    margin-bottom: 28px;
  }

  :where(
    body[data-content-id="guide-character-motivation"],
    body[data-content-id="script-evaluation"],
    body[data-content-id="adaptation"],
    body[data-content-id="about"]
  ) .article-prose > p {
    margin-bottom: 18px;
  }

  :where(
    body[data-content-id="guide-character-motivation"],
    body[data-content-id="script-evaluation"],
    body[data-content-id="adaptation"],
    body[data-content-id="about"]
  ) .article-prose h2 {
    margin-top: 48px;
  }

  :where(
    body[data-content-id="script-evaluation"],
    body[data-content-id="guide-script-outline"],
    body[data-content-id="adaptation"]
  ) .page-hero {
    padding-block: 60px 28px;
  }

  :where(
    body[data-content-id="script-evaluation"],
    body[data-content-id="guide-script-outline"],
    body[data-content-id="adaptation"]
  ) .page-hero + .section {
    padding-top: 36px;
  }

  :where(
    body[data-content-id="guide-script-outline"],
    body[data-content-id="script-evaluation"]
  ) .section[id] {
    scroll-margin-top: 128px;
  }

  .content-meta { display: grid; gap: 4px; }
  .content-meta span + span::before { content: none; }
  .fact-list li { grid-template-columns: 1fr; gap: 6px; }
  .comparison-table { display: block; overflow-x: auto; white-space: nowrap; }
  .template-block { padding: 20px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 30px; }
  .site-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* September 14 demand-led articles: keep examples on the hero's reading grid. */
body.demand-content .page-hero { padding-block: 60px 32px; }
body.demand-content .page-hero + .section { padding-top: 40px; }
body.demand-content .article-prose > h2:first-child,
body.demand-content .article-prose .section-heading h2 { margin-top: 0; }
body.demand-content .article-prose > .step-list { padding-left: 0; }
body.demand-content .article-prose .step-list h3 { margin-top: 0; }
body.demand-content [id] { scroll-margin-top: 96px; }
body.demand-content .template-block { margin-block: 20px; }
body.demand-content .template-block pre { overflow-wrap: anywhere; }
body.demand-content .article-jumps { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 15px; }
body.demand-content .article-jumps a { text-decoration: underline; text-underline-offset: 4px; }
body.demand-content .comparison-table { white-space: normal; }
body.demand-content .comparison-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
body.demand-content .comparison-table :is(th, td) { overflow-wrap: anywhere; }
@media (min-width: 861px) {
  body.demand-content .article-prose {
    margin-left: max(20px, calc((100% - var(--content)) / 2));
    margin-right: auto;
  }
}
@media (max-width: 640px) {
  body.demand-content .page-hero { padding-block: 60px 28px; }
  body.demand-content .page-hero + .section { padding-top: 36px; }
  body.demand-content [id] { scroll-margin-top: 128px; }
  body.demand-content .comparison-table :is(th, td) { padding: 12px 8px; }
  body.demand-content .case-comparison :is(table, tbody) { display: block; }
  body.demand-content .case-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body.demand-content .case-comparison tbody tr {
    display: grid;
    gap: 12px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
  }
  body.demand-content .case-comparison :is(th, td) { padding: 0; border: 0; }
  body.demand-content .case-comparison td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-faint);
    font-size: 13px;
  }
}
