/* ZoneIntel AI round 3: one component set for both page skins.
   zi-s.css (site security pages) and zi-c.css (city pages) still carry each page's layouts, but the shared components
   below (headings, breadcrumbs, every data or comparison table, FAQ rows) are defined once here and loaded last on
   every page, so a city page and a site page render them the same way. Tokens come from zi-shell.css. */

/* Headings: one weight and tracking */
main h1, main h2, main h3 { font-family: var(--zi-head); font-weight: 600; letter-spacing: -.018em; }

/* Breadcrumbs */
main .crumbs { font: 400 14px/1.4 var(--zi-body); color: var(--zi-mute); margin-bottom: 20px; }
main .crumbs a { color: var(--zi-ink-2); text-decoration: none; border-bottom: 0; }
main .crumbs a:hover { color: var(--zi-acc); }

/* Tables: results (Result / Pilot measure), comparison tables, spec tables */
main table.res-table, main table.tbl2, main table.wtable {
  width: 100%; border-collapse: separate; border-spacing: 0; font: 400 15.5px/1.45 var(--zi-body);
  background: #FFFFFF; border: 1px solid var(--zi-line-2); border-radius: 10px; overflow: hidden; margin: 8px 0 14px; }
main table.res-table th, main table.res-table td, main table.tbl2 th, main table.tbl2 td, main table.wtable th, main table.wtable td {
  text-align: left; vertical-align: top; padding: 9px 14px; border: 0; border-top: 1px solid var(--zi-line); }
main table.res-table thead th, main table.tbl2 thead th, main table.wtable thead th {
  font: 600 13px/1.3 var(--zi-body); text-transform: uppercase; letter-spacing: .06em; color: var(--zi-mute); background: var(--zi-bg-2);
  border-top: 0; border-bottom: 1px solid var(--zi-line); }
main table.res-table td, main table.tbl2 td, main table.wtable td { color: var(--zi-ink-2); }
main table.res-table td:first-child, main table.tbl2 td:first-child, main table.wtable tbody th { font-weight: 600; color: var(--zi-ink); }
main table.res-table tbody tr:first-child td, main table.tbl2 tbody tr:first-child td,
main table.wtable tbody tr:first-child th, main table.wtable tbody tr:first-child td { border-top: 0; }
main table.res-table td:first-child { width: 42%; }
main table.tbl2.spec td:first-child { white-space: nowrap; color: var(--zi-acc); font-variant-numeric: tabular-nums; }
main .tbl-wrap, main .wt-wrap { overflow-x: auto; }
@media (max-width: 1100px) {
  main table.res-table, main table.tbl2, main table.wtable { font-size: 14.5px; }
  main table.res-table th, main table.res-table td, main table.tbl2 th, main table.tbl2 td { padding: 8px 12px; }
}
@media (min-width: 961px) and (max-height: 900px) {
  main table.res-table, main table.tbl2, main table.wtable { font-size: 14.5px; line-height: 1.4; }
  main table.res-table th, main table.res-table td, main table.tbl2 th, main table.tbl2 td, main table.wtable th, main table.wtable td { padding: 7px 12px; }
}
@media (max-width: 640px) {
  main table.res-stack, main table.res-stack tbody, main table.res-stack tr, main table.res-stack td { display: block; width: 100% !important; box-sizing: border-box; }
  main table.res-stack thead { display: none; }
  main table.res-stack tr { padding: 12px 14px; border-top: 1px solid var(--zi-line); }
  main table.res-stack tr:first-child { border-top: 0; }
  main table.res-stack td { padding: 0; border: 0; }
  main table.res-stack td + td { margin-top: 3px; font-size: 14px; color: var(--zi-mute); }
}

/* FAQ rows */
main .faq summary, main .faq-list summary { font: 600 18px/1.4 var(--zi-head); color: var(--zi-ink); letter-spacing: -.005em; }

/* Text link under a hero's buttons ("Integrator? Partner with us") */
.hero-alt { margin: 14px 0 0; font: 500 15px/1.4 var(--zi-body); color: inherit; opacity: .92; }
.hero-alt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Round 4: one layout system for both doors. The city pages (body.vc) now take the site pages' frame: container width and
   gutter, body type size, buttons (shape, height, weight) and lead size, so a city page and a site page share the same grid
   edges and controls. Section rhythm stays per skin because the fit rules for short screens depend on it. */
body.vc { font-size: 17px; }
body.vc main .wrap { max-width: 1240px; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
body.vc main .btn { min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 16px/1 var(--zi-body); border-width: 1px; }
body.vc main .lead { font-size: clamp(17px, 1.35vw, 20px); }
body.vc main .sec-head p { font-size: clamp(17px, 1.35vw, 19px); }

/* round 5 (review must-fix 8): detection labels are burned into the footage, so footage frames never crop.
   Site page heroes and the alarm stepper show the whole 16:9 frame; the alert card sits under the frame on desktop. */
.phero .media img, .phero .media video,
.journey .scene .media img, .journey .scene .media video { object-fit: contain; background: #03060C; }
.clip .frame img, .clip .frame video { object-fit: contain; }
@media (min-width: 961px) {
  .phero .media, .journey .scene .media { aspect-ratio: 16 / 9; height: auto; }
  .ph-media .alert-card { position: relative; left: auto; bottom: auto; width: auto; margin: 12px 0 0; }
  .ph-media .alert-card .ac-meta { display: grid; grid-template-columns: auto 1fr auto 1fr; column-gap: 10px; }
}
/* round 5: the integration diagram has a stacked phone version so its labels stay at 11 px or more */
.flow svg.flow-m { display: none; }
@media (max-width: 640px) { .flow svg.flow-d { display: none; } .flow svg.flow-m, #deployment .flow svg.flow-m { display: block; width: 100%; height: auto; max-height: none; max-width: 420px; margin: 0 auto; } }
/* round 5: Annex A prints on one page */
@media print {
  main table.tbl2.annex { font-size: 12.5px; }
  main table.tbl2.annex td { padding: 7px 10px; }
  main table.tbl2.annex td:nth-child(2) { width: 44%; }
}
/* round 5: Annex A stacks on phones */
@media (max-width: 640px) {
  main table.tbl2.annex thead { display: none; }
  main table.tbl2.annex, main table.tbl2.annex tbody, main table.tbl2.annex tr, main table.tbl2.annex td { display: block; width: auto; }
  main table.tbl2.annex tr { padding: 10px 14px; border-top: 1px solid var(--zi-line); }
  main table.tbl2.annex tbody tr:first-child { border-top: 0; }
  main table.tbl2.annex td { padding: 2px 0; border: 0; white-space: normal; }
  main table.tbl2.annex td:nth-child(3)::before { content: "Conditions: "; color: var(--zi-mute); }
  main table.tbl2.annex td:nth-child(4)::before { content: "Closure: "; color: var(--zi-mute); }
}
/* round 5: short laptop screens (1333x660 class). Site page heroes with the card under the frame, the Annex A table */
@media (min-width: 961px) and (max-height: 820px) {
  .phero:has(.ph-media .alert-card) { padding-top: calc(var(--bar) + 18px); padding-bottom: 22px; }
  .phero .ph-media:has(.alert-card) .media { width: 86%; margin-left: auto; }
  .ph-media .alert-card { margin-top: 10px; }
  .phero:has(.wf) { padding-top: calc(var(--bar) + 24px); padding-bottom: 24px; }
  .ph-media:has(.wf) { min-height: 440px; }
  main table.tbl2.annex { font-size: 14px; line-height: 1.35; }
  main table.tbl2.annex td { padding-top: 5px; padding-bottom: 5px; }
  body.vc main section#annex { padding-top: 26px; padding-bottom: 26px; }
  body.vc main #annex .sec-head { margin-bottom: 6px; }
}
@media (min-width: 961px) {
  main table.tbl2.annex td:nth-child(2) { width: 50%; }
  main table.tbl2.annex td:nth-child(3) { width: 18%; }
}
