/* Shared presentation for the Transcontinental X308 essay series
   and the series card on the X308 Garage page. */

.essay-vessel {
  max-width: 1005px;
  margin: 60px auto;
  padding: 72px 80px 78px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 30px 60px rgba(0,0,0,0.22);
  box-sizing: border-box;
  color: #1a1a1a;
}

.essay-series-kicker {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #2e7d32;
}

.essay-title {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 800;
  color: #111;
}

.essay-part-title {
  max-width: 760px;
  margin: 14px auto 0;
  text-align: center;
  font-family: Georgia, Times, serif;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
  color: #444;
}

.essay-rule {
  width: 44px;
  height: 3px;
  margin: 30px auto 48px;
  background: #111;
}

.essay-body {
  font-family: Georgia, Times, serif;
  font-size: 18px;
  line-height: 1.9;
  color: #1a1a1a;
}

.essay-body p {
  margin: 0 0 1.65em;
}

.essay-body > p:first-of-type::first-letter {
  float: left;
  padding: 5px 11px 0 2px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 72px;
  line-height: 52px;
  font-weight: 800;
  color: #111;
}

.essay-photo {
  margin: 42px 0 48px;
}

.essay-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.essay-photo--portrait {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.essay-photo--diagnostic {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.essay-photo figcaption,
.essay-photo-grid figcaption {
  margin-top: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .2px;
  color: #666;
  text-align: center;
}

.essay-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 42px 0 50px;
  align-items: start;
}

.essay-photo-grid figure {
  margin: 0;
}

.essay-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

.essay-author-note {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #ddd;
  font-family: Georgia, Times, serif;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: #555;
}

.essay-series-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid #e3e3e3;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.essay-series-nav a,
.essay-series-nav span {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid #d2d2d2;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.essay-series-nav a {
  color: #1b5e20;
  background: #fff;
}

.essay-series-nav .is-current {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.essay-series-nav .is-pending {
  color: #999;
  background: #f6f6f6;
}

/* X308 hub series card */
.x308-series-hub {
  margin-top: 58px;
  padding-top: 44px;
  border-top: 1px solid #e4e4e4;
}

.x308-series-hub__kicker {
  margin: 0 0 8px;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #2e7d32;
}

.x308-series-hub h2 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.2;
  color: #111;
}

.x308-series-hub__intro {
  max-width: 690px;
  margin: 12px auto 30px;
  text-align: center;
  font-family: Georgia, Times, serif;
  font-size: 17px;
  line-height: 1.65;
  color: #555;
}

.x308-series-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  border: 1px solid #dedede;
  background: rgba(255,255,255,0.66);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.x308-series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

.x308-series-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.x308-series-card__part {
  margin: 0 0 7px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #2e7d32;
}

.x308-series-card h3 {
  margin: 0 0 8px;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  color: #111;
}

.x308-series-card p {
  margin: 0;
  font-family: Georgia, Times, serif;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.x308-series-card__cta {
  display: inline-block;
  margin-top: 13px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #1b5e20;
}

@media (max-width: 768px) {
  .essay-vessel {
    width: 114% !important;
    margin-left: -7% !important;
    margin-top: 60px !important;
    margin-bottom: 80px !important;
    padding: 42px 25px 54px !important;
    box-shadow: none;
  }

  .essay-title {
    font-size: 31px;
    line-height: 1.12;
  }

  .essay-part-title {
    font-size: 19px;
  }

  .essay-body {
    font-size: 17px;
    line-height: 1.82;
  }

  .essay-body > p:first-of-type::first-letter {
    font-size: 58px;
    line-height: 45px;
  }

  .essay-photo,
  .essay-photo--portrait,
  .essay-photo--diagnostic {
    max-width: none;
    margin: 34px 0 38px;
  }

  .essay-photo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 34px 0 40px;
  }

  .x308-series-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .x308-series-card img {
    height: auto;
  }
}


/* ===== Revised X308 Garage architecture ===== */
body.x308-journey-page {
  background-image: none !important;
  background-color: #0A192F !important;
}

.x308-garage-home {
  max-width: 1005px;
  margin: 60px auto;
  padding: 70px 80px 76px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 30px 60px rgba(0,0,0,0.22);
  box-sizing: border-box;
  color: #1a1a1a;
}

.x308-garage-title {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #111;
}

.x308-garage-rule { width:44px; height:3px; background:#111; margin:30px auto 46px; }
.x308-section { padding: 0 0 42px; }
.x308-section + .x308-section { border-top:1px solid #dedede; padding-top:44px; }
.x308-section-kicker {
  margin:0 0 8px; text-align:center; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:12px; font-weight:700; letter-spacing:2.4px; text-transform:uppercase; color:#2e7d32;
}
.x308-section h2 {
  margin:0; padding:0; text-align:center; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:30px; line-height:1.22; color:#111;
}
.x308-section-subtitle {
  max-width:720px; margin:10px auto 24px; text-align:center; font-family:Georgia,Times,serif;
  font-size:18px; line-height:1.6; font-style:italic; color:#555;
}
.x308-entry-card {
  display:grid; grid-template-columns:260px 1fr; gap:28px; align-items:center; margin-top:26px; padding:20px;
  border:1px solid #dedede; background:rgba(255,255,255,.65); color:inherit; text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease;
}
.x308-entry-card:hover { transform:translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,.10); }
.x308-entry-card img { display:block; width:100%; height:175px; object-fit:cover; }
.x308-entry-card h3 { margin:0 0 8px; padding:0; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:22px; line-height:1.25; color:#111; }
.x308-entry-card p { margin:0; font-family:Georgia,Times,serif; font-size:15px; line-height:1.65; color:#555; }
.x308-entry-part,.x308-entry-cta { font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#2e7d32; }
.x308-entry-part { display:block; margin-bottom:7px; }
.x308-entry-cta { display:inline-block; margin-top:13px; }

.journey-tabs {
  display:flex; justify-content:center; gap:0; margin:24px auto 10px;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
}
.journey-tabs a,.journey-tabs span {
  display:inline-block; min-width:86px; padding:11px 17px; border:1px solid #cfcfcf; border-right:0;
  text-align:center; text-decoration:none; font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
}
.journey-tabs > :last-child { border-right:1px solid #cfcfcf; }
.journey-tabs a { color:#1b5e20; background:#fff; }
.journey-tabs a:hover { background:#f2f7f2; }
.journey-tabs .is-current { color:#fff; background:#2e7d32; border-color:#2e7d32; }
.journey-tabs .is-pending { color:#8c8c8c; background:#f4f4f4; }

.essay-car-identity {
  margin:0 0 10px; text-align:center; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:14px; font-weight:800; letter-spacing:2.1px; text-transform:uppercase; color:#111;
}
.essay-hero { margin:34px -18px 48px; }
.essay-hero img { display:block; width:100%; height:auto; box-shadow:0 14px 30px rgba(0,0,0,.16); }
.essay-hero figcaption { margin-top:9px; text-align:center; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:12px; line-height:1.45; color:#666; }
.essay-back-link,.analog-page-nav { margin:34px 0 0; text-align:center; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; }
.essay-back-link a,.analog-page-nav a { color:#1b5e20; text-decoration:none; font-size:11px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; }

@media (max-width:768px) {
  .x308-garage-home { width:114%!important; margin-left:-7%!important; margin-top:60px!important; margin-bottom:80px!important; padding:42px 25px 54px!important; box-shadow:none; }
  .x308-garage-title { font-size:29px; line-height:1.13; }
  .x308-section h2 { font-size:25px; }
  .x308-entry-card { grid-template-columns:1fr; gap:18px; }
  .x308-entry-card img { height:auto; }
  .journey-tabs { justify-content:flex-start; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; }
  .journey-tabs a,.journey-tabs span { flex:0 0 auto; }
  .essay-car-identity { font-size:12px; line-height:1.5; }
  .essay-hero { margin:30px 0 38px; }
}
