/* ==========================================================================
   Compare pages, refreshed layout: Compare Tools hub (/compare/, P9 option B), Compare Editions (/editions/, P7)
   and the "HttpWatch vs ..." pages (/vs/..., P8 option B). Full width (ViewData["WideLayout"]) with the Compare tabs.
   Uses the site.css tokens and components. The .cmp-* comparison cards stay in home.css, shared with the home page.
   ========================================================================== */

/* ---------- Compare Tools hub ---------- */
.compare .hub-intro { max-width: 760px; margin: 0 0 26px; }
.compare .hub-intro h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.01em; }
/* Option B: each comparison card is a full-width row with its heading panel on the left. */
#main.compare-hub .cmp-grid { grid-template-columns: 1fr; gap: 24px; margin: 0 0 22px; }
.compare-hub .cmp-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: 1fr auto; }
.compare-hub .cmp-head { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.compare-hub .cmp-card h3 { font-size: 23px; }
.compare-hub .cmp-table, .compare-hub .cmp-link { grid-column: 2; }
.compare-hub .cmp-link { text-decoration: none; }
#main.compare-hub .cmp-note { margin: 0; text-align: center; }
.ed-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 36px; align-items: center; padding: 28px 30px; }
.ed-promo h2 { margin-bottom: 8px; font-size: 22px; }
.ed-promo__pair { display: flex; gap: 12px; }
.ed-mini, .ed-mini:visited { display: block; min-width: 150px; padding: 14px 16px; border-top: 4px solid var(--acc); border-radius: 12px; background: var(--hw-soft); color: inherit; }
.ed-mini:hover { background: var(--hw-soft-2); text-decoration: none; }
.ed-mini b { display: block; color: var(--hw-ink); font-size: 14.5px; }
.ed-mini span { color: var(--hw-muted); font-size: 13.5px; }

/* ---------- Compare Editions ---------- */
.ed-wrap { --ed-col: 250px; }
.ed-head { display: grid; grid-template-columns: minmax(0, 1fr) var(--ed-col) var(--ed-col); gap: 0 16px; align-items: end; margin-bottom: 14px; }
.ed-head__intro h2 { margin-bottom: 6px; font-size: 22px; }
.compare .ed-head__intro p { color: var(--hw-muted); font-size: 15px; }
.ed-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 18px; border-top: 4px solid var(--acc); }
.ed-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; }
.compare .ed-card p { font-size: 13.5px; line-height: 1.5; }
.compare .ed-card .ed-card__price { margin: 6px 0 8px; color: var(--hw-ink); font-size: 26px; font-weight: 800; line-height: 1; }
.ed-card__price small { color: var(--hw-muted); font-size: 13px; font-weight: 600; }
.ed-card .btn { margin-top: auto; }

.ed-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border-radius: var(--hw-radius-lg);
  box-shadow: 0 1px 2px rgba(29, 35, 48, .06), 0 8px 24px rgba(29, 35, 48, .07); overflow: hidden; }
.ed-table col.ed-col { width: calc(var(--ed-col) + 16px); }
.ed-table thead th { padding: 12px 18px; background: var(--hw-soft); border-bottom: 1px solid var(--hw-line);
  color: var(--hw-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.ed-table thead th.ed-pro { background: #e4f3db; color: #2e7d14; }
.ed-table tbody th, .ed-table td { padding: 13px 18px; border-bottom: 1px solid #edf0f4; font-size: 14.5px; line-height: 1.5; text-align: left; vertical-align: top; }
.ed-table tbody th { color: var(--hw-ink); font-weight: 600; }
.ed-table tbody th a { color: var(--hw-ink); text-decoration: underline; text-decoration-color: #c4ccd8; text-underline-offset: 3px; }
.ed-table tbody th a:hover { color: var(--hw-link); text-decoration-color: currentColor; }
.ed-table tbody th small { display: block; color: var(--hw-muted); font-size: 13px; font-weight: 400; }
.ed-table td { color: var(--hw-body); }
.ed-table td.ed-pro { background: #f3faef; }
.ed-table tr.ed-group th { padding: 22px 18px 8px; background: #fff; border-bottom: 1px solid var(--hw-line); color: var(--hw-ink); font-size: 15px; font-weight: 700; }
.ed-table tr.ed-price th, .ed-table tr.ed-price td { padding-top: 18px; padding-bottom: 18px; border-bottom: 0; color: var(--hw-ink); font-size: 17px; font-weight: 800; }
.ed-cell { display: flex; gap: 10px; align-items: flex-start; }
.ed-cell .chip { flex: none; margin-top: 1px; }
.ed-cell span:last-child { min-width: 0; }
.compare .ed-foot { margin-top: 14px; color: var(--hw-muted); font-size: 13.5px; }

/* ---------- HttpWatch vs ... ---------- */
.vs-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; }
.vs-intro__label { display: block; margin-bottom: 6px; color: var(--hw-ink); font-size: 14px; font-weight: 700; }
.compare .vs-intro p { font-size: 15.5px; line-height: 1.65; }
.compare .vs-h1 { margin-bottom: 20px; font-size: 28px; line-height: 1.25; letter-spacing: -.01em; }
.vs-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border-radius: var(--hw-radius-lg);
  box-shadow: 0 1px 2px rgba(29, 35, 48, .06), 0 8px 24px rgba(29, 35, 48, .07); overflow: hidden; }
.vs-table thead th { padding: 14px 24px; background: var(--hw-soft); border-bottom: 1px solid var(--hw-line); color: var(--hw-ink); font-size: 15px; font-weight: 700; text-align: left; }
.vs-table thead th.vs-us { background: #e4f3db; color: #2e7d14; }
.vs-table thead th img { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; }
.vs-table tr.vs-group th { padding: 20px 24px 8px; background: linear-gradient(90deg, #fff 50%, #f3faef 50%); border-bottom: 1px solid var(--hw-line);
  color: var(--hw-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.vs-table td { padding: 0; border-bottom: 1px solid #edf0f4; vertical-align: top; }
.vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table td.vs-us { background: #f3faef; }
.vs-cell { display: flex; gap: 12px; align-items: flex-start; padding: 13px 24px; font-size: 14.5px; line-height: 1.5; }
.vs-them .vs-cell { color: var(--hw-body); }
.vs-us .vs-cell { color: var(--hw-ink); font-weight: 600; }
.vs-cell strong { font-weight: 700; }
.vs-cell small { display: block; margin-top: 2px; color: var(--hw-body); font-size: 13.5px; font-weight: 400; }
.compare .vs-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 2px 0; color: var(--hw-muted); font-size: 13px; }
.vs-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.vs-legend .mark { width: 18px; height: 18px; }
.vs-legend .mark svg { width: 11px; height: 11px; }
.eval-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: 28px 30px;
  border: 1px solid #ffd9c6; border-radius: 16px; background: linear-gradient(180deg, #fff8f4 0%, #fff3ec 100%); }
.eval-card h2 { margin-bottom: 8px; font-size: 22px; }
.compare .vs-contact { margin-top: 16px; }

@media (max-width: 991px) {
  .ed-wrap { --ed-col: 200px; }
}
@media (max-width: 767px) {
  .compare .hub-intro h1, .compare .vs-h1 { font-size: 23px; }
  .compare-hub .cmp-card { display: flex; }
  .compare-hub .cmp-head { padding: 18px 20px 16px; }
  .compare-hub .cmp-card h3 { font-size: 21px; }
  .ed-promo { grid-template-columns: 1fr; padding: 22px 20px; }
  .ed-promo__pair { flex-wrap: wrap; }
  .ed-mini { flex: 1; min-width: 0; }

  .ed-head { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ed-head__intro { grid-column: 1 / -1; margin-bottom: 4px; }
  .ed-card { padding: 16px 14px 14px; }
  .compare .ed-card p:not(.ed-card__price) { display: none; }
  .ed-card .btn { padding: 0 10px; }
  .ed-table, .ed-table tbody, .ed-table tr, .ed-table th, .ed-table td { display: block; }
  .ed-table thead, .ed-table colgroup { display: none; }
  .ed-table tbody tr:not(.ed-group) { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #edf0f4; }
  .ed-table tbody tr:not(.ed-group) th { grid-column: 1 / -1; padding: 12px 14px 4px; border: 0; }
  .ed-table td { padding: 6px 14px 12px; border: 0; font-size: 13.5px; }
  .ed-table td:before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--hw-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .ed-table tr.ed-group th { padding: 18px 14px 8px; }
  .ed-cell { flex-direction: column; gap: 4px; }

  .vs-intro { grid-template-columns: 1fr; gap: 18px; }
  .vs-table thead th { padding: 12px 14px; font-size: 13.5px; }
  .vs-cell { gap: 8px; padding: 12px 14px; font-size: 13.5px; }
  .vs-cell .mark { width: 18px; height: 18px; }
  .vs-cell .mark svg { width: 11px; height: 11px; }
  .vs-table tr.vs-group th { padding: 16px 14px 6px; }
  .eval-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .eval-card .btn { width: 100%; }
}
