.ddi-ops-page,
.ddi-ops-page * ,
.ddi-ops-page *::before,
.ddi-ops-page *::after {
  box-sizing: border-box;
}
.ddi-ops-page p,
.ddi-ops-page li,
.ddi-ops-page span,
.ddi-ops-page td, .ddi-ops-page div {
  font-family: var(--second-family);
}
.ddi-article-wrap {
  max-width: var(--ddi-max-width);
  margin: 0 auto;
  padding: 64px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 80px;
}

.ddi-content h2 {
  font-family: var(--font-family);
  font-size: var(--custom-h2);
  font-weight: 700;
  line-height: var(--custom-lh);
  margin: 64px 0 20px;
}

.ddi-num {
  font-size: var(--custom-h5);
  text-transform: uppercase;
  color: var(--ddc-2);
  display: block;
  margin-bottom: 6px;
}

.ddi-callout {
  border-left: 3px solid var(--ddc-2);
  background: var(--ddc-5);
  padding: 22px 26px;
  margin: 36px 0;
}

.ddi-diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ddc-6);
  margin: 36px 0;
  border: 1px solid var(--ddc-6);
}

.ddi-diag-cell {
  background: #fff;
  padding: 20px;
}
/* ===============================
   TYPOGRAPHY BASE
=============================== */
.ddi-content p {
font-size: var(--custom-p);
  line-height: var(--custom-body-lh);
  color: #3d3530;
  margin-bottom: 22px;
}

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

/* ===============================
   CALLOUT (COMPLETE)
=============================== */
.ddi-callout-label {
  font-size: var(--custom-h6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  color: var(--ddc-2);
  margin-bottom: 10px;
  display: block;
}

/* ===============================
   DIAGNOSIS GRID (COMPLETE)
=============================== */
.ddi-diag-header {
  background: var(--ddc-1);
  color: #fff;
  font-size: var(--custom-h6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  padding: 12px 20px;
}

.ddi-diag-cell h4 {
  font-size: var(--custom-p);
  font-weight: 700;
  margin-bottom: 6px;
}

.ddi-diag-cell p {
  font-size: var(--custom-p);
  color: #5b6b7a;
  margin: 0;
}

/* ===============================
   WARNING BOX
=============================== */
.ddi-warning {
  background: #fff8f0;
  border: 1px solid #e8c49a;
  padding: 18px 22px;
  margin: 28px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ===============================
   DIVIDER
=============================== */
.ddi-divider {
  border: none;
  border-top: 3px solid var(--ddc-2);
  width: 48px;
  margin: 56px 0;
}

/* ===============================
   SIDEBAR (CRITICAL)
=============================== */
.ddi-sidebar {
  position: sticky;
  top: 100px;
}

.ddi-toc-title {
  font-size: var(--custom-h6);
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  color: #aab7c4;
  margin-bottom: 16px;
  display: block;
}

.ddi-toc li {
  font-size: var(--custom-h5);
  margin-bottom: 10px;
  color: #5b6b7a;
}

.ddi-toc a {
  text-decoration: none;
  color: inherit;
}

.ddi-toc a:hover {
  color: var(--ddc-2);
}
/* ===============================
   HERO (PORTED STRUCTURE)
=============================== */
.ddi-hero {
  max-width: var(--ddi-max-width);
  margin: 0 auto;
  padding: 80px 48px 64px;
}

/* EYEBROW */
.ddi-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--custom-h6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  color: var(--ddc-2);
  margin-bottom: 24px;
}

.ddi-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ddc-2);
}

/* PILLS */
.ddi-pill {
  background: var(--ddc-5);
  padding: 3px 10px;
  font-size: var(--custom-h6);
  letter-spacing: var(--custom-ls);
}

/* H1 */
.ddi-h1 {
  font-family: var(--font-family);
  font-size: var(--custom-h1) !important;
  line-height: var(--custom-lh);
  font-weight: 800;
  letter-spacing: var(--custom-ls);
  margin-bottom: 28px;
  max-width: 860px;
  color: var(--ddc-1);
}

.ddi-h1 em {
  color: var(--ddc-2);
  font-style: italic;
}

/* LEDE */
.ddi-hero-lede {
  font-size: var(--custom-h4);
  line-height: var(--custom-body-lh);
  color: #3d3530;
  max-width: 540px;
  margin-bottom: 32px;
}

/* META */
.ddi-hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--custom-h5);
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  color: #5b6b7a;
  border-top: 1px solid var(--ddc-6);
  padding-top: 20px;
}

.ddi-meta-item {
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--ddc-6);
}

.ddi-meta-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
/* ===============================
   STAT BAR (PORTED STRUCTURE)
=============================== */
.ddi-stat-bar {
  background: var(--ddc-1);
  color: #fff;
  padding: 44px 20px;
}

.ddi-stat-bar-inner {
  max-width: var(--ddi-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* INDIVIDUAL ITEM */
.ddi-stat-item {
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

/* ALIGNMENT LIKE ORIGINAL */
.ddi-stat-item:first-child {
  padding-left: 0;
  text-align: left;
}

.ddi-stat-item:last-child {
  border-right: none;
  text-align: right;
}

/* NUMBER */
.ddi-stat-num {
  font-family: var(--font-family);
  font-size: var(--custom-h2);
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
  color: var(--ddc-4);
}

/* LABEL */
.ddi-stat-label {
  font-size: var(--custom-h5);
  opacity: 0.7;
  line-height: var(--custom-lh);
  display: block;
}
/* ===============================
   PHASE TABLE (PORTED EXACTLY)
=============================== */
.ddi-phase-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: var(--custom-p);
}

/* HEADER */
.ddi-phase-table th {
  background: var(--ddc-1);
  color: #fff;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  font-size: var(--custom-h6);
  padding: 11px 16px;

}

/* BODY */
.ddi-phase-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
  line-height: var(--custom-body-lh);
}

/* ALTERNATING ROWS */
.ddi-phase-table tr:nth-child(even) td {
  background: var(--ddc-5);
}

/* BADGES */
.ddi-phase-badge {
  display: inline-block;
  font-size: var(--custom-h6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  padding: 4px 10px;
}

/* COLORS (TOKEN ALIGNED) */
.ddi-badge-red {
  background: #fde8df;
  color: var(--ddc-2);
}

.ddi-badge-amber {
  background: #fdf0d4;
  color: #8a5800;
}

.ddi-badge-green {
  background: #dff3ea;
  color: #1d6b42;
}
/* SIDEBAR */
.ddi-sidebar {
  position: sticky;
  top: 72px;
}

/* BASE CARD */
.ddi-sidebar-card {
  border: 1px solid var(--ddc-6);
  padding: 20px;
  margin-bottom: 20px;
  background: var(--ddc-5);
}

/* HEADINGS */
.ddi-sidebar-card h4 {
  font-size: var(--custom-p);
  margin-bottom: 14px;
  font-weight: 600;
}

/* LIST */
.ddi-sidebar-card ul {
  padding-left: 16px;
}

.ddi-sidebar-card li {
  font-size: var(--custom-h5);
  margin-bottom: 8px;
}

/* DARK DIAGNOSTIC CARD */
.ddi-sidebar-diagnostic {
  background: var(--ddc-1);
  color: #fff;
  border-color: var(--ddc-1);
}

.ddi-sidebar-diagnostic h4 {
  color: #fff;
}

/* DIAGNOSTIC ITEMS */
.ddi-sidebar-diag-item {
  font-size: var(--custom-h5);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ddi-sidebar-diag-item:last-child {
  border-bottom: none;
}

/* NOTES */
.ddi-sidebar-note {
  font-size: var(--custom-h5);
  opacity: 0.7;
  margin-bottom: 12px;
}

.ddi-sidebar-note-small {
  font-size: var(--custom-h6);
  opacity: 0.5;
  margin-top: 12px;
}

/* LINKS */
.ddi-slink {
  display: block;
  font-size: var(--custom-h5);
  padding: 8px 0;
  text-decoration: none;
  color: var(--ddc-2);
  border-bottom: 1px solid var(--ddc-6);
}

.ddi-slink:last-child {
  border-bottom: none;
}
/* ===============================
   STEP LIST
=============================== */
.ddi-step-list {
  margin: 40px 0;
}

/* EACH STEP */
.ddi-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 28px;
  margin-bottom: 52px;
  align-items: start;
}

/* NUMBER */
.ddi-step-num {
  font-family: var(--font-family);
  font-size: var(--custom-h2);
  font-weight: 800;
  color: var(--ddc-6);
  line-height: var(--custom-lh);
  text-align: right;
}

/* BODY */
.ddi-step-body h3 {
  font-family: var(--font-family);
  font-size: var(--custom-h4);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: var(--custom-lh);
}

.ddi-step-body p {
  font-size: var(--custom-p);
  line-height: var(--custom-body-lh);
  color: #3d3530;
  margin-bottom: 12px;
}

/* CALLOUT INSIDE STEP */
.ddi-step-body .ddi-callout {
  margin-top: 16px;
}
/* ===============================
   CHECKLIST
=============================== */
.ddi-checklist {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  color: #3d3530;
}

.ddi-checklist li {
  font-size: var(--custom-p);
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--ddc-6);
  margin-bottom: 0;
  position: relative;
}
.ddi-checklist li:last-child {
  border-bottom: none;
}
.ddi-checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ddc-2);
}


/* scorecard column alignment */
.ddi-scorecard-table td:last-child,
.ddi-scorecard-table th:last-child {
  text-align: center;
  width: 100px;
}
/* ===============================
   DECISION TREE
=============================== */
.ddi-decision-tree {
  margin: 32px 0;
  border: 1px solid var(--ddc-6);
}

/* ROW */
.ddi-decision-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ddc-6);
}

.ddi-decision-row:last-child {
  border-bottom: none;
}

/* QUESTION */
.ddi-decision-question {
  padding: 18px 20px;
  font-size: var(--custom-p);
  font-weight: 500;
  background: var(--ddc-5);
}

/* ANSWER */
.ddi-decision-answer {
  padding: 18px 20px;
  font-size: var(--custom-p);
  line-height: var(--custom-lh);
}

.ddi-decision-answer strong {
  color: var(--ddc-2);
}
/* ===============================
   CHECKLIST (ensure matches original behavior)
=============================== */
.ddi-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.ddi-checklist li {
  position: relative;
  padding-left: 20px;
  font-size: var(--custom-p);
  line-height: var(--custom-body-lh);
}

.ddi-checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ddc-2);
}

/* ===============================
   WARNING (EXACT STRUCTURE PORT)
=============================== */
.ddi-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff5eb; /* keep original tone */
  border: 1px solid #ffd9b8;
  padding: 16px 18px;
  margin: 30px 0;
}

.ddi-warning-icon {
  font-size: var(--custom-p);
  line-height: var(--custom-lh);
  margin-top: 2px;
}

.ddi-warning p {
  margin: 0;
  font-size: var(--custom-p);
  line-height: var(--custom-body-lh);
}
/* ===============================
   SUBHEADINGS (h3)
=============================== */
.ddi-content h3 {
  font-family: var(--font-family);
  font-size: var(--custom-h4);
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ddc-1);
}

/* ===============================
   GROUP SPACING (CADENCE BLOCK)
=============================== */
.ddi-content h3 + .ddi-checklist {
  margin-top: 0;
  margin-bottom: 28px;
}

/* tighten spacing between checklist groups */
.ddi-checklist + h3 {
  margin-top: 36px;
}
/* ===============================
   PHASE HEADINGS (SLIGHT EMPHASIS)
=============================== */
.ddi-content h3 {
  position: relative;
}

/* ===============================
   CHECKLIST GROUP SPACING
=============================== */
.ddi-content h3 + .ddi-checklist {
  margin-bottom: 30px;
}

.ddi-checklist + h3 {
  margin-top: 36px;
}
/* ===============================
   INLINE EMPHASIS
=============================== */
.ddi-content em {
  font-style: italic;
  color: var(--ddc-1);
}

/* ===============================
   CITATION LINKS
=============================== */
.ddi-content sup a {
  font-size: var(--custom-h6);
  text-decoration: none;
  color: var(--ddc-2);
}

.ddi-content sup a:hover {
  text-decoration: underline;
}
/* ===============================
   STRONG LABEL EMPHASIS (KEY FOR THIS SECTION)
=============================== */
.ddi-checklist li strong {
  font-weight: 600;
  color: var(--ddc-1);
}

/* optional: tighten spacing slightly for this dense list */
.ddi-checklist li {
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0;

}
/* ===============================
   ORDERED CHECKLIST (SOURCES)
=============================== */
.ddi-ordered {
  list-style: decimal;
  padding-left: 18px;
}

.ddi-ordered li {
  margin-bottom: 14px;
  font-size: var(--custom-p);
  line-height: var(--custom-body-lh);
}

/* ===============================
   FOOTNOTE
=============================== */
.ddi-footnote {
  font-size: var(--custom-h5);
  opacity: 0.7;
  margin-top: 10px;
}

/* ===============================
   CTA (PORTED STRUCTURE)
=============================== */
.ddi-cta {
  background: var(--ddc-1);
  color: #fff;
  padding: 52px 48px;
  margin: 64px 0 0;
}

.ddi-cta h3 {
  font-size: var(--custom-h3);
  margin-bottom: 10px;
  color: #fff;
}

.ddi-cta p {
  font-size: var(--custom-p);
  opacity: 0.9;
  color: #fff;
}

/* PRIMARY BUTTON */
.ddi-btn {
  display: inline-block;
  background: var(--ddc-2);
  color: #fff;
  padding: 14px 34px;
  font-size: var(--custom-h5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--custom-ls);
  text-decoration: none;
  line-height: var(--custom-lh);
}
.ddi-cta a{
	margin-top: 18px;
	color: #fff;
    text-transform: capitalize;
}
/* SECONDARY BUTTON */
.ddi-btn-secondary {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration: underline;
  font-size: var(--custom-h5);
  text-transform: uppercase !important;
}

.ddi-cta {
  background: var(--ddc-1);
  color: #fff;
  padding: 52px 48px;
  margin: 64px 0 0;
  text-align: center;
}

.ddi-cta h3 {
  font-family: var(--font-family);
  font-size: var(--custom-h2);
  font-weight: 700;
  line-height: var(--custom-lh);
  margin-bottom: 14px;
}

.ddi-cta p {
  font-size: var(--custom-p);
  opacity: 0.7;
  max-width: 460px;
  margin: 0 auto 30px;
}
/* ===============================
   TAGS
=============================== */
.ddi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ddi-tag {
  border: 1px solid var(--ddc-6);
  padding: 6px 10px;
  font-size: var(--custom-h5);
  text-transform: uppercase;
}

.ddi-cta {
  text-align: center;
}

.ddi-cta p {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.ddi-phase-table {
  border: none;
}

.ddi-phase-table td {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ddi-phase-table th {
  border: none;
}
.ddi-phase-table tr:nth-child(even) td {
  background: rgba(0,0,0,0.02);
}
.ddi-step-num {
  font-size: var(--custom-h2);
  font-weight: 800;
  color: rgba(0,0,0,0.08); /* THIS IS THE KEY */
}
.ddi-callout {
  background: var(--ddc-5);
  border-left: 3px solid var(--ddc-2);
  padding: 22px 26px;
  margin: 36px 0;
}
.ddi-step-body h3{
 margin: 0px 0px 20px;
}
/* ===============================
   SIDEBAR RESPONSIVE FIX
=============================== */

/* Tablet and below */
@media (max-width: 1024px) {

  .ddi-article-wrap {
    grid-template-columns: 1fr; /* stack layout */
    gap: 40px;
  }

  .ddi-sidebar {
    position: relative !important; /* remove sticky */
    top: auto !important;
    width: 100%;
  }

}

/* Mobile */
@media (max-width: 768px) {

  .ddi-article-wrap {
    padding: 40px 20px 60px;
  }

  .ddi-sidebar {
    margin-top: 20px;
  }

}
/* ===============================
   SIDEBAR RESPONSIVE WIDTH FIX
=============================== */

/* Tablet */
@media (max-width: 1024px) {

  .ddi-article-wrap {
    grid-template-columns: 1fr; /* already shared */
  }

  .ddi-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .ddi-sidebar-card,
  .ddi-toc {
    width: 100%;
  }

}

/* Mobile */
@media (max-width: 768px) {

  .ddi-sidebar {
    width: 100%;
  }

  .ddi-sidebar-card {
    padding: 16px; /* slightly tighter */
  }

}
/* Fix grid overflow */
.ddi-content {
  min-width: 0;
}

/* Fix mobile layout */
@media (max-width: 768px) {

  .ddi-article-wrap {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    padding: 32px 16px 48px;
  }

  .ddi-h1,
  .ddi-hero-lede {
    max-width: 100%;
  }

}
@media (max-width: 768px) {

  .ddi-phase-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

}
.ddi-toc ol{
padding-left: 20px;
}
.ddi-toc{
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}