/* Component „prices”: the price list, as rows with dotted leaders, as cards, or as a table. The layer order is the base's
   (kit.css), so this file's place among the links does not matter, and the Site's own site.css wins over it. */
@layer sections {
  .prices-groups { display: grid; gap: var(--space-xl); }
  .prices.is-list .prices-groups { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); column-gap: var(--space-2xl); }
  .prices-group { display: grid; gap: var(--space-s); align-content: start; }
  .prices-group-title { font-size: var(--type-h3-size); }
  .prices-group-note { margin-block-start: calc(-1 * var(--space-2xs)); color: var(--c-text-muted); font-size: var(--step--1); }
  .prices-amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
  .prices-desc { color: var(--c-text-muted); font-size: var(--step--1); line-height: 1.43; }
  .prices-note { margin-block-start: var(--space-xl); max-inline-size: var(--measure); color: var(--c-text-muted); font-size: var(--step--1); }

  /* list: name … price, the leader a dotted line between them */
  .prices-list { display: grid; padding: 0; list-style: none; }
  .prices-row { display: grid; gap: var(--space-3xs); padding-block: var(--space-xs); border-block-end: var(--border-w) solid var(--c-line); }
  .prices-line { display: flex; align-items: baseline; gap: var(--space-2xs); }
  .prices-name { font-weight: 600; }
  .prices-leader { flex: 1; min-inline-size: var(--space-s); border-block-end: var(--border-w) dotted var(--c-line-strong); translate: 0 -0.25em; }

  /* cards: a package each, the most chosen one on the section's ground and marked */
  .prices-cards { display: grid; gap: var(--space-s); padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
  .prices-card { display: flex; flex-direction: column; gap: var(--space-xs); }
  .prices-card.is-featured { --card-line: var(--c-line-strong); --card-pad: var(--space-m); box-shadow: var(--shadow-card); }
  .prices-card h4 { font-size: var(--type-lead-size); }
  .prices-card .prices-amount { font-size: var(--type-h2-size); line-height: var(--type-h2-leading); letter-spacing: var(--type-h2-tracking); }
  /* the buttons sit at the cards' foot, on one line */
  .prices-card .button { align-self: flex-start; margin-block-start: auto; }
  .prices-chip { align-self: flex-start; }
  .prices-chip.is-spacer { visibility: hidden; }
  .prices-meta { display: flex; align-items: center; gap: var(--space-3xs); color: var(--c-text-muted); font-size: var(--step--1); }
  .prices-meta .icon { inline-size: 1rem; block-size: 1rem; }

  /* table: name, time, price; every group's columns line up */
  .prices-table { table-layout: fixed; }
  .prices-table thead th:nth-child(2) { inline-size: 6rem; }
  .prices-table thead th:nth-child(3) { inline-size: 8rem; }
  .prices-table th[scope="row"] { font-weight: 600; }
  .prices-table th[scope="row"] .prices-desc { display: block; font-weight: 400; }
  .prices-table .prices-num { text-align: end; font-variant-numeric: tabular-nums; }
}
