/* ==========================================================================
   Axiom Science Subpages — Kyanic Editorial Style (Capabilities, Docs, Environment,
   Updates, Evaluations, Examples)
   ========================================================================== */

/* --- Shared Editorial Hero (Aligned to Kyanic research-hero / article-hero) --- */
.page-hero {
  padding-block: clamp(28px, 4.5vw, 56px) clamp(44px, 6vw, 76px);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: clamp(22px, 3.2vw, 38px);
  transition: color 0.18s var(--ease);
}

.page-back:hover {
  color: var(--ink);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(260px, 0.76fr);
  gap: clamp(36px, 5.5vw, 88px);
  align-items: start;
}

.page-kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.page-deck {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 400;
  line-height: 1.58;
  color: var(--ink-body);
  max-width: 34em;
}

.page-lead-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-muted);
  max-width: 44em;
}

.page-hero-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.page-hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.page-plate-frame {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.page-plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Sticky Anchor Strip / Jump Nav (Quiet Hairline Pills) --- */
.page-anchor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.page-anchor-strip a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink-body);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-anchor-strip a:hover {
  background: var(--surface-hover);
  border-color: var(--hairline-strong);
  color: var(--ink);
}

/* --- Shared 2-Column Editorial Section Pattern (Exact Match to Kyanic research-section) --- */
.page-body {
  padding-bottom: clamp(76px, 9vw, 128px);
}

.ed-section {
  padding-top: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.ed-section:first-child {
  margin-top: 0;
}

.ed-section-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.ed-section-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.54;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.ed-section-count {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.ed-section-content {
  min-width: 0;
}

.ed-prose {
  max-width: 46em;
}

.ed-prose p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ink-body);
}

.ed-prose p + p {
  margin-top: 16px;
}

.ed-prose h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  margin: 28px 0 12px;
}

.ed-prose h3:first-child {
  margin-top: 0;
}

.ed-prose ul,
.ed-prose ol {
  margin: 14px 0 18px;
  padding-left: 22px;
}

.ed-prose li {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-body);
  margin-bottom: 8px;
}

.ed-prose strong,
.ed-prose b {
  font-weight: 600;
  color: var(--ink);
}

.ed-prose a {
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: border-color 0.16s var(--ease);
}

.ed-prose a:hover {
  border-bottom-color: var(--ink);
}

.ed-prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 5px;
  background: var(--surface);
  color: var(--ink);
}

/* Editorial Callout / Note Strip (Zero rounded corners, crisp left rule) */
.ed-callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 2px solid var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-body);
}

.ed-callout strong {
  color: var(--ink);
}

.ed-callout.is-warn {
  border-left-color: var(--cinnabar);
}

/* Editorial Hairline Table (Exact Match to Kyanic agent-table-wrap) */
.ed-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
}

.ed-table th,
.ed-table td {
  vertical-align: top;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-body);
}

.ed-table thead th {
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

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

/* Flat Pillar / Catalog Cards (Matches Kyanic research-pillar-card) */
.ed-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ed-card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ed-card {
  padding: 20px 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ed-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ed-card h3 {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
}

.ed-card-tag {
  font-size: 11px;
  color: var(--ink-muted);
  border: 1px solid var(--hairline-strong);
  padding: 1px 7px;
  white-space: nowrap;
}

.ed-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.ed-card p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--ink-body);
}

/* Compact Tool List (Capabilities #outward-tools) */
.cap-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cap-tool-list li {
  padding: 10px 13px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.2px;
  color: var(--ink-body);
  overflow-wrap: anywhere;
}

.cap-subhead {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  margin: 28px 0 12px;
}

.cap-subhead:first-child {
  margin-top: 0;
}

/* --- Environment Search Bar --- */
.catalog-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px 20px;
  background: var(--surface);
  margin-bottom: 36px;
}

.catalog-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 320px;
}

.catalog-search-field label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.catalog-search-field input {
  width: 100%;
  max-width: 420px;
  height: 38px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  font-size: 14px;
  color: var(--ink);
}

.catalog-search-field input:focus {
  outline: none;
  border-color: var(--ink);
}

#catalog-result {
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.catalog-empty {
  padding: 36px 24px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14.5px;
  margin-bottom: 32px;
}

.catalog-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 24px;
}

.catalog-metric {
  padding: 16px 18px 16px 0;
}

.catalog-metric + .catalog-metric {
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
}

.catalog-metric strong {
  display: block;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.catalog-metric span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* --- Evaluations Metric Strip --- */
.eval-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(32px, 4vw, 52px);
}

.eval-metric-box {
  padding: 24px 20px 24px 0;
}

.eval-metric-box + .eval-metric-box {
  padding-left: 22px;
  border-left: 1px solid var(--hairline);
}

.eval-metric-box figcaption {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.eval-metric-num {
  margin-top: 10px;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.eval-metric-num span {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 4px;
}

.eval-metric-box p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* --- Docs Layout (Sticky Outline + Long-Form Reading + Copyable Prompts) --- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100dvh - var(--header-height) - 48px);
  overflow-y: auto;
  padding-right: 12px;
  border-right: 1px solid var(--hairline);
}

.docs-search-wrap {
  margin-bottom: 18px;
}

.docs-search-wrap input {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink);
}

.docs-search-wrap input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}

.docs-nav-group + .docs-nav-group {
  margin-top: 18px;
}

.docs-nav-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.docs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.docs-nav-list a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.docs-nav-list a:hover,
.docs-nav-list a.is-active {
  color: var(--ink);
  background: var(--surface);
}

.docs-article {
  min-width: 0;
  max-width: 780px;
}

.docs-section {
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.docs-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.docs-section h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
}

.docs-prompt {
  margin: 18px 0 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.docs-prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
}

.docs-prompt-copy {
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  font-size: 12px;
  color: var(--ink);
  transition: background-color 0.16s var(--ease);
}

.docs-prompt-copy:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.docs-prompt pre {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.docs-figure {
  margin: 24px 0;
  background: var(--surface);
  padding: 16px;
}

.docs-figure img {
  width: 100%;
  height: auto;
}

.docs-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.docs-article kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}

/* --- Examples Page (Featured Phylogeny + Figures Grid + PDF Reports + Lightbox Dialog) --- */
.ex-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.8vw, 72px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 44px);
  background: var(--surface);
  margin-bottom: clamp(44px, 5.5vw, 72px);
}

.ex-tree-stage {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--hairline);
  overflow: hidden;
  cursor: zoom-in;
}

.ex-tree-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.ex-expand-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.ex-facts {
  margin: 20px 0;
  border-top: 1px solid var(--hairline);
}

.ex-facts div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
}

.ex-facts dt {
  color: var(--ink-muted);
}

.ex-facts dd {
  color: var(--ink);
}

.ex-tree-variants {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ex-tree-variants button {
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  text-align: left;
  transition: border-color 0.16s var(--ease);
}

.ex-tree-variants button[aria-pressed="true"],
.ex-tree-variants button:hover {
  border-color: var(--ink);
}

.ex-tree-variants img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.ex-tree-variants span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-body);
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.ex-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.ex-card.is-wide {
  grid-column: 1 / -1;
}

.ex-card-media {
  position: relative;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  padding: 18px;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ex-card.is-wide .ex-card-media {
  aspect-ratio: auto;
  min-height: 220px;
  padding: 24px 28px;
}

.ex-card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.ex-card:hover .ex-card-media img {
  transform: scale(1.018);
}

.ex-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ex-kicker {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.ex-card-body h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.ex-card-body p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.66;
  color: var(--ink-body);
}

.ex-note {
  margin-top: 10px !important;
  font-size: 12.5px !important;
  color: var(--ink-muted) !important;
}

.ex-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.ex-actions button,
.ex-actions a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: border-color 0.16s var(--ease);
}

.ex-actions button:hover,
.ex-actions a:hover {
  border-bottom-color: var(--ink);
}

/* PDF Report Grid */
.ex-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 28px);
}

.ex-report-card {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  align-items: start;
}

.ex-report-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid var(--hairline);
  overflow: hidden;
  cursor: zoom-in;
}

.ex-report-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ex-page-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
}

.ex-report-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ex-report-copy h3 {
  margin-top: 6px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.ex-report-copy p {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-body);
}

.ex-badge-line {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* Lightbox / PDF Viewer Dialog */
.example-dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.example-dialog[open] {
  display: flex;
  flex-direction: column;
}

.example-dialog::backdrop {
  background: rgba(20, 20, 19, 0.56);
  backdrop-filter: blur(4px);
}

.example-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--hairline);
}

.example-dialog-header h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 4px;
}

.example-dialog-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  flex-shrink: 0;
}

.example-dialog-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.example-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-body);
}

.example-dialog-toolbar-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.example-dialog-toolbar-links a {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.example-dialog-pages {
  overflow-y: auto;
  padding: 24px;
  display: grid;
  gap: 20px;
  background: #ECEAE0;
}

.example-dialog-pages img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--hairline);
}

/* --- Updates / Release Notes Layout (Sticky Version Index + Editorial Entries) --- */
.updates-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.updates-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100dvh - var(--header-height) - 48px);
  overflow-y: auto;
  padding-right: 12px;
  border-right: 1px solid var(--hairline);
}

.updates-toc-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.updates-toc a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.updates-toc a span {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.updates-toc a:hover,
.updates-toc a:focus-visible {
  color: var(--ink);
  background: var(--surface);
}

.updates-stream {
  min-width: 0;
  max-width: 780px;
}

.release-entry {
  padding-top: 38px;
  border-top: 1px solid var(--hairline);
  margin-top: 38px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.release-entry:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.release-entry:target {
  border-top-color: var(--ink);
}

.release-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.release-entry h2 {
  font-family: var(--font-sans);
  font-size: clamp(23px, 2.1vw, 29px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.release-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-muted);
}

.release-status.is-live {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.release-subtitle {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

/* --- Sibling Cross-Navigation Strip (Exact Match to Kyanic research-related) --- */
.page-related {
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(48px, 6vw, 80px);
}

.page-related-head {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

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

.page-related-link {
  display: block;
  padding: 22px 24px;
  background: var(--surface);
  transition: background-color 0.2s var(--ease);
}

.page-related-link:hover {
  background: var(--surface-hover);
}

.page-related-link strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.page-related-link span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.58;
  color: var(--ink-muted);
}

/* --- Responsive Subpage Breakpoints --- */
@media (max-width: 1040px) {
  .eval-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eval-metric-box:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .eval-metric-box {
    border-bottom: 1px solid var(--hairline);
  }
  .eval-metrics-strip {
    border-bottom: 0;
  }
  .cap-tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ex-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-plate-frame {
    max-width: 360px;
    justify-self: start;
  }
  .ed-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ed-section-aside {
    position: static;
  }
  .docs-layout,
  .updates-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .docs-sidebar,
  .updates-toc {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 0 0 24px;
  }
  .ex-feature {
    grid-template-columns: 1fr;
  }
  .page-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ed-card-grid,
  .ed-card-grid.cols-3,
  .cap-tool-list,
  .ex-grid,
  .catalog-metrics-row,
  .eval-metrics-strip {
    grid-template-columns: 1fr;
  }
  .catalog-metric + .catalog-metric,
  .eval-metric-box + .eval-metric-box {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .ex-tree-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ex-report-card {
    grid-template-columns: 1fr;
  }
  .ex-report-cover {
    max-width: 200px;
  }
}
