/* Scoped layout refinement for the English SIP product page. */
body.sip-page .fade-up {
  opacity: 1;
  transform: none;
  transition: none;
}

body.sip-page .page-hero > .container,
body.sip-page .section-sm > .container,
body.sip-page .sip-section-nav > .container {
  width: min(1240px, calc(100% - 64px));
  max-width: 1240px;
  padding-right: 0;
  padding-left: 0;
}

body.sip-page .section-sm {
  padding: clamp(48px, 5vw, 72px) 0;
  scroll-margin-top: 48px;
}

body.sip-page .section-title {
  max-width: 960px;
  margin: 0 0 16px;
  font-size: clamp(26px, 2.5vw, 36px) !important;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

body.sip-page .section-title::after { display: none; }
body.sip-page .section-subtitle {
  max-width: 76ch;
  margin: 0;
  color: #536b7d;
  line-height: 1.7;
}

body.sip-page .page-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 4vw, 64px);
}

body.sip-page .page-hero h1 { max-width: 660px; }
body.sip-page .page-hero p { max-width: 62ch; margin-bottom: 24px; }
body.sip-page .page-hero .label { line-height: 1.6; letter-spacing: .1em; }
body.sip-page .page-hero .btn { box-shadow: none; }
body.sip-page .page-hero .btn:hover,
body.sip-page .page-hero .btn:focus-visible { transform: none; box-shadow: none; }
body.sip-page .cert-grid { margin-top: 28px; padding: 8px 0; gap: 4px; }
body.sip-page .cert-item { padding: 8px 12px; letter-spacing: 0; }
body.sip-page .page-hero .sip-product-visual { max-width: 440px; }
body.sip-page .sip-product-visual__viewport { min-height: 320px; }

body.sip-page .sip-section-nav { background: #fff; border-bottom: 1px solid var(--sip-line); }
body.sip-page .sip-section-nav > .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}
body.sip-page .sip-section-nav a { color: #35536b; font-size: .875rem; font-weight: 600; padding: 6px 0; }
body.sip-page .sip-section-nav a:hover { color: #17659d; text-decoration: underline; text-underline-offset: 5px; }
body.sip-page a:focus-visible,
body.sip-page button:focus-visible { outline: 3px solid #b68b3e; outline-offset: 4px; }

/* Explicit tracks keep the page layout independent of Bootstrap column loading. */
body.sip-page .row.sip-layout-grid {
  display: grid;
  gap: 20px;
  margin: 28px 0 0 !important;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}
body.sip-page .sip-layout-grid > [class*="col-"] {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body.sip-page .sip-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.sip-page .sip-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.sip-page .sip-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.sip-page .sip-grid-pbx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.sip-page .sip-grid-onvif { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

body.sip-page #why-sip .row > div > div,
body.sip-page #poe-supplier-review .row > div > div,
body.sip-page #sip-servers .row > div > div,
body.sip-page #onvif .row > .col-lg-5 > div,
body.sip-page #wiegand-rs485 .row > div > div,
body.sip-page #compliance .row > div > div {
  border: 1px solid var(--sip-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
body.sip-page #why-sip .row > div > div { padding: 24px !important; }
body.sip-page #why-sip .row > div > div::before { display: none; }
body.sip-page #why-sip .row > div > div > div:first-child {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  background: #edf4f8;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 1rem !important;
}
body.sip-page #why-sip p { color: #4e677b !important; line-height: 1.65 !important; }
body.sip-page #sip2-deployment-checklist .row > div > div {
  min-height: 0;
  padding: 24px !important;
  box-shadow: none !important;
}
body.sip-page #sip2-deployment-checklist p { color: #d6e6ef !important; }
body.sip-page #poe-supplier-review { background: #fff; }
body.sip-page #poe-supplier-review .row > div > div { background: #f8fafc !important; padding: 22px !important; }
body.sip-page #poe-supplier-review h3 { color: #17324b; line-height: 1.4; }
body.sip-page #poe-supplier-review p { color: #536b7d !important; font-size: .94rem !important; }
body.sip-page #poe-supplier-review .sip-review-callout {
  border-left: 3px solid var(--sip-gold) !important;
  background: #f3f7fa !important;
  border-radius: 0 6px 6px 0;
}
body.sip-page #sip-stage-links {
  width: min(1240px, calc(100% - 64px));
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 24px 0 !important;
  font-size: .9rem;
}

body.sip-page #d801-specs table.spec-table {
  display: table;
  margin-top: 28px;
  overflow: visible;
  border: 1px solid var(--sip-line) !important;
  box-shadow: none !important;
  table-layout: fixed;
}
body.sip-page #d801-specs .sip-spec-label-col { width: 30%; }
body.sip-page #d801-specs col:not(.sip-spec-label-col) { width: 70%; }
body.sip-page #d801-specs table.spec-table td,
body.sip-page #d801-specs table.spec-table th.sip-spec-label {
  padding: 11px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #e1e9ef !important;
  color: #3e586d !important;
  font-size: .94rem !important;
  line-height: 1.5;
  vertical-align: top;
  overflow-wrap: anywhere;
}
body.sip-page #d801-specs table.spec-table th.sip-spec-label {
  width: auto;
  background: #f5f8fa !important;
  color: #28465c !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
body.sip-page #d801-specs table.spec-table .sip-spec-group th {
  width: auto;
  padding: 12px 20px;
  border-bottom: 1px solid var(--sip-line);
  background: #e5eef4;
  color: #173b56;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.sip-page #d801-specs .sip-spec-actions { justify-content: flex-start !important; gap: 12px !important; margin-top: 24px !important; }
body.sip-page #d801-specs .btn { box-shadow: none; }
body.sip-page #sip-servers .sip-grid-pbx > div > div { min-height: 116px; padding: 20px !important; }
body.sip-page #sip-servers .sip-grid-pbx > div > div > div:first-child { min-height: 0 !important; margin-bottom: 12px !important; }
body.sip-page #sip-servers ul,
body.sip-page #wiegand-rs485 ul { list-style: disc; }
body.sip-page #sip-servers pre { min-width: 0; box-shadow: none; }
body.sip-page #onvif .sip-layout-grid .sip-layout-grid { margin-top: 16px !important; gap: 10px; }
body.sip-page #onvif .sip-grid-onvif > .col-lg-7 > .sip-layout-grid > div > div { height: 100%; min-height: 52px; }
body.sip-page #onvif code { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
body.sip-page #wiegand-rs485 .sip-layout-grid > div > div { height: 100%; }
body.sip-page #wiegand-rs485 td { overflow-wrap: anywhere; }
body.sip-page #wiegand-rs485 td:first-child { width: 36%; padding-right: 16px !important; }

@media (min-width: 1200px) {
  body.sip-page .sip-grid-pbx { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  body.sip-page .sip-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sip-page #why-sip .sip-grid-3,
  body.sip-page #poe-supplier-review .sip-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body.sip-page .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  body.sip-page .sip-grid-onvif { grid-template-columns: minmax(0, 1fr); }
  body.sip-page #large-scale .sip-grid-3 { grid-template-columns: minmax(0, 1fr); }
  body.sip-page .page-hero .sip-product-visual { margin: 0 auto; }
  body.sip-page .sip-section-nav > .container { gap: 4px 24px; }
}
@media (max-width: 600px) {
  body.sip-page .page-hero > .container,
  body.sip-page .section-sm > .container,
  body.sip-page .sip-section-nav > .container,
  body.sip-page #sip-stage-links { width: calc(100% - 40px); }
  body.sip-page .section-sm { padding: 44px 0; }
  body.sip-page .row.sip-layout-grid { gap: 16px; margin-top: 24px !important; }
  body.sip-page .sip-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.sip-page .sip-section-nav > .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  body.sip-page .page-hero .btn { width: 100%; justify-content: center; white-space: normal; }
  body.sip-page .page-hero h1 { font-size: clamp(30px, 8vw, 38px) !important; }
  body.sip-page .page-hero .label { font-size: .65rem !important; letter-spacing: .07em; }
  body.sip-page .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sip-page .cert-item { border: 0; padding: 8px; }
  body.sip-page .sip-product-visual { transform: none; }
  body.sip-page .sip-product-visual::before { display: none; }
  body.sip-page .sip-product-visual__viewport { min-height: 260px; }
  body.sip-page .sip-product-visual__chips { gap: 5px; }
  body.sip-page .sip-product-visual__chips span { font-size: .58rem; }
  body.sip-page #d801-specs .sip-spec-label-col { width: 41%; }
  body.sip-page #d801-specs col:not(.sip-spec-label-col) { width: 59%; }
  body.sip-page #d801-specs table.spec-table td,
  body.sip-page #d801-specs table.spec-table th.sip-spec-label { padding: 10px 12px !important; font-size: .84rem !important; }
  body.sip-page #d801-specs .sip-spec-actions { display: grid !important; }
  body.sip-page #d801-specs .sip-spec-actions .btn { width: 100%; justify-content: center; white-space: normal; }
}
