/* pacemkr.ca — "Flow paper": a cool paper canvas, ink type, one electric blue, and the
   percentile colours (red / amber / green) the product itself uses for confidence levels.
   Signature: SLE rules (big numerals with a coloured percentile bar) + dotted cycle-time scatter. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,500;12..96,700;12..96,800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --pm-ink: #0b1020;
  --pm-ink-2: #1a2342;
  --pm-paper: #f4f6fb;
  --pm-card: #ffffff;
  --pm-line: #d6dcec;
  --pm-muted: #475069;
  --pm-blue: #1450ff;
  --pm-blue-link: #0e3fd1;
  --pm-blue-press: #0a2c9a;
  --pm-cyan: #22d3ee;
  --pm-red: #c92f2f;
  --pm-amber: #d98200;
  --pm-green: #168a4f;
  --pm-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --pm-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --pm-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --pm-leaf: 0.3rem 1.2rem 0.3rem 1.2rem;

  --pmflow-max: 70rem;
  --pmflow-gutter: clamp(1rem, 3.4vw, 2.5rem);

  /* map theme tokens onto skin tokens */
  --text: var(--pm-ink);
  --muted: var(--pm-muted);
  --page-bg: var(--pm-paper);
  --accent: var(--pm-blue-link);
  --accent-dim: var(--pm-blue-press);
  --c_text: var(--pm-ink);
  --c_bg: var(--pm-paper);
}

html { scroll-behavior: smooth; }

body {
  background: var(--pm-paper);
  color: var(--pm-ink);
  font-family: var(--pm-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Links & interactive states (no purple :visited) ---------- */
a,
a:link,
a:visited {
  color: var(--pm-blue-link);
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
}
a:hover,
a:focus-visible {
  color: var(--pm-ink);
  text-decoration-color: currentColor;
}
a:active { color: var(--pm-blue-press); }
a:focus-visible,
.pm-btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pm-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.pmflow-hdr.header,
.header.pmflow-hdr {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pm-line);
  box-shadow: none;
}
/* theme .container carries 3rem/4.5rem block padding; the header must stay slim */
.pmflow-hdr .container { padding-block: 0 !important; }
.pmflow-hdr .header_inner { padding: 0.7rem 0 !important; gap: 1rem !important; }
.pmflow-hdr .header_brand,
.pmflow-hdr .header_brand:link,
.pmflow-hdr .header_brand:visited { color: var(--pm-ink) !important; text-decoration: none; }
.pmflow-hdr .header_brand::before {
  content: "";
  width: 2.1rem;
  height: 0.7rem;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath fill='%231450ff' d='M0 15A15 15 0 0 0 15 30 15 15 0 0 0 30 15V0H15A15 15 0 0 0 0 15z'/%3E%3Crect fill='%230b1020' x='35' width='30' height='30'/%3E%3Cpath fill='%231450ff' d='M70 15v15h15a15 15 0 0 0 15-15V0H85A15 15 0 0 0 70 15z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pmflow-hdr .header_brand_name {
  font-family: var(--pm-display);
  font-weight: 800;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--pm-ink) !important;
  line-height: 1 !important;
}
.pmflow-hdr .header_menu { gap: 0.2rem 1.35rem !important; }
.pmflow-hdr .header_menu a,
.pmflow-hdr .header_menu a:link,
.pmflow-hdr .header_menu a:visited {
  font-family: var(--pm-body);
  font-weight: 500;
  font-size: 0.92rem !important;
  color: var(--pm-ink-2) !important;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.pmflow-hdr .header_menu a:hover,
.pmflow-hdr .header_menu a:focus-visible,
.pmflow-hdr .header_menu a:active,
.pmflow-hdr .header_menu .current-menu-item > a,
.pmflow-hdr .header_menu .current-menu-item > a:visited,
.pmflow-hdr .header_menu .current_page_item > a {
  color: var(--pm-blue-link) !important;
  border-bottom-color: var(--pm-blue);
}
.pmflow-hdr .header_burger_line { background: var(--pm-ink); }

/* ---------- Shared type ---------- */
.pm-wrap {
  width: 100%;
  max-width: var(--pmflow-max);
  margin-inline: auto;
  padding-inline: var(--pmflow-gutter);
  box-sizing: border-box;
}
.pm-h2 {
  font-family: var(--pm-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  color: var(--pm-ink);
}
.pm-h2--inv { color: #fff; }
.pm-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--pm-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-muted);
}

/* ---------- Buttons ---------- */
.pm-btn,
.pm-btn:link,
.pm-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--pm-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--pm-leaf);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pm-btn--solid,
.pm-btn--solid:link,
.pm-btn--solid:visited { background: var(--pm-blue); color: #fff; border-color: var(--pm-blue); }
.pm-btn--solid:hover,
.pm-btn--solid:focus-visible { background: var(--pm-ink); border-color: var(--pm-ink); color: #fff; transform: translateY(-2px); }
.pm-btn--solid:active { background: var(--pm-blue-press); border-color: var(--pm-blue-press); color: #fff; transform: none; }
.pm-btn--line,
.pm-btn--line:link,
.pm-btn--line:visited { background: transparent; color: var(--pm-ink); border-color: var(--pm-ink); }
.pm-btn--line:hover,
.pm-btn--line:focus-visible { background: var(--pm-ink); color: #fff; transform: translateY(-2px); }
.pm-btn--line:active { background: var(--pm-ink-2); color: #fff; transform: none; }
.pm-btn--glow,
.pm-btn--glow:link,
.pm-btn--glow:visited { background: #fff; color: var(--pm-ink); border-color: #fff; }
.pm-btn--glow:hover,
.pm-btn--glow:focus-visible { background: var(--pm-cyan); border-color: var(--pm-cyan); color: var(--pm-ink); transform: translateY(-2px); }
.pm-btn--glow:active { background: #8be9f8; color: var(--pm-ink); transform: none; }
.pm-btn--solid-inv,
.pm-btn--solid-inv:link,
.pm-btn--solid-inv:visited { background: #fff; color: var(--pm-blue-press); border-color: #fff; }
.pm-btn--solid-inv:hover,
.pm-btn--solid-inv:focus-visible { background: var(--pm-ink); color: #fff; border-color: var(--pm-ink); transform: translateY(-2px); }
.pm-btn--solid-inv:active { background: var(--pm-ink-2); color: #fff; transform: none; }
.pm-btn--line-inv,
.pm-btn--line-inv:link,
.pm-btn--line-inv:visited { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.pm-btn--line-inv:hover,
.pm-btn--line-inv:focus-visible { background: #fff; color: var(--pm-blue-press); transform: translateY(-2px); }
.pm-btn--line-inv:active { background: #e6ecff; color: var(--pm-blue-press); transform: none; }

/* ---------- Home: hero ---------- */
.pmflow-home { overflow-x: hidden; }
.pm-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-paper) 100%);
  border-bottom: 1px solid var(--pm-line);
  overflow: hidden;
}
.pm-hero__scatter {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  background: url("media/scatter.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, transparent 0%, #000 35%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, transparent 0%, #000 35%);
  mask-composite: intersect;
  opacity: 0.55;
}
.pm-hero__grid {
  max-width: var(--pmflow-max);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pmflow-gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  box-sizing: border-box;
}
.pm-hero__title { margin: 0 0 1.1rem; display: block; }
.pm-hero__brand {
  display: block;
  font-family: var(--pm-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: var(--pm-ink);
}
.pm-hero__idea {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--pm-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pm-ink-2);
  max-width: 24ch;
}
.pm-hero__lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--pm-muted);
}
.pm-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pm-hero__art { margin: 0; }
.pm-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(11, 16, 32, 0.22));
  animation: pm-float 7s ease-in-out infinite;
}
@keyframes pm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Home: SLE rules ---------- */
.pm-sle { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--pm-card); border-bottom: 1px solid var(--pm-line); }
.pm-sle__head { max-width: 42rem; margin-bottom: 2rem; }
.pm-sle__sub { margin: 0; color: var(--pm-muted); }
.pm-sle__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.pm-sle__item {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.pm-sle__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 0.4rem;
  background: var(--bar, var(--pm-green));
  transform-origin: top;
  animation: pm-bar 0.9s cubic-bezier(.2, .7, .2, 1) both;
}
.pm-sle__item--95 { --bar: var(--pm-green); }
.pm-sle__item--85 { --bar: #38a869; }
.pm-sle__item--70 { --bar: var(--pm-amber); }
.pm-sle__item--50 { --bar: var(--pm-red); }
.pm-sle__item--85::before { animation-delay: 0.08s; }
.pm-sle__item--70::before { animation-delay: 0.16s; }
.pm-sle__item--50::before { animation-delay: 0.24s; }
@keyframes pm-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pm-sle__num {
  font-family: var(--pm-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--pm-ink);
  font-variant-numeric: tabular-nums;
}
.pm-sle__unit { font-size: 0.95rem; color: var(--pm-ink-2); margin-top: 0.25rem; }
.pm-sle__conf {
  font-family: var(--pm-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pm-muted);
  margin-top: 0.15rem;
}

/* ---------- Home: steps ---------- */
.pm-steps { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pm-steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.pm-steps__intro p { color: var(--pm-muted); margin: 0 0 1.25rem; }
.pm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pm-chips li {
  padding: 0.35rem 0.8rem;
  font-family: var(--pm-mono);
  font-size: 0.82rem;
  color: var(--pm-ink);
  background: var(--pm-card);
  border: 1px solid var(--pm-ink);
  border-radius: var(--pm-leaf);
}
.pm-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pm-steps__list li {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  background: var(--pm-card);
  border: 1px solid var(--pm-line);
  border-radius: 0.3rem;
}
.pm-steps__n {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-family: var(--pm-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--pm-blue);
  border-radius: 0.2rem 1.2rem 0.2rem 1.2rem;
}
.pm-steps__list li:nth-child(2) .pm-steps__n { background: var(--pm-ink); border-radius: 0.2rem; }
.pm-steps__list li:nth-child(3) .pm-steps__n { border-radius: 50%; }
.pm-steps__list li:nth-child(4) .pm-steps__n { background: var(--pm-ink); border-radius: 1.2rem 0.2rem 1.2rem 0.2rem; }
.pm-steps__list h3 { margin: 0 0 0.2rem; font-family: var(--pm-display); font-size: 1.1rem; font-weight: 700; }
.pm-steps__list p { margin: 0; color: var(--pm-muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Home: night section ---------- */
.pm-night {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: #06103a url("media/background.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.pm-night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 12, 40, 0.92) 0%, rgba(6, 12, 40, 0.7) 55%, rgba(6, 12, 40, 0.35) 100%);
}
.pm-night__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.pm-night__copy p { margin: 0 0 1.5rem; color: #dbe4ff; max-width: 34rem; }
.pm-night__art { margin: 0; }
.pm-night__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem 2rem 0.4rem 0.4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Home: learn cards ---------- */
.pm-learn { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pm-learn__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: auto auto;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.pm-card {
  background: var(--pm-card);
  border: 1px solid var(--pm-line);
  border-radius: 0.3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.pm-card:hover { border-color: var(--pm-blue); transform: translateY(-3px); }
.pm-card:first-child { grid-row: span 2; }
.pm-card:not(:first-child) { flex-direction: row; }
.pm-card__media {
  display: block;
  overflow: hidden;
  background: #e8ecf7;
}
.pm-card:not(:first-child) .pm-card__media { flex: 0 0 42%; }
.pm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.pm-card:first-child .pm-card__media img { aspect-ratio: 4 / 3.3; }
.pm-card__media--chart { background: #fff; }
.pm-card__media--chart img { object-fit: contain; }
.pm-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.pm-card__body p { margin: 0; color: var(--pm-muted); font-size: 0.97rem; }
.pm-card__title { margin: 0 0 0.45rem; font-family: var(--pm-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.pm-card__title a,
.pm-card__title a:link,
.pm-card__title a:visited { color: var(--pm-ink); text-decoration: none; }
.pm-card__title a:hover,
.pm-card__title a:focus-visible { color: var(--pm-blue-link); text-decoration: underline; }

/* ---------- Home: CTA ---------- */
.pm-cta { background: var(--pm-blue); color: #fff; padding: clamp(2rem, 5vw, 3.25rem) 0; }
.pm-cta__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.pm-cta__inner p { margin: 0; color: #eaf0ff; max-width: 36rem; }
.pm-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Home: legal strip ---------- */
.pm-legal { background: var(--pm-card); border-top: 1px solid var(--pm-line); }
.pm-legal__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.9rem; }
.pm-legal__label { font-family: var(--pm-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pm-muted); }
.pm-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.pm-legal a { font-size: 0.92rem; }

/* ---------- Inner pages (page.php + pbn templates) ---------- */
.blog_archive_section,
.article_single_section,
.article_single_overview_section,
.pbn-author-hero,
.pbn-author-posts,
.pbn-authors-hub,
.pbn-404,
.pmflow-intro,
.pmflow-overview,
.sp_breadcrumbs_section,
.page {
  background: var(--pm-paper) !important;
  color: var(--pm-ink);
}
.pmflow-intro {
  background: var(--pm-card) !important;
  border-bottom: 1px solid var(--pm-line);
  position: relative;
}
.pmflow-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--pm-red) 0 12%, var(--pm-amber) 12% 28%, var(--pm-green) 28% 52%, var(--pm-blue) 52% 100%);
}
.services_overview_title,
.article_single_overview_title,
.pbn-author-hero__name,
.pbn-authors-hub__name,
.pbn-404__title,
.pbn-author-posts__title {
  font-family: var(--pm-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--pm-ink) !important;
}
.services_overview_description,
.services_overview_description p,
.article_single_lead {
  color: var(--pm-muted) !important;
}
.sp_breadcrumbs,
.sp_breadcrumbs a,
.sp_breadcrumbs a:link,
.sp_breadcrumbs a:visited { color: var(--pm-muted) !important; }
.sp_breadcrumbs a:hover,
.sp_breadcrumbs a:focus-visible,
.sp_breadcrumbs a:active { color: var(--pm-blue-link) !important; }

.entry-content,
.article_single_content {
  color: var(--pm-ink);
  font-size: 1.04rem;
}
.entry-content p,
.article_single_content p,
.entry-content li,
.article_single_content li { color: var(--pm-ink-2) !important; }
.entry-content h2,
.entry-content h3,
.article_single_content h2,
.article_single_content h3 {
  font-family: var(--pm-display);
  color: var(--pm-ink) !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.entry-content h2,
.article_single_content h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 2.2rem 0 0.7rem; }
.entry-content h3,
.article_single_content h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.entry-content a,
.entry-content a:link,
.entry-content a:visited,
.article_single_content a,
.article_single_content a:link,
.article_single_content a:visited { color: var(--pm-blue-link) !important; }
.entry-content a:hover,
.entry-content a:focus-visible,
.article_single_content a:hover { color: var(--pm-ink) !important; }
.entry-content a:active { color: var(--pm-blue-press) !important; }
/* one content grid for key pages: same max width + gutter as header/footer */
.page.container {
  width: 100%;
  max-width: var(--pmflow-max) !important;
  margin-inline: auto !important;
  padding: clamp(1.25rem, 3vw, 2rem) var(--pmflow-gutter) clamp(2.5rem, 6vw, 4.5rem) !important;
  box-sizing: border-box;
}
.page .entry-content { padding: 0 !important; }
.sp_breadcrumbs_section { margin: 0 !important; padding: 1rem 0 0 !important; }
.sp_breadcrumbs_section .container { padding-block: 0 !important; }
.pmflow-intro { padding: 0 0 1.75rem !important; }
.pmflow-intro .sp_breadcrumbs_section { background: var(--pm-card) !important; }
.pmflow-intro .services_overview_inner { padding: 0.75rem 0 0 !important; }
.article_single_overview_section { padding-bottom: 1rem !important; }
.entry-content img,
.article_single_content img { max-width: 100%; height: auto; border-radius: 0.3rem; }

/* page body components */
.pm-doc > p,
.pm-doc > h2,
.pm-doc > h3,
.pm-doc > ul,
.pm-doc > ol,
.pm-doc > dl { max-width: 46rem; }
.pm-doc__lead { font-family: var(--pm-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem) !important; line-height: 1.4 !important; font-weight: 500; color: var(--pm-ink) !important; margin-top: 0; }
.pm-doc__toc { margin: 1.5rem 0 0.5rem; padding: 0.9rem 1.1rem; background: var(--pm-card); border: 1px solid var(--pm-line); border-left: 0.35rem solid var(--pm-blue); max-width: 46rem; }
.pm-doc__toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.pm-doc__next { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--pm-line); max-width: 46rem; }
.pm-fig { margin: 1.25rem 0 1.5rem; max-width: 46rem; background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 0.3rem; padding: 0.6rem; }
.pm-fig img { display: block; width: 100%; height: auto; }
.pm-fig figcaption { padding: 0.6rem 0.4rem 0.2rem; font-size: 0.88rem; color: var(--pm-muted); }
.pm-defs { margin: 1rem 0; display: grid; gap: 0.75rem; }
.pm-defs div { padding: 0.8rem 1rem; background: var(--pm-card); border: 1px solid var(--pm-line); border-left: 0.35rem solid var(--pm-blue); }
.pm-defs dt { font-family: var(--pm-display); font-weight: 700; margin: 0 0 0.15rem; }
.pm-defs dd { margin: 0; color: var(--pm-ink-2); }
.pm-bullets li { margin: 0.3rem 0; }

.pm-programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.75rem 0 2.5rem; }
.pm-program {
  background: var(--pm-card);
  border: 1px solid var(--pm-line);
  border-top: 0.4rem solid var(--pm-blue);
  border-radius: 0.3rem;
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.pm-program:nth-child(2) { border-top-color: var(--pm-amber); }
.pm-program:nth-child(3) { border-top-color: var(--pm-red); }
.pm-program h2 { margin: 0.2rem 0 0.6rem !important; font-size: 1.3rem !important; }
.pm-program p { font-size: 0.97rem; }
.pm-program__level { margin: 0 0 0.35rem; font-family: var(--pm-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pm-muted) !important; }
.pm-facts { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--pm-line); display: grid; gap: 0.4rem; }
.pm-facts div { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.5rem; font-size: 0.92rem; }
.pm-facts dt { font-family: var(--pm-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pm-muted); padding-top: 0.15rem; }
.pm-facts dd { margin: 0; color: var(--pm-ink-2); }

.pm-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; margin: 2.5rem 0; }
.pm-split--poster { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); align-items: start; }
.pm-split__media { margin: 0; }
.pm-split__media img { display: block; width: 100%; height: auto; border-radius: 0.3rem 2rem 0.3rem 0.3rem; border: 1px solid var(--pm-line); }
.pm-split h2 { margin-top: 0 !important; }

.pm-doc--legal { max-width: 46rem; }
.pm-doc--legal h2 { font-size: 1.3rem; margin-top: 2rem; }

/* ---------- Blog cards (shared by blog + author archives) ---------- */
.blog_archive_item {
  background: var(--pm-card) !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 0.3rem !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.blog_archive_item.card { padding: 0 !important; gap: 0 !important; }
.blog_archive_item:hover { border-color: var(--pm-blue) !important; transform: translateY(-3px); }
.article_single_author { margin-top: 0.9rem; }
.blog_archive_thumb_wrap,
.blog_archive_thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e8ecf7; }
.blog_archive_item_body { padding: 1rem 1.15rem 1.3rem; }
.blog_archive_item_meta,
.blog_archive_item_meta time,
.blog_archive_item_excerpt { color: var(--pm-muted) !important; font-size: 0.93rem; }
.blog_archive_item_title { margin: 0.35rem 0 0.5rem; font-family: var(--pm-display); font-weight: 700; font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.015em; }
.blog_archive_item_title a,
.blog_archive_item_title a:link,
.blog_archive_item_title a:visited { color: var(--pm-ink) !important; text-decoration: none; }
.blog_archive_item_title a:hover,
.blog_archive_item_title a:focus-visible { color: var(--pm-blue-link) !important; text-decoration: underline; }
.blog_archive_item_title a:active { color: var(--pm-blue-press) !important; }

/* ---------- Article single ---------- */
.article_single_meta,
.article_single_meta time,
.article_single_meta span,
.article_single_updated,
.article_single_reading,
.article_single_views,
.article_single_related_date,
.pbn-author-hero__job,
.pbn-author-hero__expertise,
.pbn-author-hero__bio,
.pbn-author-hero__bio p,
.article_single_author_card__job,
.article_single_author_card__expertise,
.article_single_author_card__bio,
.article_single_author_card__label {
  color: var(--pm-muted) !important;
  opacity: 1;
}
.article_single_meta_dot {
  width: 0.25rem !important;
  height: 0.25rem !important;
  border-radius: 50% !important;
  background: var(--pm-muted) !important;
  color: transparent !important;
  opacity: 0.7;
  line-height: 0 !important;
}
.article_single_meta_dot::before,
.article_single_meta_dot::after { content: none !important; background: none !important; }
.article_single_author,
.article_single_toc,
.article_single_related,
.article_single_widget,
.pbn-toc {
  background: var(--pm-card) !important;
  border: 1px solid var(--pm-line);
  color: var(--pm-ink);
  border-radius: 0.3rem;
}
.article_single_author_name,
.article_single_author_name:link,
.article_single_author_name:visited,
.article_single_author_card__name,
.article_single_author_card__name:link,
.article_single_author_card__name:visited,
.article_single_widget_title,
.article_single_toc a,
.article_single_toc a:link,
.article_single_toc a:visited,
.article_single_related_title,
.article_single_related_item,
.article_single_related_item:link,
.article_single_related_item:visited,
.pbn-toc a,
.pbn-toc a:link,
.pbn-toc a:visited { color: var(--pm-blue-link) !important; }
.article_single_author_name:hover,
.article_single_author_card__name:hover,
.article_single_toc a:hover,
.article_single_related_item:hover,
.pbn-toc a:hover { color: var(--pm-ink) !important; }
.article_single_content blockquote { border-left: 0.35rem solid var(--pm-blue); margin-left: 0; padding: 0.2rem 1rem; background: var(--pm-card); }
.article_single_content img { border: 1px solid var(--pm-line); }

/* ---------- Authors hub / author page ---------- */
.pbn-authors-hub { padding-top: clamp(1.5rem, 4vw, 2.5rem) !important; }
.pbn-authors-hub__list { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.blog_archive_thumb_wrap, .blog_archive_thumb { border-radius: 0 !important; }
.pbn-author-hero__job { font-family: var(--pm-mono); font-size: 0.9rem; color: var(--pm-blue-link) !important; margin: 0.25rem 0 0.15rem; }
.pbn-authors-hub__card,
.pbn-authors-hub__card:link,
.pbn-authors-hub__card:visited {
  background: var(--pm-card) !important;
  border: 1px solid var(--pm-line);
  border-top: 0.35rem solid var(--pm-blue);
  border-radius: 0.3rem;
  color: var(--pm-ink);
  text-decoration: none;
  gap: 0.55rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.pbn-authors-hub__card:hover,
.pbn-authors-hub__card:focus-visible { border-color: var(--pm-blue); transform: translateY(-3px); color: var(--pm-ink); }
.pbn-authors-hub__item:nth-child(2n) .pbn-authors-hub__card { border-top-color: var(--pm-ink); }
.pbn-authors-hub__job,
.pbn-authors-hub__count { color: var(--pm-blue-link); font-family: var(--pm-mono); font-size: 0.85rem; }
.pbn-authors-hub__bio { color: var(--pm-muted); font-size: 0.96rem; }
.pbn-authors-hub__avatar,
.pbn-author-hero__avatar,
.article_single_author_card__avatar { border-radius: 0.3rem 1.4rem 0.3rem 1.4rem; object-fit: cover; background: var(--pm-ink); }
.pbn-authors-hub__avatar { width: 4.5rem; height: 4.5rem; }
.article_single_author_avatar { border-radius: 50%; }
.pbn-author-hero__links a,
.pbn-author-hero__links a:link,
.pbn-author-hero__links a:visited { color: var(--pm-blue-link); }

/* ---------- Footer (sticky via shell; skin colours only) ---------- */
.pmflow-ftr.site-footer,
.site-footer.pmflow-ftr {
  background: var(--pm-ink);
  border-top: 0.3rem solid var(--pm-blue);
  color: #dbe4ff;
  padding: 2.25rem 0 1.25rem;
}
.pmflow-ftr .site-footer_brand,
.pmflow-ftr .site-footer_brand:hover { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.pmflow-ftr .site-footer_brand_name {
  font-family: var(--pm-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff !important;
}
.pmflow-ftr .site-footer_desc,
.pmflow-ftr .site-footer_copy,
.pmflow-ftr .site-footer_title { color: #b9c5ea !important; }
.pmflow-ftr .site-footer_title { font-family: var(--pm-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pmflow-ftr .site-footer_menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.5rem; }
.pmflow-ftr .site-footer_menu a,
.pmflow-ftr .site-footer_menu a:link,
.pmflow-ftr .site-footer_menu a:visited { color: #fff !important; text-decoration: none; }
.pmflow-ftr .site-footer_menu a:hover,
.pmflow-ftr .site-footer_menu a:focus-visible,
.pmflow-ftr .site-footer_menu a:active { color: var(--pm-cyan) !important; text-decoration: underline; }
.pmflow-ftr .site-footer_bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 1rem; }
.pmflow-ftr a:focus-visible { outline-color: var(--pm-cyan); }
.pmflow-top { background: var(--pm-blue) !important; color: #fff !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pm-hero__grid,
  .pm-steps__grid,
  .pm-night__grid,
  .pm-split,
  .pm-split--poster { grid-template-columns: 1fr; }
  .pm-hero__art { max-width: 32rem; margin-inline: auto; }
  .pm-programs { grid-template-columns: 1fr; }
  .pm-sle__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .pm-learn__grid { grid-template-columns: 1fr; }
  .pm-card:first-child { grid-row: auto; }
  .pm-split--poster .pm-split__media { max-width: 22rem; }
}
@media (max-width: 640px) {
  .pm-steps__list { grid-template-columns: 1fr; }
  .pm-card:not(:first-child) { flex-direction: column; }
  .pm-card:not(:first-child) .pm-card__media { flex-basis: auto; }
  .pm-btn { width: 100%; }
  .pm-cta__actions { width: 100%; }
  .pmflow-ftr .site-footer_menu { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .pm-hero__grid { padding-inline: 1rem; }
  .pm-sle__list { grid-template-columns: 1fr; }
  .pm-facts div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pm-hero__art img,
  .pm-sle__item::before { animation: none; }
  .pm-btn,
  .pm-card,
  .blog_archive_item,
  .pbn-authors-hub__card { transition: none; }
  .pm-btn:hover, .pm-card:hover, .blog_archive_item:hover, .pbn-authors-hub__card:hover { transform: none; }
}
