/*
 Theme Name:   ProjectPhD
 Theme URI:    https://projectphd.com
 Description:  ProjectPhD governance diagnostic platform — standalone theme
 Author:       ProjectPhD
 Author URI:   https://projectphd.com
 Version:      2.0.0
 Requires at least: 6.0
 Requires PHP: 8.0
 License:      GNU General Public License v2 or later
 Text Domain:  projectphd
*/

/* Component library section labels */
.phd-component-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3c4a5f;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e6e8eb;
}

/* Base resets */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========================================================================
   PROJECTPHD DESIGN SYSTEM
   Reference: projectphd-component-library v5.html
   ========================================================================== */

:root {
  --page-bg: #eef2f5;
  --chrome: #ffffff;
  --chrome-line: #e6e8eb;
  --doc: #faf9f7;
  --doc-soft: #e8e6e3;
  --brand: #3c4a5f;
  --accent: #b8964c;
  --text: #2a2e35;
  --muted: #6a6f77;
  --proceed: #4e7d63;
  --stepup: #c7922c;
  --escalate: #a63e3e;
  --shadow: 0 14px 36px rgba(28, 33, 41, 0.08);
  --shadow-sm: 0 4px 12px rgba(28, 33, 41, 0.06);
  --radius-panel: 5px;
  --radius-card: 4px;
  --radius-pill: 999px;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
}

/* ── PANEL BASE CLASS ── */

/* Base white panel — inner cards/elements that sit on warm paper */
.phd-panel,
.phd-exposure-card,
.phd-comparison__col,
.phd-step,
.phd-stat,
.phd-output-mode,
.phd-feature-col,
.phd-resource-card,
.phd-related-card,
.phd-decision-tree__source,
.phd-decision-tree__card,
.phd-block-quote,
.phd-article-figure {
  background: var(--chrome);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
}

/* Warm paper containers — document-style background */
.phd-checklist,
.phd-download-list,
.phd-attribution,
.phd-data-table-wrap,
.phd-metadata-banner,
.phd-callout {
  background: var(--doc);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Elevated panel variant — inner cards that sit on warm paper */
.phd-panel--elevated,
.phd-product-card,
.phd-contact-info,
.phd-contact-form {
  background: var(--chrome);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}

/* Warm paper sections — document-style background for component containers */
.phd-hero,
.phd-two-col-hero__main,
.phd-two-col-hero__sidebar,
.phd-alignment-panel,
.phd-section__panel {
  background: var(--doc);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ── BASE ── */

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #f5f7f9 0%, var(--page-bg) 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── SERIF HEADING OVERRIDE ── */

.phd-hero__headline,
.phd-decision-headline,
.phd-doc-banner__heading,
.phd-two-col-hero__quote,
.phd-product-card__name,
.phd-cta-block__heading,
.phd-memo__title,
.phd-output-mode__title,
.phd-block-quote__text,
.phd-site-header__name,
.phd-site-footer__brand-name {
  font-family: var(--font-heading);
}

/* ── PAGE WRAPPER ── */

.phd-page-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Neutralise WP is-layout-flow margin on grid children */
.is-layout-flow.phd-resource-cards > *,
.is-layout-flow.phd-product-cards > *,
.is-layout-flow.phd-stat-row > *,
.is-layout-flow.phd-steps > *,
.is-layout-flow.phd-grid-2x2 > *,
.is-layout-flow.phd-comparison > *,
.is-layout-flow.phd-feature-cols > *,
.is-layout-flow.phd-output-modes > *,
.is-layout-flow.phd-two-col-hero > *,
.is-layout-flow.phd-narrative-data > *,
.is-layout-flow.phd-contact-layout > *,
.is-layout-flow.phd-decision-tree__branches > *,
.is-layout-flow.phd-related-content__grid > *,
.is-layout-flow.phd-metadata-banner > *,
.is-layout-flow.phd-scope-panel__grid > * {
  margin-block-start: 0;
}

/* ==========================================================================
   C1: HERO BANNER
   ========================================================================== */

.phd-hero {
  background: var(--chrome);
  border: 1px solid var(--chrome-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 48px 48px 44px;
  margin-bottom: 32px;
}

.phd-hero__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.phd-hero__headline {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  color: var(--brand);
  margin-bottom: 16px;
}

.phd-hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}

.phd-hero__proof {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 24px;
}

.phd-hero__proof span {
  color: var(--text);
  font-weight: 700;
}

/* ==========================================================================
   C2: TWO-COLUMN HERO
   ========================================================================== */

.phd-two-col-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  margin-bottom: 32px;
}

.phd-two-col-hero__main {
  padding: 40px;
}

.phd-two-col-hero__quote {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.phd-two-col-hero__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.phd-two-col-hero__sidebar {
  padding: 32px;
}

.phd-two-col-hero__sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 20px;
}

.phd-sidebar-list {
  list-style: none;
  counter-reset: sidebar;
  padding: 0;
}

.phd-sidebar-list li {
  counter-increment: sidebar;
  font-size: 15px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--chrome-line);
  display: flex;
  gap: 12px;
}

.phd-sidebar-list li:last-child { border-bottom: none; }

.phd-sidebar-list li::before {
  content: counter(sidebar);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(184, 150, 76, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   C3: BUTTONS
   ========================================================================== */

.phd-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.phd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.phd-btn--primary { background: var(--brand); color: var(--chrome); }
.phd-btn--primary:hover { background: #2f3a4c; box-shadow: 0 4px 16px rgba(60, 74, 95, 0.2); }
.phd-btn--secondary { background: var(--chrome); color: var(--brand); border: 2px solid var(--chrome-line); }
.phd-btn--secondary:hover { border-color: var(--brand); background: var(--chrome); }
.phd-btn--accent { background: var(--accent); color: var(--chrome); }
.phd-btn--accent:hover { background: #a6843f; }
.phd-btn--ghost { background: transparent; color: var(--brand); padding: 14px 0; }
.phd-btn--ghost:hover { color: var(--accent); }
.phd-btn--sm { font-size: 13px; padding: 10px 20px; border-radius: 5px; }

/* ==========================================================================
   C4: TYPOGRAPHY
   ========================================================================== */

.phd-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.phd-section-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
}

.phd-subsection-heading {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}

.phd-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.phd-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.phd-body p { margin-bottom: 18px; }
.phd-body p:last-child { margin-bottom: 0; }

.phd-body--secondary { color: var(--muted); }

/* ==========================================================================
   C5: PRODUCT CARDS (3-UP)
   ========================================================================== */

.phd-product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  background: var(--doc);
  padding: 28px;
}

.phd-product-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.phd-product-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent);
}

.phd-product-card__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.phd-product-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.phd-product-card__sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.phd-product-card__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.phd-product-card__price-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.phd-product-card__divider { border: none; border-top: 1px solid var(--chrome-line); margin: 0 0 20px; }

.phd-product-card__features { list-style: none; flex: 1; margin-bottom: 24px; padding: 0; }

.phd-product-card__features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0 6px 22px;
  position: relative;
}

.phd-product-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--proceed);
  font-weight: 700;
}

/* ==========================================================================
   C6: GOVERNANCE DECISION MEMO
   ========================================================================== */

.phd-memo {
  background: var(--doc);
  border: 1px solid rgba(60, 74, 95, 0.12);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 510px;
  transform: rotate(1.5deg);
  transform-origin: center center;
  margin: 40px auto;
}

.phd-memo__decision-bar { height: 4px; }
.phd-memo__decision-bar--stepup { background: var(--stepup); }
.phd-memo__decision-bar--proceed { background: var(--proceed); }
.phd-memo__decision-bar--escalate { background: var(--escalate); }

.phd-memo__body { padding: 17px 17px 14px; }

.phd-memo__header {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.phd-memo__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 20px;
}

.phd-memo__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.phd-memo__field-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.phd-memo__field-value { font-size: 10px; font-weight: 700; color: var(--brand); }
.phd-memo__field-value--decision { font-size: 11px; font-weight: 800; }

.phd-memo__conditions { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(60, 74, 95, 0.10); }
.phd-memo__conditions h4 { font-size: 7px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.phd-memo__conditions ol { font-size: 8px; color: var(--text); padding-left: 18px; }
.phd-memo__conditions li { padding: 3px 0; }

.phd-memo__footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(60, 74, 95, 0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 7px;
  font-weight: 700;
  color: var(--muted);
}

/* ==========================================================================
   C7: EXPOSURE / FEATURE GRID (2x2)
   ========================================================================== */

.phd-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  background: var(--doc);
  padding: 28px;
}

.phd-exposure-card {
  padding: 32px;
}

.phd-exposure-card__number { display: none; }
.phd-exposure-card__title { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.phd-exposure-card__text { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 16px; }
.phd-exposure-card__quote { font-size: 14px; font-style: italic; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--accent); }

/* ==========================================================================
   C8: WITHOUT / WITH COMPARISON
   ========================================================================== */

.phd-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
  background: var(--doc);
  padding: 28px;
}

.phd-comparison__col {
  padding: 32px;
}

.phd-comparison__col--negative { border-top: 3px solid var(--escalate); }
.phd-comparison__col--positive { border-top: 3px solid var(--proceed); }

.phd-comparison__heading { font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 20px; }

.phd-comparison__list { list-style: none; padding: 0; }

.phd-comparison__list li {
  font-size: 15px;
  color: var(--text);
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--chrome-line);
  position: relative;
}

.phd-comparison__list li:last-child { border-bottom: none; }

.phd-comparison__col--negative .phd-comparison__list li::before { content: "\2717"; position: absolute; left: 0; color: var(--escalate); font-weight: 700; }
.phd-comparison__col--positive .phd-comparison__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--proceed); font-weight: 700; }

/* ==========================================================================
   C9: ALIGNMENT INDEX
   ========================================================================== */

.phd-alignment-panel {
  padding: 36px;
  margin-bottom: 32px;
}

.phd-alignment-panel__heading { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }

.phd-alignment-row {
  display: grid;
  grid-template-columns: 200px 1fr 140px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--chrome-line);
}

.phd-alignment-row:last-of-type { border-bottom: none; }
.phd-alignment-row__label { font-size: 14px; font-weight: 700; color: var(--brand); }

.phd-alignment-bar { height: 12px; border-radius: var(--radius-pill); background: rgba(42, 46, 53, 0.07); overflow: hidden; }
.phd-alignment-bar__fill { height: 100%; border-radius: var(--radius-pill); }
.phd-alignment-row__status { font-size: 13px; font-weight: 700; }
.phd-alignment-row__status--high { color: var(--proceed); }
.phd-alignment-row__status--medium { color: var(--stepup); }
.phd-alignment-row__status--low { color: var(--escalate); }

.phd-alignment-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(184, 150, 76, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 5px 5px 0;
  font-size: 14px;
  color: var(--text);
}

/* ==========================================================================
   C10: STEP PROCESS
   ========================================================================== */

.phd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  background: var(--doc);
  padding: 28px;
}

.phd-step {
  padding: 28px 24px;
}

.phd-step__number { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.phd-step__title { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.phd-step__meta { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.phd-step__text { font-size: 14px; line-height: 1.6; color: var(--text); }

/* ==========================================================================
   C11: DATA TABLE
   ========================================================================== */

.phd-data-table-wrap {
  overflow: hidden;
  margin-bottom: 32px;
}

.phd-data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.phd-data-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 16px 24px; border-bottom: 2px solid var(--chrome-line); background: #fbfbfc; }
.phd-data-table td { padding: 14px 24px; border-bottom: 1px solid var(--chrome-line); color: var(--text); }
.phd-data-table tr:last-child td { border-bottom: none; }
.phd-data-table tr:hover td { background: rgba(60, 74, 95, 0.02); }

.phd-decision-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.phd-decision-badge--proceed { background: rgba(78, 125, 99, 0.12); color: var(--proceed); }
.phd-decision-badge--stepup { background: rgba(199, 146, 44, 0.12); color: var(--stepup); }
.phd-decision-badge--escalate { background: rgba(166, 62, 62, 0.12); color: var(--escalate); }

/* ==========================================================================
   C12: STAT ROW
   ========================================================================== */

.phd-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  background: var(--doc);
  padding: 28px;
  justify-content: center;
}

.phd-stat {
  padding: 28px 24px;
  text-align: center;
}

.phd-stat__number { font-size: 36px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.phd-stat__label { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   C13: CHECKLIST
   ========================================================================== */

.phd-checklist {
  padding: 36px;
  margin-bottom: 32px;
}

.phd-checklist__heading { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 24px; }

.phd-checklist__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--chrome-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.phd-checklist__item:last-child { border-bottom: none; }

.phd-checklist__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(78, 125, 99, 0.10);
  color: var(--proceed);
  font-weight: 800;
  font-size: 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   C14: DOCUMENT BANNER
   ========================================================================== */

.phd-doc-canvas-wrap { background: transparent; border-radius: 0; padding: 0; }

.phd-doc-banner {
  background: var(--doc-soft);
  border: 1px solid rgba(60, 74, 95, 0.10);
  border-radius: 0;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
}

.phd-doc-banner__kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; margin-top: 0; }
.phd-doc-banner__heading { font-size: 30px; font-weight: 700; line-height: 1.08; color: var(--brand); margin-bottom: 12px; margin-top: 0; }
.phd-doc-banner__text { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 0; }

/* ==========================================================================
   C15: CALLOUT BOX
   ========================================================================== */

.phd-callout {
  background: var(--doc);
  border: none;
  border-left: 4px solid var(--accent);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.phd-callout__heading { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.phd-callout__text { font-size: 16px; line-height: 1.6; color: var(--text); }

/* ==========================================================================
   C16: CTA BLOCK
   ========================================================================== */

.phd-cta-block {
  background: var(--brand);
  border-radius: var(--radius-panel);
  padding: 48px;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
}

.phd-cta-block .phd-btn-row { justify-content: center; }
.phd-cta-block__heading { font-size: 28px; font-weight: 700; color: var(--chrome); margin-bottom: 8px; }
.phd-cta-block__sub { font-size: 16px; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.phd-cta-block__detail { font-size: 14px; color: rgba(255, 255, 255, 0.5); margin-bottom: 28px; }

.phd-cta-block .phd-btn--primary { background: var(--accent); color: var(--chrome); }
.phd-cta-block .phd-btn--primary:hover { background: #a6843f; }
.phd-cta-block .phd-btn--secondary { border-color: rgba(255, 255, 255, 0.5); color: var(--chrome); background: rgba(255, 255, 255, 0.1); }
.phd-cta-block .phd-btn--secondary:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.15); }

.phd-cta-block__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.phd-cta-block__actions a {
  display: inline-block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: opacity 0.15s;
  background: rgba(255, 255, 255, 0.1);
  color: var(--chrome);
  border-color: rgba(255, 255, 255, 0.5);
}
.phd-cta-block__actions a:first-child {
  background: var(--accent);
  color: var(--chrome);
  border-color: var(--accent);
}
.phd-cta-block__actions a:hover { opacity: 0.9; }
.phd-cta-block__actions a:first-child:hover { background: #a6843f; border-color: #a6843f; }

/* ==========================================================================
   C17: CONTACT FORM LAYOUT
   ========================================================================== */

.phd-contact-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 24px;
  margin-bottom: 32px;
}

.phd-contact-info {
  padding: 36px;
}

.phd-contact-info h3 { font-size: 22px; font-weight: 700; color: var(--brand); margin-bottom: 16px; }
.phd-contact-info p { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 24px; }

.phd-sla-signals { background: rgba(184, 150, 76, 0.06); border-radius: 6px; padding: 20px; margin-bottom: 24px; }
.phd-sla-row { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--text); }
.phd-sla-row strong { color: var(--brand); min-width: 60px; font-variant-numeric: tabular-nums; }

.phd-contact-form {
  padding: 36px;
}

/* ==========================================================================
   C18: DECISION TREE
   ========================================================================== */

.phd-decision-tree { margin-bottom: 32px; background: var(--doc); padding: 28px; }

.phd-decision-tree__source {
  padding: 24px 28px;
  text-align: center;
}

.phd-decision-tree__source-label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.phd-decision-tree__source-title { font-size: 18px; font-weight: 700; color: var(--brand); }

.phd-decision-tree__connector { display: flex; justify-content: center; height: 40px; }
.phd-decision-tree__connector::before { content: ""; width: 2px; height: 100%; background: var(--chrome-line); }

.phd-decision-tree__branches { display: flex; justify-content: center; position: relative; margin-bottom: 12px; }
.phd-decision-tree__branches::before { content: ""; position: absolute; top: 0; left: calc(16.67% + 10px); right: calc(16.67% + 10px); height: 2px; background: var(--chrome-line); }

.phd-decision-tree__branch { flex: 1; display: flex; flex-direction: column; align-items: center; }
.phd-decision-tree__branch .phd-decision-tree__card { flex: 1; }
.phd-decision-tree__branch-line { width: 2px; height: 24px; background: var(--chrome-line); }

.phd-decision-tree__card {
  padding: 20px;
  margin: 0 8px;
  text-align: center;
  width: 100%;
  border-top: 3px solid transparent;
}

.phd-decision-tree__card--proceed { border-top-color: var(--proceed); }
.phd-decision-tree__card--stepup { border-top-color: var(--stepup); }
.phd-decision-tree__card--escalate { border-top-color: var(--escalate); }
.phd-decision-tree__card-title { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.phd-decision-tree__card-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.phd-decision-tree__card-price { font-size: 14px; font-weight: 700; color: var(--brand); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   C19: OUTPUT MODES PANEL
   ========================================================================== */

.phd-output-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; background: var(--doc); padding: 28px; }

.phd-output-mode {
  padding: 32px;
}

.phd-output-mode--primary { border-top: 3px solid var(--brand); }
.phd-output-mode--extended { border-top: 3px solid var(--accent); }
.phd-output-mode__badge { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.phd-output-mode--primary .phd-output-mode__badge { color: var(--brand); }
.phd-output-mode--extended .phd-output-mode__badge { color: var(--accent); }
.phd-output-mode__title { font-size: 22px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.phd-output-mode__count { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.phd-output-mode__divider { border: none; border-top: 1px solid var(--chrome-line); margin: 0 0 16px; }
.phd-output-mode__list { list-style: none; padding: 0; }
.phd-output-mode__list li { font-size: 14px; color: var(--text); padding: 7px 0; border-bottom: 1px solid var(--chrome-line); }
.phd-output-mode__list li:last-child { border-bottom: none; }
.phd-output-mode__list-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 0 4px; }

/* ==========================================================================
   C20: TWO-COLUMN FEATURE PANEL
   ========================================================================== */

.phd-feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; background: var(--doc); padding: 28px; }

.phd-feature-col {
  padding: 32px;
}

.phd-feature-col__number { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.phd-feature-col__title { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.phd-feature-col__text { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 16px; }
.phd-feature-col__detail { font-size: 14px; line-height: 1.6; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--chrome-line); }

/* ==========================================================================
   C21: SCOPE BOUNDARIES
   ========================================================================== */

.phd-scope-panel { background: var(--doc); border: none; border-radius: 0; box-shadow: none; overflow: hidden; margin-bottom: 32px; }
.phd-scope-panel__heading { font-size: 20px; font-weight: 700; color: var(--brand); padding: 28px 32px 0; margin-bottom: 20px; }
.phd-scope-panel__grid { display: grid; grid-template-columns: 1fr 1fr; }
.phd-scope-panel__col { padding: 0 32px 28px; }
.phd-scope-panel__col + .phd-scope-panel__col { border-left: 1px solid var(--chrome-line); }
.phd-scope-panel__col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--chrome-line); }
.phd-scope-panel__list { list-style: none; padding: 0; }
.phd-scope-panel__list li { font-size: 14px; color: var(--text); padding: 8px 0 8px 22px; border-bottom: 1px solid var(--chrome-line); position: relative; }
.phd-scope-panel__list li:last-child { border-bottom: none; }
.phd-scope-panel__col:first-child .phd-scope-panel__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--proceed); font-weight: 700; }
.phd-scope-panel__col:last-child .phd-scope-panel__list li::before { content: "\2014"; position: absolute; left: 0; color: var(--muted); font-weight: 700; }

/* ==========================================================================
   C22: METADATA BANNER
   ========================================================================== */

.phd-metadata-banner {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.phd-metadata-banner__item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.phd-metadata-banner__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.phd-metadata-banner__value { font-weight: 700; color: var(--brand); }
.phd-metadata-banner__sep { width: 1px; height: 20px; background: var(--chrome-line); }
.phd-metadata-banner__badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(78, 125, 99, 0.10); color: var(--proceed); }

/* ==========================================================================
   C23: NARRATIVE + DATA TABLE
   ========================================================================== */

.phd-narrative-data { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; margin-bottom: 32px; background: var(--doc); padding: 28px; }

.phd-narrative-data__text { background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: var(--radius-panel); box-shadow: var(--shadow-sm); padding: 32px; }
.phd-narrative-data__text h3 { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 16px; }
.phd-narrative-data__text p { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 14px; }
.phd-narrative-data__text p:last-child { margin-bottom: 0; }

.phd-narrative-data__table { background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: var(--radius-panel); box-shadow: var(--shadow-sm); overflow: hidden; }

.phd-kv-table { width: 100%; border-collapse: collapse; }
.phd-kv-table tr { border-bottom: 1px solid var(--chrome-line); }
.phd-kv-table tr:last-child { border-bottom: none; }
.phd-kv-table td { padding: 14px 20px; font-size: 14px; color: var(--text); }
.phd-kv-table td:first-child { font-size: 24px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; width: 100px; text-align: right; padding-right: 16px; }

/* ==========================================================================
   C24-C26: RESOURCE CARDS, DOWNLOAD LIST, STATUS BADGES
   ========================================================================== */

.phd-resource-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; align-items: start; }

.phd-resource-card { padding: 28px; display: flex; flex-direction: column; }
.phd-resource-card__badge { align-self: flex-start; margin-bottom: 14px; }
.phd-resource-card__title { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.phd-resource-card__desc { font-size: 14px; line-height: 1.6; color: var(--text); flex: 1; margin-bottom: 20px; }
.phd-resource-card__meta { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }

.phd-download-list { padding: 32px; margin-bottom: 32px; }
.phd-download-list__heading { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 20px; }
.phd-download-list__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--chrome-line); }
.phd-download-list__item:last-child { border-bottom: none; }
.phd-download-list__icon { flex-shrink: 0; width: 36px; height: 36px; background: rgba(184, 150, 76, 0.10); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.phd-download-list__info { flex: 1; }
.phd-download-list__title { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.phd-download-list__meta { font-size: 12px; color: var(--muted); }

.phd-status-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }
.phd-status-badge--coming { background: rgba(106, 111, 119, 0.10); color: var(--muted); }
.phd-status-badge--new { background: rgba(78, 125, 99, 0.12); color: var(--proceed); }
.phd-status-badge--updated { background: rgba(184, 150, 76, 0.12); color: var(--accent); }
.phd-status-badge--available { background: rgba(78, 125, 99, 0.12); color: var(--proceed); }
.phd-status-badge--free { background: rgba(60, 74, 95, 0.08); color: var(--brand); }

/* ==========================================================================
   C27-C30: ARTICLE COMPONENTS
   ========================================================================== */

.phd-article-figure { overflow: hidden; margin-bottom: 32px; }
.phd-article-figure__image { width: 100%; display: block; background: var(--doc-soft); min-height: 240px; }
.phd-article-figure__caption { padding: 16px 24px; border-top: 1px solid var(--chrome-line); }
.phd-article-figure__title { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.phd-article-figure__source { font-size: 12px; color: var(--muted); }

.phd-block-quote {
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
}

.phd-block-quote::before { content: "\201C"; position: absolute; top: 16px; left: 24px; font-size: 64px; line-height: 1; color: rgba(184, 150, 76, 0.2); font-family: Georgia, serif; }
.phd-block-quote__text { font-family: var(--font-heading); font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--brand); padding-left: 32px; margin-bottom: 16px; }
.phd-block-quote__attribution { font-size: 14px; color: var(--muted); padding-left: 32px; }
.phd-block-quote__attribution strong { color: var(--text); }

.phd-related-content { margin: 0 0 32px; background: var(--doc); padding: 0 28px 28px; }
.phd-related-card__category { display: none; }
.phd-related-content__heading { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.phd-related-content__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.phd-related-card { padding: 24px; text-decoration: none; display: block; transition: box-shadow 0.15s, border-color 0.15s; }
.phd-related-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.phd-related-card__badge { margin-bottom: 10px; }
.phd-related-card__title { display: block; font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 8px; line-height: 1.3; }
.phd-related-card__excerpt { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.phd-related-card__desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.phd-related-card__link { display: block; font-size: 13px; font-weight: 700; color: var(--accent); }

.phd-attribution { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 32px; }
.phd-attribution__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--doc-soft); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: var(--brand); }
.phd-attribution__info { flex: 1; }
.phd-attribution__name { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 2px; margin-top: 0; }
.phd-attribution__meta { font-size: 13px; color: var(--muted); margin-bottom: 0; margin-top: 0; }
.phd-attribution__methodology { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }
.phd-attribution__methodology p { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }

/* ==========================================================================
   SECTION PANEL (used in page layouts)
   ========================================================================== */

.phd-section {
  margin-bottom: 32px;
  background: var(--doc);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 40px 44px;
}

.phd-section__panel {
  padding: 40px 44px;
}

.phd-section__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.phd-section__heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 20px;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.phd-site-header {
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.phd-site-header__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.phd-site-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.phd-site-header__logo { height: 22px; width: auto; }

.phd-site-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phd-site-header__name {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.phd-site-header__tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--muted);
}

.phd-site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phd-site-header__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.phd-site-header__link:hover { color: var(--brand); background: rgba(60, 74, 95, 0.05); }

.phd-site-header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f6f8;
  border: 1px solid var(--chrome-line);
  border-radius: 5px;
  padding: 8px 14px;
  margin-left: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.phd-site-header__search:hover { border-color: #ccd0d5; }
.phd-site-header__search svg { width: 16px; height: 16px; color: var(--muted); }

.phd-site-header__search-input {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  width: 120px;
}

.phd-site-header__search-input::placeholder { color: var(--muted); }

.phd-site-header__cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--chrome);
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 12px;
  transition: background 0.15s;
}

.phd-site-header__cta:hover { background: #a6843f; }

.phd-site-header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--brand);
}

.phd-site-header__mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 24px 16px;
  border-top: 1px solid var(--chrome-line);
}

.phd-site-header--open .phd-site-header__mobile-nav {
  display: flex;
}

.phd-site-header__mobile-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--chrome-line);
}

.phd-site-header__mobile-nav a:last-child { border-bottom: none; }

.phd-site-header__mobile-cta {
  background: var(--accent);
  color: var(--chrome) !important;
  border-radius: 5px;
  padding: 12px 20px !important;
  text-align: center;
  margin-top: 8px;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.phd-site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 32px;
}

.phd-site-footer__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.phd-site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.phd-site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--chrome);
  margin-bottom: 8px;
}

.phd-site-footer__brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.phd-site-footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.phd-site-footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
}

.phd-site-footer__col a:hover { color: var(--chrome); }

.phd-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   ARTICLE DOCUMENT STACK
   The .phd-article-doc wrapper creates a continuous "paper document" look.
   C14 (banner) + body + optional C27/C28 + C30 (attribution) — no gaps.
   ========================================================================== */

.phd-article-doc {
  background: var(--doc);
  border-radius: 0;
  max-width: min(1100px, calc(100vw - 6px));
  margin: 0 auto;
  padding: 0;
}

/* Remove all vertical gaps between document stack children */
.phd-article-doc > .wp-block-group,
.phd-article-doc > .phd-doc-banner,
.phd-article-doc > .phd-article-body,
.phd-article-doc > .phd-article-figure,
.phd-article-doc > .phd-block-quote,
.phd-article-doc > .phd-attribution {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── C14 inside document stack ── */
.phd-article-doc .phd-doc-canvas-wrap {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.phd-article-doc .phd-doc-banner {
  background: var(--doc-soft);
  border: 1px solid rgba(60, 74, 95, 0.10);
  border-radius: 0;
  padding: 28px 28px 24px;
  margin-bottom: 0;
  box-shadow: none;
}

/* ── Article body text ── */
.phd-article-doc .phd-article-body {
  background: var(--doc);
  padding: 28px;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.phd-article-doc .phd-article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1em;
}

.phd-article-doc .phd-article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.phd-article-doc .phd-article-body h3 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

.phd-article-doc .phd-article-body ul,
.phd-article-doc .phd-article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.phd-article-doc .phd-article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0.3em;
}

/* ── C27 inside document stack — hard edges, doc background ── */
.phd-article-doc .phd-article-figure {
  background: var(--doc);
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  overflow: hidden;
  padding: 0 28px;
}

.phd-article-doc .phd-article-figure__image,
.phd-article-doc .phd-article-figure .wp-block-image {
  border-radius: 0;
  margin: 0;
}

.phd-article-doc .phd-article-figure .wp-block-image img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.phd-article-doc .phd-article-figure__caption {
  padding: 12px 0 16px;
  border-top: 1px solid rgba(60, 74, 95, 0.10);
}

/* ── C28 inside document stack — keeps rounded edges ── */
.phd-article-doc .phd-block-quote {
  margin: 0 28px;
  padding: 28px 32px;
  /* Keep border-radius from panel base — rounded edges */
  background: var(--chrome);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* ── C30 inside document stack — hard edges ── */
.phd-article-doc .phd-attribution {
  background: var(--doc-soft);
  border: 1px solid rgba(60, 74, 95, 0.10);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding: 20px 28px;
}

/* Bottom spacing after attribution (end of document) */
.phd-article-doc .phd-attribution:last-child {
  margin-bottom: 32px;
}

/* ── C31: Article Footer CTA ── */
.phd-article-footer-cta {
  background: var(--doc-soft);
  border: 1px solid rgba(60, 74, 95, 0.10);
  padding: 12px 28px 0;
  margin-bottom: 32px;
  border-radius: 0;
}

.phd-article-footer-cta__inner {
  padding: 0;
}

.phd-article-footer-cta__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px;
}

.phd-article-footer-cta__meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
  margin: 0;
}

.phd-article-footer-cta__text a,
.phd-article-footer-cta__meta a {
  color: var(--accent);
  text-decoration: none;
}

.phd-article-footer-cta__text a:hover,
.phd-article-footer-cta__meta a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   C32: CTA (Call to Action)
   ========================================================================== */

.phd-cta-inline {
  background: var(--doc);
  padding: 28px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.phd-page-wrap > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.phd-cta-inline a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.phd-cta-inline a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.phd-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 46, 53, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.phd-modal-overlay.phd-modal--open {
  display: flex;
}

.phd-modal {
  background: var(--chrome);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-panel);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  position: relative;
}

.phd-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.phd-modal__close:hover {
  color: var(--text);
}

.phd-modal__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 6px;
}

.phd-modal__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.phd-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.phd-modal__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.phd-modal__input {
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-card);
  color: var(--text);
  background: var(--chrome);
  outline: none;
  transition: border-color 0.15s;
}

.phd-modal__input:focus {
  border-color: var(--accent);
}

.phd-modal__submit {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: var(--chrome);
  border: none;
  border-radius: var(--radius-card);
  padding: 12px 24px;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
}

.phd-modal__submit:hover {
  opacity: 0.9;
}

.phd-modal__success {
  display: none;
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  color: var(--proceed);
  line-height: 1.5;
}

.phd-modal__error {
  display: none;
  font-size: 13px;
  color: var(--escalate);
  margin-top: 8px;
}

/* ── Neutralise WP is-layout-flow margins inside article doc ── */
.phd-article-doc .wp-block-group.is-layout-flow > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Re-enable paragraph spacing inside body */
.phd-article-doc .phd-article-body.is-layout-flow > *,
.phd-article-doc .phd-article-body > .is-layout-flow > * {
  margin-top: revert;
  margin-bottom: revert;
}

/* ==========================================================================
   ARTICLE ARCHIVE GRID (/insights)
   ========================================================================== */

.phd-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.phd-article-card {
  background: var(--chrome);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.phd-article-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.phd-article-card__image { overflow: hidden; }
.phd-article-card__img { width: 100%; display: block; height: 180px; object-fit: cover; }

.phd-article-card__body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }

.phd-article-card__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.phd-article-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
  margin-bottom: 8px;
}

.phd-article-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.phd-article-card__meta {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .phd-steps { grid-template-columns: repeat(2, 1fr); }
  .phd-stat-row { grid-template-columns: repeat(2, 1fr); }
  .phd-site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .phd-product-cards { grid-template-columns: 1fr; }
  .phd-resource-cards { grid-template-columns: 1fr; }
  .phd-related-content__grid { grid-template-columns: 1fr; }
  .phd-article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .phd-two-col-hero { grid-template-columns: 1fr; }
  .phd-comparison { grid-template-columns: 1fr; }
  .phd-grid-2x2 { grid-template-columns: 1fr 1fr; }
  .phd-contact-layout { grid-template-columns: 1fr; }
  .phd-alignment-row { grid-template-columns: 1fr; gap: 8px; }
  .phd-output-modes { grid-template-columns: 1fr; }
  .phd-feature-cols { grid-template-columns: 1fr; }
  .phd-narrative-data { grid-template-columns: 1fr; }
  .phd-scope-panel__grid { grid-template-columns: 1fr; }
  .phd-scope-panel__col + .phd-scope-panel__col { border-left: none; border-top: 1px solid var(--chrome-line); padding-top: 20px; }
  .phd-decision-tree__branches { flex-direction: column; align-items: center; gap: 12px; }
  .phd-decision-tree__branches::before { display: none; }
  .phd-decision-tree__branch { width: 100%; max-width: 360px; }
  .phd-decision-tree__card { margin: 0; }

  /* Fluid outer margins */
  .phd-page-wrap { padding-left: max(3px, calc((100vw - 390px) * 0.045)); padding-right: max(3px, calc((100vw - 390px) * 0.045)); }

  /* Fluid inner padding */
  .phd-hero,
  .phd-section,
  .phd-section__panel,
  .phd-block-quote,
  .phd-callout,
  .phd-cta-block { padding: max(10px, calc(10px + (100vw - 500px) * 0.106)) max(10px, calc(10px + (100vw - 500px) * 0.106)); }

  .phd-two-col-hero__main,
  .phd-two-col-hero__sidebar,
  .phd-exposure-card,
  .phd-comparison__col,
  .phd-alignment-panel,
  .phd-step,
  .phd-checklist,
  .phd-callout,
  .phd-contact-info,
  .phd-contact-form,
  .phd-product-card,
  .phd-stat,
  .phd-output-mode,
  .phd-feature-col,
  .phd-scope-panel__col,
  .phd-narrative-data__text,
  .phd-resource-card,
  .phd-download-list,
  .phd-decision-tree__source,
  .phd-decision-tree__card,
  .phd-related-card,
  .phd-attribution { padding: max(10px, calc(10px + (100vw - 500px) * 0.061)); }

  .phd-doc-canvas-wrap { padding: 0 !important; }
  .phd-doc-banner { padding: max(10px, calc(10px + (100vw - 500px) * 0.05)); }

  /* Article document stack — fluid padding */
  .phd-article-doc .phd-doc-banner,
  .phd-article-doc .phd-article-body,
  .phd-article-doc .phd-attribution,
  .phd-article-doc .phd-article-footer-cta__inner { padding: max(10px, calc(10px + (100vw - 500px) * 0.05)); }
  .phd-article-doc .phd-article-figure { padding: 0 max(10px, calc(10px + (100vw - 500px) * 0.05)); }
  .phd-article-doc .phd-block-quote { margin-left: max(10px, calc(10px + (100vw - 500px) * 0.05)); margin-right: max(10px, calc(10px + (100vw - 500px) * 0.05)); }

  .phd-data-table th,
  .phd-data-table td { padding: max(10px, calc(10px + (100vw - 500px) * 0.011)) max(10px, calc(10px + (100vw - 500px) * 0.039)); }

  .phd-site-header__inner { padding-left: max(3px, calc((100vw - 390px) * 0.045)); padding-right: max(3px, calc((100vw - 390px) * 0.045)); }
  .phd-site-footer__inner { padding-left: max(3px, calc((100vw - 390px) * 0.045)); padding-right: max(3px, calc((100vw - 390px) * 0.045)); }
}

@media (max-width: 1164px) {
  .phd-site-header__nav { display: none; }
  .phd-site-header__search { display: none; }
  .phd-site-header__cta { display: none; }
  .phd-site-header__mobile-toggle { display: block; }
}

@media (max-width: 640px) {
  .phd-steps { grid-template-columns: 1fr; }
  .phd-stat-row { grid-template-columns: 1fr; }
  .phd-site-footer__grid { grid-template-columns: 1fr; }
}
