/* demo5 — framework + incubator + strategy log */

.pill-incubating {
  background: color-mix(in srgb, #2dd4bf 18%, transparent);
  color: #7ee0d2;
  border: 1px solid color-mix(in srgb, #2dd4bf 35%, transparent);
}

.research-banner {
  padding-bottom: 0.5rem;
}

.research-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.research-subnav .chip {
  text-decoration: none;
  color: inherit;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.book-card {
  max-width: 56rem;
}

.book-chart {
  height: 320px;
  margin: 0.25rem 0 0.75rem;
}

.chart-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0.85rem 0 0.5rem;
}

.chart-controls-row .chart-controls {
  margin: 0;
}

.contact-panel {
  border-top: 1px solid var(--line, color-mix(in srgb, #c4d0cb 22%, transparent));
}

/* Strategy log: viewport shows ~7 rows, scroll for the rest */
.registry-table-scroll {
  max-height: calc(2.6rem + 7 * 3.15rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.registry-table-scroll .registry-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card, #15201e);
  box-shadow: 0 1px 0 var(--line, color-mix(in srgb, #c4d0cb 22%, transparent));
}

@media (max-width: 719px) {
  .registry-table-scroll {
    max-height: calc(7 * 6.5rem);
  }

  .registry-table-scroll .registry-table thead th {
    position: static;
    box-shadow: none;
  }
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, #c4d0cb 18%, transparent);
  border-radius: 0.55rem;
  margin: 0.35rem 0 0.5rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.compare-table th,
.compare-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, #c4d0cb 12%, transparent);
  vertical-align: top;
}

.compare-table th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa09a;
  white-space: nowrap;
}

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

.compare-table tr.is-book td {
  background: color-mix(in srgb, #2dd4bf 10%, transparent);
  font-weight: 600;
}

.compare-table .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  white-space: nowrap;
}

.book-modal-panel {
  max-width: min(42rem, 96vw);
}

.sleeve-swatch {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.book-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.book-asof {
  font-size: 0.8rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.stat-strip div {
  border-top: 1px solid color-mix(in srgb, #c4d0cb 18%, transparent);
  padding-top: 0.55rem;
}

.stat-strip dt {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fa09a;
  margin: 0;
}

.stat-strip dd {
  margin: 0.2rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sleeve-grid-head {
  margin: 2rem 0 0.85rem;
}

.sleeve-grid-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

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

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

.sleeve-card {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sleeve-card:hover,
.sleeve-card:focus-visible {
  border-color: color-mix(in srgb, #2dd4bf 45%, transparent);
  outline: none;
}

.sleeve-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.sleeve-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

.sleeve-card .sleeve-assets {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.sleeve-card .stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.5rem 0 0.75rem;
}

.sleeve-card .stat-strip dd {
  font-size: 0.95rem;
}

.modal-section-label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa09a;
  font-weight: 600;
}

.gate-list,
.modal-disclaimers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gate-list li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, #c4d0cb 12%, transparent);
  font-size: 0.92rem;
}

.gate-list .gate-body strong {
  display: block;
  font-weight: 600;
}

.gate-list .gate-body span {
  color: #8fa09a;
  font-size: 0.86rem;
}

.modal-disclaimers {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, #c4d0cb 14%, transparent);
}

.modal-disclaimers li {
  margin: 0.35rem 0;
  padding-left: 0.9rem;
  position: relative;
  font-size: 0.82rem;
  line-height: 1.45;
}

.modal-disclaimers li::before {
  content: "·";
  position: absolute;
  left: 0.15rem;
}

.contact-actions {
  margin-top: 0.25rem;
}

.site-footer .footer-inner {
  justify-content: flex-start;
}

.pill-pass {
  background: color-mix(in srgb, #2dd4bf 16%, transparent);
  color: #7ee0d2;
  border: 1px solid color-mix(in srgb, #2dd4bf 35%, transparent);
}

.pill-fail {
  background: color-mix(in srgb, #f87171 14%, transparent);
  color: #fca5a5;
  border: 1px solid color-mix(in srgb, #f87171 30%, transparent);
}

.pill-neutral {
  background: color-mix(in srgb, #c4d0cb 10%, transparent);
  color: #c4d0cb;
  border: 1px solid color-mix(in srgb, #c4d0cb 22%, transparent);
}

.archive-note {
  margin-top: 0.75rem;
  max-width: 52rem;
}

/* Nine-step framework: one card per step, description collapses */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  align-items: start;
}

@media (min-width: 720px) {
  .step-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

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

.step-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.step-card details {
  margin: 0;
}

.step-card summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  font-weight: 600;
  line-height: 1.35;
  user-select: none;
}

.step-card summary::-webkit-details-marker {
  display: none;
}

.step-card .step-num {
  flex: 0 0 auto;
  font-family: var(--mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted, #8fa09a);
  min-width: 1.25rem;
  padding-top: 0.1rem;
}

.step-card .step-title {
  flex: 1 1 auto;
  padding-right: 1.25rem;
  position: relative;
}

.step-card .step-title::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-weight: 500;
  color: var(--muted, #8fa09a);
}

.step-card details[open] .step-title::after {
  content: "−";
}

.step-card details p {
  margin: 0;
  padding: 0 1rem 1rem 2.85rem;
  font-size: 0.92rem;
  color: var(--body, #c4d0cb);
  line-height: 1.5;
}

@media (max-width: 719px) {
  .step-list {
    gap: 0.55rem;
  }

  .step-card summary {
    padding: 0.85rem 0.9rem;
  }

  .step-card details p {
    padding: 0 0.9rem 0.95rem 0.9rem;
  }
}
