/* Home showcase (front-page.php, inc/home-showcase.php) */

.dh-hero { margin: 20px 0 40px; }

.dh-hero-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: 20px;
}
.dh-hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0; color: var(--text-main);
}
.dh-tagline { margin: 8px 0 0; font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }
.dh-meta { margin: 6px 0 0; font-size: 0.85rem; color: var(--text-light); }

.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dh-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 9999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
  border: 1px solid var(--border-subtle); color: var(--text-main); background: var(--bg-card);
}
.dh-btn:hover { border-color: var(--primary); color: var(--primary); }
.dh-btn .dgl-icon { width: 18px; height: 18px; }
.dh-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.dh-btn-primary:hover { color: #fff; filter: brightness(1.08); }
[data-theme="dark"] .dh-btn-primary { color: #0b1220; }
.dh-btn-sm { padding: 7px 14px; font-size: 0.88rem; }

/* Screenshot: light image underneath, dark image clipped along a diagonal on top. */
.dh-shot {
  position: relative; margin: 0; width: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 50px -18px rgba(15, 23, 42, 0.45); background: var(--bg-surface);
}
.dh-shot-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dh-shot > .dh-shot-img { position: absolute; inset: 0; }
.dh-shot-dark-wrap {
  position: absolute; inset: 0; pointer-events: none;
  filter: drop-shadow(-2px 0 0 rgba(255, 255, 255, 0.85)) drop-shadow(-1px 0 6px rgba(0, 0, 0, 0.35));
}
.dh-shot-dark {
  position: absolute; inset: 0;
  clip-path: polygon(calc(var(--split) + 10%) 0, 100% 0, 100% 100%, calc(var(--split) - 10%) 100%);
}
.dh-split {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.dh-shot:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Placeholders (Customizer, ?home-preview=1, logged-in editors only) */
.dh-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--text-light); background: var(--bg-surface); color: var(--text-light);
  font-size: 0.9rem; padding: 16px; box-shadow: none;
}
.dh-ph-text { color: var(--text-light); font-style: italic; }
.dh-ph-btn { border-style: dashed; color: var(--text-light); }

/* Lower part: main column + small archive column on the right */
.dh-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start;
  margin-bottom: 48px;
}
.dh-main { display: grid; gap: 24px; }

.dh-card {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-card);
}
.dh-card:not(:has(.dh-card-media)) { grid-template-columns: 1fr; }
.dh-card-media { border-radius: var(--radius-md); overflow: hidden; }
.dh-card-media.dh-ph { aspect-ratio: 16 / 9; }
.dh-card-img { display: block; width: 100%; height: auto; }
.dh-card h2 { margin: 0 0 6px; font-size: 1.4rem; color: var(--text-main); }
.dh-card p { margin: 0 0 10px; color: var(--text-muted); line-height: 1.6; }
.dh-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.dh-strip { margin: 4px 0 14px; padding: 8px 10px; border-radius: 8px; background: #202020; display: inline-block; max-width: 100%; }
.dh-strip-img { display: block; max-width: 100%; height: auto; }

.dh-studio { border-style: dashed; }
.dh-badge {
  display: inline-block; padding: 3px 10px; border-radius: 9999px; font-size: 0.78rem; font-weight: 700;
  background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border);
}

.dh-aside {
  font-size: 0.9rem; padding: 16px 18px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); background: var(--bg-card);
}
.dh-aside h2, .dh-aside h3 {
  margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-light);
}
.dh-aside h3 { margin-top: 18px; }
.dh-aside-list { list-style: none; margin: 0; padding: 0; }
.dh-aside-list li { padding: 5px 0; border-top: 1px solid var(--border-subtle); line-height: 1.4; }
.dh-aside-list li:first-child { border-top: 0; }
.dh-aside-list a { color: var(--text-main); text-decoration: none; }
.dh-aside-list a:hover { color: var(--primary); }
.dh-aside-posts a { color: var(--text-muted); }

@media (max-width: 900px) {
  .dh-layout { grid-template-columns: 1fr; }
  .dh-card { grid-template-columns: 1fr; }
}
