/* Shared detail pages for the five specialty transportation operations. */
.transport-detail-page {
  --detail-muted: #475569;
  --detail-border: #dce5ef;
  color: var(--text-dark);
}

.transport-detail-page a:focus-visible,
.transport-detail-page summary:focus-visible {
  outline: 3px solid var(--motive-orange);
  outline-offset: 5px;
}

.transport-detail-page .detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding-block: 20px;
  list-style: none;
  font-size: .875rem;
  line-height: 1.6;
}

.detail-breadcrumbs li + li::before {
  content: '/';
  margin-right: 12px;
  color: #94a3b8;
}

.detail-breadcrumbs a {
  color: var(--motive-blue);
  text-underline-offset: 4px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding-block: 72px;
  background: var(--motive-blue);
  color: #fff;
}

.detail-hero-image {
  position: absolute;
  inset: calc(-1 * var(--hero-bleed, 0px));
  background-image: var(--hero-img);
  background-size: cover;
  background-position: var(--hero-position, center);
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Match the reference hero's broad 100-degree fade; avoid pixel-sized bands. */
  background: linear-gradient(100deg, rgba(190, 51, 18, 1) 0%, rgba(200, 55, 18, .7) 25%, rgba(217, 63, 18, .3) 55%, rgba(217, 63, 18, 0) 100%);
  pointer-events: none;
}

.detail-hero .container {
  position: relative;
  z-index: 1;
}

.detail-hero [data-source-copy] {
  max-width: 840px;
}

.detail-hero h1 {
  max-width: 800px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .85), 0 4px 18px rgba(0, 0, 0, .6);
}

.detail-hero p {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: 1.1875rem;
  line-height: 1.75;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 2px 8px rgba(0, 0, 0, .85);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(250px, 320px);
  justify-content: space-between;
  align-items: start;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.detail-article {
  min-width: 0;
}

.detail-intro {
  padding-bottom: 40px;
}

.detail-article p {
  max-width: 75ch;
  margin-bottom: 18px;
  color: var(--detail-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.detail-intro > p:first-child {
  color: var(--motive-blue);
  font-size: 1.375rem;
  line-height: 1.6;
  font-weight: 600;
}

.detail-section {
  padding-block: 40px;
  border-top: 1px solid var(--detail-border);
  scroll-margin-top: 132px;
}

.detail-section h2 {
  margin-bottom: 24px;
  color: var(--motive-blue);
  font-size: clamp(1.4rem, 2vw, 1.875rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.detail-section h3 {
  margin-block: 32px 14px;
  color: var(--motive-blue);
  font-size: 1.25rem;
  line-height: 1.4;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 10px 24px;
  margin: 24px 0;
  list-style: none;
  background: #f8fafc;
  border-left: 3px solid var(--motive-orange);
  border-radius: 0 12px 12px 0;
}

.detail-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--detail-border);
  color: var(--detail-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.detail-list li::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--motive-orange);
  border-radius: 50%;
}

.detail-list li:last-child {
  border-bottom: 0;
}

.detail-closing {
  padding: 32px;
  margin-top: 24px;
  border: 0;
  border-radius: 20px;
  background: var(--motive-blue);
}

.detail-closing h2,
.detail-closing p {
  color: #fff;
}

.detail-sidebar {
  position: sticky;
  top: 128px;
  border: 1px solid var(--detail-border);
  border-top: 4px solid var(--motive-orange);
  border-radius: 16px;
  padding: 24px;
}

.detail-sidebar > p {
  color: var(--motive-blue);
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-sidebar nav {
  max-height: calc(100dvh - 330px);
  min-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}

.detail-toc {
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-toc a {
  display: block;
  padding: 10px 8px;
  color: var(--detail-muted);
  border-bottom: 1px solid #eef2f7;
  font-size: .875rem;
  line-height: 1.6;
  text-decoration: none;
}

.detail-toc a:hover {
  background: var(--soft-blue);
  color: var(--motive-blue);
}

.detail-mobile-toc {
  display: none;
}

.detail-faq-item {
  margin-bottom: 14px;
  border: 1px solid var(--detail-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.detail-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 20px;
  color: var(--motive-blue);
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.detail-faq-item summary::-webkit-details-marker {
  display: none;
}

.detail-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  flex-shrink: 0;
}

.detail-faq-item[open] summary {
  background: var(--soft-blue);
}

.detail-faq-item[open] summary::after {
  content: '−';
}

.detail-faq-item p {
  padding: 20px;
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .detail-hero {
    min-height: 420px;
    padding-block: 56px;
  }

  .detail-hero [data-source-copy] {
    max-width: 680px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .detail-sidebar {
    display: none;
  }

  .detail-mobile-toc {
    display: block;
    margin-bottom: 32px;
    border: 1px solid var(--detail-border);
    border-radius: 12px;
    background: #f8fafc;
  }

  .detail-mobile-toc > summary {
    padding: 16px 20px;
    min-height: 48px;
    color: var(--motive-blue);
    font-weight: 700;
    cursor: pointer;
  }

  .detail-mobile-toc nav {
    padding: 0 12px 12px;
  }
}

@media (max-width: 575.98px) {
  .detail-hero {
    min-height: 440px;
    padding-block: 56px 40px;
    align-items: flex-end;
  }

  .detail-hero-image {
    background-position: var(--hero-mobile-position, 65% center);
  }

  .detail-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 20px;
  }

  .detail-hero p {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .detail-section {
    padding-block: 28px;
    scroll-margin-top: 100px;
  }

  .detail-article p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .detail-intro > p:first-child {
    font-size: 1.1875rem;
  }

  .detail-list {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 18px;
  }

  .detail-closing {
    padding: 24px;
  }

.detail-faq-item summary,
  .detail-faq-item p {
    padding: 16px;
  }
}

.detail-editorial-meta {
  color: #64748b !important;
  font-size: .875rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

.detail-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--detail-border);
  border-radius: 12px;
}

.detail-comparison {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.65;
}

.detail-comparison caption {
  caption-side: top;
  padding: 18px;
  color: var(--motive-blue);
  font-weight: 700;
}

.detail-comparison th,
.detail-comparison td {
  padding: 16px 18px;
  border-top: 1px solid var(--detail-border);
  vertical-align: top;
  text-align: left;
}

.detail-comparison th {
  background: var(--soft-blue);
  color: var(--motive-blue);
}

.detail-comparison tbody tr:nth-child(even) {
  background: #f8fafc;
}

.detail-review-checklist {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--detail-border);
  border-radius: 16px;
  background: #f8fafc;
}

.detail-review-checklist legend {
  float: none;
  width: auto;
  margin-bottom: 16px;
  color: var(--motive-blue);
  font-size: 1.0625rem;
  font-weight: 700;
}

.detail-review-checklist label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  line-height: 1.65;
  cursor: pointer;
}

.detail-review-checklist input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--motive-blue);
}

.detail-review-checklist input:focus-visible {
  outline: 3px solid var(--motive-orange);
  outline-offset: 4px;
}

.detail-review-progress {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--detail-border);
  color: var(--motive-blue);
  font-weight: 700;
}

.detail-source-links {
  padding-left: 22px;
  line-height: 1.75;
}

.detail-source-links li {
  margin-bottom: 12px;
}

.detail-source-links a {
  color: var(--motive-blue);
  text-underline-offset: 4px;
}

.detail-article .detail-editorial-note {
  font-size: .875rem;
  color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .transport-detail-page *,
  .transport-detail-page *::before,
  .transport-detail-page *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
