/*
 * Data centers & mission-critical infrastructure page (DataCenters module).
 * Loaded after ms.css and lw.css, whose heading, card, chip, note, table,
 * workflow, map and project styles it reuses. Logical properties only (RTL
 * for ar and he). Button labels never wrap; chip strips stay on one row and
 * swipe on phones. Minimal animation: the hero grid stays still here.
 */

.lp:has(.dc-sec) .lp-hero.has-image::after { animation: none; }

/* Facility solution cards */
.dc-fac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dc-fac { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 16px; background: var(--white); border: 1px solid var(--steel-200); border-block-start: 3px solid var(--navy-900); transition: border-color .15s; }
.dc-fac:hover, .dc-fac:focus-within { border-block-start-color: var(--red); }
.dc-fac-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dc-fac-no { font-size: 13px; font-weight: 600; color: var(--red); }
.dc-fac-icon { display: inline-flex; inline-size: 40px; block-size: 40px; align-items: center; justify-content: center; background: var(--steel-100); color: var(--navy-900); }
.dc-fac-icon .ico { inline-size: 22px; block-size: 22px; }
.dc-fac .ms-tag { align-self: flex-start; }
.dc-fac h3 { font-size: 18px; line-height: 1.3; }
.dc-fac > p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.dc-fac-more { border-block-start: 1px solid var(--steel-200); padding-block-start: 6px; }
.dc-fac-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 44px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--red); list-style: none; }
.dc-fac-more summary::-webkit-details-marker { display: none; }
.dc-fac-more summary::after { content: "+"; flex: none; font-family: var(--f-mono); font-size: 20px; line-height: 1; }
.dc-fac-more[open] summary::after { content: "\2212"; }
.dc-fac-more h4 { margin: 12px 0 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--navy-900); }
.dc-fac-more .lp-points li, .dc-fac-more .lw-caps li { font-size: 14px; }
.dc-fac-cta { margin: auto 0 0; padding-block-start: 4px; }

/* Manufacturing gallery */
.dc-gal-filter { margin-block-end: 20px; }
.dc-gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dc-gal[hidden] { display: none; }
.dc-gal figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); }
.dc-gal img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dc-gal figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; flex-direction: column; gap: 2px; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(10, 22, 40, .86)); color: var(--white); font-size: 12.5px; line-height: 1.4; }
.dc-gal-cat { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #FF8A8A; }

/* Project experience */
.dc-honest { display: flex; gap: 10px; align-items: flex-start; max-inline-size: 72ch; margin: 0 0 20px; padding: 12px 16px; background: var(--white); border-inline-start: 3px solid var(--red); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.dc-honest .ico { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: 2px; color: var(--red); }
.dc-proj[hidden] { display: none; }

.dc-sec .lw-ctas, .dc-sec .ms-note + .lw-ctas { margin-block-start: 28px; }
.dc-sec .btn { white-space: nowrap; }

@media (max-width: 1099px) {
  .dc-fac-grid, .dc-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .dc-fac-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-gal-filter .lw-chips { margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); }
}
/* Hero: the brief's long third call to action still fits one line on 360 px phones */
@media (max-width: 419px) {
  .lp:has(.dc-sec) .lp-hero .btn { font-size: 14px; letter-spacing: .2px; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-fac { transition: none; }
}
