/* Priori Data site theme ("Blue stage"). Every page is rendered into this
   layout by src/lib/theme.ts. Classes are prefixed pd- so they never collide
   with the block classes that remain inside migrated article bodies. */

:root {
  --blue: #2b58e5;
  --blue-deep: #1e41b8;
  --ink: #0b1533;
  --body: #3a445f;
  --muted: #6b7591;
  --line: #d9e0f2;
  --mist: #f3f5fb;
  --sky: #e4eafc;
  --sun: #ffd95a;
  --series: #2b58e5;
  --series-strong: #1e41b8;
  --grid: #e6eaf5;
  --axis: #b9c3de;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.pd-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pd-skip { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 100; }
.pd-skip:focus { left: 12px; top: 12px; }

/* ---- Stage: the blue band every page opens with ------------------------ */
.pd-stage { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.pd-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.pd-px { position: absolute; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.14); }
.pd-stage > .pd-wrap { position: relative; }

.pd-header { display: flex; align-items: center; gap: 26px; min-height: 84px; }
.pd-logo { display: block; flex: none; }
.pd-logo img { display: block; height: 32px; width: auto; }
.pd-nav { display: flex; gap: 6px; margin-left: auto; }
.pd-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
.pd-nav a:hover, .pd-nav a[aria-current] { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pd-btn { display: inline-block; background: var(--sun); color: var(--ink); font: 700 15px/1.2 var(--sans); text-decoration: none; padding: 12px 19px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; }
.pd-btn:hover { background: #ffe37c; color: var(--ink); }
.pd-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.pd-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pd-btn--blue { background: var(--blue); color: #fff; }
.pd-btn--blue:hover { background: var(--blue-deep); color: #fff; }
.pd-menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; padding: 0; }
.pd-menu span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; }

/* ---- Page bands -------------------------------------------------------- */
.pd-band { padding: 26px 0 64px; }
.pd-band--overlap { padding-bottom: 124px; }
.pd-crumb { font-size: 14px; font-weight: 500; color: #c6d4ff; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-crumb a { color: #fff; text-decoration: none; }
.pd-crumb a:hover { text-decoration: underline; }
.pd-band h1 { color: #fff; font-size: clamp(36px, 5.6vw, 72px); font-weight: 800; margin: 14px 0 0; max-width: 20ch; }
.pd-band--page h1 { max-width: none; }
.pd-band .pd-intro { font-size: 20px; line-height: 1.5; color: #e3eaff; max-width: 62ch; margin-top: 16px; }
.pd-band .pd-intro p { margin: 0 0 8px; }
.pd-band .pd-intro a { color: #fff; }
.pd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pd-pills > * { font-size: 13px; font-weight: 600; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); padding: 7px 12px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pd-pills a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pd-pills img { width: 22px; height: 22px; border-radius: 50%; margin: -3px 0 -3px -5px; }
.pd-avatar { border-radius: 50%; display: block; margin-top: 8px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }

/* ---- Home ------------------------------------------------------------- */
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 46px 0 130px; }
.pd-hero h1 { color: #fff; font-size: clamp(46px, 7.2vw, 96px); font-weight: 800; }
.pd-hero h1 mark { background: var(--sun); color: var(--ink); padding: 0 0.12em; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pd-hero p { font-size: 20px; line-height: 1.5; color: #e3eaff; max-width: 46ch; margin: 22px 0 28px; }
.pd-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-figstack { display: grid; gap: 14px; justify-items: end; }
.pd-figcard { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 20px; width: min(100%, 330px); box-shadow: 0 18px 40px rgba(11, 21, 51, 0.28); }
.pd-figcard:nth-child(1) { transform: rotate(-2deg); justify-self: start; }
.pd-figcard:nth-child(2) { transform: rotate(1.5deg); }
.pd-figcard:nth-child(3) { transform: rotate(-1deg); justify-self: center; }
.pd-figcard .v { font: 800 40px/1 var(--display); letter-spacing: -0.03em; }
.pd-figcard .l { font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.pd-figcard .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.pd-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: -82px; position: relative; }
.pd-door { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 10px 30px rgba(11, 21, 51, 0.1); text-decoration: none; color: var(--body); display: block; transition: transform 0.2s; }
.pd-door:hover { transform: translateY(-4px); color: var(--body); }
.pd-ic { display: grid; grid-template-columns: repeat(3, 12px); gap: 3px; margin-bottom: 18px; }
.pd-ic i { width: 12px; height: 12px; background: var(--sky); border-radius: 2px; }
.pd-ic i.on { background: var(--blue); }
.pd-door h3 { font-size: 26px; }
.pd-door p { margin: 8px 0 14px; font-size: 15px; line-height: 1.5; }
.pd-door span { font-weight: 700; color: var(--blue); }

.pd-section { padding: 64px 0 0; }
.pd-section > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pd-section h2 { font-size: clamp(30px, 4.2vw, 50px); }
.pd-section > header a { font-weight: 700; white-space: nowrap; }
.pd-feat { background: #fff; border-radius: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; box-shadow: 0 10px 30px rgba(11, 21, 51, 0.08); }
.pd-feat .txt { padding: 36px; }
.pd-feat .txt h3 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0; }
.pd-feat .txt p { margin: 0 0 20px; }
.pd-feat .viz { background: var(--sky); padding: 28px; }
.pd-feat .viz .inner { background: #fff; border-radius: 18px; padding: 20px; }
.pd-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--sky); color: var(--blue-deep); padding: 6px 10px; border-radius: 999px; }

.pd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pd-card { background: #fff; border-radius: 22px; padding: 24px; text-decoration: none; color: var(--body); display: flex; flex-direction: column; gap: 10px; border: 1px solid transparent; transition: border-color 0.2s; }
.pd-card:hover { border-color: var(--blue); color: var(--body); }
.pd-card .pd-badge { align-self: start; }
.pd-card h3 { font-size: 22px; line-height: 1.12; }
.pd-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.pd-card time { margin-top: auto; font-size: 13px; color: var(--muted); }
.pd-card--media { padding: 0; overflow: hidden; gap: 0; }
.pd-card--media img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--sky); }
.pd-card--media .in { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pd-card--media time { margin-top: 0; }
.pd-card--media h2, .pd-card--media h3 { font-size: 21px; line-height: 1.15; }

.pd-deep { background: var(--blue-deep); border-radius: 30px; padding: 44px; margin-top: 64px; color: #dce5ff; }
.pd-deep h2 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); }
.pd-deep > p { max-width: 58ch; margin: 12px 0 24px; }
.pd-vend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-vend a { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 18px; color: #fff; text-decoration: none; display: block; transition: background 0.2s; }
.pd-vend a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pd-vend b { font: 700 20px/1.15 var(--display); display: block; letter-spacing: -0.02em; }
.pd-vend span { display: block; font-size: 13px; color: #c6d4ff; margin-top: 6px; }

.pd-nl { background: var(--sky); border-radius: 26px; padding: 36px; margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; scroll-margin-top: 20px; }
.pd-nl h2 { font-size: clamp(26px, 3vw, 34px); }
.pd-nl p { margin: 8px 0 0; }
.pd-nl form { margin: 0; }
.pd-nl .row { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.pd-nl input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: var(--ink); }
.pd-form-status { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.pd-form-status:empty { display: none; }
.pd-form-status[data-state='error'] { color: #b42318; }
.pd-form-status[data-state='success'] { color: #067647; }

/* ---- Hubs ------------------------------------------------------------- */
.pd-hub { padding: 40px 0 0; }
.pd-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pd-pager a, .pd-pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.pd-pager a:hover { background: var(--blue); color: #fff; }
.pd-pager span[aria-current] { background: var(--ink); color: #fff; }
.pd-after { text-align: center; margin-top: 40px; }

/* ---- Articles and reports --------------------------------------------- */
.pd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -78px; position: relative; }
.pd-tile { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 12px 30px rgba(11, 21, 51, 0.12); }
.pd-tile .v { font: 800 38px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.pd-tile .l { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.35; }
.pd-tile .d { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pd-toc { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 6px; scrollbar-width: thin; }
.pd-toc a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; padding: 9px 14px; border-radius: 999px; }
.pd-toc a:hover { background: var(--blue); color: #fff; }

.pd-prose { max-width: 800px; margin: 0 auto; padding-top: 28px; color: var(--body); overflow-wrap: break-word; }
.pd-prose > :first-child { margin-top: 0; }
.pd-prose p { margin: 0 0 20px; }
.pd-prose > p:first-of-type { font-size: 20px; line-height: 1.55; color: var(--ink); }
.pd-prose h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 52px 0 16px; scroll-margin-top: 20px; }
.pd-prose h3 { font-size: 24px; margin: 34px 0 12px; letter-spacing: -0.02em; }
.pd-prose h4 { font-size: 19px; margin: 26px 0 10px; letter-spacing: -0.01em; }
.pd-prose strong { color: var(--ink); }
.pd-prose ul, .pd-prose ol { margin: 0 0 22px; padding-left: 24px; }
.pd-prose li { margin-bottom: 8px; }
.pd-prose li::marker { color: var(--blue); font-weight: 700; }
.pd-prose figure { margin: 28px 0; }
.pd-prose figure img, .pd-prose > p > img { display: block; border-radius: 18px; margin: 0 auto; }
.pd-prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.pd-prose .wp-block-table, .pd-prose > table { background: #fff; border-radius: 22px; padding: 10px 22px; overflow-x: auto; }
.pd-prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pd-prose th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 12px 0; vertical-align: bottom; }
.pd-prose td { padding: 13px 14px 13px 0; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.pd-prose thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
.pd-prose tbody:first-child tr:first-child td { border-top: 0; }
.pd-prose td:first-child, .pd-prose th:first-child { font-weight: 600; }
.pd-prose blockquote { margin: 28px 0; padding: 22px 26px; background: var(--sky); border-radius: 22px; color: var(--ink); font-size: 19px; }
.pd-prose blockquote p:last-child { margin-bottom: 0; }
.pd-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--muted); }
.pd-prose code { font: 500 0.88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; overflow-wrap: anywhere; }
.pd-prose p > code:only-child { display: block; padding: 12px 14px; border-radius: 12px; }
.pd-prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.pd-prose .wp-block-group.has-background { background: #fff !important; border-radius: 22px; padding: 22px 24px; margin: 0 0 24px; }
.pd-prose .wp-block-group.has-background > :last-child { margin-bottom: 0; }
.pd-prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 24px; }
.pd-prose .wp-block-column { flex: 1 1 260px; min-width: 0; }
.pd-prose .has-text-align-center, .pd-prose .aligncenter { text-align: center; }
.pd-prose .wp-block-button a, .pd-prose .wp-element-button { display: inline-block; background: var(--blue); color: #fff; font: 700 15px/1.2 var(--sans); text-decoration: none; padding: 12px 19px; border-radius: 999px; border: 0; cursor: pointer; }
.pd-prose .wp-block-embed { margin: 28px 0; }
.pd-prose input, .pd-prose textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.pd-prose iframe { max-width: 100%; }

.pd-author { max-width: 800px; margin: 56px auto 0; background: #fff; border-radius: 22px; padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.pd-author img { border-radius: 50%; display: block; }
.pd-author .n { font: 700 20px/1.2 var(--display); color: var(--ink); text-decoration: none; }
.pd-author .k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pd-author p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.pd-more { max-width: 800px; margin: 56px auto 0; }
.pd-more h2 { font-size: 28px; margin-bottom: 16px; }
.pd-more .pd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-more .pd-card { padding: 18px; border-radius: 18px; }
.pd-more .pd-card h3 { font-size: 18px; }

/* ---- About ------------------------------------------------------------ */
.pd-doors--about .pd-door h3 { margin-bottom: 0; }
.pd-about { max-width: 860px; margin: 0 auto; }
.pd-about .pd-aside { margin: 22px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.pd-about section { margin-top: 64px; }
.pd-about h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.pd-about section > p { margin: 0 0 16px; max-width: 68ch; }
.pd-person { background: #fff; border-radius: 22px; padding: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 20px; }
.pd-person img { border-radius: 50%; display: block; }
.pd-person h3 { font-size: 24px; }
.pd-person .role { margin: 4px 0 10px; font-size: 14px; font-weight: 700; color: var(--blue); }
.pd-person p { margin: 0 0 10px; font-size: 16px; }
.pd-person .links { margin: 0; font-weight: 600; font-size: 15px; }
.pd-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.pd-points > div { background: #fff; border-radius: 20px; padding: 22px; }
.pd-points h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.pd-points p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.pd-contact-cta { background: var(--blue-deep); color: #dce5ff; border-radius: 26px; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pd-contact-cta h2 { color: #fff; margin-bottom: 6px; }
.pd-contact-cta p { margin: 0; }
.pd-contact-cta .pd-btn { background: var(--sun); color: var(--ink); }
@media (max-width: 700px) {
  .pd-points { grid-template-columns: minmax(0, 1fr); }
  .pd-person { grid-template-columns: minmax(0, 1fr); }
  .pd-contact-cta { padding: 26px; }
}

/* ---- App Marketing Course ----------------------------------------------- */
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pd-hero--course { padding-top: 26px; align-items: start; }
.pd-hero--course h1 { font-size: clamp(44px, 6.2vw, 80px); margin-top: 12px; }
.pd-hero--course > div > p { margin: 20px 0 26px; }
.pd-status { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 0 !important; font-size: 13px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); padding: 7px 12px; border-radius: 999px; }
.pd-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.pd-wait { margin: 0; max-width: 520px; }
.pd-wait .row { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.pd-wait input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: var(--ink); }
.pd-stage .pd-form-status, .pd-deep .pd-form-status { color: #fff !important; }
.pd-wait-note { font-size: 14px !important; color: #c6d4ff !important; margin: 12px 0 0 !important; }
.pd-glance { background: #fff; color: var(--ink); border-radius: 22px; padding: 24px 26px; box-shadow: 0 18px 40px rgba(11, 21, 51, 0.28); margin-top: 62px; justify-self: end; width: min(100%, 400px); }
.pd-glance h2 { font-size: 22px; margin-bottom: 8px; }
.pd-glance dl { margin: 0; }
.pd-glance dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.pd-glance dt { color: var(--muted); font-weight: 600; }
.pd-glance dd { margin: 0; font-weight: 600; }
.pd-door--static:hover { transform: none; }
.pd-door--static h3 { font-size: 24px; }
.pd-door--static p { margin-bottom: 0; }
.pd-sub { max-width: 68ch; margin: 0 0 24px; font-size: 18px; }
.pd-fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.pd-modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-modules li { background: #fff; border-radius: 20px; padding: 22px; }
.pd-modules .n { display: block; font: 800 15px/1 var(--display); color: var(--blue); letter-spacing: 0.04em; margin-bottom: 12px; }
.pd-modules h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; }
.pd-modules p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.pd-course .pd-points { margin: 0; }
.pd-points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-course .pd-person { margin-top: 0; }
.pd-person .pd-proof { font-size: 15px; font-weight: 600; }
.pd-deep--cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; scroll-margin-top: 20px; }
.pd-deep--cta p { margin: 12px 0 0; }
.pd-deep--cta .pd-wait { max-width: none; }
.pd-course-cta { max-width: 800px; margin: 56px auto 0; background: var(--sky); border-radius: 22px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pd-course-cta > div { flex: 1 1 320px; min-width: 0; }
.pd-course-cta .t { font: 700 24px/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); margin: 10px 0 4px; }
.pd-course-cta p { margin: 0; font-size: 15px; line-height: 1.5; }
.pd-course-cta + .pd-author { margin-top: 18px; }
@media (max-width: 960px) {
  .pd-glance { justify-self: start; margin-top: 0; }
  .pd-modules, .pd-points--3, .pd-deep--cta { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 620px) and (max-width: 960px) {
  .pd-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pd-wait .row { flex-direction: column; border-radius: 20px; }
  .pd-glance { padding: 20px; }
}

/* ---- Plain pages: privacy, contact, 404 ------------------------------- */
.pd-lede { font-size: 20px; color: var(--ink); }
.pd-404-code { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); margin: 0 0 8px !important; }
.pd-link-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pd-link-grid li { margin: 0; }
.pd-link-grid a { display: block; height: 100%; padding: 20px; background: #fff; border-radius: 18px; text-decoration: none; }
.pd-link-grid strong { display: block; font: 700 19px/1.2 var(--display); }
.pd-link-grid span { display: block; margin-top: 4px; font-size: 14px; color: var(--body); }
.pd-contact-form p { margin-bottom: 16px; }
.pd-contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.pd-contact-form input, .pd-contact-form textarea { width: 100%; }
.pd-contact-social { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-contact-social li { margin: 0; }
.pd-contact-social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* ---- Footer ----------------------------------------------------------- */
.pd-footer { background: var(--ink); color: #aab5d6; margin-top: 88px; padding: 56px 0 28px; font-size: 15px; }
.pd-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.pd-footer img { display: block; height: 30px; width: auto; }
.pd-footer .about { margin: 16px 0 0; max-width: 34ch; line-height: 1.55; }
.pd-footer h2 { font: 700 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.pd-footer ul { list-style: none; margin: 0; padding: 0; }
.pd-footer li { margin-bottom: 9px; }
.pd-footer a { color: #d7def3; text-decoration: none; }
.pd-footer a:hover { color: #fff; text-decoration: underline; }
.pd-social { display: flex; gap: 6px; margin-top: 18px; }
.pd-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.pd-social a:hover { background: var(--blue); }
.pd-footer .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---- Charts ----------------------------------------------------------- */
.pd-chart { margin: 0; }
.pd-prose .pd-chart { background: #fff; border-radius: 22px; padding: 22px; margin: 28px 0; }
.pd-chart figcaption { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; text-align: left; }
.pd-chart figcaption strong { font-size: 16px; color: var(--ink); }
.pd-chart figcaption span { font-size: 13px; color: var(--muted); }
.pd-chart-plot { position: relative; }
.pd-chart svg { display: block; width: 100%; height: auto; }
.ch-grid { stroke: var(--grid); stroke-width: 1; }
.ch-base { stroke: var(--axis); stroke-width: 1; }
.ch-tick, .ch-cat { font: 400 11px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.ch-val { font: 600 12px var(--sans); fill: var(--ink); }
.ch-bar { fill: var(--series); transition: fill 0.15s; }
.ch-hit { fill: transparent; }
.ch-col { cursor: default; outline: none; }
.ch-col:hover .ch-bar, .ch-col:focus .ch-bar { fill: var(--series-strong); }
.pd-chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; transform: translate(-50%, -100%); white-space: nowrap; z-index: 2; }
.pd-chart-tip b { display: block; font-size: 13px; }
.pd-chart-table { margin-top: 8px; font-size: 13px; color: var(--muted); }
.pd-chart-table summary { cursor: pointer; width: max-content; }
.pd-chart-table table { width: auto; margin-top: 8px; }
.pd-chart-table th, .pd-chart-table td { padding: 5px 20px 5px 0; }
.pd-chart-source { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--muted) !important; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .pd-menu { display: block; }
  .pd-header { flex-wrap: wrap; }
  .pd-header > .pd-btn { display: none; }
  .pd-nav { display: none; order: 9; flex-basis: 100%; flex-direction: column; gap: 2px; margin: 0 0 16px; padding: 10px; background: var(--blue-deep); border-radius: 18px; }
  .pd-nav.open { display: flex; }
  .pd-nav a { padding: 12px 14px; font-size: 16px; }
  .pd-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 110px; }
  .pd-figstack { justify-items: start; }
  .pd-figcard { transform: none !important; justify-self: start !important; }
  .pd-doors, .pd-cards, .pd-vend, .pd-feat, .pd-nl { grid-template-columns: minmax(0, 1fr); }
  .pd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-more .pd-cards { grid-template-columns: minmax(0, 1fr); }
  .pd-deep { padding: 28px; border-radius: 24px; }
  .pd-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 620px) and (max-width: 960px) {
  .pd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .pd-wrap { padding: 0 16px; }
  .pd-tiles { gap: 10px; }
  .pd-tile { padding: 16px; }
  .pd-tile .v { font-size: 28px; }
  .pd-feat .txt { padding: 24px; }
  .pd-feat .viz { padding: 14px; }
  .pd-nl { padding: 24px; }
  .pd-nl .row { flex-direction: column; border-radius: 20px; }
  .pd-prose .wp-block-table, .pd-prose > table { padding: 6px 14px; border-radius: 16px; }
  .pd-author { grid-template-columns: minmax(0, 1fr); }
  .pd-footer .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pd-door, .pd-card, .ch-bar { transition: none; }
}
