/* The Weekly Update: archive (/newsletter), issue pages (/newsletter/<slug>),
   and the latest-issue card on Free Resources. */

.nl-archive,
.nl-issue {
  padding-top: 9rem;
}

.nl-archive .centered-content,
.nl-issue .centered-content {
  grid-row-gap: 0;
  row-gap: 0;
}

.nl-crumbs {
  margin-bottom: 1.25rem;
  color: #6b6560;
  font-size: .875rem;
}

.nl-crumbs a {
  color: var(--colours--main-green);
  font-weight: 600;
  text-decoration: none;
}

.nl-crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Archive ---------- */
.nl-archive .nl-crumbs {
  width: 100%;
  max-width: 1100px;
}

.nl-archive-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.nl-archive-head .heading-4 {
  margin: .25rem 0 .75rem;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  line-height: 1.15;
}

.nl-archive-head .header-p {
  margin: 0 auto;
}

.nl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nl-cards-single {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.nl-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(31, 60, 63, .08);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}

.nl-card a:hover {
  box-shadow: 0 12px 28px -12px rgba(31, 60, 63, .3);
  transform: translateY(-2px);
}

.nl-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 658;
  object-fit: cover;
}

.nl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.4rem 1.4rem;
}

.nl-card time {
  color: var(--la-orange-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nl-card-title {
  color: var(--colours--dark-teal);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.nl-card-teaser {
  color: #4a4a4a;
  font-size: .9375rem;
  line-height: 1.55;
}

.nl-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}

.nl-card-topics li {
  padding: .15rem .6rem;
  border-radius: 999px;
  background-color: #e8f0dc;
  color: var(--colours--dark-teal);
  font-size: .75rem;
  font-weight: 600;
}

.nl-card-link {
  margin-top: auto;
  padding-top: .5rem;
  color: var(--colours--main-green);
  font-weight: 700;
}

/* Latest issue on the hub: image beside the text on laptops. */
@media screen and (min-width: 768px) {
  .nl-cards-single .nl-card a {
    flex-direction: row;
  }

  .nl-cards-single .nl-card img {
    width: 48%;
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.res-newsletter .centered-content {
  grid-row-gap: 0;
  row-gap: 0;
}

.res-newsletter-all {
  margin: 1.25rem 0 0;
  text-align: center;
}

.res-newsletter-all a {
  color: var(--colours--main-green);
  font-weight: 700;
  text-decoration: none;
}

/* Subscribe nudge (jumps to the signup form at the bottom of the page). */
.nl-subscribe {
  width: 100%;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 1.75rem;
  border: 1px dashed #e5b98a;
  border-radius: 1.25rem;
  background-color: #fff;
  text-align: center;
}

.nl-subscribe p {
  max-width: 620px;
  margin: 0 auto 1rem;
}

.nl-subscribe .nl-subscribe-title {
  margin-bottom: .4rem;
  color: var(--colours--dark-teal);
  font-size: 1.25rem;
  font-weight: 700;
}

#subscribe {
  scroll-margin-top: 5rem;
}

/* ---------- Issue page ---------- */
.nl-article {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.nl-article .home-eyebrow {
  margin: 0 0 .35rem;
}

.nl-title {
  margin: 0;
  color: var(--colours--dark-teal);
  font-size: clamp(2rem, 3vw, 2.625rem);
  line-height: 1.12;
}

.nl-date {
  margin: .5rem 0 1.5rem;
  color: #6b6560;
  font-size: .9375rem;
}

.nl-header {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 1rem;
}

.nl-body {
  color: #333;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.nl-body::after {
  content: "";
  display: table;
  clear: both;
}

.nl-body .nl-intro {
  font-weight: 600;
}

.nl-body h2 {
  clear: both;
  margin: 2.25rem 0 .75rem;
  color: var(--colours--dark-teal);
  font-size: 1.5rem;
  line-height: 1.25;
}

.nl-body p {
  margin: 0 0 1rem;
}

.nl-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.nl-body li {
  margin-bottom: .45rem;
}

.nl-body .nl-events {
  padding-left: 0;
  list-style: none;
}

.nl-body a {
  color: var(--colours--main-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.nl-figure {
  margin: 0 0 1.25rem;
}

.nl-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem;
}

@media screen and (min-width: 768px) {
  .nl-figure-right {
    float: right;
    width: 44%;
    margin: .35rem 0 1rem 1.5rem;
  }
}

.nl-body .nl-allowable {
  clear: both;
  margin-top: 2.25rem;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  background-color: #f6efe4;
  font-size: .9375rem;
}

.nl-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e2e2;
}

.nl-pager a,
.nl-back a {
  color: var(--colours--main-green);
  font-weight: 700;
  text-decoration: none;
}

.nl-back {
  margin: 1.5rem 0 0;
}

.nl-article .nl-subscribe {
  margin-top: 2rem;
}

@media screen and (max-width: 767px) {
  .nl-archive,
  .nl-issue {
    padding-top: 7rem;
  }

  .nl-cards {
    grid-template-columns: 1fr;
  }

  .nl-body {
    font-size: 1rem;
  }
}

/* Keep the whole header graphic visible (it has text in it). */
@media screen and (min-width: 768px) {
  .nl-cards-single .nl-card a {
    align-items: center;
  }

  .nl-cards-single .nl-card img {
    align-self: stretch;
    width: 50%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    background-color: #2b3335;
  }
}

/* Row of event photos inside an issue. */
.nl-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: 0 0 1.25rem;
}

.nl-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: .75rem;
}

.nl-figure:not(.nl-figure-right) img {
  margin-bottom: .25rem;
}

@media screen and (max-width: 479px) {
  .nl-gallery {
    gap: .4rem;
  }
}

/* ---------- Past issues, grouped by month ---------- */
.nl-past {
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
}

.nl-past-title {
  margin: 0 0 1rem;
  color: var(--colours--dark-teal);
  font-size: 1.5rem;
}

.nl-month {
  margin-bottom: 1.75rem;
}

.nl-month h3 {
  margin: 0 0 .5rem;
  color: var(--la-orange-text);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nl-rows {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(31, 60, 63, .08);
  list-style: none;
}

.nl-rows li + li {
  border-top: 1px solid #eee;
}

.nl-rows a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s;
}

.nl-rows a:hover {
  background-color: #fbf7f1;
}

.nl-rows time {
  color: #6b6560;
  font-size: .875rem;
  font-weight: 600;
}

.nl-row-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.nl-row-title {
  color: var(--colours--dark-teal);
  font-weight: 700;
}

.nl-row-teaser {
  color: #4a4a4a;
  font-size: .875rem;
  line-height: 1.45;
}

.nl-row-arrow {
  color: var(--colours--main-green);
  font-weight: 700;
}

@media screen and (max-width: 479px) {
  .nl-rows a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .75rem;
  }

  .nl-rows time {
    grid-column: 1 / -1;
  }
}

/* Tall flyers inside an issue: keep them a sensible size. */
.nl-figure-narrow {
  max-width: 420px;
}

/* Breathing room between the headline and the header image. */
.nl-title {
  margin-bottom: 1.75rem;
}

/* Latest-issue block: same sizing on every page it appears (home doesn't load pro.css). */
.res-newsletter.section-content {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.res-newsletter .section-head-v {
  grid-row-gap: 1rem;
  row-gap: 1rem;
  margin-bottom: 2rem;
}

.res-newsletter .heading-4 {
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.res-newsletter .header-p {
  width: auto;
  max-width: 760px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .res-newsletter .heading-4 {
    font-size: 1.75rem;
  }
}
