/* Comparative Genomics pages. */
.comparative-page {
  background: #ffffff;
}
.comparative-page .site-nav a[aria-current="page"] {
  color: var(--blue-deep);
}
.comp-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.comp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.88fr);
  gap: clamp(35px, 4vw, 72px);
  align-items: center;
  min-height: 510px;
  padding-block: 58px 64px;
}
.comp-hero-copy h1,
.detail-hero h1 {
  max-width: 740px;
  margin-bottom: 24px;
  color: #102033;
  font-size: clamp(46px, 4.8vw, 68px);
  font-weight: 760;
  line-height: 1.06;
}
.comp-hero-copy h1 em,
.detail-hero h1 em {
  color: var(--blue-deep);
  font-style: normal;
}
.comp-hero-copy > p:not(.eyebrow),
.detail-hero-copy > p:not(.eyebrow) {
  max-width: 625px;
  color: #415b71;
  font-size: 18px;
  line-height: 1.58;
}
.concept-note {
  margin: 12px 0 27px;
  padding-left: 12px;
  border-left: 2px solid var(--blue);
  color: #4b6980;
  font-size: 13px;
  line-height: 1.5;
}
.concept-note strong,
.concept-note span {
  display: block;
}
.concept-note strong {
  color: #244e70;
  font-weight: 720;
}
.comp-hero-copy .text-action {
  display: table;
}
.comp-figure {
  min-height: 338px;
  padding: 29px 32px 25px;
  background: var(--an-surface);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 35px 100%, 0 calc(100% - 35px));
}
.figure-head {
  color: #3e6c8e;
  font-size: 12px;
  font-weight: 700;
}
.genome-alignment,
.workflow-figure {
  display: block;
  width: 100%;
  height: auto;
}
.genome-alignment {
  margin: 17px 0 7px;
}
.alignment-ribbons path {
  fill: #dcecf6;
}
.alignment-connectors path {
  fill: none;
  stroke: #a4c7df;
  stroke-width: 1;
}
.alignment-baselines path {
  fill: none;
  stroke: #c2d8e8;
  stroke-width: 1;
}
.alignment-labels text {
  fill: #365f7c;
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
}
.alignment-blocks .shared {
  fill: var(--an-primary);
}
.alignment-blocks .variable,
.alignment-blocks .distinct {
  fill: #a9cee5;
}
.alignment-blocks .unique {
  fill: var(--an-cyan);
}
.alignment-key,
.diagram-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 19px;
  color: #496c85;
  font-size: 11px;
  line-height: 1.3;
}
.alignment-key {
  justify-content: flex-end;
}
.alignment-key span,
.diagram-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.alignment-key i,
.diagram-key i {
  display: inline-block;
  width: 9px;
  height: 9px;
}
.alignment-key .shared,
.diagram-key .shared {
  background: var(--an-primary);
}
.alignment-key .variable,
.diagram-key .distinct,
.diagram-key .variable {
  background: #a9cee5;
}
.alignment-key .unique,
.diagram-key .unique {
  background: var(--an-cyan);
}
.comp-workflows {
  padding-block: 74px 84px;
}
.comp-section-intro {
  max-width: 760px;
  margin-bottom: 45px;
}
.comp-section-intro h2 {
  margin-bottom: 15px;
  font-size: clamp(32px, 3vw, 45px);
}
.comp-section-intro > p:last-child {
  color: var(--muted);
  font-size: 16px;
}
.comp-module {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(25px, 3vw, 47px);
  padding: 45px 0 50px;
  border-top: 1px solid #aec9dd;
}
.comp-module:last-child {
  border-bottom: 1px solid #aec9dd;
}
.comp-module-index {
  color: var(--blue-deep);
  font-size: 34px;
  font-weight: 730;
  letter-spacing: -0.06em;
  line-height: 1;
}
.comp-module-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.comp-module-main h3 {
  margin-bottom: 13px;
  font-size: clamp(26px, 2.6vw, 35px);
}
.comp-module-main > p {
  max-width: 620px;
  color: #486176;
  line-height: 1.65;
}
.module-input {
  display: grid;
  grid-template-columns: 63px minmax(0, 1fr);
  gap: 12px;
  margin: 14px 0 22px;
  font-size: 14px;
}
.module-input strong {
  margin-right: 8px;
  color: #244e70;
}
.comp-module-main h4 {
  margin: 0 0 10px;
  color: #305b7a;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}
.module-outputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
  max-width: 620px;
  margin: 0 0 27px;
  padding-left: 16px;
  list-style: disc;
  color: #31536d;
  font-size: 13px;
  line-height: 1.55;
}
.module-outputs li { min-width:0; padding-right:7px; }
.module-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 5px;
  border-bottom: 1px solid #8bb5d3;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.module-link:hover {
  border-color: var(--blue-deep);
}
.module-link span {
  font-size: 18px;
  line-height: 1;
}
.comp-diagram {
  align-self: center;
  width: 100%;
  min-height: 252px;
  padding: 27px 29px 24px;
  background: var(--an-surface);
  color: #285c83;
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.diagram-title {
  display: block;
  margin-bottom: 13px;
  color: #3e6c8e;
  font-size: 12px;
  font-weight: 700;
}
.workflow-figure {
  margin-bottom: 10px;
}
.diagram-key {
  justify-content: flex-end;
}
.target-matrix {
  display: grid;
  grid-template-columns: 83px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 680;
}
.target-matrix b {
  color: #456b87;
  font-size: 12px;
}
.diagram-caption { margin:0; color:#48647b; font-size:13px; line-height:1.5; }
.target-matrix i {
  display: block;
  height: 18px;
  border: 1px solid #b6d4e6;
  background: #fff;
}
.target-matrix i.filled {
  border-color: var(--an-primary);
  background: var(--an-primary);
}
.target-matrix i.focus {
  border-color: var(--an-cyan);
  background: var(--an-cyan);
}
.comp-outro {
  padding-block: 43px;
  background: #eaf4fb;
  border-top: 1px solid var(--border);
}
.comp-outro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.comp-outro h2 {
  margin: 0 0 7px;
  font-size: 28px;
}
.comp-outro p {
  margin: 0;
  color: #526f84;
}
.comp-outro .button {
  flex: none;
}

/* Shared layout for the three non-operational workflow interfaces. */
.detail-hero {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 55px;
  align-items: end;
  padding-block: 58px 66px;
}
.detail-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
}
.detail-back:hover {
  text-decoration: underline;
}
.detail-hero h1 {
  font-size: clamp(44px, 4.1vw, 61px);
}
.detail-hero-copy > p:not(.eyebrow) {
  margin-bottom: 0;
}
.detail-hero-aside {
  padding: 23px 25px;
  border-top: 2px solid var(--blue);
  background: #f0f7fc;
}
.detail-hero-aside span,
.detail-hero-aside small {
  display: block;
  color: #506d82;
  font-size: 12px;
  font-weight: 600;
}
.detail-hero-aside strong {
  display: block;
  margin: 11px 0;
  color: #173e5f;
  font-size: 23px;
  line-height: 1.22;
}
.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.43fr);
  gap: clamp(40px, 5vw, 80px);
  padding-block: 66px 90px;
}
.detail-body h2 {
  margin-bottom: 15px;
  font-size: clamp(29px, 2.8vw, 39px);
}
.detail-lead {
  margin-bottom: 31px;
  color: #536f83;
}
.concept-steps {
  display: grid;
}
.concept-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0 25px;
  border-top: 1px solid #c6d9e7;
}
.concept-step:last-child {
  border-bottom: 1px solid #c6d9e7;
}
.concept-step > span {
  color: var(--blue-deep);
  font-size: 21px;
  font-weight: 730;
  line-height: 1;
}
.concept-step h3 {
  margin-bottom: 7px;
  font-size: 20px;
}
.concept-step p {
  margin-bottom: 12px;
  color: #536d82;
  font-size: 13px;
}
.concept-step p:last-child {
  margin-bottom: 0;
}
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-group legend {
  margin-bottom: 10px;
  color: #436681;
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.04em;
}
.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid #bfd5e4;
  background: #f8fbfe;
  color: #315773;
  font-size: 12px;
  cursor: pointer;
}
.choice-group label:has(input:checked) {
  border-color: #4c95c4;
  background: #e9f5fc;
}
.choice-group input {
  margin: 0;
  accent-color: var(--blue-deep);
}
.detail-side {
  align-self: start;
  border-top: 2px solid var(--blue);
  background: #f0f7fc;
  padding: 28px 27px 30px;
}
.detail-side h2 {
  font-size: 24px;
}
.detail-side > p {
  color: #567489;
  font-size: 13px;
}
.detail-side ul {
  margin: 20px 0 27px;
  padding-left: 19px;
}
.detail-side li {
  padding: 4px 0;
  color: #2b526e;
  font-size: 13px;
}
.detail-side li::marker {
  color: #6e9dbd;
}
.detail-side .button {
  width: 100%;
}
.detail-side .button:disabled {
  opacity: 1;
  background: #cedfea;
  border-color: #cedfea;
  color: #375b75;
}
.backend-note {
  margin: 14px 0 0;
  color: #567489;
  font-size: 12px;
  line-height: 1.55;
}
.detail-bottom-nav {
  border-top: 1px solid var(--border);
  background: #eaf4fb;
}
.detail-bottom-nav .landing-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}
.detail-bottom-nav a {
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 740;
  text-decoration: none;
}
.detail-bottom-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .comp-module {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .comp-diagram {
    grid-column: 2;
    max-width: 470px;
  }
  .detail-hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
}
@media (max-width: 800px) {
  .comp-hero-inner,
  .detail-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .comp-hero-inner {
    gap: 35px;
    min-height: 0;
  }
  .comp-figure {
    width: min(100%, 560px);
  }
  .detail-body {
    gap: 38px;
  }
  .detail-body > * { min-width: 0; }
  .detail-side {
    width: min(100%, 570px);
  }
  .detail-side .button { min-width: 0; white-space: normal; }
}
@media (max-width: 760px) {
  .comp-hero-inner,
  .comp-workflows,
  .detail-body {
    padding-block: 52px 62px;
  }
  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 37px 48px;
  }
  .detail-hero-aside {
    max-width: 500px;
  }
  .comp-outro-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 540px) {
  .comparative-page .nav-action {
    padding: 9px 10px;
    font-size: 11px;
  }
  .comparative-page .site-nav {
    gap: 7px;
  }
  .comparative-page .site-nav a {
    font-size: 11px;
  }
  .comp-hero-copy h1,
  .detail-hero h1 {
    font-size: clamp(39px, 10.5vw, 48px);
  }
  .comp-hero-copy > p:not(.eyebrow),
  .detail-hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }
  .comp-figure {
    min-height: 335px;
    padding: 23px 20px;
  }
  .comp-module {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 32px;
  }
  .comp-module-index {
    font-size: 28px;
  }
  .comp-diagram {
    grid-column: 1;
    width: 100%;
  }
  .module-outputs {
    grid-template-columns: 1fr;
  }
  .concept-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
  .detail-bottom-nav .landing-inner {
    flex-direction: column;
  }
}
