/* ==========================================================================
   OCT 视界 — OCT 应用场景库
   ========================================================================== */

.scenarios-page,
.scenario-detail-page {
  padding-bottom: 72px;
}

.scenario-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  padding: clamp(42px, 6vw, 76px) 0 clamp(34px, 4vw, 54px);
}

.scenario-hero h1 {
  max-width: 14em;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(39px, 5.3vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.scenario-hero .page-dek {
  max-width: 42em;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
}

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

.scenario-hero .page-stats {
  margin-top: 30px;
}

.scenario-hero-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.scenario-map-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(143, 220, 205, 0.22), transparent 42%),
    linear-gradient(135deg, #083f3b, #0d5c57 64%, #146b63);
  color: #f7f5ef;
  box-shadow: var(--shadow-md);
}

.scenario-map-head span {
  align-self: center;
  margin-right: auto;
  color: rgba(247, 245, 239, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.scenario-map-head strong {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 0.9;
}

.scenario-map-head em {
  color: rgba(247, 245, 239, 0.72);
  font-size: 10px;
  font-style: normal;
}

.scenario-map-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.scenario-map-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.scenario-map-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.scenario-map-tile strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.scenario-map-tile em {
  margin-top: 3px;
  color: var(--brand);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.scenario-map-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.scenario-map-tile--industrial em { color: #9a5b25; }
.scenario-map-tile--research em { color: #365f7a; }
.scenario-map-tile--frontier em { color: #6d4a7c; }

[data-theme="dark"] .scenario-map-tile--industrial em { color: #e0a66c; }
[data-theme="dark"] .scenario-map-tile--research em { color: #8dbbdb; }
[data-theme="dark"] .scenario-map-tile--frontier em { color: #c39bd3; }

/* ---------- shared section ---------- */

.scenario-section,
.scenario-hot-section,
.scenario-updates-section {
  margin-top: clamp(50px, 6vw, 82px);
  scroll-margin-top: 110px;
}

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

.scenario-section-head h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.scenario-section-head p {
  max-width: 60em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.scenario-count {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- third-level directory ---------- */

.scenario-directory {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.scenario-directory-col {
  min-width: 0;
}

.scenario-directory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.scenario-directory-head strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.scenario-directory-head em {
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
}

.scenario-directory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.45;
  transition: color 0.2s ease, padding 0.2s ease;
}

.scenario-directory-link:hover {
  padding-left: 4px;
  color: var(--brand-deep);
}

.scenario-directory-link strong {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- quick finder ---------- */

.scenario-quick {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.scenario-quick-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 14px;
}

.scenario-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 100%;
  max-width: none;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scenario-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.scenario-search svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}

.scenario-search input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.scenario-quick-chips {
  margin: 0;
  justify-content: flex-end;
}

.scenario-quick-chips .chip {
  cursor: pointer;
}

.scenario-quick-chips .chip span {
  margin-left: 4px;
  color: inherit;
  opacity: 0.9;
  font-size: 9px;
}

.scenario-filter-panel {
  margin: 0 0 20px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.scenario-filter-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.scenario-filter-row:first-child {
  border-top: 0;
}

@media (min-width: 901px) {
  .scenario-filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .scenario-filter-row {
    grid-template-columns: 66px minmax(0, 1fr);
  }
  .scenario-filter-row:nth-child(2) {
    border-top: 0;
  }
}

.scenario-filter-label {
  padding-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.scenario-filter-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.scenario-filter-chips .chip {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.scenario-filter-chips .chip span {
  margin-left: 4px;
  color: inherit;
  opacity: 0.9;
  font-size: 8px;
}

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

.scenario-quick-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--paper);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scenario-quick-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.scenario-quick-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.scenario-quick-dot--industrial { background: #b56b2c; }
.scenario-quick-dot--research { background: #4d7a9c; }
.scenario-quick-dot--frontier { background: #8b5f9c; }

.scenario-quick-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scenario-quick-copy strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-quick-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-quick-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  flex: none;
}

.scenario-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}

.scenario-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.scenario-empty p {
  margin: 0;
  font-size: 11px;
}

/* ---------- hot ---------- */

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

.scenario-hot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.scenario-hot-card::after {
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--brand-soft);
  content: "";
  opacity: 0.7;
}

.scenario-hot-card--industrial::after { background: #f4e4d2; }
.scenario-hot-card--research::after { background: #e1eaf3; }
.scenario-hot-card--frontier::after { background: #eee3f3; }

.scenario-hot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.scenario-hot-rank {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.scenario-hot-cat {
  margin-top: 18px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scenario-hot-card--industrial .scenario-hot-cat { color: #9a5b25; }
.scenario-hot-card--research .scenario-hot-cat { color: #365f7a; }
.scenario-hot-card--frontier .scenario-hot-cat { color: #6d4a7c; }

[data-theme="dark"] .scenario-hot-card--industrial .scenario-hot-cat { color: #e0a66c; }
[data-theme="dark"] .scenario-hot-card--research .scenario-hot-cat { color: #8dbbdb; }
[data-theme="dark"] .scenario-hot-card--frontier .scenario-hot-cat { color: #c39bd3; }
[data-theme="dark"] .scenario-hot-card--industrial::after { background: #3a2a1a; }
[data-theme="dark"] .scenario-hot-card--research::after { background: #1a2d3a; }
[data-theme="dark"] .scenario-hot-card--frontier::after { background: #2d1f35; }

.scenario-hot-card h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.scenario-hot-card p {
  position: relative;
  z-index: 1;
  margin: 9px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.scenario-hot-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- selector ---------- */

.scenario-selector {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 4vw, 56px);
  margin-top: clamp(54px, 6vw, 88px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 12%, rgba(143, 220, 205, 0.16), transparent 36%),
    linear-gradient(135deg, #083f3b, #0b4b46 52%, #123f3c);
  color: #f7f5ef;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 110px;
}

.scenario-selector-copy .eyebrow {
  color: rgba(247, 245, 239, 0.62);
}

.scenario-selector-copy h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.scenario-selector-copy p {
  max-width: 31em;
  margin: 16px 0 0;
  color: rgba(247, 245, 239, 0.72);
  font-size: 12px;
  line-height: 1.8;
}

.scenario-selector-fine {
  font-size: 10px !important;
  opacity: 0.65;
}

.scenario-selector-body {
  align-self: center;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.scenario-selector-progress {
  height: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.scenario-selector-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8fdccd;
  transition: width 0.3s var(--ease);
}

.scenario-selector-step {
  color: rgba(247, 245, 239, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scenario-selector-body h3 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 500;
  line-height: 1.1;
}

.scenario-selector-body > p {
  margin: 8px 0 18px;
  color: rgba(247, 245, 239, 0.65);
  font-size: 11px;
  line-height: 1.7;
}

.scenario-selector-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scenario-selector-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #f7f5ef;
  font: inherit;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scenario-selector-option:hover {
  transform: translateY(-1px);
  border-color: #8fdccd;
  background: rgba(143, 220, 205, 0.12);
}

.scenario-selector-option em {
  color: #8fdccd;
  font-style: normal;
}

.scenario-selector-back {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(247, 245, 239, 0.6);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.scenario-selector-back:hover {
  color: #8fdccd;
}

.scenario-selector-result-head .eyebrow {
  color: rgba(247, 245, 239, 0.55);
}

.scenario-selector-result-head h3 {
  margin-top: 7px;
}

.scenario-selector-result-head p {
  margin: 7px 0 16px;
  color: rgba(247, 245, 239, 0.62);
  font-size: 10.5px;
}

.scenario-selector-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.scenario-selector-result {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scenario-selector-result:hover {
  border-color: #8fdccd;
  background: rgba(143, 220, 205, 0.1);
}

.scenario-selector-score {
  grid-row: span 3;
  color: #8fdccd;
  font-family: var(--serif);
  font-size: 19px;
}

.scenario-selector-result strong {
  font-size: 13px;
}

.scenario-selector-result em {
  grid-column: 2;
  color: rgba(247, 245, 239, 0.6);
  font-size: 10px;
  font-style: normal;
}

.scenario-selector-match {
  grid-column: 2;
  color: rgba(247, 245, 239, 0.48);
  font-size: 9px;
}

.scenario-selector-go {
  grid-column: 3;
  grid-row: 1 / span 3;
  color: #8fdccd;
  font-size: 10px;
  font-weight: 700;
}

.scenario-selector-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.scenario-selector-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #f7f5ef;
}

.scenario-selector-actions .text-link {
  color: #8fdccd;
}

/* ---------- updates ---------- */

.scenario-updates {
  border-top: 1px solid var(--line);
}

.scenario-update {
  display: grid;
  grid-template-columns: 86px 88px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 15px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}

.scenario-update:hover {
  padding-left: 10px;
  background: var(--surface);
}

.scenario-update time {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.scenario-update-cat {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.scenario-update-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.scenario-update-copy strong {
  font-size: 12.5px;
}

.scenario-update-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-update-arrow {
  color: var(--muted);
}

/* ---------- cards ---------- */

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

.scenario-empty-note {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

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

.scenario-cat {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.scenario-cat--industrial { background: #f4e4d2; color: #8b4c18; }
.scenario-cat--research { background: #e1eaf3; color: #2f5875; }
.scenario-cat--frontier { background: #eee3f3; color: #644074; }

[data-theme="dark"] .scenario-cat { background: var(--brand-soft); color: var(--brand); }
[data-theme="dark"] .scenario-cat--industrial { background: #3a2a1a; color: #e0a66c; }
[data-theme="dark"] .scenario-cat--research { background: #1a2d3a; color: #8dbbdb; }
[data-theme="dark"] .scenario-cat--frontier { background: #2d1f35; color: #c39bd3; }

.scenario-maturity {
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-align: right;
}

.scenario-card h3 {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.scenario-card-en {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.scenario-card-desc {
  margin: 10px 0 16px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.scenario-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.scenario-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.2;
}

.scenario-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.scenario-card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- CTA ---------- */

.scenario-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(54px, 6vw, 84px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, var(--surface), var(--paper-2));
}

.scenario-cta h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.scenario-cta p {
  max-width: 54em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* ==========================================================================
   Detail page
   ========================================================================== */

.scenario-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
}

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

.scenario-breadcrumb span[aria-current="page"] {
  color: var(--ink-soft);
}

.scenario-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: end;
  padding: clamp(36px, 5vw, 62px) 0 clamp(30px, 4vw, 46px);
}

.scenario-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.scenario-detail-hero h1 {
  max-width: 12em;
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.scenario-detail-en {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scenario-detail-summary {
  max-width: 48em;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.scenario-detail-hero .scenario-badge-row {
  margin-top: 18px;
}

.scenario-detail-users {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.scenario-subdir-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.scenario-subdir-row > span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.scenario-subdir-row em,
.scenario-subdir-row .scenario-subdir-chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.3;
}

.scenario-subdir-row .scenario-subdir-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.scenario-subdir-row .scenario-subdir-more {
  border-style: dashed;
  color: var(--muted);
}

.scenario-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.scenario-detail-stats {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.scenario-detail-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-detail-stat span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.scenario-detail-stat strong {
  max-width: 64%;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}

/* ---------- subdirection pages ---------- */

.direction-page .scenario-detail-hero h1 {
  max-width: 16em;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.direction-page .scenario-detail-users a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.direction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}

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

.direction-block {
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid var(--line);
}

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

.direction-block h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.direction-block > p {
  max-width: 60em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

.direction-block > p + p {
  margin-top: 10px;
}

.direction-block .scenario-bullets {
  margin-top: 14px;
}

.direction-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.direction-pills span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}

.direction-links {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.direction-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  transition: color 0.2s ease, padding 0.2s ease;
}

.direction-links a:hover {
  padding-left: 6px;
  color: var(--brand-deep);
}

.direction-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.direction-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.direction-related a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.direction-related strong {
  color: var(--muted);
  font-weight: 500;
}

.direction-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.direction-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.direction-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.direction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.direction-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10.5px;
  transition: color 0.2s ease;
}

.direction-card a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.direction-card a:hover {
  color: var(--brand-deep);
}

.direction-block--figures .scenario-figure-grid {
  margin-top: 14px;
}

/* tabs */

.scenario-tabs-wrap {
  margin: 0 -1px;
  padding: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.scenario-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scenario-tabs::-webkit-scrollbar {
  display: none;
}

.scenario-tab {
  flex: none;
  padding: 15px 16px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.scenario-tab:hover {
  color: var(--ink);
}

.scenario-tab.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand-deep);
}

[data-theme="dark"] .scenario-tab.is-active {
  color: var(--brand);
}

.scenario-panel {
  padding: clamp(26px, 4vw, 46px) 0 0;
  animation: scenario-fade 0.25s ease;
}

@keyframes scenario-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.scenario-lead {
  max-width: 62em;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

.scenario-bullets {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 66em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-bullets li {
  position: relative;
  padding-left: 19px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.85;
}

.scenario-bullets li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.scenario-note {
  max-width: 62em;
  margin: 18px 0 0;
  padding: 13px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.75;
}

.scenario-subsection {
  margin-top: 32px;
}

.scenario-subsection h3,
.scenario-subhead h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.scenario-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.scenario-subhead-note {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

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

.scenario-subdir-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.scenario-subdir-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.scenario-subdir-link strong {
  color: var(--muted);
  font-weight: 500;
}

.scenario-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.scenario-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.scenario-table th,
.scenario-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.scenario-table th {
  background: var(--paper-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-table td {
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.scenario-table td:first-child {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.scenario-table td:nth-child(2) {
  color: var(--brand-deep);
  font-weight: 600;
}

.scenario-table tr:last-child td {
  border-bottom: 0;
}

.scenario-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.scenario-case {
  padding: 19px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.scenario-case h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
}

.scenario-case p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.scenario-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 62em;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.scenario-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-step-num {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.scenario-steps strong {
  display: block;
  font-size: 12.5px;
}

.scenario-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.scenario-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  max-width: 62em;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.scenario-checklist li {
  position: relative;
  padding-left: 21px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.scenario-checklist li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--brand);
  content: "✓";
  font-weight: 800;
}

.scenario-tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scenario-tradeoff {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.scenario-tradeoff h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.scenario-tradeoff--good {
  border-top: 3px solid var(--brand);
}

.scenario-tradeoff--bad {
  border-top: 3px solid var(--accent);
}

.scenario-institution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.scenario-institution {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.scenario-institution h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.scenario-institution p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

/* products / resources / suppliers */

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

.scenario-product-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.scenario-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.scenario-product-cat {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-product-card strong {
  font-size: 11.5px;
  line-height: 1.4;
}

.scenario-product-card > span:not(.scenario-product-cat) {
  color: var(--ink-soft);
  font-size: 9.5px;
}

.scenario-product-card em {
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
}

.scenario-supplier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.scenario-supplier-list a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.scenario-supplier-list a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

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

.scenario-resource {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.scenario-resource:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.scenario-resource span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.scenario-resource em {
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.5;
  word-break: break-word;
}

.scenario-resource strong {
  margin-top: auto;
  color: var(--brand);
  font-size: 12px;
}

.scenario-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.scenario-inline-cta h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
}

.scenario-inline-cta p {
  max-width: 54em;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.scenario-conversion {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(46px, 5vw, 72px);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 12%, var(--brand-soft), transparent 42%),
    var(--surface-2);
}

.scenario-conversion-copy h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.scenario-conversion-copy p {
  max-width: 48em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.scenario-conversion-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.scenario-conversion-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  transition: color 0.2s ease, padding 0.2s ease;
}

.scenario-conversion-links a:hover {
  padding-left: 6px;
  color: var(--brand-deep);
}

.scenario-conversion-links span {
  color: var(--muted);
}

.scenario-feedback {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
}

.scenario-feedback a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scenario-related {
  margin-top: clamp(46px, 5vw, 72px);
}

.scenario-figures {
  margin-top: clamp(46px, 5vw, 72px);
}

.scenario-figures-lead {
  max-width: 62em;
}

.scenario-figures-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

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

.scenario-paper-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.scenario-paper-figure-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.scenario-paper-figure-media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.scenario-paper-figure figcaption {
  padding: 15px 17px 17px;
}

.scenario-paper-figure-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.scenario-paper-figure-label {
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-paper-figure-year {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.scenario-paper-figure-caption {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.scenario-paper-figure-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.scenario-paper-figure-source a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.scenario-paper-figure-source a:hover {
  color: var(--accent);
}

.scenario-figures-credit {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .scenario-figure-grid {
    grid-template-columns: 1fr;
  }

  .scenario-paper-figure-media img {
    height: 240px;
  }
}

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

.scenario-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 112px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.scenario-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.scenario-related-card span {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
}

.scenario-related-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.55;
}

.scenario-related-card strong {
  margin-top: auto;
  color: var(--brand);
  font-size: 11px;
}

.scenario-disclaimer {
  max-width: 70em;
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.scenario-loading {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

.scenario-noscript {
  padding: 40px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.scenario-noscript a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scenario-empty-state {
  padding: 90px 0;
  text-align: center;
}

.scenario-empty-state h1 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
}

.scenario-empty-state p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .scenario-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 34px;
  }
  .scenario-grid,
  .scenario-hot-grid,
  .scenario-case-grid,
  .scenario-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scenario-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scenario-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
  }
}

@media (max-width: 900px) {
  .scenario-hero,
  .scenario-detail-hero,
  .scenario-selector {
    grid-template-columns: 1fr;
  }
  .scenario-hero {
    padding-top: 38px;
  }
  .scenario-hero-map {
    max-width: 620px;
  }
  .scenario-selector-copy p {
    max-width: 46em;
  }
  .scenario-selector-body {
    margin-top: 4px;
  }
  .scenario-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
  }
  .scenario-detail-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .scenario-detail-stat strong {
    max-width: none;
    text-align: left;
  }
  .scenario-quick-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .scenario-search {
    max-width: none;
    flex-basis: auto;
  }
  .scenario-quick-chips {
    justify-content: flex-start;
  }
  .scenario-filter-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 0;
  }
  .scenario-filter-label {
    padding-top: 0;
  }
  .scenario-conversion {
    grid-template-columns: 1fr;
  }
  .direction-layout {
    grid-template-columns: 1fr;
  }
  .direction-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .scenario-section-head,
  .scenario-cta,
  .scenario-inline-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .scenario-update {
    grid-template-columns: 76px minmax(0, 1fr) 20px;
  }
  .scenario-update-cat {
    display: none;
  }
}

@media (max-width: 640px) {
  .scenario-hero h1,
  .scenario-detail-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
  .scenario-grid,
  .scenario-hot-grid,
  .scenario-case-grid,
  .scenario-product-grid,
  .scenario-quick-grid,
  .scenario-related-grid,
  .scenario-tradeoff-grid,
  .scenario-institution-grid,
  .scenario-checklist,
  .scenario-resource-grid,
  .scenario-directory-grid {
    grid-template-columns: 1fr;
  }
  .scenario-hot-card {
    min-height: 174px;
  }
  .scenario-selector-options {
    grid-template-columns: 1fr;
  }
  .scenario-selector-result {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .scenario-selector-go {
    display: none;
  }
  .scenario-detail-stats {
    grid-template-columns: 1fr;
  }
  .scenario-detail-stat {
    flex-direction: row;
    align-items: baseline;
  }
  .scenario-detail-stat strong {
    max-width: 66%;
    text-align: right;
  }
  .scenario-update {
    grid-template-columns: 1fr 18px;
    gap: 4px 12px;
    padding: 14px 2px;
  }
  .scenario-update time {
    grid-column: 1;
  }
  .scenario-update-copy {
    grid-column: 1;
  }
  .scenario-update-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .scenario-update-copy em {
    white-space: normal;
  }
  .scenario-tab {
    padding: 13px 12px;
    font-size: 10px;
  }
  .scenario-lead {
    font-size: 14px;
  }
  .scenario-inline-cta {
    padding: 20px;
  }
  .scenario-subdir-grid {
    grid-template-columns: 1fr;
  }
  .scenario-detail-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .scenario-subdir-row em {
    font-size: 8px;
  }
  .direction-related,
  .direction-aside {
    grid-template-columns: 1fr;
  }
  .direction-page .scenario-detail-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
}
