/* Sazeh Sazan Stage 3 — archive search and project detail layout */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.project-search-wrap {
  display: flex; align-items: center; gap: 12px; max-width: 720px;
  margin: 0 auto 24px; padding: 12px 16px; border: 1px solid #dbe2ed;
  border-radius: 14px; background: #fff; color: #64748b;
}
.project-search-wrap input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: #17253f; font: inherit; padding: 5px 0;
}
.project-search-wrap span { white-space: nowrap; font-size: .85rem; color: #64748b; }
.project-card[hidden] { display: none !important; }
.projects-count-note { text-align: center; color: #64748b; margin: 24px 0 0; font-size: .9rem; }
.project-detail-page { padding: 38px 0 80px; background: #f5f7fc; min-height: 70vh; }
.detail-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #718096; font-size: .9rem; margin-bottom: 30px; }
.detail-breadcrumb a { color: #0b2b56; text-decoration: none; }
.detail-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.detail-kicker { display: inline-block; color: #b9851b; font-weight: 800; margin-bottom: 10px; }
.detail-intro h1 { color: #06142e; font-size: clamp(1.8rem,4vw,3rem); margin: 0 0 12px; line-height: 1.5; }
.detail-intro p { color: #58677e; line-height: 2; margin: 0; }
.detail-back-link { flex: 0 0 auto; color: #0b2b56; text-decoration: none; font-weight: 700; }
.detail-cover { margin: 0; overflow: hidden; border-radius: 22px; background: #e2e8f0; box-shadow: 0 18px 50px rgba(6,20,46,.12); }
.detail-cover img { width: 100%; height: clamp(260px,45vw,560px); display: block; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; margin-top: 34px; align-items: start; }
.detail-main, .detail-sidebar { background: #fff; border: 1px solid #e5eaf2; border-radius: 18px; padding: clamp(20px,3vw,34px); }
.detail-main h2 { color: #06142e; margin: 0 0 14px; font-size: 1.35rem; }
.detail-main p { color: #58677e; line-height: 2.1; }
.detail-sample-note { padding: 12px 16px; background: #fff8e5; border-right: 3px solid #f6c744; border-radius: 8px; font-size: .9rem; }
.detail-spec-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.detail-spec { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #f5f7fc; border-radius: 12px; }
.detail-spec span { color: #718096; font-size: .85rem; }
.detail-spec strong { color: #06142e; font-size: 1.05rem; }
.detail-sidebar h3 { margin-top: 0; color: #06142e; }
.detail-sidebar p { color: #64748b; line-height: 2; }
.detail-contact-btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; background: #f6c744; color: #06142e; text-decoration: none; border-radius: 10px; font-weight: 800; }
.detail-next-projects { text-align: center; margin-top: 30px; }
.detail-next-projects a { color: #0b2b56; font-weight: 800; text-decoration: none; }
.detail-not-found { padding: 80px 0; text-align: center; }
@media(max-width:800px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-intro { align-items: start; flex-direction: column; }
}
@media(max-width:520px) {
  .project-search-wrap { flex-wrap: wrap; }
  .project-search-wrap input { flex-basis: calc(100% - 40px); }
  .project-search-wrap span { margin-right: 28px; }
  .detail-spec-grid { grid-template-columns: 1fr 1fr; }
  .detail-back-link { align-self: flex-start; }
}
