.detail-hero {
  padding: 52px 0 24px;
}

.crumb {
  font-size: 0.84rem;
  color: #5c5751;
  margin-bottom: 10px;
}

.crumb a {
  color: #1f1b16;
  text-decoration: underline;
}

.detail-shell {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-hero-main {
  padding: 30px;
  background: linear-gradient(148deg, #f1ede5 0%, #ded3c0 56%, #c4b79d 100%);
}

.detail-hero-main h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 8px;
  max-width: 14ch;
}

.detail-hero-main p {
  color: #4c463f;
  max-width: 64ch;
}

.detail-tag-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 4px 10px;
  font-size: 0.78rem;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid rgba(18, 18, 18, 0.14);
}

.detail-stats article {
  padding: 14px;
  border-right: 1px solid rgba(18, 18, 18, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.detail-stats article:last-child {
  border-right: none;
}

.detail-stats h3 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.detail-stats p {
  color: #5a554f;
  font-size: 0.86rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.detail-panel {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
}

.detail-panel h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.detail-panel p {
  color: #5a5550;
}

.detail-panel ul {
  margin-top: 10px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.detail-panel li {
  font-size: 0.9rem;
  color: #3e3933;
  position: relative;
  padding-left: 15px;
}

.detail-panel li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  position: absolute;
  top: 0.74em;
  left: 0;
  background: var(--accent);
}

.timeline-list {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.timeline-item {
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: #5a5550;
  font-size: 0.9rem;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.detail-gallery-item {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.detail-gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.detail-gallery-item figcaption {
  padding: 9px 10px;
  font-size: 0.84rem;
  color: #4e4943;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.detail-gallery-item figcaption svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
  color: var(--accent);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.result-card {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px;
}

.result-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.result-card p {
  color: #5d5852;
  font-size: 0.88rem;
}

.quote-box {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-md);
  background: #f7f3ea;
  padding: 18px;
}

.quote-box blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1.3;
}

.quote-box p {
  margin-top: 10px;
  color: #554f49;
}

.detail-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.next-card {
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}

.next-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.next-card p {
  color: #5d5852;
  margin-bottom: 8px;
}

.next-card a {
  font-weight: 700;
}

@media (max-width: 1120px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-stats article {
    border-right: 1px solid rgba(18, 18, 18, 0.1);
    border-top: 1px solid rgba(18, 18, 18, 0.1);
  }

  .detail-stats article:nth-child(even) {
    border-right: none;
  }

  .detail-stats article:nth-child(-n + 2) {
    border-top: none;
  }
}

@media (max-width: 767px) {
  .detail-hero-main {
    padding: 20px;
  }

  .detail-stats article {
    border-right: none;
  }

  .detail-stats article:first-child {
    border-top: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
