:root {
  color-scheme: light;
  --bg: #f6f8f9;
  --surface: #ffffff;
  --ink: #121b1e;
  --muted: #5b6870;
  --line: #d8e0e4;
  --accent: #16756d;
  --accent-ink: #0b4d47;
  --warn: #a85312;
  --soft-green: #e7f4f1;
  --soft-blue: #e8f0fb;
  --soft-amber: #fff4df;
  --soft-gray: #edf2f4;
  --shadow: 0 14px 34px rgba(18, 27, 30, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent-ink);
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-weight: 800;
}

.brand-title {
  font-weight: 800;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 9px;
  color: #334246;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--soft-gray);
  color: var(--accent-ink);
}

.nav-links .nav-primary {
  border: 1px solid #9bc7c0;
  background: var(--soft-green);
  color: var(--accent-ink);
  font-weight: 800;
}

.nav-links a[aria-current="page"],
.nav-menu a[aria-current="page"] {
  background: var(--soft-green);
  color: var(--accent-ink);
  font-weight: 800;
}

.digest-global-nav {
  justify-content: flex-start;
  gap: 16px;
}

.digest-project-brand {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.digest-project-brand:hover {
  color: var(--accent-ink);
}

.digest-breadcrumb,
.paper-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.digest-breadcrumb {
  margin-right: auto;
}

.digest-breadcrumb a,
.paper-breadcrumb a {
  color: var(--accent-ink);
  text-decoration: none;
}

.digest-breadcrumb [aria-current="page"],
.paper-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}

.digest-mobile-label {
  display: none;
}

.reader-global-nav {
  justify-content: flex-start;
  gap: 16px;
}

.reader-project-brand {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.reader-project-brand:hover {
  color: var(--accent-ink);
}

.paper-breadcrumb {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.nav-more {
  position: relative;
}

.nav-more summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 6px 10px;
  color: #334246;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-more summary:hover,
.nav-more[open] summary {
  background: var(--soft-gray);
  color: var(--accent-ink);
}

.nav-more[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(28, 47, 51, 0.16);
}

.nav-menu a {
  width: 100%;
  min-height: 38px;
}

.nav-menu-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}

.hero {
  padding: 34px 0 18px;
}

.eyebrow {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 12px;
  max-width: 800px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.56;
}

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

.priority-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.priority-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.priority-action.primary {
  border-color: #8ebeb7;
  background: var(--accent);
  color: #ffffff;
}

.priority-action:hover {
  border-color: #8ebeb7;
  box-shadow: 0 5px 16px rgba(11, 77, 71, 0.1);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h2,
.section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.panel p,
.section p {
  color: var(--muted);
  line-height: 1.62;
}

.focus-panel {
  border-color: #cbd9dc;
}

.focus-list {
  counter-reset: focus;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  counter-increment: focus;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.focus-list li::before {
  content: counter(focus);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-blue);
  color: #234760;
  font-size: 13px;
  font-weight: 900;
  grid-row: 1 / span 2;
}

.focus-list strong {
  display: block;
  grid-column: 2;
  font-size: 15px;
  line-height: 1.25;
}

.focus-list span {
  display: block;
  grid-column: 2;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.workspace-note {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.workspace-link.primary {
  border-color: #8ebeb7;
  background: var(--soft-green);
}

.workspace-link:hover {
  border-color: #83a595;
  background: #fbfdfb;
}

.deadline-board {
  margin: 0 auto 28px;
  padding: 16px 0 8px;
}

.deadline-head {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 14px;
}

.deadline-head h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

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

.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.deadline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
}

.deadline-card.urgent {
  border-color: #e5b86b;
  background: var(--soft-amber);
}

.deadline-card.secondary {
  background: #f7faf8;
  border-color: #c7d8ce;
}

.deadline-meta {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.deadline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.deadline-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.deadline-link:hover {
  text-decoration: underline;
}

.flow {
  margin: 20px auto 44px;
}

.flow img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 760px) {
  .flow {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .flow img {
    min-width: 760px;
  }
}

.section {
  padding: 30px 0;
}

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

.section-head p {
  max-width: 680px;
  margin: 0;
}

.section-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #9ebdaf;
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--soft-green);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.section-action:hover {
  border-color: #83a595;
  background: #fbfdfb;
}

.research-problem-callout {
  padding-top: 22px;
}

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

.callout-tile {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfb;
}

.callout-tile strong {
  font-size: 16px;
  line-height: 1.35;
}

.callout-tile span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.tier h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.tier ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: table;
}

.portfolio-table th,
.portfolio-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.portfolio-table th {
  background: #eef3f5;
  font-size: 12px;
  color: #40504d;
  text-transform: uppercase;
  letter-spacing: 0;
}

.portfolio-table tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 8px;
}

.question-table {
  min-width: 1120px;
}

.question-table th:first-child,
.question-table td:first-child {
  width: 72px;
  font-weight: 800;
  color: var(--accent-ink);
}

.question-table th:nth-child(2),
.question-table td:nth-child(2) {
  width: 310px;
}

.question-table th:nth-child(5),
.question-table td:nth-child(5),
.question-table th:nth-child(6),
.question-table td:nth-child(6) {
  width: 230px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #20302d;
  background: var(--soft-gray);
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.entry-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
}

.entry-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.entry-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.entry-card:hover {
  border-color: #8ebeb7;
  background: #fbfefd;
}

.article-entry-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-entry {
  background: #f7faf8;
  border-color: #b7d0c5;
}

.venue-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.venue-section .section-head {
  margin-bottom: 10px;
}

.venue-section .section-head p {
  max-width: 780px;
  font-size: 14px;
}

.venue-guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.venue-guide-link {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: space-between;
  background: #fbfefd;
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  text-decoration: none;
}

.venue-guide-link:hover {
  border-color: #83a595;
  background: #f6fbf9;
}

.venue-guide-link.featured {
  grid-column: 1 / -1;
  min-height: 126px;
  background: #f7faf8;
  border-color: #8ebeb7;
}

.venue-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.venue-deadline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.venue-guide-link strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.venue-guide-link > span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.venue-official-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.venue-official-strip span {
  color: #40504d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.venue-official-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.venue-official-strip a:hover {
  border-color: #9ebdaf;
  background: #fbfdfb;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-height: 220px;
}

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

.card p {
  margin: 0;
  font-size: 14px;
}

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

.footer {
  margin-top: 30px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.paper-page .hero {
  padding-bottom: 20px;
}

.p01-page .hero h1 {
  max-width: 980px;
}

.paper-figure {
  width: 100%;
  display: block;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.figure-table {
  margin-top: 12px;
}

.figure-table th:first-child,
.figure-table td:first-child {
  width: 210px;
  font-weight: 800;
  color: var(--accent-ink);
}

.compact-head {
  align-items: start;
}

.question-page .topbar {
  background: rgba(255, 255, 255, 0.9);
}

.question-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding: 44px 0 30px;
}

.question-hero h1 {
  max-width: 860px;
}

.question-hero strong {
  color: var(--accent-ink);
}

.question-metrics {
  max-width: 820px;
}

.problem-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.problem-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: var(--surface);
}

.problem-card.active {
  border-color: #b7d0c5;
  background: #fbfdfb;
}

.problem-card h3 {
  margin: 14px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.rule-strip div {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: #34423f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.article-shell {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
}

.article-hero {
  padding: 44px 0 24px;
}

.article-hero h1 {
  max-width: 940px;
  font-size: clamp(34px, 5vw, 58px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.article-meta span {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.article-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.2;
}

.article-section p,
.article-section li {
  color: var(--muted);
  line-height: 1.72;
}

.article-section code {
  color: var(--accent-ink);
  background: #edf3ef;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.92em;
}

.callout {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: #f7faf8;
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  color: #28433b;
  line-height: 1.65;
}

.callout.strong {
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.article-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-table th {
  color: #40504d;
  background: #f0ede5;
  font-weight: 800;
}

.article-table tr:last-child th,
.article-table tr:last-child td {
  border-bottom: none;
}

.article-table.compact th {
  width: 210px;
}

.article-cards .card {
  min-height: 150px;
}

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

.checklist {
  margin: 0;
  padding-left: 22px;
}

.source-list ul {
  margin: 0;
  padding-left: 20px;
}

.paper-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

.paper-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.detail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.detail-block h2,
.detail-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.detail-block p,
.detail-block li {
  color: var(--muted);
  line-height: 1.62;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
}

.backlink {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.scout-page h1 {
  max-width: 920px;
}

.scout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 22px;
}

.scout-status {
  margin-top: 5px;
}

.scout-status dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.scout-status dt {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scout-status dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.scout-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto 14px;
}

.scout-use {
  padding-top: 20px;
}

.scout-use-grid,
.front-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.scout-note,
.front-card,
.matrix-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
}

.scout-note {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  gap: 10px;
}

.scout-note strong,
.matrix-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.32;
}

.scout-note span:last-child,
.matrix-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.scout-paper-table {
  min-width: 1440px;
}

.scout-paper-table th:first-child,
.scout-paper-table td:first-child {
  width: 56px;
  font-weight: 900;
  color: var(--accent-ink);
}

.scout-paper-table th:nth-child(2),
.scout-paper-table td:nth-child(2) {
  width: 220px;
}

.scout-paper-table th:nth-child(3),
.scout-paper-table td:nth-child(3) {
  width: 155px;
}

.scout-paper-table th:nth-child(4),
.scout-paper-table td:nth-child(4),
.scout-paper-table th:nth-child(5),
.scout-paper-table td:nth-child(5),
.scout-paper-table th:nth-child(6),
.scout-paper-table td:nth-child(6),
.scout-paper-table th:nth-child(7),
.scout-paper-table td:nth-child(7) {
  width: 190px;
}

.scout-paper-table td {
  line-height: 1.5;
}

.scout-flow {
  margin-top: 2px;
  margin-bottom: 18px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.matrix-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.front-card {
  min-height: 235px;
}

.front-card.primary {
  background: #fbfdfb;
  border-color: #8ebeb7;
}

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

.front-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.boundary-section {
  padding-top: 16px;
}

.boundary-list {
  margin: 0;
  padding: 17px 20px 17px 34px;
  background: #f7faf8;
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.digest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 18px;
}

.digest-hero h1 {
  max-width: 900px;
}

.digest-guide {
  margin-top: 4px;
}

.digest-topic-block {
  margin-top: 20px;
}

.digest-topic-label {
  display: grid;
  gap: 4px;
}

.digest-topic-label span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guide-status-key {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.guide-status-key h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.guide-status-key p {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guide-status-key strong {
  color: var(--accent-ink);
}

.digest-tools {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 2fr) auto;
  grid-template-areas:
    "label search status"
    "filters filters filters";
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(18, 27, 30, 0.05);
}

.digest-tools label {
  grid-area: label;
  display: grid;
  gap: 3px;
}

.digest-tools label span,
.digest-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.digest-tools input {
  grid-area: search;
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfcbd0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfc;
  color: var(--ink);
  font: inherit;
}

.digest-tools input:focus {
  outline: 3px solid rgba(22, 117, 109, 0.16);
  border-color: var(--accent);
}

.digest-tools p {
  grid-area: status;
  min-width: 126px;
  text-align: right;
  font-weight: 700;
}

.digest-filters {
  grid-area: filters;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.digest-filters > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.digest-filters button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fbfdfb;
  color: var(--accent-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.digest-filters button:hover,
.digest-filters button[aria-pressed="true"] {
  border-color: #8ebeb7;
  background: var(--accent);
  color: #ffffff;
}

.digest-directory {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(18, 27, 30, 0.05);
}

.digest-directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.digest-directory-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.digest-directory-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

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

.digest-index-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

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

.digest-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

.digest-index a,
.source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fbfdfb;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.digest-index a:hover,
.source-pill:hover {
  border-color: #8ebeb7;
  background: var(--soft-green);
}

.digest-section {
  scroll-margin-top: 84px;
  padding-top: 24px;
}

.digest-subcollection {
  scroll-margin-top: 84px;
  margin: 28px 0 16px;
  padding: 16px 18px;
  border: 1px solid #c8d2e4;
  border-radius: 8px;
  background: #fafbfe;
}

.digest-subcollection .section-head {
  margin-bottom: 0;
}

.digest-subcollection h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.digest-card {
  scroll-margin-top: 84px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.digest-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.digest-card h3 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.22;
}

.digest-one {
  margin: 0 0 14px;
  padding: 13px 14px;
  background: #f7faf8;
  border: 1px solid #c7d8ce;
  border-radius: 8px;
  color: #28433b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
}

.digest-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.digest-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfc;
}

.digest-grid div:nth-child(1),
.digest-grid div:nth-child(2) {
  grid-column: span 3;
  min-height: 168px;
  border-color: #9bc7c0;
  background: #f1faf7;
}

.digest-grid div:nth-child(n + 3) {
  grid-column: span 2;
  min-height: 132px;
  background: #f7f9fa;
}

.digest-grid h4 {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 13px;
  line-height: 1.2;
}

.digest-grid div:nth-child(1) h4,
.digest-grid div:nth-child(2) h4 {
  font-size: 15px;
}

.digest-grid div:nth-child(n + 3) h4 {
  color: #526168;
}

.digest-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.digest-grid div:nth-child(1) p,
.digest-grid div:nth-child(2) p {
  color: #1f3632;
  font-size: 14px;
  line-height: 1.62;
}

.digest-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.source-pill.reader-pill {
  border-color: #8ebeb7;
  background: var(--accent);
  color: #ffffff;
}

.source-pill.reader-pill:hover {
  border-color: #6ca59d;
  background: var(--accent-ink);
}

.source-pill.reader-pill.is-reference {
  border-color: #6faaa0;
  background: #e7f4f0;
  color: var(--accent-ink);
}

.source-pill.reader-pill.is-source-limited {
  border-color: #d4ad65;
  background: #fff8e8;
  color: #704d11;
}

.source-pill.reader-pill.is-draft {
  border-style: dashed;
  border-color: #aeb7bc;
  background: #f5f7f8;
  color: #5d686d;
}

.guide-state-badge,
.guide-evidence-badge {
  font-weight: 850;
}

.source-limited-guide-page .guide-state-badge,
.source-limited-guide-page .guide-evidence-badge {
  border-color: #d4ad65;
  background: #fff8e8;
  color: #704d11;
}

.source-limited-guide-page .brand .mark {
  border-color: #b88a35;
  color: #704d11;
}

.reader-hero h1 {
  max-width: 900px;
}

.reader-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 28px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.reader-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  background: #fafdfb;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.reader-toc a:hover {
  border-color: #9bc7c0;
  background: var(--soft-green);
  transform: translateY(-1px);
}

.reader-toc a.toc-active {
  background: var(--soft-blue);
  border-color: #a8c4ec;
  color: #1a4a8c;
  font-weight: 800;
}

.a5-reader-page .article-section,
.paper-reader-page .article-section {
  scroll-margin-top: 84px;
}

.reader-lead {
  max-width: 860px;
  margin: 0;
  color: #263d38 !important;
  font-size: 18px;
  line-height: 1.72 !important;
}

.reader-object-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.reader-object-strip > div {
  min-height: 132px;
  border-top: 3px solid #9bc7c0;
  padding: 15px;
  background: var(--surface);
}

.reader-object-strip span,
.reader-lens-grid span,
.reader-portfolio-grid span,
.paper-neighbor-nav span {
  display: block;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reader-object-strip strong {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.reader-lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.reader-lens-grid article,
.reader-portfolio-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.reader-lens-grid p,
.reader-portfolio-grid p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.62;
}

.reader-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.reader-portfolio-grid article:first-child {
  border-color: #9bc7c0;
  background: #f1faf7;
}

.reader-portfolio-grid article:last-child {
  border-color: #dfd3b8;
  background: #fffcf5;
}

.paper-neighbor-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.paper-neighbor-nav a {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.paper-neighbor-nav a:hover {
  border-color: #8ebeb7;
  background: var(--soft-green);
}

.paper-neighbor-nav strong {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.4;
}

.full-paper-guide-page .article-shell {
  width: min(980px, calc(100% - 36px));
}

.full-guide-section {
  padding: 34px 0;
}

.guide-markdown-spaced,
.guide-stack-spaced {
  margin-top: 24px;
}

.guide-markdown > :first-child {
  margin-top: 0;
}

.guide-markdown > :last-child {
  margin-bottom: 0;
}

.guide-markdown h3,
.guide-subsection h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.guide-markdown p,
.guide-markdown li {
  font-size: 15px;
  line-height: 1.75;
}

.guide-markdown ul,
.guide-markdown ol {
  margin: 14px 0;
  padding-left: 24px;
}

.guide-code-block {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 8px;
  background: #1a2730;
  color: #eaf4f2;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.article-section .guide-code-block code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.guide-quote {
  margin: 18px 0;
  border-left: 4px solid #8ebeb7;
  padding: 14px 18px;
  background: #f1faf7;
}

.guide-table-wrap {
  margin: 20px 0;
  border-radius: 8px;
}

.guide-stack {
  display: grid;
  gap: 14px;
}

.bespoke-paper-guide-page .article-shell {
  width: min(920px, calc(100% - 36px));
}

.bespoke-paper-guide-page .reader-toc {
  position: sticky;
  top: 70px;
  z-index: 8;
  flex-wrap: nowrap;
  overflow-x: auto;
  box-shadow: 0 6px 20px rgba(18, 27, 30, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.1) transparent;
}

/* Thin scrollbar for webkit */
.bespoke-paper-guide-page .reader-toc::-webkit-scrollbar {
  height: 4px;
}
.bespoke-paper-guide-page .reader-toc::-webkit-scrollbar-track {
  background: transparent;
}
.bespoke-paper-guide-page .reader-toc::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.10);
  border-radius: 4px;
}
.bespoke-paper-guide-page .reader-toc::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.18);
}

.bespoke-paper-guide-page .reader-toc a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bespoke-paper-guide-page .full-guide-section {
  padding: 46px 0;
}

.bespoke-paper-guide-page .full-guide-section > h2 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(27px, 4vw, 35px);
  line-height: 1.18;
}

.bespoke-paper-guide-page .guide-markdown > p,
.bespoke-paper-guide-page .guide-markdown > ul,
.bespoke-paper-guide-page .guide-markdown > ol,
.bespoke-paper-guide-page .guide-markdown > blockquote,
.bespoke-paper-guide-page .guide-markdown > h3 {
  max-width: 780px;
}

.bespoke-paper-guide-page .guide-markdown p,
.bespoke-paper-guide-page .guide-markdown li {
  font-size: 16px;
  line-height: 1.82;
}

.bespoke-paper-guide-page .guide-markdown h3 {
  margin-top: 30px;
  font-size: 21px;
}

.bespoke-paper-guide-page #sources .guide-markdown,
.bespoke-paper-guide-page #sources .guide-markdown li,
.bespoke-paper-guide-page #sources .guide-markdown a,
.bespoke-paper-guide-page .guide-source-list strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.math-display,
.math-inline {
  color: #193833;
}

.math-display {
  max-width: 100%;
  margin: 22px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid #dde8e6;
  border-radius: 8px;
  background: #f8fbfa;
  text-align: center;
}

.bespoke-paper-guide-page .guide-table-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(18, 27, 30, 0.04);
}

.guide-subsection {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
}

.guide-subsection h3 {
  margin-top: 0;
}

.guide-subsection-accent {
  border-color: #9bc7c0;
  background: #f1faf7;
}

.guide-subsection-warning {
  border-color: #e3c6b3;
  background: #fffaf6;
}

.guide-source-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
}

.guide-source-list a {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.guide-source-list a:hover {
  border-color: #8ebeb7;
  background: var(--soft-green);
}

.guide-source-list span {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
}

.guide-source-list strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}

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

.contrast-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.contrast-block.is-wrong {
  border-color: #e3c6b3;
  background: #fffaf6;
}

.contrast-block.is-right {
  border-color: #9bc7c0;
  background: #f1faf7;
}

.contrast-label {
  margin-bottom: 10px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

.contrast-block.is-wrong .contrast-label {
  color: var(--warn);
}

.contrast-block p,
.contrast-block ul {
  margin: 0;
}

.contrast-block ul {
  padding-left: 20px;
}

.objective-verdict {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.objective-verdict article {
  border-top: 3px solid #9bc7c0;
  padding: 16px;
  background: var(--surface);
}

.objective-verdict article:nth-child(2) {
  border-top-color: #d2b06f;
}

.objective-verdict article:nth-child(3) {
  border-top-color: #d29b86;
}

.objective-verdict span,
.section-kicker {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.objective-verdict article:nth-child(2) span {
  color: #82611e;
}

.objective-verdict article:nth-child(3) span {
  color: var(--warn);
}

.objective-verdict p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.setup-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.setup-flow > div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 3px solid #9bc7c0;
  padding: 14px;
  background: var(--surface);
}

.setup-flow span,
.evidence-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

.setup-flow strong {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.3;
}

.setup-flow small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.machine-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 14px;
  margin: 18px 0;
}

.machine-card,
.string-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.machine-name,
.string-label {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

.causal-nodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}

.causal-nodes span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: #234760;
  font-size: 13px;
  font-weight: 900;
}

.causal-nodes b {
  color: var(--accent-ink);
}

.machine-card p,
.string-card p {
  margin: 0;
  font-size: 13px;
}

.string-card pre {
  margin: 14px 0;
  padding: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #172327;
  border-radius: 8px;
  color: #eaf4f2;
  font-size: 12px;
  line-height: 1.55;
}

.string-card code {
  color: inherit;
  background: transparent;
  padding: 0;
}

.formula-block {
  margin: 18px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  text-align: center;
}

.compact-formula {
  padding: 10px 18px;
}

.reader-detail-grid .detail-block {
  min-height: 250px;
}

.split-table td:not(:first-child),
.split-table th:not(:first-child) {
  text-align: center;
}

.split-table .held-out-row td {
  background: #f1faf7;
  color: #1f3632;
}

.composition-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.15fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}

.composition-equation > div {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: var(--surface);
}

.composition-equation > b {
  color: var(--accent-ink);
  font-size: 24px;
  text-align: center;
}

.composition-equation span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.composition-equation strong {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.composition-equation .composition-result {
  border-color: #8ebeb7;
  background: #f1faf7;
}

.closed-world-note {
  margin-top: 14px;
  border-left: 4px solid #d2b06f;
  padding: 16px 18px;
  background: #fffcf5;
}

.closed-world-note > strong {
  color: #765817;
}

.closed-world-note p {
  margin: 8px 0 0;
  font-size: 14px;
}

.counterfactual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.counterfactual-steps li {
  min-height: 156px;
  border-top: 3px solid #9bc7c0;
  padding: 15px;
  background: var(--surface);
}

.counterfactual-steps span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 900;
}

.evidence-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.evidence-ladder article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.evidence-ladder article:last-child {
  border-color: #8ebeb7;
  background: #f1faf7;
}

.evidence-ladder h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.evidence-ladder p {
  margin: 0;
  font-size: 14px;
}

.skeptic-line {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.evidence-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 900;
}

.evidence-summary b {
  font-size: 20px;
}

.section-kicker {
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-matrix {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.review-matrix article {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.25fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.review-matrix article > div {
  padding: 16px;
}

.review-matrix article > div + div {
  border-left: 1px solid var(--line);
}

.review-evidence {
  display: flex;
  align-items: center;
  background: #f1faf7;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 900;
}

.review-matrix span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.review-matrix p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.logic-review {
  border: 1px solid #b7d0c5;
  border-radius: 8px;
  padding: 20px;
  background: #fbfdfb;
}

.logic-review h3,
.stronger-test h3 {
  margin: 0 0 10px;
}

.logic-review p:last-child,
.stronger-test ul {
  margin-bottom: 0;
}

.limitation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.limitation-grid article {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: var(--surface);
}

.limitation-grid span {
  color: #a77460;
  font-size: 12px;
  font-weight: 900;
}

.limitation-grid h3 {
  margin: 14px 0 9px;
  font-size: 17px;
  line-height: 1.35;
}

.limitation-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.stronger-test {
  border-left: 4px solid #8ebeb7;
  padding: 17px 20px;
  background: #f1faf7;
}

.stronger-test li + li {
  margin-top: 7px;
}

.disco-warning {
  border-color: #d2b06f;
  background: #fffcf5;
}

.discoscm-question {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #8ebeb7;
  border-radius: 8px;
  background: #f1faf7;
}

.discoscm-question p {
  margin: 10px 0 0;
  color: #1f3632;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
}

.reading-route {
  margin: 0;
  padding-left: 22px;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .deadline-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .digest-grid div:nth-child(1),
  .digest-grid div:nth-child(2),
  .digest-grid div:nth-child(n + 3) {
    grid-column: span 1;
  }

  .setup-flow {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .machine-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
	  .hero-grid,
	  .question-hero,
  .deadline-head,
  .tier-grid,
  .cards,
  .entry-grid,
  .article-entry-grid,
  .venue-guide-list,
  .callout-grid,
  .problem-priority-grid,
	  .rule-strip,
	  .candidate-grid,
	  .detail-grid,
	  .scout-hero,
	  .scout-use-grid,
	  .front-grid,
	  .matrix-grid,
	  .digest-hero,
	  .reader-contrast,
	  .reader-object-strip,
	  .reader-lens-grid,
	  .reader-portfolio-grid,
	  .paper-neighbor-nav,
	  .evidence-ladder,
      .objective-verdict,
      .limitation-grid {
	    grid-template-columns: 1fr;
	  }

  .review-matrix article {
    grid-template-columns: 1fr;
  }

  .review-matrix article > div + div {
    border-top: 1px solid var(--line);
    border-left: none;
  }

	  .setup-flow,
	  .counterfactual-steps {
	    grid-template-columns: repeat(2, 1fr);
	  }

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

	  .composition-equation > b {
	    transform: rotate(90deg);
	  }

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

	  .metric-strip,
	  .scout-stat-grid {
	    grid-template-columns: repeat(2, 1fr);
	  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-action {
    width: 100%;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-more {
    position: static;
  }

  .nav-menu {
    top: auto;
    right: auto;
    left: 0;
  }

  .digest-page .digest-global-nav {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
  }

  .digest-page .digest-project-brand {
    gap: 0;
  }

  .digest-page .digest-project-brand .brand-title,
  .digest-page .digest-desktop-label {
    display: none;
  }

  .digest-page .digest-mobile-label {
    display: inline-flex;
  }

  .digest-page .digest-breadcrumb {
    gap: 6px;
    margin-right: auto;
    overflow: hidden;
    font-size: 13px;
  }

  .digest-page .digest-breadcrumb > * {
    flex: 0 0 auto;
  }

  .paper-reader-page .reader-global-nav,
  .a5-reader-page .reader-global-nav {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
  }

  .digest-index-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 18px;
  }
}

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .paper-reader-page .nav,
  .a5-reader-page .nav {
    gap: 10px;
    padding: 10px 0;
  }

  .paper-reader-page .reader-project-brand,
  .a5-reader-page .reader-project-brand {
    gap: 0;
  }

  .paper-reader-page .reader-project-brand .brand-title,
  .a5-reader-page .reader-project-brand .brand-title {
    display: none;
  }

  .paper-reader-page .nav-links,
  .a5-reader-page .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .paper-reader-page .nav-links a,
  .a5-reader-page .nav-links a {
    flex: 0 0 auto;
  }

  .paper-reader-page .article-section,
  .a5-reader-page .article-section {
    scroll-margin-top: 124px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .hero {
    padding-top: 30px;
  }

  .lede {
    font-size: 16px;
    line-height: 1.5;
  }

  .reader-toc {
    margin-bottom: 20px;
    padding: 10px;
  }

  .bespoke-paper-guide-page .reader-toc {
    position: static;
    flex-wrap: wrap;
    overflow-x: visible;
    box-shadow: none;
  }

  .bespoke-paper-guide-page .reader-toc a {
    flex: 1 1 138px;
    white-space: normal;
  }

  .bespoke-paper-guide-page .full-guide-section {
    padding: 34px 0;
  }

  .bespoke-paper-guide-page .guide-markdown p,
  .bespoke-paper-guide-page .guide-markdown li {
    font-size: 15px;
    line-height: 1.76;
  }

  .reader-toc a {
    flex: 1 1 138px;
  }

  .guide-source-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .full-guide-section {
    padding: 28px 0;
  }

  .setup-flow,
  .machine-grid,
  .counterfactual-steps {
    grid-template-columns: 1fr;
  }

  .machine-card {
    grid-column: auto;
  }

  .setup-flow > div,
  .counterfactual-steps li {
    min-height: 0;
  }

  .digest-card-actions {
    justify-content: flex-start;
  }

  .discoscm-question p {
    font-size: 16px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
  }

  .metric {
    padding: 12px;
  }

  .metric strong {
    font-size: 24px;
  }

  .metric span {
    font-size: 12px;
  }

  .panel {
    padding: 15px;
  }

  .focus-list {
    gap: 9px;
  }

  .focus-list li {
    gap: 8px;
  }

  .focus-list span {
    font-size: 12px;
    line-height: 1.35;
  }

  .workspace-links {
    margin-top: 12px;
    padding-top: 12px;
  }

  .workspace-link {
    min-height: 36px;
  }

  .portfolio-table,
  .portfolio-table thead,
  .portfolio-table tbody,
  .portfolio-table th,
  .portfolio-table td,
  .portfolio-table tr {
    display: block;
  }

  .portfolio-table thead {
    display: none;
  }

  .portfolio-table tr {
    border-bottom: 1px solid var(--line);
  }

  .portfolio-table tr:last-child {
    border-bottom: none;
  }

  .portfolio-table td {
    border-bottom: none;
    padding: 10px 14px;
  }

  .portfolio-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #40504d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
  }

	  .article-table {
	    min-width: 0;
	  }

	  .scout-paper-table {
	    min-width: 0;
	  }

	  .digest-card-head {
	    flex-direction: column;
	  }

		  .digest-card,
		  .digest-section {
		    scroll-margin-top: 78px;
		  }

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

	  .digest-grid div {
	    min-height: auto;
	  }

  .article-table,
  .article-table thead,
  .article-table tbody,
  .article-table tr,
  .article-table th,
  .article-table td {
    display: block;
  }

  .article-table thead {
    display: none;
  }

  .article-table tr {
    border-bottom: 1px solid var(--line);
  }

  .article-table tr:last-child {
    border-bottom: none;
  }

  .article-table th,
  .article-table td {
    border-bottom: none;
    width: 100%;
  }

  .article-table:not(.compact) td:nth-child(1)::before {
    content: "Track";
  }

  .article-table:not(.compact) td:nth-child(2)::before {
    content: "核心问题";
  }

  .article-table:not(.compact) td:nth-child(3)::before {
    content: "对 10 Paper Portfolio 的含义";
  }

  .article-table:not(.compact) td::before,
  .article-table.compact th {
    display: block;
    margin-bottom: 5px;
    color: #40504d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .guide-table-wrap .article-table td::before {
    content: attr(data-label) !important;
  }

  .guide-table-wrap .article-table td {
    text-align: left !important;
  }

  .split-table td::before {
    content: attr(data-label) !important;
  }

  .question-table {
    min-width: 1120px;
    display: table;
  }

  .question-table thead {
    display: table-header-group;
  }

  .question-table tbody {
    display: table-row-group;
  }

  .question-table tr {
    display: table-row;
    border-bottom: none;
  }

  .question-table th,
  .question-table td {
    display: table-cell;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .question-table td::before {
    content: none;
  }
}

@media (max-width: 760px) {
  .digest-tools {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "search"
      "filters"
      "status";
    gap: 10px;
  }

  .digest-tools input {
    min-width: 0;
  }

  .digest-tools p {
    min-width: 0;
    text-align: left;
  }

  .digest-directory-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .digest-directory-head p {
    text-align: left;
  }
}
