/* ===================================
   TARIFF BASICS
   The effective price as its own mint block, then the terms in plain text next to the contract
   dates. The benefits stand open in the tariff card (benefit-board.css).
   The base --tp-* tokens, the campaign re-tint and the section title come from tariff-page-tokens.css.
   =================================== */

.tariff-basics {
  --tp-r-md: 18px;

  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 8px;
  font-family: var(--tp-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tp-ink);
}
.tariff-basics *,
.tariff-basics *::before,
.tariff-basics *::after {
  box-sizing: inherit;
}

.tariff-basics__inner {
  display: grid;
  gap: 20px;
}

.tariff-num {
  font-variant-numeric: tabular-nums;
}

/* --- Header --- */
.tariff-basics__header {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.tariff-basics__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tp-ink-2);
}

.tariff-basics__subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  text-align: left;
  color: var(--tp-ink);
}

.tariff-basics__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tp-ink-3);
}

/* --- The open detail list of the tariff card (benefit-detail-list.css) above the terms --- */
/* --- Terms and contract dates side by side, plain text without cards --- */
.tariff-basics__lower {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: start;
}

.tariff-basics__facts-block,
.tariff-basics__dates-block {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tariff-basics__facts {
  margin: 0;
  display: grid;
  gap: 14px;
}

.tariff-basics__fact {
  display: grid;
  gap: 2px;
}

.tariff-basics__fact-term {
  margin: 0;
  min-width: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tp-ink);
}

.tariff-basics__fact-name {
  font-weight: 700;
}
.tariff-basics__fact-name::after {
  content: ':';
}

.tariff-basics__fact-value {
  font-weight: 600;
  color: var(--tp-ink-2);
}

.tariff-basics__fact-meaning {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tp-ink-2);
}

/* Contract dates: label, date and hint per row, hairlines between the rows. */
.tariff-basics__dates {
  margin: 0;
  display: grid;
}
.tariff-basics__date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tp-line);
}
.tariff-basics__date:first-child {
  padding-top: 0;
}
.tariff-basics__date dt {
  font-size: 14.5px;
  color: var(--tp-ink-2);
}
.tariff-basics__date dd {
  display: grid;
  justify-items: end;
  margin: 0;
  text-align: right;
}
.tariff-basics__date dd b {
  font-size: 16px;
  font-weight: 800;
  color: var(--tp-ink);
}
.tariff-basics__date dd span {
  font-size: 12.5px;
  color: var(--tp-ink-3);
}

/* Effective price: its own block on mint, the explanation left, the monthly sum right. */
.tariff-basics__effective {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 16px 40px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--tp-r-md);
  background: var(--tp-mint);
  color: var(--tp-ink);
  min-width: 0;
}

.tariff-basics__effective-text,
.tariff-basics__effective-sum {
  display: grid;
  gap: 10px;
  min-width: 0;
}

/* The explanation beside the sum: a light, narrow paragraph, so the sum on the right carries the figure. */
.tariff-basics__effective-intro {
  max-width: 44ch;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tp-ink-2);
}

.tariff-basics__effective-lines {
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--tp-r-sm, 12px);
  background: var(--tp-paper);
}

.tariff-basics__effective-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tariff-basics__effective-line dt {
  font-size: 14.5px;
  color: var(--tp-ink-2);
}
.tariff-basics__effective-line dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.tariff-basics__effective-line--result {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--tp-line);
}
.tariff-basics__effective-line--result dt {
  font-weight: 700;
  color: var(--tp-ink);
}
.tariff-basics__effective-line--result dd {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1;
  color: var(--tp-accent);
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .tariff-basics {
    padding-top: 40px;
  }
  .tariff-basics__lower,
  .tariff-basics__effective {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tariff-basics {
    padding: 40px 16px 8px;
  }
  .tariff-basics__effective {
    padding: 18px 16px;
  }
  .tariff-basics__effective-lines {
    padding: 14px;
  }
}

/* --- The effective price on its own, right under the tariff card --- */
.tariff-basics--effective {
  padding-top: 24px;
  padding-bottom: 0;
}
.tariff-basics--effective h2.tariff-basics__subtitle {
  font-size: 22px;
}
/* The same column as the tariff card above it (benefit-board.css). */
.tariff-basics--effective .tariff-basics__effective {
  max-width: 820px;
  margin-inline: auto;
}

/* --- The short commitment over the contract dates --- */
.tariff-basics__dates-lead {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--tp-accent);
}
