:root {
  --bg: #ffffff;
  --surface: #f5f6fb;
  --surface-raised: #edf0f7;
  --fg: #0a0e1a;
  --fg-secondary: #323c54;
  --muted: #5e6a85;
  --blue: #1a54f4;
  --blue-hover: #1447d4;
  --blue-dim: #e8eeff;
  --border: #e2e5ef;
  --border-strong: #c0c6d8;
  --shadow-card: 0 1px 3px rgba(10,14,26,.06), 0 1px 2px rgba(10,14,26,.04);
  --shadow-card-hover: 0 4px 16px rgba(10,14,26,.10), 0 2px 4px rgba(10,14,26,.06);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --ease: cubic-bezier(.16,1,.3,1);
  --shell: 1280px;
}

html[data-theme="dark"] {
  --bg: #07091a;
  --surface: #0c1127;
  --surface-raised: #111829;
  --fg: #dde4f8;
  --fg-secondary: #b0bdd8;
  --muted: #6e7fa8;
  --blue: #3b6fff;
  --blue-hover: #5580ff;
  --blue-dim: #0d1e45;
  --border: #1a2540;
  --border-strong: #283555;
  --shadow-card: 0 1px 3px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.20);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,.40), 0 2px 4px rgba(0,0,0,.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .2s ease, color .2s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
.dp-lock { overflow: hidden; }
.dp-shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.dp-display { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -.025em; }
.dp-skip-link { position: fixed; left: 12px; top: -100px; z-index: 999; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.dp-skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Central reusable brand component. */
.dp-logo {
  --dp-logo-size: 32px;
  --dp-logo-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--fg);
  line-height: 1;
}
.dp-logo--sm { --dp-logo-size: 28px; --dp-logo-radius: 8px; gap: 9px; }
.dp-logo--md { --dp-logo-size: 32px; --dp-logo-radius: 9px; }
.dp-logo--lg { --dp-logo-size: 42px; --dp-logo-radius: 12px; gap: 12px; }
.dp-logo__mark {
  position: relative;
  width: var(--dp-logo-size);
  height: var(--dp-logo-size);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--dp-logo-radius);
  background: linear-gradient(145deg, var(--blue) 0%, color-mix(in srgb, var(--blue) 74%, #001744) 100%);
  box-shadow: 0 7px 20px color-mix(in srgb, var(--blue) 22%, transparent);
  transition: transform .18s var(--ease), box-shadow .18s ease;
}
.dp-logo__mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--dp-logo-radius) - 1px);
  background: linear-gradient(145deg, rgba(255,255,255,.14), transparent 42%);
  pointer-events: none;
}
/* Built-in vector fallback: keep the original 72% visual scale. */
.dp-logo__svg {
  display: block;
  width: 72%;
  height: 72%;
  margin: 0;
  overflow: visible;
}
.dp-logo__glyph { fill: #fff; }
.dp-logo__cut { fill: none; stroke: var(--blue); stroke-width: 3.35; stroke-linecap: round; }

/*
 * WordPress Site Icon mode.
 * The Site Icon already contains the complete blue tile + D, therefore it must
 * fill the canonical mark box instead of being rendered at 72% inside a second tile.
 */
.dp-logo__mark--image {
  background: transparent !important;
}
.dp-logo__mark--image::after {
  display: none !important;
}
.dp-logo__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none !important;
}
.dp-logo__wordmark { color: var(--fg); font-size: 14.5px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.dp-logo--sm .dp-logo__wordmark { font-size: 13.5px; }
.dp-logo--lg .dp-logo__wordmark { font-size: 18px; }
.dp-logo:hover .dp-logo__mark { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--blue) 31%, transparent); }
.dp-logo:focus-visible { border-radius: 10px; }

/* Canonical buttons. */
.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s var(--ease), box-shadow .15s ease;
}
.dp-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dp-btn:hover { transform: translateY(-1px); }
.dp-btn:active { transform: translateY(0); box-shadow: none; }
.dp-btn--primary { background: var(--blue); color: #fff; }
.dp-btn--primary:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 4px 12px rgba(26,84,244,.35); }
.dp-btn--ghost { background: transparent; color: var(--fg-secondary); border-color: var(--border-strong); }
.dp-btn--ghost:hover { background: var(--surface); }

/* Search overlay. */
.dp-search[hidden] { display: none; }
.dp-search { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding-top: min(16vh, 140px); }
.dp-search__backdrop { position: absolute; inset: 0; border: 0; background: rgba(7,9,26,.62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.dp-search__dialog { position: relative; width: min(680px, calc(100% - 32px)); padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 26px 90px rgba(0,0,0,.25); }
.dp-search__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dp-search__head h2 { margin: 0; font-family: "DM Serif Display", serif; font-size: 28px; }
.dp-search-form { display: flex; gap: 10px; }
.dp-search-form input { width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); }

/* Basic page templates until their dedicated Figma modules are implemented. */
.dp-main { padding-top: 130px; padding-bottom: 100px; }
.home .dp-main { padding: 0; }
.dp-entry__title { font-size: clamp(46px, 6vw, 72px); line-height: 1.02; }
.dp-prose { max-width: 70ch; color: var(--fg-secondary); font-size: 17px; line-height: 1.82; }

/* Current footer foundation; dedicated Figma footer comes later. */
.dp-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 22px 0; }
.dp-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.dp-footer__brand { display: flex; align-items: center; gap: 13px; }
.dp-footer__copyright { white-space: nowrap; }
.dp-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }

/* ──────────────────────────────────────────────
   Home Hero — Figma source of truth
────────────────────────────────────────────── */
.dp-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 104px 0 96px;
  background: var(--bg);
}
.dp-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .6;
}
.dp-hero__glow {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 60vw;
  height: 80vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26,84,244,.06) 0%, transparent 65%);
}
html[data-theme="dark"] .dp-hero__glow { background: radial-gradient(ellipse at center, rgba(59,111,255,.075) 0%, transparent 65%); }
.dp-hero__inner { position: relative; }
.dp-hero__layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 56px; align-items: center; }
.dp-hero__content { min-width: 0; }
.dp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 15%, transparent);
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.dp-hero__eyebrow-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.dp-hero__title { margin: 0 0 28px; color: var(--fg); font-size: clamp(2.6rem, 5.5vw, 4.25rem); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.dp-hero__title em { color: var(--blue); font-style: italic; font-weight: 400; }
.dp-hero__description { max-width: 480px; margin: 0 0 40px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.dp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.dp-hero__stats { display: flex; align-items: center; }
.dp-hero-stat { min-width: 76px; }
.dp-hero-stat strong { display: block; margin-bottom: 6px; color: var(--fg); font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-hero-stat span { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.dp-hero__stat-divider { width: 1px; height: 32px; margin: 0 32px; background: var(--border); }
.dp-hero-preview { min-width: 0; }
.dp-hero-preview__list { display: flex; flex-direction: column; gap: 12px; }
.dp-hero-article {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
.dp-hero-article:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }
.dp-hero-article__media { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: var(--surface-raised); }
.dp-hero-article__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dp-hero-article__media .dp-logo__mark { width: 32px; height: 32px; }
.dp-hero-article__body { display: block; min-width: 0; flex: 1; }
.dp-hero-article__category { display: table; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--dp-article-accent-bg); color: var(--dp-article-accent); font-size: 10px; font-weight: 600; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }
.dp-hero-article__title { display: -webkit-box; overflow: hidden; color: var(--fg); font-size: 14px; font-weight: 500; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color .15s ease; }
.dp-hero-article:hover .dp-hero-article__title { color: var(--blue); }
.dp-hero-article__arrow { width: 13px; height: 13px; flex: 0 0 auto; margin-right: 4px; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.dp-hero-article:hover .dp-hero-article__arrow { opacity: 1; transform: translateX(0); }
.dp-hero-preview__more { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; transition: color .15s ease; }
.dp-hero-preview__more:hover { color: var(--blue); }

@media (min-width: 1280px) {
  .dp-hero__layout { grid-template-columns: minmax(0,1fr) 420px; gap: 96px; }
}

@media (max-width: 1023px) {
  .dp-hero { min-height: 100svh; padding: 112px 0 88px; }
  .dp-hero__layout { display: block; }
  .dp-hero__content { max-width: 680px; }
  .dp-hero-preview { display: none; }
}

@media (max-width: 640px) {
  .dp-hero__inner {
    width: calc(100% - 48px);
    margin-inline: auto;
  }
  .dp-hero__layout,
  .dp-hero__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .dp-hero { min-height: auto; align-items: flex-start; padding: 38px 0 72px; }
  .dp-hero__dots { background-size: 28px 28px; opacity: .48; }
  .dp-hero__glow { top: -8%; right: -45%; width: 110vw; height: 62vh; }
  .dp-hero__eyebrow { margin-bottom: 38px; padding: 6px 12px; font-size: 11px; }
  .dp-hero__title { margin-bottom: 34px; font-size: clamp(2.55rem, 12.2vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; }
  .dp-hero__description { margin-bottom: 46px; font-size: 17px; line-height: 1.95; }
  .dp-hero__actions { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 52px; }
  .dp-btn { width: auto; min-width: 198px; padding: 13px 24px; font-size: 15px; }
  .dp-btn--ghost { min-width: 220px; }
  .dp-hero__stats { width: 100%; justify-content: flex-start; }
  .dp-hero-stat { min-width: 0; }
  .dp-hero-stat strong { font-size: 21px; }
  .dp-hero-stat span { font-size: 10.5px; }
  .dp-hero__stat-divider { margin: 0 18px; }
  .dp-footer__inner { align-items: flex-start; flex-direction: column; }
  .dp-search-form { flex-direction: column; }
}

@media (max-width: 380px) {
  .dp-hero__inner { width: calc(100% - 40px); }
  .dp-hero__title { font-size: 2.45rem; }
  .dp-hero__description { font-size: 16px; line-height: 1.85; }
  .dp-hero__stat-divider { margin-inline: 13px; }
}

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


/* ──────────────────────────────────────────────
   Home Categories — Figma source of truth
────────────────────────────────────────────── */
.dp-categories-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.dp-section-header__copy { min-width: 0; }
.dp-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dp-section-eyebrow__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}
.dp-section-title {
  margin: 0;
  color: var(--fg);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.dp-section-title em { color: var(--blue); font-style: italic; font-weight: 400; }
.dp-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  transition: opacity .15s ease, gap .15s ease;
}
.dp-section-link:hover { gap: 9px; opacity: .72; }
.dp-section-link svg,
.dp-category-card__action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dp-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Five canonical areas: 3 cards + 2 centered cards on desktop. */
.dp-category-grid--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dp-category-grid--five > .dp-category-card {
  grid-column: span 2;
}

.dp-category-grid--five > .dp-category-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.dp-category-grid--five > .dp-category-card:nth-child(5) {
  grid-column: 4 / span 2;
}
.dp-category-card {
  min-width: 0;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease;
}
.dp-category-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--dp-category-bg);
  color: var(--dp-category-color);
}
.dp-category-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dp-category-card__content { display: block; flex: 1 1 auto; min-width: 0; }
.dp-category-card__title {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: color .15s ease;
}
.dp-category-card__description {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}
.dp-category-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}
.dp-category-card__count { color: var(--muted); font-size: 12px; line-height: 1.4; }
.dp-category-card__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--dp-category-color);
  font-size: 12px;
  font-weight: 500;
  transition: gap .15s ease;
}
.dp-category-card__action svg { width: 11px; height: 11px; }

@media (hover: hover) and (pointer: fine) {
  .dp-category-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--dp-category-color) 24%, var(--border));
    box-shadow: var(--shadow-card-hover);
  }
  .dp-category-card:hover .dp-category-card__title { color: var(--blue); }
  .dp-category-card:hover .dp-category-card__action { gap: 7px; }
}

@media (max-width: 1023px) {
  .dp-categories-section { padding: 72px 0; }
  .dp-category-grid,
  .dp-category-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dp-category-grid--five > .dp-category-card {
    grid-column: auto;
  }
  .dp-category-grid--five > .dp-category-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }
  .dp-category-card { min-height: 238px; }
}

@media (max-width: 639px) {
  .dp-categories-section { padding: 68px 0 72px; }
  .dp-section-header { margin-bottom: 34px; }
  .dp-section-link { display: none; }
  .dp-section-title { max-width: 330px; font-size: 2.15rem; line-height: 1.18; }
  .dp-category-grid,
  .dp-category-grid--five {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dp-category-grid--five > .dp-category-card,
  .dp-category-grid--five > .dp-category-card:last-child {
    grid-column: auto;
    width: 100%;
  }
  .dp-category-card { min-height: 0; padding: 22px; border-radius: 16px; }
  .dp-category-card__description { line-height: 1.68; }
}

/* ──────────────────────────────────────────────
   Shared Article Cards + Home Featured Articles
────────────────────────────────────────────── */
.dp-section-description {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.dp-featured-section {
  padding: 80px 0;
  background: var(--bg);
}

.dp-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dp-article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition:
    transform .2s var(--ease),
    border-color .2s ease,
    box-shadow .2s ease;
}

.dp-article-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
}

.dp-article-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--blue) 10%, transparent) 1px, transparent 1px),
    var(--surface-raised);
  background-size: 20px 20px;
}

.dp-article-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.dp-article-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.dp-article-card__placeholder .dp-logo__mark {
  width: 58px;
  height: 58px;
}

.dp-article-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 20px;
}

.dp-article-card__content {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.dp-article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dp-article-card__category {
  display: inline-flex;
  max-width: 70%;
  overflow: hidden;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--dp-article-bg);
  color: var(--dp-article-color);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dp-article-card__reading {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dp-article-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color .16s ease;
}

.dp-article-card--featured .dp-article-card__title {
  font-size: 17px;
  line-height: 1.42;
}

.dp-article-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dp-article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dp-article-card__excerpt + .dp-article-card__footer {
  margin-top: 18px;
}

.dp-article-card__footer svg,
.dp-mobile-section-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.dp-mobile-section-link {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 30px auto 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .dp-article-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
  }

  .dp-article-card:hover .dp-article-card__media img {
    transform: scale(1.035);
  }

  .dp-article-card:hover .dp-article-card__title {
    color: var(--blue);
  }

  .dp-article-card:hover .dp-article-card__footer svg {
    transform: translateX(3px);
  }
}

@media (max-width: 1023px) {
  .dp-featured-section {
    padding: 72px 0;
  }

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

  .dp-article-grid--featured .dp-article-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

@media (max-width: 639px) {
  .dp-featured-section {
    padding: 68px 0 72px;
  }

  .dp-section-description {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.72;
  }

  .dp-article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dp-article-grid--featured .dp-article-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .dp-article-card {
    border-radius: 16px;
  }

  .dp-article-card__body {
    padding: 18px;
  }

  .dp-article-card--featured .dp-article-card__title {
    font-size: 16px;
  }

  .dp-mobile-section-link {
    display: inline-flex;
  }
}

/* ──────────────────────────────────────────────
   Why DISCIPLON / Authority Approach
────────────────────────────────────────────── */
.dp-approach-section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.dp-approach-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

.dp-approach-intro {
  min-width: 0;
}

.dp-approach-title {
  margin: 0;
  color: var(--fg);
  font-size: clamp(38px, 4.3vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.dp-approach-title em {
  color: var(--blue);
  font-style: italic;
}

.dp-approach-description {
  max-width: 470px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.dp-approach-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  transition: opacity .18s ease;
}

.dp-approach-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.dp-approach-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-approach-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition:
    transform .2s var(--ease),
    border-color .2s ease,
    box-shadow .2s ease;
}

.dp-approach-card__number {
  padding-top: 2px;
  color: var(--blue);
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.dp-approach-card__content {
  min-width: 0;
}

.dp-approach-card h3 {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.dp-approach-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

@media (hover: hover) and (pointer: fine) {
  .dp-approach-link:hover {
    opacity: .78;
  }

  .dp-approach-link:hover svg {
    transform: translateX(3px);
  }

  .dp-approach-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
  }
}

@media (max-width: 1023px) {
  .dp-approach-section {
    padding: 76px 0;
  }

  .dp-approach-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .dp-approach-description {
    max-width: 620px;
  }
}

@media (max-width: 639px) {
  .dp-approach-section {
    padding: 68px 0;
  }

  .dp-approach-layout {
    gap: 34px;
  }

  .dp-approach-title {
    font-size: clamp(36px, 11vw, 44px);
  }

  .dp-approach-description {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.78;
  }

  .dp-approach-link {
    margin-top: 22px;
  }

  .dp-approach-list {
    gap: 10px;
  }

  .dp-approach-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
  }

  .dp-approach-card h3 {
    font-size: 15px;
  }

  .dp-approach-card p {
    font-size: 13.5px;
  }
}

/* ──────────────────────────────────────────────
   Home — Latest Articles
────────────────────────────────────────────── */
.dp-latest-section {
  padding: 80px 0 88px;
  background: var(--bg);
}

.dp-article-grid--latest {
  row-gap: 22px;
}

.dp-article-grid--latest .dp-article-card {
  height: 100%;
}

.dp-section-footer {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.dp-latest-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 22px;
}

.dp-latest-section__button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dp-latest-section__button:hover svg {
    transform: translateX(3px);
  }
}

@media (max-width: 1023px) {
  .dp-latest-section {
    padding: 72px 0 78px;
  }
}

@media (max-width: 639px) {
  .dp-latest-section {
    padding: 68px 0 72px;
  }

  .dp-article-grid--latest {
    gap: 16px;
  }

  .dp-section-footer {
    margin-top: 30px;
  }

  .dp-latest-section__button {
    width: 100%;
    max-width: 290px;
  }
}

/* ──────────────────────────────────────────────
   Home — Premium Guides
────────────────────────────────────────────── */
.dp-guides-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.dp-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dp-guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition:
    transform .2s var(--ease),
    border-color .2s ease,
    box-shadow .2s ease;
}

.dp-guide-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
}

.dp-guide-card__cover {
  position: relative;
  display: flex;
  min-height: 160px;
  align-items: flex-end;
  overflow: hidden;
  padding: 20px;
  background: var(--dp-guide-accent);
  isolation: isolate;
}

.dp-guide-card__cover-grid,
.dp-guide-card__cover-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dp-guide-card__cover-grid {
  z-index: -2;
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 20px 20px;
}

.dp-guide-card__cover-glow {
  z-index: -1;
  background:
    radial-gradient(circle at 16% 88%, rgba(255,255,255,.14), transparent 48%),
    radial-gradient(circle at 86% 14%, rgba(0,0,0,.16), transparent 46%);
}

.dp-guide-card__cover-content {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.dp-guide-card__brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.dp-guide-card__brand-label {
  margin-bottom: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .2em;
  opacity: .72;
}

.dp-guide-card__status {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .15em;
}

.dp-guide-card__format {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
  font-size: 10px;
  line-height: 1.55;
  opacity: .56;
}

.dp-guide-card__format span:first-child {
  font-size: 11px;
  opacity: 1;
}

.dp-guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.dp-guide-card__title {
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.dp-guide-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dp-guide-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}

.dp-guide-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dp-guide-card__button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--dp-guide-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    transform .18s ease,
    opacity .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dp-guide-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
  }

  .dp-guide-card:hover .dp-guide-card__button {
    transform: translateX(2px);
    opacity: .92;
  }
}

@media (max-width: 1023px) {
  .dp-guides-section {
    padding: 72px 0;
  }
}

@media (max-width: 639px) {
  .dp-guides-section {
    padding: 68px 0 72px;
  }

  .dp-guide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dp-guide-card {
    border-radius: 16px;
  }

  .dp-guide-card__cover {
    min-height: 158px;
    padding: 18px;
  }

  .dp-guide-card__body {
    padding: 18px;
  }

  .dp-guide-card__footer {
    padding-top: 18px;
  }
}

/* ──────────────────────────────────────────────
   Home — Newsletter / Weekly Digest
────────────────────────────────────────────── */
.dp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dp-newsletter-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  background: var(--bg);
  isolation: isolate;
}

.dp-newsletter-section__dots,
.dp-newsletter-section__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.dp-newsletter-section__dots {
  background-image:
    radial-gradient(circle at center, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .52;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.dp-newsletter-section__glow {
  z-index: -1;
  inset: 10% 15%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 66%);
  filter: blur(12px);
}

.dp-newsletter-card {
  width: min(780px, 100%);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface) 94%, transparent),
      color-mix(in srgb, var(--bg) 98%, transparent)
    );
  box-shadow:
    0 28px 90px color-mix(in srgb, var(--blue) 9%, transparent),
    var(--shadow-card);
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dp-newsletter-card__eyebrow {
  margin-bottom: 22px;
}

.dp-newsletter-card__title {
  max-width: 650px;
  margin: 0 auto;
  color: var(--fg);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.dp-newsletter-card__description {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.dp-newsletter-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(600px, 100%);
  margin: 32px auto 0;
}

.dp-newsletter-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dp-newsletter-form__control {
  position: relative;
  min-width: 0;
}

.dp-newsletter-form__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity .16s ease,
    transform .16s ease;
}

.dp-newsletter-form .dp-newsletter-form__input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px 13px 46px !important;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  outline: none;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    padding-left .16s ease;
}

.dp-newsletter-form__control.has-value .dp-newsletter-form__icon {
  opacity: 0;
  transform: translate(-7px, -50%);
}

.dp-newsletter-form__control.has-value .dp-newsletter-form__input {
  padding-left: 16px !important;
}

.dp-newsletter-form .dp-newsletter-form__input::placeholder {
  color: color-mix(in srgb, var(--muted) 84%, transparent);
}

.dp-newsletter-form .dp-newsletter-form__input:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--border-strong));
}

.dp-newsletter-form .dp-newsletter-form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 13%, transparent);
}

.dp-newsletter-form__submit {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 24%, transparent);
  transition:
    background .18s ease,
    transform .18s var(--ease),
    box-shadow .18s ease,
    opacity .18s ease;
}

.dp-newsletter-form__submit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.dp-newsletter-form__submit:disabled {
  cursor: wait;
  opacity: .72;
}

.dp-newsletter-form__status {
  width: min(600px, 100%);
  margin: 16px auto 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
}

.dp-newsletter-form__status[hidden] {
  display: none;
}

.dp-newsletter-form__status[data-state="success"] {
  border-color: color-mix(in srgb, #10b981 25%, transparent);
  background: color-mix(in srgb, #10b981 9%, transparent);
  color: #0f9f72;
}

html[data-theme="dark"] .dp-newsletter-form__status[data-state="success"] {
  color: #5ee0b3;
}

.dp-newsletter-form__status[data-state="error"] {
  border-color: color-mix(in srgb, #ef4444 26%, transparent);
  background: color-mix(in srgb, #ef4444 9%, transparent);
  color: #dc2626;
}

html[data-theme="dark"] .dp-newsletter-form__status[data-state="error"] {
  color: #ff8383;
}

.dp-newsletter-card__fine {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.dp-newsletter-card__fine a {
  margin-left: 4px;
  color: var(--fg-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .dp-newsletter-form__submit:hover {
    transform: translateY(-1px);
    background: var(--blue-hover);
    box-shadow: 0 11px 28px color-mix(in srgb, var(--blue) 32%, transparent);
  }

  .dp-newsletter-form__submit:hover svg {
    transform: translateX(3px);
  }

  .dp-newsletter-card__fine a:hover {
    color: var(--blue);
  }
}

@media (max-width: 639px) {
  .dp-newsletter-section {
    padding: 68px 0 72px;
  }

  .dp-newsletter-card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .dp-newsletter-card__title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .dp-newsletter-card__description {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.72;
  }

  .dp-newsletter-form {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .dp-newsletter-form__submit {
    width: 100%;
  }

  .dp-newsletter-card__fine {
    margin-top: 14px;
  }
}

/* ==========================================================
   DISCIPLON v1.2 — Five-category responsive grid hardening
   Keeps the intentional 3+2 desktop layout, but forces a
   stable 2-column tablet and 1-column phone layout even when
   cache/minification changes stylesheet order.
   ========================================================== */

@media (min-width: 640px) and (max-width: 1023px) {
  .dp-category-grid.dp-category-grid--five {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dp-category-grid.dp-category-grid--five > .dp-category-card {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .dp-category-grid.dp-category-grid--five > .dp-category-card:last-child {
    grid-column: 1 / -1 !important;
    width: calc(50% - 8px) !important;
    justify-self: center !important;
  }
}

@media (max-width: 639px) {
  .dp-category-grid.dp-category-grid--five {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .dp-category-grid.dp-category-grid--five > .dp-category-card,
  .dp-category-grid.dp-category-grid--five > .dp-category-card:nth-child(4),
  .dp-category-grid.dp-category-grid--five > .dp-category-card:nth-child(5),
  .dp-category-grid.dp-category-grid--five > .dp-category-card:last-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .dp-category-grid.dp-category-grid--five .dp-category-card__title,
  .dp-category-grid.dp-category-grid--five .dp-category-card__description,
  .dp-category-grid.dp-category-grid--five .dp-category-card__action {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

