/* Detail page */
.detail-page {
  padding-top: 88px;
  padding-bottom: 64px;
  max-width: 860px;
}

.detail-cover {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--rose-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-cover .placeholder-icon {
  font-size: 72px;
  opacity: 0.25;
}

/* Claim banner */
.claim-banner {
  background: var(--gold-glow);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.claim-banner a {
  font-weight: 600;
  color: var(--gold-dark);
}

.detail-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.detail-org {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.meta-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.meta-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.deadline-urgent {
  color: var(--amber);
  font-weight: 600;
}

/* Badge row */
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.detail-badges .badge {
  padding: 5px 14px;
  font-size: 12px;
}

/* Prize package */
.prize-block {
  background: var(--gold-glow);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.prize-block h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gold-dark);
}
.prize-block p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Saves count */
.saves-block {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.saves-block strong {
  color: var(--gold-dark);
}

/* Description */
.detail-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
  white-space: pre-line;
}

/* Coaching callouts */
.coaching-callout {
  background: var(--bg-warm);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.coaching-callout a {
  font-weight: 600;
}

/* Actions */
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.detail-actions .btn {
  position: relative;
}

/* Calendar dropdown */
.cal-dropdown {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 50;
  min-width: 180px;
}
.cal-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.cal-dropdown a:hover {
  background: var(--bg-warm);
  color: var(--gold-dark);
}

/* Gallery */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.detail-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Website link */
.website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 32px;
}

/* Schema.org structured data (invisible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .detail-cover { height: 220px; }
  .detail-meta-grid { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; justify-content: center; }
}
