:root {
  --text-main: rgba(248, 250, 252, 0.9);
}
img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.dd-no-before li::before {
    display: none !important;
    left: inherit !important;
    top: inherit !important;
    width: inherit !important;
    height: inherit !important;
    background: inherit !important;
    border-radius: inherit !important;
}

.dd-no-before li {
  margin: inherit !important;
  padding-left: inherit !important;
  position: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* Layout */

.dd-main {
  padding: calc(var(--dd-section-padding-y) * 0.6) 1.25rem
    calc(var(--dd-section-padding-y) * 1.1);
}

@media (max-width: 768px) {
  .dd-main {
    padding: calc(var(--dd-section-padding-y) * 0.5) 1rem calc(var(--dd-section-padding-y) * 0.8);
  }
}

@media (max-width: 540px) {
  .dd-main {
    padding: calc(var(--dd-section-padding-y) * 0.4) 0.85rem calc(var(--dd-section-padding-y) * 0.6);
  }
}

.dd-single-post-container {
  max-width: 1500px;
  margin: 0 auto;
}

/* Meta ribbon */

.dd-post-meta-ribbon {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 1.1rem;
  margin-bottom: 1.75rem;
  border-radius: var(--dd-radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.75);
}

.try-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--dd-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dd-text) !important;
  text-underline-offset: 0px !important;
  background: var(--dd-accent);
  border: none;
  border-radius: 5px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--dd-transition-med), transform var(--dd-transition-fast), box-shadow var(--dd-transition-fast) !important;
}

.try-button:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.try-button:active {
    transform: translateY(0);
}

.try-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Light theme adjustment */
@media (prefers-color-scheme: light) {
    .try-button {
        background-color: #4f46e5;
    }
    
    .try-button:hover {
        background-color: #4338ca;
    }
}



@media (max-width: 900px) {
  .dd-post-meta-ribbon {
    gap: 0.8rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .dd-post-meta-ribbon {
    padding: 0.5rem 0.8rem;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 540px) {
  .dd-post-meta-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    margin-bottom: 1.1rem;
  }
}

.dd-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.dd-meta-item--compact {
  gap: 0.4rem;
}

.dd-meta-label {
  font-size: 0.82rem;
  color: var(--dd-text-softer);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .dd-meta-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 540px) {
  .dd-meta-label {
    font-size: 0.7rem;
  }
}

.dd-meta-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dd-text-soft);
}

.dd-meta-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .dd-meta-tags {
    gap: 0.25rem;
  }
}

/* Tags & chips */

.dd-tag {
  padding: 0.2rem 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.78rem;
  color: var(--dd-text-soft);
}

.dd-tag--pill {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.95));
  border-color: rgba(129, 140, 248, 0.7);
}

/* Featured section */

.dd-featured-wrapper {
  margin-bottom: 2.5rem;
}

.dd-featured-card {
  background: #0f172a;
  border-radius: var(--dd-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr);
  gap: 0;
  contain: layout style;
}

@media (max-width: 1024px) {
  .dd-featured-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dd-featured-card {
    grid-template-columns: 1fr;
  }
}

.dd-featured-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dd-featured-img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.dd-featured-card:hover .dd-featured-img {
  transform: scale(1.12);
}

.dd-featured-overlay {
  position: absolute;
  inset: 0;
}

.dd-featured-pulse {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  top: 45%;
  left: -80px;
  transform: translateY(-50%);
  mix-blend-mode: screen;
  opacity: 0.4;
  display: none;
}

.dd-featured-body {
  padding: 1.75rem 1.9rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

@media (max-width: 768px) {
  .dd-featured-body {
    padding: 1.5rem 1.5rem 1.6rem;
  }
}

@media (max-width: 540px) {
  .dd-featured-body {
    padding: 1.2rem 1.2rem 1.3rem;
  }
}

.dd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--dd-text-softer);
}

.dd-breadcrumb span a {
  color: var(--dd-text-softer);
  text-decoration: none;
}

.dd-post-seperator {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.dd-breadcrumb span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dd-breadcrumb-separator::before {
  content: "•";
  opacity: 0.4;
}

.dd-breadcrumb-current {
  color: var(--dd-text-soft);
}

.dd-post-title {
  font-family: var(--dd-font-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0;
}

.dd-post-excerpt {
  margin: 0;
  font-size: 0.98rem;
  color: var(--dd-text-soft);
  max-width: 34rem;
}

.dd-brand {
  color: var(--dd-accent-2);
  font-weight: 600;
}

/* Content layout */

.dd-content-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.75rem;
}

@media (max-width: 768px) {
  .dd-content-layout {
    gap: 1.5rem;
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 540px) {
  .dd-content-layout {
    gap: 0;
    margin-bottom: 1.75rem;
  }
}

/* Post bottom */

.dd-post-bottom {
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (max-width: 768px) {
  .dd-post-bottom {
    margin-bottom: 1.8rem;
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .dd-post-bottom {
    margin-bottom: 1.4rem;
    gap: 0.8rem;
  }
}

.dd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.dd-chip-label {
  font-size: 0.84rem;
  color: var(--dd-text-softer);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dd-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dd-tag-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  color: var(--dd-text-soft);
  padding: 0.3rem 0.8rem;
  font-size: 0.83rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  will-change: transform;
}

.dd-tag-chip:hover {
  border-color: rgba(129, 140, 248, 0.8);
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.85), rgba(15, 23, 42, 0.98));
  color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

/* Reactions */

.dd-post-quick-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dd-reaction-btn {
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.22rem 0.75rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--dd-text-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  will-change: transform;
}

.dd-reaction-btn:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.9);
  background: radial-gradient(circle at top, rgba(236, 72, 153, 0.85), rgba(15, 23, 42, 0.98));
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.55);
}

.dd-reaction-icon {
  font-size: 1rem;
}

/* Share */

.dd-share-section {
  margin-bottom: 2.6rem;
}

.dd-share-card {
  border-radius: var(--dd-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: 1.4rem 1.55rem;
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.5fr);
  gap: 1rem;
  align-items: center;
}

@media (max-width: 768px) {
  .dd-share-card {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.3rem;
    gap: 0.8rem;
  }
}

@media (max-width: 540px) {
  .dd-share-card {
    grid-template-columns: 1fr;
    padding: 1rem 1.1rem;
    gap: 0.7rem;
  }
}

.dd-share-main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dd-share-title {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--dd-font-display);
}

.dd-share-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

.dd-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dd-share-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
  transition: transform var(--dd-transition-fast), box-shadow var(--dd-transition-fast),
    border var(--dd-transition-fast), background var(--dd-transition-fast);
}

@media (max-width: 540px) {
  .dd-share-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

.dd-share-btn svg {
  font-size: 0.9rem;
}

.dd-share-btn--twitter {
  border-color: rgba(56, 189, 248, 0.9);
}

.dd-share-btn--facebook {
    border-color: rgba(59, 89, 152, 0.9);
}

.dd-share-btn--instagram {
    border-color: rgba(193, 53, 132, 0.9);
}

.dd-share-btn--linkedin {
  border-color: rgba(37, 99, 235, 0.9);
}

.dd-share-btn--copy {
  border-color: rgba(148, 163, 184, 0.75);
}

.dd-share-btn:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.85);
}

.dd-share-btn--copied {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(34, 197, 94, 0.1);
  color: rgba(34, 197, 94, 1);
}

/* TOC Sidebar */

.dd-sidebar-card {
  border-radius: var(--dd-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.9rem 0.95rem;
  box-shadow: var(--dd-shadow-subtle);
  width: fit-content;
  min-width: 300px;
  top: 100px;
}

.dd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.dd-card-title {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dd-text-soft);
}

.dd-card-title svg {
  font-size: 0.88rem;
}

/* TOC */
.dd-toc {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dd-toc-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--dd-text-softer);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.3rem;
  border-radius: var(--dd-radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--dd-transition-fast), color var(--dd-transition-fast),
    transform var(--dd-transition-fast);
}

.dd-toc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  flex-shrink: 0;
}

.dd-toc-item:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--dd-text-soft);
  transform: translateX(1px);
}

.dd-toc-item-active {
  background: rgba(30, 64, 175, 0.5);
  color: var(--dd-text);
  width: fit-content;
}

.dd-toc-item-active .dd-toc-dot {
  background: linear-gradient(135deg, var(--dd-accent), var(--dd-accent-2));
  border-color: transparent;
}

/* Comments */

.dd-comments {
  border-radius: var(--dd-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: 1.7rem 1.8rem 1.75rem;
  contain: layout style;
}

@media (max-width: 768px) {
  .dd-comments {
    padding: 1.4rem 1.5rem 1.45rem;
    border-radius: var(--dd-radius-md);
  }
}

@media (max-width: 540px) {
  .dd-comments {
    padding: 1.1rem 1.2rem 1.15rem;
  }
}

.dd-comments-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.dd-comments-title {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-family: var(--dd-font-display);
}

@media (max-width: 768px) {
  .dd-comments-title {
    font-size: 1rem;
  }
}

@media (max-width: 540px) {
  .dd-comments-title {
    font-size: 0.95rem;
  }
}

.dd-comments-subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: var(--dd-text-softer);
}

.dd-comments-meta {
  font-size: 0.82rem;
  color: var(--dd-text-softer);
}

.dd-comments-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dd-comment-form {
  margin-bottom: 1.4rem;
}

.dd-comment-form-header {
  display: flex;
  gap: 0.8rem;
}

.dd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.9), rgba(15, 23, 42, 1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.dd-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.dd-avatar--accent {
  background: radial-gradient(circle at top, rgba(236, 72, 153, 0.9), rgba(15, 23, 42, 1));
}

.dd-comment-form-main {
  flex: 1;
}

.dd-input {
  width: 100%;
  border-radius: var(--dd-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  color: var(--dd-text);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  resize: vertical;
  min-height: 44px;
  transition: border var(--dd-transition-fast), box-shadow var(--dd-transition-fast),
    background var(--dd-transition-fast), transform var(--dd-transition-fast);
}

.dd-input::placeholder {
  color: var(--dd-text-softer);
}

.dd-input:focus {
  border-color: rgba(99, 102, 241, 0.95);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.65), 0 0 18px rgba(99, 102, 241, 0.75);
  background: rgba(15, 23, 42, 0.99);
  transform: translateY(-1px);
}

.dd-input--textarea {
  min-height: 80px;
}

.dd-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dd-primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--dd-radius-pill);
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-2));
  color: var(--dd-text);
  font-family: var(--dd-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 12px -3px rgba(99, 102, 241, 0.25);
  transition: box-shadow 0.3s ease;
  width: auto;
  max-width: fit-content;
  flex-shrink: 0;
}

.dd-primary-btn__content {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.dd-primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.dd-primary-btn:hover::before {
  transform: translateY(0);
}

.dd-primary-btn:hover .dd-primary-btn__content {
  transform: translateX(3px);
}

.dd-primary-btn:hover {
  box-shadow: 0 12px 18px -4px rgba(99, 102, 241, 0.4);
}

.dd-primary-btn--primary {
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-2));
  color: var(--dd-text);
}

/* Comment list */

.dd-comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dd-comment {
  display: flex;
  gap: 0.75rem;
}

.dd-comment--reply {
  margin-top: 0.7rem;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}

.dd-comment-avatar {
  flex-shrink: 0;
}

.dd-comment-body {
  flex: 1;
  padding-bottom: 0.6rem;
}

.dd-comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.1rem;
}

.dd-comment-author {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.dd-comment-meta {
  display: flex;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--dd-text-softer);
}

.dd-comment-content {
  font-size: 0.9rem;
  color: var(--dd-text-soft);
  margin-top: 0.25rem;
}

.dd-comment-footer {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.6rem;
}

/* Toast */

.dd-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  padding: 0.55rem 0.95rem;
  border-radius: var(--dd-radius-pill);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(52, 211, 153, 0.9);
  color: #bbf7d0;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dd-transition-med), opacity var(--dd-transition-med);
  z-index: 50;
}

.dd-toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.9);
  color: #dcfce7;
  font-size: 0.75rem;
}

.dd-toast.dd-toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Toast Types */
.dd-toast.dd-toast-success {
  border-color: rgba(52, 211, 153, 0.9);
  color: #bbf7d0;
}

.dd-toast.dd-toast-success .dd-toast-icon {
  background: rgba(22, 163, 74, 0.9);
  color: #dcfce7;
}

.dd-toast.dd-toast-error {
  border-color: rgba(239, 68, 68, 0.9);
  color: #fecaca;
}

.dd-toast.dd-toast-error .dd-toast-icon {
  background: rgba(220, 38, 38, 0.9);
  color: #fee2e2;
}

.dd-toast.dd-toast-info {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
}

.dd-toast.dd-toast-info .dd-toast-icon {
  background: rgba(37, 99, 235, 0.9);
  color: #dbeafe;
}

/* Comment Pagination */
.dd-comment-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.dd-comment-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--dd-radius-pill);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--dd-text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dd-transition-fast);
}

.dd-comment-pagination .page-numbers:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--dd-text);
  transform: translateY(-1px);
}

.dd-comment-pagination .page-numbers.current {
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-2));
  border-color: var(--dd-accent);
  color: var(--dd-text);
  font-weight: 600;
}

.dd-comment-pagination .page-numbers.prev,
.dd-comment-pagination .page-numbers.next {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
}

.dd-comment-pagination .page-numbers svg {
  width: 14px;
  height: 14px;
}

.dd-comment-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--dd-text-softer);
  cursor: default;
  min-width: auto;
  padding: 0 0.5rem;
}

.dd-comment-pagination .page-numbers.dots:hover {
  background: transparent;
  border: none;
  color: var(--dd-text-softer);
  transform: none;
}

/* Article Content */

/* Chips & toggles */
.dd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--dd-radius-pill);
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  width: fit-content;
}

.dd-chip svg {
  font-size: 0.8rem;
}

.dd-chip-soft {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--dd-text-soft);
}

/* Post article */
.dd-post {
  background: #0f1729;
  border-radius: var(--dd-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: 1.75rem 1.5rem 2.25rem;
  overflow: hidden;
  position: relative;
  contain: layout style;
  width: 100%;
}

@media (max-width: 768px) {
  .dd-post {
    padding: 1.4rem 1.2rem 1.8rem;
    border-radius: var(--dd-radius-md);
  }
}

@media (max-width: 540px) {
  .dd-post {
    padding: 1.1rem 1rem 1.5rem;
    border-radius: var(--dd-radius-md);
  }
}

.dd-post::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148, 163, 184, 0.12);
  pointer-events: none;
  opacity: 0.4;
}

.dd-post-header {
  margin-bottom: 1.5rem;
}

.dd-post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .dd-post-kicker {
    margin-bottom: 0.8rem;
    gap: 0.4rem;
  }

  .dd-chip {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
  }
}

@media (max-width: 540px) {
  .dd-post-kicker {
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
  }

  .dd-chip {
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
  }
}

.dd-post-title {
  font-family: var(--dd-font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

@media (max-width: 768px) {
  .dd-post-title {
    font-size: clamp(1.4rem, 5vw, 1.95rem);
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 540px) {
  .dd-post-title {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
}

.dd-post-excerpt {
  margin: 0 0 1.25rem;
  color: var(--dd-text-soft);
  font-size: 0.98rem;
}

@media (max-width: 768px) {
  .dd-post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 540px) {
  .dd-tag {
    font-size: 0.5rem;
  }

  .dd-primary-btn {
    font-size: 0.65rem;
    width: 100%;
  }

  .dd-meta-value {
    font-size: 0.6rem;
  }
}

.dd-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

/* Sections */
.dd-section {
  padding-top: 1.3rem;
  padding-bottom: 0.2rem;
}

.dd-section + .dd-section {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: 1.1rem;
}

.dd-post-content {
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-deep) 0%, rgba(15, 23, 42, 0.8) 100%);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.dd-post-content h1,
.dd-post-content h2,
.dd-post-content h3,
.dd-post-content h4,
.dd-post-content h5,
.dd-post-content h6 {
    color: var(--text-main);
    line-height: 1.3;
    position: relative;
    letter-spacing: -0.02em;
    width: fit-content;
}

.dd-post-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
    padding-bottom: 0.5em;
    border-bottom: 3px solid var(--dd-accent);
}

.dd-post-content h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--dd-font-display);
    font-size: 1.5em;
    margin: 0 0 0.7rem;
}

.dd-post-content h3 {
    position: relative;
    padding-left: 1.1em;
    font-size: 1.17em;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.96);
}

.dd-post-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    border-radius: var(--dd-radius-pill);
    background: var(--dd-accent);
}

.dd-post-content h4 {
    font-size: 1em;
    margin: 1em 0;
    color: rgba(248, 250, 252, 0.9);
}

.dd-post-content h5 {
    font-size: 0.83em;
    margin: 1.17em 0;
    color: rgba(248, 250, 252, 0.9);
    font-weight: 700;
}

.dd-post-content h6 {
    font-size: 0.67em;
    margin: 1.33em 0;
    color: var(--text-dim);
    font-weight: 700;
}

.dd-post-content a {
    color: var(--dd-accent);
    text-decoration: underline dashed;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.dd-post-content a:hover {
    color: var(--dd-accent-2);
}

.dd-post-content p {
    font-size: 1em;
    line-height: 1.8;
    margin: 1em 0;
    color: rgba(248, 250, 252, 0.9);
}

.dd-post-content p+p {
    margin-top: 1.5rem;
}

.dd-post-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    color: var(--dd-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.dd-post-content pre {
    background: #0a0e27;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
    position: relative;
    font-size: 0.875em;
}

.dd-post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e0e7ff;
    font-size: 1em;
    line-height: 1.6;
}

.dd-post-content blockquote {
    border-left: 4px solid var(--dd-accent);
    margin: 1em 0;
    padding: 1em;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 6px;
    color: rgba(248, 250, 252, 0.85);
    position: relative;
    font-style: italic;
    font-size: 1em;
    line-height: 1.7;
}

.dd-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 1em;
}

.dd-post-content table thead {
    background: rgba(99, 102, 241, 0.1);
}

.dd-post-content table th {
    padding: 0.75em 1em;
    text-align: left;
    color: var(--dd-accent);
    font-weight: 700;
    font-size: 1em;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.dd-post-content table td {
    padding: 0.75em 1em;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    color: rgba(248, 250, 252, 0.8);
    font-size: 1em;
}

.dd-post-content table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.dd-post-content hr {
    border: none;
    height: 1px;
    background: rgba(99, 102, 241, 0.25);
    margin: 3rem 0;
}

.dd-post-content strong,
.dd-post-content b {
    color: var(--text-main);
    font-weight: 700;
}

.dd-post-content em,
.dd-post-content svg {
    color: var(--text-main);
    font-style: italic;
}

.dd-post-content dl {
    margin: 1em 0;
}

.dd-post-content dt {
    font-weight: 700;
    color: var(--dd-accent);
    margin-top: 1em;
    margin-bottom: 0.25em;
    font-size: 1em;
}

.dd-post-content dd {
    margin-left: 1.5em;
    margin-bottom: 1em;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.7;
    font-size: 1em;
}

.dd-post-content-button,
.dd-post-content .btn-custom {
    background: var(--dd-accent);
    color: #fff;
    padding: 0.5em 1em;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0.5em 0.25em 0.5em 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.dd-post-content .btn-custom:hover {
    background: var(--accent-strong);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
    transform: translateY(-1px);
}

*/ .dd-post-content mark {
    background: rgba(236, 72, 153, 0.2);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    color: inherit;
}

.dd-post-content small {
    color: var(--text-dim);
    font-size: 0.8em;
}

@media (max-width: 1024px) {
    .dd-post-content {
        font-size: 15px;
    }

    .dd-post-content h1 {
        font-size: 1.75em;
    }

    .dd-post-content h2 {
        font-size: 1.35em;
    }

    .dd-post-content h3 {
        font-size: 1.1em;
    }

    .dd-post-content p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .file-actions {
        opacity: 1;
    }
    .dd-code-symbol {
        font-size: 12px;
    }
    .dd-post-content {
        font-size: 14px;
    }

    .dd-post-content h1 {
        font-size: 1.8em;
        margin-bottom: 0.5em;
        padding-bottom: 0.4em;
    }

    .dd-post-content h2 {
        font-size: 1.4em;
        margin-top: 1em;
        padding-bottom: 0.4em;
    }

    .dd-post-content h3 {
        font-size: 1.15em;
    }

    .dd-post-content h3::before {
        width: 6px;
        height: 6px;
    }

    .dd-post-content h4 {
        font-size: 1em;
    }

    .dd-post-content p {
        font-size: 1em;
        line-height: 1.7;
    }

    .dd-post-content ul,
    .dd-post-content ol {
        padding-left: 1.5em;
        margin: 0.8em 0;
    }

    .dd-post-content ul li,
    .dd-post-content ol li {
        font-size: 1em;
        margin: 0.4em 0;
    }

    .dd-post-content ol li {
        padding-left: 1.8em;
    }

    .dd-post-content table {
        margin: 1em 0;
    }

    .dd-post-content table th,
    .dd-post-content table td {
        padding: 0.5em 0.75em;
    }

    .dd-post-content pre {
        padding: 0.75em;
        font-size: 0.8em;
        margin: 1em 0;
    }

    .dd-post-content blockquote {
        padding: 0.75em;
        font-size: 1em;
        margin: 1em 0;
    }

    .dd-post-content button,
    .dd-post-content .btn-custom {
        padding: 0.4em 0.8em;
        font-size: 0.9em;
        margin: 0.5em 0.25em 0.5em 0;
    }
}

@media (max-width: 480px) {
    .dd-post-content {
        font-size: 13px;
    }

    .dd-post-content h1 {
        font-size: 1.7em;
        padding-bottom: 0.3em;
        margin: 0.5em 0;
    }

    .dd-post-content h2 {
        font-size: 1.3em;
        padding-bottom: 0.3em;
        margin-top: 0.8em;
    }

    .dd-post-content h3 {
        font-size: 1.1em;
    }

    .dd-post-content h4 {
        font-size: 0.95em;
    }

    .dd-post-content h5 {
        font-size: 0.8em;
    }

    .dd-post-content h6 {
        font-size: 0.65em;
    }

    .dd-post-content p {
        font-size: 1em;
        line-height: 1.65;
        margin: 0.7em 0;
    }

    .dd-post-content table {
        margin: 0.8em 0;
    }

    .dd-post-content table th,
    .dd-post-content table td {
        padding: 0.4em;
    }

    .dd-post-content code {
        font-size: 0.8em;
    }

    .dd-post-content pre {
        padding: 0.6em;
        font-size: 0.75em;
        margin: 0.8em 0;
    }

    .dd-post-content blockquote {
        border-left: 3px solid var(--dd-accent);
        padding: 0.6em;
        font-size: 1em;
        margin: 0.8em 0;
    }

    .dd-post-content button,
    .dd-post-content .btn-custom {
        padding: 0.35em 0.7em;
        font-size: 0.85em;
        margin: 0.4em 0.2em 0.4em 0;
    }

    .dd-post-content img {
        margin: 1em 0;
        border-radius: 8px;
    }

    .dd-post-content hr {
        margin: 1.5em 0;
    }

    .dd-post-content dl {
        margin: 0.8em 0;
    }

    .dd-post-content dt {
        margin-top: 0.8em;
        margin-bottom: 0.2em;
    }

    .dd-post-content dd {
        margin-left: 1.2em;
        margin-bottom: 0.8em;
    }
}

.dd-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(129, 140, 248, 0.8);
  color: #e0e7ff;
}

.dd-post-content li::marker {
  color: var(--dd-accent);
}

.dd-tech-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.dd-grid-desktop-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.dd-grid-desktop-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dd-grid-desktop-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dd-grid-desktop-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) and (min-width: 768px) {
  .dd-grid-tablet-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .dd-grid-tablet-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dd-grid-tablet-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dd-grid-mobile-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .dd-grid-mobile-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 768px) {
  .dd-tech-grid {
    gap: 0.6rem;
    margin-top: 0.6rem;
  }
}

@media (max-width: 540px) {
  .dd-tech-grid {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}

.dd-tech-card {
  border-radius: var(--dd-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.7));
  padding: 0.7rem 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  row-gap: 0.2rem;
  align-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

.dd-tech-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.9);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.65));
}

.dd-tech-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(129, 140, 248, 0.85);
  color: #c7d2fe;
  font-size: 1rem;
}

.dd-tech-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.dd-tech-card p {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  margin: 0.1rem 0 0;
  color: var(--dd-text-softer);
}

/* Callout */
.dd-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0.5rem 0 0.9rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--dd-radius-md);
  border: 1px solid rgba(129, 140, 248, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.dd-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(129, 140, 248, 0.7);
  color: #a5b4fc;
}

.dd-callout-content h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.dd-callout-content p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--dd-text-soft);
}

/* Code blocks */
.dd-code-block {
  border-radius: var(--dd-radius-md);
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.95));
  overflow: hidden;
  margin: 0.75rem 0;
}

.dd-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem 0.4rem;
  background: rgba(30, 64, 175, 0.7);
}

.dd-code-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.dd-code-lang svg {
  font-size: 0.85rem;
}

.dd-code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--dd-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--dd-text-soft);
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--dd-transition-fast), transform var(--dd-transition-fast),
    border-color var(--dd-transition-fast);
}

.dd-code-copy-btn:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.85);
  transform: translateY(-1px);
}

.dd-code-copy-btn.copied {
  border-color: var(--dd-success);
  color: #bbf7d0;
}

.dd-code-block pre {
  margin: 0;
  padding: 0.7rem 0.85rem 0.8rem;
  font-size: 0.78rem;
  color: #d4d4d4;
  background: #1e1e1e;
  overflow-x: auto;
}

/* Two-column cards */
.dd-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .dd-two-column {
    gap: 0.8rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 540px) {
  .dd-two-column {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.4rem;
  }
}

.dd-two-column-card {
  border-radius: var(--dd-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.8rem 0.85rem;
}

.dd-two-column-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dd-two-column-card h3 svg {
  font-size: 1rem;
}

.dd-two-column-card p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}

/* Timeline */
.dd-timeline {
  border-left: 1px dashed rgba(148, 163, 184, 0.7);
  margin: 0.7rem 0 0.4rem;
  padding-left: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dd-timeline-item {
  position: relative;
  padding-left: 0.2rem;
}

.dd-timeline-dot {
  position: absolute;
  left: -1.07rem;
  top: 0.2rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dd-accent), var(--dd-accent-2));
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28);
}

.dd-timeline-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dd-text-softer);
  margin-bottom: 0.2rem;
}

.dd-timeline-content h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.dd-timeline-content p {
  margin: 0.12rem 0 0.4rem;
  font-size: 0.88rem;
  color: var(--dd-text-soft);
}

/* Next steps + reactions */
.dd-section-outro {
  margin-top: 0.7rem;
}

.dd-next-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.6rem 0 0.5rem;
}

.dd-next-step {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--dd-radius-sm);
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.dd-step-index {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--dd-text-soft);
  flex-shrink: 0;
}

.dd-next-step h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
}

.dd-next-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dd-text-soft);
}

.dd-reaction-bar {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.dd-reaction-label {
  display: block;
  font-size: 0.85rem;
  color: var(--dd-text-soft);
  margin-bottom: 0.4rem;
}

.dd-reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dd-reaction-btn {
  border-radius: var(--dd-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--dd-text-soft);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color var(--dd-transition-fast), background var(--dd-transition-fast),
    transform var(--dd-transition-fast), color var(--dd-transition-fast);
}

.dd-reaction-btn svg {
  font-size: 0.8rem;
}

.dd-reaction-btn:hover {
  background: rgba(79, 70, 229, 0.9);
  border-color: rgba(191, 219, 254, 0.95);
  color: var(--dd-text);
  transform: translateY(-1px);
}

.dd-reaction-btn.dd-reaction-active {
  background: linear-gradient(120deg, var(--dd-accent), var(--dd-accent-2));
  border-color: transparent;
  color: #f9fafb;
}

/* Responsive typography scaling */
body.dd-font-large {
  font-size: 17px;
}

.dd-comment-footer {
  display: flex;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dd-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #cbd5e1;
  background: #1e293b;
  transition: background 0.18s cubic-bezier(0.4, 0.0, 0.2, 1),
              color 0.18s cubic-bezier(0.4, 0.0, 0.2, 1),
              transform 0.18s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dd-comment-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.18s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dd-comment-action:hover {
  background: #1a202c;
  color: #ffffff;
}

.dd-comment-action:hover svg {
  color: #ffffff;
}

.dd-comment-action:active {
  transform: scale(0.95);
}

.dd-comment-like-btn {
  background: rgba(99, 102, 241, 0.14);
  color: #cbd5e1;
}

.dd-comment-like-btn:hover {
  background: #4f46e5;
  color: #ffffff;
}

.dd-comment-like-btn:hover svg {
  color: #ffffff;
}

.dd-comment-like-btn.liked {
  background: #6366f1;
  color: #ffffff;
}

.dd-comment-like-btn.liked svg {
  color: #ffffff;
  animation: pulse 0.3s ease;
}

.dd-comment-like-btn.liked .dd-comment-like-count {
  font-weight: 600;
  color: #ffffff;
}

.dd-comment-reply-btn {
  background: #0f1729;
}

.dd-comment-reply-btn:hover {
  background: #ec4899;
  color: #ffffff;
}

.dd-comment-reply-btn:hover svg {
  color: #ffffff;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsiveness */
@media (max-width: 900px) {

  .dd-post {
    border-radius: 22px;
    padding: 1.5rem 1.25rem 1.9rem;
  }

  .dd-meta-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dd-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {

  .dd-sidebar {
    order: -1;
  }

  .dd-post {
    padding: 1.3rem 1rem 1.6rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  }

  .dd-post-title {
    font-size: 1.55rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 0.9rem;
  }

  .dd-post {
    padding: 1.15rem 0.85rem 1.45rem;
  }

  .dd-two-column-card {
    padding: 0.7rem 0.75rem;
  }

  .dd-sidebar-card {
    padding-inline: 0.8rem;
  }
}

/* Responsive */
@media (max-width: 1400px) {

  .dd-toc-toggle {
    display: none;
  }

  .dd-sidebar-card {
    position: static;
    width: fit-content;
  }

  .dd-post {
    width: 100%;
  }
}
@media (max-width: 1024px) {
  .dd-main {
    padding-inline: 1rem;
  }

  .dd-featured-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-sidebar-card {
    position: static;
    width: 100%;
  }

  .dd-featured-media {
    max-height: 260px;
  }

  .dd-post-meta-ribbon {
    flex-wrap: wrap;
    border-radius: var(--dd-radius-lg);
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .dd-main {
    padding-top: 1.2rem;
    padding-inline: 0.85rem;
  }

  .dd-featured-card {
    border-radius: var(--dd-radius-md);
  }

  .dd-featured-body {
    padding: 1.2rem 1.25rem 1.25rem;
  }

  .dd-article {
    padding: 1.25rem 1.3rem;
    border-radius: var(--dd-radius-md);
  }

  .dd-share-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.2rem 1.3rem;
  }

  .dd-comments {
    padding: 1.3rem 1.25rem;
    border-radius: var(--dd-radius-md);
  }

  .dd-comments-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dd-comment-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dd-post-meta-ribbon {
    padding: 0.55rem 0.8rem;
  }

  .dd-meta-tags {
    max-width: 100%;
  }

  .dd-content-layout {
    gap: 1.4rem;
    margin-bottom: 2.1rem;
  }
}

@media (max-width: 540px) {
  .dd-main {
    padding-inline: 0.75rem;
    padding-bottom: 1.6rem;
  }

  .dd-post-meta-ribbon {
    margin-bottom: 1.2rem;
  }

  .dd-featured-card {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  }

  .dd-featured-chip--primary {
    left: 0.85rem;
    top: 0.85rem;
  }

  .dd-featured-chip--secondary {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .dd-article h2 {
    font-size: 1.05rem;
  }

  .dd-article h3 {
    font-size: 0.98rem;
  }

  .dd-share-row {
    width: 100%;
    justify-content: flex-start;
  }

  .dd-share-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dd-comments-title {
    font-size: 1rem;
  }
}




/**
 * Essential CSS additions for features not in your existing styles.css
 * Only add these if they're missing from your current CSS
 */

/* Comment guest fields styling */
.dd-comment-guest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .dd-comment-guest-fields {
    grid-template-columns: 1fr;
  }
}

/* Comment awaiting moderation message */
.dd-comment-awaiting-moderation {
  padding: 0.75rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid #fbbf24;
  color: #fbbf24;
  font-size: 0.875rem;
  margin: 0.75rem 0;
  border-radius: 4px;
}

/* Reply button styling */
.dd-comment-reply-btn {
  background: none;
  border: none;
  color: var(--dd-text-muted, #94a3b8);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

/* Comment liked state */
.dd-comment-like-btn.dd-comment-liked {
  color: var(--dd-accent, #6366f1);
}

.dd-comment-like-btn.dd-comment-liked svg {
  animation: dd-like-pulse 0.3s ease;
}

@keyframes dd-like-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Reaction active state */
.dd-reaction-btn.dd-reaction-active {
  border-color: var(--dd-accent, #6366f1);
  background: rgba(99, 102, 241, 0.1);
}

.dd-reaction-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}