/* Festive Manchester · information.css · Terms & Conditions and Privacy Policy
   The stage, breadcrumb, eyebrow, title, closing panel and garland are What's
   on's (content.css, loaded first by both ctrls). This sheet adds the reading
   layout: the contents in a gold-edged panel on the dark stage, beside the
   text on desktop and above it on tablets and phones, and the text on the
   events' paper card with numbered sections and gold rules between them.
   Nothing moves. Desktop first in rem; tablet and phone at the end. */

.information a { text-underline-offset: .2em; }
.information a:focus-visible,
.information__table:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

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

.information__updated {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .4375rem 1rem;
  border: 1px solid rgba(217, 178, 106, .55);
  border-radius: 62.4375rem;
  background: rgba(247, 240, 228, .04);
  color: var(--gold-2);
  font-size: .8125rem;
  font-weight: 600;
}

/* ---------- Contents beside the text ---------- */

.information__layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, calc(70ch + 7rem));
  gap: 4rem;
  align-items: start;
}

.information__contents {
  position: sticky;
  top: 7rem;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.875rem;
  border: 1px solid rgba(217, 178, 106, .3);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(226, 180, 96, .12), rgba(226, 180, 96, 0) 70%),
    rgba(247, 240, 228, .03);
}

.information__contents h2 {
  color: var(--cream-text);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
}

.information__contents ol {
  display: grid;
  gap: .625rem;
  margin: 1.125rem 0 0;
  padding-left: 1.75rem;
  font-size: .875rem;
  line-height: 1.45;
}

.information__contents li::marker {
  color: var(--gold);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.information__contents a {
  color: var(--cream-muted);
  text-decoration: none;
}

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

/* ---------- The text, on the events' paper ---------- */

.information__body {
  counter-reset: part;
  padding: 3.5rem 3.5rem 3.25rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(90deg, var(--gold-deep), var(--gold) 50%, var(--gold-deep)) top / 100% .25rem no-repeat,
    var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
  box-shadow: 0 1.5rem 3rem -1.75rem rgba(0, 0, 0, .7);
}

.information__body section { counter-increment: part; }

/* A gold rule with the site's diamond between sections. */
.information__body section + section {
  margin-top: 2.75rem;
  padding-top: 3rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z' fill='%23b88c3a'/%3E%3C/svg%3E") center top / .5rem no-repeat,
    linear-gradient(90deg, rgba(184, 140, 58, 0), rgba(184, 140, 58, .55) 50%, rgba(184, 140, 58, 0)) center .25rem / 100% 1px no-repeat;
}

.information__body h2 {
  margin: 0 0 1rem;
  color: var(--evergreen);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 450;
  line-height: 1.3;
  scroll-margin-top: 8rem;
}

/* Each section's number, as in the contents; not read out a second time. */
.information__body h2::before {
  content: counter(part, decimal-leading-zero);
  content: counter(part, decimal-leading-zero) / "";
  display: block;
  margin-bottom: .375rem;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
}

.information__body h3 { margin: 1.75rem 0 .75rem; font-size: 1.125rem; font-weight: 600; }
.information__body p,
.information__body ul { max-width: 70ch; }
.information__body p + p { margin-top: 1rem; }
.information__body ul { margin: 1rem 0; padding-left: 1.5rem; }
.information__body li + li { margin-top: .375rem; }
.information__body a { color: var(--berry); text-decoration: underline; overflow-wrap: anywhere; }

.information__table { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.information table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.65; text-align: left; }
.information th,
.information td { padding: .875rem; vertical-align: top; border: 1px solid #e3d3b2; }
.information th { background: #f3e6c8; color: var(--evergreen); font-weight: 600; }
.information__cell-label { display: none; }
.information code { font-size: .9em; overflow-wrap: anywhere; }

/* ---------- Small desktops: a narrower panel leaves the text its room ---------- */

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .information__layout { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 2.5rem; }
  .information__body { padding: 3rem 2.75rem 2.75rem; }
}

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

@media (max-width: 1023.98px) {
  .information__layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .information__contents { position: static; max-height: none; overflow: visible; }
  .information__contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .information__body h2 { scroll-margin-top: 2rem; }
}

/* ---------- Phone ---------- */

@media screen and (max-width: 599.98px) {
  .information__updated { margin-top: 1.25rem; }
  .information__contents { padding: 1.5rem 1.25rem; }
  .information__contents ol { grid-template-columns: minmax(0, 1fr); }
  .information__body { padding: 2.25rem 1.25rem 2rem; }
  .information__body section + section { margin-top: 2.25rem; padding-top: 2.5rem; }
  .information__body h2 { font-size: 1.5rem; }
  /* Keep the column headings available to screen readers; show each row
     as labelled lines so every deadline and cookie detail fits on a phone. */
  .information table, .information tbody, .information tr, .information td { display: block; width: 100%; }
  .information thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .information tbody tr { border: 1px solid #e3d3b2; border-radius: .5rem; overflow: hidden; }
  .information tbody tr + tr { margin-top: 1rem; }
  .information td { padding: .75rem; border: 0; }
  .information td + td { border-top: 1px solid #e3d3b2; }
  .information td:first-child { background: #f3e6c8; }
  .information__cell-label { display: block; margin-bottom: .25rem; color: var(--evergreen); font-size: .8125rem; font-weight: 600; }
}

/* ---------- Print: the text alone ---------- */

@media print {
  .shelf.information { min-height: 0; padding: 0; background: white; }
  .information .crumbs,
  .information__contents,
  .information__foot,
  .information .shelf__garland { display: none; }
  .information .eyebrow,
  .information .shelf__title,
  .information .shelf__title em,
  .information .shelf__lede,
  .information__updated { color: black; }
  .information__updated { padding: 0; border: 0; }
  .information__layout { display: block; }
  .information__body { padding: 0; background: white; box-shadow: none; }
  .information__table { overflow: visible; }
  .information table { min-width: 0; }
  .information__body h2 { break-after: avoid; }
}
