/* Edition 0.2.8: an editorial rhythm instead of repeating a card/hero template.
   The article copy and every page-specific illustration remain intact. */

/* Let the photography sit on the page like a printed photograph, with its
   caption beneath it. A floating label and rounded corner suggested a UI kit. */
.fe-home-photo-edition .fe-hero-photo { max-width: 475px; }
.fe-home-photo-edition .fe-hero-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}
.fe-home-photo-edition .fe-hero-photo figcaption {
  position: static;
  max-width: none;
  margin-top: 13px;
  padding: 13px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--fe-line);
  box-shadow: none;
}
.fe-home-photo-edition .fe-hero-photo figcaption .fe-eyebrow { margin-bottom: 5px; }
.fe-home-photo-edition .fe-hero-photo figcaption strong { font-size: 22px; margin-bottom: 2px; }
.fe-band { background: var(--fe-paper); }
.fe-band p { font-size: 22px; }

/* A contents page has a leading story and an open index, not three equal tiles. */
.fe-home-photo-edition .fe-topic-grid {
  grid-template-columns: 1.1fr .9fr;
  border: 0;
  column-gap: 52px;
}
.fe-home-photo-edition .fe-topic-card {
  border: 0;
  border-top: 1px solid var(--fe-line);
  padding: 30px 0 34px;
  transition: none;
}
.fe-home-photo-edition .fe-topic-card:hover { background: transparent; }
.fe-home-photo-edition .fe-topic-card:nth-child(2) {
  border-left: 1px solid var(--fe-line);
  padding-left: 52px;
}
.fe-home-photo-edition .fe-topic-card:nth-child(3) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .42fr .9fr 1fr;
  column-gap: 36px;
  align-items: start;
  border-bottom: 1px solid var(--fe-line);
}
.fe-home-photo-edition .fe-topic-card:nth-child(3) .fe-eyebrow { grid-column: 1; }
.fe-home-photo-edition .fe-topic-card:nth-child(3) h3,
.fe-home-photo-edition .fe-topic-card:nth-child(3) p:not(.fe-eyebrow) { grid-column: 2; }
.fe-home-photo-edition .fe-topic-card:nth-child(3) h3 { grid-row: 1; }
.fe-home-photo-edition .fe-topic-card:nth-child(3) p:not(.fe-eyebrow) { grid-row: 2; }
.fe-home-photo-edition .fe-topic-card:nth-child(3) ul { grid-column: 3; grid-row: 1 / span 3; }
.fe-home-photo-edition .fe-topic-card h3 { max-width: 500px; }
.fe-home-photo-edition .fe-topic-card ul a:hover { padding-left: 5px; }
.fe-accompaniment-teaser {
  background: var(--fe-paper);
  border-bottom: 1px solid var(--fe-line);
}
.fe-accompaniment-teaser-grid figure { max-width: 570px; justify-self: end; }
.fe-accompaniment-teaser-grid img { border-radius: 0; }
.fe-image-interlude { background: #f7f3ec; }

/* The cover alternates photo and text by topic. A narrower reading measure
   gives long clinical articles the cadence of an article, not a landing page. */
.fe-guide-hero {
  background: var(--fe-paper);
  padding: 38px 0 54px;
}
.fe-guide-hero > .fe-container {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  column-gap: clamp(42px, 6vw, 100px);
  align-items: center;
}
.fe-guide-hero .fe-breadcrumb { grid-column: 1 / -1; margin-bottom: 38px; }
.fe-guide-hero .fe-guide-heading { display: block; grid-column: 1; grid-row: 2; }
.fe-guide-hero .fe-guide-heading h1 { max-width: 700px; font-size: clamp(42px, 4.8vw, 70px); }
.fe-guide-hero .fe-guide-intro { max-width: 610px; margin-top: 27px; font-size: 17px; line-height: 1.65; }
.fe-guide-hero .fe-date { margin-top: 30px !important; }
.fe-guide-hero .fe-guide-photo { grid-column: 2; grid-row: 2; margin: 0; }
.fe-guide-hero .fe-guide-photo img {
  height: clamp(315px, 33vw, 455px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.fe-guide-hero .fe-guide-photo figcaption {
  border-top: 1px solid var(--fe-line);
  padding-top: 9px;
  margin-top: 12px;
}
.fe-guide-hero--photo-left .fe-guide-heading { grid-column: 2; }
.fe-guide-hero--photo-left .fe-guide-photo { grid-column: 1; }
.fe-reading-layout { grid-template-columns: 235px minmax(0, 1fr); gap: clamp(45px, 6vw, 90px); }
.fe-article { max-width: 790px; }
.fe-article > section[id] { padding: 44px 0; }
.fe-article > section[id] p { max-width: 70ch; line-height: 1.8; }
.fe-story-photo img { border-radius: 0; }
.fe-situation-grid { gap: 26px 38px; }
.fe-situation-card { border: 0; border-top: 1px solid var(--fe-line); border-radius: 0; padding: 21px 0 0; background: transparent; }
.fe-situation-card h3 { font-size: 23px; }

@media (max-width: 900px) {
  .fe-home-photo-edition .fe-topic-grid { grid-template-columns: 1fr; column-gap: 0; }
  .fe-home-photo-edition .fe-topic-card:nth-child(2) { border-left: 0; padding-left: 0; }
  .fe-home-photo-edition .fe-topic-card:nth-child(3) { grid-column: 1; display: block; }
  .fe-home-photo-edition .fe-topic-card { display: block; }
  .fe-home-photo-edition .fe-topic-card .fe-eyebrow { margin-bottom: 20px; }
  .fe-home-photo-edition .fe-topic-card p:not(.fe-eyebrow) { margin: 17px 0 22px; }
  .fe-guide-hero > .fe-container { grid-template-columns: 1fr; }
  .fe-guide-hero .fe-breadcrumb,
  .fe-guide-hero .fe-guide-heading,
  .fe-guide-hero .fe-guide-photo,
  .fe-guide-hero--photo-left .fe-guide-heading,
  .fe-guide-hero--photo-left .fe-guide-photo { grid-column: 1; grid-row: auto; }
  .fe-guide-hero .fe-guide-photo { margin-top: 30px; }
  .fe-guide-hero .fe-guide-photo img { height: auto; max-height: 460px; aspect-ratio: 3 / 2; }
  .fe-reading-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fe-home-photo-edition .fe-hero-photo { padding: 0; }
  .fe-home-photo-edition .fe-hero-photo img { border-radius: 0; }
  .fe-home-photo-edition .fe-topic-card { padding: 26px 0 31px; }
  .fe-home-photo-edition .fe-topic-card:nth-child(3) { padding-bottom: 31px; }
  .fe-accompaniment-teaser-grid figure { justify-self: stretch; }
  .fe-guide-hero { padding: 25px 0 34px; }
  .fe-guide-hero .fe-breadcrumb { margin-bottom: 24px; }
  .fe-guide-hero .fe-guide-heading h1 { font-size: clamp(38px, 10vw, 48px); }
  .fe-guide-hero .fe-guide-intro { margin-top: 20px; font-size: 16px; }
  .fe-guide-hero .fe-guide-photo { margin-top: 25px; }
  .fe-guide-hero .fe-guide-photo img { max-height: none; aspect-ratio: 4 / 3; }
  .fe-article > section[id] { padding: 30px 0; }
  .fe-situation-grid { gap: 23px; }
}
@media print {
  .fe-guide-hero > .fe-container,
  .fe-home-photo-edition .fe-topic-grid,
  .fe-home-photo-edition .fe-topic-card:nth-child(3) { display: block; }
}
