
/* Yuexing Hardware | Staircase Site Measurement | 2026-11 */
/* One self-contained stylesheet. All rules are scoped to this article. */
.yx-blog {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px;
  background: #fff;
  color: #343a40;
  font: 16px/1.85 Arial, Helvetica, sans-serif;
}
.yx-blog *, .yx-blog *::before, .yx-blog *::after { box-sizing: border-box; }
.yx-blog p { margin: 0 0 18px; }
.yx-blog h1, .yx-blog h2, .yx-blog h4 { font-family: Arial, Helvetica, sans-serif; font-style: normal; }
.yx-blog h1 { margin: 0 0 18px; color: #191d21; font-size: 34px; line-height: 1.25; letter-spacing: -.5px; }
.yx-blog h2 { margin: 0 0 15px; color: #1d2328; font-size: 25px; line-height: 1.35; }
.yx-blog .kicker { margin: 0 0 12px; color: #b62525; font-size: 12px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.yx-blog .intro { max-width: 920px; margin-bottom: 28px; color: #515860; font-size: 18px; line-height: 1.8; }
.yx-blog .rule { width: 54px; margin: 24px 0 36px; border-top: 3px solid #b62525; }
.yx-blog section { padding: 28px 0; border-top: 1px solid #e8e8e8; }
.yx-blog .num { margin: 0 0 10px; color: #bb2828; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
/* Full-width illustrations: 16:9; no fixed-height gray boxes. */
.yx-blog .yx-photo { margin: 24px 0 30px; padding: 0; }
.yx-blog .yx-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}
/* Section 05: three structural connection details. */
.yx-blog .yx-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 30px;
}
.yx-blog .yx-detail-grid .yx-photo { margin: 0; min-width: 0; }
.yx-blog .yx-detail-grid img { aspect-ratio: 4 / 3; }
/* Section 07: two distinct connection details. */
.yx-blog .yx-interface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 30px;
}
.yx-blog .yx-interface-card { margin: 0; min-width: 0; }
.yx-blog .yx-interface-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
}
.yx-blog .yx-detail-grid h4, .yx-blog .yx-interface-card h4 {
  margin: 11px 0 5px;
  color: #29343c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.yx-blog .yx-detail-grid p, .yx-blog .yx-interface-card p {
  margin: 0;
  color: #626d75;
  font-size: 13px;
  line-height: 1.6;
}
.yx-blog .cta { margin-top: 30px; padding: 26px 28px; background: #f5f5f5; }
.yx-blog .cta h2 { font-size: 23px; }
.yx-blog a { color: #b62525; }
.yx-blog .ref { color: #555; font-size: 13px; }
.yx-blog .ref a { overflow-wrap: anywhere; }
.yx-blog .small { color: #737b82; font-size: 12px; }
@media (max-width: 760px) {
  .yx-blog { padding: 20px 14px; font-size: 15px; }
  .yx-blog h1 { font-size: 27px; }
  .yx-blog h2 { font-size: 22px; }
  .yx-blog .intro { font-size: 16px; }
  .yx-blog section { padding: 24px 0; }
  .yx-blog .yx-detail-grid, .yx-blog .yx-interface-grid { grid-template-columns: 1fr; gap: 22px; }
  .yx-blog .cta { padding: 20px; }
}

/* Identical 16:9 display for first image and section 08 technical drawing */
.yx-blog #section-1 figure.yx-photo,
.yx-blog #section-8 figure.yx-photo { display:block; width:100%; max-width:none; margin:24px 0 30px; padding:0; overflow:hidden; }
.yx-blog #section-1 figure.yx-photo > img,
.yx-blog #section-8 figure.yx-photo > img { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; border:0; }
