/*
 * du-single.css — Destination Unpacked T4 Article Template
 * Clean rewrite 2026-07-06. Scoped to body.single-post only.
 * Version: 2.0.0
 */

/* === 1. RESET KADENCE DEFAULTS === */
body.single-post #primary.content-area { margin-top: 0; }
body.single-post .content-container.site-container { display: block; max-width: 100%; padding: 0; }
body.single-post .content-wrap { max-width: 100%; padding: 0; }

/* === 2. ARTICLE WRAPPER — block, not grid === */
body.single-post article.entry {
  display: block;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 60px;
  box-sizing: border-box;
}

/* === 3. HERO — full width, fixed height === */
body.single-post .du-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  margin: 0 -32px;
}
body.single-post .du-hero img,
body.single-post .du-hero .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
body.single-post .du-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,.2) 0%, rgba(10,22,40,.55) 60%, rgba(10,22,40,.72) 100%);
  pointer-events: none;
}

/* === 4. TITLE OVERLAY — absolute over hero === */
body.single-post .entry-header.post-title {
  position: absolute;
  top: 0;
  left: -32px;
  right: -32px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px;
  z-index: 2;
  pointer-events: none;
}
body.single-post .entry-header.post-title > * { pointer-events: auto; }

body.single-post .entry-taxonomies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
body.single-post .du-city-pill {
  background: var(--du-teal, #2DD4BF);
  color: #0a1628;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
}
body.single-post .du-topic-pill {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
}
body.single-post .entry-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
}
body.single-post .entry-meta {
  color: rgba(255,255,255,.85);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
}
body.single-post .entry-meta a { color: rgba(255,255,255,.9); text-decoration: none; }

/* === 5. CONTENT ROW — 2-col grid, self-contained === */
body.single-post .du-content-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* === 6. CONTENT COLUMN === */
body.single-post .entry-content-wrap { min-width: 0; }
body.single-post .entry-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: #1a2332;
  max-width: 700px;
}
body.single-post .entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--du-navy, #0a1628);
  margin: 2.5rem 0 1rem;
}
body.single-post .entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--du-navy, #0a1628);
  margin: 2rem 0 .75rem;
}
body.single-post .entry-content p { margin: 0 0 1.4rem; }
body.single-post .entry-content a { color: var(--du-teal-dark, #0d9488); text-decoration: underline; text-underline-offset: 2px; }
body.single-post .entry-content ul,
body.single-post .entry-content ol { padding-left: 1.5rem; margin: 0 0 1.4rem; }
body.single-post .entry-content li { margin-bottom: .4rem; }
body.single-post .entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
body.single-post .entry-content table th { background: var(--du-navy, #0a1628); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
body.single-post .entry-content table td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; }
body.single-post .entry-content table tr:nth-child(even) td { background: #f9f9f7; }
body.single-post .entry-content .wp-block-pullquote { background: var(--du-sand, #F7F5F0); border-left: 4px solid var(--du-teal, #2DD4BF); padding: 20px 24px; margin: 2rem 0; border-radius: 0 8px 8px 0; }
body.single-post .entry-footer { margin-top: 20px; }

/* === 7. SIDEBAR === */
body.single-post .du-sidebar { align-self: start; }
body.single-post .du-sidebar-inner { position: sticky; top: 24px; }

body.single-post .du-sidebar-label {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--du-teal, #2DD4BF);
  margin: 0 0 6px;
}
body.single-post .du-sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--du-navy, #0a1628);
  margin: 0 0 14px;
}
body.single-post .du-sidebar-list { list-style: none; margin: 0 0 28px; padding: 0; }
body.single-post .du-sidebar-list li { border-bottom: 1px solid #e8e8e4; }
body.single-post .du-sidebar-list li:last-child { border-bottom: none; }
body.single-post .du-sidebar-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  text-decoration: none;
  color: #1a2332;
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  line-height: 1.4;
}
body.single-post .du-sidebar-list a:hover { color: var(--du-teal-dark, #0d9488); }
body.single-post .du-sidebar-list img,
body.single-post .du-sidebar-list .wp-post-image {
  width: 56px !important;
  height: 42px !important;
  max-width: 56px !important;
  object-fit: cover !important;
  border-radius: 4px;
  flex-shrink: 0;
}
body.single-post .du-sidebar-list span { flex: 1; min-width: 0; }

body.single-post .du-sidebar-cta {
  background: var(--du-navy, #0a1628);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
body.single-post .du-cta-label {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--du-teal, #2DD4BF);
  margin: 0 0 8px;
}
body.single-post .du-cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
body.single-post .du-cta-body {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 14px;
  line-height: 1.55;
}
body.single-post .du-cta-btn {
  display: inline-block;
  background: var(--du-teal, #2DD4BF);
  color: #0a1628;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
}
body.single-post .du-cta-btn:hover { opacity: .88; }

/* === 8. RELATED POSTS — block below content row === */
body.single-post .du-related {
  display: block;
  border-top: 1px solid #e5e7eb;
  padding-top: 48px;
  margin-top: 48px;
  background: #fff;
}
body.single-post .du-related-label {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--du-teal, #2DD4BF);
  margin: 0 0 6px;
}
body.single-post .du-related-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--du-navy, #0a1628);
  margin: 0 0 28px;
}
body.single-post .du-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
body.single-post .du-related-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform .15s, box-shadow .15s;
}
body.single-post .du-related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,22,40,.1); }
body.single-post .du-related-card img,
body.single-post .du-related-card .wp-post-image {
  width: 100% !important;
  height: 180px !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
}
body.single-post .du-related-card-body { padding: 14px 16px; }
body.single-post .du-related-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--du-teal, #2DD4BF);
  margin: 0 0 6px;
}
body.single-post .du-related-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  color: var(--du-navy, #0a1628);
  margin: 0 0 6px;
  line-height: 1.35;
}
body.single-post .du-related-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

/* === 9. NAV Z-INDEX — nav dropdowns above hero === */
body.single-post .site-header,
body.single-post #masthead { z-index: 9999 !important; position: relative; }
body.single-post .du-hero { z-index: 1; }
body.single-post .entry-header.post-title { z-index: 2; }

/* === 10. MOBILE === */
@media (max-width: 960px) {
  body.single-post article.entry { padding: 0 20px 40px; }
  body.single-post .du-hero { margin: 0 -20px; height: 280px; }
  body.single-post .entry-header.post-title { left: -20px; right: -20px; height: 280px; padding: 0 24px; }
  body.single-post .entry-title { font-size: 1.4rem; }
  body.single-post .du-content-row { grid-template-columns: 1fr; gap: 0; }
  body.single-post .du-sidebar { display: none; }
  body.single-post .du-related-grid { grid-template-columns: 1fr; }
}
@media (min-width: 961px) and (max-width: 1140px) {
  body.single-post .du-related-grid { grid-template-columns: repeat(2, 1fr); }
}