/* The public subpages share the homepage palette, navigation and form styles. */
.subpage-pilot [aria-current="page"] { text-underline-offset: .25em; }
.subpage-pilot :is(nav a, .header-client)[aria-current="page"] { text-decoration: underline; }
.subpage-opening {
  --focus: var(--lime);
  display: grid;
  align-content: center;
  min-height: 400px;
  padding-block: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--dark-line);
  background: #333434;
  color: var(--white);
}
.subpage-opening .breadcrumbs {
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-bottom: clamp(15px, 2.5vw, 25px);
  color: var(--light-muted);
}
.subpage-opening .lead { color: var(--light-muted); }
.subpage-opening .panel-rollout { margin: 16px 0 0; border-inline-start: 3px solid var(--lime); padding-inline-start: 12px; font-weight: 700; }
.subpage-opening-layout { display: grid; gap: clamp(22px, 5vw, 66px); align-items: center; }
.subpage-opening-layout.has-illustration { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
.subpage-opening h1 {
  max-width: 23ch;
  color: inherit;
  font-size: clamp(34px, 4.15vw, 62px);
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: pretty;
}
.subpage-opening .lead { max-width: 62ch; margin: 14px 0 0; }
.subpage-opening .actions { margin-top: 18px; }
.subpage-opening .btn:not(.primary) { border-color: #777; color: var(--white); }
.subpage-opening .btn:not(.primary):hover { border-color: var(--lime); color: var(--lime); }
:root[data-theme="dark"] .subpage-opening-service { background: var(--dark); }
:root[data-theme="dark"] .subpage-opening:not(.subpage-opening-service) {
  --focus: var(--link);
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
:root[data-theme="dark"] .subpage-opening:not(.subpage-opening-service) :is(.breadcrumbs, .lead) { color: var(--ink-muted); }
.subpage-photo, .subpage-overview .work-visual { width: min(100%, 490px); }
.subpage-opening .subpage-photo { width: min(100%, 390px); }
.subpage-photo img, .subpage-overview img { width: 100%; height: auto; border-radius: 8px; }
.subpage-photo img[src="./service-images/diagnostics-wall.jpg"] { transform: scaleX(-1); }
.oil-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.oil-brands li { display: grid; place-items: center; padding: 8px 10px; border-radius: 5px; background: #ededeb; }
.oil-brands img { object-fit: contain; }

.subpage-overview, .subpage-faq { background: var(--paper-deep); }
.subpage-overview .work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(18px, 4vw, 55px);
  margin-bottom: 25px;
}
.subpage-overview .work-feature p { margin: 10px 0 0; color: var(--ink-muted); }
.subpage-overview .scope-card > svg { flex: none; width: 34px; height: 34px; margin-bottom: 5px; color: var(--link); stroke-width: 2.3; }
.subpage-overview .scope-card small { color: var(--ink-muted); font-weight: 400; }
.subpage-overview .scope-card small a { padding: 0; }
.subpage-overview > .wrap > .pilot-link-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 4vw, 45px);
  margin-top: 23px;
}
.subpage-articles > article, .subpage-legal > :is(article, p, nav) { max-width: 76ch; }
.subpage-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--link);
}
.subpage-articles > article + article, .subpage-legal > article + article {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.subpage-pilot :is(.subpage-articles, .subpage-info) h2 { margin-bottom: 10px; }
.subpage-pilot :is(.subpage-articles, .subpage-info, .subpage-end) p { color: var(--ink-muted); }
.subpage-pilot :is(.subpage-articles, .subpage-info, .subpage-end) p:last-child { margin-bottom: 0; }
.subpage-pilot :is(.subpage-info, .subpage-end) a:not(.btn, .pilot-link-list a) { color: var(--link); }
.subpage-pilot :is(.subpage-info, .subpage-end) a:hover { text-decoration-thickness: 2px; }
.subpage-legal .terms-toc { margin: 18px 0 24px; }
.subpage-legal .terms-toc a { display: inline-block; padding-block: 4px; }
.subpage-end h2 { margin-bottom: 11px; }
.subpage-end .pilot-link-list a { min-height: 40px; }
.subpage-info .actions { margin-block: 14px; }
.subpage-info .contact-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 68px);
}
.subpage-info address { margin-bottom: 10px; font-style: normal; }
.contact-page-map { margin-top: 22px; }
.contact-page-map iframe { display: block; width: 100%; height: clamp(235px, 36vw, 360px); border: 0; border-radius: 6px; background: var(--dark-soft); }
.subpage-info .panel-page { max-width: 72ch; }
.subpage-info .service-callout a { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .subpage-opening { min-height: 267px; }
  .subpage-pilot .subpage-opening h1 { font-size: clamp(34px, 8.5vw, 40px); }
  .subpage-opening-layout.has-illustration,
  .subpage-overview .work-feature,
  .subpage-info .contact-page-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .subpage-overview > .wrap > .pilot-link-list { grid-template-columns: minmax(0, 1fr); }
}
