/* ============================================================
   Measure-guide stylesheet (v2.4.0P)
   Palette is locked to blue / black / gray / white per project
   hard rule. No additional accent colors introduced.
   ============================================================ */

/* Step card: big numbered step header */
.mg-step h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}
.mg-step-num {
  display: inline-block;
  min-width: 74px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #0057b7;       /* primary blue (existing palette) */
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.mg-step p {
  margin: 8px 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* "Things to watch for" — clean question/answer list */
.mg-watch-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.mg-watch-list li {
  border-left: 3px solid #0057b7;
  padding: 6px 0 6px 14px;
  line-height: 1.5;
}
.mg-watch-list li strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* "What to send us" — quiet emphasis */
.mg-send-us p {
  background: #f5f7fb;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Photo grid for reference photos */
.mg-photo-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.mg-photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mg-photo-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .mg-photo-grid-3,
  .mg-photo-grid-4 { grid-template-columns: 1fr 1fr; }
}
.mg-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}
.mg-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.mg-photo figcaption {
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #222;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  min-height: 2.4em;
}

/* Cross-guide sibling links (subtle) */
.mg-siblings p { margin: 0; }
.mg-siblings a {
  color: #0057b7;
  text-decoration: underline;
}
.mg-siblings a:hover { text-decoration: none; }

/* ============================================================
   Main security-doors product page: "How to measure" section
   — three thumbnail cards linking to the three guide URLs.
   ============================================================ */
.sd-measure-hub {
  margin-top: 28px;
}
.sd-measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 820px) {
  .sd-measure-grid { grid-template-columns: 1fr; }
}
.sd-measure-card {
  display: block;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sd-measure-card:hover {
  box-shadow: 0 4px 18px rgba(0, 87, 183, 0.18);
  transform: translateY(-2px);
}
.sd-measure-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #000;
}
.sd-measure-card-body {
  padding: 12px 14px 14px;
}
.sd-measure-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0a0a0a;
}
.sd-measure-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
}
.sd-measure-card-body .sd-measure-cta {
  display: inline-block;
  margin-top: 8px;
  color: #0057b7;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ============================================================
   Collapsible "How to measure" reference inside Step 2
   of the /v2/builder/security-doors/ funnel.
   ============================================================ */
.df-measure-ref {
  margin: 10px 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
}
.df-measure-ref summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: #0057b7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.df-measure-ref summary::-webkit-details-marker { display: none; }
.df-measure-ref summary::before {
  content: "▸";
  font-size: 0.85em;
  transition: transform 0.15s ease;
}
.df-measure-ref[open] summary::before { transform: rotate(90deg); }
.df-measure-ref-body {
  padding: 0 14px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #222;
}
.df-measure-ref-body a {
  color: #0057b7;
  font-weight: 600;
}
