/* Focused service and portfolio layouts. Shared site styling stays in main.css. */
.detail-layout .project-intro h1 { text-wrap: balance; }
.detail-layout .project-intro p { max-width: 65ch; text-wrap: pretty; }
.detail-layout .project-gallery { border-top: 1px solid var(--line); }
.detail-layout .related-projects {padding: var(--section-pad) var(--frame-pad);
  border-top: 1px solid var(--line);
}
.detail-layout .related-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
  margin-top: 36px;
}
.detail-layout .related-project-card { display: block; min-width: 0; }
.detail-layout .related-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: var(--card-image-ratio);
  object-fit: cover;
  border-radius: var(--card-image-radius);
  background: #111;
  transition: filter .2s ease;
}
.detail-layout .related-project-card:hover img { filter: brightness(1.12); }
.detail-layout .related-project-meta {
  display: block;
  margin-top: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
}
.detail-layout .related-project-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 0;
  color: #d3d3d3;
  font: 400 var(--card-title-size)/1.5 var(--font-body);
  text-transform: none;
}
.detail-layout .related-project-card h3 span { color: var(--pink); flex-shrink: 0; }
.detail-layout .related-project-empty { margin-top: 32px; }
.detail-layout .related-project-empty p { color: #b8b8b8; line-height: 1.6; }
.detail-layout .related-project-empty a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.detail-layout #contact { scroll-margin-top: 24px; }
.detail-layout #contact-form { width: min(571px, 100%); }
.detail-layout #contact-form[hidden] { display: none; }
.detail-layout .socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.detail-layout .socials a { width: 52px; min-height: 72px; }
.detail-layout .socials i { width: 48px; height: 48px; }
.detail-layout :is(a, button, input, textarea):focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
@media (max-width: 760px) {
  .detail-layout .related-projects { }
  .detail-layout .related-project-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .detail-layout .project-contact { padding: 52px 20px 60px; }
  .detail-layout .contact > p,
  .detail-layout .contact > strong { font-size: 17px; line-height: 1.5; }
  .detail-layout .contact .form-status { font-size: 12px; }
  .detail-layout .sticky-footer { position: static; padding: 18px 16px; }
  .detail-layout { padding-bottom: 0; }
}
