/* Focused comparison pages. Shared guide chrome remains in secondary-modern.css. */
.comparison-main .guide-copy h1 {
  max-width: 16ch;
  text-wrap: balance;
}

.comparison-main > .guide-hero {
  width: 100%;
  padding-inline: 0;
}

.comparison-main .guide-hero-inner,
.comparison-main .guide-panel {
  min-width: 0;
}

.comparison-main .guide-cta-card {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
}

.comparison-main .guide-cta-card h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.comparison-main .guide-cta-card p {
  max-width: 56ch;
  line-height: 1.65;
}

.comparison-main .guide-cta-card p strong {
  color: #f5f7fa;
}

.comparison-main .guide-cta-card .comparison-disclosure {
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px solid #354153;
  color: #95a4b5;
  font-size: 13px;
  line-height: 1.5;
}

.comparison-kicker {
  display: block;
  margin-bottom: 8px;
  color: #80b9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.095em;
  line-height: 1.4;
  text-transform: uppercase;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.comparison-actions .btn,
.comparison-main .guide-cta-card > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 16px;
  border: 1px solid #3a4656;
  border-radius: 9px;
  background: #1a232f;
  box-shadow: none;
  color: #e7eef8;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.comparison-actions .btn:hover,
.comparison-main .guide-cta-card > .btn:hover {
  border-color: #80b9ff;
  background: #223247;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.comparison-main .comparison-actions .guide-final-button,
.comparison-main .guide-cta-card > .guide-final-button {
  border-color: #559dff;
  background: #2f86ff;
  color: #fff;
}

.comparison-main .comparison-actions .guide-final-button:hover,
.comparison-main .guide-cta-card > .guide-final-button:hover {
  background: #559dff;
}

.comparison-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 30px;
}

.comparison-summary-grid article {
  min-width: 0;
  min-height: 175px;
  padding: 23px 24px;
  border: 1px solid #28313d;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22, 28, 36, 0.9), rgba(13, 18, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.comparison-summary-grid h2 {
  margin: 0 0 11px;
  color: #f5f7fa;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.comparison-summary-grid p {
  margin: 0;
  color: #a9b2be;
  font-size: 14.5px;
  line-height: 1.6;
}

.comparison-main .guide-panel {
  overflow: hidden;
}

.comparison-main .guide-section > h2 {
  max-width: 28ch;
  letter-spacing: -0.025em;
}

.comparison-main .guide-section > h3 {
  margin-top: 22px;
}

.comparison-note {
  padding: 17px 19px;
  border: 1px solid #354153;
  border-left: 3px solid #559dff;
  border-radius: 10px;
  background: #151d27;
  color: #c0cad5 !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
}

.comparison-note strong {
  color: #f5f7fa;
}

.comparison-note + h2,
.comparison-table-wrap + .comparison-note {
  margin-top: 25px;
}

.comparison-table-wrap {
  max-width: 100%;
  margin-top: 21px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #354153;
  border-radius: 12px;
  background: #11161d;
  scrollbar-color: #4c627b #11161d;
}

.comparison-table-wrap:focus-visible {
  outline: 2px solid #80b9ff;
  outline-offset: 3px;
}

.comparison-table {
  width: 100%;
  min-width: 690px;
  border-collapse: separate;
  border-spacing: 0;
  color: #c4ced9;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.comparison-table caption {
  padding: 15px 19px 12px;
  border-bottom: 1px solid #28313d;
  background: #171e28;
  color: #9aa9ba;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 17px;
  border-bottom: 1px solid #28313d;
  vertical-align: top;
}

.comparison-table thead th {
  background: #1b2633;
  color: #f5f7fa;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.comparison-table thead th:nth-child(2) {
  color: #9cc6ff;
}

.comparison-table tbody th {
  width: 22%;
  min-width: 150px;
  background: #151c25;
  color: #f5f7fa;
  font-weight: 710;
}

.comparison-table tbody td {
  width: 39%;
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(22, 28, 36, 0.47);
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-main .comparison-highlights {
  margin-top: 20px;
}

.comparison-highlights article,
.comparison-verdict article {
  padding: 21px 23px;
}

.comparison-highlights h3,
.comparison-verdict h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.26;
}

.comparison-highlights p,
.comparison-verdict p {
  font-size: 14.5px;
  line-height: 1.62;
}

.comparison-verdict {
  margin-top: 20px;
}

.comparison-verdict a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: #80b9ff;
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
}

.comparison-verdict a:hover {
  color: #bad8ff;
  text-decoration: underline;
}

#monitorian-strengths .comparison-highlights article:last-child {
  grid-column: 1 / -1;
}

#monitorian-strengths .comparison-highlights article:last-child p {
  max-width: 75ch;
}

#choosing .comparison-actions {
  margin-top: 20px;
}

.comparison-sources {
  margin-top: 15px !important;
}

.comparison-sources li {
  margin: 8px 0 !important;
  padding-left: 20px !important;
  color: #a9b2be;
  font-size: 14px !important;
  line-height: 1.58 !important;
}

.comparison-sources li::before {
  top: 0.7em !important;
  width: 5px !important;
  height: 5px !important;
}

.comparison-sources a {
  color: #80b9ff;
  text-decoration: underline;
  text-decoration-color: rgba(128, 185, 255, 0.35);
  text-underline-offset: 3px;
}

.comparison-sources a:hover {
  color: #c2ddff;
  text-decoration-color: currentColor;
}

@media (max-width: 1060px) {
  .comparison-main .guide-copy,
  .comparison-main .guide-cta-card {
    max-width: 776px;
  }

  .comparison-main .guide-copy {
    width: 100%;
  }

  .comparison-summary-grid {
    grid-template-columns: 1fr;
    max-width: 820px;
  }
}

@media (max-width: 720px) {
  .comparison-main .guide-copy h1 {
    max-width: none;
  }

  .comparison-main .guide-cta-card {
    padding: 23px;
  }

  .comparison-summary-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .comparison-summary-grid article {
    min-height: 0;
    padding: 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }

  .comparison-main .guide-panel {
    padding-inline: 18px;
  }

  .comparison-actions .btn {
    flex: 1 1 100%;
  }

  #monitorian-strengths .comparison-highlights article:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .comparison-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .comparison-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .comparison-table caption {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #354153;
    border-radius: 9px;
    background: #171e28;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .comparison-table tbody {
    display: grid;
    gap: 12px;
  }

  .comparison-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid #354153;
    border-radius: 11px;
    background: #11161d;
  }

  .comparison-table tbody th,
  .comparison-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 13px 16px;
    border-bottom: 1px solid #28313d;
    background: transparent;
  }

  .comparison-table tbody th {
    background: #1b2633;
    color: #f5f7fa;
    font-size: 15px;
  }

  .comparison-table tbody td::before {
    display: block;
    margin-bottom: 5px;
    color: #80b9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .comparison-table tbody td:nth-child(2)::before {
    content: "Display Dimmer";
  }

  .comparison-twinkle .comparison-table tbody td:nth-child(3)::before {
    content: "Twinkle Tray";
  }

  .comparison-monitorian .comparison-table tbody td:nth-child(3)::before {
    content: "Monitorian";
  }

  .comparison-table tbody td[colspan]::before {
    content: "Both apps";
  }

  .comparison-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .comparison-table tbody tr > :last-child {
    border-bottom: 0;
  }
}
