/* Comparison articles (/x-alternatives/, /x-vs-fwocus/, /compare/).
   Loaded after /styles.css and /assets/tool/tool.css, so it reuses their tokens. */

.compare-page main {
  padding-top: 32px;
  padding-bottom: 72px;
}

.compare-page .seo-header {
  text-align: left;
  margin-bottom: 28px;
}

.compare-page .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.compare-page .breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

.compare-page .breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.compare-page .seo-title {
  margin-bottom: 8px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.article-meta .author-byline {
  margin-top: 0;
}

.article-meta time {
  white-space: nowrap;
}

/* 3. Answer first */
.in-short {
  background: var(--paper-card);
  border: 1px solid var(--paper-card-border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px 6px;
  margin: 8px 0 22px;
}

.in-short-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.in-short p {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 12px;
  color: #363d3e;
}

.in-short strong {
  color: var(--ink);
}

/* 4. AI summary buttons */
.ai-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 26px;
}

.ai-summary-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.ai-summary-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-summary-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--paper-card-border);
  border-radius: 8px;
  background: var(--paper-card);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ai-summary-buttons a:hover,
.ai-summary-buttons a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ai-dot, var(--accent));
}

/* 5. Chooser quiz */
.chooser {
  background: var(--paper-card);
  border: 1px solid var(--paper-card-border);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 52px;
  box-shadow: 0 4px 16px rgba(37, 44, 45, 0.04);
}

.chooser-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.chooser h2 {
  font-size: 24px;
  text-align: center;
  font-weight: 400;
  margin: 6px 0 4px;
}

.chooser-sub {
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.chooser-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.chooser-bar {
  flex: 1;
  height: 5px;
  border-radius: 9999px;
  background: var(--line);
  overflow: hidden;
}

.chooser-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.chooser-q {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.chooser-options {
  display: grid;
  gap: 8px;
}

.chooser-options button {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--paper-card-border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chooser-options button:hover,
.chooser-options button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chooser-result[hidden],
.chooser-step[hidden] {
  display: none;
}

.chooser-result {
  text-align: center;
}

.chooser-result-pick {
  font-size: 26px;
  margin: 4px 0 8px;
}

.chooser-result p {
  font-family: var(--sans);
  font-size: 15px;
  color: #363d3e;
  margin-bottom: 14px;
}

.chooser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chooser-actions a,
.chooser-actions button {
  padding: 10px 16px;
  border-radius: 9999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chooser-actions a {
  background: var(--accent);
  color: #fff;
}

.chooser-actions a:hover {
  background: var(--accent-hover);
}

.chooser-actions button {
  border: 1px solid var(--paper-card-border);
  background: transparent;
  color: var(--ink);
}

/* Section headings with an icon-free marker */
.compare-page .article-section h2 {
  scroll-margin-top: 24px;
}

.method-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 22px;
}

.method-criteria div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: #363d3e;
}

.method-criteria strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.take {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  font-style: italic;
}

/* 7. Entries and spec cards */
.entry {
  margin: 40px 0 0;
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.entry h3 {
  font-size: 24px;
  margin-top: 0;
}

.entry-shot {
  margin: 14px 0 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--paper-card-border);
  background: var(--paper-card);
}

.entry-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-shot figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.entry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--banner-bg, #ece5d8);
  color: var(--banner-ink, var(--ink));
}

.entry-banner > span:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}

.entry-logo {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.entry-banner-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.entry-banner-line {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.85;
}

.entry-banner-url {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
}

.spec-card {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--paper-card);
  border: 1px solid var(--paper-card-border);
  border-radius: 10px;
  overflow: hidden;
}

.spec-card th,
.spec-card td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.spec-card tr:last-child th,
.spec-card tr:last-child td {
  border-bottom: 0;
}

.spec-card th {
  width: 28%;
  font-weight: 600;
  color: var(--ink);
}

.spec-card td {
  color: #363d3e;
}

.replaces {
  font-family: var(--sans);
  font-size: 15px;
}

.replaces-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

/* 8. Proof */
.proof {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--paper-card-border);
  border-radius: 12px;
  background: var(--paper-card);
}

.proof-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.proof-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.proof-stats div {
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--accent-soft);
}

.proof-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}

.proof-stats span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.proof-chart {
  display: block;
  width: 100%;
  height: auto;
}

.proof-quote {
  margin-top: 10px;
  font-size: 15px;
  font-style: italic;
  color: #363d3e;
}

.proof-quote cite {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

/* 9. Comparison table + scorecard */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--paper-card-border);
  border-radius: 10px;
  background: var(--paper-card);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(80, 72, 59, 0.05);
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tr.is-reference th,
.compare-table tr.is-reference td {
  background: rgba(80, 72, 59, 0.06);
}

.compare-table tr.is-us th,
.compare-table tr.is-us td,
.compare-table th.is-us,
.compare-table td.is-us {
  background: var(--accent-soft);
}

.compare-table.is-vs {
  min-width: 480px;
}

.compare-table.is-vs tbody th {
  white-space: normal;
  width: 30%;
}

.ref-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
}

.yes { color: #2f7d4f; font-weight: 600; }
.no { color: var(--accent); font-weight: 600; }
.part { color: #9a6b12; font-weight: 600; }

.stars {
  color: #c9952c;
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars .off {
  color: rgba(80, 72, 59, 0.25);
}

/* 10. Decision */
.decision-list {
  list-style: none;
  margin: 0 0 22px !important;
  padding: 0;
}

.decision-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}

.decision-list li:last-child {
  border-bottom: 0;
}

.decision-if {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.decision-if a {
  color: var(--accent);
}

/* 11. Sister comparisons */
.sister-list {
  list-style: none;
  margin: 0 0 18px !important;
  padding: 0;
}

.sister-list li {
  margin: 0 0 10px !important;
}

.sister-list a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.related-cards a {
  display: block;
  padding: 16px;
  border: 1px solid var(--paper-card-border);
  border-radius: 10px;
  background: var(--paper-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.related-cards a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-cards strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-cards span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.take-action {
  counter-reset: step;
}

/* Hub */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .ai-summary-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-criteria,
  .related-cards,
  .hub-grid { grid-template-columns: 1fr; }
  .proof-stats { grid-template-columns: 1fr 1fr 1fr; }
  .entry-banner { flex-direction: column; align-items: flex-start; }
  .chooser { padding: 20px 16px; }
}

/* Site-wide icon styles give every svg a stroke; the chart must not inherit it. */
.proof-chart,
.proof-chart text,
.proof-chart polygon {
  stroke: none;
}

.proof-chart polyline {
  stroke: #b9412d;
  fill: none;
}

.proof-chart line {
  stroke-width: 1;
}
