/* ==========================================================================
   Delivery Dynamics — shared brand style for print and web marketing material
   Palette, type and components derived from the
   "Adaptive Delivery Planning" sales deck (v11.5).
   Reuse this file for every piece; put layout in a per-piece stylesheet.
   ========================================================================== */

/* Fonts: Inter (SIL OFL) is the open stand-in for the deck's Arial/Gilroy
   pairing. Static files are bundled so PDFs embed real, searchable fonts. */
@font-face { font-family: "Inter"; font-weight: 400; src: url("../assets/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; src: url("../assets/fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; src: url("../assets/fonts/Inter-Bold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: italic; src: url("../assets/fonts/Inter-MediumItalic.ttf") format("truetype"); }

/* Headings: Gilroy (brand font, licensed files go in assets/fonts) with
   Plus Jakarta Sans (SIL OFL) as the bundled stand-in until they are added. */
@font-face { font-family: "DD Gilroy"; font-weight: 500; src: local("Gilroy-Medium"), local("Gilroy Medium"); }
@font-face { font-family: "DD Gilroy"; font-weight: 600; src: local("Gilroy-SemiBold"), local("Gilroy SemiBold"); }
@font-face { font-family: "DD Gilroy"; font-weight: 700; src: local("Gilroy-Bold"), local("Gilroy Bold"); }
@font-face { font-family: "DD Gilroy"; font-weight: 800; src: local("Gilroy-ExtraBold"), local("Gilroy ExtraBold"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; src: url("../assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; src: url("../assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; src: url("../assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; src: url("../assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); }

:root {
  /* --- Brand palette (from the deck theme) -------------------------------- */
  --dd-navy-950: #0a1726;   /* deepest background, dark panels            */
  --dd-navy-900: #0f2135;   /* cover / hero background                    */
  --dd-navy-800: #152c47;   /* raised card on dark                        */
  --dd-navy-700: #143a72;   /* primary brand blue: headings, banners      */
  --dd-blue-600: #1d5aa6;   /* secondary blue                             */
  --dd-sky-500:  #39b7ff;   /* accent: on dark backgrounds, rules, icons  */
  --dd-sky-700:  #0b6aa8;   /* accent safe for text on white (AA 5.6:1)   */
  --dd-sky-100:  #e4f0fb;   /* icon discs, soft fills                     */
  --dd-sky-50:   #f2f7fc;   /* section tint                               */

  /* --- Neutrals ----------------------------------------------------------- */
  --dd-ink:      #13243a;   /* body text on white (15:1)                  */
  --dd-ink-2:    #3d4f66;   /* secondary text on white (8.4:1)            */
  --dd-line:     #d5dfeb;   /* hairlines                                  */
  --dd-white:    #ffffff;
  --dd-on-dark:  #ffffff;
  --dd-on-dark-2:#c3d2e4;   /* secondary text on navy-900 (10:1)          */

  /* --- Status (for placeholders during editing only) ---------------------- */
  --dd-warn-500: #f57f20;   /* deck theme orange: flags problems, used sparingly */
  --dd-warn-700: #a9500c;   /* warning text on light tint (AA 5.3:1)       */
  --dd-todo-bg:  #fff4cc;
  --dd-todo-ink: #6b4b00;

  /* --- Type --------------------------------------------------------------- */
  --dd-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --dd-font-head: "DD Gilroy", "Plus Jakarta Sans", var(--dd-font);
  --dd-fs-display: 30pt;
  --dd-fs-h1: 17pt;
  --dd-fs-h2: 11.5pt;
  --dd-fs-h3: 9.25pt;
  --dd-fs-lead: 11pt;
  --dd-fs-body: 8.5pt;      /* print minimum for body copy (Inter, large x-height) */
  --dd-fs-small: 7.5pt;     /* print minimum for captions / meta          */

  /* --- Shape -------------------------------------------------------------- */
  --dd-radius-sm: 1.2mm;
  --dd-radius: 2.4mm;
  --dd-radius-pill: 50mm;
}

/* --- Base ------------------------------------------------------------------ */
.dd {
  font-family: var(--dd-font);
  font-size: var(--dd-fs-body);
  line-height: 1.34;
  color: var(--dd-ink);
  font-feature-settings: "ss01" 0, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
/* Zero-specificity reset so component margins always win */
:where(.dd) :where(h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure) { margin: 0; }
:where(.dd) :where(ul, ol) { padding: 0; list-style: none; }

/* --- Type roles ------------------------------------------------------------ */
.dd-eyebrow {
  font-size: var(--dd-fs-small);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dd-sky-700);
}
.dd-display {
  font-size: var(--dd-fs-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--dd-navy-700);
}
.dd-h1 { font-size: var(--dd-fs-h1); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--dd-navy-700); }
.dd-h2 { font-size: var(--dd-fs-h2); font-weight: 700; line-height: 1.2;  letter-spacing: -.005em; color: var(--dd-navy-700); }
.dd-h3 { font-size: var(--dd-fs-h3); font-weight: 700; line-height: 1.25; color: var(--dd-navy-700); }
.dd-lead { font-size: var(--dd-fs-lead); line-height: 1.45; color: var(--dd-ink-2); }
.dd-muted { color: var(--dd-ink-2); }
.dd-small { font-size: var(--dd-fs-small); }

/* --- Dark surface (cover bands, result strips) ----------------------------- */
.dd-dark {
  background: var(--dd-navy-900);
  color: var(--dd-on-dark);
  position: relative;
  overflow: hidden;
}
.dd-dark .dd-eyebrow { color: var(--dd-sky-500); }
.dd-dark .dd-display,
.dd-dark .dd-h1, .dd-dark .dd-h2, .dd-dark .dd-h3 { color: var(--dd-on-dark); }
.dd-dark .dd-lead, .dd-dark .dd-muted { color: var(--dd-on-dark-2); }
.dd-dark--deep { background: var(--dd-navy-950); }

/* Faceted backdrop, echoing the deck cover's large translucent triangles */
.dd-facets::before,
.dd-facets::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(57, 183, 255, .045);
}
.dd-facets::before { width: 140mm; height: 140mm; left: -52mm; top: -30mm; clip-path: polygon(0 0, 100% 45%, 0 100%); }
.dd-facets::after  { width: 120mm; height: 120mm; right: -30mm; bottom: -60mm; clip-path: polygon(100% 0, 100% 100%, 0 70%); background: rgba(255,255,255,.03); }
.dd-facets > * { position: relative; z-index: 1; }

/* --- Accent text ----------------------------------------------------------- */
.dd-accent { color: var(--dd-sky-700); }
.dd-dark .dd-accent { color: var(--dd-sky-500); }

/* --- Section number badge -------------------------------------------------- */
.dd-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 5.8mm; height: 5.8mm; border-radius: 50%;
  background: var(--dd-navy-700); color: var(--dd-white);
  font-size: 8pt; font-weight: 700; flex: none;
}

/* --- Section heading: number + title + rule -------------------------------- */
.dd-section-head { display: flex; align-items: center; gap: 2.6mm; margin-bottom: 2.2mm; }
.dd-section-head::after { content: ""; flex: 1; height: .3mm; background: var(--dd-line); }

/* --- Icon: free-standing line icon, 32px grid, single colour ------------- */
.dd-icon {
  --icon-bg: var(--dd-white);
  width: 10.5mm; height: 10.5mm; color: var(--dd-navy-700);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.dd-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dd-dark { --icon-bg: var(--dd-navy-900); }
.dd-dark--deep { --icon-bg: var(--dd-navy-950); }
.dd-dark .dd-icon { color: var(--dd-white); }

/* --- Feature (icon + heading + text) --------------------------------------- */
.dd-feature { display: flex; gap: 3mm; align-items: flex-start; }
.dd-feature .dd-h3 { margin-bottom: .6mm; }

/* --- Banner (deck: navy bar with bold white statement) --------------------- */
.dd-banner {
  background: var(--dd-navy-700); color: var(--dd-white);
  border-radius: var(--dd-radius-sm);
  padding: 1.8mm 4mm; font-weight: 700; font-size: 9.5pt; text-align: center;
}

/* --- Pill label (deck: outlined rounded tag) ------------------------------- */
.dd-pill {
  display: inline-block; border: .3mm solid var(--dd-sky-500); color: var(--dd-navy-700);
  border-radius: var(--dd-radius-pill); padding: .5mm 2.6mm;
  font-size: var(--dd-fs-small); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.dd-dark .dd-pill { color: var(--dd-on-dark); }

/* --- Card ------------------------------------------------------------------ */
.dd-card { background: var(--dd-white); border: .3mm solid var(--dd-line); border-radius: var(--dd-radius); padding: 4mm; }
.dd-card--tint { background: var(--dd-sky-50); border-color: transparent; }
.dd-card--dark { background: var(--dd-navy-800); border-color: transparent; color: var(--dd-on-dark); }

/* --- Pull quote ------------------------------------------------------------ */
.dd-quote {
  position: relative; margin: 0; padding: 6mm 0 0 0;
  font-size: 12.5pt; line-height: 1.32; font-weight: 500; font-style: italic; letter-spacing: -.01em; color: var(--dd-navy-700);
}
.dd-quote::before {               /* oversized opening quote mark */
  content: "\201C"; position: absolute; left: -1.2mm; top: -6mm;
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
  font-size: 54pt; line-height: 1; font-style: normal; font-weight: 700; color: var(--dd-sky-500);
}
.dd-quote::after {                /* short accent rule under the quote */
  content: ""; display: block; width: 14mm; height: .8mm; margin-top: 3mm; background: var(--dd-sky-500); border-radius: .4mm;
}

/* --- Call to action -------------------------------------------------------- */
.dd-cta strong { color: var(--dd-navy-700); font-weight: 700; }
.dd-dark .dd-cta strong { color: var(--dd-sky-500); }
.dd-link { color: inherit; text-decoration: none; font-weight: 600; }

/* --- Editing placeholder: visible while drafting, hide with .dd-final ------ */
.dd-todo {
  background: var(--dd-todo-bg); color: var(--dd-todo-ink);
  border-radius: .8mm; padding: 0 1mm; font-weight: 600; font-size: .92em;
}
.dd-final .dd-todo { display: none; }

/* --- Heading typeface ------------------------------------------------------ */
.dd-display, .dd-h1, .dd-h2, .dd-h3, .dd-banner, .dd-num { font-family: var(--dd-font-head); font-variant-ligatures: no-common-ligatures; }  /* fallback face's ffi/fi ligatures read as a glitch */
.dd-display { font-weight: 700; letter-spacing: -.025em; }

/* --- Typographic polish ------------------------------------------------------ */
.dd p, .dd dd, .dd li { text-wrap: pretty; }
.dd-display, .dd-h1, .dd-h2, .dd-h3, .dd-quote, .dd-banner { text-wrap: balance; }

/* --- CTA pill ---------------------------------------------------------------- */
.dd-cta__pill {
  display: inline-block; padding: .9mm 3.4mm; margin-right: .8mm; border-radius: var(--dd-radius-pill);
  background: var(--dd-sky-500); color: var(--dd-navy-950) !important; font-weight: 700;
  border: .3mm solid var(--dd-sky-500);
}
.dd-cta__pill--ghost { background: transparent; color: var(--dd-sky-500) !important; margin: 0 0 0 .8mm; }
