/* =====================================================================
   Comparison, alternatives and cost pages: tables, worked months,
   option entries, sources and the cost calculator. Flat, with borders,
   in the pricing table's language.
   ===================================================================== */

/* ---------- Tables ---------- */
.ct-wrap {
  /* Holds the hidden separators in wide tables, so they scroll with the table, not the page */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ct {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}
.ct-cap {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.ct th,
.ct td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.ct tbody tr:last-child > * {
  border-bottom: 0;
}
.ct thead th {
  padding-top: 16px;
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ct tbody th {
  font-weight: 500;
  color: var(--ink);
}
.ct td {
  color: #3a3d36;
}
.ct small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: normal;
}
.ct .is-dazza {
  background: #fefcea;
}
.ct thead .is-dazza {
  color: #6c6200;
}
.ct .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ct .num strong {
  font-weight: 600;
  color: var(--ink);
}
.ct .is-best strong {
  padding: 0 3px;
  margin: 0 -3px;
  border-radius: 3px;
  background: var(--yellow);
}
.ct-yes {
  font-weight: 500;
  color: var(--ink);
}
.ct-no {
  color: var(--muted);
}
.ct .tag {
  margin-left: 0;
  vertical-align: 1px;
}
.ct a {
  text-decoration: underline;
  text-decoration-color: #c9ccbf;
  text-underline-offset: 3px;
}
.ct-note {
  max-width: 760px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.ct-note a {
  text-decoration: underline;
  text-decoration-color: #c9ccbf;
  text-underline-offset: 3px;
}
.ct-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.ct-pair .ct .num {
  white-space: normal;
}
.ct-pair h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- Two sides: who each one suits ---------- */
.tiles--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile .quiet-list {
  margin-top: 4px;
}
.tile .quiet-list li {
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #3a3d36;
}
.tile .quiet-list li::before {
  line-height: 1.45;
}

/* ---------- A worked month ---------- */
.months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.month {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: 2px solid transparent;
}
.month.is-dazza {
  border-color: #ddd456;
  outline-color: var(--yellow);
}
.month-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.month-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.month-head .mono {
  padding-top: 5px;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.month ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.month li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  border-bottom: 1px solid #f0f1eb;
  font-size: 14px;
  color: #3a3d36;
}
.month li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.month-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: auto;
  padding: 16px 20px 18px;
}
.month-total span {
  font-size: 14px;
  color: var(--muted);
}
.month-total strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.assume {
  max-width: 760px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.assume li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
}
.assume li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--ink);
}

/* ---------- Alternatives: one entry per option ---------- */
.alts {
  border-top: 1px solid var(--ink);
}
.alt {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}
.alt-num {
  font-size: 10px;
  color: var(--muted);
}
.alt h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.alt h3 .tag {
  vertical-align: 8px;
}
.alt-best {
  max-width: 720px;
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--ink);
}
.alt-best strong,
.alt-model strong {
  font-weight: 600;
}
.alt-model {
  max-width: 720px;
  margin-top: 10px;
  font-size: 14.5px;
  color: #3a3d36;
}
.alt-model a,
.alt-against a {
  text-decoration: underline;
  text-decoration-color: #c9ccbf;
  text-underline-offset: 3px;
}
.alt-against {
  max-width: 720px;
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.alt-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 22px;
}
.alt-cols h4 {
  margin: 0 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.alt-cols .quiet-list li {
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #3a3d36;
}
.alt-cols .quiet-list li::before {
  line-height: 1.45;
}
.alt .text-link {
  margin-top: 8px;
  padding-bottom: 0;
}

/* ---------- Pricing models ---------- */
.tile .model-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.tile .model-list li {
  padding: 9px 0;
  border-bottom: 1px solid #f0f1eb;
  font-size: 13.5px;
  color: #3a3d36;
}
.tile .model-list a {
  text-decoration: underline;
  text-decoration-color: #c9ccbf;
  text-underline-offset: 3px;
}

/* ---------- Copy inside sections ---------- */
.step p a {
  text-decoration: underline;
  text-decoration-color: #c9ccbf;
  text-underline-offset: 3px;
}
.sec .prose + .ct-cap,
.sec .prose + .ct-wrap,
.sec .prose + .ct-pair,
.sec .ct-wrap + .prose {
  margin-top: 32px;
}
.sec-foot {
  margin-top: 28px;
}

/* ---------- Sources ---------- */
.sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sources li {
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}
.sources a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sources a:hover {
  text-decoration: underline;
  text-decoration-color: #c9ccbf;
  text-underline-offset: 3px;
}
.sources span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.calc[hidden] {
  display: none;
}
.calc label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.calc input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.calc input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
  border-color: #c9c24a;
}
.calc output {
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ct-pair,
  .months,
  .tiles--two {
    grid-template-columns: minmax(0, 1fr);
  }
  .sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alt {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .calc {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .calc output {
    grid-column: 1 / -1;
    padding: 0;
  }
}
@media (max-width: 650px) {
  .ct {
    font-size: 13.5px;
  }
  .ct .hide-phone {
    display: none;
  }
  /* Wide tables scroll sideways with their first column held in place */
  .ct--sticky :is(thead th:first-child, tbody th[scope="row"]) {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 128px;
    border-right: 1px solid var(--line);
    background: #fff;
  }
  .ct--sticky tbody th.is-dazza[scope="row"] {
    background: #fefcea;
  }
  .ct th,
  .ct td {
    padding: 12px 14px;
  }
  .alt h3 {
    font-size: 26px;
  }
  .alt-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .alt-cols > div + div h4 {
    margin-top: 14px;
  }
  .sources {
    grid-template-columns: minmax(0, 1fr);
  }
  .month-total strong {
    font-size: 26px;
  }
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
}
