/* ===== Inclinometer Detail Page ===== */
:root {
  --navh: 76px;
  --navy: #0a2540;
  --teal: #106878;
  --teal-light: #78cbd6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --r: 12px;
  --text: #334155;
  --text-muted: #64748b;
  --text-on-dark: #ffffff;
  --text-on-dark-2: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  :root {
    --navh: 68px;
  }
}

.sensor-page {
  background: var(--surface-2);
}

.sensor-page .section.section--surface {
  padding: clamp(48px, 6vw, 76px) 0;
  background: var(--surface-2);
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--teal-light);
}

.sensor-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--navh) + 58px) 0 72px;
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 78% 24%, rgba(120, 203, 214, 0.2), transparent 34%),
    linear-gradient(135deg, #071a2f 0%, #0b233d 54%, #0f2e47 100%);
}

.sensor-hero__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 800;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--teal-light);
}

.sensor-hero h1 {
  margin-top: 22px;
  max-width: 720px;
  color: var(--text-on-dark);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.sensor-hero__lead {
  margin-top: 22px;
  max-width: 650px;
  color: var(--text-on-dark-2);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.72;
}

.sensor-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn--light {
  color: var(--navy);
  background: #fff;
}

.btn--light:hover,
.btn--light:focus-visible {
  background: rgba(255, 255, 255, 0.9);
}

.sensor-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.sensor-keywords span {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 203, 214, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 850;
}

.sensor-visual {
  overflow: hidden;
  border: 1px solid rgba(120, 203, 214, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.sensor-visual img {
  width: 100%;
  height: auto;
}

.sensor-visual figcaption {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  color: var(--text-on-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 750;
}

.sensor-visual figcaption b {
  color: var(--teal-light);
}

.quick-summary {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.quick-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-summary article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.quick-summary span {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quick-summary b {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sensor-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.sensor-toc {
  position: sticky;
  top: calc(var(--navh) + 20px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.sensor-toc b {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.sensor-toc ol {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  list-style: none;
}

.sensor-toc a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 780;
}

.sensor-toc a:hover,
.sensor-toc a:focus-visible {
  color: var(--teal);
}

.sensor-content {
  min-width: 0;
}

.prose-section {
  scroll-margin-top: calc(var(--navh) + 20px);
  padding: clamp(36px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.04);
}

.prose-section + .prose-section {
  margin-top: 18px;
}

.prose-section h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.prose-section h3 {
  margin-top: 24px;
  color: var(--text);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.prose-section p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
}

.definition-box {
  margin-top: 24px;
  padding: 22px 24px;
  border-left: 4px solid var(--teal);
  border-radius: 16px;
  background: var(--surface-2);
}

.definition-box strong {
  color: var(--text);
}

.card-grid,
.matrix-grid,
.analysis-grid,
.relation-grid,
.issue-grid,
.report-grid,
.faq-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.matrix-grid,
.analysis-grid,
.issue-grid,
.report-grid,
.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.relation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.matrix-card,
.analysis-card,
.relation-card,
.issue-card,
.report-card,
.faq-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.info-card b,
.matrix-card b,
.analysis-card b,
.relation-card b,
.issue-card b,
.report-card b,
.faq-card b {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}

.info-card span,
.matrix-card span,
.analysis-card span,
.relation-card span,
.issue-card span,
.report-card span,
.faq-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.figure-panel {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.figure-panel img {
  width: 100%;
  height: auto;
}

.figure-panel figcaption {
  padding: 14px 18px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.9rem;
  font-weight: 750;
}

.spec-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.94rem;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.spec-table th {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 900;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.process-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  counter-reset: install;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  counter-increment: install;
}

.process-list li::before {
  content: counter(install, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 12px;
  background: var(--teal);
  font-weight: 950;
}

.process-list b {
  display: block;
  color: var(--text);
}

.process-list span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.callout {
  margin-top: 24px;
  padding: 22px 24px;
  color: var(--text-on-dark-2);
  border-radius: 18px;
  background: var(--navy);
}

.callout b {
  display: block;
  color: var(--teal-light);
  font-size: 1.03rem;
}

.callout p {
  color: var(--text-on-dark-2);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.inline-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.88rem;
  font-weight: 830;
}

.warning-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.warning-ladder article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.warning-ladder b {
  display: block;
  color: var(--text);
}

.warning-ladder span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-panel {
  margin-top: 18px;
  padding: clamp(34px, 5vw, 56px);
  color: var(--text-on-dark);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 18%, rgba(120, 203, 214, 0.18), transparent 28%),
    var(--navy);
}

.cta-panel h2 {
  color: var(--text-on-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.cta-panel p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--text-on-dark-2);
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sensor-page .mobile-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.sensor-page .mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.24);
}

.sensor-page .mobile-cta__btn--mail {
  background: var(--teal);
}

.sensor-page a:not(.btn):not(.tech-autolink):not(.nav__logo):hover,
.sensor-page a:not(.btn):not(.tech-autolink):not(.nav__logo):focus-visible {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .sensor-hero__grid,
  .sensor-layout {
    grid-template-columns: 1fr;
  }

  .sensor-toc {
    position: static;
  }

  .quick-summary__grid,
  .warning-ladder {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .relation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .sensor-hero {
    padding: calc(var(--navh) + 36px) 0 56px;
  }

  .sensor-hero__actions .btn,
  .cta-panel__actions .btn {
    width: 100%;
  }

  .sensor-visual figcaption {
    display: block;
  }

  .sensor-visual figcaption b {
    display: block;
    margin-bottom: 4px;
  }

  .quick-summary__grid,
  .card-grid,
  .matrix-grid,
  .analysis-grid,
  .relation-grid,
  .issue-grid,
  .report-grid,
  .faq-grid,
  .warning-ladder {
    grid-template-columns: 1fr;
  }

  .prose-section {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .spec-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .sensor-page .back-top {
    bottom: 88px;
  }

  .sensor-page .mobile-cta {
    display: flex;
  }
}
