/* Phase 3: business-specific composition over the approved subpage-pilot components.
   Loaded by the eight remaining business pages only; approved assets stay unchanged. */
body.trade-pages[data-page="business-hvac"] .pilot-hero {
  background-image: linear-gradient(90deg, rgba(8,18,36,.88), rgba(8,18,36,.47)), url('../img/hero-business-hvac.jpg');
}
body.trade-pages[data-page="business-fire"] .pilot-hero {
  background-image: linear-gradient(90deg, rgba(8,18,36,.88), rgba(8,18,36,.47)), url('../img/fire-overview.jpg');
  background-position: center 30%;
}
body.trade-pages[data-page="business-security"] .pilot-hero {
  background-image: linear-gradient(90deg, rgba(8,18,36,.88), rgba(8,18,36,.47)), url('../img/hero-business-security.jpg');
}
body.trade-pages[data-page="business-communication"] .pilot-hero {
  background-image: linear-gradient(90deg, rgba(8,18,36,.88), rgba(8,18,36,.47)), url('../img/hero-business-communication.jpg');
}
body.trade-pages .pilot-section.split { align-items: start; }
body.trade-pages #partners-hvac,
body.trade-pages #partners-security { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* HVAC: long equipment names receive open, numbered rows rather than a nested card. */
body.trade-pages .trade-equipment { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--pilot-line); }
body.trade-pages .trade-equipment h3 { margin: 0 0 24px; }
body.trade-pages .trade-equipment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: equipment;
}
body.trade-pages .trade-equipment-list li {
  position: relative;
  counter-increment: equipment;
  min-width: 0;
  margin: 0;
  padding: 19px 0 19px 40px;
  border-top: 1px solid var(--pilot-line);
  color: var(--pilot-ink);
  font-size: 17px;
  line-height: 1.7;
}
body.trade-pages .trade-equipment-list li::before {
  content: counter(equipment, decimal-leading-zero);
  position: absolute;
  top: 23px;
  left: 0;
  color: var(--pilot-blue);
  font-size: 12px;
  font-weight: 600;
}
body.trade-pages .trade-equipment > p { max-width: 82ch; margin: 0; }

/* Fire: detailed system descriptions sit beside the portrait technical reference. */
body.trade-pages :is(.trade-fire-systems, .trade-security-systems) {
  display: grid;
  gap: 64px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--pilot-line);
  align-items: start;
}
body.trade-pages .trade-fire-systems { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
body.trade-pages :is(.trade-system-copy, .trade-system-diagram) { min-width: 0; }
body.trade-pages :is(.trade-system-copy, .trade-system-diagram) h3 { margin: 0 0 24px; }
body.trade-pages .trade-system-lists { display: grid; gap: 28px; margin-bottom: 26px; }
body.trade-pages .trade-fire-systems .trade-system-lists { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
body.trade-pages .trade-system-group h4 { margin: 0 0 14px; color: var(--pilot-blue); font-size: 15px; }
body.trade-pages .trade-system-group ul { padding: 0; margin: 0; list-style: none; }
body.trade-pages .trade-system-group li { margin: 0 0 10px; line-height: 1.75; }
body.trade-pages .trade-system-copy > p { margin: 0; }
body.trade-pages .trade-system-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
body.trade-pages .trade-system-diagram > p { margin: 14px 0 0; font-size: 14px; line-height: 1.8; }
body.trade-pages .trade-fire-systems .trade-system-diagram { width: 100%; max-width: 390px; margin-inline: auto; }

/* Security keeps the complete capability index in the overview text column. */
body.trade-pages .trade-security-capabilities {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 48px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: capability;
}
body.trade-pages .trade-security-capabilities li {
  position: relative;
  counter-increment: capability;
  min-width: 0;
  margin: 0;
  padding: 20px 0 20px 38px;
  border-top: 1px solid var(--pilot-line);
}
body.trade-pages .trade-security-capabilities li::before {
  content: counter(capability, decimal-leading-zero);
  position: absolute;
  top: 24px;
  left: 0;
  color: var(--pilot-blue);
  font-size: 12px;
  font-weight: 600;
}
body.trade-pages .trade-security-systems { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
body.trade-pages .trade-security-systems .trade-system-group + .trade-system-group { padding-top: 24px; border-top: 1px solid var(--pilot-line); }
body.trade-pages .trade-security-systems .trade-system-group li { padding: 8px 0; margin: 0; }

/* Communications: a readable lead and scope rows; shared overview media rules apply. */
body.trade-pages .trade-paragraph-part { display: block; }
body.trade-pages .trade-paragraph-part + .trade-paragraph-part { margin-top: 16px; }
body.trade-pages .trade-comm-capabilities {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
body.trade-pages .trade-comm-capabilities li { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--pilot-line); }
body.trade-pages .trade-comm-capabilities strong { display: inline; }
body.trade-pages .trade-comm-scope { counter-reset: scope; }
body.trade-pages .trade-comm-scope-item {
  display: grid;
  grid-template-columns: 32px minmax(0, .62fr) minmax(0, 1fr);
  gap: 28px;
  counter-increment: scope;
  padding: 28px 0;
  border-top: 1px solid var(--pilot-line);
  align-items: start;
}
body.trade-pages .trade-comm-scope-item::before { content: counter(scope, decimal-leading-zero); padding-top: 5px; color: var(--pilot-blue); font-size: 12px; font-weight: 600; }
body.trade-pages .trade-comm-scope-item h3 { margin: 0; font-size: 22px; }
body.trade-pages .trade-comm-scope-item p { margin: 0; }

@media (max-width: 1100px) {
  body.trade-pages :is(.trade-fire-systems, .trade-security-systems) { gap: 40px; }
}
@media (max-width: 900px) {
  body.trade-pages :is(.trade-fire-systems, .trade-security-systems) { grid-template-columns: minmax(0, 1fr); }
  body.trade-pages .trade-fire-systems .trade-system-diagram { max-width: 390px; }
  body.trade-pages .trade-security-systems .trade-system-diagram { width: 100%; max-width: 680px; margin-inline: auto; }
  body.trade-pages .trade-comm-scope-item { grid-template-columns: 28px minmax(0, 1fr); gap: 12px 20px; }
  body.trade-pages .trade-comm-scope-item p { grid-column: 2; }
}
@media (max-width: 768px) {
  body.trade-pages #partners-hvac,
  body.trade-pages #partners-security { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.trade-pages .trade-equipment { margin-top: 32px; padding-top: 32px; }
  body.trade-pages .trade-equipment-list { gap: 0 28px; }
  body.trade-pages .trade-equipment-list li { font-size: 16px; }
  body.trade-pages :is(.trade-fire-systems, .trade-security-systems) { margin-top: 32px; padding-top: 32px; gap: 32px; }
  body.trade-pages .trade-fire-systems .trade-system-lists { grid-template-columns: minmax(0, 1fr); }
  body.trade-pages .trade-security-capabilities { grid-template-columns: minmax(0, 1fr); }
  body.trade-pages .trade-comm-capabilities { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body.trade-pages .trade-comm-scope-item { padding: 24px 0; }
  body.trade-pages .trade-comm-scope-item h3 { font-size: 20px; }
}
@media (max-width: 640px) {
  body.trade-pages .trade-equipment-list { grid-template-columns: minmax(0, 1fr); }
}
