/* ============================================================
   DP ARTICLE STYLES — dp-article.css
   Enqueue via functions.php on target CPTs
   Font: https://fonts.googleapis.com/css2?family=Manrope:wght@600;700&family=Inter:wght@400;500;600&display=swap
   ============================================================ */

/* ── Meta bar ───────────────────────────────────────────── */

.dp-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.dp-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.dp-meta-author:hover .dp-meta-name {
  color: #5f43b2;
}

.dp-meta-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.dp-meta-author-info {
  display: flex;
  flex-direction: column;
}

.dp-meta-author-role {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.dp-meta-dates {
  display: flex;
  gap: 32px;
}

.dp-meta-date-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dp-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
}

.dp-meta-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.dp-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

/* ── Base ───────────────────────────────────────────────── */

.dp-content {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #1a1c1d;
  max-width: 100%;
}

.dp-content ul {
  margin-bottom: 20px;
}

.dp-content ul li,
.dp-content ol li {
      word-wrap: break-word;
}

/* ── Typography ─────────────────────────────────────────── */

.dp-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f0f0f;
  margin: 3.5rem 0 1.25rem;
}

.dp-content h2 em {
  font-style: normal;
  color: #5F43B2;
}

.dp-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5F43B2;
  margin: 2.5rem 0 1.25rem;
}

.dp-content p {
  margin: 0 0 1.5rem;
  color: #2d2d2d;
}

.dp-content strong {
  font-weight: 600;
  color: #0f0f0f;
}

.dp-content em {
  font-style: italic;
}

.dp-content a {
  color: #5F43B2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.dp-content a:hover {
  color: #4a33a0;
}

.dp-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0 3rem !important;
  display: block;
  height: 0;
  clear: both;
}

.dp-content hr + * {
  margin-top: 0;
}

.dp-content img {
  border-radius: 12px !important;
}

.dp-content table {
  margin-block-end: 0 !important;
}

/* ── Answer box ─────────────────────────────────────────── */

.dp-answer-box {
  background: radial-gradient(circle at 30% 50%, #f0edff 0%, #f9f9fb 70%);
  border-left: 3px solid #5F43B2;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 0 0 2.5rem;
}

.dp-answer-box p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: #3b2e8a;
  line-height: 1.65;
}

/* ── Table of Contents ──────────────────────────────────── */

.dp-toc {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 0 0 2.5rem;
  overflow: hidden;
}

.dp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.dp-toc-header:hover {
  background: #f3f4f6;
}

.dp-toc-title {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.dp-toc-icon {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.dp-toc.open .dp-toc-icon {
  transform: rotate(180deg);
}

.dp-toc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.dp-toc.open .dp-toc-body {
  max-height: 1200px;
}

.dp-toc-inner {
  padding: 20px 22px;
  border-top: 1px solid #e5e7eb;
}

.dp-toc ol,
.dp-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dp-toc > .dp-toc-body > .dp-toc-inner > ol {
  counter-reset: toc-main;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-toc > .dp-toc-body > .dp-toc-inner > ol > li {
  counter-increment: toc-main;
}

.dp-toc > .dp-toc-body > .dp-toc-inner > ol > li > a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.5;
}

.dp-toc > .dp-toc-body > .dp-toc-inner > ol > li > a::before {
  content: counter(toc-main);
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  min-width: 16px;
  flex-shrink: 0;
}

.dp-toc > .dp-toc-body > .dp-toc-inner > ol > li > a:hover {
  color: #5F43B2;
}

.dp-toc-sub {
  counter-reset: toc-sub !important;
  margin-top: 8px !important;
  margin-left: 28px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp-toc-sub > li {
  counter-increment: toc-sub;
}

.dp-toc-sub > li > a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  text-decoration: none;
  line-height: 1.5;
}

.dp-toc-sub > li > a::before {
  content: counter(toc-sub, lower-alpha);
  font-size: 10px;
  font-weight: 600;
  color: #d1d5db;
  min-width: 12px;
  flex-shrink: 0;
}

.dp-toc-sub > li > a:hover {
  color: #5F43B2;
}

.dp-content table tbody>tr:nth-child(odd)>td, .dp-content table tbody>tr:nth-child(odd)>th {
background: #fff;
}

/* ── Blockquote ─────────────────────────────────────────── */

.dp-content blockquote {
  border-left: 2px solid #5F43B2;
  padding: 6px 0 6px 24px;
  margin: 2rem 0 2.5rem;
}

.dp-content blockquote p {
  margin: 0;
  font-size: 20px;
  font-style: italic;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Definition box ─────────────────────────────────────── */

.dp-definition {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 0 0 2rem;
}

.dp-definition-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 6px;
}

.dp-definition p {
  margin: 0;
  font-size: 15px;
  color: #374151;
}

/* ── Bad box ────────────────────────────────────────────── */

.dp-box-bad {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 42px 32px;
  margin: 2.5rem 0;
}

.dp-box-bad h2,
.dp-box-good h2 {
  margin-top: 0 !important;
  margin-bottom: 1rem;
}

.dp-box-bad h3,
.dp-box-good h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.dp-box-bad > p,
.dp-box-good > p {
  font-size: 16px;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.dp-box-bad ul,
.dp-box-good ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dp-box-bad ul li,
.dp-box-good ul li {
  position: relative;
  padding: 16px 0 16px 36px;
  font-size: 16px;
  color: #2d2d2d;
  line-height: 1.65;
  border-bottom: 1px solid #f3f4f6;
}

.dp-box-bad ul li:last-child,
.dp-box-good ul li:last-child {
  border-bottom: none;
}

.dp-box-bad ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ── Good box ───────────────────────────────────────────── */

.dp-box-good {
  background: #fff;
  border: 1px solid #e0d9ff;
  border-radius: 12px;
  padding: 42px 32px;
  margin: 2.5rem 0;
}

.dp-box-good ul li {
  border-bottom: 1px solid #ede9fe;
}

.dp-box-good ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #5F43B2;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ── Table (single system for all tables) ───────────────── */

.dp-compare-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin: 0 0 1.5rem;
}

.dp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.dp-compare-table thead tr {
  background: #fff;
}

.dp-compare-table th {
  padding: 14px 18px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  border-top: 0;
  background: #fff;
  white-space: nowrap;
  border-top:0px!important;
}

.dp-compare-table th.col-donna {
  background: #faf9fb;
  color: #5F43B2;
  position: relative;
}

.dp-compare-table th.col-donna::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c5ce8, #5F43B2);
}

.dp-compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f3f4f6;
  border-left: 0;
  border-right: 0;
  color: #1a1a1a;
  background: #fff;
  vertical-align: middle;
  line-height: 1.5;
  font-size: 14px;
}

.dp-compare-table td:first-child {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  border-left: 0;
  white-space: nowrap;
}

.dp-compare-table tr:last-child td {
  border-bottom: none;
}

.dp-compare-table td.col-donna {
  background: #faf9fb !important;
  color: #1a1a1a;
  font-weight: 600;
}

/* Section header rows */
.dp-compare-table tr.dp-row-section td {
  background: #f9fafb !important;
  padding: 10px 18px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

/* Strong rows (totals) */
.dp-compare-table tr.dp-row-strong td {
  font-weight: 700;
  color: #0f0f0f;
  font-size: 15px;
}

.dp-compare-table tr.dp-row-strong td.col-donna {
  color: #5F43B2;
  font-size: 16px;
}

/* Sub rows (indented detail) */
.dp-compare-table tr.dp-row-sub td:first-child {
  padding-left: 28px;
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
}

.dp-compare-table tr.dp-row-sub td {
  font-size: 13px;
  color: #6b7280;
}

/* Highlight row (DonnaPro featured row in simple tables) */
.dp-compare-table tr.dp-row-highlight td {
  color: #5F43B2;
  font-weight: 600;
}

/* Hover */
.dp-compare-table tbody tr:hover td {
  background: #f9fafb!important;
}

.dp-compare-table tbody tr:hover td.col-donna {
  background: #f3f0ff !important;
}

.dp-compare-table tbody tr.dp-row-section:hover td {
  background: #f9fafb !important;
}

/* Caption */
.dp-compare-table caption,
.dp-compare figcaption {
    caption-side: bottom;
    padding: 1rem;
    font-size: 13px;
    color: #333;
    text-align: left;
}

/* ── FAQ ────────────────────────────────────────────────── */

.dp-content .faq {
  margin-top: 3.5rem;
}

.dp-faq {
  margin: 0 0 2.5rem;
}

.dp-faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.dp-faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.dp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  user-select: none;
}

.dp-faq-question::-webkit-details-marker { display: none; }

.dp-faq-question span:first-child {
  flex: 1;
}

.dp-faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #ede9fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.2s ease;
  position: relative;
}

.dp-faq-icon::before,
.dp-faq-icon::after {
  content: '';
  position: absolute;
  background: #5F43B2;
  border-radius: 2px;
}

.dp-faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.dp-faq-icon::after {
  width: 1.5px;
  height: 10px;
}

.dp-faq-item[open] .dp-faq-icon {
  background: #5F43B2;
  transform: rotate(45deg);
}

.dp-faq-item[open] .dp-faq-icon::before,
.dp-faq-item[open] .dp-faq-icon::after {
  background: #fff;
}

.dp-faq-answer {
  padding: 0 0 20px;
}

.dp-faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.75;
}

/* ── CTA buttons ────────────────────────────────────────── */

.dp-btn {
  display: inline-block;
  background: transparent;
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1.5px solid #d1d5db;
  margin: 0.25rem 0 2rem;
  transition: border-color 0.15s ease, color 0.15s ease;
  line-height: 1;
  letter-spacing: 0.01em;
}

.dp-btn:hover {
  border-color: #5F43B2 !important;
  color: #5F43B2 !important;
  background: transparent !important;
}

.dp-btn-ghost {
  border-color: #d1d5db;
  color: #374151 !important;
}

.dp-btn-ghost:hover {
  border-color: #5F43B2 !important;
  color: #5F43B2 !important;
}

.dp-btn-primary {
  background: #5F43B2;
  color: #fff !important;
  border-color: #5F43B2;
  padding: 13px 28px;
  font-size: 14px;
}

.dp-btn-primary:hover {
  background: #4a33a0 !important;
  border-color: #4a33a0 !important;
  color: #fff !important;
}

/* ── Author box ─────────────────────────────────────────── */

.dp-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 3rem 0 0;
}

.dp-author-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}

.dp-author-body {
  flex: 1;
  min-width: 0;
}

.dp-author-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dp-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dp-author-name {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f0f0f;
  text-decoration: none;
}

.dp-author-name:hover {
  color: #5F43B2;
}

.dp-author-role {
  font-size: 13px;
  color: #5F43B2;
  font-weight: 500;
}

.dp-author-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dp-author-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 6px;
  color: #374151;
  transition: background 0.15s ease, color 0.15s ease;
}

.dp-author-link:hover {
  background: #5F43B2;
  color: #fff;
}

.dp-author-link svg {
  width: 15px;
  height: 15px;
}

.dp-author-bio {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 767px) {

  .dp-meta-bar     { flex-wrap: wrap; gap: 16px; }
  .dp-meta-dates   { gap: 20px; }
  .dp-meta-label   { font-size: 10px; }
  .dp-meta-name    { font-size: 13px; }
  .dp-meta-value   { font-size: 13px; }

  .dp-content      { font-size: 16px; }
  .dp-content h2   { font-size: 24px; margin-top: 2.5rem; }
  .dp-content h3   { font-size: 15px; }

  .dp-toc-header   { padding: 14px 16px; }
  .dp-toc-inner    { padding: 16px 16px 20px; }

  .dp-box-bad,
  .dp-box-good     { padding: 30px 20px; }

  .dp-faq-question { font-size: 15px; padding: 16px 0; }
  .dp-faq-answer   { padding: 0 0 16px; }

  .dp-answer-box   { padding: 16px 18px; }

  .dp-btn          { margin: 0; }

  .dp-author-box   { flex-direction: column; align-items: center; text-align: center; }
  .dp-author-top   { flex-direction: column; align-items: center; }
  .dp-author-links { justify-content: center; }

  .dp-compare-scroll{
    position:relative;
  }

  .dp-compare-scroll::before{
    	content:"↔ Scroll left / right to see the full table ↔";
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 12px;
        font-size: 10px;
        font-weight: 500;
        color: #333;
        background: #f3f3f3;
        text-align: center;
        margin-bottom: 10px;
	}
}