/*
 * "The P346 Herald" — newspaper design for the Newsletter page and each issue.
 * Loaded only on /newsletter/ and the issue pages, after p346-theme.css.
 * Nameplate: UnifrakturMaguntia. Headlines: Playfair Display. Body: Old Standard TT.
 */
.site main.gazette {
  --newsprint: #f4eedf;
  --ink-black: #1b1a17;
  --ink-soft: #3a372f;
  --hairline: #b9ae95;
  --gz-text: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --gz-head: 'Playfair Display', Georgia, serif;
  --gz-name: 'UnifrakturMaguntia', 'Old English Text MT', Georgia, serif;
  background: #e9e1cd !important;
  padding: 40px 20px 64px;
  color: var(--ink-black);
}
.gazette .gz-sheet {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--newsprint);
  padding: 34px 44px 48px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 18px 40px -18px rgba(19, 33, 60, 0.35);
}
.gazette a {
  color: var(--ink-black);
}
.gazette a:hover {
  color: var(--gold-text);
}

/* ----- Nameplate ----- */
.gz-nameplate {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
}
.gz-ear {
  border: 1px solid var(--ink-black);
  padding: 10px 8px;
  text-align: center;
  font-family: var(--gz-text);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gz-ear strong {
  display: block;
  font-family: var(--gz-head);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
  margin: 2px 0;
}
.gz-title {
  margin: 0;
  text-align: center;
  font-family: var(--gz-name);
  font-weight: 400;
  font-size: clamp(46px, 8.4vw, 104px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink-black);
}
.gz-title a {
  text-decoration: none;
  color: inherit;
}
.gz-motto {
  margin: 4px 0 12px;
  text-align: center;
  font-family: var(--gz-text);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
}
.gz-folio {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 18px;
  border-top: 3px solid var(--ink-black);
  border-bottom: 1px solid var(--ink-black);
  box-shadow: 0 -6px 0 -5px var(--ink-black);
  padding: 7px 2px;
  font-family: var(--gz-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.gz-folio + .gz-folio-rule {
  height: 3px;
  border-bottom: 1px solid var(--ink-black);
  margin-bottom: 26px;
}

/* ----- Shared article type ----- */
.gz-kicker {
  margin: 0 0 6px;
  font-family: var(--gz-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.gz-banner {
  margin: 0;
  font-family: var(--gz-head);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink-black);
}
.gz-banner a {
  text-decoration: none;
}
.gz-banner a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.gz-deck {
  margin: 12px 0 0;
  font-family: var(--gz-text);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.gz-byline {
  margin: 16px 0 0;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--gz-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gz-cols {
  font-family: var(--gz-text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-black);
  column-gap: 34px;
  column-rule: 1px solid var(--hairline);
}
.gz-cols p {
  margin: 0 0 14px;
  text-align: justify;
  hyphens: auto;
}
/* Keep the opening paragraph in one column, so its drop cap stays with its first line
   (a short opening before a full-width video otherwise splits the cap from its word). */
.gz-cols .gz-first {
  break-inside: avoid;
}
.gz-cols .gz-salute {
  break-after: avoid;
}
.gz-cols .gz-first::first-letter {
  float: left;
  font-family: var(--gz-head);
  font-weight: 800;
  font-size: 74px;
  line-height: 0.82;
  padding: 6px 8px 0 0;
  color: var(--navy);
}
.gz-dateline {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
}
.gz-cols h2,
.gz-cols h3 {
  break-after: avoid;
  margin: 22px 0 8px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-black);
  font-family: var(--gz-head);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink-black);
}
.gz-cols h2:first-child {
  margin-top: 0;
}
.gz-cols a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.gz-signoff {
  font-style: italic;
}

/* Boxed "By the Numbers" sidebar */
.gz-box {
  break-inside: avoid;
  border: 2px solid var(--ink-black);
  outline: 1px solid var(--ink-black);
  outline-offset: 3px;
  margin: 8px 4px 22px;
  padding: 16px 18px;
  background: #f8f3e6;
  text-align: center;
}
.gz-box h3,
.gz-box .gz-box-title {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--ink-black);
  font-family: var(--gz-head);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gz-box .gz-big {
  display: block;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--navy);
}
.gz-box ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  text-align: left;
}
.gz-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dotted var(--hairline);
  font-family: var(--gz-text);
  font-size: 16px;
  line-height: 1.35;
}
.gz-box li strong {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--navy);
}
.gz-box small {
  display: block;
  margin-top: 8px;
  font-family: var(--gz-text);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: left;
}

/* ----- Front page (/newsletter/) ----- */
.gz-front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0 34px;
}
.gz-front .gz-lead {
  padding-right: 34px;
  border-right: 1px solid var(--ink-black);
}
.gz-front .gz-lead .gz-cols {
  columns: 2;
  margin-top: 22px;
}
.gz-front .gz-cols p {
  text-align: left;
}
.gz-continued {
  margin: 4px 0 0;
  font-family: var(--gz-text);
  font-style: italic;
  font-size: 16px;
}
.gz-continued a {
  font-weight: 700;
  font-style: normal;
}
.gz-rail h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 3px double var(--ink-black);
  font-family: var(--gz-head);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gz-rail .gz-index {
  margin-bottom: 26px;
}
.gz-rail .gz-index p {
  font-family: var(--gz-text);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
/* Past editions list (filled in by the server) */
.gazette .newsletter-year {
  margin: 0 0 12px;
}
.gazette .newsletter-year h3 {
  margin: 0;
  padding: 4px 0;
  border: 0;
  font-family: var(--gz-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-text);
}
.gazette .newsletter-year ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink-black);
}
.gazette .newsletter-year li {
  border-bottom: 1px dotted var(--hairline);
}
.gazette .newsletter-year a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--ink-black);
}
.gazette .newsletter-year a > span:first-child {
  font-family: var(--gz-head);
  font-weight: 700;
  font-size: 19px;
}
.gazette .newsletter-year a > span:last-child {
  font-family: var(--gz-text);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-text);
}
.gazette .newsletter-year a:hover > span:first-child {
  text-decoration: underline;
}

/* Subscription coupon */
.gz-coupon {
  border: 2px dashed var(--ink-black);
  padding: 18px;
  background: #f8f3e6;
}
.gz-coupon .gz-box-title {
  margin: 0 0 6px;
  font-family: var(--gz-head);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.gz-coupon > p {
  font-family: var(--gz-text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  text-align: center;
}
.site main.gazette .gz-coupon .newsletter-signup {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.gazette .gz-coupon .newsletter-signup label {
  font-family: var(--gz-text);
  font-weight: 700;
}
.gazette .gz-coupon .newsletter-signup input[type='email'] {
  border: 1px solid var(--ink-black);
  border-radius: 0;
  background: #fff;
}
.gazette .gz-coupon .newsletter-signup .button {
  width: 100%;
  border-radius: 0;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.gazette .gz-coupon .newsletter-signup .button:hover {
  background: var(--navy-2);
}
.gazette .gz-coupon .newsletter-privacy {
  font-size: 12px;
}
.gz-fineprint {
  margin: 30px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--ink-black);
  font-family: var(--gz-text);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ----- Issue page (one newsletter as an article) ----- */
.gazette header.gz-article-head {
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.gz-article-head .gz-banner {
  font-size: clamp(36px, 5.4vw, 64px);
}
.gz-article-head .gz-byline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.gz-article .gz-cols {
  columns: 2;
  margin-top: 26px;
}
.gz-article .gz-cols > ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.gz-article .gz-cols > ul li p {
  margin: 0 0 4px;
  text-align: left;
}
.gz-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 3px double var(--ink-black);
}
.gazette .gz-actions .button {
  border-radius: 0;
}
.gazette .gz-actions .button.outline {
  border-color: var(--ink-black);
  color: var(--ink-black);
}
.gazette .gz-actions .button.outline:hover {
  background: var(--ink-black);
  color: var(--newsprint);
}
.gz-back {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--gz-text);
  font-size: 15px;
}

/* ----- Phones and tablets ----- */
@media (max-width: 900px) {
  .site main.gazette {
    padding: 0;
    background: var(--newsprint) !important;
  }
  .gazette .gz-sheet {
    padding: 22px 18px 36px;
    box-shadow: none;
  }
  .gz-nameplate {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gz-ear {
    display: none;
  }
  .gz-folio {
    justify-content: center;
    text-align: center;
    font-size: 11px;
  }
  .gz-front {
    grid-template-columns: 1fr;
  }
  .gz-front .gz-lead {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 3px double var(--ink-black);
  }
  .gz-front .gz-lead .gz-cols,
  .gz-article .gz-cols {
    columns: 1;
  }
  .gz-cols {
    font-size: 18px;
  }
  .gz-cols p {
    text-align: left;
  }
  .gz-deck {
    font-size: 19px;
  }
}

/* Videos in an edition (a "video" block from the Herald desk): a 16:9 YouTube or Vimeo player across the
   full width of the columns, with the caption underneath. */
.gz-cols .gz-video {
  margin: 6px 0 20px;
  column-span: all;
  break-inside: avoid;
}
.gz-cols .gz-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--ink-black);
  background: #000;
}
.gz-cols .gz-video figcaption {
  margin-top: 6px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft, #3a372f);
}
