/*
Theme Name: Datacore Blog
Theme URI: https://dcoretech.in/blog/
Author: Datacore Technologies
Author URI: https://dcoretech.in/
Description: A custom WordPress theme that aligns the Datacore blog with the main Datacore website.
Version: 1.2.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: datacore-blog
*/

:root {
  --dc-red: #e7000b;
  --dc-red-dark: #c9000a;
  --dc-ink: #101828;
  --dc-text: #344054;
  --dc-muted: #667085;
  --dc-line: #e4e7ec;
  --dc-surface: #ffffff;
  --dc-surface-muted: #f8fafc;
  --dc-surface-soft: #f2f4f7;
  --dc-gutter: clamp(16px, 5vw, 96px);
  --dc-content: 1280px;
  --dc-reading: 780px;
  --dc-section: clamp(64px, 7vw, 112px);
  --dc-radius-sm: 14px;
  --dc-radius: 22px;
  --dc-radius-lg: 32px;
  --dc-shadow: 0 24px 70px -36px rgba(16, 24, 40, 0.35);
  --dc-font:
    EuclidCircular, "Euclid Circular A", "Euclid Circular B", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--dc-ink);
  background: var(--dc-surface);
  font-family: var(--dc-font);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--dc-ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
}

.dc-shell {
  width: min(var(--dc-content), calc(100% - (2 * var(--dc-gutter))));
  margin-inline: auto;
}

.dc-site-header-wrap {
  position: relative;
  z-index: 120;
  min-height: 107px;
}

.dc-site-header {
  position: sticky;
  top: 24px;
  z-index: 120;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 16px;
  width: min(1280px, calc(100% - 48px));
  min-height: 59px;
  margin: 24px auto 0;
  padding: 10px;
  background: transparent;
  transition:
    width 400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  height: var(--dc-nav-panel-height, 59px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(206, 206, 206, 0.65);
  border-radius: 20px;
  box-shadow:
    0 20px 20px -3px rgba(0, 0, 0, 0.02),
    0 6px 6px -2px rgba(0, 0, 0, 0.02),
    inset 1px 1px 2px #fff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 300ms ease,
    background 300ms ease;
}

.dc-site-header.is-compact {
  width: min(1120px, calc(100% - 120px));
}

.dc-site-header.is-hidden:not(.has-open-menu) {
  transform: translateY(-110px);
}

.dc-site-header.has-open-menu::before {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
}

.dc-nav-scrim {
  position: fixed;
  z-index: 110;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(15, 23, 42, 0.2);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.dc-nav-scrim.is-visible {
  visibility: visible;
  opacity: 1;
}

.dc-brand,
.custom-logo-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: min(270px, 100%);
  margin-left: 14px;
  text-decoration: none;
}

.dc-brand img,
.dc-brand .custom-logo,
.custom-logo-link img {
  width: 270px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
}

.dc-main-nav {
  position: static;
  z-index: 2;
  justify-self: center;
}

.dc-nav-list,
.dc-toc-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dc-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dc-nav-item {
  position: relative;
}

.dc-nav-item-has-menu {
  position: static;
}

.dc-nav-link,
.dc-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: #171717;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.dc-nav-link:hover,
.dc-nav-link:focus-visible,
.dc-nav-trigger:hover,
.dc-nav-trigger:focus-visible,
.dc-nav-item.current .dc-nav-link,
.dc-nav-item.submenu-open .dc-nav-trigger {
  color: #101010;
  background: rgba(17, 17, 17, 0.07);
  outline: none;
}

.dc-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-nav-item.submenu-open .dc-chevron {
  transform: translateY(2px) rotate(225deg);
}

.dc-mega-menu {
  position: absolute;
  z-index: 1;
  top: 59px;
  right: 0;
  left: 0;
  padding: 0 10px 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 240ms ease;
}

.dc-nav-item.submenu-open > .dc-mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dc-mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 290px;
  gap: 18px;
  min-height: 330px;
  padding: 26px 0 10px 24px;
}

.dc-mega-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dc-mega-column > p {
  margin: 0 12px 12px;
  color: #8b8b8b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dc-mega-column-secondary {
  padding-top: 27px;
}

.dc-mega-column a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  color: var(--dc-text);
  border-radius: 10px;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.dc-mega-column a:hover,
.dc-mega-column a:focus-visible {
  color: var(--dc-ink);
  background: rgba(17, 17, 17, 0.05);
  transform: translateX(2px);
  outline: none;
}

.dc-mega-column strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.dc-mega-column small {
  color: var(--dc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.dc-mega-feature {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 284px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  background: #141414;
  border-radius: 14px;
  text-decoration: none;
}

.dc-mega-feature::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(8, 8, 8, 0.88) 100%
  );
}

.dc-mega-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-mega-feature:hover img {
  transform: scale(1.04);
}

.dc-mega-feature span,
.dc-mega-feature strong,
.dc-mega-feature small {
  position: relative;
  z-index: 2;
}

.dc-mega-feature span {
  margin-bottom: 6px;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dc-mega-feature strong {
  max-width: 230px;
  font-size: 20px;
  line-height: 1.15;
}

.dc-mega-feature small {
  margin-top: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.dc-header-action {
  position: relative;
  z-index: 2;
  justify-self: end;
  min-width: 86px;
  min-height: 38px;
  padding: 9px 16px;
  background: #111;
  border-color: #111;
  border-radius: 12px;
  font-size: 13px;
}

.dc-header-action:hover,
.dc-header-action:focus-visible {
  background: #2b2b2b;
  border-color: #2b2b2b;
  box-shadow: 0 12px 24px -14px rgba(17, 17, 17, 0.7);
}

.dc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  color: #fff;
  background: var(--dc-red);
  border: 1px solid var(--dc-red);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.dc-button:hover,
.dc-button:focus-visible {
  color: #fff;
  background: var(--dc-red-dark);
  border-color: var(--dc-red-dark);
  box-shadow: 0 12px 24px -14px rgba(231, 0, 11, 0.8);
  transform: translateY(-1px);
  outline: none;
}

.dc-button.dc-header-action {
  min-width: 86px;
  min-height: 38px;
  padding: 9px 16px;
  color: #fff;
  background: #111;
  border-color: #111;
  border-radius: 12px;
  font-size: 13px;
}

.dc-button.dc-header-action:hover,
.dc-button.dc-header-action:focus-visible {
  color: #fff;
  background: #2b2b2b;
  border-color: #2b2b2b;
  box-shadow: 0 12px 24px -14px rgba(17, 17, 17, 0.7);
}

.dc-button-secondary {
  color: var(--dc-ink);
  background: #fff;
  border-color: var(--dc-line);
}

.dc-button-secondary:hover,
.dc-button-secondary:focus-visible {
  color: var(--dc-red);
  background: #fff;
  border-color: rgba(231, 0, 11, 0.3);
}

.dc-menu-toggle {
  position: relative;
  z-index: 130;
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 12px;
  cursor: pointer;
}

.dc-menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 5px 0;
  background: var(--dc-ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.dc-menu-toggle:focus-visible {
  outline: 2px solid rgba(231, 0, 11, 0.5);
  outline-offset: 2px;
}

body.nav-open .dc-menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.nav-open .dc-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .dc-menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.dc-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 5vw, 72px) 0 clamp(52px, 5vw, 72px);
  background:
    radial-gradient(circle at 83% 18%, rgba(231, 0, 11, 0.1), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(228, 231, 236, 0.7);
}

.dc-page-hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(231, 0, 11, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(231, 0, 11, 0.025),
    0 0 0 100px rgba(231, 0, 11, 0.018);
  pointer-events: none;
  display: none;
}

.dc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.dc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--dc-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dc-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

.dc-page-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.dc-page-intro {
  max-width: 750px;
  margin: 24px 0 0;
  color: var(--dc-text);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.dc-blog-main {
  padding: clamp(56px, 6vw, 88px) 0;
}

.dc-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-bottom: 28px;
  margin-bottom: clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--dc-line);
}

.dc-topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 15px;
  color: var(--dc-text);
  background: var(--dc-surface-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.dc-topic-nav a:hover,
.dc-topic-nav a:focus-visible,
.dc-topic-nav a.is-active {
  color: #fff;
  background: var(--dc-ink);
  border-color: var(--dc-ink);
  transform: translateY(-1px);
  outline: none;
}

.dc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.dc-section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.dc-section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--dc-muted);
}

.dc-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.dc-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  box-shadow: 0 16px 50px -40px rgba(16, 24, 40, 0.45);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.dc-post-card:hover {
  border-color: rgba(231, 0, 11, 0.24);
  box-shadow: var(--dc-shadow);
  transform: translateY(-4px);
}

.dc-post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
}

.dc-post-card-featured .dc-card-media {
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.dc-post-card-featured .dc-card-content {
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
}

.dc-post-card-featured .dc-card-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.dc-post-card-featured .dc-card-excerpt {
  font-size: 16px;
}

.dc-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(231, 0, 11, 0.2), transparent 32%),
    linear-gradient(145deg, #f8fafc, #eef2f6);
}

.dc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-post-card:hover .dc-card-media img {
  transform: scale(1.035);
}

.dc-card-placeholder::before,
.dc-card-placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(231, 0, 11, 0.2);
  border-radius: 50%;
}

.dc-card-placeholder::before {
  right: 12%;
  bottom: -44%;
  width: 68%;
  aspect-ratio: 1;
}

.dc-card-placeholder::after {
  right: 23%;
  bottom: -25%;
  width: 44%;
  aspect-ratio: 1;
  background: rgba(231, 0, 11, 0.05);
}

.dc-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.dc-card-meta,
.dc-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--dc-muted);
  font-size: 12px;
  font-weight: 650;
}

.dc-card-meta a,
.dc-single-meta a {
  color: var(--dc-red);
  text-decoration: none;
}

.dc-card-title {
  margin: 16px 0 11px;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.dc-card-title a {
  text-decoration: none;
}

.dc-card-title a:hover,
.dc-card-title a:focus-visible {
  color: var(--dc-red);
  outline: none;
}

.dc-card-excerpt {
  margin: 0 0 22px;
  color: var(--dc-text);
  line-height: 1.65;
}

.dc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--dc-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.dc-read-more::after {
  content: "\2192";
  color: var(--dc-red);
  font-size: 17px;
  transition: transform 180ms ease;
}

.dc-read-more:hover,
.dc-read-more:focus-visible {
  color: var(--dc-red);
  outline: none;
}

.dc-read-more:hover::after {
  transform: translateX(3px);
}

.dc-pagination {
  margin-top: 46px;
}

.dc-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--dc-text);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dc-pagination .page-numbers.current,
.dc-pagination a.page-numbers:hover {
  color: #fff;
  background: var(--dc-red);
  border-color: var(--dc-red);
}

.dc-empty-state {
  padding: clamp(48px, 8vw, 90px);
  text-align: center;
  background: var(--dc-surface-muted);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius-lg);
}

.dc-empty-state h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.dc-empty-state p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--dc-muted);
}

.dc-single-hero {
  padding: clamp(42px, 4vw, 58px) 0 clamp(36px, 4vw, 52px);
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(231, 0, 11, 0.085),
      transparent 28%
    ),
    linear-gradient(180deg, #fff, var(--dc-surface-muted));
}

.dc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--dc-muted);
  font-size: 13px;
}

.dc-breadcrumbs a {
  text-decoration: none;
}

.dc-breadcrumbs a:hover {
  color: var(--dc-red);
}

.dc-single-title {
  max-width: 1180px;
  margin: 0 0 18px;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.dc-reading-progress {
  position: fixed;
  z-index: 220;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.dc-reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--dc-red);
  transform-origin: left center;
}

.dc-featured-image {
  width: min(1180px, calc(100% - (2 * var(--dc-gutter))));
  max-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--dc-surface-soft);
  border-radius: var(--dc-radius-lg);
  box-shadow: var(--dc-shadow);
}

.dc-featured-image img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.dc-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--dc-reading)) 260px;
  justify-content: center;
  gap: clamp(44px, 5vw, 64px);
  padding: clamp(52px, 6vw, 82px) var(--dc-gutter);
}

.dc-article-content {
  min-width: 0;
  color: #273142;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.78;
}

.dc-article-content > *:first-child {
  margin-top: 0;
}

.dc-article-content h2,
.dc-article-content h3,
.dc-article-content h4 {
  color: var(--dc-ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
  scroll-margin-top: 130px;
}

.dc-article-content h2 {
  margin: 2.35em 0 0.72em;
  font-size: clamp(28px, 4vw, 40px);
}

.dc-article-content h3 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(23px, 3vw, 30px);
}

.dc-article-content p,
.dc-article-content ul,
.dc-article-content ol,
.dc-article-content blockquote {
  margin: 0 0 1.45em;
}

.dc-article-content ul,
.dc-article-content ol {
  padding-left: 1.35em;
}

.dc-article-content li {
  padding-left: 0.25em;
  margin-bottom: 0.48em;
}

.dc-article-content li::marker {
  color: var(--dc-red);
  font-weight: 700;
}

.dc-article-content a {
  color: var(--dc-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dc-article-content blockquote {
  padding: 24px 28px;
  color: var(--dc-ink);
  background: var(--dc-surface-muted);
  border-left: 4px solid var(--dc-red);
  border-radius: 0 var(--dc-radius-sm) var(--dc-radius-sm) 0;
  font-size: 1.08em;
  font-weight: 550;
}

.dc-article-content img,
.dc-article-content .wp-block-image {
  border-radius: var(--dc-radius);
}

.dc-article-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 0.88em;
}

.dc-article-content .wp-block-table {
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-radius: var(--dc-radius-sm);
}

.dc-article-content .wp-block-table table {
  margin: 0;
}

.dc-article-content th,
.dc-article-content td {
  padding: 13px 15px;
  text-align: left;
  border: 1px solid var(--dc-line);
}

.dc-article-content th {
  background: var(--dc-surface-muted);
}

.dc-article-content pre {
  overflow-x: auto;
  padding: 22px;
  color: #e4e7ec;
  background: var(--dc-ink);
  border-radius: var(--dc-radius-sm);
  font-size: 0.83em;
}

.dc-article-content code {
  padding: 0.12em 0.36em;
  background: var(--dc-surface-soft);
  border-radius: 5px;
  font-size: 0.9em;
}

.dc-article-content pre code {
  padding: 0;
  background: transparent;
}

.alignwide {
  width: min(1050px, calc(100vw - (2 * var(--dc-gutter))));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.dc-article-aside {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 24px;
}

.dc-toc {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dc-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0 0 13px;
  color: var(--dc-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.dc-toc-toggle:focus-visible {
  outline: 2px solid rgba(231, 0, 11, 0.4);
  outline-offset: -2px;
}

.dc-toc-state {
  display: none;
  color: var(--dc-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.dc-toc-toggle {
  cursor: default;
}

.dc-toc-list {
  display: grid;
  gap: 0;
  max-height: none;
  padding: 12px 0 0;
  overflow: visible;
  transition:
    max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    padding 220ms ease;
}

.dc-toc.is-collapsed .dc-toc-list {
  max-height: 0;
  padding-top: 0;
  overflow: hidden;
  opacity: 0;
}

.dc-toc-list li {
  min-width: 0;
}

.dc-toc-list a {
  display: block;
  padding: 7px 0 7px 14px;
  overflow: hidden;
  color: var(--dc-muted);
  border-left: 1px solid var(--dc-line);
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.42;
  text-decoration: none;
  text-overflow: ellipsis;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.dc-toc-list a:hover,
.dc-toc-list a:focus-visible,
.dc-toc-list a.is-active {
  color: var(--dc-red);
  background: transparent;
  border-left-color: var(--dc-red);
  outline: none;
}

.dc-aside-card {
  padding: 24px;
  background: var(--dc-surface-muted);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
}

.dc-aside-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.dc-aside-card p {
  margin: 0 0 18px;
  color: var(--dc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dc-aside-card .dc-button {
  width: 100%;
}

.dc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.dc-tags a {
  padding: 7px 11px;
  color: var(--dc-text);
  background: var(--dc-surface-muted);
  border: 1px solid var(--dc-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dc-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--dc-reading);
  margin: 0 auto clamp(64px, 8vw, 112px);
}

.dc-post-navigation a {
  display: block;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.dc-post-navigation a:hover {
  color: var(--dc-red);
  border-color: rgba(231, 0, 11, 0.3);
}

.dc-related {
  padding: var(--dc-section) 0;
  background: var(--dc-surface-muted);
  border-top: 1px solid var(--dc-line);
}

.dc-page-content {
  width: min(var(--dc-reading), calc(100% - (2 * var(--dc-gutter))));
  margin: 0 auto;
  padding: var(--dc-section) 0;
}

.dc-search-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

.dc-search-form label {
  flex: 1;
}

.dc-search-field {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  color: var(--dc-ink);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 13px;
  outline: none;
}

.dc-search-field:focus {
  border-color: rgba(231, 0, 11, 0.5);
  box-shadow: 0 0 0 4px rgba(231, 0, 11, 0.08);
}

.dc-cta {
  padding: var(--dc-section) 0;
  background: #fff;
}

.dc-cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 82px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(231, 0, 11, 0.42), transparent 34%),
    var(--dc-ink);
  border-radius: var(--dc-radius-lg);
}

.dc-cta-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255, 255, 255, 0.025);
}

.dc-cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.dc-cta-card .dc-eyebrow {
  color: #ff7b81;
}

.dc-cta-card h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.dc-cta-card p {
  max-width: 660px;
  margin: 20px 0 28px;
  color: #d0d5dd;
  font-size: 17px;
}

.dc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dc-cta .dc-button-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.dc-site-footer {
  padding: 64px 0 28px;
  color: #d0d5dd;
  background: var(--dc-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(120px, 1fr));
  gap: 42px;
}

.dc-footer-brand img {
  width: 230px;
  max-height: 28px;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
}

.dc-footer-brand p {
  max-width: 410px;
  margin: 0;
  color: #98a2b3;
  font-size: 14px;
  line-height: 1.7;
}

.dc-footer-nav h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
}

.dc-footer-nav a {
  display: block;
  width: fit-content;
  margin: 10px 0;
  color: #b7bec9;
  font-size: 13px;
  text-decoration: none;
}

.dc-footer-nav a:hover,
.dc-footer-nav a:focus-visible {
  color: #fff;
  outline: none;
}

.dc-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  margin-top: 48px;
  color: #98a2b3;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.dc-footer-bottom p {
  margin: 0;
}

.comment-respond,
.comments-area {
  width: min(var(--dc-reading), calc(100% - (2 * var(--dc-gutter))));
  margin: 0 auto var(--dc-section);
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--dc-line);
  border-radius: 12px;
}

.comment-form .submit {
  min-height: 44px;
  padding: 10px 20px;
  color: #fff;
  background: var(--dc-red);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .dc-article-layout {
    grid-template-columns: minmax(0, 700px) 260px;
    gap: 40px;
  }

  .dc-footer-grid {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 900px) {
  .dc-site-header-wrap {
    min-height: 92px;
  }

  .dc-site-header,
  .dc-site-header.is-compact {
    top: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 28px);
    min-height: 60px;
    margin-top: 14px;
    padding: 9px 10px 9px 15px;
  }

  .dc-site-header::before {
    height: 60px !important;
    border-radius: 18px;
  }

  .dc-site-header.is-hidden {
    transform: none;
  }

  .dc-brand,
  .custom-logo-link {
    z-index: 140;
    width: min(210px, 100%);
    margin-left: 0;
  }

  .dc-brand img,
  .dc-brand .custom-logo,
  .custom-logo-link img {
    width: 210px;
    height: 25px;
  }

  .dc-main-nav {
    position: fixed;
    z-index: 125;
    inset: 0;
    justify-self: stretch;
    display: block;
    width: 100vw;
    max-width: none;
    padding: 104px 20px 34px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background: linear-gradient(
      180deg,
      transparent 0,
      transparent 84px,
      #f5f5f3 84px,
      #f5f5f3 100%
    );
    transform: translateY(-12px);
    transition:
      opacity 260ms ease,
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 260ms ease;
  }

  body.nav-open .dc-main-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .dc-nav-list {
    display: block;
    max-width: 720px;
    margin-inline: auto;
  }

  .dc-nav-item {
    border-bottom: 1px solid rgba(16, 24, 40, 0.1);
  }

  .dc-nav-link,
  .dc-nav-trigger {
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    padding: 15px 4px;
    background: transparent !important;
    border-radius: 0;
    font-size: 22px;
    font-weight: 600;
  }

  .dc-nav-item.current .dc-nav-link {
    color: var(--dc-red);
  }

  .dc-mega-menu {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    padding: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: grid-template-rows 350ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .dc-nav-item.submenu-open > .dc-mega-menu {
    grid-template-rows: 1fr;
  }

  .dc-mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 0 0 14px;
    overflow: hidden;
  }

  .dc-mega-column,
  .dc-mega-column-secondary {
    gap: 0;
    padding: 0;
  }

  .dc-mega-column > p,
  .dc-mega-column small,
  .dc-mega-feature {
    display: none;
  }

  .dc-mega-column a {
    padding: 10px 4px 10px 18px;
    border-radius: 8px;
  }

  .dc-mega-column strong {
    font-size: 15px;
    font-weight: 550;
  }

  .dc-menu-toggle {
    display: block;
  }

  .dc-header-action,
  .dc-nav-scrim {
    display: none;
  }

  .dc-post-card-featured {
    grid-template-columns: 1.2fr 1fr;
  }

  .dc-post-card-featured .dc-card-media {
    min-height: 380px;
  }

  .dc-article-layout {
    grid-template-columns: minmax(0, var(--dc-reading));
    gap: 34px;
  }

  .dc-article-content {
    grid-row: 2;
  }

  .dc-article-aside {
    position: static;
    display: contents;
  }

  .dc-toc {
    grid-row: 1;
    padding: 0;
    border-top: 1px solid var(--dc-line);
    border-bottom: 1px solid var(--dc-line);
  }

  .dc-toc-toggle {
    padding: 14px 0;
    border-bottom: 0;
    cursor: pointer;
  }

  .dc-toc-state {
    display: inline;
  }

  .dc-toc-list {
    padding: 0 0 14px;
  }

  .dc-aside-card {
    grid-row: 3;
  }
}

@media (max-width: 860px) {
  .dc-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dc-section-heading {
    display: block;
  }

  .dc-section-heading p {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --dc-gutter: 16px;
    --dc-section: 60px;
  }

  .dc-site-header-wrap {
    min-height: 84px;
  }

  .dc-site-header,
  .dc-site-header.is-compact {
    top: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: calc(100% - 24px);
    min-height: 60px;
    margin-top: 12px;
    padding: 8px 10px 8px 14px;
    border-radius: 18px;
  }

  .dc-brand,
  .custom-logo-link {
    width: min(190px, 100%);
  }

  .dc-brand img,
  .dc-brand .custom-logo,
  .custom-logo-link img {
    width: 190px;
    height: 24px;
  }

  .dc-main-nav {
    inset: 0;
    padding: 92px 16px 28px;
  }

  .dc-page-hero,
  .dc-single-hero {
    padding-top: 42px;
  }

  .dc-page-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .dc-single-title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .dc-post-grid {
    grid-template-columns: 1fr;
  }

  .dc-post-card-featured {
    display: flex;
  }

  .dc-post-card-featured .dc-card-media {
    min-height: 0;
  }

  .dc-post-card-featured .dc-card-content {
    padding: 24px;
  }

  .dc-post-card-featured .dc-card-title {
    font-size: clamp(25px, 8vw, 34px);
  }

  .dc-card-content {
    padding: 21px;
  }

  .dc-article-layout {
    padding-inline: var(--dc-gutter);
  }

  .dc-article-content {
    font-size: 17px;
    line-height: 1.72;
  }

  .dc-toc-list {
    max-height: none;
  }

  .dc-post-navigation {
    grid-template-columns: 1fr;
    padding-inline: var(--dc-gutter);
  }

  .dc-search-form {
    display: block;
  }

  .dc-search-form .dc-button {
    width: 100%;
    margin-top: 10px;
  }

  .dc-cta-card {
    border-radius: 24px;
  }

  .dc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .dc-footer-brand {
    grid-column: 1 / -1;
  }

  .dc-footer-bottom {
    display: block;
  }

  .dc-footer-bottom p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
