/* All public tariff tables share their header, number scale and row rhythm. */
:root {
  --tariff-ink: #14392f;
  --tariff-muted: #435d51;
  --tariff-line: #cddace;
  --tariff-tint: #f0f5ec;
  --tariff-highlight: #def0c6;
}
.money, .price-cell-value, .result-total, .house-totals dd, .city-travel-price {
  font-variant-numeric: lining-nums tabular-nums;
}
.money { white-space: nowrap; }
main :is(.result-total, .discount-example b, .neighbour-example b, .city-travel-price, .house-totals dd) .money {
  font-weight: 700;
}
.service-rail .result-total .money { display: inline-block; line-height: 1.15; }
main .price-table-wrap:has(.tariff-table) {
  max-width: 68rem;
  border: 0;
  border-radius: 0;
}
main table.tariff-table {
  width: 100%;
  min-width: 0;
  border-spacing: 0;
  border-collapse: separate;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.4;
  color: var(--tariff-ink);
  background: white;
}
main table.tariff-table caption {
  margin-bottom: 10px;
  color: var(--tariff-muted);
  font-size: 14px;
  text-align: left;
}
main table.tariff-table thead th {
  background: var(--tariff-ink);
  color: white;
  padding: 12px clamp(8px,1.2vw,17px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: 0;
  vertical-align: middle;
  text-align: right;
}
main table.tariff-table thead th:first-child { border-radius: 10px 0 0 0; text-align: left; }
main table.tariff-table thead th:last-child { border-radius: 0 10px 0 0; }
main table.tariff-table tbody tr { background: white; }
main table.tariff-table tbody tr:nth-child(even) { background: var(--tariff-tint); }
main table.tariff-table tbody :is(th[scope=row],td) {
  border: 0;
  border-bottom: 1px solid var(--tariff-line);
  background: transparent;
  padding: 9px clamp(8px,1.2vw,17px);
  vertical-align: middle;
  text-align: right;
  font-size: 16px;
  line-height: 1.45;
}
main table.tariff-table tbody :is(th[scope=row],td):first-child { text-align: left; font-weight: 600; }
main .tariff-table small { display: block; font-size: .83em; font-weight: 400; color: var(--tariff-muted); }
main .tariff-table .price-discount {
  display: inline-block;
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--tariff-highlight);
  color: var(--tariff-ink);
  font-size: .92em;
  font-weight: 650;
  white-space: nowrap;
}
main .tariff-table .price-cell-value { font-variant-numeric: tabular-nums; }
main .tariff-table.price-comparison td:nth-child(2) { color: var(--tariff-muted); }
main .tariff-table.price-comparison td:nth-child(3) .price-cell-value {
  font-size: clamp(18px,1.45vw,21px);
  font-weight: 700;
  color: var(--tariff-ink);
}
main .tariff-table .price-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  color: var(--tariff-ink);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: #89a28f;
  text-underline-offset: .22em;
}
main .tariff-table .price-request:hover { color: var(--tariff-ink); background: #e1eed7; }
main .tariff-table .price-request:focus-visible { outline: 2px solid var(--tariff-ink); outline-offset: -2px; }
.price-action-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
main .tariff-table .price-cell-label { display: none; }
main .tariff-table.service-prices { table-layout: auto; }
main .tariff-table.price-comparison thead th:first-child { width: 36%; }
main .tariff-table.price-comparison .price-action-cell { width: 1%; white-space: nowrap; }
@media(min-width: 901px) {
  main .tariff-table td:has(>.price-request):not(.price-action-cell) .price-cell-value { display: block; }
}
@media(min-width: 651px) and (max-width: 900px) {
  main .tariff-table.price-comparison { display: table; }
  main .tariff-table.price-comparison thead { display: table-header-group; clip-path: none; position: static; width: auto; height: auto; white-space: normal; }
  main .tariff-table.price-comparison tbody { display: table-row-group; }
  main .tariff-table.price-comparison tbody tr { display: table-row; }
  main .tariff-table.price-comparison tbody :is(th[scope=row],td) { display: table-cell; width: auto; }
}
@media(max-width: 900px) {
  main .tariff-table.price-table--responsive:not(.price-comparison) tbody tr {
    margin: 0;
    padding: 9px 10px;
    border-bottom: 1px solid var(--tariff-line);
  }
  main .tariff-table.price-table--responsive:not(.price-comparison) tbody :is(td,th[scope=row]) {
    border: 0;
    padding: 5px 4px;
    margin: 0;
  }
  main .tariff-table.price-table--responsive:not(.price-comparison) .price-cell-label {
    display: block;
    text-align: left;
    font-size: 14px;
    color: var(--tariff-muted);
  }
  main .tariff-table.price-table--responsive:not(.price-comparison) .price-request { justify-self: end; }
}
@media(max-width: 650px) {
  main table.tariff-table.price-comparison { display: block; text-align: left; }
  main .tariff-table.price-comparison caption { display: block; }
  main .tariff-table.price-comparison thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  main .tariff-table.price-comparison tbody { display: block; border-top: 3px solid var(--tariff-ink); }
  main .tariff-table.price-comparison tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5px 12px;
    align-items: end;
    padding: 11px 12px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--tariff-line);
  }
  main .tariff-table.price-comparison tbody :is(th[scope=row],td) {
    display: block; width: auto; padding: 0; margin: 0; border: 0; text-align: left;
  }
  main .tariff-table.price-comparison tbody th[scope=row] { grid-column: 1/-1; grid-row: 1; align-self: center; }
  main .tariff-table.price-comparison tr:has(.price-action-cell) th[scope=row] { grid-column: 1; }
  main .tariff-table.price-comparison td:nth-child(2) { grid-column: 1; grid-row: 2; }
  main .tariff-table.price-comparison td:nth-child(3) { grid-column: 2; grid-row: 2; }
  main .tariff-table.price-comparison td.price-action-cell { grid-column: 2; grid-row: 1; justify-self: end; width: auto; }
  main .tariff-table.price-comparison .price-cell-label { display: block; font-size: 13px; line-height: 1.45; margin-bottom: 3px; color: var(--tariff-muted); }
  main .tariff-table.price-comparison .price-cell-value { display: block; }
  main .tariff-table.price-comparison .price-request { font-size: 13px; }
  main table.tariff-table.house-lines :is(th,td) { font-size: 14px; padding: 7px 4px; }
}
@media print {
  main table.tariff-table thead th { color: #111; background: white; border-bottom: 2px solid #333; }
  main .tariff-table .price-request { display:none; }
}
