/* Second Edition layout additions and phone-only reading order. */

.lower-grid {
  border-top: 3px double var(--foreground);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 1.7rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
}

.feature-story {
  min-width: 0;
}

.feature-story h2 {
  font-size: clamp(2.25rem, 3.3vw, 3.65rem);
  letter-spacing: -.025em;
  line-height: 1.02;
  margin-bottom: .8rem;
}

.feature-story .deck {
  font-size: 1.1rem;
}

.brief-stack {
  border-left: 1px solid var(--border);
  min-width: 0;
  padding-left: 1.7rem;
}

.side-story {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.side-story:first-child {
  border-top: 0;
  padding-top: 0;
}

.side-story h3 {
  font-size: 1.65rem;
  line-height: 1.13;
  margin-bottom: .7rem;
}

.side-story .deck {
  font-size: 1rem;
}

.side-story .byline {
  margin-bottom: .9rem;
}

.side-story .article-body {
  font-size: 1rem;
  line-height: 1.55;
}

.source a {
  text-decoration-thickness: 1px;
  text-underline-offset: .13em;
}

.article-illustration {
  break-inside: avoid;
  line-height: 0;
  margin: 1rem 0 0;
}

.article-illustration img {
  display: block;
  height: auto;
  width: 100%;
}

@media (width <= 980px) and (width > 740px) {
  .lower-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.4rem;
  }

  .brief-stack {
    padding-left: 1.4rem;
  }
}

@media (width <= 740px) {
  .edition-content {
    display: flex;
    flex-direction: column;
  }

  .lead-grid,
  .lower-grid,
  .brief-stack {
    display: contents;
  }

  #hidden-beach {
    border-top: 0;
    order: 1;
    padding-top: 0;
  }

  #marco-down-to-earth {
    order: 2;
  }

  #license-plate-readers {
    border-top: 3px double var(--foreground);
    order: 3;
    padding-top: 1.5rem;
  }

  #cars-on-5th {
    order: 4;
  }

  #rsw-flint {
    border-top: 1px solid var(--border);
    order: 5;
    padding-top: 1.5rem;
  }

  #weather-jinx {
    order: 6;
  }

  .edition-end {
    order: 7;
  }

  .feature-story,
  .side-story {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
  }

  .feature-story h2 {
    font-size: 2.1rem;
  }

  .feature-story .deck,
  .feature-story .article-body,
  .side-story .deck,
  .side-story .article-body {
    font-size: 1.125rem;
    line-height: 1.65;
  }

  .side-story h3 {
    font-size: 1.8rem;
  }

  .archive-note {
    order: 0;
  }
}

@media print {
  .lower-grid {
    display: block;
  }

  .brief-stack {
    border-left: 0;
    padding-left: 0;
  }

  .feature-story,
  .side-story {
    border-top: 1px solid #999;
    break-inside: avoid;
    padding: 1rem 0;
  }
}
