/* Best Routes — route-specific chapter language layered onto the Field Journal. */
body.page-article.ej-route-journal {
  --route-line: #bfd0b8;
  --route-wash: rgba(218, 241, 222, .28);
}

body.page-article.ej-route-journal .article-hero-copy {
  max-width: 750px;
}

body.page-article.ej-route-journal .article-hero h1 {
  max-width: 735px;
}

body.page-article.ej-route-journal .article-hero-visual img {
  object-position: 67% 72%;
}

/* The article has eleven reading chapters; FAQ closes the journal as chapter twelve. */
body.page-article.ej-route-journal .article-faq-block > h2::before {
  content: "12";
}

/* Route comparison reads as an index rather than a boxed data component. */
body.page-article.ej-route-journal .route-summary-table tbody th {
  width: 31%;
  background: #f7f3e8;
}

body.page-article.ej-route-journal .route-summary-table tbody td:last-child {
  color: var(--journal-jade);
}

body.page-article.ej-route-journal .route-summary-table tbody tr:is(:hover, :focus-within) > * {
  background: rgba(218, 241, 222, .36);
}

/* Each itinerary becomes an open route dossier, not another rounded card. */
body.page-article.ej-route-journal .route-card {
  position: relative;
  margin: 33px 0 54px;
  padding: 31px 0 0;
  border: 0;
  border-top: 2px solid var(--journal-jade);
  border-radius: 0;
  background: transparent;
}

body.page-article.ej-route-journal .route-card::before {
  content: "Route dossier";
  position: absolute;
  top: -9px;
  left: 0;
  padding-right: 13px;
  background: var(--journal-paper);
  color: var(--journal-gold);
  font: 600 9px/1.7 var(--font-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.page-article.ej-route-journal .article-body .route-card h3 {
  max-width: 720px;
  color: var(--journal-ink);
  font: 500 clamp(25px, 2.7vw, 33px)/1.35 var(--font-serif);
  letter-spacing: -.025em;
}

body.page-article.ej-route-journal .route-card > p {
  max-width: 710px;
  margin: 24px 0 27px;
  color: #43564a;
  font-size: 15px;
  line-height: 1.9;
}

body.page-article.ej-route-journal .route-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
  border-block: 1px solid var(--route-line);
}

body.page-article.ej-route-journal .route-meta > span,
body.page-article.ej-route-journal .route-meta > span:first-child {
  display: flex;
  min-height: 62px;
  padding: 13px 16px;
  border-right: 1px solid var(--route-line);
  color: #43564a;
  font: 600 10px/1.55 var(--font-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.page-article.ej-route-journal .route-meta > span:first-child {
  padding-left: 0;
  color: var(--journal-ink);
}

body.page-article.ej-route-journal .route-meta > span:last-child {
  border-right: 0;
}

body.page-article.ej-route-journal .route-meta i {
  color: var(--journal-jade);
  font-size: 15px;
}

body.page-article.ej-route-journal .route-itinerary {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--route-line);
  background: transparent;
}

body.page-article.ej-route-journal .itinerary-toggle {
  min-height: 58px;
  padding: 16px 3px 16px 0;
  color: var(--journal-ink);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.page-article.ej-route-journal .itinerary-toggle > i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--route-line);
  border-radius: 50%;
  color: var(--journal-jade);
  transition: transform .25s ease, background .25s ease;
}

body.page-article.ej-route-journal .route-itinerary[open] .itinerary-toggle > i {
  background: var(--journal-mint);
}

body.page-article.ej-route-journal .route-itinerary .route-days {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  padding: 7px 0 17px;
  counter-reset: route-day;
}

body.page-article.ej-route-journal .route-itinerary .route-days li {
  grid-template-columns: 61px minmax(0, 1fr);
  gap: 13px;
  min-height: 92px;
  padding: 18px 0;
  border-top: 1px solid #dce5d8;
  color: #43564a;
}

body.page-article.ej-route-journal .route-days li strong {
  color: var(--journal-gold);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Driving notes stay precise but visually belong to the same open journal. */
body.page-article.ej-route-journal .drive-comparison caption {
  padding: 18px 0;
  border-bottom: 1px solid var(--route-line);
  background: transparent;
  color: var(--journal-ink);
  font: 500 20px/1.35 var(--font-serif);
}

body.page-article.ej-route-journal .drive-source-note {
  margin: 24px 0 38px;
  padding: 16px 0;
  border-color: var(--route-line);
}

body.page-article.ej-route-journal .drive-source-note summary {
  color: var(--journal-jade);
}

@media (hover: hover) {
  body.page-article.ej-route-journal .route-card {
    transition: border-color .24s ease;
  }

  body.page-article.ej-route-journal .route-card:hover {
    border-top-color: #8eb69b;
  }

  body.page-article.ej-route-journal .itinerary-toggle:hover {
    color: var(--journal-jade);
  }
}

@media (max-width: 760px) {
  body.page-article.ej-route-journal .route-meta {
    grid-template-columns: 1fr;
  }

  body.page-article.ej-route-journal .route-meta > span,
  body.page-article.ej-route-journal .route-meta > span:first-child {
    min-height: 48px;
    padding: 11px 0;
    border-right: 0;
    border-bottom: 1px solid #dce5d8;
  }

  body.page-article.ej-route-journal .route-meta > span:last-child {
    border-bottom: 0;
  }

  body.page-article.ej-route-journal .route-itinerary .route-days {
    grid-template-columns: 1fr;
  }

  body.page-article.ej-route-journal .route-itinerary .route-days li {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  body.page-article.ej-route-journal .route-card {
    margin-bottom: 45px;
    padding: 28px 0 0;
  }

  body.page-article.ej-route-journal .article-body .route-card h3 {
    font-size: 25px;
  }

  body.page-article.ej-route-journal .route-card > p {
    font-size: 14px;
  }

  body.page-article.ej-route-journal .route-itinerary .route-days li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 11px;
  }
}

@media print {
  body.page-article.ej-route-journal .route-card::before {
    background: #fff;
  }
}
