:root {
  color-scheme: light;
  --cream: #f8f5d7;
  --ink: #211f18;
  --muted: #5f5a4d;
  --soft: #817a67;
  --line: rgba(33, 31, 24, 0.25);
  --line-strong: rgba(33, 31, 24, 0.64);
  --teal: #08727a;
  --teal-dark: #044f56;
  --paper: rgba(255, 252, 220, 0.62);
  --white-paper: rgba(255, 254, 236, 0.86);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(33, 31, 24, 0.025) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(8, 114, 122, 0.16);
}

button,
input {
  font: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

svg {
  display: block;
}

.site-header,
.page {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  padding: 126px 0 0;
}

.site-header.compact {
  padding-top: 58px;
}

.site-header.compact .masthead {
  font-size: clamp(40px, 6vw, 74px);
}

.story-link,
.source-row a,
.directory-row a,
.directory-link,
.lead-actions a {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-weight: 800;
}

.masthead {
  display: block;
  padding: 14px 0 7px;
  text-align: center;
  text-decoration: none;
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 900;
  line-height: 0.9;
}

.tagline {
  margin: 0 auto 14px;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 14px;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  text-decoration: none;
  color: var(--muted);
  cursor: pointer;
}

.nav button {
  padding: 0;
}

.nav a:hover,
.nav button:hover {
  color: var(--teal);
}

.view-tab.active {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.brief {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 34px;
  padding: 32px 0 34px;
  border-bottom: 1px dashed var(--line-strong);
}

.lead-brief {
  min-width: 0;
  padding-right: 34px;
  border-right: 1px dashed var(--line);
}

.section-rule,
.story-meta,
.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.section-rule {
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.lead-brief h1 {
  max-width: 820px;
  margin: 22px 0 0;
  font-size: clamp(46px, 6.6vw, 82px);
  line-height: 0.96;
  white-space: pre-line;
}

.lead-brief p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.42;
}

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

.lead-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
}

.lead-actions a:first-child {
  background: var(--teal);
  color: var(--cream);
}

.brief-panel {
  min-width: 0;
}

.brief-panel h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.brief-panel dl {
  margin: 18px 0 0;
}

.brief-panel div {
  padding: 15px 0;
  border-top: 1px dashed var(--line);
}

.brief-panel dt {
  color: var(--soft);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.brief-panel dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.brief-panel div:last-child dd {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.library-tools {
  margin-bottom: 0;
  border-top: 1px dashed var(--line);
}

.archive-tools {
  justify-content: flex-start;
  align-items: end;
  padding-top: 0;
  flex-wrap: wrap;
}

.archive-date-picker {
  display: grid;
  gap: 7px;
  width: min(240px, 100%);
  font-family: Arial, "PingFang SC", sans-serif;
}

.archive-date-picker span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.archive-date-input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  color-scheme: light;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.archive-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

.date-clear {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.date-clear:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}

.date-clear:disabled {
  cursor: default;
  opacity: 0.48;
}

.library-tools + .directory-list {
  border-top: 0;
}

.search {
  display: grid;
  gap: 7px;
  width: min(460px, 100%);
  font-family: Arial, "PingFang SC", sans-serif;
}

.search span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  font-family: Arial, "PingFang SC", sans-serif;
}

.filter {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--cream);
}

.section {
  padding: 34px 0;
  border-bottom: 1px dashed var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.9fr) minmax(240px, 0.7fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.page > .section > .section-head {
  display: none;
}

.direction-list {
  border-top: 1px dashed var(--line-strong);
}

.direction-row {
  display: grid;
  grid-template-columns: 64px minmax(320px, 1fr) minmax(0, 680px);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
  background: var(--cream);
}

.direction-row.is-selected {
  margin: 0 -14px;
  padding-right: 14px;
  padding-left: 14px;
  background: var(--cream);
}

.direction-number {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.direction-main h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.direction-main p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.direction-signal-panel {
  width: min(680px, 100%);
  justify-self: end;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.direction-signal-list {
  max-height: calc(172px * 3);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 114, 122, 0.44) transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.direction-signal-list::-webkit-scrollbar {
  width: 8px;
}

.direction-signal-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(8, 114, 122, 0.44);
}

.direction-signal {
  display: grid;
  min-height: 172px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  background: transparent;
  text-decoration: none;
}

.direction-signal:first-child {
  border-top: 0;
}

.direction-signal:hover {
  color: var(--ink);
}

.direction-signal span {
  grid-column: 1 / -1;
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.direction-signal strong {
  display: block;
  min-width: 0;
  font-size: 20px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.direction-signal em {
  display: -webkit-box;
  grid-column: 1;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.direction-signal.empty {
  min-height: 172px;
  color: var(--muted);
}

.signal-decision {
  display: grid;
  gap: 5px;
  margin-top: 1px;
  font-family: Arial, "PingFang SC", sans-serif;
}

.signal-decision small {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.signal-decision b {
  color: var(--teal);
  font-weight: 900;
}

.signal-decision span {
  display: -webkit-box;
  color: var(--soft);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.story-list {
  border-top: 1px dashed var(--line-strong);
}

.story-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.05fr) minmax(260px, 0.82fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}

.story-number {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.story-main h3 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.story-main,
.directory-main {
  min-width: 0;
}

.story-main h3 a {
  display: inline-block;
  padding: 3px 0;
  text-decoration: underline;
  text-decoration-color: rgba(8, 114, 122, 0.35);
  overflow-wrap: anywhere;
}

.story-signal {
  margin: 13px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.38;
}

.story-summary,
.story-use,
.directory-row p,
.source-row p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.story-use {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.story-use strong,
.decision-stack b,
.directory-utility b,
.archive-takeaway strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
}

.decision-stack {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.decision-stack small,
.directory-utility small {
  display: block;
  min-width: 0;
}

.decision-stack span,
.directory-utility span,
.archive-takeaway span {
  color: var(--muted);
  line-height: 1.5;
}

.story-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-left: 20px;
  border-left: 1px dashed var(--line);
}

.story-link,
.source-row a,
.directory-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  font-size: 13px;
}

.story-link::after,
.source-row a::after,
.directory-link::after {
  content: "↗";
  margin-left: 6px;
  font-size: 11px;
}

.archive-list {
  border-top: 1px dashed var(--line-strong);
}

.archive-entry {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
}

.archive-meta {
  display: grid;
  gap: 8px;
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.archive-meta span:first-child {
  font-size: 16px;
}

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

.archive-entry h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.archive-entry h2 a {
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(8, 114, 122, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.archive-entry p {
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-family: Arial, "PingFang SC", sans-serif;
}

.archive-stats span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.archive-stats span:empty {
  display: none;
}

.archive-takeaway {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.directory-list {
  border-top: 1px dashed var(--line-strong);
}

.resource-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-family: Arial, "PingFang SC", sans-serif;
}

.resource-overview strong {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.resource-overview span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.resource-product-shelf {
  padding: 16px 0 8px;
  border-bottom: 1px dashed var(--line-strong);
}

.resource-kit-bar {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-strong);
}

.resource-kit-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.resource-kit-bar span {
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 900;
  line-height: 1.08;
}

.resource-kit-bar strong {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.resource-kit-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.resource-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding-top: 18px;
}

.resource-product-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 224, 0.22);
}

.resource-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.resource-product-top h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.resource-product-top p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.resource-product-result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.resource-product-result span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.resource-product-result strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.resource-product-preview {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.resource-product-preview > span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.resource-product-preview > strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.resource-product-preview > div {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
}

.resource-product-preview .resource-template-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.resource-product-preview .resource-template-line:last-child {
  border-bottom: 0;
}

.resource-template-line b {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.resource-template-line span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.resource-product-source {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.42;
}

.resource-featured {
  padding: 20px 0 8px;
  border-bottom: 1px dashed var(--line-strong);
}

.resource-featured-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.resource-featured-head span {
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.02;
}

.resource-featured-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

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

.resource-feature-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 0 16px;
  border-bottom: 1px dashed var(--line);
}

.resource-feature-card.is-open {
  grid-column: 1 / -1;
}

.resource-feature-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.resource-feature-card h3 a {
  text-decoration: underline;
  text-decoration-color: rgba(8, 114, 122, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.resource-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.resource-more {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.resource-more summary {
  width: fit-content;
  color: var(--teal);
  cursor: pointer;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.resource-more ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.42;
}

.resource-more li::marker {
  color: var(--teal);
  font-weight: 900;
}

.resource-more p {
  margin: 8px 0 0;
  color: var(--muted);
}

.resource-evidence {
  margin: 0;
  color: var(--muted);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.resource-detail {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 6px;
}

.resource-detail[hidden] {
  display: none;
}

.resource-playbook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 18px;
  min-width: 0;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px dashed var(--line);
}

.resource-playbook-main {
  min-width: 0;
}

.resource-scenario {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-family: Arial, "PingFang SC", sans-serif;
}

.resource-scenario span,
.resource-side-note span,
.resource-outcome span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.resource-scenario strong {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.resource-copy-sheet {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-top: 14px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 224, 0.38);
}

.resource-copy-sheet header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.resource-copy-sheet header span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.resource-copy-sheet h4 {
  max-width: 650px;
  margin: 6px 0 0;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.resource-copy-sheet > p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.resource-template-lines {
  display: grid;
  gap: 0;
  border-top: 1px dashed var(--line);
}

.resource-template-lines div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 11px 0 10px;
  border-top: 1px dashed var(--line);
}

.resource-template-lines div:first-child {
  border-top: 0;
}

.resource-template-lines b {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
}

.resource-template-lines span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.resource-playbook-side {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px dashed var(--line);
}

.resource-outcome {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.resource-outcome strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.resource-side-note {
  min-width: 0;
}

.resource-side-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.resource-copy {
  width: fit-content;
  min-height: 34px;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  padding: 7px 12px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.resource-copy:focus-visible {
  outline: 1px solid rgba(8, 114, 122, 0.5);
  outline-offset: 3px;
}

.resource-group {
  padding: 18px 0 4px;
  border-bottom: 1px dashed var(--line);
}

.resource-group-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 86px;
  gap: 16px;
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.resource-group-head > span,
.resource-group-head > strong {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.resource-group-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.02;
}

.resource-group-head > strong {
  justify-self: end;
  white-space: nowrap;
}

.resource-items {
  margin-left: 60px;
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.resource-item:last-child {
  border-bottom: 0;
}

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

.resource-main h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.resource-main h3 a {
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(8, 114, 122, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.resource-main p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.resource-audience {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
}

.resource-audience b,
.resource-action strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.resource-action {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px dashed var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.resource-source-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--muted);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.resource-source-link::after {
  content: "↗";
  margin-left: 5px;
  color: var(--teal);
  font-size: 11px;
}

.template-page {
  padding-top: 22px;
}

.template-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: end;
  padding: 26px 0 24px;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.template-hero span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.template-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
}

.template-hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 27px);
  line-height: 1.5;
}

.template-index {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line);
  background: var(--cream);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.template-index a {
  min-height: 32px;
  color: var(--teal);
}

.template-index a.is-active {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.template-block {
  scroll-margin-top: 72px;
  padding: 38px 0 42px;
  border-bottom: 1px dashed var(--line-strong);
}

.template-block[hidden] {
  display: none;
}

.template-detail-mode .template-block {
  border-bottom-style: solid;
}

.template-kicker {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.template-block h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.template-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.template-grid article {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.template-grid span {
  display: block;
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.template-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.12;
}

.template-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.template-table {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  font-size: 16px;
  line-height: 1.48;
}

.template-table th,
.template-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}

.template-table th {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.template-table td {
  color: var(--muted);
}

.template-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.directory-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(260px, 0.58fr) 132px;
  gap: 22px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.directory-index {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

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

.directory-meta span {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.directory-meta span:empty {
  display: none;
}

.directory-row h3 {
  margin: 12px 0 0;
  font-size: 26px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.directory-row h3 a {
  display: inline-block;
  padding: 3px 0;
  text-decoration: underline;
  text-decoration-color: rgba(8, 114, 122, 0.28);
  overflow-wrap: anywhere;
}

.directory-utility {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.directory-job {
  min-width: 0;
  padding-top: 1px;
}

.directory-job strong {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 12px;
}

.directory-job span {
  color: var(--muted);
  line-height: 1.5;
}

.directory-link {
  justify-self: end;
  margin-top: 2px;
}

button.directory-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(8, 114, 122, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button.directory-link:focus-visible {
  outline: 1px solid rgba(8, 114, 122, 0.5);
  outline-offset: 3px;
}

.resource-toggle::after {
  content: "+";
  margin-left: 7px;
  color: var(--teal);
  font-size: 13px;
}

.resource-toggle[aria-expanded="true"]::after {
  content: "-";
}

.source-list {
  border-top: 1px dashed var(--line-strong);
}

.source-row {
  display: grid;
  grid-template-columns: 118px 180px minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.source-row strong {
  font-size: 18px;
  line-height: 1.2;
}

.source-meta span,
.story-meta span {
  color: var(--teal);
}

.story-meta span[data-confidence="待核实"],
.source-meta span[data-confidence="待核实"] {
  color: #9b5a00;
}

.empty-state {
  padding: 22px 0;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 22px 0 44px;
  border-top: 1px dashed var(--line-strong);
  font-family: Arial, "PingFang SC", sans-serif;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1.3fr) minmax(110px, 0.35fr);
  gap: 22px;
  align-items: center;
}

.footer-social,
.footer-legal,
.footer-locale {
  display: flex;
  align-items: center;
}

.footer-social {
  gap: 10px;
}

.footer-social a {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.footer-social svg,
.footer-locale svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-legal {
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.footer-legal span,
.footer-legal a,
.footer-locale {
  font-size: 13px;
  font-weight: 800;
}

.footer-legal a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--soft);
  text-decoration: none;
}

.footer-legal a::before {
  content: "·";
  margin-right: 10px;
  color: var(--line-strong);
}

.footer-locale {
  justify-content: flex-end;
  color: var(--teal);
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.doc-page {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.doc-back {
  color: var(--teal);
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.doc-page h1 {
  margin: 28px 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.doc-page p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

@supports not (overflow-wrap: anywhere) {
  .masthead,
  .lead-brief h1,
  .story-main h3,
  .story-main h3 a,
  .direction-main h3,
  .direction-signal strong,
  .direction-signal em,
  .signal-decision,
  .decision-stack,
  .directory-row h3,
  .directory-row h3 a,
  .resource-main h3,
  .resource-main h3 a,
  .resource-product-top h3,
  .resource-product-preview,
  .resource-group-head h2,
  .story-summary,
  .story-use,
  .directory-utility,
  .resource-action,
  .resource-audience,
  .resource-playbook h4,
  .resource-playbook-main > p,
  .resource-copy-sheet h4,
  .resource-copy-sheet > p,
  .resource-template-lines span,
  .resource-side-note,
  .archive-takeaway,
  .directory-row p,
  .directory-job {
    word-break: break-word;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-top: 42px;
  }

  .brief,
  .section-head,
  .direction-row,
  .story-row,
  .resource-group-head,
  .resource-item,
  .source-row {
    grid-template-columns: 1fr;
  }

  .site-header.compact {
    padding-top: 40px;
  }

  .lead-brief {
    padding-right: 0;
    border-right: 0;
  }

  .brief-panel {
    padding-top: 24px;
    border-top: 1px dashed var(--line);
  }

  .story-side {
    padding-left: 0;
    border-left: 0;
  }

  .direction-row.is-selected {
    margin: 0;
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  .direction-signal-panel {
    width: 100%;
    justify-self: stretch;
  }

  .directory-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .resource-items {
    margin-left: 0;
  }

  .resource-featured-head,
  .resource-featured-grid,
  .resource-kit-bar,
  .resource-product-grid {
    grid-template-columns: 1fr;
  }

  .resource-featured-head,
  .resource-kit-bar {
    gap: 8px;
  }

  .resource-group-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .resource-group-head > strong {
    justify-self: start;
  }

  .resource-action {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .resource-playbook {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .resource-playbook-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
  }

  .resource-copy-sheet header {
    grid-template-columns: 1fr;
  }

  .template-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

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

  .template-index {
    position: static;
  }

  .archive-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .directory-link {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-social,
  .footer-legal,
  .footer-locale {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page,
  .site-footer {
    width: min(100vw - 28px, 1180px);
  }

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

  .site-footer {
    padding: 18px 0 30px;
  }

  .masthead {
    font-size: 39px;
    line-height: 1.02;
    text-align: left;
    white-space: nowrap;
  }

  html[lang="en"] .masthead {
    white-space: normal;
  }

  .tagline {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .template-hero {
    padding: 22px 0 20px;
  }

  .template-hero h1 {
    font-size: 42px;
  }

  .template-hero p {
    font-size: 17px;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .nav a {
    min-height: 40px;
  }

  .lead-actions a,
  .direction-signal,
  .filter {
    min-height: 42px;
  }

  .direction-row {
    gap: 14px;
  }

  .direction-main h3 {
    font-size: 32px;
    line-height: 1.06;
  }

  .direction-signal-list {
    max-height: calc(164px * 3);
  }

  .direction-signal {
    min-height: 164px;
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .signal-decision small {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .story-link,
  .directory-link {
    min-height: 36px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
  }

  .lead-brief h1 {
    font-size: 38px;
    line-height: 1.03;
    overflow-wrap: anywhere;
  }

  .lead-brief p {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .brief-panel dd,
  .section-head p,
  .story-signal,
  .story-summary,
  .story-use,
  .decision-stack,
  .directory-utility,
  .resource-action,
  .resource-audience,
  .archive-takeaway,
  .directory-row p,
  .directory-job,
  .source-row p {
    overflow-wrap: anywhere;
  }

  .section-rule {
    gap: 8px;
  }

  .filters {
    justify-content: flex-start;
  }

  .section-head h1,
  .section-head h2 {
    font-size: 34px;
  }

  .story-row {
    gap: 12px;
  }

  .story-main h3 {
    font-size: 27px;
    line-height: 1.06;
  }

  .directory-row h3 {
    font-size: 25px;
  }

  .resource-group {
    padding-top: 18px;
  }

  .resource-featured-head span {
    font-size: 30px;
  }

  .resource-feature-card h3 {
    font-size: 23px;
  }

  .resource-kit-bar span {
    font-size: 24px;
  }

  .resource-product-top h3 {
    font-size: 23px;
  }

  .resource-product-preview {
    padding: 12px;
  }

  .resource-product-preview > strong {
    font-size: 19px;
  }

  .resource-group-head h2 {
    font-size: 26px;
  }

  .resource-main h3 {
    font-size: 21px;
  }

  .resource-audience {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resource-more ol,
  .resource-side-note p {
    font-size: 13px;
  }

  .template-page {
    padding-top: 16px;
  }

  .template-block {
    padding: 30px 0 34px;
  }

  .template-lead {
    font-size: 17px;
  }

  .template-grid strong {
    font-size: 22px;
  }

  .template-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
  }

  .template-table th,
  .template-table td {
    min-width: 142px;
  }

  .footer-inner {
    align-items: center;
  }

  .footer-social {
    order: 1;
  }

  .footer-legal {
    order: 2;
    gap: 8px;
    font-size: 12px;
  }

  .footer-locale {
    order: 3;
  }

  .footer-legal span {
    flex-basis: 100%;
  }

  .footer-legal a::before {
    margin-right: 8px;
  }

  .footer-legal a:first-of-type::before {
    content: "";
    margin-right: 0;
  }

  .doc-page {
    width: min(100vw - 28px, 760px);
    padding: 42px 0;
  }
}

@media (max-width: 360px) {
  .site-header,
  .page,
  .site-footer,
  .doc-page {
    width: min(100vw - 20px, 1180px);
  }

  .masthead {
    font-size: 35px;
  }

  html[lang="en"] .masthead {
    font-size: 34px;
  }

  .lead-brief h1 {
    font-size: 34px;
  }

  .story-main h3 {
    font-size: 25px;
  }

  .direction-main h3 {
    font-size: 28px;
  }

  .filter {
    min-height: 34px;
    padding: 6px 10px;
  }
}
