/* LewesGo Insight, the weekly magazine (src/insight.njk). Loaded only on /insight pages.
   Phones: one page after another, each starting with its folio line like a printed page.
   Computers (1100px and wider): two pages side by side as a spread, turned sideways with the
   buttons, the arrow keys or a swipe. Each spread is sized to the window (insight.js). */

.mag {
  --mag-paper: #f6efe1;
  --mag-paper-edge: #e6dcc6;
  --mag-ink: #1d1914;
  --mag-muted: #574f45;
  --mag-red: #8e1b1b;
  --mag-night: #0c1939;
  --mag-night-ink: #f7f2e6;
  --mag-gold: #d8a848;
  --mag-ad: #f3dfae;
  --mag-desk: #2b2721;
  --mag-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--mag-paper);
  color: var(--mag-ink);
}

/* The bar: issue, edition switch, contents, listen, page turner. */
.mag [hidden] {
  display: none;
}

.mag-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
  background: var(--mag-night);
  color: var(--mag-night-ink);
  font-size: 0.9rem;
}

.mag-bar a,
.mag-bar button {
  color: var(--mag-night-ink);
}

.mag-bar__issue {
  margin: 0;
}

.mag-bar__editions {
  display: flex;
  border: 1px solid var(--mag-gold);
  border-radius: 999px;
  overflow: hidden;
}

.mag-bar__editions a {
  padding: 0.25rem 0.75rem;
  text-decoration: none;
}

.mag-bar__editions a[aria-current="page"] {
  background: var(--mag-gold);
  color: var(--mag-night);
  font-weight: 700;
}

.mag-bar__listen,
.mag-bar__turn button,
.mag-listen {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

.mag-bar__listen,
.mag-bar__turn button {
  background: transparent;
  border: 1px solid var(--mag-gold);
}

.mag-bar__turn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.mag-bar__turn button {
  min-width: 2.5rem;
  font-size: 1.2rem;
  line-height: 1;
}

/* Pages */
.mag-pages:focus-visible {
  outline: 3px solid var(--colour-focus);
  outline-offset: -3px;
}

.mag-page {
  position: relative;
  scroll-snap-align: start;
  scroll-margin-top: 5.5rem;
  padding: 1.25rem 1.1rem 2rem;
  border-bottom: 1px solid var(--mag-paper-edge);
  font-family: var(--mag-serif);
  font-size: 1.08rem;
  line-height: 1.6;
}

.mag-page p {
  margin: 0 0 0.9em;
}

.mag-folio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--mag-red);
  color: var(--mag-red);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mag-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
  color: var(--mag-ink);
}

.mag-standfirst {
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--mag-muted);
}

.mag-drop::first-letter {
  float: left;
  margin: 0.06em 0.06em 0 0;
  font-family: var(--font-heading);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.8;
  color: var(--mag-red);
}

.mag-pull {
  margin: 1.2rem 0;
  padding: 0.8rem 0;
  border-top: 3px solid var(--mag-red);
  border-bottom: 1px solid var(--mag-red);
}

.mag-pull p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--mag-red);
}

.mag-photo {
  margin: 0 0 1rem;
}

.mag-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mag-photo figcaption {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--mag-muted);
}

.mag-article {
  display: flex;
  flex-direction: column;
}

.mag-article__side {
  display: contents;
}

.mag-article .mag-photo {
  order: -1;
}

.mag-page a {
  color: var(--mag-red);
}

.mag-src,
.mag-src-line {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--mag-muted);
}

.mag-brief {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--mag-paper-edge);
}

.mag-brief h3,
.mag-day,
.mag-editor h3,
.mag-back h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--mag-red);
}

.mag-more {
  font-family: var(--font-body);
  font-weight: 700;
}

.mag-listen {
  margin-top: 0.5rem;
  border: 1px solid var(--mag-red);
  background: var(--mag-paper);
  color: var(--mag-red);
}

.mag-listen[aria-pressed="true"],
.mag-bar__listen[aria-pressed="true"] {
  background: var(--mag-red);
  border-color: var(--mag-red);
  color: #fff;
}

.mag-label {
  display: inline-block;
  margin-right: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Cover */
.mag-page--cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 3rem);
  padding: 0;
  overflow: hidden;
  background: var(--mag-night);
  color: #fff;
}

.mag-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(4 10 26 / 0.88) 0%, rgb(4 10 26 / 0.35) 38%, rgb(4 10 26 / 0.45) 62%, rgb(4 10 26 / 0.92) 100%);
}

.mag-cover__top,
.mag-cover__lines,
.mag-cover__strip,
.mag-page--cover .credit {
  position: relative;
}

.mag-cover__top {
  padding: 1.4rem 1.2rem 0;
}

.mag-cover__kicker {
  margin: 0 0 0.3rem;
  color: var(--mag-gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mag-cover__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 15vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #fff;
}

.mag-cover__title span {
  color: var(--mag-gold);
}

.mag-cover__title em {
  display: block;
  font-weight: 500;
}

.mag-cover__date {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.mag-cover__lines {
  margin: 0;
  padding: 0 1.2rem;
  list-style: none;
}

.mag-cover__lines li {
  margin: 0 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--mag-gold);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.2;
}

.mag-cover__lines a {
  color: #fff;
  text-decoration: none;
}

.mag-cover__lines a:hover,
.mag-cover__lines a:focus-visible {
  text-decoration: underline;
}

.mag-cover__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.8rem;
  margin: 0 1.2rem;
  padding: 0.55rem 0.8rem;
  background: var(--mag-ad);
  color: var(--mag-night);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.mag-cover__strip a {
  color: var(--mag-night);
  font-weight: 700;
}

.mag-page--cover .credit {
  display: block;
  padding: 0.4rem 1.2rem 0.8rem;
  color: #fff;
}

.mag-page--cover .credit a {
  color: #fff;
}

/* Contents */
.mag-contents {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.mag-contents li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--mag-paper-edge);
}

.mag-contents a {
  color: var(--mag-ink);
  text-decoration: none;
}

.mag-contents a:hover,
.mag-contents a:focus-visible {
  text-decoration: underline;
}

.mag-contents__section {
  display: block;
  color: var(--mag-red);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mag-contents__page {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--mag-red);
}

.mag-editor {
  padding: 1rem;
  background: #fffaf0;
  border: 1px solid var(--mag-paper-edge);
}

.mag-sign {
  font-style: italic;
}

.mag-edition-note {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mag-muted);
}

/* Listings */
.mag-day {
  margin-top: 1rem;
}

.mag-listings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mag-listings li {
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--mag-paper-edge);
}

.mag-listings span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mag-muted);
}

/* Bonfire fire sites */
.mag-table {
  width: 100%;
  margin: 1rem 0 0.3rem;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.mag-table caption {
  margin-bottom: 0.3rem;
  text-align: left;
  font-weight: 700;
  color: var(--mag-red);
}

.mag-table th,
.mag-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--mag-paper-edge);
  text-align: left;
  vertical-align: top;
}

/* Adverts: the positions, shown as house adverts until they are booked. */
.mag-page--ad {
  background: var(--mag-ad);
}

.mag-page--ad .mag-folio {
  border-bottom-color: var(--mag-night);
  color: var(--mag-night);
}

.mag-ad {
  padding: 1.5rem 1.2rem;
  border: 3px double var(--mag-night);
  color: var(--mag-night);
}

.mag-ad__head {
  margin: 0.3rem 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-style: italic;
  line-height: 1.05;
}

.mag-ad__price {
  font-family: var(--font-body);
  font-weight: 700;
}

.mag-ad__price span,
.mag-ad__note {
  font-weight: 400;
  font-size: 0.85rem;
}

.mag-page--ad .mag-ad a.button {
  color: #fff;
}

.mag-back {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--mag-paper);
}

.mag-sponsor,
.mag-quarter {
  margin: 1.2rem 0 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--mag-ad);
  color: var(--mag-night);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.mag-sponsor a,
.mag-quarter a {
  color: var(--mag-night);
  font-weight: 700;
}

/* Night pages (the featured event) */
.mag-page--night {
  background: var(--mag-night);
  color: var(--mag-night-ink);
}

.mag-page--night .mag-folio {
  border-bottom-color: var(--mag-gold);
  color: var(--mag-gold);
}

.mag-page--night .mag-title,
.mag-page--night .mag-standfirst {
  color: var(--mag-night-ink);
}

.mag-label--light {
  color: var(--mag-gold);
}

.mag-featured__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5rem 0 1rem;
}

.mag-page--night .mag-listen {
  background: var(--mag-night);
  border-color: var(--mag-gold);
  color: var(--mag-gold);
}

/* Submissions and letters */
.mag-rules {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem 0.8rem 2rem;
  background: #fffaf0;
  border-left: 4px solid var(--mag-red);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.mag-send {
  font-family: var(--font-body);
  font-size: 0.92rem;
}

/* Computers: spreads, turned sideways. */
@media (min-width: 1100px) {
  .mag {
    background: var(--mag-desk);
    padding-bottom: 2rem;
  }

  /* The bar stays at the top of the window, and the spread fills the rest of it exactly:
     --mag-top is the site header's height and --mag-room the height left below the bar,
     both measured by insight.js. */
  .mag-bar {
    position: sticky;
    top: var(--mag-top, 0);
    z-index: 2;
  }

  .mag-pages {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 50%;
    gap: 0;
    padding: 1rem 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 2rem;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
  }

  .mag-page {
    height: var(--mag-room, calc(100vh - 5.5rem));
    overflow-y: auto;
    border-bottom: 0;
    padding: 1.6rem 2rem 2rem;
    background-color: var(--mag-paper);
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
    scroll-margin-top: 0;
  }

  .mag-page:nth-child(even) {
    background-image: linear-gradient(90deg, rgb(0 0 0 / 0.08), transparent 2.5rem);
  }

  .mag-page:nth-child(odd) {
    background-image: linear-gradient(270deg, rgb(0 0 0 / 0.08), transparent 2.5rem);
  }

  .mag-page--wide {
    grid-column: span 2;
  }

  /* Photos give way to the words on a short window. */
  .mag-page .mag-photo:not(.mag-photo--full) img {
    max-height: 34vh;
  }

  /* Pages too long for the window are set a little smaller (insight.js), down to 80%. */
  .mag-page > * {
    zoom: var(--fit, 1);
  }

  .mag-page--wide .mag-standfirst {
    max-width: 48rem;
  }

  .mag-page--cover {
    min-height: 0;
  }

  .mag-page--ad {
    background-color: var(--mag-ad);
  }

  .mag-page--night {
    background-color: var(--mag-night);
  }

  .mag-article--spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    align-items: start;
  }

  .mag-article--spread .mag-article__side {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  .mag-article--spread .mag-article__text {
    grid-column: 2;
    grid-row: 1;
  }

  .mag-cover__top {
    padding: 2.2rem 2.4rem 0;
  }

  .mag-cover__lines {
    max-width: 38rem;
    padding: 0 2.4rem;
  }

  .mag-cover__strip {
    margin: 0 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mag-pages {
    scroll-behavior: auto;
  }
}

/* Viva-style fact boxes: Where? When? How much? */
.mag-facts {
  margin: 0.8rem 0;
  padding: 0.6rem 0.8rem;
  background: #ebe3d2;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.mag-facts__what {
  margin: 0 0 0.3rem;
  font-weight: 700;
}

.mag-facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 0.7rem;
  margin: 0;
}

.mag-facts dt {
  font-weight: 700;
  color: var(--mag-muted);
}

.mag-facts dd {
  margin: 0;
}

.mag-week {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--mag-red);
}

.mag-photo--full figcaption,
.mag-photo--full figcaption a {
  color: var(--mag-night-ink);
}

.mag-page a.button {
  color: #fff;
}

.mag-page--night a {
  color: var(--mag-gold);
}

/* "On LewesGo": real screenshots of the site, and ways to get involved. */
.mag-shots {
  display: grid;
  gap: 1.2rem;
  margin: 1rem 0;
}

.mag-shot {
  margin: 0;
}

.mag-shot img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  border: 1px solid var(--mag-paper-edge);
  border-radius: 1.2rem;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
}

.mag-shot figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.mag-shot figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.mag-involved {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-family: var(--font-body);
}

.mag-involved li {
  margin: 0.3rem 0;
}

@media (min-width: 700px) {
  .mag-shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* What's on, day by day */
.mag-days__day {
  margin-bottom: 0.6rem;
}

/* Sample adverts, made by LewesGo from a business's public information. */
.mag-sample {
  --tone: #17365f;
  --tone-soft: #ebeff5;
  padding: 1.6rem 1.3rem;
  border-top: 10px solid var(--tone);
  background: var(--tone-soft);
  color: var(--mag-ink);
}

.mag-sample--coffee { --tone: #5a3a22; --tone-soft: #f4ebe1; }
.mag-sample--teal { --tone: #176a68; --tone-soft: #e8f3f2; }
.mag-sample--forest { --tone: #245c45; --tone-soft: #eaf2ed; }

.mag-sample .mag-label,
.mag-sample a {
  color: var(--tone);
}

.mag-sample__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem 0 0.4rem !important;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.mag-sample__mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--tone);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.mag-sample__kicker {
  margin: 0 0 0.3rem !important;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
}

.mag-sample__head {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-style: italic;
  line-height: 1.05;
  color: var(--tone);
}

.mag-sample__text {
  font-size: 1.2rem;
}

.mag-sample__details {
  margin: 0 0 1rem;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--tone);
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.mag-sample__details li {
  margin: 0.2rem 0;
}

.mag-sample__links {
  font-family: var(--font-body);
  font-weight: 700;
}

.mag-page--ad > .mag-ad__note {
  margin-top: 1rem;
  font-family: var(--font-body);
  color: var(--mag-night);
}

.mag-quarter--rust {
  border-left: 6px solid #962f2d;
}

.mag-quarter__name,
.mag-quarter__head {
  display: block;
}

.mag-quarter__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.mag-quarter__head {
  font-style: italic;
}

.mag-quarter__note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

/* Live travel: the site's own board styles (site.css), with sample times. */
.mag-sample-note,
.mag-disclaimer {
  padding: 0.6rem 0.8rem;
  background: #fffaf0;
  border-left: 4px solid var(--mag-red);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.mag-boards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0;
  font-family: var(--font-body);
  line-height: 1.3;
}

.mag-boards .led,
.mag-boards .tft {
  margin: 0;
}

.mag-boards .stop__flag {
  margin-top: 0;
}

@media (min-width: 700px) {
  .mag-boards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Letters: a sample letter, set like a printed letters page. */
.mag-letter {
  margin: 0 0 1.2rem;
  padding: 1rem 1.2rem;
  background: #fffaf0;
  border: 1px solid var(--mag-paper-edge);
}

.mag-letter h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--mag-red);
}

.mag-letter__sign {
  font-style: italic;
  text-align: right;
}

.mag-letter__note {
  margin: 0 !important;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--mag-muted);
}

/* Directory focus and the A to Z */
.mag-focus {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.mag-focus li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--mag-paper-edge);
  line-height: 1.4;
}

.mag-focus img {
  flex: none;
  border-radius: 50%;
}

.mag-focus__addr {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--mag-muted);
}

.mag-atoz {
  columns: 2;
  column-gap: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.35;
}

.mag-atoz__head {
  margin: 0.8rem 0 0.3rem;
  break-after: avoid;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.mag-atoz__head:first-child {
  margin-top: 0;
}

.mag-atoz__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mag-atoz__list li {
  margin: 0.1rem 0;
  break-inside: avoid;
}

.mag-atoz__list a {
  color: var(--mag-ink);
  text-decoration-color: var(--mag-paper-edge);
}

/* Films: YouTube's player, loaded only when the reader presses play (insight.js). */
.mag-films {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.mag-film {
  margin: 0;
}

.mag-film--landscape {
  grid-column: 1 / -1;
}

.mag-film__play,
.mag-film iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.6rem;
}

.mag-film--landscape .mag-film__play,
.mag-film--landscape iframe {
  aspect-ratio: 16 / 9;
}

.mag-film--portrait .mag-film__play,
.mag-film--portrait iframe {
  aspect-ratio: 9 / 16;
}

.mag-film__play {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 0.5rem;
  background: radial-gradient(circle at 50% 60%, #6b2a12, #1a0d08 70%);
  color: var(--mag-night-ink);
  font: 700 1rem var(--font-body);
  cursor: pointer;
}

.mag-film__play:focus-visible {
  outline: 3px solid var(--mag-gold);
  outline-offset: 2px;
}

.mag-film__icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--mag-gold);
  clip-path: polygon(30% 20%, 30% 80%, 80% 50%);
}

.mag-film__note {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
}

.mag-film__link {
  margin: 0.3rem 0 0 !important;
  font-family: var(--font-body);
  font-size: 0.8rem;
}

/* Computers: the new pages' spread layouts (after their phone rules, so they win). */
@media (min-width: 1100px) {
  .mag-days {
    columns: 3;
    column-gap: 2.5rem;
  }

  .mag-days__day {
    break-inside: avoid;
  }

  .mag-atoz {
    columns: 4;
  }

  .mag-sample {
    padding: 2.5rem 2.2rem;
  }

  .mag-films {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: start;
  }

  .mag-film--landscape {
    grid-column: auto;
  }

  .mag-film--portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mag-film--portrait .mag-film__play,
  .mag-film--portrait iframe {
    width: auto;
    height: min(48vh, 30rem);
  }
}

.mag-page--night .mag-src-line {
  color: var(--mag-night-ink);
}

/* ------------------------------------------------------------------------------------------
   The magazine look (November 2026): Playfair Display headlines, bright paper, hairline rules,
   full-bleed photographs and the advertisers' own artwork. Kept last so it sets the style. */
@font-face {
  font-family: "Playfair Display";
  src: url("../vendor/fonts/playfair-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../vendor/fonts/playfair-display-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../vendor/fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.mag {
  --mag-paper: #fcfbf8;
  --mag-paper-edge: #dcd8cf;
  --mag-ink: #121212;
  --mag-muted: #57534d;
  --mag-red: #8c1c2b;
  --mag-night: #0e0e0f;
  --mag-night-ink: #f4f1ea;
  --mag-gold: #d2b072;
  --mag-ad: #ebe8e2;
  --mag-desk: #1b1b1c;
  --mag-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --mag-serif: "Fraunces", Georgia, serif;
  --mag-sans: "Inter", system-ui, sans-serif;
  --font-heading: var(--mag-display);
}

.mag-bar {
  background: #0b0b0b;
  font-family: var(--mag-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.mag-bar__editions,
.mag-bar__listen,
.mag-bar__turn button {
  border-color: rgb(255 255 255 / 0.45);
}

.mag-bar__editions a[aria-current="page"] {
  background: #fff;
  color: #0b0b0b;
}

.mag-page {
  font-family: var(--mag-serif);
  font-size: 1.02rem;
  font-weight: 350;
  line-height: 1.62;
}

.mag-page a {
  color: var(--mag-ink);
  text-decoration-color: var(--mag-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.mag-folio {
  margin-bottom: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--mag-ink);
  color: var(--mag-ink);
  font-family: var(--mag-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.mag-folio span:last-child {
  font-family: var(--mag-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.mag-title {
  margin: 0 0 0.8rem;
  font-family: var(--mag-display);
  font-size: clamp(2.5rem, 8vw, 3.7rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.mag-standfirst {
  margin-bottom: 1.3rem;
  font-family: var(--mag-display);
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.42;
  color: var(--mag-ink);
}

.mag-drop::first-letter {
  margin: 0.04em 0.08em 0 0;
  font-family: var(--mag-display);
  font-size: 4.5em;
  font-weight: 700;
  line-height: 0.78;
  color: var(--mag-ink);
}

.mag-pull {
  margin: 1.8rem 0;
  padding: 0 0.5rem;
  border: 0;
  text-align: center;
}

.mag-pull::before,
.mag-pull::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 1rem;
  background: var(--mag-red);
}

.mag-pull::after {
  margin: 1rem auto 0;
}

.mag-pull p {
  font-family: var(--mag-display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--mag-ink);
}

.mag-brief h3,
.mag-day,
.mag-editor h3,
.mag-letter h3 {
  font-family: var(--mag-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--mag-ink);
}

.mag-day {
  padding-top: 0.6rem;
  border-top: 1px solid var(--mag-ink);
  font-family: var(--mag-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mag-red);
}

.mag-brief {
  border-bottom: 1px solid var(--mag-paper-edge);
}

.mag-label,
.mag-contents__section,
.mag-facts__what {
  font-family: var(--mag-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mag-red);
}

.mag-photo img {
  border-radius: 0;
}

.mag-photo figcaption,
.mag-src,
.mag-src-line,
.mag-sample-note,
.mag-edition-note {
  font-family: var(--mag-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--mag-muted);
}

/* Photographs run to the edges of the page, as in print. */
.mag-article .mag-photo,
.mag-page--call > .mag-photo,
.mag-page > .mag-photo {
  margin-inline: -1.1rem;
}

.mag-article .mag-photo figcaption,
.mag-page > .mag-photo figcaption {
  padding-inline: 1.1rem;
}

.mag-contents li {
  align-items: baseline;
  border-bottom: 1px solid var(--mag-paper-edge);
}

.mag-contents a {
  font-family: var(--mag-display);
  font-size: 1.08rem;
  text-decoration: none;
}

.mag-contents__page {
  font-family: var(--mag-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--mag-red);
}

.mag-editor,
.mag-rules,
.mag-facts {
  padding: 1rem 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--mag-ink);
}

.mag-rules {
  padding-left: 1.2rem;
  font-family: var(--mag-sans);
  font-size: 0.85rem;
}

.mag-sign,
.mag-letter__sign {
  font-family: var(--mag-display);
  font-style: italic;
}

.mag-listings li {
  border-bottom: 1px solid var(--mag-paper-edge);
}

.mag-listings a {
  font-family: var(--mag-display);
  font-size: 1.05rem;
  text-decoration: none;
}

.mag-listings span,
.mag-facts dl,
.mag-table {
  font-family: var(--mag-sans);
  font-size: 0.78rem;
}

.mag-table caption {
  font-family: var(--mag-sans);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mag-red);
}

.mag-more {
  font-family: var(--mag-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mag-page--night .mag-folio {
  border-bottom-color: rgb(255 255 255 / 0.5);
  color: var(--mag-night-ink);
}

.mag-page--night a {
  color: var(--mag-night-ink);
  text-decoration-color: var(--mag-gold);
}

/* The cover */
.mag-page--cover {
  background: #000;
}

.mag-cover__shade {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0.12) 30%, rgb(0 0 0 / 0.2) 45%, rgb(0 0 0 / 0.78) 80%, rgb(0 0 0 / 0.85) 100%);
}

.mag-cover__body {
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
}

.mag-cover__mast,
.mag-cover__body {
  position: relative;
}

.mag-cover__mast {
  padding: 1.3rem 1rem 0;
  text-align: center;
}

.mag-cover__title {
  margin: 0;
  font-family: var(--mag-display);
  font-size: clamp(3.4rem, 16.5vw, 11.5rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.mag-cover__brand {
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 0.55em;
  font-family: var(--mag-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  line-height: 1;
}

.mag-cover__mast .mag-cover__date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.4rem;
  max-width: 44rem;
  margin: 0.8rem auto 0;
  padding: 0.4rem 0;
  border-block: 1px solid rgb(255 255 255 / 0.6);
  font-family: var(--mag-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mag-cover__body {
  display: grid;
  gap: 1.4rem;
  padding: 2rem 1.2rem 0.6rem;
}

.mag-cover__lead {
  display: block;
  max-width: 36rem;
  color: #fff !important;
  text-decoration: none;
}

.mag-cover__kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mag-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mag-gold);
}

.mag-cover__leadtitle {
  display: block;
  font-family: var(--mag-display);
  font-size: clamp(2.8rem, 10vw, 5.4rem);
  font-style: italic;
  line-height: 0.95;
}

.mag-cover__leadsub {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mag-display);
  font-size: 1.2rem;
}

.mag-cover__lines {
  display: grid;
  gap: 0.9rem;
  padding: 0;
}

.mag-cover__lines li {
  margin: 0;
  padding: 0.55rem 0 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 0.5);
  font-family: var(--mag-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.3;
}

.mag-cover__lines strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--mag-sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mag-page--cover .credit {
  background: none;
  font-size: 0.62rem;
  text-align: right;
}

/* Adverts: the advertiser's own artwork, whole, on a quiet page. */
.mag-page--ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mag-ad);
}

.mag-advert {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.mag-advert__label {
  margin-bottom: 0.55rem;
  font-family: var(--mag-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mag-muted);
}

.mag-advert a {
  display: block;
}

.mag-advert img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 14px 34px rgb(0 0 0 / 0.16);
}

.mag-advert--page img {
  max-width: 30rem;
}

.mag-advert--box {
  max-width: 24rem;
  margin: 2rem auto 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mag-paper-edge);
}

.mag-back {
  margin: 1.2rem 0 0;
  padding: 0;
  background: none;
  font-family: var(--mag-sans);
  font-size: 0.74rem;
  text-align: center;
}

/* Films: each film's own still under the play button. */
.mag-film__play {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: #000;
}

.mag-film__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.4s;
}

.mag-film__play:hover .mag-film__still,
.mag-film__play:focus-visible .mag-film__still {
  opacity: 1;
  transform: scale(1.03);
}

.mag-film__icon,
.mag-film__label {
  position: relative;
}

.mag-film__icon {
  width: 3.2rem;
  height: 3.2rem;
  background: #fff;
}

.mag-film__label {
  font-family: var(--mag-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.9);
}

.mag-film__note {
  letter-spacing: 0.05em;
  text-transform: none;
}

/* Sport: the fixture as a match card, in the Rooks' red and black. */
.mag-match {
  order: -1;
  margin: 0 0 1.5rem;
  padding: 1.6rem 1rem 1.4rem;
  border: 12px solid transparent;
  background: linear-gradient(#0e0e0f, #0e0e0f) padding-box, repeating-linear-gradient(90deg, #c8102e 0 16px, #0e0e0f 16px 32px) border-box;
  color: #fff;
  text-align: center;
}

.mag-match p {
  margin: 0;
}

.mag-match__comp,
.mag-match__where {
  font-family: var(--mag-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mag-gold);
}

.mag-match__teams {
  margin: 0.8rem 0 !important;
  font-family: var(--mag-display);
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.mag-match__teams span:not(.mag-match__v) {
  display: block;
}

.mag-match__v {
  display: block;
  margin: 0.2rem 0;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--mag-gold);
}

.mag-match__when {
  margin-bottom: 0.3rem !important;
  font-family: var(--mag-display);
  font-size: 1.2rem;
  font-style: italic;
}

/* Eat and drink: market day, set in type. */
.mag-panel {
  order: -1;
  margin: 0 0 1.5rem;
  padding: 1.8rem 1rem;
  background: var(--mag-red);
  color: #fff;
  text-align: center;
}

.mag-panel p {
  margin: 0;
}

.mag-panel__kicker {
  font-family: var(--mag-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.mag-panel__big {
  margin: 0.3rem 0 0.6rem !important;
  font-family: var(--mag-display);
  font-size: clamp(3rem, 11vw, 4.6rem);
  font-style: italic;
  line-height: 1;
}

.mag-panel__line {
  padding: 0.3rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.45);
  font-family: var(--mag-display);
  font-size: 1.15rem;
}

@media (min-width: 1100px) {
  .mag-page {
    padding: 1.8rem 2.4rem 2rem;
  }

  .mag-article .mag-photo,
  .mag-page--call > .mag-photo,
  .mag-page > .mag-photo {
    margin-inline: -2.4rem;
  }

  .mag-article .mag-photo figcaption,
  .mag-page > .mag-photo figcaption {
    padding-inline: 2.4rem;
  }

  .mag-article--spread .mag-photo {
    margin-inline: -2.4rem 0;
  }

  .mag-title {
    font-size: clamp(2.6rem, 3.4vw, 3.9rem);
  }

  .mag-page--ad {
    padding: 1.5rem;
  }

  .mag-page--ad .mag-advert--page img {
    width: auto;
    max-width: 100%;
    max-height: calc(var(--mag-room, 80vh) - 6rem);
  }

  .mag-cover__mast {
    padding-top: 1.8rem;
  }

  .mag-cover__body {
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 3rem;
    padding: 0 2.6rem 0.4rem;
  }

  .mag-cover__lines {
    max-width: none;
    padding: 0;
  }

  .mag-page--whatson .mag-advert--box {
    max-width: 20rem;
    margin-top: 1rem;
  }

  .mag-match {
    padding: 1.4rem 1rem 1.2rem;
  }
}

/* Credits sit under their photographs, as captions. */
.mag-photo .credit {
  position: static;
  display: block;
  padding: 0;
  background: none;
  color: var(--mag-muted);
  font-family: var(--mag-sans);
  font-size: 0.66rem;
}

.mag-photo .credit a {
  color: inherit;
}

.mag-page--night .mag-photo .credit,
.mag-page--night .mag-label {
  color: var(--mag-gold);
}

.mag-page a.button {
  min-height: 2.6rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--mag-ink);
  border-radius: 0;
  background: var(--mag-ink);
  color: #fff;
  font-family: var(--mag-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mag-page--night a.button {
  border-color: #fff;
  background: #fff;
  color: var(--mag-ink);
}

.mag-listen {
  padding: 0.3rem 0.9rem;
  border-radius: 0;
  font-family: var(--mag-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mag-days .mag-day {
  margin-top: 0;
}

.mag-days .mag-advert--box {
  break-inside: avoid;
  margin-top: 1.2rem;
}

@media (min-width: 1100px) {
  .mag-page {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .mag-page:not(.mag-page--wide) .mag-title {
    font-size: clamp(2.3rem, 2.8vw, 3.2rem);
  }

  .mag-page .mag-photo:not(.mag-photo--full) img {
    max-height: 30vh;
  }

  .mag-article--spread .mag-photo img {
    max-height: 48vh !important;
  }

  .mag-contents {
    columns: 2;
    column-gap: 2rem;
  }

  .mag-contents li {
    break-inside: avoid;
  }

  .mag-facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 0.8rem;
  }
}

.mag-page--cover .mag-cover__lines a {
  color: #fff;
  text-decoration: none;
}

.mag-page--cover .mag-cover__lines a:hover,
.mag-page--cover .mag-cover__lines a:focus-visible {
  text-decoration: underline;
}

.mag-letter {
  background: #fff;
  border: 1px solid var(--mag-paper-edge);
}

.mag-disclaimer,
.mag-sample-note {
  padding: 0.6rem 0;
  border: 0;
  border-block: 1px solid var(--mag-paper-edge);
  background: none;
  font-family: var(--mag-sans);
  font-size: 0.72rem;
}

.mag-atoz__list a,
.mag-focus a {
  text-decoration: none;
}

.mag-atoz__list a:hover,
.mag-atoz__list a:focus-visible,
.mag-focus a:hover,
.mag-focus a:focus-visible {
  text-decoration: underline;
}

.mag-atoz__head {
  font-family: var(--mag-display);
}
