/*
Theme Name: Dentina Blog
Theme URI: https://dentina.ai
Author: Dentina.Ai
Author URI: https://dentina.ai
Description: SEO-optimized editorial theme for Dentina.Ai — extends the homepage experience into a high-performance content hub built to drive organic traffic.
Version: 3.3.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dentina-blog
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --d-ink: #1E2340;
  --d-ink-soft: #2a2f52;
  --d-purple: #6B2CF5;
  --d-purple-hover: #5038E4;
  --d-purple-glow: rgba(107, 44, 245, 0.12);
  --d-text: #3b3e4e;
  --d-text-faint: #8b90a8;
  --d-surface: #FFFFFF;
  --d-surface-dim: #F4F2F9;
  --d-surface-wash: rgb(234, 237, 246);
  --d-border: #EBE8F3;
  --d-border-faint: #F0EEF8;
  --d-blue-violet: #3C44D0;
  --d-sparkle-lilac: #A594F9;

  --d-font-display: 'Onest', sans-serif;
  --d-font-body: 'Onest', sans-serif;

  --d-radius: 10px;
  --d-radius-sm: 8px;
  --d-radius-btn: 999px;
  --d-radius-pill: 999px;
  --d-shadow-sm: 0 1px 3px rgba(30,35,64,0.08), 0 1px 2px rgba(30,35,64,0.06);
  --d-shadow-md: 0 4px 12px rgba(30,35,64,0.12), 0 2px 4px rgba(30,35,64,0.08);
  --d-shadow-lg: 0 8px 24px rgba(30,35,64,0.14), 0 4px 8px rgba(30,35,64,0.08);
  --d-shadow-card-hover: 0 4px 12px rgba(30,35,64,0.12), 0 2px 4px rgba(30,35,64,0.08);

  --d-max-w: 1200px;
  --d-content-w: 800px;
  --d-gutter: 1.5rem;

  --d-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --d-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: rgb(251, 251, 253);
}

body {
  font-family: var(--d-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--d-text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(165, 148, 249, 0.35);
  color: #1E2340;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--d-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   READING PROGRESS BAR
   ══════════════════════════════════════════════════════════════════════════ */
.d-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--d-purple) 0%, var(--d-sparkle-lilac) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--d-surface-wash);
}

.d-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 5px;
  padding: 15px 16px 15px 24px;
}

/* Logo */
.d-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.d-logo img {
  height: 26px;
  width: auto;
}

/* Nav */
.d-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.d-nav ul {
  display: flex;
  align-items: center;
  gap: inherit;
  list-style: none;
  padding: 0;
  margin: 0;
}

.d-nav li { margin: 0; }

@media (max-width: 1360px) {
  .d-nav { gap: 10px; }
}

.d-nav a {
  font-family: var(--d-font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--d-text);
  letter-spacing: 0.2px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.d-nav a:hover { color: var(--d-ink); }

.d-nav a[aria-current="page"] {
  color: var(--d-purple);
  font-weight: 600;
}

/* CTA Button */
.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 8px 16px;
  background: var(--d-purple);
  color: #fff;
  font-family: var(--d-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  border-radius: var(--d-radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s var(--d-ease-bounce), box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.d-btn:hover {
  background: var(--d-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--d-purple-glow);
  color: #fff;
}

.d-btn:active { transform: translateY(0); }

/* Ghost button */
.d-btn--ghost {
  background: none;
  color: var(--d-text);
  width: fit-content;
  letter-spacing: -0.3px;
  height: auto;
}

.d-btn--ghost:hover {
  background: var(--d-surface-dim);
  color: var(--d-ink);
  box-shadow: none;
  transform: none;
}

/* Mobile toggle */
.d-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 40px;
  padding: 14px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.d-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--d-text);
  border-radius: 10px;
  transition: 0.3s var(--d-ease);
}

.d-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.d-menu-toggle.open span:nth-child(2) { opacity: 0; }
.d-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════════════════════════════════════════
   BLOG ARCHIVE / INDEX
   ══════════════════════════════════════════════════════════════════════════ */
.d-archive-hero {
  position: relative;
  padding: 5rem var(--d-gutter) 4rem;
  text-align: center;
  background: var(--d-surface-dim);
  overflow: hidden;
}

.d-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--d-purple-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(107,44,245,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.d-archive-hero h1 {
  font-family: var(--d-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--d-ink);
  letter-spacing: -0.75px;
  margin-bottom: 0.625rem;
  position: relative;
}

.d-archive-hero p {
  font-size: 1.125rem;
  color: var(--d-text);
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

/* Post Grid */
.d-grid-wrap {
  max-width: var(--d-max-w);
  margin: 0 auto;
  padding: 3.5rem var(--d-gutter) 2rem;
}

.d-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Cards */
.d-card {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  overflow: hidden;
  transition: transform 0.35s var(--d-ease), box-shadow 0.35s var(--d-ease), border-color 0.3s;
}

.d-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--d-shadow-card-hover);
  border-color: transparent;
}

.d-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.d-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--d-ease);
}

.d-card:hover .d-card-thumb img { transform: scale(1.04); }

.d-card-body { padding: 1.5rem; }

.d-card-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-purple);
  margin-bottom: 0.5rem;
}

.d-card-cat:hover { text-decoration: underline; }

.d-card-title {
  font-family: var(--d-font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--d-ink);
  margin-bottom: 0.5rem;
}

.d-card-title a { transition: color 0.2s; }
.d-card-title a:hover { color: var(--d-purple); }

.d-card-excerpt {
  font-size: 0.9rem;
  color: var(--d-text);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.d-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--d-text-faint);
}

.d-card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--d-text-faint);
  border-radius: 50%;
}

/* Featured card */
.d-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: none;
  background: var(--d-surface-dim);
  border-radius: var(--d-radius);
}

.d-card--featured .d-card-thumb {
  aspect-ratio: auto;
  min-height: 360px;
  border-radius: var(--d-radius) 0 0 var(--d-radius);
}

.d-card--featured .d-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.d-card--featured .d-card-title {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.d-card--featured .d-card-excerpt {
  -webkit-line-clamp: 4;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE POST — HERO (stacked: image top, text below)
   ══════════════════════════════════════════════════════════════════════════ */
.d-single-hero {
  max-width: var(--d-content-w);
  margin: 0 auto;
  padding: 2rem var(--d-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.d-single-hero-img {
  order: -1;
  border-radius: var(--d-radius);
  overflow: hidden;
  box-shadow: var(--d-shadow-sm);
}

.d-single-hero-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.d-single-hero-text { padding: 0; }

.d-single-hero .d-card-cat { margin-bottom: 0.75rem; }

.d-single-hero h1 {
  font-family: var(--d-font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--d-ink);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.d-single-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--d-text-faint);
}

.d-single-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--d-text-faint);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════════════════ */
.d-breadcrumbs {
  max-width: var(--d-content-w);
  margin: 1.5rem auto 0;
  padding: 0 var(--d-gutter);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--d-text-faint);
}

.d-breadcrumbs a {
  color: var(--d-blue-violet);
  transition: color 0.2s;
}

.d-breadcrumbs a:hover { color: var(--d-purple); }

.d-breadcrumbs .sep {
  margin: 0 0.375rem;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARTICLE LAYOUT — TOC sidebar (desktop) / inline (mobile)
   ══════════════════════════════════════════════════════════════════════════ */
.d-article-wrap {
  display: grid;
  grid-template-columns: 1fr min(var(--d-content-w), 100% - 3rem) 1fr;
  align-items: start;
}

.d-article-wrap .d-content {
  grid-column: 2;
  max-width: 100%;
  padding: 1rem var(--d-gutter) 2rem;
  margin: 0;
}

/* TOC sidebar — sits in left 1fr gutter */
.d-toc-sidebar {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  padding-right: 24px;
  position: sticky;
  top: 100px;
  width: 220px;
}

.d-toc-sidebar .d-toc-inner {
  background: var(--d-surface-dim);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 16px 20px;
  box-shadow: var(--d-shadow-sm);
}

.d-toc-sidebar .d-toc-inner::before { display: none; }

.d-toc-sidebar .d-toc-label {
  font-family: var(--d-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--d-purple);
  margin-bottom: 12px;
}

.d-toc-sidebar .d-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.d-toc-sidebar .d-toc-list li {
  counter-increment: toc;
  margin-bottom: 2px;
}

.d-toc-sidebar .d-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--d-text);
  line-height: 1.4;
  transition: color 0.2s;
}

.d-toc-sidebar .d-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--d-font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--d-purple);
  flex-shrink: 0;
  min-width: 22px;
}

.d-toc-sidebar .d-toc-list a:hover { color: var(--d-purple); }

.d-toc-sidebar .d-toc-list a.toc-active {
  color: var(--d-purple);
  font-weight: 600;
}

/* Hide inline TOC on desktop */
.d-article-wrap .d-content .d-toc-inner { display: none; }

/* Mobile collapsible TOC toggle */
.d-toc-toggle-btn {
  display: none;
}

.d-toc-collapsible {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.d-toc-collapsible.open { max-height: 600px; }

/* ══════════════════════════════════════════════════════════════════════════
   TABLE OF CONTENTS (inline — used on mobile)
   ══════════════════════════════════════════════════════════════════════════ */
.d-toc {
  max-width: var(--d-content-w);
  margin: 2rem auto;
  padding: 0 var(--d-gutter);
}

.d-toc-inner {
  background: var(--d-surface-dim);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.d-toc-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--d-purple);
  border-radius: 0 2px 2px 0;
}

.d-toc-label {
  font-family: var(--d-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--d-text-faint);
  margin-bottom: 0.875rem;
}

.d-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.d-toc-list li {
  counter-increment: toc;
  margin-bottom: 0.25rem;
}

.d-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.9rem;
  color: var(--d-ink-soft);
  border-radius: var(--d-radius-sm);
  transition: color 0.2s, padding-left 0.2s var(--d-ease);
}

.d-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--d-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--d-purple);
  flex-shrink: 0;
  width: 1.5em;
}

.d-toc-list a:hover {
  color: var(--d-purple);
  padding-left: 0.375rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARTICLE CONTENT
   ══════════════════════════════════════════════════════════════════════════ */
.d-content {
  max-width: var(--d-content-w);
  margin: 0 auto;
  padding: 1rem var(--d-gutter) 2rem;
}

.d-content h2 {
  font-family: var(--d-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--d-ink);
  margin: 2.5rem 0 0.875rem;
  padding-top: 1.5rem;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.d-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.d-content h3 {
  font-family: var(--d-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--d-ink);
  margin: 2rem 0 0.625rem;
  line-height: 1.35;
}

.d-content h4 {
  font-family: var(--d-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--d-ink);
  margin: 1.5rem 0 0.5rem;
}

.d-content p {
  font-size: 16px;
  color: var(--d-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.d-content a {
  color: var(--d-blue-violet);
  text-decoration: underline;
  text-decoration-color: rgba(60, 68, 208, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.d-content a:hover {
  color: var(--d-purple);
  text-decoration-color: var(--d-purple);
}

.d-content strong {
  font-weight: 600;
  color: var(--d-ink);
}

.d-content ul,
.d-content ol {
  color: var(--d-text);
  margin: 0 0 1.5rem 0.75rem;
  font-size: 16px;
  line-height: 1.7;
  padding-left: 0.5rem;
}

.d-content li { margin-bottom: 0.25rem; }
.d-content li::marker { color: var(--d-purple); }

.d-content blockquote {
  border-left: 4px solid var(--d-purple);
  margin: 2rem 0;
  padding: 24px;
  background: var(--d-surface-dim);
  border-radius: 0 var(--d-radius) var(--d-radius) 0;
  font-style: normal;
  color: var(--d-text);
  font-size: 16px;
  line-height: 1.7;
  box-shadow: var(--d-shadow-sm);
}

.d-content blockquote p {
  color: var(--d-text);
  margin-bottom: 0;
  font-size: 16px;
}

.d-content img {
  border-radius: var(--d-radius);
  margin: 1.5rem 0;
  box-shadow: var(--d-shadow-sm);
}

.d-content figure { margin: 2rem 0; }

.d-content figcaption {
  font-size: 13px;
  color: var(--d-text-faint);
  text-align: center;
  margin-top: 0.75rem;
}

.d-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
  border-radius: var(--d-radius);
  overflow: hidden;
  border: 1px solid var(--d-border);
  box-shadow: var(--d-shadow-sm);
}

.d-content th {
  background: var(--d-purple);
  color: #FFFFFF;
  font-family: var(--d-font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 14px 16px;
}

.d-content td {
  background: #FFFFFF;
  padding: 12px 16px;
  border-bottom: 1px solid var(--d-border);
  color: var(--d-text);
}

.d-content tr:last-child td { border-bottom: none; }
.d-content td strong { color: var(--d-ink); font-weight: 700; }

.d-content pre {
  background: var(--d-ink);
  color: #e2e4e9;
  padding: 1.25rem 1.5rem;
  border-radius: var(--d-radius-sm);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.d-content code {
  background: var(--d-surface-dim);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--d-purple);
}

.d-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.d-content hr {
  border: none;
  height: 1px;
  background: var(--d-border);
  margin: 2.5rem 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════════════════════ */
.d-faq {
  margin: 1.5rem 0;
  border-top: 1px solid var(--d-border);
}

.d-faq-item {
  border-bottom: 1px solid var(--d-border);
}

.d-faq-item h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--d-ink);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.d-faq-item h3::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--d-purple);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform 0.2s;
}

.d-faq-item.open h3::after { transform: rotate(180deg); }
.d-faq-item h3:hover { color: var(--d-purple); }

.d-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.d-faq-item.open .d-faq-answer { max-height: 600px; }

.d-faq-answer p {
  padding-bottom: 18px;
  margin: 0;
  color: var(--d-text);
  font-size: 15px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTHOR BOX (hidden — removed from template)
   ══════════════════════════════════════════════════════════════════════════ */
.d-author-box { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   CTA ZONE
   ══════════════════════════════════════════════════════════════════════════ */
.d-cta-zone {
  max-width: var(--d-max-w);
  margin: 0 auto;
  padding: 1rem var(--d-gutter) 3rem;
}

.d-cta-fallback {
  background: linear-gradient(135deg, var(--d-ink) 0%, #1e2028 100%);
  border-radius: 20px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.d-cta-fallback::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,44,245,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.d-cta-fallback h3 {
  font-family: var(--d-font-display);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
}

.d-cta-fallback p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.d-cta-fallback .d-btn {
  font-size: 1rem;
  padding: 12px 32px;
  height: 48px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RELATED POSTS
   ══════════════════════════════════════════════════════════════════════════ */
.d-related {
  max-width: var(--d-max-w);
  margin: 0 auto;
  padding: 2rem var(--d-gutter) 4rem;
}

.d-section-title {
  font-family: var(--d-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--d-ink);
}

.d-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.d-pagination {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  padding: 0 var(--d-gutter) 4rem;
}

.d-pagination a,
.d-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--d-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--d-text);
  border: 1px solid var(--d-border);
  transition: all 0.2s var(--d-ease);
}

.d-pagination a:hover {
  border-color: var(--d-purple);
  color: var(--d-purple);
  background: rgba(107,44,245,0.04);
}

.d-pagination .current {
  background: var(--d-purple);
  color: #fff;
  border-color: var(--d-purple);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRE-FOOTER: SCHEDULE YOUR DEMO
   ══════════════════════════════════════════════════════════════════════════ */
.d-demo-section {
  max-width: 100%;
  width: 100%;
  background: transparent;
  margin: 0;
  padding: 4rem var(--d-gutter) 3rem;
}

.d-demo-header {
  max-width: var(--d-max-w);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.d-demo-header h2 {
  font-family: var(--d-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--d-purple);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.d-demo-header p {
  font-size: 1.0625rem;
  color: var(--d-text);
}

.d-demo-card {
  max-width: var(--d-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--d-surface-dim);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--d-shadow-md);
}

.d-demo-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.d-demo-logo { margin-bottom: 1.5rem; }

.d-demo-info h3 {
  font-family: var(--d-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--d-ink);
  margin-bottom: 1rem;
}

.d-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--d-purple);
  background: var(--d-surface);
  margin-bottom: 1rem;
  width: fit-content;
}

.d-demo-info > p {
  font-size: 0.9375rem;
  color: var(--d-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.d-demo-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.d-demo-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--d-ink);
  line-height: 1.4;
}

.d-demo-features svg { flex-shrink: 0; }

.d-demo-form {
  padding: 2.5rem 3rem;
  background: var(--d-surface);
}

/* HubSpot form overrides */
.d-demo-form .hs-form-field label {
  font-family: var(--d-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--d-ink) !important;
  margin-bottom: 4px !important;
}

.d-demo-form .hs-input {
  font-family: var(--d-font-body) !important;
  border: 1px solid var(--d-border) !important;
  border-radius: var(--d-radius-sm) !important;
  padding: 10px 14px !important;
  font-size: 0.9375rem !important;
  width: 100% !important;
}

.d-demo-form .hs-input:focus {
  border-color: var(--d-purple) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--d-purple-glow) !important;
}

.d-demo-form .hs-button {
  background: var(--d-purple) !important;
  color: #fff !important;
  font-family: var(--d-font-display) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: none !important;
  border-radius: var(--d-radius-btn) !important;
  padding: 12px 32px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.d-demo-form .hs-button:hover {
  background: var(--d-purple-hover) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.d-footer {
  background: var(--d-surface-wash);
  border-top: none;
  padding-top: 62px;
}

.d-footer-inner {
  max-width: var(--d-max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 48px 48px;
  gap: 40px;
}

/* Brand column */
.d-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  max-width: 380px;
  flex-shrink: 0;
}

.d-footer-logo {
  display: block;
  text-decoration: none;
}

.d-footer-logo img {
  height: 28px;
  width: auto;
}

.d-footer-tagline {
  font-size: 0.9375rem;
  color: var(--d-text);
  line-height: 1.55;
  margin: 0;
}

.d-footer-brand .d-btn { margin-top: 4px; }

/* Social links */
.d-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.d-footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--d-purple);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s var(--d-ease-bounce);
}

.d-footer-social a:hover {
  background: var(--d-purple-hover);
  transform: translateY(-1px);
}

.d-footer-social .d-social-icon {
  background: transparent;
  width: auto;
  height: auto;
}

.d-footer-social .d-social-icon svg {
  width: 18px;
  height: 18px;
}

/* Social icon circle */
.d-social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--d-purple);
  flex-shrink: 0;
}

.d-social-icon svg {
  width: 12px;
  height: 12px;
}

/* Quick Links column */
.d-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.d-footer-links li { margin-bottom: 0.375rem; }

.d-footer-links a {
  font-family: var(--d-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--d-text);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.7;
}

.d-footer-links a:hover { color: var(--d-purple); }

/* Column headings */
.d-footer-col h4 {
  font-family: var(--d-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--d-ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
  line-height: 24px;
}

/* Contact groups */
.d-footer-contact {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.d-footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.d-footer-contact-label {
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--d-text);
  margin-bottom: 4px;
}

.d-footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 24px;
  background: var(--d-surface);
  font-family: var(--d-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: var(--d-purple);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.d-footer-contact-link:hover { background: var(--d-surface-dim); }

.d-footer-divider {
  min-height: 18px;
  width: 1px;
  background: #CACEDB;
  margin-top: 36px;
  align-self: flex-start;
}

/* Bottom bar */
.d-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 50px;
  background: var(--d-surface-wash);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.3px;
  color: var(--d-text);
}

.d-footer-legal {
  display: flex;
  gap: 40px;
}

.d-footer-legal a {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.3px;
  color: var(--d-text);
  text-decoration: none;
  transition: color 0.2s;
}

.d-footer-legal a:hover { color: var(--d-purple); }

/* ══════════════════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.d-404 {
  text-align: center;
  padding: 7rem var(--d-gutter);
  max-width: 520px;
  margin: 0 auto;
}

.d-404-code {
  font-family: var(--d-font-display);
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--d-purple), var(--d-sparkle-lilac));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.d-404 h2 {
  font-family: var(--d-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.d-404 p {
  color: var(--d-text);
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
.d-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--d-ease), transform 0.6s var(--d-ease);
}

.d-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d-stagger > .d-card:nth-child(1) { transition-delay: 0s; }
.d-stagger > .d-card:nth-child(2) { transition-delay: 0.08s; }
.d-stagger > .d-card:nth-child(3) { transition-delay: 0.16s; }
.d-stagger > .d-card:nth-child(4) { transition-delay: 0.24s; }
.d-stagger > .d-card:nth-child(5) { transition-delay: 0.32s; }
.d-stagger > .d-card:nth-child(6) { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════════════════
   CASE STUDY TEMPLATE
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.d-cs-hero {
  max-width: var(--d-content-w);
  margin: 0 auto;
  padding: 2rem var(--d-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.d-cs-hero-img {
  border-radius: var(--d-radius);
  overflow: hidden;
  box-shadow: var(--d-shadow-sm);
}

.d-cs-hero-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.d-cs-hero h1 {
  font-family: var(--d-font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--d-ink);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

/* Body */
.d-cs-body {
  max-width: var(--d-content-w);
  margin: 0 auto;
  padding: 1rem var(--d-gutter) 2rem;
}

/* Snapshot — practice info strip */
.d-cs-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--d-border);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.d-cs-snapshot-item {
  background: var(--d-surface-dim);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--d-text);
  line-height: 1.5;
}

.d-cs-snapshot-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-purple);
  margin-bottom: 4px;
}

/* Metrics bar — headline stats */
.d-cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 2.5rem;
}

.d-cs-metric {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--d-shadow-sm);
}

.d-cs-metric-value {
  display: block;
  font-family: var(--d-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--d-purple);
  line-height: 1.2;
  margin-bottom: 6px;
}

.d-cs-metric-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--d-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Testimonial quote */
.d-cs-quote {
  margin: 2.5rem 0;
  padding: 32px;
  background: var(--d-surface-dim);
  border-left: 4px solid var(--d-purple);
  border-radius: 0 var(--d-radius) var(--d-radius) 0;
  box-shadow: var(--d-shadow-sm);
}

.d-cs-quote blockquote {
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.d-cs-quote blockquote p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--d-ink);
  font-style: normal;
  margin-bottom: 12px;
}

.d-cs-quote blockquote cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--d-purple);
}

/* Before / After comparison */
.d-cs-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2rem 0 2.5rem;
}

.d-cs-before,
.d-cs-after {
  border-radius: var(--d-radius);
  padding: 24px;
  border: 1px solid var(--d-border);
}

.d-cs-before {
  background: var(--d-surface);
}

.d-cs-after {
  background: var(--d-surface-dim);
  border-color: var(--d-purple);
}

.d-cs-before h4,
.d-cs-after h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.d-cs-before h4 { color: var(--d-text-faint); }
.d-cs-after h4 { color: var(--d-purple); }

.d-cs-before ul,
.d-cs-after ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.d-cs-before li,
.d-cs-after li {
  font-size: 14px;
  padding: 6px 0;
  color: var(--d-text);
  line-height: 1.5;
}

.d-cs-after li { color: var(--d-ink); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

/* ── ≤1200px — hamburger appears ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .d-header-inner { padding: 15px 16px 15px 84px; }
  .d-header-actions { margin-left: auto; }

  .d-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    flex-direction: column;
    background: #fff;
    z-index: 3;
    border-radius: 24px 24px 0 0;
    padding: 16px 24px 24px;
    gap: 24px;
    transition: transform 0.3s var(--d-ease);
    box-shadow: none;
  }

  .d-nav.open {
    transform: translateY(0);
    box-shadow: 0px -12px 120px 0px #5b5275;
  }

  .d-nav ul { flex-direction: column; gap: 24px; }

  .d-nav a {
    font-size: 18px;
    line-height: 32px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--d-ink);
  }

  .d-menu-toggle {
    display: flex;
    position: absolute;
    left: 13px;
    top: 14px;
  }

  .d-header-divider { display: none; }
  .d-header-actions .d-btn--ghost { display: none; }

  .d-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
  }

  .d-nav-backdrop.open { display: block; }

  .d-post-grid { grid-template-columns: repeat(2, 1fr); }

  .d-card--featured { grid-template-columns: 1fr; }

  .d-card--featured .d-card-thumb {
    min-height: 240px;
    border-radius: var(--d-radius) var(--d-radius) 0 0;
  }

  .d-card--featured .d-card-body { padding: 2rem; }

  .d-demo-card { grid-template-columns: 1fr; }
  .d-demo-info { padding: 2.5rem; }
  .d-demo-form { padding: 2rem 2.5rem; }

  .d-footer { border-top: none; }

  .d-footer-inner {
    flex-direction: column;
    padding: 0 40px 24px;
  }

  .d-footer-brand {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--d-border);
    gap: 12px;
  }

  .d-footer-tagline { width: 100%; order: 3; }
  .d-footer-brand .d-btn { order: 4; }
  .d-footer-social { order: 2; gap: 12px; }

  .d-footer-contact { gap: 20px; width: 100%; }

  .d-footer-divider {
    min-height: 88px;
    margin-top: 0;
    align-self: stretch;
  }

  .d-footer-bottom { padding: 14px 40px; }
  .d-footer-legal { gap: 25px; }

  .d-footer-bottom span,
  .d-footer-legal a {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.2px;
  }
}

/* ── ≤1100px — TOC collapses ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Switch article layout to single column */
  .d-article-wrap {
    display: block;
  }

  /* Hide sidebar TOC */
  .d-toc-sidebar { display: none; }

  /* Restore content max-width centering */
  .d-article-wrap .d-content {
    max-width: var(--d-content-w);
    margin: 0 auto;
    padding: 1rem var(--d-gutter) 2rem;
  }

  /* Show inline TOC */
  .d-article-wrap .d-content .d-toc-inner { display: block; }

  /* Mobile TOC toggle button */
  .d-toc-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--d-surface-dim);
    border: 1px solid var(--d-border);
    border-radius: var(--d-radius);
    padding: 12px 20px;
    font-family: var(--d-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--d-ink);
    cursor: pointer;
    margin-bottom: 0;
  }

  .d-toc-toggle-btn .chevron {
    transition: transform 0.2s;
    color: var(--d-purple);
    font-style: normal;
  }

  .d-toc-toggle-btn.open .chevron { transform: rotate(180deg); }

  /* Related posts — 2 col on tablet */
  .d-related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Demo section padding fallback */
  .d-demo-section { padding: 4rem 1.5rem 3rem; }

  /* Hero title scale */
  .d-single-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
}

/* ── ≤767px — Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --d-gutter: 1.25rem; }

  .d-header-inner { padding: 7px 3px 7px 15px; }

  .d-menu-toggle {
    position: relative;
    left: 0;
    top: 0;
    margin-left: auto;
  }

  .d-header-actions .d-btn:not(.d-btn--ghost) { width: auto; }

  .d-post-grid,
  .d-related-grid { grid-template-columns: 1fr; }

  .d-archive-hero { padding: 3.5rem var(--d-gutter) 2.5rem; }

  .d-single-hero h1,
  .d-cs-hero h1 { font-size: 1.75rem; }

  .d-cs-metrics { grid-template-columns: 1fr; }
  .d-cs-comparison { grid-template-columns: 1fr; }
  .d-cs-snapshot { grid-template-columns: 1fr 1fr; }
  .d-cs-quote { padding: 20px; }
  .d-cs-metric-value { font-size: 1.5rem; }

  .d-content h2 { font-size: 1.375rem; }
  .d-content h3 { font-size: 1.125rem; }

  .d-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .d-content img { width: 100%; height: auto; }

  .d-demo-section { padding: 2.5rem 1.25rem; }

  .d-footer-tagline span { white-space: normal; }
  .d-breadcrumbs { font-size: 0.75rem; }

  .d-demo-info { padding: 2rem 1.5rem; }
  .d-demo-form { padding: 1.5rem; }

  .d-footer-inner {
    flex-direction: column;
    gap: 2rem;
    padding: 0 16px 24px;
  }

  .d-footer-brand { max-width: 100%; width: 100%; }

  .d-footer-contact { flex-direction: column; gap: 16px; }

  .d-footer-divider {
    min-height: 1px;
    width: 100%;
    margin-top: 0;
  }

  .d-footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    text-align: center;
    gap: 0.5rem;
  }

  .d-footer-bottom .d-footer-disclaimer {
    white-space: normal;
  }

  .d-footer-legal {
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   WORDPRESS UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--d-text-faint); text-align: center; margin-top: 0.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* Header actions */
.d-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.d-header-divider {
  width: 1px;
  height: 18px;
  background: #CACEDB;
  margin: 0 10px;
}

@media (max-width: 1360px) {
  .d-header-divider { margin: 0 5px; }
}

.d-header-actions .d-btn:not(.d-btn--ghost) { width: 140px; }

/* Search form */
.d-search-form {
  display: flex;
  max-width: 420px;
  margin: 2rem auto;
}

.d-search-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--d-border);
  border-right: none;
  border-radius: var(--d-radius-pill) 0 0 var(--d-radius-pill);
  font-family: var(--d-font-body);
  font-size: 0.9375rem;
  color: var(--d-ink);
  outline: none;
  transition: border-color 0.2s;
}

.d-search-input:focus { border-color: var(--d-purple); }

/* WP pagination */
.d-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
}

.d-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--d-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--d-text);
  border: 1px solid var(--d-border);
  transition: all 0.2s var(--d-ease);
}

.d-pagination .page-numbers:hover {
  border-color: var(--d-purple);
  color: var(--d-purple);
  background: rgba(107,44,245,0.04);
}

.d-pagination .page-numbers.current {
  background: var(--d-purple);
  color: #fff;
  border-color: var(--d-purple);
}


