/* /price-list only. The price list is one <table> per section (generated by
   tools/render-price-list.py) so answer engines can read it as data; these
   rules make those tables look like the dotted rows /menu has always used.

   A separate file, not site.css, on purpose: site.css is content-hashed into
   the HTML of every page (tools/fingerprint-assets.py), so editing it would
   change the built HTML of the Google Ads landing pages, which must stay
   byte-identical. Only price-list.html links this file.

   Reuses site.css's .menu-row__name, .menu-row__qual, .menu-row__price and
   --quoted classes on the cells, so type, colour and the muted "Quoted"
   treatment are unchanged. */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.875rem 0 0;
}

/* The section's <h2> already names the table on screen; the caption carries
   the same name for assistive technology and table parsers. */
.price-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.price-table thead th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-slate);
  text-align: left;
  padding: 0 0 0.375rem;
  border-bottom: var(--rule);
}
.price-table thead th:nth-child(3) { text-align: right; }

.price-table tbody th,
.price-table tbody td {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--soft-gray);
  vertical-align: baseline;
  text-align: left;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }

.price-table tbody th { font-weight: 400; padding-right: 0.75rem; }
.price-table .price-table__unit { padding-right: 0.75rem; }
.price-table .menu-row__price { text-align: right; padding-left: 0.75rem; }
.price-table .price-table__notes {
  font-size: 0.8125rem;
  color: var(--deep-slate);
  padding-left: 0.75rem;
}

/* No row carries a note today: hide the empty Notes column rather than
   reserve space for it. It reappears on its own the day a row has one. */
.price-table:not(:has(.price-table__notes:not(:empty))) th:nth-child(4),
.price-table:not(:has(.price-table__notes:not(:empty))) td.price-table__notes { display: none; }

.price-table tfoot td {
  padding: 0.875rem 0 0;
  border-top: var(--rule);
}

/* Phones: each row becomes a two-line block -- treatment and price on the
   first line, unit (and any note) underneath -- like the original list. The
   column headings are redundant in that layout and are hidden visually only. */
@media (max-width: 559.98px) {
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .price-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--soft-gray);
  }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th,
  .price-table tbody td { padding: 0; border: 0; }
  .price-table tbody th { grid-column: 1; grid-row: 1; }
  .price-table .menu-row__price { grid-column: 2; grid-row: 1; padding-left: 0; }
  .price-table .price-table__unit { grid-column: 1 / -1; grid-row: 2; padding-right: 0; }
  .price-table .price-table__notes { grid-column: 1 / -1; padding-left: 0; }
  .price-table td:empty { display: none; }
  .price-table tfoot tr { display: block; }
  .price-table tfoot td { display: block; }
}
