/* Final production polish: layout refinements only. */

.repo-review-toolbar,
.repo-change-note,
.section-feedback-sidebar,
.section-feedback-sidebar-toggle {
  display: none !important;
}

.feedback-v02 .hero--selected.hero--video .hero__copy,
.feedback-v02.final-view .hero--selected.hero--video .hero__copy,
.feedback-v02.final-view .hero--home.hero--selected.hero--video .hero__copy,
.feedback-v02 .hero--reports.hero--selected.hero--video .hero__copy {
  width: min(62%, 710px);
}

.solution-cta-grid {
  align-items: stretch;
}

.solution-cta {
  display: flex;
  flex-direction: column;
}

.solution-cta .button-row {
  margin-top: auto;
  padding-top: 24px;
}

/* Compare hero and the high-priority positioning summary. */
.feedback-v02 .compare-hero.hero--reports.hero--selected {
  position: relative;
  height: 600px;
  min-height: 600px;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-bottom: 0;
  background: var(--paper);
}

.compare-hero .hero-backdrop {
  position: absolute;
  inset: 0;
}

.compare-hero .hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feedback-v02 .compare-hero .hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 600px;
  align-items: center;
}

.feedback-v02 .compare-hero.hero--reports.hero--selected .hero__copy {
  width: min(54%, 620px);
  margin: 0 0 0 -26px;
  padding: 28px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 54px rgba(23, 33, 29, 0.12);
  backdrop-filter: blur(6px);
}

.compare-hero h1 {
  max-width: 14ch;
}

.compare-positioning-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.compare-positioning {
  margin-top: 0;
  border-top: 0;
  border-bottom: 0;
}

/* Full model-card proof with the scientific facts beside it. */
.measured-facts__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
  margin-top: 36px;
}

.measured-facts__capture {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(17, 38, 34, 0.11);
}

.measured-facts__capture img {
  display: block !important;
  width: 100%;
  height: auto;
}

.measured-facts__capture figcaption {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.measured-facts__details {
  min-width: 0;
}

.measured-facts__counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.measured-facts__counts li {
  padding: 18px 14px 18px 0;
  border-bottom: 1px solid var(--line);
}

.measured-facts__counts li:nth-child(even) {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.measured-facts__counts strong,
.measured-facts__counts span {
  display: block;
}

.measured-facts__counts strong {
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.measured-facts__counts span {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.measured-facts__proofs {
  border-top: 1px solid var(--line);
}

.measured-facts__proofs article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.measured-facts__proofs h3 {
  margin: 5px 0 7px;
  font-size: 18px;
}

.measured-facts__proofs p {
  margin: 0;
  font-size: 14px;
}

.measured-facts__details .evidence-boundary {
  margin-top: 26px;
}

/* Comparison table fits the viewport on desktop and becomes labeled rows on mobile. */
.comparison-table-wrap {
  contain: none;
  overflow: visible;
}

.comparison-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  padding: 11px 5px;
  overflow-wrap: anywhere;
}

.comparison-table thead th {
  position: static;
  font-size: 10px;
}

.comparison-table .comparison-table__product {
  position: static;
  width: 16%;
  min-width: 0;
  padding-left: 10px;
  box-shadow: none;
}

.capability-status {
  width: 23px;
  height: 23px;
}

/* Example-output overview uses a narrative column and compact review ledger. */
.example-output-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: start;
}

.example-output-overview .section-heading {
  margin-bottom: 0;
}

.example-output-grid {
  border-top: 1px solid var(--line);
}

.example-output-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.example-output-grid article > svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid #afd8d0;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.example-output-grid span {
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.example-output-grid h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.example-output-grid p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  .measured-facts__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  .measured-facts__capture {
    position: static;
  }
}

@media (max-width: 760px) {
  .feedback-v02 .hero--selected.hero--video .hero__copy,
  .feedback-v02.final-view .hero--selected.hero--video .hero__copy,
  .feedback-v02.final-view .hero--home.hero--selected.hero--video .hero__copy,
  .feedback-v02 .hero--reports.hero--selected.hero--video .hero__copy {
    width: min(92%, 660px);
  }

  .feedback-v02 .compare-hero.hero--reports.hero--selected,
  .feedback-v02 .compare-hero .hero__inner {
    min-height: 600px;
  }

  .feedback-v02 .compare-hero.hero--reports.hero--selected .hero__copy {
    width: min(92%, 660px);
    margin-left: 0;
    padding: 24px 26px 26px;
  }

  .measured-facts__layout,
  .example-output-overview {
    grid-template-columns: 1fr;
  }

  .measured-facts__capture {
    max-width: 560px;
    margin: 0 auto;
  }

  .comparison-table-wrap {
    border: 0;
    background: transparent;
  }

  .comparison-table,
  .comparison-table tbody {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .comparison-table td,
  .comparison-table .comparison-table__product {
    display: flex;
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }

  .comparison-table td:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .comparison-table .comparison-table__product {
    grid-column: 1 / -1;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper-soft);
    font-size: 14px;
    text-align: left;
  }

  .comparison-table td:not(.comparison-table__product)::before {
    max-width: calc(100% - 34px);
    color: var(--ink-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
  }

  .comparison-table td:nth-child(2)::before { content: "Small molecule"; }
  .comparison-table td:nth-child(3)::before { content: "Biologics"; }
  .comparison-table td:nth-child(4)::before { content: "ADME / PK"; }
  .comparison-table td:nth-child(5)::before { content: "Uncertainty"; }
  .comparison-table td:nth-child(6)::before { content: "Read-across"; }
  .comparison-table td:nth-child(7)::before { content: "Documentation"; }
  .comparison-table td:nth-child(8)::before { content: "Self-hosted"; }
  .comparison-table td:nth-child(9)::before { content: "Batch / API"; }
}

@media (max-width: 520px) {
  .feedback-v02 .compare-hero.hero--reports.hero--selected,
  .feedback-v02 .compare-hero .hero__inner {
    min-height: 640px;
  }

  .feedback-v02 .compare-hero.hero--reports.hero--selected .hero__copy {
    width: 100%;
    padding: 22px;
  }

  .measured-facts__counts {
    grid-template-columns: 1fr;
  }

  .measured-facts__counts li,
  .measured-facts__counts li:nth-child(even) {
    padding: 15px 0;
    border-left: 0;
  }

  .comparison-table tr {
    grid-template-columns: 1fr;
  }

  .comparison-table td:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}
