/* Festive Manchester · christmas-dining.css · the Christmas dining guide
   The stage, breadcrumb, eyebrow, title, lede, fact chips, area chips,
   closing panel and garland are What's on's (content.css, loaded first by
   the ctrl). This sheet adds the guide's own parts: the filter bar, each
   section's comparison table (a table on desktop and tablet, one card per
   row on a phone), the plain lists for unverified prices and fully booked
   notices, the venue cards and the "how it is checked" notes. Nothing
   moves. Desktop first in rem; tablet and phone at the end. */

/* What the filters hide stays hidden whatever display a rule below gives it. */
.dining [hidden] {
  display: none !important;
}

.dining__section {
  margin-top: 4.5rem;
}

.dining__section:target {
  scroll-margin-top: 6rem;
}

.dining__title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}

.dining__intro {
  max-width: 46rem;
  margin-top: 1rem;
  color: var(--cream-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.dining__subtitle {
  margin-top: 2.25rem;
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dining__none {
  max-width: 46rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed rgba(217, 178, 106, 0.45);
  border-radius: 0.75rem;
  color: var(--cream-muted);
  line-height: 1.55;
}

.dining__muted {
  color: var(--cream-muted);
}

.dining__areas {
  margin-top: -1rem;
}

/* An area with nothing listed yet is named, not linked. */
.areas__link--none {
  opacity: 0.6;
  cursor: default;
}

/* ---------- The filters: present in the page, enabled by script ---------- */

.dining__filters {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(217, 178, 106, 0.3);
  border-radius: 1rem;
  background: rgba(247, 240, 228, 0.03);
}

.dining__filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: end;
}

.dining__filter-form label {
  display: grid;
  gap: 0.375rem;
  color: var(--cream-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dining__filter-form select {
  min-width: 11rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line-light);
  border-radius: 0.5rem;
  background: rgba(10, 24, 18, 0.6);
  color: var(--cream-text);
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.dining__filter-form select:focus-visible,
.dining a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.dining__count {
  flex-basis: 100%;
  margin: 0;
  color: var(--gold-2);
  font-size: 0.9375rem;
}

/* ---------- The comparison tables ---------- */

.dining__scroll {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(217, 178, 106, 0.28);
  border-radius: 1rem;
  background: var(--paper);
}

.dining__table {
  width: 100%;
  min-width: 64rem;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.dining__table th,
.dining__table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dining__table thead th {
  background: var(--sand);
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dining__table tbody tr:last-child th,
.dining__table tbody tr:last-child td {
  border-bottom: 0;
}

.dining__table tbody th {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.2;
}

.dining__table tbody th a {
  color: var(--ink);
  text-decoration: none;
}

.dining__table tbody th a:hover,
.dining__table tbody th a:focus-visible {
  color: var(--berry);
  text-decoration: underline;
}

.dining__table th small,
.dining__table td small,
.dining__plain small,
.dining__facts small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.dining__table td a,
.dining__plain a,
.dining__facts a {
  color: var(--berry);
}

.dining__table .dining__muted {
  color: var(--ink-muted);
}

.dining__more {
  white-space: nowrap;
}

.dining__routes {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dining__routes small {
  display: block;
}

/* ---------- Plain lists: price not verified, fully booked ---------- */

.dining__plain {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.dining__plain li {
  padding: 1.125rem 1.375rem;
  border: 1px solid var(--line-light);
  border-radius: 0.75rem;
  background: rgba(247, 240, 228, 0.04);
  color: var(--cream-text);
  line-height: 1.5;
}

.dining__plain li p {
  margin: 0.375rem 0 0;
}

.dining__plain li p:first-child {
  margin-top: 0;
}

.dining__plain-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.dining__plain-name a {
  color: var(--cream-text);
  text-decoration: none;
}

.dining__plain-name a:hover {
  color: var(--gold-2);
  text-decoration: underline;
}

.dining__plain a {
  color: var(--gold-2);
}

.dining__plain small {
  color: var(--cream-muted);
}

.dining__plain .dining__routes {
  margin-top: 0.5rem;
}

.dining__plain--booked li {
  border-color: rgba(217, 178, 106, 0.4);
}

.dining__checked {
  color: var(--cream-muted);
  font-size: 0.875rem;
}

/* ---------- Venue cards ---------- */

.dining__area {
  margin-top: 2.75rem;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.dining__card {
  margin-top: 1.25rem;
  padding: 1.75rem 2rem 2rem;
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.dining__card:target {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  scroll-margin-top: 6rem;
}

.dining__card-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.dining__card-where {
  margin-top: 0.25rem;
  color: var(--ink-muted);
}

.dining__card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.dining__card a {
  color: var(--berry);
}

.dining__offer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.dining__offer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.dining__facts {
  display: grid;
  gap: 0.625rem 1.5rem;
  margin: 1rem 0 0;
}

.dining__facts div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
}

.dining__facts dt {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.8;
}

.dining__facts dd {
  margin: 0;
}

.dining__sources {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------- How it is checked ---------- */

.dining__about .facts {
  max-width: 50rem;
}

.dining__about .facts li {
  color: var(--cream-text);
}

.dining__about a {
  color: var(--gold-2);
}

.dining__release {
  margin-top: 1.5rem;
  color: var(--cream-muted);
  font-size: 0.8125rem;
}

.dining__release code {
  color: var(--cream-text);
}

/* ---------- The closing panel's links ---------- */

.dining__festive {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.dining__festive li {
  padding-left: 1.25rem;
  position: relative;
}

.dining__festive li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.dining__festive a {
  color: var(--gold-2);
  font-weight: 600;
}

.dining__festive span {
  display: block;
  color: var(--cream-muted);
  font-size: 0.9375rem;
}

/* ---------- Tablet ---------- */

@media (max-width: 1023.98px) {
  .dining__section {
    margin-top: 56px;
  }

  .dining__table {
    min-width: 56rem;
    font-size: 14px;
  }

  .dining__card {
    padding: 24px 24px 28px;
  }
}

/* ---------- Phone: each row of a table is a card ---------- */

@media (max-width: 599.98px) {
  .dining__section {
    margin-top: 44px;
  }

  .dining__filters {
    padding: 18px 18px 20px;
  }

  .dining__filter-form label,
  .dining__filter-form select {
    width: 100%;
  }

  .dining__scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .dining__table {
    min-width: 0;
    display: block;
  }

  .dining__table thead {
    display: none;
  }

  .dining__table tbody,
  .dining__table tr {
    display: block;
  }

  .dining__table tr {
    margin-top: 12px;
    padding: 16px 18px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--paper);
  }

  .dining__table th,
  .dining__table td {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .dining__table tbody th {
    padding-top: 0;
  }

  .dining__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .dining__table tbody tr td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .dining__card {
    padding: 20px 18px 22px;
  }

  .dining__facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dining__card-name {
    font-size: 24px;
  }
}
