/* Article-specific composition styles. The canonical layout remains in ../article-detail/styles.css. */

.comparison-table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--ctm-border);
  border-radius: 15px;
  background: var(--ctm-surface);
  box-shadow: 0 8px 24px rgba(14, 46, 38, .035);
}

.comparison-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  color: #40514c;
  font-size: .84rem;
  line-height: 1.5;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ctm-border-subtle);
  text-align: left;
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--ctm-surface-sage);
  color: var(--ctm-forest-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 30%;
  color: var(--ctm-forest-dark);
  font-family: var(--ctm-font-serif);
  font-size: .91rem;
  font-weight: 600;
}

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

.winner,
.trip-edge,
.tie {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.winner { background: #e2eee7; color: var(--ctm-forest-dark); }
.trip-edge { background: #fff0ea; color: var(--ctm-terracotta-dark); }
.tie { background: #f1ece3; color: #665b4c; }

.total-choice { margin: 28px 0 0; overflow: hidden; border: 1px solid var(--ctm-border); border-radius: 18px; background: linear-gradient(145deg, #f8f4ec 0%, #eef5f0 100%); box-shadow: var(--ctm-shadow-panel); }
.total-choice__head { padding: 16px 19px 14px; border-bottom: 1px solid rgba(23,75,62,.1); }
.total-choice__head > span { display: block; color: var(--ctm-terracotta-dark); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.total-choice__head h3 { margin: 4px 0 0; color: var(--ctm-forest-dark); font-family: var(--ctm-font-serif); font-size: 1.28rem; font-weight: 600; line-height: 1.25; }
.total-choice__steps { display: grid; margin: 0; padding: 22px 22px 16px; list-style: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.total-choice__steps > li { position: relative; display: flex; min-width: 0; min-height: 196px; padding: 16px 15px 14px; border: 1px solid rgba(23,75,62,.13); border-radius: 14px; background: rgba(255,255,255,.84); flex-direction: column; }
.total-choice__steps > li:not(:last-child)::after { position: absolute; top: 30px; right: -16px; z-index: 2; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(23,75,62,.16); border-radius: 50%; background: var(--ctm-surface); color: var(--ctm-forest); content: "›"; font-size: 1.05rem; font-weight: 800; }
.total-choice__number { color: var(--ctm-terracotta-dark); font-family: var(--ctm-font-serif); font-size: .78rem; font-weight: 700; }
.total-choice__steps div { margin-top: 13px; }
.total-choice__steps strong { display: block; color: var(--ctm-forest-dark); font-family: var(--ctm-font-serif); font-size: 1.06rem; font-weight: 600; line-height: 1.22; }
.total-choice__steps p { margin: 6px 0 0; color: var(--ctm-text-muted); font-size: 13px; line-height: 1.5; }
.total-choice__steps small { width: fit-content; margin-top: auto; padding-top: 12px; color: var(--ctm-text-subtle); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.total-choice__outcomes { display: grid; margin: 0 22px 17px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.total-choice__outcomes article { padding: 16px; border: 1px solid rgba(23,75,62,.13); border-radius: 14px; background: rgba(226,238,231,.76); }
.total-choice__outcomes article:nth-child(2) { border-color: rgba(211,72,43,.16); background: rgba(255,240,234,.78); }
.total-choice__outcomes span { display: block; color: var(--ctm-text-muted); font-size: 13px; font-weight: 700; }
.total-choice__outcomes strong { display: block; margin-top: 6px; color: var(--ctm-forest-dark); font-family: var(--ctm-font-serif); font-size: 1.12rem; font-weight: 600; }
.total-choice__outcomes article:nth-child(2) strong { color: var(--ctm-terracotta-dark); }
.total-choice__outcomes p { margin: 5px 0 0; color: var(--ctm-text-muted); font-size: 13px; line-height: 1.5; }
.total-choice figcaption { padding: 14px 20px 16px; border-top: 1px solid rgba(23,75,62,.1); color: var(--ctm-text-muted); font-size: 13px; line-height: 1.55; }

.saving-spectrum {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.saving-spectrum article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--ctm-border);
  border-radius: 14px;
  background: var(--ctm-surface);
}

.saving-spectrum article:nth-child(2) { background: #f7f3e9; }
.saving-spectrum article:nth-child(3) { background: #fff3ee; }

.saving-spectrum__value {
  display: block;
  color: var(--ctm-terracotta-dark);
  font-family: var(--ctm-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.saving-spectrum h3 {
  margin: 18px 0 0;
  color: var(--ctm-forest-dark);
  font-family: var(--ctm-font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.25;
}

.saving-spectrum p {
  margin: 7px 0 0;
  color: var(--ctm-text-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.decision-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.decision-grid article {
  min-height: 176px;
  padding: 19px;
  border: 1px solid var(--ctm-border);
  border-radius: 14px;
  background: var(--ctm-surface);
}

.decision-grid__label {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.decision-grid__label--ctrip { background: #e2eee7; color: var(--ctm-forest-dark); }
.decision-grid__label--trip { background: #fff0ea; color: var(--ctm-terracotta-dark); }
.decision-grid__label--neutral { background: #f1ece3; color: #665b4c; }

.decision-grid h3 {
  margin: 16px 0 0;
  color: var(--ctm-forest-dark);
  font-family: var(--ctm-font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.26;
}

.decision-grid p {
  margin: 7px 0 0;
  color: var(--ctm-text-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.watch-list {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid var(--ctm-border);
}

.watch-list article {
  display: grid;
  min-height: 104px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ctm-border);
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.watch-list article > span {
  color: var(--ctm-terracotta-dark);
  font-family: var(--ctm-font-serif);
  font-size: .8rem;
  font-weight: 700;
}

.watch-list h3 {
  margin: 0;
  color: var(--ctm-forest-dark);
  font-family: var(--ctm-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.watch-list p {
  margin: 6px 0 0;
  color: var(--ctm-text-muted);
  font-size: .86rem;
  line-height: 1.6;
}

.sources-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  gap: 1px;
}

.sources-list li { border-bottom: 1px solid var(--ctm-border-subtle); }

.sources-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ctm-forest-dark);
  font-size: .84rem;
  font-weight: 700;
}

.sources-list a:hover { color: var(--ctm-terracotta-dark); }

@media (max-width: 780px) {
  .comparison-table-wrap { margin-right: -14px; }
  .saving-spectrum,
  .decision-grid { grid-template-columns: 1fr; }
  .saving-spectrum article,
  .decision-grid article { min-height: 0; }
  .total-choice__steps, .total-choice__outcomes { grid-template-columns: 1fr; }
  .total-choice__steps { padding: 14px; gap: 9px; }
  .total-choice__steps > li { min-height: 0; padding: 14px; }
  .total-choice__steps > li:not(:last-child)::after { display: none; }
  .total-choice__steps p, .total-choice__steps small { font-size: 14px; }
  .total-choice__steps small { margin-top: 9px; padding-top: 0; }
  .total-choice__outcomes { margin: 0 14px 14px; gap: 9px; }
  .total-choice__outcomes span, .total-choice__outcomes p, .total-choice figcaption { font-size: 14px; }
}

@media (max-width: 600px) {
  .price-layers li:nth-child(odd),
  .price-layers li:nth-child(even) { padding-right: 0; padding-left: 0; }

  .comparison-table,
  .saving-spectrum p,
  .decision-grid p,
  .watch-list p,
  .sources-list a,
  .related-card__body > span,
  .sheet-services small { font-size: .875rem; }
  .total-choice__head { padding: 15px 16px 14px; }
  .total-choice__head h3 { font-size: 1.18rem; }
  .total-choice figcaption { padding: 13px 16px 15px; }
}
