.admin-bar .header{top:32px}
@media(max-width:782px){.admin-bar .header{top:46px}}
@media(max-width:600px){body.admin-bar .header{top:0}body.admin-bar{padding-top:0}}
.rbbm-page{padding-top:80px;padding-bottom:100px;min-height:80vh}
.rbbm-page h1{font-family:var(--heading);font-size:clamp(32px,5vw,64px);margin:40px 0 24px}
.rbbm-page-content{max-width:850px;line-height:1.8}
.rbbm-page-content p{margin:20px 0}

/* Keep each expertise card's existing appearance and extend its native link. */
#expertises .expertise { position: relative; }
#expertises .expertise > a.detail-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
  cursor: pointer;
}
#expertises .expertise > a.detail-link:focus-visible::after {
  outline: 2px solid #ff9b45;
  outline-offset: 4px;
}

/* Equipment examples on the four service pages. */
.rbbm-page .rbbm-equipment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:28px 0 20px; }
.rbbm-page .rbbm-equipment-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.rbbm-page .rbbm-equipment-grid--single { grid-template-columns:minmax(0,1fr); }
.rbbm-page .rbbm-equipment-card { min-width:0; margin:0; overflow:hidden; border:1px solid #dfe4e2; border-radius:16px; background:#fff; }
.rbbm-page .rbbm-equipment-media { height:240px; overflow:hidden; background:#f2f2ed; }
.rbbm-page .rbbm-equipment-grid--three .rbbm-equipment-media { height:200px; }
.rbbm-page .rbbm-equipment-grid--single .rbbm-equipment-media { height:auto; aspect-ratio:16/10; }
.rbbm-page .rbbm-equipment-media img { display:block; width:100%; height:100%; object-fit:cover; }
.rbbm-page .rbbm-equipment-card--contain img { object-fit:contain; }
.rbbm-page .rbbm-equipment-card--interphone img { transform:scale(1.9); transform-origin:54% 44%; }
.rbbm-page .rbbm-equipment-card figcaption { padding:18px 20px 20px; line-height:1.65; font-size:14px; color:#53636a; }
.rbbm-page .rbbm-equipment-card figcaption strong { display:block; margin-bottom:6px; font-size:18px; color:#13232d; }
.rbbm-page .rbbm-equipment-credits { margin:12px 0 36px; font-size:12px; color:#65747b; line-height:1.7; overflow-wrap:anywhere; }
.rbbm-page .rbbm-equipment-credits a { text-decoration:underline; text-underline-offset:2px; }
@media(max-width:680px) {
  .rbbm-page .rbbm-equipment-grid, .rbbm-page .rbbm-equipment-grid--three { grid-template-columns:minmax(0,1fr); gap:20px; }
  .rbbm-page .rbbm-equipment-grid--three .rbbm-equipment-media { height:240px; }
}

/* Match the first Badges and Monitoring photos to the 4:3 service-page format. */
.page-id-18 .rbbm-page-content > figure.wp-block-image:first-of-type img,
.page-id-20 .rbbm-page-content > figure.wp-block-image:first-of-type img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}
.page-id-20 .rbbm-page-content > figure.wp-block-image:first-of-type img {
  object-position: 50% 45%;
}
