/* DigiPaws Blog v1.0.1 — archive cards, empty state, single post, pager.
   Chrome (header/footer/hero typography) lives in dp-chrome.css. */

body.dp-blog #masthead,
body.dp-blog #colophon,
body.dp-blog .ast-scroll-to-top,
body.dp-blog .ast-scroll-top-icon,
body.dp-blog .ehf-header,
body.dp-blog header#masthead,
body.dp-blog footer#colophon {
  display: none !important;
}

body.dp-blog,
body.dp-blog.dp-canvas,
body.dp-blog #dp {
  margin: 0;
  background: #0B0B0F;
}

body.dp-blog .site,
body.dp-blog #page,
body.dp-blog #content,
body.dp-blog #primary,
body.dp-blog .site-content,
body.dp-blog .ast-container {
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
}

#dp .dp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#dp .dp-card {
  margin: 0;
  min-width: 0;
}

#dp .dp-card .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  padding: 26px 24px 24px;
  isolation: isolate;
  background: var(--ink2);
}

#dp .dp-card .tile .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}

#dp .dp-card .tile:hover .bg,
#dp .dp-card .tile:focus-visible .bg {
  transform: scale(1.08) rotate(1deg);
}

/* Work-style bottom fade, but stronger: ~90% of --ink (#0B0B0F) behind the text
   so white titles, #d7d7de excerpts and #FFDE59 links stay WCAG AA on bright photos. */
#dp .dp-card .tile:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(11, 11, 15, 0.92) 0%,
    rgba(11, 11, 15, 0.90) 38%,
    rgba(11, 11, 15, 0.72) 58%,
    rgba(11, 11, 15, 0.28) 78%,
    rgba(11, 11, 15, 0.08) 100%
  );
}

#dp .dp-card-body {
  position: relative;
  z-index: 2;
}

#dp .dp-card .tag {
  font-size: 13px;
  opacity: 1;
  color: #f2f2f4;
  margin-bottom: 10px;
}

#dp .dp-card h3 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

#dp .dp-excerpt {
  font: 400 15px/1.5 Inter, sans-serif;
  color: #d7d7de;
  margin: 0 0 16px;
  max-width: 36em;
}

#dp .dp-card .view {
  font-weight: 600;
  color: var(--amb);
  opacity: .85;
}

#dp .dp-card .tile:hover .view,
#dp .dp-card .tile:focus-visible .view {
  opacity: 1;
}

#dp .dp-card .tile:focus-visible {
  outline: 2px solid var(--amb);
  outline-offset: 3px;
}

#dp .dp-empty {
  text-align: center;
  max-width: 640px;
  margin: 10px auto 0;
  padding: 60px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--ink2);
}

#dp .dp-empty .eyebrow {
  justify-content: center;
}

#dp .dp-empty h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
}

#dp .dp-empty p {
  color: #c9c9d2;
  font-size: 18px;
  margin: 0 auto 28px;
}

#dp .dp-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 48px 0 0;
  align-items: center;
}

#dp .dp-pager a,
#dp .dp-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: #fff;
  font: 600 14px Inter, sans-serif;
  background: transparent;
}

#dp .dp-pager a:hover,
#dp .dp-pager a:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

#dp .dp-pager .current {
  background: var(--amb);
  color: var(--ink);
  border-color: var(--amb);
}

#dp .dp-pager .dots {
  border: 0;
  min-width: 24px;
  padding: 0;
  color: #a8a8b3;
}

/* Header current item (when Blog is in the plugin chrome) */
#dp .menu > li > a[aria-current="page"] {
  color: var(--amb);
}

/* Single post */
#dp .dp-article-wrap {
  padding: 70px 0 90px;
  background: var(--off);
  color: var(--ink);
}

#dp .dp-article {
  max-width: 760px;
  margin: 0 auto;
}

#dp .dp-article-hero {
  /* hero already has padding; featured image sits in the light section */
}

#dp .dp-featured {
  margin: 0 auto 40px;
  max-width: 1000px;
  border-radius: 26px;
  overflow: hidden;
}

#dp .dp-featured img {
  display: block;
  width: 100%;
  height: auto;
}

#dp .dp-meta {
  font-size: 14px;
  color: var(--slate);
  margin: 0 0 28px;
}

#dp .dp-meta a {
  color: var(--navy);
  font-weight: 600;
}

#dp .dp-prose {
  font: 400 18px/1.7 Inter, sans-serif;
  color: var(--ink);
}

#dp .dp-prose > * + * {
  margin-top: 1.15em;
}

#dp .dp-prose h2,
#dp .dp-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

#dp .dp-prose h2 { font-size: 32px; }
#dp .dp-prose h3 { font-size: 24px; }

#dp .dp-prose a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#dp .dp-prose a:hover {
  color: var(--ambd);
}

#dp .dp-prose ul,
#dp .dp-prose ol {
  padding-left: 1.3em;
}

#dp .dp-prose img,
#dp .dp-prose figure {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

#dp .dp-prose blockquote {
  border-left: 3px solid var(--amb);
  padding: 4px 0 4px 20px;
  color: var(--slate);
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}

#dp .dp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
}

#dp .dp-back:hover { color: var(--ambd); }

/* Preview banner (static HTML only; not used on live) */
.dp-preview-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #FFDE59;
  color: #0B0B0F;
  text-align: center;
  font: 600 13px/1.4 Inter, sans-serif;
  padding: 8px 16px;
  letter-spacing: .02em;
}

@media (max-width: 980px) {
  #dp .dp-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #dp .dp-card h3 { font-size: 24px; }
}

@media (max-width: 640px) {
  #dp .dp-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #dp .dp-card .tile {
    min-height: 280px;
    padding: 22px 18px 20px;
    border-radius: 20px;
  }
  #dp .dp-article-wrap { padding: 40px 0 60px; }
  #dp .dp-prose { font-size: 17px; }
  #dp .dp-prose h2 { font-size: 26px; }
  #dp .dp-empty { padding: 40px 16px; }
}
