/* Styles for doc-driven content, layered on the current site's styles.css */

/* styles.css points at /datacentres/images/ (server root); use a relative path so the folder works anywhere */
.hero {
  background-image:
    linear-gradient(90deg, rgba(0,44,78,0.94) 0%, rgba(0,44,78,0.82) 55%, rgba(0,44,78,0.55) 100%),
    url('../images/industry.jpg');
}
.hero .lead { max-width: 720px; margin-bottom: 0; }
.hero-sub .lead a, .hero .lead a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

.page-section { max-width: 880px; margin-top: 3.5rem; }
.page-section:first-child { margin-top: 0; }
.page-section .section-h3 { margin-top: 2rem; }
.page-section .section-h2 + .section-h3 { margin-top: 0; }

.body-list {
  font-size: 1.1875rem;
  line-height: 1.62;
  padding-left: 1.5rem;
  margin: 1rem 0 0;
}
.body-list li + li { margin-top: 0.4rem; }
.body-list li::marker { color: var(--blue-accent); }
ol.body-list li::marker { font-weight: 700; }
.body-list + .body-lg,
.section-h3 + .body-lg,
.section-h3 + .body-list { margin-top: 1.125rem; }
.section-h3 + .body-list { margin-top: 0.5rem; }
.body-lg + .table-responsive,
.section-h2 + .table-responsive { margin-top: 1.5rem; }

/* "On this page" stays in view while scrolling (desktop), just under the sticky nav bar.
   (No CTA card above it, so the .sidebar-toc-stack wrapper is not used: margins it gave are set here.) */
.sidebar-toc { margin-top: 3rem; }
@media (min-width: 1201px) {
  .sidebar-toc {
    position: sticky;
    top: calc(51px + 1.5rem);
    max-height: calc(100vh - 51px - 3rem);
    overflow-y: auto;
  }
}
@media (max-width: 1200px) {
  .sidebar-toc { order: -1; margin-top: 2rem; margin-bottom: 0.5rem; }
}

/* Pages with fewer than 3 H2s have no "On this page" box; keep the text column, drop the empty sidebar column */
.sections-with-sidebar.no-sidebar { grid-template-columns: minmax(0, 880px); }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { display: block; cursor: pointer; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 54px; margin: -27px 0 0 -38px;
  background: rgba(0,0,0,0.72); border-radius: 14px;
  transition: background 0.15s;
}
.video-play::after {
  content: ""; position: absolute; left: 31px; top: 16px;
  border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play { background: #e00; }
.video-facade:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 3px; }

/* Home page cards come straight after the content, with no heading above them */
.answers-section .answer-cards { margin-top: 0; }

.data-table td { vertical-align: top; }
.data-table td.fig { white-space: normal; }
